@loopstack/contracts 0.16.2 → 0.18.0-rc.0
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/enums/registry.enum.d.ts +1 -2
- package/dist/enums/registry.enum.js +0 -1
- package/dist/schemas/assignment.schema.d.ts +2 -2
- package/dist/schemas/assignment.schema.js +2 -2
- package/dist/schemas/block.schema.d.ts +1 -1
- package/dist/schemas/document.schema.d.ts +111 -742
- package/dist/schemas/json-schema.schema.d.ts +42 -1
- package/dist/schemas/json-schema.schema.js +6 -6
- package/dist/schemas/main.schema.d.ts +88 -1019
- package/dist/schemas/pipeline.schema.d.ts +62 -827
- package/dist/schemas/startup.schema.d.ts +23 -544
- package/dist/schemas/tool-call.schema.d.ts +4 -24
- package/dist/schemas/tool-config.schema.d.ts +10 -160
- package/dist/schemas/transition-payload.schema.d.ts +1 -11
- package/dist/schemas/ui-form-element.schema.d.ts +4 -64
- package/dist/schemas/ui-form.schema.d.ts +25 -249
- package/dist/schemas/ui-form.schema.js +3 -3
- package/dist/schemas/ui-properties-schema.js +1 -1
- package/dist/schemas/workflow-transition.schema.d.ts +18 -84
- package/dist/schemas/workflow.schema.d.ts +30 -398
- package/dist/schemas/workspace.schema.d.ts +1 -9
- package/dist/types/interfaces/namespace-create.interface.d.ts +3 -1
- package/dist/types/types/main.type.d.ts +1 -1
- package/package.json +14 -35
- package/.github/workflows/publish-npm.yml +0 -83
- package/.husky/pre-commit +0 -3
- package/.prettierignore +0 -15
- package/LICENSE +0 -43
- package/README.md +0 -7
- package/eslint.config.mjs +0 -21
- package/prettier.config.mjs +0 -19
|
@@ -3,176 +3,26 @@ export declare const ToolConfigSchema: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodDefault<z.ZodLiteral<"tool">>;
|
|
4
4
|
description: z.ZodOptional<z.ZodString>;
|
|
5
5
|
ui: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<
|
|
6
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
7
|
transition: z.ZodString;
|
|
8
8
|
widget: z.ZodOptional<z.ZodString>;
|
|
9
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
10
|
-
} & {
|
|
9
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
10
|
type: z.ZodLiteral<"button">;
|
|
12
11
|
options: z.ZodOptional<z.ZodObject<{
|
|
13
12
|
position: z.ZodOptional<z.ZodNumber>;
|
|
14
13
|
label: z.ZodOptional<z.ZodString>;
|
|
15
14
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
label?: string | undefined;
|
|
19
|
-
props?: Record<string, any> | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
position?: number | undefined;
|
|
22
|
-
label?: string | undefined;
|
|
23
|
-
props?: Record<string, any> | undefined;
|
|
24
|
-
}>>;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
type: "button";
|
|
27
|
-
transition: string;
|
|
28
|
-
options?: {
|
|
29
|
-
position?: number | undefined;
|
|
30
|
-
label?: string | undefined;
|
|
31
|
-
props?: Record<string, any> | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
widget?: string | undefined;
|
|
34
|
-
enabledWhen?: string[] | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
type: "button";
|
|
37
|
-
transition: string;
|
|
38
|
-
options?: {
|
|
39
|
-
position?: number | undefined;
|
|
40
|
-
label?: string | undefined;
|
|
41
|
-
props?: Record<string, any> | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
widget?: string | undefined;
|
|
44
|
-
enabledWhen?: string[] | undefined;
|
|
45
|
-
}>, z.ZodObject<{
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
46
17
|
transition: z.ZodString;
|
|
47
18
|
widget: z.ZodOptional<z.ZodString>;
|
|
48
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
49
|
-
} & {
|
|
19
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
20
|
type: z.ZodLiteral<"custom">;
|
|
51
21
|
options: z.ZodOptional<z.ZodObject<{
|
|
52
22
|
label: z.ZodOptional<z.ZodString>;
|
|
53
23
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
props?: Record<string, any> | undefined;
|
|
60
|
-
}>>;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
type: "custom";
|
|
63
|
-
transition: string;
|
|
64
|
-
options?: {
|
|
65
|
-
label?: string | undefined;
|
|
66
|
-
props?: Record<string, any> | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
widget?: string | undefined;
|
|
69
|
-
enabledWhen?: string[] | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
type: "custom";
|
|
72
|
-
transition: string;
|
|
73
|
-
options?: {
|
|
74
|
-
label?: string | undefined;
|
|
75
|
-
props?: Record<string, any> | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
widget?: string | undefined;
|
|
78
|
-
enabledWhen?: string[] | undefined;
|
|
79
|
-
}>]>, "many">>;
|
|
80
|
-
form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
form?: any;
|
|
83
|
-
actions?: ({
|
|
84
|
-
type: "button";
|
|
85
|
-
transition: string;
|
|
86
|
-
options?: {
|
|
87
|
-
position?: number | undefined;
|
|
88
|
-
label?: string | undefined;
|
|
89
|
-
props?: Record<string, any> | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
widget?: string | undefined;
|
|
92
|
-
enabledWhen?: string[] | undefined;
|
|
93
|
-
} | {
|
|
94
|
-
type: "custom";
|
|
95
|
-
transition: string;
|
|
96
|
-
options?: {
|
|
97
|
-
label?: string | undefined;
|
|
98
|
-
props?: Record<string, any> | undefined;
|
|
99
|
-
} | undefined;
|
|
100
|
-
widget?: string | undefined;
|
|
101
|
-
enabledWhen?: string[] | undefined;
|
|
102
|
-
})[] | undefined;
|
|
103
|
-
}, {
|
|
104
|
-
form?: any;
|
|
105
|
-
actions?: ({
|
|
106
|
-
type: "button";
|
|
107
|
-
transition: string;
|
|
108
|
-
options?: {
|
|
109
|
-
position?: number | undefined;
|
|
110
|
-
label?: string | undefined;
|
|
111
|
-
props?: Record<string, any> | undefined;
|
|
112
|
-
} | undefined;
|
|
113
|
-
widget?: string | undefined;
|
|
114
|
-
enabledWhen?: string[] | undefined;
|
|
115
|
-
} | {
|
|
116
|
-
type: "custom";
|
|
117
|
-
transition: string;
|
|
118
|
-
options?: {
|
|
119
|
-
label?: string | undefined;
|
|
120
|
-
props?: Record<string, any> | undefined;
|
|
121
|
-
} | undefined;
|
|
122
|
-
widget?: string | undefined;
|
|
123
|
-
enabledWhen?: string[] | undefined;
|
|
124
|
-
})[] | undefined;
|
|
125
|
-
}>>;
|
|
126
|
-
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
type: "tool";
|
|
128
|
-
description?: string | undefined;
|
|
129
|
-
ui?: {
|
|
130
|
-
form?: any;
|
|
131
|
-
actions?: ({
|
|
132
|
-
type: "button";
|
|
133
|
-
transition: string;
|
|
134
|
-
options?: {
|
|
135
|
-
position?: number | undefined;
|
|
136
|
-
label?: string | undefined;
|
|
137
|
-
props?: Record<string, any> | undefined;
|
|
138
|
-
} | undefined;
|
|
139
|
-
widget?: string | undefined;
|
|
140
|
-
enabledWhen?: string[] | undefined;
|
|
141
|
-
} | {
|
|
142
|
-
type: "custom";
|
|
143
|
-
transition: string;
|
|
144
|
-
options?: {
|
|
145
|
-
label?: string | undefined;
|
|
146
|
-
props?: Record<string, any> | undefined;
|
|
147
|
-
} | undefined;
|
|
148
|
-
widget?: string | undefined;
|
|
149
|
-
enabledWhen?: string[] | undefined;
|
|
150
|
-
})[] | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
}, {
|
|
153
|
-
type?: "tool" | undefined;
|
|
154
|
-
description?: string | undefined;
|
|
155
|
-
ui?: {
|
|
156
|
-
form?: any;
|
|
157
|
-
actions?: ({
|
|
158
|
-
type: "button";
|
|
159
|
-
transition: string;
|
|
160
|
-
options?: {
|
|
161
|
-
position?: number | undefined;
|
|
162
|
-
label?: string | undefined;
|
|
163
|
-
props?: Record<string, any> | undefined;
|
|
164
|
-
} | undefined;
|
|
165
|
-
widget?: string | undefined;
|
|
166
|
-
enabledWhen?: string[] | undefined;
|
|
167
|
-
} | {
|
|
168
|
-
type: "custom";
|
|
169
|
-
transition: string;
|
|
170
|
-
options?: {
|
|
171
|
-
label?: string | undefined;
|
|
172
|
-
props?: Record<string, any> | undefined;
|
|
173
|
-
} | undefined;
|
|
174
|
-
widget?: string | undefined;
|
|
175
|
-
enabledWhen?: string[] | undefined;
|
|
176
|
-
})[] | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
}>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>], "type">>>;
|
|
26
|
+
form: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
@@ -4,14 +4,4 @@ export declare const TransitionPayloadSchema: z.ZodObject<{
|
|
|
4
4
|
workflowId: z.ZodString;
|
|
5
5
|
payload: z.ZodOptional<z.ZodAny>;
|
|
6
6
|
meta: z.ZodOptional<z.ZodAny>;
|
|
7
|
-
},
|
|
8
|
-
id: string;
|
|
9
|
-
workflowId: string;
|
|
10
|
-
meta?: any;
|
|
11
|
-
payload?: any;
|
|
12
|
-
}, {
|
|
13
|
-
id: string;
|
|
14
|
-
workflowId: string;
|
|
15
|
-
meta?: any;
|
|
16
|
-
payload?: any;
|
|
17
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
@@ -11,16 +11,10 @@ export declare const UiElementSchema: z.ZodObject<{
|
|
|
11
11
|
emptyValue: z.ZodOptional<z.ZodAny>;
|
|
12
12
|
help: z.ZodOptional<z.ZodString>;
|
|
13
13
|
title: z.ZodOptional<z.ZodString>;
|
|
14
|
-
enumOptions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
14
|
+
enumOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
15
|
label: z.ZodString;
|
|
16
16
|
value: z.ZodAny;
|
|
17
|
-
},
|
|
18
|
-
label: string;
|
|
19
|
-
value?: any;
|
|
20
|
-
}, {
|
|
21
|
-
label: string;
|
|
22
|
-
value?: any;
|
|
23
|
-
}>, z.ZodString]>, "many">, z.ZodString]>>;
|
|
17
|
+
}, z.core.$strip>, z.ZodString]>>, z.ZodString]>>;
|
|
24
18
|
titleFormat: z.ZodOptional<z.ZodString>;
|
|
25
19
|
addable: z.ZodOptional<z.ZodBoolean>;
|
|
26
20
|
removable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -31,59 +25,5 @@ export declare const UiElementSchema: z.ZodObject<{
|
|
|
31
25
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
32
26
|
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
33
27
|
collapsed: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
-
order: z.ZodOptional<z.ZodArray<z.ZodString
|
|
35
|
-
},
|
|
36
|
-
index?: number | undefined;
|
|
37
|
-
inline?: boolean | undefined;
|
|
38
|
-
inputType?: string | undefined;
|
|
39
|
-
order?: string[] | undefined;
|
|
40
|
-
hidden?: boolean | undefined;
|
|
41
|
-
label?: string | undefined;
|
|
42
|
-
title?: string | undefined;
|
|
43
|
-
descriptions?: string | undefined;
|
|
44
|
-
disabled?: boolean | undefined;
|
|
45
|
-
multiple?: boolean | undefined;
|
|
46
|
-
readonly?: boolean | undefined;
|
|
47
|
-
widget?: string | undefined;
|
|
48
|
-
placeholder?: string | undefined;
|
|
49
|
-
rows?: number | undefined;
|
|
50
|
-
emptyValue?: any;
|
|
51
|
-
help?: string | undefined;
|
|
52
|
-
enumOptions?: string | (string | {
|
|
53
|
-
label: string;
|
|
54
|
-
value?: any;
|
|
55
|
-
})[] | undefined;
|
|
56
|
-
titleFormat?: string | undefined;
|
|
57
|
-
addable?: boolean | undefined;
|
|
58
|
-
removable?: boolean | undefined;
|
|
59
|
-
movable?: boolean | undefined;
|
|
60
|
-
accept?: string | undefined;
|
|
61
|
-
collapsed?: boolean | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
index?: number | undefined;
|
|
64
|
-
inline?: boolean | undefined;
|
|
65
|
-
inputType?: string | undefined;
|
|
66
|
-
order?: string[] | undefined;
|
|
67
|
-
hidden?: boolean | undefined;
|
|
68
|
-
label?: string | undefined;
|
|
69
|
-
title?: string | undefined;
|
|
70
|
-
descriptions?: string | undefined;
|
|
71
|
-
disabled?: boolean | undefined;
|
|
72
|
-
multiple?: boolean | undefined;
|
|
73
|
-
readonly?: boolean | undefined;
|
|
74
|
-
widget?: string | undefined;
|
|
75
|
-
placeholder?: string | undefined;
|
|
76
|
-
rows?: number | undefined;
|
|
77
|
-
emptyValue?: any;
|
|
78
|
-
help?: string | undefined;
|
|
79
|
-
enumOptions?: string | (string | {
|
|
80
|
-
label: string;
|
|
81
|
-
value?: any;
|
|
82
|
-
})[] | undefined;
|
|
83
|
-
titleFormat?: string | undefined;
|
|
84
|
-
addable?: boolean | undefined;
|
|
85
|
-
removable?: boolean | undefined;
|
|
86
|
-
movable?: boolean | undefined;
|
|
87
|
-
accept?: string | undefined;
|
|
88
|
-
collapsed?: boolean | undefined;
|
|
89
|
-
}>;
|
|
28
|
+
order: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
@@ -2,299 +2,75 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const UiFormBaseSchema: z.ZodObject<{
|
|
3
3
|
transition: z.ZodString;
|
|
4
4
|
widget: z.ZodOptional<z.ZodString>;
|
|
5
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
6
|
-
},
|
|
7
|
-
transition: string;
|
|
8
|
-
widget?: string | undefined;
|
|
9
|
-
enabledWhen?: string[] | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
transition: string;
|
|
12
|
-
widget?: string | undefined;
|
|
13
|
-
enabledWhen?: string[] | undefined;
|
|
14
|
-
}>;
|
|
5
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export declare const UiFormButtonOptionsSchema: z.ZodObject<{
|
|
16
8
|
position: z.ZodOptional<z.ZodNumber>;
|
|
17
9
|
label: z.ZodOptional<z.ZodString>;
|
|
18
10
|
variant: z.ZodOptional<z.ZodString>;
|
|
19
11
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
20
|
-
},
|
|
21
|
-
variant?: string | undefined;
|
|
22
|
-
position?: number | undefined;
|
|
23
|
-
label?: string | undefined;
|
|
24
|
-
props?: Record<string, any> | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
variant?: string | undefined;
|
|
27
|
-
position?: number | undefined;
|
|
28
|
-
label?: string | undefined;
|
|
29
|
-
props?: Record<string, any> | undefined;
|
|
30
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
31
13
|
export declare const UiFormButtonSchema: z.ZodObject<{
|
|
32
14
|
transition: z.ZodString;
|
|
33
15
|
widget: z.ZodOptional<z.ZodString>;
|
|
34
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
35
|
-
} & {
|
|
16
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
17
|
type: z.ZodLiteral<"button">;
|
|
37
18
|
options: z.ZodOptional<z.ZodObject<{
|
|
38
19
|
position: z.ZodOptional<z.ZodNumber>;
|
|
39
20
|
label: z.ZodOptional<z.ZodString>;
|
|
40
21
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
label?: string | undefined;
|
|
44
|
-
props?: Record<string, any> | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
position?: number | undefined;
|
|
47
|
-
label?: string | undefined;
|
|
48
|
-
props?: Record<string, any> | undefined;
|
|
49
|
-
}>>;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
type: "button";
|
|
52
|
-
transition: string;
|
|
53
|
-
options?: {
|
|
54
|
-
position?: number | undefined;
|
|
55
|
-
label?: string | undefined;
|
|
56
|
-
props?: Record<string, any> | undefined;
|
|
57
|
-
} | undefined;
|
|
58
|
-
widget?: string | undefined;
|
|
59
|
-
enabledWhen?: string[] | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
type: "button";
|
|
62
|
-
transition: string;
|
|
63
|
-
options?: {
|
|
64
|
-
position?: number | undefined;
|
|
65
|
-
label?: string | undefined;
|
|
66
|
-
props?: Record<string, any> | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
widget?: string | undefined;
|
|
69
|
-
enabledWhen?: string[] | undefined;
|
|
70
|
-
}>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
71
24
|
export declare const UiFormCustomSchema: z.ZodObject<{
|
|
72
25
|
transition: z.ZodString;
|
|
73
26
|
widget: z.ZodOptional<z.ZodString>;
|
|
74
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
75
|
-
} & {
|
|
27
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
28
|
type: z.ZodLiteral<"custom">;
|
|
77
29
|
options: z.ZodOptional<z.ZodObject<{
|
|
78
30
|
label: z.ZodOptional<z.ZodString>;
|
|
79
31
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}, {
|
|
84
|
-
label?: string | undefined;
|
|
85
|
-
props?: Record<string, any> | undefined;
|
|
86
|
-
}>>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
type: "custom";
|
|
89
|
-
transition: string;
|
|
90
|
-
options?: {
|
|
91
|
-
label?: string | undefined;
|
|
92
|
-
props?: Record<string, any> | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
widget?: string | undefined;
|
|
95
|
-
enabledWhen?: string[] | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
type: "custom";
|
|
98
|
-
transition: string;
|
|
99
|
-
options?: {
|
|
100
|
-
label?: string | undefined;
|
|
101
|
-
props?: Record<string, any> | undefined;
|
|
102
|
-
} | undefined;
|
|
103
|
-
widget?: string | undefined;
|
|
104
|
-
enabledWhen?: string[] | undefined;
|
|
105
|
-
}>;
|
|
106
|
-
export declare const UiWidgetSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const UiWidgetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
107
35
|
transition: z.ZodString;
|
|
108
36
|
widget: z.ZodOptional<z.ZodString>;
|
|
109
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
110
|
-
} & {
|
|
37
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
38
|
type: z.ZodLiteral<"button">;
|
|
112
39
|
options: z.ZodOptional<z.ZodObject<{
|
|
113
40
|
position: z.ZodOptional<z.ZodNumber>;
|
|
114
41
|
label: z.ZodOptional<z.ZodString>;
|
|
115
42
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
label?: string | undefined;
|
|
119
|
-
props?: Record<string, any> | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
position?: number | undefined;
|
|
122
|
-
label?: string | undefined;
|
|
123
|
-
props?: Record<string, any> | undefined;
|
|
124
|
-
}>>;
|
|
125
|
-
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
type: "button";
|
|
127
|
-
transition: string;
|
|
128
|
-
options?: {
|
|
129
|
-
position?: number | undefined;
|
|
130
|
-
label?: string | undefined;
|
|
131
|
-
props?: Record<string, any> | undefined;
|
|
132
|
-
} | undefined;
|
|
133
|
-
widget?: string | undefined;
|
|
134
|
-
enabledWhen?: string[] | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
type: "button";
|
|
137
|
-
transition: string;
|
|
138
|
-
options?: {
|
|
139
|
-
position?: number | undefined;
|
|
140
|
-
label?: string | undefined;
|
|
141
|
-
props?: Record<string, any> | undefined;
|
|
142
|
-
} | undefined;
|
|
143
|
-
widget?: string | undefined;
|
|
144
|
-
enabledWhen?: string[] | undefined;
|
|
145
|
-
}>, z.ZodObject<{
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
146
45
|
transition: z.ZodString;
|
|
147
46
|
widget: z.ZodOptional<z.ZodString>;
|
|
148
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
149
|
-
} & {
|
|
47
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
48
|
type: z.ZodLiteral<"custom">;
|
|
151
49
|
options: z.ZodOptional<z.ZodObject<{
|
|
152
50
|
label: z.ZodOptional<z.ZodString>;
|
|
153
51
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
props?: Record<string, any> | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
label?: string | undefined;
|
|
159
|
-
props?: Record<string, any> | undefined;
|
|
160
|
-
}>>;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
type: "custom";
|
|
163
|
-
transition: string;
|
|
164
|
-
options?: {
|
|
165
|
-
label?: string | undefined;
|
|
166
|
-
props?: Record<string, any> | undefined;
|
|
167
|
-
} | undefined;
|
|
168
|
-
widget?: string | undefined;
|
|
169
|
-
enabledWhen?: string[] | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
type: "custom";
|
|
172
|
-
transition: string;
|
|
173
|
-
options?: {
|
|
174
|
-
label?: string | undefined;
|
|
175
|
-
props?: Record<string, any> | undefined;
|
|
176
|
-
} | undefined;
|
|
177
|
-
widget?: string | undefined;
|
|
178
|
-
enabledWhen?: string[] | undefined;
|
|
179
|
-
}>]>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>], "type">;
|
|
180
54
|
export declare const UiFormSchema: z.ZodObject<{
|
|
181
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<
|
|
55
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
182
56
|
transition: z.ZodString;
|
|
183
57
|
widget: z.ZodOptional<z.ZodString>;
|
|
184
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
185
|
-
} & {
|
|
58
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
186
59
|
type: z.ZodLiteral<"button">;
|
|
187
60
|
options: z.ZodOptional<z.ZodObject<{
|
|
188
61
|
position: z.ZodOptional<z.ZodNumber>;
|
|
189
62
|
label: z.ZodOptional<z.ZodString>;
|
|
190
63
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
label?: string | undefined;
|
|
194
|
-
props?: Record<string, any> | undefined;
|
|
195
|
-
}, {
|
|
196
|
-
position?: number | undefined;
|
|
197
|
-
label?: string | undefined;
|
|
198
|
-
props?: Record<string, any> | undefined;
|
|
199
|
-
}>>;
|
|
200
|
-
}, "strip", z.ZodTypeAny, {
|
|
201
|
-
type: "button";
|
|
202
|
-
transition: string;
|
|
203
|
-
options?: {
|
|
204
|
-
position?: number | undefined;
|
|
205
|
-
label?: string | undefined;
|
|
206
|
-
props?: Record<string, any> | undefined;
|
|
207
|
-
} | undefined;
|
|
208
|
-
widget?: string | undefined;
|
|
209
|
-
enabledWhen?: string[] | undefined;
|
|
210
|
-
}, {
|
|
211
|
-
type: "button";
|
|
212
|
-
transition: string;
|
|
213
|
-
options?: {
|
|
214
|
-
position?: number | undefined;
|
|
215
|
-
label?: string | undefined;
|
|
216
|
-
props?: Record<string, any> | undefined;
|
|
217
|
-
} | undefined;
|
|
218
|
-
widget?: string | undefined;
|
|
219
|
-
enabledWhen?: string[] | undefined;
|
|
220
|
-
}>, z.ZodObject<{
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
66
|
transition: z.ZodString;
|
|
222
67
|
widget: z.ZodOptional<z.ZodString>;
|
|
223
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
224
|
-
} & {
|
|
68
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
69
|
type: z.ZodLiteral<"custom">;
|
|
226
70
|
options: z.ZodOptional<z.ZodObject<{
|
|
227
71
|
label: z.ZodOptional<z.ZodString>;
|
|
228
72
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
229
|
-
},
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
label?: string | undefined;
|
|
234
|
-
props?: Record<string, any> | undefined;
|
|
235
|
-
}>>;
|
|
236
|
-
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
type: "custom";
|
|
238
|
-
transition: string;
|
|
239
|
-
options?: {
|
|
240
|
-
label?: string | undefined;
|
|
241
|
-
props?: Record<string, any> | undefined;
|
|
242
|
-
} | undefined;
|
|
243
|
-
widget?: string | undefined;
|
|
244
|
-
enabledWhen?: string[] | undefined;
|
|
245
|
-
}, {
|
|
246
|
-
type: "custom";
|
|
247
|
-
transition: string;
|
|
248
|
-
options?: {
|
|
249
|
-
label?: string | undefined;
|
|
250
|
-
props?: Record<string, any> | undefined;
|
|
251
|
-
} | undefined;
|
|
252
|
-
widget?: string | undefined;
|
|
253
|
-
enabledWhen?: string[] | undefined;
|
|
254
|
-
}>]>, "many">>;
|
|
255
|
-
form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
256
|
-
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
form?: any;
|
|
258
|
-
actions?: ({
|
|
259
|
-
type: "button";
|
|
260
|
-
transition: string;
|
|
261
|
-
options?: {
|
|
262
|
-
position?: number | undefined;
|
|
263
|
-
label?: string | undefined;
|
|
264
|
-
props?: Record<string, any> | undefined;
|
|
265
|
-
} | undefined;
|
|
266
|
-
widget?: string | undefined;
|
|
267
|
-
enabledWhen?: string[] | undefined;
|
|
268
|
-
} | {
|
|
269
|
-
type: "custom";
|
|
270
|
-
transition: string;
|
|
271
|
-
options?: {
|
|
272
|
-
label?: string | undefined;
|
|
273
|
-
props?: Record<string, any> | undefined;
|
|
274
|
-
} | undefined;
|
|
275
|
-
widget?: string | undefined;
|
|
276
|
-
enabledWhen?: string[] | undefined;
|
|
277
|
-
})[] | undefined;
|
|
278
|
-
}, {
|
|
279
|
-
form?: any;
|
|
280
|
-
actions?: ({
|
|
281
|
-
type: "button";
|
|
282
|
-
transition: string;
|
|
283
|
-
options?: {
|
|
284
|
-
position?: number | undefined;
|
|
285
|
-
label?: string | undefined;
|
|
286
|
-
props?: Record<string, any> | undefined;
|
|
287
|
-
} | undefined;
|
|
288
|
-
widget?: string | undefined;
|
|
289
|
-
enabledWhen?: string[] | undefined;
|
|
290
|
-
} | {
|
|
291
|
-
type: "custom";
|
|
292
|
-
transition: string;
|
|
293
|
-
options?: {
|
|
294
|
-
label?: string | undefined;
|
|
295
|
-
props?: Record<string, any> | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
widget?: string | undefined;
|
|
298
|
-
enabledWhen?: string[] | undefined;
|
|
299
|
-
})[] | undefined;
|
|
300
|
-
}>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
}, z.core.$strip>], "type">>>;
|
|
75
|
+
form: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
@@ -12,7 +12,7 @@ exports.UiFormButtonOptionsSchema = zod_1.z.object({
|
|
|
12
12
|
position: zod_1.z.number().optional(),
|
|
13
13
|
label: zod_1.z.string().optional(),
|
|
14
14
|
variant: zod_1.z.string().optional(),
|
|
15
|
-
props: zod_1.z.record(zod_1.z.any()).optional(),
|
|
15
|
+
props: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
16
16
|
});
|
|
17
17
|
exports.UiFormButtonSchema = exports.UiFormBaseSchema.extend({
|
|
18
18
|
type: zod_1.z.literal('button'),
|
|
@@ -20,7 +20,7 @@ exports.UiFormButtonSchema = exports.UiFormBaseSchema.extend({
|
|
|
20
20
|
.object({
|
|
21
21
|
position: zod_1.z.number().optional(),
|
|
22
22
|
label: zod_1.z.string().optional(),
|
|
23
|
-
props: zod_1.z.record(zod_1.z.any()).optional(),
|
|
23
|
+
props: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
24
24
|
})
|
|
25
25
|
.optional(),
|
|
26
26
|
});
|
|
@@ -29,7 +29,7 @@ exports.UiFormCustomSchema = exports.UiFormBaseSchema.extend({
|
|
|
29
29
|
options: zod_1.z
|
|
30
30
|
.object({
|
|
31
31
|
label: zod_1.z.string().optional(),
|
|
32
|
-
props: zod_1.z.record(zod_1.z.any()).optional(),
|
|
32
|
+
props: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
|
|
33
33
|
})
|
|
34
34
|
.optional(),
|
|
35
35
|
});
|
|
@@ -5,5 +5,5 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const ui_form_element_schema_1 = require("./ui-form-element.schema");
|
|
6
6
|
exports.UiPropertiesSchema = zod_1.z.lazy(() => ui_form_element_schema_1.UiElementSchema.extend({
|
|
7
7
|
items: zod_1.z.union([exports.UiPropertiesSchema, zod_1.z.array(exports.UiPropertiesSchema)]).optional(),
|
|
8
|
-
properties: zod_1.z.record(exports.UiPropertiesSchema).optional(),
|
|
8
|
+
properties: zod_1.z.record(zod_1.z.string(), exports.UiPropertiesSchema).optional(),
|
|
9
9
|
}));
|