@objectstack/platform-objects 7.3.0 → 7.4.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/apps/index.d.mts +45 -19
- package/dist/apps/index.d.ts +45 -19
- package/dist/apps/index.js +1434 -3406
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/index.mjs +1434 -3407
- package/dist/apps/index.mjs.map +1 -1
- package/dist/audit/index.d.mts +4595 -26176
- package/dist/audit/index.d.ts +4595 -26176
- package/dist/audit/index.js +63 -1063
- package/dist/audit/index.js.map +1 -1
- package/dist/audit/index.mjs +64 -1057
- package/dist/audit/index.mjs.map +1 -1
- package/dist/identity/index.d.mts +839 -1281
- package/dist/identity/index.d.ts +839 -1281
- package/dist/index.d.mts +3 -8
- package/dist/index.d.ts +3 -8
- package/dist/index.js +2344 -6782
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2343 -6767
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +1 -2947
- package/dist/integration/index.d.ts +1 -2947
- package/dist/integration/index.js +0 -136
- package/dist/integration/index.js.map +1 -1
- package/dist/integration/index.mjs +0 -135
- package/dist/integration/index.mjs.map +1 -1
- package/dist/metadata/index.d.mts +3924 -261
- package/dist/metadata/index.d.ts +3924 -261
- package/dist/metadata/index.js +101 -0
- package/dist/metadata/index.js.map +1 -1
- package/dist/metadata/index.mjs +101 -1
- package/dist/metadata/index.mjs.map +1 -1
- package/dist/metadata-translations/index.js +597 -505
- package/dist/metadata-translations/index.js.map +1 -1
- package/dist/metadata-translations/index.mjs +597 -505
- package/dist/metadata-translations/index.mjs.map +1 -1
- package/dist/plugin.js +1790 -3614
- package/dist/plugin.js.map +1 -1
- package/dist/plugin.mjs +1790 -3614
- package/dist/plugin.mjs.map +1 -1
- package/dist/security/index.d.mts +1 -18850
- package/dist/security/index.d.ts +1 -18850
- package/dist/security/index.js +0 -1531
- package/dist/security/index.js.map +1 -1
- package/dist/security/index.mjs +0 -1523
- package/dist/security/index.mjs.map +1 -1
- package/dist/system/index.d.mts +144 -212
- package/dist/system/index.d.ts +144 -212
- package/package.json +2 -2
- package/dist/state-machine.zod-BNanU03M.d-Ek3_yo9P.d.mts +0 -41
- package/dist/state-machine.zod-BNanU03M.d-Ek3_yo9P.d.ts +0 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/platform-objects",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Core platform object schemas for ObjectStack — identity, security, audit, tenant, and metadata objects",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@objectstack/spec": "7.
|
|
66
|
+
"@objectstack/spec": "7.4.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "^25.9.1",
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const ActionRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4
|
-
type: z.ZodString;
|
|
5
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
-
}, z.core.$strip>]>;
|
|
7
|
-
/**
|
|
8
|
-
* State Transition Definition
|
|
9
|
-
* "When EVENT happens, if GUARD is true, go to TARGET and run ACTIONS"
|
|
10
|
-
*/
|
|
11
|
-
declare const TransitionSchema: z.ZodObject<{
|
|
12
|
-
target: z.ZodOptional<z.ZodString>;
|
|
13
|
-
cond: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
14
|
-
type: z.ZodString;
|
|
15
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
-
}, z.core.$strip>]>>;
|
|
17
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
18
|
-
type: z.ZodString;
|
|
19
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
-
}, z.core.$strip>]>>>;
|
|
21
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
type ActionRef = z.infer<typeof ActionRefSchema>;
|
|
24
|
-
type Transition = z.infer<typeof TransitionSchema>;
|
|
25
|
-
type StateNodeConfig = {
|
|
26
|
-
type?: 'atomic' | 'compound' | 'parallel' | 'final' | 'history';
|
|
27
|
-
entry?: ActionRef[];
|
|
28
|
-
exit?: ActionRef[];
|
|
29
|
-
on?: Record<string, string | Transition | Transition[]>;
|
|
30
|
-
always?: Transition[];
|
|
31
|
-
initial?: string;
|
|
32
|
-
states?: Record<string, StateNodeConfig>;
|
|
33
|
-
meta?: {
|
|
34
|
-
label?: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
color?: string;
|
|
37
|
-
aiInstructions?: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type { StateNodeConfig as S };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const ActionRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4
|
-
type: z.ZodString;
|
|
5
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
|
-
}, z.core.$strip>]>;
|
|
7
|
-
/**
|
|
8
|
-
* State Transition Definition
|
|
9
|
-
* "When EVENT happens, if GUARD is true, go to TARGET and run ACTIONS"
|
|
10
|
-
*/
|
|
11
|
-
declare const TransitionSchema: z.ZodObject<{
|
|
12
|
-
target: z.ZodOptional<z.ZodString>;
|
|
13
|
-
cond: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
14
|
-
type: z.ZodString;
|
|
15
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
-
}, z.core.$strip>]>>;
|
|
17
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
18
|
-
type: z.ZodString;
|
|
19
|
-
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
-
}, z.core.$strip>]>>>;
|
|
21
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
type ActionRef = z.infer<typeof ActionRefSchema>;
|
|
24
|
-
type Transition = z.infer<typeof TransitionSchema>;
|
|
25
|
-
type StateNodeConfig = {
|
|
26
|
-
type?: 'atomic' | 'compound' | 'parallel' | 'final' | 'history';
|
|
27
|
-
entry?: ActionRef[];
|
|
28
|
-
exit?: ActionRef[];
|
|
29
|
-
on?: Record<string, string | Transition | Transition[]>;
|
|
30
|
-
always?: Transition[];
|
|
31
|
-
initial?: string;
|
|
32
|
-
states?: Record<string, StateNodeConfig>;
|
|
33
|
-
meta?: {
|
|
34
|
-
label?: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
color?: string;
|
|
37
|
-
aiInstructions?: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type { StateNodeConfig as S };
|