@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
@@ -0,0 +1,201 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "signInEmail": {
6
+ "type": "object",
7
+ "properties": {
8
+ "method": {
9
+ "type": "string",
10
+ "const": "POST"
11
+ },
12
+ "path": {
13
+ "type": "string",
14
+ "const": "/sign-in/email"
15
+ },
16
+ "description": {
17
+ "type": "string",
18
+ "const": "Sign in with email and password"
19
+ }
20
+ },
21
+ "required": [
22
+ "method",
23
+ "path",
24
+ "description"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "signUpEmail": {
29
+ "type": "object",
30
+ "properties": {
31
+ "method": {
32
+ "type": "string",
33
+ "const": "POST"
34
+ },
35
+ "path": {
36
+ "type": "string",
37
+ "const": "/sign-up/email"
38
+ },
39
+ "description": {
40
+ "type": "string",
41
+ "const": "Register new user with email and password"
42
+ }
43
+ },
44
+ "required": [
45
+ "method",
46
+ "path",
47
+ "description"
48
+ ],
49
+ "additionalProperties": false
50
+ },
51
+ "signOut": {
52
+ "type": "object",
53
+ "properties": {
54
+ "method": {
55
+ "type": "string",
56
+ "const": "POST"
57
+ },
58
+ "path": {
59
+ "type": "string",
60
+ "const": "/sign-out"
61
+ },
62
+ "description": {
63
+ "type": "string",
64
+ "const": "Sign out current user"
65
+ }
66
+ },
67
+ "required": [
68
+ "method",
69
+ "path",
70
+ "description"
71
+ ],
72
+ "additionalProperties": false
73
+ },
74
+ "getSession": {
75
+ "type": "object",
76
+ "properties": {
77
+ "method": {
78
+ "type": "string",
79
+ "const": "GET"
80
+ },
81
+ "path": {
82
+ "type": "string",
83
+ "const": "/get-session"
84
+ },
85
+ "description": {
86
+ "type": "string",
87
+ "const": "Get current user session"
88
+ }
89
+ },
90
+ "required": [
91
+ "method",
92
+ "path",
93
+ "description"
94
+ ],
95
+ "additionalProperties": false
96
+ },
97
+ "forgetPassword": {
98
+ "type": "object",
99
+ "properties": {
100
+ "method": {
101
+ "type": "string",
102
+ "const": "POST"
103
+ },
104
+ "path": {
105
+ "type": "string",
106
+ "const": "/forget-password"
107
+ },
108
+ "description": {
109
+ "type": "string",
110
+ "const": "Request password reset email"
111
+ }
112
+ },
113
+ "required": [
114
+ "method",
115
+ "path",
116
+ "description"
117
+ ],
118
+ "additionalProperties": false
119
+ },
120
+ "resetPassword": {
121
+ "type": "object",
122
+ "properties": {
123
+ "method": {
124
+ "type": "string",
125
+ "const": "POST"
126
+ },
127
+ "path": {
128
+ "type": "string",
129
+ "const": "/reset-password"
130
+ },
131
+ "description": {
132
+ "type": "string",
133
+ "const": "Reset password with token"
134
+ }
135
+ },
136
+ "required": [
137
+ "method",
138
+ "path",
139
+ "description"
140
+ ],
141
+ "additionalProperties": false
142
+ },
143
+ "sendVerificationEmail": {
144
+ "type": "object",
145
+ "properties": {
146
+ "method": {
147
+ "type": "string",
148
+ "const": "POST"
149
+ },
150
+ "path": {
151
+ "type": "string",
152
+ "const": "/send-verification-email"
153
+ },
154
+ "description": {
155
+ "type": "string",
156
+ "const": "Send email verification link"
157
+ }
158
+ },
159
+ "required": [
160
+ "method",
161
+ "path",
162
+ "description"
163
+ ],
164
+ "additionalProperties": false
165
+ },
166
+ "verifyEmail": {
167
+ "type": "object",
168
+ "properties": {
169
+ "method": {
170
+ "type": "string",
171
+ "const": "GET"
172
+ },
173
+ "path": {
174
+ "type": "string",
175
+ "const": "/verify-email"
176
+ },
177
+ "description": {
178
+ "type": "string",
179
+ "const": "Verify email with token"
180
+ }
181
+ },
182
+ "required": [
183
+ "method",
184
+ "path",
185
+ "description"
186
+ ],
187
+ "additionalProperties": false
188
+ }
189
+ },
190
+ "required": [
191
+ "signInEmail",
192
+ "signUpEmail",
193
+ "signOut",
194
+ "getSession",
195
+ "forgetPassword",
196
+ "resetPassword",
197
+ "sendVerificationEmail",
198
+ "verifyEmail"
199
+ ],
200
+ "additionalProperties": false
201
+ }
@@ -135,6 +135,48 @@
135
135
  "metadata"
136
136
  ],
137
137
  "additionalProperties": false
138
+ },
139
+ "services": {
140
+ "description": "Per-service availability map",
141
+ "type": "object",
142
+ "propertyNames": {
143
+ "type": "string"
144
+ },
145
+ "additionalProperties": {
146
+ "type": "object",
147
+ "properties": {
148
+ "enabled": {
149
+ "type": "boolean"
150
+ },
151
+ "status": {
152
+ "type": "string",
153
+ "enum": [
154
+ "available",
155
+ "unavailable",
156
+ "degraded",
157
+ "stub"
158
+ ],
159
+ "description": "available = fully operational, unavailable = not installed, degraded = partial, stub = placeholder that throws"
160
+ },
161
+ "route": {
162
+ "description": "e.g. /api/v1/analytics",
163
+ "type": "string"
164
+ },
165
+ "provider": {
166
+ "description": "e.g. \"objectql\", \"plugin-redis\", \"driver-memory\"",
167
+ "type": "string"
168
+ },
169
+ "message": {
170
+ "description": "e.g. \"Install plugin-workflow to enable\"",
171
+ "type": "string"
172
+ }
173
+ },
174
+ "required": [
175
+ "enabled",
176
+ "status"
177
+ ],
178
+ "additionalProperties": false
179
+ }
138
180
  }
139
181
  },
140
182
  "required": [
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
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
+ }
47
+ },
48
+ "additionalProperties": false
49
+ }
@@ -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
  {