@objectstack/spec 2.0.0 → 2.0.1
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/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +28 -159
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +27 -158
- package/dist/api/index.mjs.map +1 -1
- package/dist/{index-XO8S5zL2.d.ts → index-BvKdac5U.d.ts} +144 -111
- package/dist/{index-CgljqRyc.d.mts → index-CR1mxRt5.d.mts} +8 -9
- package/dist/{index-BIc5QtGI.d.mts → index-Ch3NLQeS.d.mts} +144 -111
- package/dist/{index-DpraDphg.d.ts → index-op6pEi6m.d.ts} +8 -9
- package/dist/index.d.mts +3 -15
- package/dist/index.d.ts +3 -15
- package/dist/index.js +27 -159
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -159
- package/dist/index.mjs.map +1 -1
- package/dist/system/index.d.mts +1 -1
- package/dist/system/index.d.ts +1 -1
- package/dist/system/index.js +0 -3
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.mjs +0 -3
- package/dist/system/index.mjs.map +1 -1
- package/json-schema/api/ApiCapabilities.json +0 -5
- package/json-schema/api/ApiRoutes.json +1 -6
- package/json-schema/api/Discovery.json +40 -11
- package/json-schema/api/DispatcherConfig.json +0 -1
- package/json-schema/api/DispatcherRoute.json +0 -1
- package/json-schema/api/GetDiscoveryResponse.json +1 -11
- package/json-schema/api/RestApiEndpoint.json +1 -2
- package/json-schema/api/RestApiPluginConfig.json +2 -4
- package/json-schema/api/RestApiRouteCategory.json +1 -2
- package/json-schema/api/RestApiRouteRegistration.json +2 -4
- package/json-schema/api/RouterConfig.json +0 -6
- package/json-schema/api/ServiceInfo.json +41 -0
- package/json-schema/system/CoreServiceName.json +0 -1
- package/json-schema/system/KernelServiceMap.json +0 -1
- package/json-schema/system/ServiceConfig.json +0 -1
- package/json-schema/system/ServiceStatus.json +0 -1
- package/package.json +1 -1
|
@@ -41976,7 +41976,7 @@ type MetadataManagerConfig = z.infer<typeof MetadataManagerConfigSchema>;
|
|
|
41976
41976
|
* 2. Route requests to the correct service handler.
|
|
41977
41977
|
* 3. Type-check service interactions.
|
|
41978
41978
|
*/
|
|
41979
|
-
declare const CoreServiceName: z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "
|
|
41979
|
+
declare const CoreServiceName: z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "realtime", "job", "notification", "ai", "i18n", "ui", "workflow"]>;
|
|
41980
41980
|
type CoreServiceName = z.infer<typeof CoreServiceName>;
|
|
41981
41981
|
/**
|
|
41982
41982
|
* Service Criticality Level
|
|
@@ -41998,7 +41998,6 @@ declare const ServiceRequirementDef: {
|
|
|
41998
41998
|
readonly automation: "optional";
|
|
41999
41999
|
readonly graphql: "optional";
|
|
42000
42000
|
readonly analytics: "optional";
|
|
42001
|
-
readonly hub: "optional";
|
|
42002
42001
|
readonly realtime: "optional";
|
|
42003
42002
|
readonly notification: "optional";
|
|
42004
42003
|
readonly ai: "optional";
|
|
@@ -42010,7 +42009,7 @@ declare const ServiceRequirementDef: {
|
|
|
42010
42009
|
* Describes the availability and health of a service
|
|
42011
42010
|
*/
|
|
42012
42011
|
declare const ServiceStatusSchema: z.ZodObject<{
|
|
42013
|
-
name: z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "
|
|
42012
|
+
name: z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "realtime", "job", "notification", "ai", "i18n", "ui", "workflow"]>;
|
|
42014
42013
|
enabled: z.ZodBoolean;
|
|
42015
42014
|
status: z.ZodEnum<["running", "stopped", "degraded", "initializing"]>;
|
|
42016
42015
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -42019,14 +42018,14 @@ declare const ServiceStatusSchema: z.ZodObject<{
|
|
|
42019
42018
|
}, "strip", z.ZodTypeAny, {
|
|
42020
42019
|
status: "stopped" | "running" | "degraded" | "initializing";
|
|
42021
42020
|
enabled: boolean;
|
|
42022
|
-
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "
|
|
42021
|
+
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "realtime" | "job" | "notification" | "ai" | "i18n" | "ui" | "workflow";
|
|
42023
42022
|
provider?: string | undefined;
|
|
42024
42023
|
version?: string | undefined;
|
|
42025
42024
|
features?: string[] | undefined;
|
|
42026
42025
|
}, {
|
|
42027
42026
|
status: "stopped" | "running" | "degraded" | "initializing";
|
|
42028
42027
|
enabled: boolean;
|
|
42029
|
-
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "
|
|
42028
|
+
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "realtime" | "job" | "notification" | "ai" | "i18n" | "ui" | "workflow";
|
|
42030
42029
|
provider?: string | undefined;
|
|
42031
42030
|
version?: string | undefined;
|
|
42032
42031
|
features?: string[] | undefined;
|
|
@@ -42035,18 +42034,18 @@ declare const ServiceStatusSchema: z.ZodObject<{
|
|
|
42035
42034
|
* The Contract definition for what the Kernel MUST expose
|
|
42036
42035
|
* map<ServiceName, ServiceInstance>
|
|
42037
42036
|
*/
|
|
42038
|
-
declare const KernelServiceMapSchema: z.ZodRecord<z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "
|
|
42037
|
+
declare const KernelServiceMapSchema: z.ZodRecord<z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "realtime", "job", "notification", "ai", "i18n", "ui", "workflow"]>, z.ZodUnknown>;
|
|
42039
42038
|
declare const ServiceConfigSchema: z.ZodObject<{
|
|
42040
42039
|
id: z.ZodString;
|
|
42041
|
-
name: z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "
|
|
42040
|
+
name: z.ZodEnum<["metadata", "data", "auth", "file-storage", "search", "cache", "queue", "automation", "graphql", "analytics", "realtime", "job", "notification", "ai", "i18n", "ui", "workflow"]>;
|
|
42042
42041
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
42043
42042
|
}, "strip", z.ZodTypeAny, {
|
|
42044
42043
|
id: string;
|
|
42045
|
-
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "
|
|
42044
|
+
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "realtime" | "job" | "notification" | "ai" | "i18n" | "ui" | "workflow";
|
|
42046
42045
|
options?: Record<string, unknown> | undefined;
|
|
42047
42046
|
}, {
|
|
42048
42047
|
id: string;
|
|
42049
|
-
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "
|
|
42048
|
+
name: "search" | "data" | "cache" | "metadata" | "graphql" | "auth" | "queue" | "file-storage" | "automation" | "analytics" | "realtime" | "job" | "notification" | "ai" | "i18n" | "ui" | "workflow";
|
|
42050
42049
|
options?: Record<string, unknown> | undefined;
|
|
42051
42050
|
}>;
|
|
42052
42051
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CorsConfig, a as CorsConfigSchema, H as HttpMethod, R as RateLimitConfig, b as RateLimitConfigSchema, S as StaticMount, c as StaticMountSchema } from './index-
|
|
3
|
-
export { i as API } from './index-
|
|
2
|
+
import { C as CorsConfig, a as CorsConfigSchema, H as HttpMethod, R as RateLimitConfig, b as RateLimitConfigSchema, S as StaticMount, c as StaticMountSchema } from './index-Ch3NLQeS.mjs';
|
|
3
|
+
export { i as API } from './index-Ch3NLQeS.mjs';
|
|
4
4
|
export { i as Data } from './index-B0sVtIvK.mjs';
|
|
5
5
|
export { i as UI } from './index-RvpS1Wz9.mjs';
|
|
6
|
-
export { i as System } from './index-
|
|
6
|
+
export { i as System } from './index-CR1mxRt5.mjs';
|
|
7
7
|
export { i as Kernel, P as PluginContext, d as definePlugin } from './index-Dv7zaecA.mjs';
|
|
8
8
|
export { i as Hub } from './index-B5EadFQl.mjs';
|
|
9
9
|
import { F as FilterGroup } from './index-Cf0fkEl9.mjs';
|
|
@@ -54846,7 +54846,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54846
54846
|
websockets: z.ZodDefault<z.ZodBoolean>;
|
|
54847
54847
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
54848
54848
|
analytics: z.ZodDefault<z.ZodBoolean>;
|
|
54849
|
-
hub: z.ZodDefault<z.ZodBoolean>;
|
|
54850
54849
|
ai: z.ZodDefault<z.ZodBoolean>;
|
|
54851
54850
|
workflow: z.ZodDefault<z.ZodBoolean>;
|
|
54852
54851
|
notifications: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -54857,7 +54856,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54857
54856
|
graphql: boolean;
|
|
54858
54857
|
notifications: boolean;
|
|
54859
54858
|
analytics: boolean;
|
|
54860
|
-
hub: boolean;
|
|
54861
54859
|
ai: boolean;
|
|
54862
54860
|
i18n: boolean;
|
|
54863
54861
|
workflow: boolean;
|
|
@@ -54868,7 +54866,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54868
54866
|
graphql?: boolean | undefined;
|
|
54869
54867
|
notifications?: boolean | undefined;
|
|
54870
54868
|
analytics?: boolean | undefined;
|
|
54871
|
-
hub?: boolean | undefined;
|
|
54872
54869
|
ai?: boolean | undefined;
|
|
54873
54870
|
i18n?: boolean | undefined;
|
|
54874
54871
|
workflow?: boolean | undefined;
|
|
@@ -54923,7 +54920,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54923
54920
|
graphql: boolean;
|
|
54924
54921
|
notifications: boolean;
|
|
54925
54922
|
analytics: boolean;
|
|
54926
|
-
hub: boolean;
|
|
54927
54923
|
ai: boolean;
|
|
54928
54924
|
i18n: boolean;
|
|
54929
54925
|
workflow: boolean;
|
|
@@ -54993,7 +54989,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54993
54989
|
graphql?: boolean | undefined;
|
|
54994
54990
|
notifications?: boolean | undefined;
|
|
54995
54991
|
analytics?: boolean | undefined;
|
|
54996
|
-
hub?: boolean | undefined;
|
|
54997
54992
|
ai?: boolean | undefined;
|
|
54998
54993
|
i18n?: boolean | undefined;
|
|
54999
54994
|
workflow?: boolean | undefined;
|
|
@@ -55415,7 +55410,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55415
55410
|
websockets: z.ZodDefault<z.ZodBoolean>;
|
|
55416
55411
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
55417
55412
|
analytics: z.ZodDefault<z.ZodBoolean>;
|
|
55418
|
-
hub: z.ZodDefault<z.ZodBoolean>;
|
|
55419
55413
|
ai: z.ZodDefault<z.ZodBoolean>;
|
|
55420
55414
|
workflow: z.ZodDefault<z.ZodBoolean>;
|
|
55421
55415
|
notifications: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -55426,7 +55420,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55426
55420
|
graphql: boolean;
|
|
55427
55421
|
notifications: boolean;
|
|
55428
55422
|
analytics: boolean;
|
|
55429
|
-
hub: boolean;
|
|
55430
55423
|
ai: boolean;
|
|
55431
55424
|
i18n: boolean;
|
|
55432
55425
|
workflow: boolean;
|
|
@@ -55437,7 +55430,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55437
55430
|
graphql?: boolean | undefined;
|
|
55438
55431
|
notifications?: boolean | undefined;
|
|
55439
55432
|
analytics?: boolean | undefined;
|
|
55440
|
-
hub?: boolean | undefined;
|
|
55441
55433
|
ai?: boolean | undefined;
|
|
55442
55434
|
i18n?: boolean | undefined;
|
|
55443
55435
|
workflow?: boolean | undefined;
|
|
@@ -55492,7 +55484,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55492
55484
|
graphql: boolean;
|
|
55493
55485
|
notifications: boolean;
|
|
55494
55486
|
analytics: boolean;
|
|
55495
|
-
hub: boolean;
|
|
55496
55487
|
ai: boolean;
|
|
55497
55488
|
i18n: boolean;
|
|
55498
55489
|
workflow: boolean;
|
|
@@ -55562,7 +55553,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55562
55553
|
graphql?: boolean | undefined;
|
|
55563
55554
|
notifications?: boolean | undefined;
|
|
55564
55555
|
analytics?: boolean | undefined;
|
|
55565
|
-
hub?: boolean | undefined;
|
|
55566
55556
|
ai?: boolean | undefined;
|
|
55567
55557
|
i18n?: boolean | undefined;
|
|
55568
55558
|
workflow?: boolean | undefined;
|
|
@@ -55689,7 +55679,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55689
55679
|
graphql: boolean;
|
|
55690
55680
|
notifications: boolean;
|
|
55691
55681
|
analytics: boolean;
|
|
55692
|
-
hub: boolean;
|
|
55693
55682
|
ai: boolean;
|
|
55694
55683
|
i18n: boolean;
|
|
55695
55684
|
workflow: boolean;
|
|
@@ -55801,7 +55790,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55801
55790
|
graphql?: boolean | undefined;
|
|
55802
55791
|
notifications?: boolean | undefined;
|
|
55803
55792
|
analytics?: boolean | undefined;
|
|
55804
|
-
hub?: boolean | undefined;
|
|
55805
55793
|
ai?: boolean | undefined;
|
|
55806
55794
|
i18n?: boolean | undefined;
|
|
55807
55795
|
workflow?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CorsConfig, a as CorsConfigSchema, H as HttpMethod, R as RateLimitConfig, b as RateLimitConfigSchema, S as StaticMount, c as StaticMountSchema } from './index-
|
|
3
|
-
export { i as API } from './index-
|
|
2
|
+
import { C as CorsConfig, a as CorsConfigSchema, H as HttpMethod, R as RateLimitConfig, b as RateLimitConfigSchema, S as StaticMount, c as StaticMountSchema } from './index-BvKdac5U.js';
|
|
3
|
+
export { i as API } from './index-BvKdac5U.js';
|
|
4
4
|
export { i as Data } from './index-sZ623XdH.js';
|
|
5
5
|
export { i as UI } from './index-4wrJJyEH.js';
|
|
6
|
-
export { i as System } from './index-
|
|
6
|
+
export { i as System } from './index-op6pEi6m.js';
|
|
7
7
|
export { i as Kernel, P as PluginContext, d as definePlugin } from './index-iQl05mTj.js';
|
|
8
8
|
export { i as Hub } from './index-CVMq_Roa.js';
|
|
9
9
|
import { F as FilterGroup } from './index-DxeshNz1.js';
|
|
@@ -54846,7 +54846,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54846
54846
|
websockets: z.ZodDefault<z.ZodBoolean>;
|
|
54847
54847
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
54848
54848
|
analytics: z.ZodDefault<z.ZodBoolean>;
|
|
54849
|
-
hub: z.ZodDefault<z.ZodBoolean>;
|
|
54850
54849
|
ai: z.ZodDefault<z.ZodBoolean>;
|
|
54851
54850
|
workflow: z.ZodDefault<z.ZodBoolean>;
|
|
54852
54851
|
notifications: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -54857,7 +54856,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54857
54856
|
graphql: boolean;
|
|
54858
54857
|
notifications: boolean;
|
|
54859
54858
|
analytics: boolean;
|
|
54860
|
-
hub: boolean;
|
|
54861
54859
|
ai: boolean;
|
|
54862
54860
|
i18n: boolean;
|
|
54863
54861
|
workflow: boolean;
|
|
@@ -54868,7 +54866,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54868
54866
|
graphql?: boolean | undefined;
|
|
54869
54867
|
notifications?: boolean | undefined;
|
|
54870
54868
|
analytics?: boolean | undefined;
|
|
54871
|
-
hub?: boolean | undefined;
|
|
54872
54869
|
ai?: boolean | undefined;
|
|
54873
54870
|
i18n?: boolean | undefined;
|
|
54874
54871
|
workflow?: boolean | undefined;
|
|
@@ -54923,7 +54920,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54923
54920
|
graphql: boolean;
|
|
54924
54921
|
notifications: boolean;
|
|
54925
54922
|
analytics: boolean;
|
|
54926
|
-
hub: boolean;
|
|
54927
54923
|
ai: boolean;
|
|
54928
54924
|
i18n: boolean;
|
|
54929
54925
|
workflow: boolean;
|
|
@@ -54993,7 +54989,6 @@ declare const ObjectOSCapabilitiesSchema: z.ZodObject<{
|
|
|
54993
54989
|
graphql?: boolean | undefined;
|
|
54994
54990
|
notifications?: boolean | undefined;
|
|
54995
54991
|
analytics?: boolean | undefined;
|
|
54996
|
-
hub?: boolean | undefined;
|
|
54997
54992
|
ai?: boolean | undefined;
|
|
54998
54993
|
i18n?: boolean | undefined;
|
|
54999
54994
|
workflow?: boolean | undefined;
|
|
@@ -55415,7 +55410,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55415
55410
|
websockets: z.ZodDefault<z.ZodBoolean>;
|
|
55416
55411
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
55417
55412
|
analytics: z.ZodDefault<z.ZodBoolean>;
|
|
55418
|
-
hub: z.ZodDefault<z.ZodBoolean>;
|
|
55419
55413
|
ai: z.ZodDefault<z.ZodBoolean>;
|
|
55420
55414
|
workflow: z.ZodDefault<z.ZodBoolean>;
|
|
55421
55415
|
notifications: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -55426,7 +55420,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55426
55420
|
graphql: boolean;
|
|
55427
55421
|
notifications: boolean;
|
|
55428
55422
|
analytics: boolean;
|
|
55429
|
-
hub: boolean;
|
|
55430
55423
|
ai: boolean;
|
|
55431
55424
|
i18n: boolean;
|
|
55432
55425
|
workflow: boolean;
|
|
@@ -55437,7 +55430,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55437
55430
|
graphql?: boolean | undefined;
|
|
55438
55431
|
notifications?: boolean | undefined;
|
|
55439
55432
|
analytics?: boolean | undefined;
|
|
55440
|
-
hub?: boolean | undefined;
|
|
55441
55433
|
ai?: boolean | undefined;
|
|
55442
55434
|
i18n?: boolean | undefined;
|
|
55443
55435
|
workflow?: boolean | undefined;
|
|
@@ -55492,7 +55484,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55492
55484
|
graphql: boolean;
|
|
55493
55485
|
notifications: boolean;
|
|
55494
55486
|
analytics: boolean;
|
|
55495
|
-
hub: boolean;
|
|
55496
55487
|
ai: boolean;
|
|
55497
55488
|
i18n: boolean;
|
|
55498
55489
|
workflow: boolean;
|
|
@@ -55562,7 +55553,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55562
55553
|
graphql?: boolean | undefined;
|
|
55563
55554
|
notifications?: boolean | undefined;
|
|
55564
55555
|
analytics?: boolean | undefined;
|
|
55565
|
-
hub?: boolean | undefined;
|
|
55566
55556
|
ai?: boolean | undefined;
|
|
55567
55557
|
i18n?: boolean | undefined;
|
|
55568
55558
|
workflow?: boolean | undefined;
|
|
@@ -55689,7 +55679,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55689
55679
|
graphql: boolean;
|
|
55690
55680
|
notifications: boolean;
|
|
55691
55681
|
analytics: boolean;
|
|
55692
|
-
hub: boolean;
|
|
55693
55682
|
ai: boolean;
|
|
55694
55683
|
i18n: boolean;
|
|
55695
55684
|
workflow: boolean;
|
|
@@ -55801,7 +55790,6 @@ declare const ObjectStackCapabilitiesSchema: z.ZodObject<{
|
|
|
55801
55790
|
graphql?: boolean | undefined;
|
|
55802
55791
|
notifications?: boolean | undefined;
|
|
55803
55792
|
analytics?: boolean | undefined;
|
|
55804
|
-
hub?: boolean | undefined;
|
|
55805
55793
|
ai?: boolean | undefined;
|
|
55806
55794
|
i18n?: boolean | undefined;
|
|
55807
55795
|
workflow?: boolean | undefined;
|
package/dist/index.js
CHANGED
|
@@ -9724,8 +9724,6 @@ var CoreServiceName = import_zod59.z.enum([
|
|
|
9724
9724
|
// GraphQL API Engine
|
|
9725
9725
|
"analytics",
|
|
9726
9726
|
// BI & Semantic Layer
|
|
9727
|
-
"hub",
|
|
9728
|
-
// Multi-tenant & Marketplace Management
|
|
9729
9727
|
"realtime",
|
|
9730
9728
|
// WebSocket & PubSub
|
|
9731
9729
|
"job",
|
|
@@ -9764,7 +9762,6 @@ var ServiceRequirementDef = {
|
|
|
9764
9762
|
automation: "optional",
|
|
9765
9763
|
graphql: "optional",
|
|
9766
9764
|
analytics: "optional",
|
|
9767
|
-
hub: "optional",
|
|
9768
9765
|
realtime: "optional",
|
|
9769
9766
|
notification: "optional",
|
|
9770
9767
|
ai: "optional",
|
|
@@ -20843,7 +20840,6 @@ __export(api_exports, {
|
|
|
20843
20840
|
DEFAULT_DATA_CRUD_ROUTES: () => DEFAULT_DATA_CRUD_ROUTES,
|
|
20844
20841
|
DEFAULT_DISCOVERY_ROUTES: () => DEFAULT_DISCOVERY_ROUTES,
|
|
20845
20842
|
DEFAULT_DISPATCHER_ROUTES: () => DEFAULT_DISPATCHER_ROUTES,
|
|
20846
|
-
DEFAULT_HUB_ROUTES: () => DEFAULT_HUB_ROUTES,
|
|
20847
20843
|
DEFAULT_I18N_ROUTES: () => DEFAULT_I18N_ROUTES,
|
|
20848
20844
|
DEFAULT_METADATA_ROUTES: () => DEFAULT_METADATA_ROUTES,
|
|
20849
20845
|
DEFAULT_NOTIFICATION_ROUTES: () => DEFAULT_NOTIFICATION_ROUTES,
|
|
@@ -21032,6 +21028,7 @@ __export(api_exports, {
|
|
|
21032
21028
|
SaveMetaItemRequestSchema: () => SaveMetaItemRequestSchema,
|
|
21033
21029
|
SaveMetaItemResponseSchema: () => SaveMetaItemResponseSchema,
|
|
21034
21030
|
SchemaDefinition: () => SchemaDefinition,
|
|
21031
|
+
ServiceInfoSchema: () => ServiceInfoSchema,
|
|
21035
21032
|
SessionResponseSchema: () => SessionResponseSchema,
|
|
21036
21033
|
SessionSchema: () => SessionSchema2,
|
|
21037
21034
|
SessionUserSchema: () => SessionUserSchema,
|
|
@@ -21237,12 +21234,25 @@ var ApiCapabilitiesSchema = import_zod104.z.object({
|
|
|
21237
21234
|
websockets: import_zod104.z.boolean().default(false),
|
|
21238
21235
|
files: import_zod104.z.boolean().default(true),
|
|
21239
21236
|
analytics: import_zod104.z.boolean().default(false).describe("Is the Analytics/BI engine enabled?"),
|
|
21240
|
-
hub: import_zod104.z.boolean().default(false).describe("Is Hub management enabled?"),
|
|
21241
21237
|
ai: import_zod104.z.boolean().default(false).describe("Is the AI engine enabled?"),
|
|
21242
21238
|
workflow: import_zod104.z.boolean().default(false).describe("Is the Workflow engine enabled?"),
|
|
21243
21239
|
notifications: import_zod104.z.boolean().default(false).describe("Is the Notification service enabled?"),
|
|
21244
21240
|
i18n: import_zod104.z.boolean().default(false).describe("Is the i18n service enabled?")
|
|
21245
21241
|
});
|
|
21242
|
+
var ServiceInfoSchema = import_zod104.z.object({
|
|
21243
|
+
/** Whether the service is enabled and available */
|
|
21244
|
+
enabled: import_zod104.z.boolean(),
|
|
21245
|
+
/** Current operational status */
|
|
21246
|
+
status: import_zod104.z.enum(["available", "unavailable", "degraded", "stub"]).describe(
|
|
21247
|
+
"available = fully operational, unavailable = not installed, degraded = partial, stub = placeholder that throws"
|
|
21248
|
+
),
|
|
21249
|
+
/** Route path (only present if enabled) */
|
|
21250
|
+
route: import_zod104.z.string().optional().describe("e.g. /api/v1/analytics"),
|
|
21251
|
+
/** Implementation provider name */
|
|
21252
|
+
provider: import_zod104.z.string().optional().describe('e.g. "objectql", "plugin-redis", "driver-memory"'),
|
|
21253
|
+
/** Human-readable reason if unavailable */
|
|
21254
|
+
message: import_zod104.z.string().optional().describe('e.g. "Install plugin-workflow to enable"')
|
|
21255
|
+
});
|
|
21246
21256
|
var ApiRoutesSchema = import_zod104.z.object({
|
|
21247
21257
|
/** Base URL for Object CRUD (Data Protocol) */
|
|
21248
21258
|
data: import_zod104.z.string().describe("e.g. /api/v1/data"),
|
|
@@ -21250,16 +21260,14 @@ var ApiRoutesSchema = import_zod104.z.object({
|
|
|
21250
21260
|
metadata: import_zod104.z.string().describe("e.g. /api/v1/meta"),
|
|
21251
21261
|
/** Base URL for UI Configurations (Views, Menus) */
|
|
21252
21262
|
ui: import_zod104.z.string().optional().describe("e.g. /api/v1/ui"),
|
|
21253
|
-
/** Base URL for Authentication */
|
|
21254
|
-
auth: import_zod104.z.string().describe("e.g. /api/v1/auth"),
|
|
21263
|
+
/** Base URL for Authentication (plugin-provided) */
|
|
21264
|
+
auth: import_zod104.z.string().optional().describe("e.g. /api/v1/auth"),
|
|
21255
21265
|
/** Base URL for Automation (Flows/Scripts) */
|
|
21256
21266
|
automation: import_zod104.z.string().optional().describe("e.g. /api/v1/automation"),
|
|
21257
21267
|
/** Base URL for File/Storage operations */
|
|
21258
21268
|
storage: import_zod104.z.string().optional().describe("e.g. /api/v1/storage"),
|
|
21259
21269
|
/** Base URL for Analytics/BI operations */
|
|
21260
21270
|
analytics: import_zod104.z.string().optional().describe("e.g. /api/v1/analytics"),
|
|
21261
|
-
/** Base URL for Hub Management (Multi-tenant/Marketplace) */
|
|
21262
|
-
hub: import_zod104.z.string().optional().describe("e.g. /api/v1/hub"),
|
|
21263
21271
|
/** GraphQL Endpoint (if enabled) */
|
|
21264
21272
|
graphql: import_zod104.z.string().optional().describe("e.g. /graphql"),
|
|
21265
21273
|
/** Base URL for Package Management */
|
|
@@ -21290,6 +21298,14 @@ var DiscoverySchema = import_zod104.z.object({
|
|
|
21290
21298
|
supported: import_zod104.z.array(import_zod104.z.string()),
|
|
21291
21299
|
timezone: import_zod104.z.string()
|
|
21292
21300
|
}),
|
|
21301
|
+
/**
|
|
21302
|
+
* Per-service status map.
|
|
21303
|
+
* Clients use this to determine which features are available,
|
|
21304
|
+
* show/hide UI elements, and display appropriate messages.
|
|
21305
|
+
*/
|
|
21306
|
+
services: import_zod104.z.record(import_zod104.z.string(), ServiceInfoSchema).optional().describe(
|
|
21307
|
+
"Per-service availability map keyed by CoreServiceName"
|
|
21308
|
+
),
|
|
21293
21309
|
/**
|
|
21294
21310
|
* Custom metadata key-value pairs for extensibility
|
|
21295
21311
|
*/
|
|
@@ -21693,7 +21709,6 @@ var RouterConfigSchema = import_zod107.z.object({
|
|
|
21693
21709
|
automation: import_zod107.z.string().default("/automation").describe("Automation Protocol"),
|
|
21694
21710
|
storage: import_zod107.z.string().default("/storage").describe("Storage Protocol"),
|
|
21695
21711
|
analytics: import_zod107.z.string().default("/analytics").describe("Analytics Protocol"),
|
|
21696
|
-
hub: import_zod107.z.string().default("/hub").describe("Hub Management Protocol"),
|
|
21697
21712
|
graphql: import_zod107.z.string().default("/graphql").describe("GraphQL Endpoint"),
|
|
21698
21713
|
ui: import_zod107.z.string().default("/ui").describe("UI Metadata Protocol (Views, Layouts)"),
|
|
21699
21714
|
workflow: import_zod107.z.string().default("/workflow").describe("Workflow Engine Protocol"),
|
|
@@ -21709,7 +21724,6 @@ var RouterConfigSchema = import_zod107.z.object({
|
|
|
21709
21724
|
automation: "/automation",
|
|
21710
21725
|
storage: "/storage",
|
|
21711
21726
|
analytics: "/analytics",
|
|
21712
|
-
hub: "/hub",
|
|
21713
21727
|
graphql: "/graphql",
|
|
21714
21728
|
ui: "/ui",
|
|
21715
21729
|
workflow: "/workflow",
|
|
@@ -24940,8 +24954,7 @@ var DEFAULT_DISPATCHER_ROUTES = [
|
|
|
24940
24954
|
{ prefix: "/api/v1/data", service: "data", criticality: "required" },
|
|
24941
24955
|
{ prefix: "/api/v1/auth", service: "auth", criticality: "required" },
|
|
24942
24956
|
// Optional Services (plugin-provided)
|
|
24943
|
-
{ prefix: "/api/v1/packages", service: "
|
|
24944
|
-
{ prefix: "/api/v1/hub", service: "hub" },
|
|
24957
|
+
{ prefix: "/api/v1/packages", service: "metadata" },
|
|
24945
24958
|
{ prefix: "/api/v1/ui", service: "ui" },
|
|
24946
24959
|
{ prefix: "/api/v1/workflow", service: "workflow" },
|
|
24947
24960
|
{ prefix: "/api/v1/analytics", service: "analytics" },
|
|
@@ -24979,10 +24992,8 @@ var RestApiRouteCategory = import_zod124.z.enum([
|
|
|
24979
24992
|
// Notification management
|
|
24980
24993
|
"ai",
|
|
24981
24994
|
// AI operations (NLQ, chat)
|
|
24982
|
-
"i18n"
|
|
24995
|
+
"i18n"
|
|
24983
24996
|
// Internationalization
|
|
24984
|
-
"hub"
|
|
24985
|
-
// Hub and package management
|
|
24986
24997
|
]);
|
|
24987
24998
|
var RestApiEndpointSchema = import_zod124.z.object({
|
|
24988
24999
|
/**
|
|
@@ -26155,148 +26166,6 @@ var DEFAULT_ANALYTICS_ROUTES = {
|
|
|
26155
26166
|
{ name: "error_handler", type: "error", enabled: true, order: 200 }
|
|
26156
26167
|
]
|
|
26157
26168
|
};
|
|
26158
|
-
var DEFAULT_HUB_ROUTES = {
|
|
26159
|
-
prefix: "/api/v1/hub",
|
|
26160
|
-
service: "hub",
|
|
26161
|
-
category: "hub",
|
|
26162
|
-
methods: [
|
|
26163
|
-
"listSpaces",
|
|
26164
|
-
"createSpace",
|
|
26165
|
-
"installPlugin",
|
|
26166
|
-
"listPackages",
|
|
26167
|
-
"getPackage",
|
|
26168
|
-
"installPackage",
|
|
26169
|
-
"uninstallPackage",
|
|
26170
|
-
"enablePackage",
|
|
26171
|
-
"disablePackage"
|
|
26172
|
-
],
|
|
26173
|
-
authRequired: true,
|
|
26174
|
-
endpoints: [
|
|
26175
|
-
{
|
|
26176
|
-
method: "GET",
|
|
26177
|
-
path: "/spaces",
|
|
26178
|
-
handler: "listSpaces",
|
|
26179
|
-
category: "hub",
|
|
26180
|
-
public: false,
|
|
26181
|
-
summary: "List spaces",
|
|
26182
|
-
description: "Returns all hub spaces accessible to the current user",
|
|
26183
|
-
tags: ["Hub"],
|
|
26184
|
-
cacheable: true,
|
|
26185
|
-
cacheTtl: 300
|
|
26186
|
-
},
|
|
26187
|
-
{
|
|
26188
|
-
method: "POST",
|
|
26189
|
-
path: "/spaces",
|
|
26190
|
-
handler: "createSpace",
|
|
26191
|
-
category: "hub",
|
|
26192
|
-
public: false,
|
|
26193
|
-
summary: "Create space",
|
|
26194
|
-
description: "Creates a new hub space",
|
|
26195
|
-
tags: ["Hub"],
|
|
26196
|
-
requestSchema: "CreateSpaceRequestSchema",
|
|
26197
|
-
responseSchema: "SpaceResponseSchema",
|
|
26198
|
-
permissions: ["hub.space.create"],
|
|
26199
|
-
cacheable: false
|
|
26200
|
-
},
|
|
26201
|
-
{
|
|
26202
|
-
method: "POST",
|
|
26203
|
-
path: "/plugins/install",
|
|
26204
|
-
handler: "installPlugin",
|
|
26205
|
-
category: "hub",
|
|
26206
|
-
public: false,
|
|
26207
|
-
summary: "Install plugin into space",
|
|
26208
|
-
description: "Installs a plugin into the current space",
|
|
26209
|
-
tags: ["Hub"],
|
|
26210
|
-
requestSchema: "InstallPluginRequestSchema",
|
|
26211
|
-
responseSchema: "InstallPluginResponseSchema",
|
|
26212
|
-
permissions: ["hub.plugin.install"],
|
|
26213
|
-
cacheable: false
|
|
26214
|
-
},
|
|
26215
|
-
{
|
|
26216
|
-
method: "GET",
|
|
26217
|
-
path: "/packages",
|
|
26218
|
-
handler: "listPackages",
|
|
26219
|
-
category: "hub",
|
|
26220
|
-
public: false,
|
|
26221
|
-
summary: "List installed packages",
|
|
26222
|
-
description: "Returns all installed packages with optional status filter",
|
|
26223
|
-
tags: ["Hub", "Packages"],
|
|
26224
|
-
responseSchema: "ListPackagesResponseSchema",
|
|
26225
|
-
cacheable: false
|
|
26226
|
-
},
|
|
26227
|
-
{
|
|
26228
|
-
method: "GET",
|
|
26229
|
-
path: "/packages/:id",
|
|
26230
|
-
handler: "getPackage",
|
|
26231
|
-
category: "hub",
|
|
26232
|
-
public: false,
|
|
26233
|
-
summary: "Get package details",
|
|
26234
|
-
description: "Returns details of a specific installed package",
|
|
26235
|
-
tags: ["Hub", "Packages"],
|
|
26236
|
-
responseSchema: "GetPackageResponseSchema",
|
|
26237
|
-
cacheable: false
|
|
26238
|
-
},
|
|
26239
|
-
{
|
|
26240
|
-
method: "POST",
|
|
26241
|
-
path: "/packages",
|
|
26242
|
-
handler: "installPackage",
|
|
26243
|
-
category: "hub",
|
|
26244
|
-
public: false,
|
|
26245
|
-
summary: "Install package",
|
|
26246
|
-
description: "Installs a new package from manifest or registry",
|
|
26247
|
-
tags: ["Hub", "Packages"],
|
|
26248
|
-
requestSchema: "InstallPackageRequestSchema",
|
|
26249
|
-
responseSchema: "InstallPackageResponseSchema",
|
|
26250
|
-
permissions: ["hub.package.install"],
|
|
26251
|
-
cacheable: false
|
|
26252
|
-
},
|
|
26253
|
-
{
|
|
26254
|
-
method: "DELETE",
|
|
26255
|
-
path: "/packages/:id",
|
|
26256
|
-
handler: "uninstallPackage",
|
|
26257
|
-
category: "hub",
|
|
26258
|
-
public: false,
|
|
26259
|
-
summary: "Uninstall package",
|
|
26260
|
-
description: "Removes an installed package",
|
|
26261
|
-
tags: ["Hub", "Packages"],
|
|
26262
|
-
responseSchema: "UninstallPackageResponseSchema",
|
|
26263
|
-
permissions: ["hub.package.uninstall"],
|
|
26264
|
-
cacheable: false
|
|
26265
|
-
},
|
|
26266
|
-
{
|
|
26267
|
-
method: "POST",
|
|
26268
|
-
path: "/packages/:id/enable",
|
|
26269
|
-
handler: "enablePackage",
|
|
26270
|
-
category: "hub",
|
|
26271
|
-
public: false,
|
|
26272
|
-
summary: "Enable package",
|
|
26273
|
-
description: "Enables a disabled package",
|
|
26274
|
-
tags: ["Hub", "Packages"],
|
|
26275
|
-
responseSchema: "EnablePackageResponseSchema",
|
|
26276
|
-
permissions: ["hub.package.manage"],
|
|
26277
|
-
cacheable: false
|
|
26278
|
-
},
|
|
26279
|
-
{
|
|
26280
|
-
method: "POST",
|
|
26281
|
-
path: "/packages/:id/disable",
|
|
26282
|
-
handler: "disablePackage",
|
|
26283
|
-
category: "hub",
|
|
26284
|
-
public: false,
|
|
26285
|
-
summary: "Disable package",
|
|
26286
|
-
description: "Disables an installed package without removing it",
|
|
26287
|
-
tags: ["Hub", "Packages"],
|
|
26288
|
-
responseSchema: "DisablePackageResponseSchema",
|
|
26289
|
-
permissions: ["hub.package.manage"],
|
|
26290
|
-
cacheable: false
|
|
26291
|
-
}
|
|
26292
|
-
],
|
|
26293
|
-
middleware: [
|
|
26294
|
-
{ name: "auth", type: "authentication", enabled: true, order: 10 },
|
|
26295
|
-
{ name: "validation", type: "validation", enabled: true, order: 20 },
|
|
26296
|
-
{ name: "response_envelope", type: "transformation", enabled: true, order: 100 },
|
|
26297
|
-
{ name: "error_handler", type: "error", enabled: true, order: 200 }
|
|
26298
|
-
]
|
|
26299
|
-
};
|
|
26300
26169
|
var DEFAULT_AUTOMATION_ROUTES = {
|
|
26301
26170
|
prefix: "/api/v1/automation",
|
|
26302
26171
|
service: "automation",
|
|
@@ -26348,7 +26217,6 @@ function getDefaultRouteRegistrations() {
|
|
|
26348
26217
|
DEFAULT_AI_ROUTES,
|
|
26349
26218
|
DEFAULT_I18N_ROUTES,
|
|
26350
26219
|
DEFAULT_ANALYTICS_ROUTES,
|
|
26351
|
-
DEFAULT_HUB_ROUTES,
|
|
26352
26220
|
DEFAULT_AUTOMATION_ROUTES
|
|
26353
26221
|
];
|
|
26354
26222
|
}
|