@fayz-ai/core 0.8.1 → 0.8.3
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.
- package/dist/access/denial.d.ts +21 -0
- package/dist/access/denial.d.ts.map +1 -0
- package/dist/access/engine.d.ts +63 -0
- package/dist/access/engine.d.ts.map +1 -0
- package/dist/access/index.cjs +60 -0
- package/dist/access/index.cjs.map +1 -0
- package/dist/access/index.d.ts +6 -0
- package/dist/access/index.d.ts.map +1 -0
- package/dist/access/index.js +51 -0
- package/dist/access/index.js.map +1 -0
- package/dist/access/limits.d.ts +10 -0
- package/dist/access/limits.d.ts.map +1 -0
- package/dist/address/index.d.ts +52 -0
- package/dist/address/index.d.ts.map +1 -0
- package/dist/{chunk-QR7U2URY.cjs → chunk-CATASHPK.cjs} +345 -4
- package/dist/chunk-CATASHPK.cjs.map +1 -0
- package/dist/{chunk-WKZVSKEU.js → chunk-CU64QI4A.js} +2 -2
- package/dist/chunk-CU64QI4A.js.map +1 -0
- package/dist/{chunk-KNIVT6XZ.js → chunk-DZALZ6Q6.js} +345 -4
- package/dist/chunk-DZALZ6Q6.js.map +1 -0
- package/dist/{chunk-54SRL7AJ.cjs → chunk-KSI2L3E4.cjs} +145 -86
- package/dist/chunk-KSI2L3E4.cjs.map +1 -0
- package/dist/{chunk-ZBIWYDAR.js → chunk-TYPVSWLG.js} +144 -87
- package/dist/chunk-TYPVSWLG.js.map +1 -0
- package/dist/{chunk-2NTHNWEH.cjs → chunk-UKU4RIWM.cjs} +2 -2
- package/dist/chunk-UKU4RIWM.cjs.map +1 -0
- package/dist/{chunk-CHGX6UYR.js → chunk-YH25Y4FW.js} +6 -3
- package/dist/chunk-YH25Y4FW.js.map +1 -0
- package/dist/{chunk-5X2VX3RQ.cjs → chunk-ZOPJB5FN.cjs} +6 -3
- package/dist/chunk-ZOPJB5FN.cjs.map +1 -0
- package/dist/data/archetype.d.ts.map +1 -1
- package/dist/data/count.d.ts +34 -0
- package/dist/data/count.d.ts.map +1 -0
- package/dist/data/index.cjs +18 -10
- package/dist/data/index.d.ts +2 -0
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +1 -1
- package/dist/data/refresh.d.ts +36 -0
- package/dist/data/refresh.d.ts.map +1 -0
- package/dist/data/resolve.d.ts.map +1 -1
- package/dist/data/supabase.d.ts.map +1 -1
- package/dist/data/types.d.ts +6 -0
- package/dist/data/types.d.ts.map +1 -1
- package/dist/entity/index.cjs +6 -6
- package/dist/entity/index.js +1 -1
- package/dist/entity/registry.d.ts +9 -0
- package/dist/entity/registry.d.ts.map +1 -1
- package/dist/i18n/index.cjs +10 -10
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/shell-translations.d.ts.map +1 -1
- package/dist/index.cjs +1517 -180
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1412 -110
- package/dist/index.js.map +1 -1
- package/dist/manifest/index.d.ts +109 -3
- package/dist/manifest/index.d.ts.map +1 -1
- package/dist/manifest/serialize.d.ts +14 -0
- package/dist/manifest/serialize.d.ts.map +1 -0
- package/dist/plugin/index.cjs +7 -7
- package/dist/plugin/index.js +1 -1
- package/dist/plugin/runtime.d.ts.map +1 -1
- package/dist/search/engine.d.ts +12 -0
- package/dist/search/engine.d.ts.map +1 -0
- package/dist/search/index.d.ts +5 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/text.d.ts +37 -0
- package/dist/search/text.d.ts.map +1 -0
- package/dist/search/types.d.ts +72 -0
- package/dist/search/types.d.ts.map +1 -0
- package/dist/types/billing.d.ts +20 -0
- package/dist/types/billing.d.ts.map +1 -1
- package/dist/types/crud.d.ts +47 -1
- package/dist/types/crud.d.ts.map +1 -1
- package/dist/types/entitlements.d.ts +45 -0
- package/dist/types/entitlements.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/org.d.ts +28 -0
- package/dist/types/org.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +88 -0
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +14 -4
- package/src/access/denial.ts +33 -0
- package/src/access/engine.test.ts +48 -0
- package/src/access/engine.ts +121 -0
- package/src/access/index.ts +13 -0
- package/src/access/limits.ts +18 -0
- package/src/address/index.ts +188 -0
- package/src/data/archetype.ts +4 -2
- package/src/data/count.test.ts +152 -0
- package/src/data/count.ts +131 -0
- package/src/data/index.ts +2 -0
- package/src/data/refresh.ts +105 -0
- package/src/data/resolve.ts +7 -1
- package/src/data/supabase.ts +3 -1
- package/src/data/types.ts +6 -0
- package/src/entity/registry.ts +7 -0
- package/src/i18n/shell-translations.ts +345 -2
- package/src/index.ts +37 -4
- package/src/manifest/app-manifest.schema.json +618 -45
- package/src/manifest/index.ts +127 -3
- package/src/manifest/serialize.ts +52 -0
- package/src/plugin/runtime.ts +5 -1
- package/src/search/engine.ts +551 -0
- package/src/search/index.ts +25 -0
- package/src/search/text.ts +206 -0
- package/src/search/types.ts +75 -0
- package/src/types/billing.ts +22 -0
- package/src/types/crud.ts +48 -1
- package/src/types/entitlements.ts +45 -0
- package/src/types/index.ts +4 -3
- package/src/types/org.ts +29 -0
- package/src/types/plugins.ts +83 -0
- package/dist/chunk-2NTHNWEH.cjs.map +0 -1
- package/dist/chunk-54SRL7AJ.cjs.map +0 -1
- package/dist/chunk-5X2VX3RQ.cjs.map +0 -1
- package/dist/chunk-CHGX6UYR.js.map +0 -1
- package/dist/chunk-KNIVT6XZ.js.map +0 -1
- package/dist/chunk-QR7U2URY.cjs.map +0 -1
- package/dist/chunk-WKZVSKEU.js.map +0 -1
- package/dist/chunk-ZBIWYDAR.js.map +0 -1
|
@@ -1,102 +1,675 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://fayz.ai/schemas/app-manifest/
|
|
3
|
+
"$id": "https://fayz.ai/schemas/app-manifest/v3.json",
|
|
4
4
|
"title": "Fayz AppManifest",
|
|
5
5
|
"description": "The canonical, JSON-serializable definition of a Fayz app. Code is referenced by registry id; never inlined.",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": [
|
|
7
|
+
"required": [
|
|
8
|
+
"manifestVersion",
|
|
9
|
+
"id",
|
|
10
|
+
"name",
|
|
11
|
+
"surfaces"
|
|
12
|
+
],
|
|
8
13
|
"additionalProperties": false,
|
|
9
14
|
"properties": {
|
|
10
15
|
"manifestVersion": {
|
|
11
16
|
"type": "integer",
|
|
12
|
-
"const":
|
|
17
|
+
"const": 3,
|
|
13
18
|
"description": "Current AppManifest schema version. Older or newer versions require an explicit SDK migration before validation."
|
|
14
19
|
},
|
|
15
|
-
"id": {
|
|
16
|
-
|
|
20
|
+
"id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
24
|
+
},
|
|
25
|
+
"name": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1
|
|
28
|
+
},
|
|
17
29
|
"backend": {
|
|
18
30
|
"type": "object",
|
|
19
31
|
"additionalProperties": false,
|
|
20
|
-
"required": [
|
|
32
|
+
"required": [
|
|
33
|
+
"provider"
|
|
34
|
+
],
|
|
21
35
|
"properties": {
|
|
22
|
-
"provider": {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
"provider": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"supabase",
|
|
39
|
+
"fayz-api",
|
|
40
|
+
"fayz-shop",
|
|
41
|
+
"mock",
|
|
42
|
+
"custom"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"projectRef": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1
|
|
48
|
+
},
|
|
49
|
+
"url": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1
|
|
52
|
+
},
|
|
53
|
+
"adapterId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1
|
|
56
|
+
},
|
|
57
|
+
"options": {
|
|
58
|
+
"type": "object"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"locale": {
|
|
63
|
+
"type": "object"
|
|
64
|
+
},
|
|
65
|
+
"theme": {
|
|
66
|
+
"type": "object"
|
|
67
|
+
},
|
|
68
|
+
"permissions": {
|
|
69
|
+
"type": "object"
|
|
70
|
+
},
|
|
71
|
+
"billing": {
|
|
72
|
+
"type": "object"
|
|
73
|
+
},
|
|
74
|
+
"entities": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "object"
|
|
27
78
|
}
|
|
28
79
|
},
|
|
29
|
-
"locale": { "type": "object" },
|
|
30
|
-
"theme": { "type": "object" },
|
|
31
|
-
"permissions": { "type": "object" },
|
|
32
|
-
"billing": { "type": "object" },
|
|
33
|
-
"entities": { "type": "array", "items": { "type": "object" } },
|
|
34
80
|
"surfaces": {
|
|
35
81
|
"type": "object",
|
|
36
82
|
"minProperties": 1,
|
|
37
|
-
"additionalProperties": {
|
|
83
|
+
"additionalProperties": {
|
|
84
|
+
"$ref": "#/$defs/surface"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"limitDeclarations": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"description": "Resolved 4-layer limit-declaration merge (core < entity-derived < plugin < app) so server runtimes count exactly what the client counts.",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"required": [
|
|
93
|
+
"key",
|
|
94
|
+
"table"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"properties": {
|
|
98
|
+
"key": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1
|
|
101
|
+
},
|
|
102
|
+
"label": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"table": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"minLength": 1
|
|
108
|
+
},
|
|
109
|
+
"kindFilter": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"period": {
|
|
113
|
+
"enum": [
|
|
114
|
+
"month",
|
|
115
|
+
"total"
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"agent": {
|
|
122
|
+
"$ref": "#/$defs/agentContract"
|
|
123
|
+
},
|
|
124
|
+
"contractHash": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"description": "sha256 of the canonical serialization (excluding this field)."
|
|
38
128
|
}
|
|
39
129
|
},
|
|
40
130
|
"$defs": {
|
|
41
131
|
"surface": {
|
|
42
132
|
"type": "object",
|
|
43
|
-
"required": [
|
|
133
|
+
"required": [
|
|
134
|
+
"scaffold"
|
|
135
|
+
],
|
|
44
136
|
"additionalProperties": false,
|
|
45
137
|
"properties": {
|
|
46
|
-
"scaffold": {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
138
|
+
"scaffold": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"minLength": 1
|
|
141
|
+
},
|
|
142
|
+
"options": {
|
|
143
|
+
"type": "object"
|
|
144
|
+
},
|
|
145
|
+
"plugins": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"$ref": "#/$defs/pluginRef"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"pages": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"items": {
|
|
154
|
+
"$ref": "#/$defs/page"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
50
157
|
}
|
|
51
158
|
},
|
|
52
159
|
"pluginRef": {
|
|
53
160
|
"type": "object",
|
|
54
|
-
"required": [
|
|
161
|
+
"required": [
|
|
162
|
+
"id"
|
|
163
|
+
],
|
|
55
164
|
"additionalProperties": false,
|
|
56
165
|
"properties": {
|
|
57
|
-
"id": {
|
|
58
|
-
|
|
59
|
-
|
|
166
|
+
"id": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1
|
|
169
|
+
},
|
|
170
|
+
"config": {
|
|
171
|
+
"type": "object"
|
|
172
|
+
},
|
|
173
|
+
"enabled": {
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
}
|
|
60
176
|
}
|
|
61
177
|
},
|
|
62
178
|
"page": {
|
|
63
179
|
"type": "object",
|
|
64
|
-
"required": [
|
|
180
|
+
"required": [
|
|
181
|
+
"path"
|
|
182
|
+
],
|
|
65
183
|
"additionalProperties": false,
|
|
66
184
|
"description": "Exactly one of blocks/entity/component must be set.",
|
|
67
185
|
"properties": {
|
|
68
|
-
"path": {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
186
|
+
"path": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"minLength": 1
|
|
189
|
+
},
|
|
190
|
+
"label": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"icon": {
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"section": {
|
|
197
|
+
"enum": [
|
|
198
|
+
"main",
|
|
199
|
+
"secondary",
|
|
200
|
+
"settings"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"blocks": {
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"$ref": "#/$defs/block"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"entity": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"minLength": 1
|
|
212
|
+
},
|
|
213
|
+
"component": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"minLength": 1
|
|
216
|
+
},
|
|
75
217
|
"permission": {
|
|
76
218
|
"type": "object",
|
|
77
|
-
"required": [
|
|
219
|
+
"required": [
|
|
220
|
+
"feature",
|
|
221
|
+
"action"
|
|
222
|
+
],
|
|
78
223
|
"additionalProperties": false,
|
|
79
224
|
"properties": {
|
|
80
|
-
"feature": {
|
|
81
|
-
|
|
225
|
+
"feature": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"minLength": 1
|
|
228
|
+
},
|
|
229
|
+
"action": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"minLength": 1
|
|
232
|
+
}
|
|
82
233
|
}
|
|
83
234
|
}
|
|
84
235
|
},
|
|
85
236
|
"oneOf": [
|
|
86
|
-
{
|
|
87
|
-
|
|
88
|
-
|
|
237
|
+
{
|
|
238
|
+
"required": [
|
|
239
|
+
"blocks"
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"required": [
|
|
244
|
+
"entity"
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"required": [
|
|
249
|
+
"component"
|
|
250
|
+
]
|
|
251
|
+
}
|
|
89
252
|
]
|
|
90
253
|
},
|
|
91
254
|
"block": {
|
|
92
255
|
"type": "object",
|
|
93
|
-
"required": [
|
|
256
|
+
"required": [
|
|
257
|
+
"type"
|
|
258
|
+
],
|
|
259
|
+
"additionalProperties": false,
|
|
260
|
+
"properties": {
|
|
261
|
+
"type": {
|
|
262
|
+
"type": "string",
|
|
263
|
+
"minLength": 1
|
|
264
|
+
},
|
|
265
|
+
"id": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
"props": {
|
|
269
|
+
"type": "object"
|
|
270
|
+
},
|
|
271
|
+
"children": {
|
|
272
|
+
"type": "array",
|
|
273
|
+
"items": {
|
|
274
|
+
"$ref": "#/$defs/block"
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"agentContract": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"description": "Everything a server-side agent runtime needs to operate the app without a browser. Derived from code at publish; synced to Fayz as the versioned AgentContract.",
|
|
283
|
+
"properties": {
|
|
284
|
+
"persona": {
|
|
285
|
+
"type": "object",
|
|
286
|
+
"additionalProperties": false,
|
|
287
|
+
"properties": {
|
|
288
|
+
"name": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"systemPrompt": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"icon": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"executionPlane": {
|
|
300
|
+
"enum": [
|
|
301
|
+
"client",
|
|
302
|
+
"server"
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
"entities": {
|
|
306
|
+
"type": "array",
|
|
307
|
+
"items": {
|
|
308
|
+
"$ref": "#/$defs/entityContract"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"tools": {
|
|
312
|
+
"type": "array",
|
|
313
|
+
"items": {
|
|
314
|
+
"$ref": "#/$defs/aiToolContract"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"registries": {
|
|
318
|
+
"type": "array",
|
|
319
|
+
"items": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"required": [
|
|
322
|
+
"pluginId",
|
|
323
|
+
"id"
|
|
324
|
+
],
|
|
325
|
+
"additionalProperties": false,
|
|
326
|
+
"properties": {
|
|
327
|
+
"pluginId": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"minLength": 1
|
|
330
|
+
},
|
|
331
|
+
"id": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"minLength": 1
|
|
334
|
+
},
|
|
335
|
+
"entityKey": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
"readOnly": {
|
|
339
|
+
"type": "boolean"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"declaredFeatures": {
|
|
345
|
+
"type": "array",
|
|
346
|
+
"items": {
|
|
347
|
+
"type": "object"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"rpcs": {
|
|
351
|
+
"type": "array",
|
|
352
|
+
"items": {
|
|
353
|
+
"$ref": "#/$defs/rpcContract"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"domainKnowledge": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"additionalProperties": false,
|
|
359
|
+
"properties": {
|
|
360
|
+
"statuses": {
|
|
361
|
+
"type": "object"
|
|
362
|
+
},
|
|
363
|
+
"scheduleDefaults": {
|
|
364
|
+
"type": "object"
|
|
365
|
+
},
|
|
366
|
+
"businessRules": {
|
|
367
|
+
"type": "array",
|
|
368
|
+
"items": {
|
|
369
|
+
"type": "object",
|
|
370
|
+
"required": [
|
|
371
|
+
"id",
|
|
372
|
+
"description"
|
|
373
|
+
],
|
|
374
|
+
"additionalProperties": false,
|
|
375
|
+
"properties": {
|
|
376
|
+
"id": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"minLength": 1
|
|
379
|
+
},
|
|
380
|
+
"description": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"minLength": 1
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"entityContract": {
|
|
392
|
+
"type": "object",
|
|
393
|
+
"required": [
|
|
394
|
+
"key",
|
|
395
|
+
"label",
|
|
396
|
+
"data",
|
|
397
|
+
"fields"
|
|
398
|
+
],
|
|
399
|
+
"additionalProperties": false,
|
|
400
|
+
"properties": {
|
|
401
|
+
"key": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"minLength": 1
|
|
404
|
+
},
|
|
405
|
+
"label": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"minLength": 1
|
|
408
|
+
},
|
|
409
|
+
"labelPlural": {
|
|
410
|
+
"type": "string"
|
|
411
|
+
},
|
|
412
|
+
"limitKey": {
|
|
413
|
+
"type": "string"
|
|
414
|
+
},
|
|
415
|
+
"data": {
|
|
416
|
+
"type": "object",
|
|
417
|
+
"required": [
|
|
418
|
+
"table"
|
|
419
|
+
],
|
|
420
|
+
"additionalProperties": false,
|
|
421
|
+
"properties": {
|
|
422
|
+
"table": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"minLength": 1
|
|
425
|
+
},
|
|
426
|
+
"schema": {
|
|
427
|
+
"type": "string"
|
|
428
|
+
},
|
|
429
|
+
"tenantScoped": {
|
|
430
|
+
"type": "boolean"
|
|
431
|
+
},
|
|
432
|
+
"tenantIdColumn": {
|
|
433
|
+
"type": "string"
|
|
434
|
+
},
|
|
435
|
+
"searchColumns": {
|
|
436
|
+
"type": "array",
|
|
437
|
+
"items": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"selectColumns": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
},
|
|
444
|
+
"columnMap": {
|
|
445
|
+
"type": "object"
|
|
446
|
+
},
|
|
447
|
+
"archetype": {
|
|
448
|
+
"type": "string"
|
|
449
|
+
},
|
|
450
|
+
"archetypeKind": {
|
|
451
|
+
"type": "string"
|
|
452
|
+
},
|
|
453
|
+
"filters": {
|
|
454
|
+
"type": "object"
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
"fields": {
|
|
459
|
+
"type": "array",
|
|
460
|
+
"items": {
|
|
461
|
+
"type": "object",
|
|
462
|
+
"required": [
|
|
463
|
+
"key",
|
|
464
|
+
"label",
|
|
465
|
+
"type"
|
|
466
|
+
],
|
|
467
|
+
"additionalProperties": false,
|
|
468
|
+
"properties": {
|
|
469
|
+
"key": {
|
|
470
|
+
"type": "string",
|
|
471
|
+
"minLength": 1
|
|
472
|
+
},
|
|
473
|
+
"label": {
|
|
474
|
+
"type": "string"
|
|
475
|
+
},
|
|
476
|
+
"type": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"minLength": 1
|
|
479
|
+
},
|
|
480
|
+
"required": {
|
|
481
|
+
"type": "boolean"
|
|
482
|
+
},
|
|
483
|
+
"searchable": {
|
|
484
|
+
"type": "boolean"
|
|
485
|
+
},
|
|
486
|
+
"hint": {
|
|
487
|
+
"type": "string"
|
|
488
|
+
},
|
|
489
|
+
"options": {
|
|
490
|
+
"type": "array",
|
|
491
|
+
"items": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"relationTable": {
|
|
496
|
+
"type": "string"
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"permission": {
|
|
502
|
+
"type": "object",
|
|
503
|
+
"required": [
|
|
504
|
+
"feature",
|
|
505
|
+
"action"
|
|
506
|
+
],
|
|
507
|
+
"additionalProperties": false,
|
|
508
|
+
"properties": {
|
|
509
|
+
"feature": {
|
|
510
|
+
"type": "string",
|
|
511
|
+
"minLength": 1
|
|
512
|
+
},
|
|
513
|
+
"action": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"minLength": 1
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"aiToolContract": {
|
|
522
|
+
"type": "object",
|
|
523
|
+
"required": [
|
|
524
|
+
"id",
|
|
525
|
+
"name",
|
|
526
|
+
"description",
|
|
527
|
+
"mode"
|
|
528
|
+
],
|
|
94
529
|
"additionalProperties": false,
|
|
95
530
|
"properties": {
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
531
|
+
"id": {
|
|
532
|
+
"type": "string",
|
|
533
|
+
"minLength": 1
|
|
534
|
+
},
|
|
535
|
+
"name": {
|
|
536
|
+
"type": "string",
|
|
537
|
+
"minLength": 1,
|
|
538
|
+
"pattern": "^[a-zA-Z0-9_-]{1,64}$"
|
|
539
|
+
},
|
|
540
|
+
"description": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"minLength": 1
|
|
543
|
+
},
|
|
544
|
+
"mode": {
|
|
545
|
+
"enum": [
|
|
546
|
+
"read",
|
|
547
|
+
"persist"
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"parameters": {
|
|
551
|
+
"type": "object"
|
|
552
|
+
},
|
|
553
|
+
"permission": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"required": [
|
|
556
|
+
"feature",
|
|
557
|
+
"action"
|
|
558
|
+
],
|
|
559
|
+
"additionalProperties": false,
|
|
560
|
+
"properties": {
|
|
561
|
+
"feature": {
|
|
562
|
+
"type": "string",
|
|
563
|
+
"minLength": 1
|
|
564
|
+
},
|
|
565
|
+
"action": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"minLength": 1
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"limitKey": {
|
|
572
|
+
"type": "string"
|
|
573
|
+
},
|
|
574
|
+
"execution": {
|
|
575
|
+
"oneOf": [
|
|
576
|
+
{
|
|
577
|
+
"type": "object",
|
|
578
|
+
"required": [
|
|
579
|
+
"plane",
|
|
580
|
+
"kind",
|
|
581
|
+
"rpc"
|
|
582
|
+
],
|
|
583
|
+
"additionalProperties": false,
|
|
584
|
+
"properties": {
|
|
585
|
+
"plane": {
|
|
586
|
+
"const": "server"
|
|
587
|
+
},
|
|
588
|
+
"kind": {
|
|
589
|
+
"const": "rpc"
|
|
590
|
+
},
|
|
591
|
+
"rpc": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"minLength": 1
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "object",
|
|
599
|
+
"required": [
|
|
600
|
+
"plane",
|
|
601
|
+
"kind",
|
|
602
|
+
"entity"
|
|
603
|
+
],
|
|
604
|
+
"additionalProperties": false,
|
|
605
|
+
"properties": {
|
|
606
|
+
"plane": {
|
|
607
|
+
"const": "server"
|
|
608
|
+
},
|
|
609
|
+
"kind": {
|
|
610
|
+
"const": "entity_read"
|
|
611
|
+
},
|
|
612
|
+
"entity": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"minLength": 1
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"type": "object",
|
|
620
|
+
"required": [
|
|
621
|
+
"plane"
|
|
622
|
+
],
|
|
623
|
+
"additionalProperties": false,
|
|
624
|
+
"properties": {
|
|
625
|
+
"plane": {
|
|
626
|
+
"const": "client"
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
},
|
|
632
|
+
"requiresConfirmation": {
|
|
633
|
+
"type": "boolean"
|
|
634
|
+
},
|
|
635
|
+
"pluginId": {
|
|
636
|
+
"type": "string"
|
|
637
|
+
},
|
|
638
|
+
"category": {
|
|
639
|
+
"type": "string"
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"rpcContract": {
|
|
644
|
+
"type": "object",
|
|
645
|
+
"required": [
|
|
646
|
+
"name",
|
|
647
|
+
"kind",
|
|
648
|
+
"description"
|
|
649
|
+
],
|
|
650
|
+
"additionalProperties": false,
|
|
651
|
+
"properties": {
|
|
652
|
+
"name": {
|
|
653
|
+
"type": "string",
|
|
654
|
+
"minLength": 1,
|
|
655
|
+
"pattern": "^agent_[a-z0-9_]+$"
|
|
656
|
+
},
|
|
657
|
+
"kind": {
|
|
658
|
+
"enum": [
|
|
659
|
+
"read",
|
|
660
|
+
"write"
|
|
661
|
+
]
|
|
662
|
+
},
|
|
663
|
+
"description": {
|
|
664
|
+
"type": "string",
|
|
665
|
+
"minLength": 1
|
|
666
|
+
},
|
|
667
|
+
"payloadSchema": {
|
|
668
|
+
"type": "object"
|
|
669
|
+
},
|
|
670
|
+
"audits": {
|
|
671
|
+
"type": "boolean"
|
|
672
|
+
}
|
|
100
673
|
}
|
|
101
674
|
}
|
|
102
675
|
}
|