@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
@@ -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
  {
@@ -30,6 +30,48 @@
30
30
  "options": {
31
31
  "type": "object",
32
32
  "properties": {
33
+ "context": {
34
+ "type": "object",
35
+ "properties": {
36
+ "userId": {
37
+ "type": "string"
38
+ },
39
+ "tenantId": {
40
+ "type": "string"
41
+ },
42
+ "roles": {
43
+ "default": [],
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ }
48
+ },
49
+ "permissions": {
50
+ "default": [],
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "isSystem": {
57
+ "default": false,
58
+ "type": "boolean"
59
+ },
60
+ "accessToken": {
61
+ "type": "string"
62
+ },
63
+ "transaction": {},
64
+ "traceId": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "required": [
69
+ "roles",
70
+ "permissions",
71
+ "isSystem"
72
+ ],
73
+ "additionalProperties": false
74
+ },
33
75
  "filter": {
34
76
  "anyOf": [
35
77
  {
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "userId": {
6
+ "type": "string"
7
+ },
8
+ "tenantId": {
9
+ "type": "string"
10
+ },
11
+ "roles": {
12
+ "default": [],
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ }
17
+ },
18
+ "permissions": {
19
+ "default": [],
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ "isSystem": {
26
+ "default": false,
27
+ "type": "boolean"
28
+ },
29
+ "accessToken": {
30
+ "type": "string"
31
+ },
32
+ "transaction": {},
33
+ "traceId": {
34
+ "type": "string"
35
+ }
36
+ },
37
+ "required": [
38
+ "roles",
39
+ "permissions",
40
+ "isSystem"
41
+ ],
42
+ "additionalProperties": false
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/spec",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "ObjectStack Protocol & Specification - TypeScript Interfaces, JSON Schemas, and Convention Configurations",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -76,6 +76,11 @@
76
76
  "import": "./dist/permission/index.mjs",
77
77
  "require": "./dist/permission/index.js"
78
78
  },
79
+ "./security": {
80
+ "types": "./dist/security/index.d.ts",
81
+ "import": "./dist/security/index.mjs",
82
+ "require": "./dist/security/index.js"
83
+ },
79
84
  "./studio": {
80
85
  "types": "./dist/studio/index.d.ts",
81
86
  "import": "./dist/studio/index.mjs",