@objectstack/spec 2.0.4 → 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 (54) hide show
  1. package/dist/contracts/index.d.mts +2 -2
  2. package/dist/contracts/index.d.ts +2 -2
  3. package/dist/data/index.d.mts +2 -2
  4. package/dist/data/index.d.ts +2 -2
  5. package/dist/data/index.js +482 -453
  6. package/dist/data/index.js.map +1 -1
  7. package/dist/data/index.mjs +481 -453
  8. package/dist/data/index.mjs.map +1 -1
  9. package/dist/{driver.zod-DddW_4lJ.d.mts → driver.zod-DnOPgUGi.d.mts} +430 -1
  10. package/dist/{driver.zod-BJHWEbwG.d.ts → driver.zod-E3C6n0W-.d.ts} +430 -1
  11. package/dist/{index-yvEIvpa3.d.ts → index-BPhGHW32.d.ts} +4 -2
  12. package/dist/{index-C8xlxqpA.d.ts → index-C6p-2KXV.d.ts} +1 -1
  13. package/dist/index-CDN6TRx9.d.mts +765 -0
  14. package/dist/index-CDN6TRx9.d.ts +765 -0
  15. package/dist/{index-wFiQRott.d.mts → index-CVnGe2b8.d.mts} +1 -1
  16. package/dist/{index-Cp6xnrOM.d.mts → index-D-tf4nDV.d.mts} +4 -2
  17. package/dist/{index-DOuMlF5h.d.ts → index-DyawwLFZ.d.ts} +31 -2
  18. package/dist/{index-DPlvQwlz.d.mts → index-E1mP_eoE.d.mts} +31 -2
  19. package/dist/index.d.mts +38 -799
  20. package/dist/index.d.ts +38 -799
  21. package/dist/index.js +8585 -8556
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +8585 -8556
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/kernel/index.d.mts +1 -1
  26. package/dist/kernel/index.d.ts +1 -1
  27. package/dist/kernel/index.js +23 -0
  28. package/dist/kernel/index.js.map +1 -1
  29. package/dist/kernel/index.mjs +22 -0
  30. package/dist/kernel/index.mjs.map +1 -1
  31. package/dist/security/index.d.mts +2 -0
  32. package/dist/security/index.d.ts +2 -0
  33. package/dist/security/index.js +666 -0
  34. package/dist/security/index.js.map +1 -0
  35. package/dist/security/index.mjs +616 -0
  36. package/dist/security/index.mjs.map +1 -0
  37. package/json-schema/data/BaseEngineOptions.json +49 -0
  38. package/json-schema/data/DataEngineAggregateOptions.json +42 -0
  39. package/json-schema/data/DataEngineAggregateRequest.json +42 -0
  40. package/json-schema/data/DataEngineBatchRequest.json +294 -0
  41. package/json-schema/data/DataEngineCountOptions.json +42 -0
  42. package/json-schema/data/DataEngineCountRequest.json +42 -0
  43. package/json-schema/data/DataEngineDeleteOptions.json +42 -0
  44. package/json-schema/data/DataEngineDeleteRequest.json +42 -0
  45. package/json-schema/data/DataEngineFindOneRequest.json +42 -0
  46. package/json-schema/data/DataEngineFindRequest.json +42 -0
  47. package/json-schema/data/DataEngineInsertOptions.json +42 -0
  48. package/json-schema/data/DataEngineInsertRequest.json +42 -0
  49. package/json-schema/data/DataEngineQueryOptions.json +42 -0
  50. package/json-schema/data/DataEngineRequest.json +588 -0
  51. package/json-schema/data/DataEngineUpdateOptions.json +42 -0
  52. package/json-schema/data/DataEngineUpdateRequest.json +42 -0
  53. package/json-schema/kernel/ExecutionContext.json +43 -0
  54. package/package.json +6 -1
@@ -14,6 +14,48 @@
14
14
  "query": {
15
15
  "type": "object",
16
16
  "properties": {
17
+ "context": {
18
+ "type": "object",
19
+ "properties": {
20
+ "userId": {
21
+ "type": "string"
22
+ },
23
+ "tenantId": {
24
+ "type": "string"
25
+ },
26
+ "roles": {
27
+ "default": [],
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string"
31
+ }
32
+ },
33
+ "permissions": {
34
+ "default": [],
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "isSystem": {
41
+ "default": false,
42
+ "type": "boolean"
43
+ },
44
+ "accessToken": {
45
+ "type": "string"
46
+ },
47
+ "transaction": {},
48
+ "traceId": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "required": [
53
+ "roles",
54
+ "permissions",
55
+ "isSystem"
56
+ ],
57
+ "additionalProperties": false
58
+ },
17
59
  "filter": {
18
60
  "anyOf": [
19
61
  {
@@ -140,6 +182,48 @@
140
182
  "query": {
141
183
  "type": "object",
142
184
  "properties": {
185
+ "context": {
186
+ "type": "object",
187
+ "properties": {
188
+ "userId": {
189
+ "type": "string"
190
+ },
191
+ "tenantId": {
192
+ "type": "string"
193
+ },
194
+ "roles": {
195
+ "default": [],
196
+ "type": "array",
197
+ "items": {
198
+ "type": "string"
199
+ }
200
+ },
201
+ "permissions": {
202
+ "default": [],
203
+ "type": "array",
204
+ "items": {
205
+ "type": "string"
206
+ }
207
+ },
208
+ "isSystem": {
209
+ "default": false,
210
+ "type": "boolean"
211
+ },
212
+ "accessToken": {
213
+ "type": "string"
214
+ },
215
+ "transaction": {},
216
+ "traceId": {
217
+ "type": "string"
218
+ }
219
+ },
220
+ "required": [
221
+ "roles",
222
+ "permissions",
223
+ "isSystem"
224
+ ],
225
+ "additionalProperties": false
226
+ },
143
227
  "filter": {
144
228
  "anyOf": [
145
229
  {
@@ -287,6 +371,48 @@
287
371
  "options": {
288
372
  "type": "object",
289
373
  "properties": {
374
+ "context": {
375
+ "type": "object",
376
+ "properties": {
377
+ "userId": {
378
+ "type": "string"
379
+ },
380
+ "tenantId": {
381
+ "type": "string"
382
+ },
383
+ "roles": {
384
+ "default": [],
385
+ "type": "array",
386
+ "items": {
387
+ "type": "string"
388
+ }
389
+ },
390
+ "permissions": {
391
+ "default": [],
392
+ "type": "array",
393
+ "items": {
394
+ "type": "string"
395
+ }
396
+ },
397
+ "isSystem": {
398
+ "default": false,
399
+ "type": "boolean"
400
+ },
401
+ "accessToken": {
402
+ "type": "string"
403
+ },
404
+ "transaction": {},
405
+ "traceId": {
406
+ "type": "string"
407
+ }
408
+ },
409
+ "required": [
410
+ "roles",
411
+ "permissions",
412
+ "isSystem"
413
+ ],
414
+ "additionalProperties": false
415
+ },
290
416
  "returning": {
291
417
  "default": true,
292
418
  "type": "boolean"
@@ -334,6 +460,48 @@
334
460
  "options": {
335
461
  "type": "object",
336
462
  "properties": {
463
+ "context": {
464
+ "type": "object",
465
+ "properties": {
466
+ "userId": {
467
+ "type": "string"
468
+ },
469
+ "tenantId": {
470
+ "type": "string"
471
+ },
472
+ "roles": {
473
+ "default": [],
474
+ "type": "array",
475
+ "items": {
476
+ "type": "string"
477
+ }
478
+ },
479
+ "permissions": {
480
+ "default": [],
481
+ "type": "array",
482
+ "items": {
483
+ "type": "string"
484
+ }
485
+ },
486
+ "isSystem": {
487
+ "default": false,
488
+ "type": "boolean"
489
+ },
490
+ "accessToken": {
491
+ "type": "string"
492
+ },
493
+ "transaction": {},
494
+ "traceId": {
495
+ "type": "string"
496
+ }
497
+ },
498
+ "required": [
499
+ "roles",
500
+ "permissions",
501
+ "isSystem"
502
+ ],
503
+ "additionalProperties": false
504
+ },
337
505
  "filter": {
338
506
  "anyOf": [
339
507
  {
@@ -397,6 +565,48 @@
397
565
  "options": {
398
566
  "type": "object",
399
567
  "properties": {
568
+ "context": {
569
+ "type": "object",
570
+ "properties": {
571
+ "userId": {
572
+ "type": "string"
573
+ },
574
+ "tenantId": {
575
+ "type": "string"
576
+ },
577
+ "roles": {
578
+ "default": [],
579
+ "type": "array",
580
+ "items": {
581
+ "type": "string"
582
+ }
583
+ },
584
+ "permissions": {
585
+ "default": [],
586
+ "type": "array",
587
+ "items": {
588
+ "type": "string"
589
+ }
590
+ },
591
+ "isSystem": {
592
+ "default": false,
593
+ "type": "boolean"
594
+ },
595
+ "accessToken": {
596
+ "type": "string"
597
+ },
598
+ "transaction": {},
599
+ "traceId": {
600
+ "type": "string"
601
+ }
602
+ },
603
+ "required": [
604
+ "roles",
605
+ "permissions",
606
+ "isSystem"
607
+ ],
608
+ "additionalProperties": false
609
+ },
400
610
  "filter": {
401
611
  "anyOf": [
402
612
  {
@@ -440,6 +650,48 @@
440
650
  "query": {
441
651
  "type": "object",
442
652
  "properties": {
653
+ "context": {
654
+ "type": "object",
655
+ "properties": {
656
+ "userId": {
657
+ "type": "string"
658
+ },
659
+ "tenantId": {
660
+ "type": "string"
661
+ },
662
+ "roles": {
663
+ "default": [],
664
+ "type": "array",
665
+ "items": {
666
+ "type": "string"
667
+ }
668
+ },
669
+ "permissions": {
670
+ "default": [],
671
+ "type": "array",
672
+ "items": {
673
+ "type": "string"
674
+ }
675
+ },
676
+ "isSystem": {
677
+ "default": false,
678
+ "type": "boolean"
679
+ },
680
+ "accessToken": {
681
+ "type": "string"
682
+ },
683
+ "transaction": {},
684
+ "traceId": {
685
+ "type": "string"
686
+ }
687
+ },
688
+ "required": [
689
+ "roles",
690
+ "permissions",
691
+ "isSystem"
692
+ ],
693
+ "additionalProperties": false
694
+ },
443
695
  "filter": {
444
696
  "anyOf": [
445
697
  {
@@ -479,6 +731,48 @@
479
731
  "query": {
480
732
  "type": "object",
481
733
  "properties": {
734
+ "context": {
735
+ "type": "object",
736
+ "properties": {
737
+ "userId": {
738
+ "type": "string"
739
+ },
740
+ "tenantId": {
741
+ "type": "string"
742
+ },
743
+ "roles": {
744
+ "default": [],
745
+ "type": "array",
746
+ "items": {
747
+ "type": "string"
748
+ }
749
+ },
750
+ "permissions": {
751
+ "default": [],
752
+ "type": "array",
753
+ "items": {
754
+ "type": "string"
755
+ }
756
+ },
757
+ "isSystem": {
758
+ "default": false,
759
+ "type": "boolean"
760
+ },
761
+ "accessToken": {
762
+ "type": "string"
763
+ },
764
+ "transaction": {},
765
+ "traceId": {
766
+ "type": "string"
767
+ }
768
+ },
769
+ "required": [
770
+ "roles",
771
+ "permissions",
772
+ "isSystem"
773
+ ],
774
+ "additionalProperties": false
775
+ },
482
776
  "filter": {
483
777
  "anyOf": [
484
778
  {
@@ -566,6 +860,48 @@
566
860
  "query": {
567
861
  "type": "object",
568
862
  "properties": {
863
+ "context": {
864
+ "type": "object",
865
+ "properties": {
866
+ "userId": {
867
+ "type": "string"
868
+ },
869
+ "tenantId": {
870
+ "type": "string"
871
+ },
872
+ "roles": {
873
+ "default": [],
874
+ "type": "array",
875
+ "items": {
876
+ "type": "string"
877
+ }
878
+ },
879
+ "permissions": {
880
+ "default": [],
881
+ "type": "array",
882
+ "items": {
883
+ "type": "string"
884
+ }
885
+ },
886
+ "isSystem": {
887
+ "default": false,
888
+ "type": "boolean"
889
+ },
890
+ "accessToken": {
891
+ "type": "string"
892
+ },
893
+ "transaction": {},
894
+ "traceId": {
895
+ "type": "string"
896
+ }
897
+ },
898
+ "required": [
899
+ "roles",
900
+ "permissions",
901
+ "isSystem"
902
+ ],
903
+ "additionalProperties": false
904
+ },
569
905
  "filter": {
570
906
  "anyOf": [
571
907
  {
@@ -692,6 +1028,48 @@
692
1028
  "query": {
693
1029
  "type": "object",
694
1030
  "properties": {
1031
+ "context": {
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "userId": {
1035
+ "type": "string"
1036
+ },
1037
+ "tenantId": {
1038
+ "type": "string"
1039
+ },
1040
+ "roles": {
1041
+ "default": [],
1042
+ "type": "array",
1043
+ "items": {
1044
+ "type": "string"
1045
+ }
1046
+ },
1047
+ "permissions": {
1048
+ "default": [],
1049
+ "type": "array",
1050
+ "items": {
1051
+ "type": "string"
1052
+ }
1053
+ },
1054
+ "isSystem": {
1055
+ "default": false,
1056
+ "type": "boolean"
1057
+ },
1058
+ "accessToken": {
1059
+ "type": "string"
1060
+ },
1061
+ "transaction": {},
1062
+ "traceId": {
1063
+ "type": "string"
1064
+ }
1065
+ },
1066
+ "required": [
1067
+ "roles",
1068
+ "permissions",
1069
+ "isSystem"
1070
+ ],
1071
+ "additionalProperties": false
1072
+ },
695
1073
  "filter": {
696
1074
  "anyOf": [
697
1075
  {
@@ -839,6 +1217,48 @@
839
1217
  "options": {
840
1218
  "type": "object",
841
1219
  "properties": {
1220
+ "context": {
1221
+ "type": "object",
1222
+ "properties": {
1223
+ "userId": {
1224
+ "type": "string"
1225
+ },
1226
+ "tenantId": {
1227
+ "type": "string"
1228
+ },
1229
+ "roles": {
1230
+ "default": [],
1231
+ "type": "array",
1232
+ "items": {
1233
+ "type": "string"
1234
+ }
1235
+ },
1236
+ "permissions": {
1237
+ "default": [],
1238
+ "type": "array",
1239
+ "items": {
1240
+ "type": "string"
1241
+ }
1242
+ },
1243
+ "isSystem": {
1244
+ "default": false,
1245
+ "type": "boolean"
1246
+ },
1247
+ "accessToken": {
1248
+ "type": "string"
1249
+ },
1250
+ "transaction": {},
1251
+ "traceId": {
1252
+ "type": "string"
1253
+ }
1254
+ },
1255
+ "required": [
1256
+ "roles",
1257
+ "permissions",
1258
+ "isSystem"
1259
+ ],
1260
+ "additionalProperties": false
1261
+ },
842
1262
  "returning": {
843
1263
  "default": true,
844
1264
  "type": "boolean"
@@ -886,6 +1306,48 @@
886
1306
  "options": {
887
1307
  "type": "object",
888
1308
  "properties": {
1309
+ "context": {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "userId": {
1313
+ "type": "string"
1314
+ },
1315
+ "tenantId": {
1316
+ "type": "string"
1317
+ },
1318
+ "roles": {
1319
+ "default": [],
1320
+ "type": "array",
1321
+ "items": {
1322
+ "type": "string"
1323
+ }
1324
+ },
1325
+ "permissions": {
1326
+ "default": [],
1327
+ "type": "array",
1328
+ "items": {
1329
+ "type": "string"
1330
+ }
1331
+ },
1332
+ "isSystem": {
1333
+ "default": false,
1334
+ "type": "boolean"
1335
+ },
1336
+ "accessToken": {
1337
+ "type": "string"
1338
+ },
1339
+ "transaction": {},
1340
+ "traceId": {
1341
+ "type": "string"
1342
+ }
1343
+ },
1344
+ "required": [
1345
+ "roles",
1346
+ "permissions",
1347
+ "isSystem"
1348
+ ],
1349
+ "additionalProperties": false
1350
+ },
889
1351
  "filter": {
890
1352
  "anyOf": [
891
1353
  {
@@ -949,6 +1411,48 @@
949
1411
  "options": {
950
1412
  "type": "object",
951
1413
  "properties": {
1414
+ "context": {
1415
+ "type": "object",
1416
+ "properties": {
1417
+ "userId": {
1418
+ "type": "string"
1419
+ },
1420
+ "tenantId": {
1421
+ "type": "string"
1422
+ },
1423
+ "roles": {
1424
+ "default": [],
1425
+ "type": "array",
1426
+ "items": {
1427
+ "type": "string"
1428
+ }
1429
+ },
1430
+ "permissions": {
1431
+ "default": [],
1432
+ "type": "array",
1433
+ "items": {
1434
+ "type": "string"
1435
+ }
1436
+ },
1437
+ "isSystem": {
1438
+ "default": false,
1439
+ "type": "boolean"
1440
+ },
1441
+ "accessToken": {
1442
+ "type": "string"
1443
+ },
1444
+ "transaction": {},
1445
+ "traceId": {
1446
+ "type": "string"
1447
+ }
1448
+ },
1449
+ "required": [
1450
+ "roles",
1451
+ "permissions",
1452
+ "isSystem"
1453
+ ],
1454
+ "additionalProperties": false
1455
+ },
952
1456
  "filter": {
953
1457
  "anyOf": [
954
1458
  {
@@ -992,6 +1496,48 @@
992
1496
  "query": {
993
1497
  "type": "object",
994
1498
  "properties": {
1499
+ "context": {
1500
+ "type": "object",
1501
+ "properties": {
1502
+ "userId": {
1503
+ "type": "string"
1504
+ },
1505
+ "tenantId": {
1506
+ "type": "string"
1507
+ },
1508
+ "roles": {
1509
+ "default": [],
1510
+ "type": "array",
1511
+ "items": {
1512
+ "type": "string"
1513
+ }
1514
+ },
1515
+ "permissions": {
1516
+ "default": [],
1517
+ "type": "array",
1518
+ "items": {
1519
+ "type": "string"
1520
+ }
1521
+ },
1522
+ "isSystem": {
1523
+ "default": false,
1524
+ "type": "boolean"
1525
+ },
1526
+ "accessToken": {
1527
+ "type": "string"
1528
+ },
1529
+ "transaction": {},
1530
+ "traceId": {
1531
+ "type": "string"
1532
+ }
1533
+ },
1534
+ "required": [
1535
+ "roles",
1536
+ "permissions",
1537
+ "isSystem"
1538
+ ],
1539
+ "additionalProperties": false
1540
+ },
995
1541
  "filter": {
996
1542
  "anyOf": [
997
1543
  {
@@ -1031,6 +1577,48 @@
1031
1577
  "query": {
1032
1578
  "type": "object",
1033
1579
  "properties": {
1580
+ "context": {
1581
+ "type": "object",
1582
+ "properties": {
1583
+ "userId": {
1584
+ "type": "string"
1585
+ },
1586
+ "tenantId": {
1587
+ "type": "string"
1588
+ },
1589
+ "roles": {
1590
+ "default": [],
1591
+ "type": "array",
1592
+ "items": {
1593
+ "type": "string"
1594
+ }
1595
+ },
1596
+ "permissions": {
1597
+ "default": [],
1598
+ "type": "array",
1599
+ "items": {
1600
+ "type": "string"
1601
+ }
1602
+ },
1603
+ "isSystem": {
1604
+ "default": false,
1605
+ "type": "boolean"
1606
+ },
1607
+ "accessToken": {
1608
+ "type": "string"
1609
+ },
1610
+ "transaction": {},
1611
+ "traceId": {
1612
+ "type": "string"
1613
+ }
1614
+ },
1615
+ "required": [
1616
+ "roles",
1617
+ "permissions",
1618
+ "isSystem"
1619
+ ],
1620
+ "additionalProperties": false
1621
+ },
1034
1622
  "filter": {
1035
1623
  "anyOf": [
1036
1624
  {