@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
@@ -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"
@@ -33,6 +33,48 @@
33
33
  "options": {
34
34
  "type": "object",
35
35
  "properties": {
36
+ "context": {
37
+ "type": "object",
38
+ "properties": {
39
+ "userId": {
40
+ "type": "string"
41
+ },
42
+ "tenantId": {
43
+ "type": "string"
44
+ },
45
+ "roles": {
46
+ "default": [],
47
+ "type": "array",
48
+ "items": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "permissions": {
53
+ "default": [],
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "isSystem": {
60
+ "default": false,
61
+ "type": "boolean"
62
+ },
63
+ "accessToken": {
64
+ "type": "string"
65
+ },
66
+ "transaction": {},
67
+ "traceId": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "required": [
72
+ "roles",
73
+ "permissions",
74
+ "isSystem"
75
+ ],
76
+ "additionalProperties": false
77
+ },
36
78
  "returning": {
37
79
  "default": true,
38
80
  "type": "boolean"
@@ -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
  {