@objectstack/spec 1.0.11 → 1.0.12
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/README.md +41 -1
- package/dist/ai/index.d.mts +2 -1
- package/dist/ai/index.d.ts +2 -1
- package/dist/ai/index.js +2047 -1944
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/index.mjs +2047 -1944
- package/dist/ai/index.mjs.map +1 -1
- package/dist/api/index.d.mts +3 -1
- package/dist/api/index.d.ts +3 -1
- package/dist/api/index.js +2599 -2292
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +2587 -2292
- package/dist/api/index.mjs.map +1 -1
- package/dist/automation/index.d.mts +2 -1
- package/dist/automation/index.d.ts +2 -1
- package/dist/automation/index.js +83 -0
- package/dist/automation/index.js.map +1 -1
- package/dist/automation/index.mjs +77 -0
- package/dist/automation/index.mjs.map +1 -1
- package/dist/contracts/index.d.mts +3 -2
- package/dist/contracts/index.d.ts +3 -2
- package/dist/data/index.d.mts +3 -2
- package/dist/data/index.d.ts +3 -2
- package/dist/data/index.js +658 -556
- package/dist/data/index.js.map +1 -1
- package/dist/data/index.mjs +656 -556
- package/dist/data/index.mjs.map +1 -1
- package/dist/{driver.zod-lfi00zVT.d.ts → driver.zod-CfGk9GYh.d.ts} +2164 -11
- package/dist/{driver.zod-BOM_Etco.d.mts → driver.zod-y1cX6R3c.d.mts} +2164 -11
- package/dist/hub/index.d.mts +1 -1
- package/dist/hub/index.d.ts +1 -1
- package/dist/hub/index.js +789 -724
- package/dist/hub/index.js.map +1 -1
- package/dist/hub/index.mjs +789 -724
- package/dist/hub/index.mjs.map +1 -1
- package/dist/{index-C67cfwmW.d.ts → index-B0Hf65bV.d.ts} +13 -5
- package/dist/{index-DLcySG7U.d.ts → index-B5pKM0My.d.ts} +335 -4370
- package/dist/{index-Os7lItRe.d.mts → index-BA022mg2.d.ts} +6178 -129
- package/dist/{index-B5-VbOKg.d.mts → index-BGeLoH2z.d.ts} +4251 -74
- package/dist/{index-CH5zloR3.d.ts → index-BwO__aqV.d.ts} +1 -1
- package/dist/{index-Dp7GFJ8V.d.mts → index-Cia3JPQ8.d.mts} +13 -5
- package/dist/{index-D12rNohm.d.mts → index-CpD1q1FP.d.ts} +35 -18
- package/dist/{index-Os7lItRe.d.ts → index-D5RSFPuB.d.mts} +6178 -129
- package/dist/{index-CU4m6noq.d.mts → index-DGjpaj0X.d.mts} +1 -1
- package/dist/{index-D12rNohm.d.ts → index-Dfn5VXl6.d.mts} +35 -18
- package/dist/{index-l6WIlmOD.d.mts → index-Dgybxlky.d.mts} +177 -158
- package/dist/{index-l6WIlmOD.d.ts → index-Dgybxlky.d.ts} +177 -158
- package/dist/{index-DLcySG7U.d.mts → index-Dpsk8PF4.d.mts} +335 -4370
- package/dist/{index-CyognKSZ.d.ts → index-DrNah5E0.d.ts} +1952 -6990
- package/dist/{index-DE_lJ11p.d.mts → index-OO84R20k.d.mts} +1952 -6990
- package/dist/{index-B5-VbOKg.d.ts → index-upA3Xt04.d.mts} +4251 -74
- package/dist/index.d.mts +8072 -1922
- package/dist/index.d.ts +8072 -1922
- package/dist/index.js +8563 -8249
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8563 -8249
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/kernel/index.d.mts +2 -1
- package/dist/kernel/index.d.ts +2 -1
- package/dist/kernel/index.js +884 -684
- package/dist/kernel/index.js.map +1 -1
- package/dist/kernel/index.mjs +870 -684
- package/dist/kernel/index.mjs.map +1 -1
- package/dist/package-registry.zod-JMcOYNxM.d.mts +21119 -0
- package/dist/package-registry.zod-JMcOYNxM.d.ts +21119 -0
- package/dist/state-machine.zod-B-lFFSxQ.d.mts +285 -0
- package/dist/state-machine.zod-B-lFFSxQ.d.ts +285 -0
- package/dist/system/index.d.mts +2 -1
- package/dist/system/index.d.ts +2 -1
- package/dist/system/index.js +749 -651
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.mjs +749 -651
- package/dist/system/index.mjs.map +1 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/json-schema/ai/Agent.json +499 -0
- package/json-schema/ai/DevOpsAgent.json +499 -0
- package/json-schema/ai/FeedbackLoop.json +2188 -186
- package/json-schema/ai/Resolution.json +2188 -186
- package/json-schema/api/ApiRoutes.json +4 -0
- package/json-schema/api/CompileManifestResponse.json +40 -10
- package/json-schema/api/DisablePackageRequest.json +18 -0
- package/json-schema/api/DisablePackageResponse.json +1521 -0
- package/json-schema/api/Discovery.json +4 -0
- package/json-schema/api/EnablePackageRequest.json +18 -0
- package/json-schema/api/EnablePackageResponse.json +1521 -0
- package/json-schema/api/GetDiscoveryResponse.json +4 -0
- package/json-schema/api/GetPackageRequest.json +18 -0
- package/json-schema/api/GetPackageResponse.json +1518 -0
- package/json-schema/api/InstallPackageRequest.json +1483 -0
- package/json-schema/api/InstallPackageResponse.json +1521 -0
- package/json-schema/api/ListPackagesRequest.json +42 -0
- package/json-schema/api/ListPackagesResponse.json +1525 -0
- package/json-schema/api/ObjectDefinitionResponse.json +1001 -0
- package/json-schema/api/ObjectStackProtocol.json +86 -1
- package/json-schema/api/RestApiConfig.json +5 -0
- package/json-schema/api/RestServerConfig.json +5 -0
- package/json-schema/api/UninstallPackageRequest.json +18 -0
- package/json-schema/api/UninstallPackageResponse.json +25 -0
- package/json-schema/automation/ActionRef.json +30 -0
- package/json-schema/automation/Event.json +24 -0
- package/json-schema/automation/Flow.json +1 -0
- package/json-schema/automation/FlowNode.json +1 -0
- package/json-schema/automation/FlowNodeAction.json +1 -0
- package/json-schema/automation/GuardRef.json +30 -0
- package/json-schema/automation/StateMachine.json +504 -0
- package/json-schema/automation/StateNode.json +324 -0
- package/json-schema/automation/Transition.json +73 -0
- package/json-schema/data/Object.json +1001 -0
- package/json-schema/data/ObjectExtension.json +2376 -0
- package/json-schema/data/ObjectOwnershipEnum.json +13 -0
- package/json-schema/hub/ComposerResponse.json +40 -10
- package/json-schema/kernel/DisablePackageRequest.json +18 -0
- package/json-schema/kernel/DisablePackageResponse.json +1521 -0
- package/json-schema/kernel/EnablePackageRequest.json +18 -0
- package/json-schema/kernel/EnablePackageResponse.json +1521 -0
- package/json-schema/kernel/EventBusConfig.json +15 -0
- package/json-schema/kernel/EventHandler.json +6 -0
- package/json-schema/kernel/EventPersistence.json +3 -0
- package/json-schema/kernel/EventRoute.json +3 -0
- package/json-schema/kernel/EventWebhookConfig.json +3 -0
- package/json-schema/kernel/GetPackageRequest.json +18 -0
- package/json-schema/kernel/GetPackageResponse.json +1518 -0
- package/json-schema/kernel/InstallPackageRequest.json +1483 -0
- package/json-schema/kernel/InstallPackageResponse.json +1521 -0
- package/json-schema/kernel/InstalledPackage.json +1509 -0
- package/json-schema/kernel/ListPackagesRequest.json +42 -0
- package/json-schema/kernel/ListPackagesResponse.json +1525 -0
- package/json-schema/kernel/Manifest.json +40 -10
- package/json-schema/kernel/PackageStatusEnum.json +16 -0
- package/json-schema/kernel/Plugin.json +5 -0
- package/json-schema/kernel/PluginContext.json +31 -7
- package/json-schema/kernel/PluginLifecycle.json +7 -1
- package/json-schema/kernel/RealTimeNotificationConfig.json +3 -0
- package/json-schema/kernel/UninstallPackageRequest.json +18 -0
- package/json-schema/kernel/UninstallPackageResponse.json +25 -0
- package/json-schema/system/ChangeSet.json +2188 -186
- package/json-schema/system/CreateObjectOperation.json +1001 -0
- package/json-schema/system/MigrationOperation.json +1001 -0
- package/package.json +29 -15
- package/prompts/create-new-project.md +37 -19
- package/dist/{index-I3piy4U4.d.mts → index-BmU_sD1f.d.mts} +8 -8
- package/dist/{index-CkhpsEUw.d.ts → index-BnXuc_HO.d.ts} +8 -8
- package/dist/{index-CIDI-8zR.d.mts → index-C_NTOcet.d.mts} +98 -98
- package/dist/{index-CIDI-8zR.d.ts → index-C_NTOcet.d.ts} +98 -98
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
"type": "string",
|
|
9
9
|
"description": "Unique package identifier (reverse domain style)"
|
|
10
10
|
},
|
|
11
|
+
"namespace": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[a-z][a-z0-9_]{1,19}$",
|
|
14
|
+
"description": "Short namespace identifier for metadata scoping (e.g. \"crm\", \"todo\")"
|
|
15
|
+
},
|
|
11
16
|
"version": {
|
|
12
17
|
"type": "string",
|
|
13
18
|
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
@@ -354,25 +359,50 @@
|
|
|
354
359
|
"properties": {
|
|
355
360
|
"object": {
|
|
356
361
|
"type": "string",
|
|
362
|
+
"pattern": "^[a-z_][a-z0-9_]*$",
|
|
357
363
|
"description": "Target Object Name"
|
|
358
364
|
},
|
|
359
|
-
"
|
|
360
|
-
"type": "
|
|
361
|
-
"
|
|
362
|
-
|
|
363
|
-
"additionalProperties": {}
|
|
364
|
-
},
|
|
365
|
-
"description": "List of records to insert"
|
|
365
|
+
"externalId": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"default": "name",
|
|
368
|
+
"description": "Field match for uniqueness check"
|
|
366
369
|
},
|
|
367
370
|
"mode": {
|
|
368
371
|
"type": "string",
|
|
369
372
|
"enum": [
|
|
370
|
-
"upsert",
|
|
371
373
|
"insert",
|
|
374
|
+
"update",
|
|
375
|
+
"upsert",
|
|
376
|
+
"replace",
|
|
372
377
|
"ignore"
|
|
373
378
|
],
|
|
374
379
|
"default": "upsert",
|
|
375
|
-
"description": "
|
|
380
|
+
"description": "Conflict resolution strategy"
|
|
381
|
+
},
|
|
382
|
+
"env": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"items": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"enum": [
|
|
387
|
+
"prod",
|
|
388
|
+
"dev",
|
|
389
|
+
"test"
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
"default": [
|
|
393
|
+
"prod",
|
|
394
|
+
"dev",
|
|
395
|
+
"test"
|
|
396
|
+
],
|
|
397
|
+
"description": "Applicable environments"
|
|
398
|
+
},
|
|
399
|
+
"records": {
|
|
400
|
+
"type": "array",
|
|
401
|
+
"items": {
|
|
402
|
+
"type": "object",
|
|
403
|
+
"additionalProperties": {}
|
|
404
|
+
},
|
|
405
|
+
"description": "Data records"
|
|
376
406
|
}
|
|
377
407
|
},
|
|
378
408
|
"required": [
|
|
@@ -381,7 +411,7 @@
|
|
|
381
411
|
],
|
|
382
412
|
"additionalProperties": false
|
|
383
413
|
},
|
|
384
|
-
"description": "Initial seed data"
|
|
414
|
+
"description": "Initial seed data (prefer top-level data field)"
|
|
385
415
|
},
|
|
386
416
|
"capabilities": {
|
|
387
417
|
"type": "object",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/PackageStatusEnum",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"PackageStatusEnum": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"installed",
|
|
8
|
+
"disabled",
|
|
9
|
+
"installing",
|
|
10
|
+
"uninstalling",
|
|
11
|
+
"error"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
16
|
+
}
|
|
@@ -6,31 +6,49 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"ql": {
|
|
8
8
|
"type": "object",
|
|
9
|
-
"properties": {
|
|
9
|
+
"properties": {
|
|
10
|
+
"object": {},
|
|
11
|
+
"query": {}
|
|
12
|
+
},
|
|
10
13
|
"additionalProperties": true,
|
|
11
14
|
"description": "ObjectQL Engine Interface"
|
|
12
15
|
},
|
|
13
16
|
"os": {
|
|
14
17
|
"type": "object",
|
|
15
|
-
"properties": {
|
|
18
|
+
"properties": {
|
|
19
|
+
"getCurrentUser": {},
|
|
20
|
+
"getConfig": {}
|
|
21
|
+
},
|
|
16
22
|
"additionalProperties": true,
|
|
17
23
|
"description": "ObjectStack Kernel Interface"
|
|
18
24
|
},
|
|
19
25
|
"logger": {
|
|
20
26
|
"type": "object",
|
|
21
|
-
"properties": {
|
|
27
|
+
"properties": {
|
|
28
|
+
"debug": {},
|
|
29
|
+
"info": {},
|
|
30
|
+
"warn": {},
|
|
31
|
+
"error": {}
|
|
32
|
+
},
|
|
22
33
|
"additionalProperties": true,
|
|
23
34
|
"description": "Logger Interface"
|
|
24
35
|
},
|
|
25
36
|
"storage": {
|
|
26
37
|
"type": "object",
|
|
27
|
-
"properties": {
|
|
38
|
+
"properties": {
|
|
39
|
+
"get": {},
|
|
40
|
+
"set": {},
|
|
41
|
+
"delete": {}
|
|
42
|
+
},
|
|
28
43
|
"additionalProperties": true,
|
|
29
44
|
"description": "Storage Interface"
|
|
30
45
|
},
|
|
31
46
|
"i18n": {
|
|
32
47
|
"type": "object",
|
|
33
|
-
"properties": {
|
|
48
|
+
"properties": {
|
|
49
|
+
"t": {},
|
|
50
|
+
"getLocale": {}
|
|
51
|
+
},
|
|
34
52
|
"additionalProperties": true,
|
|
35
53
|
"description": "Internationalization Interface"
|
|
36
54
|
},
|
|
@@ -47,7 +65,11 @@
|
|
|
47
65
|
"properties": {
|
|
48
66
|
"router": {
|
|
49
67
|
"type": "object",
|
|
50
|
-
"properties": {
|
|
68
|
+
"properties": {
|
|
69
|
+
"get": {},
|
|
70
|
+
"post": {},
|
|
71
|
+
"use": {}
|
|
72
|
+
},
|
|
51
73
|
"additionalProperties": true
|
|
52
74
|
}
|
|
53
75
|
},
|
|
@@ -59,7 +81,9 @@
|
|
|
59
81
|
},
|
|
60
82
|
"drivers": {
|
|
61
83
|
"type": "object",
|
|
62
|
-
"properties": {
|
|
84
|
+
"properties": {
|
|
85
|
+
"register": {}
|
|
86
|
+
},
|
|
63
87
|
"additionalProperties": true,
|
|
64
88
|
"description": "Driver Registry"
|
|
65
89
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UninstallPackageRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"UninstallPackageRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"required": [
|
|
12
|
+
"id"
|
|
13
|
+
],
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/UninstallPackageResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"UninstallPackageResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"success": {
|
|
11
|
+
"type": "boolean"
|
|
12
|
+
},
|
|
13
|
+
"message": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"id",
|
|
19
|
+
"success"
|
|
20
|
+
],
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
25
|
+
}
|