blimu 1.1.0 → 1.1.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/index.d.mts +35 -213
- package/dist/index.d.ts +35 -213
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -2,62 +2,24 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const ResourceDefinitionSchema: z.ZodObject<{
|
|
4
4
|
is_tenant: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
roles: z.ZodArray<z.ZodString
|
|
5
|
+
roles: z.ZodArray<z.ZodString>;
|
|
6
6
|
parents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7
7
|
required: z.ZodBoolean;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
required: boolean;
|
|
12
|
-
}>>>;
|
|
13
|
-
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
roles: string[];
|
|
16
|
-
is_tenant?: boolean | undefined;
|
|
17
|
-
parents?: Record<string, {
|
|
18
|
-
required: boolean;
|
|
19
|
-
}> | undefined;
|
|
20
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
roles: string[];
|
|
23
|
-
is_tenant?: boolean | undefined;
|
|
24
|
-
parents?: Record<string, {
|
|
25
|
-
required: boolean;
|
|
26
|
-
}> | undefined;
|
|
27
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
28
|
-
}>;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
29
11
|
declare const EntitlementDefinitionSchema: z.ZodObject<{
|
|
30
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
31
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
12
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
14
|
limit: z.ZodOptional<z.ZodString>;
|
|
33
|
-
},
|
|
34
|
-
roles?: string[] | undefined;
|
|
35
|
-
plans?: string[] | undefined;
|
|
36
|
-
limit?: string | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
roles?: string[] | undefined;
|
|
39
|
-
plans?: string[] | undefined;
|
|
40
|
-
limit?: string | undefined;
|
|
41
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
42
16
|
declare const FeatureDefinitionSchema: z.ZodObject<{
|
|
43
17
|
name: z.ZodString;
|
|
44
18
|
summary: z.ZodOptional<z.ZodString>;
|
|
45
|
-
entitlements: z.ZodOptional<z.ZodArray<z.ZodString
|
|
46
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
19
|
+
entitlements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
21
|
default_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
},
|
|
49
|
-
name: string;
|
|
50
|
-
plans?: string[] | undefined;
|
|
51
|
-
summary?: string | undefined;
|
|
52
|
-
entitlements?: string[] | undefined;
|
|
53
|
-
default_enabled?: boolean | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
name: string;
|
|
56
|
-
plans?: string[] | undefined;
|
|
57
|
-
summary?: string | undefined;
|
|
58
|
-
entitlements?: string[] | undefined;
|
|
59
|
-
default_enabled?: boolean | undefined;
|
|
60
|
-
}>;
|
|
22
|
+
}, z.core.$strip>;
|
|
61
23
|
declare const PlanDefinitionSchema: z.ZodObject<{
|
|
62
24
|
name: z.ZodString;
|
|
63
25
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -65,92 +27,34 @@ declare const PlanDefinitionSchema: z.ZodObject<{
|
|
|
65
27
|
resource_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
66
28
|
usage_based_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
29
|
value: z.ZodNumber;
|
|
68
|
-
period: z.ZodEnum<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}>>>;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
name: string;
|
|
78
|
-
summary?: string | undefined;
|
|
79
|
-
description?: string | undefined;
|
|
80
|
-
resource_limits?: Record<string, number> | undefined;
|
|
81
|
-
usage_based_limits?: Record<string, {
|
|
82
|
-
value: number;
|
|
83
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
84
|
-
}> | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
name: string;
|
|
87
|
-
summary?: string | undefined;
|
|
88
|
-
description?: string | undefined;
|
|
89
|
-
resource_limits?: Record<string, number> | undefined;
|
|
90
|
-
usage_based_limits?: Record<string, {
|
|
91
|
-
value: number;
|
|
92
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
93
|
-
}> | undefined;
|
|
94
|
-
}>;
|
|
30
|
+
period: z.ZodEnum<{
|
|
31
|
+
monthly: "monthly";
|
|
32
|
+
yearly: "yearly";
|
|
33
|
+
lifetime: "lifetime";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
95
37
|
declare const BlimuConfigSchema: z.ZodObject<{
|
|
96
38
|
resources: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
97
39
|
is_tenant: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
roles: z.ZodArray<z.ZodString
|
|
40
|
+
roles: z.ZodArray<z.ZodString>;
|
|
99
41
|
parents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
100
42
|
required: z.ZodBoolean;
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
required: boolean;
|
|
105
|
-
}>>>;
|
|
106
|
-
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
107
|
-
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
roles: string[];
|
|
109
|
-
is_tenant?: boolean | undefined;
|
|
110
|
-
parents?: Record<string, {
|
|
111
|
-
required: boolean;
|
|
112
|
-
}> | undefined;
|
|
113
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
114
|
-
}, {
|
|
115
|
-
roles: string[];
|
|
116
|
-
is_tenant?: boolean | undefined;
|
|
117
|
-
parents?: Record<string, {
|
|
118
|
-
required: boolean;
|
|
119
|
-
}> | undefined;
|
|
120
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
121
|
-
}>>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
122
46
|
entitlements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
123
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
124
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
47
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
49
|
limit: z.ZodOptional<z.ZodString>;
|
|
126
|
-
},
|
|
127
|
-
roles?: string[] | undefined;
|
|
128
|
-
plans?: string[] | undefined;
|
|
129
|
-
limit?: string | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
roles?: string[] | undefined;
|
|
132
|
-
plans?: string[] | undefined;
|
|
133
|
-
limit?: string | undefined;
|
|
134
|
-
}>>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
135
51
|
features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
136
52
|
name: z.ZodString;
|
|
137
53
|
summary: z.ZodOptional<z.ZodString>;
|
|
138
|
-
entitlements: z.ZodOptional<z.ZodArray<z.ZodString
|
|
139
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
54
|
+
entitlements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
55
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
56
|
default_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
-
},
|
|
142
|
-
name: string;
|
|
143
|
-
plans?: string[] | undefined;
|
|
144
|
-
summary?: string | undefined;
|
|
145
|
-
entitlements?: string[] | undefined;
|
|
146
|
-
default_enabled?: boolean | undefined;
|
|
147
|
-
}, {
|
|
148
|
-
name: string;
|
|
149
|
-
plans?: string[] | undefined;
|
|
150
|
-
summary?: string | undefined;
|
|
151
|
-
entitlements?: string[] | undefined;
|
|
152
|
-
default_enabled?: boolean | undefined;
|
|
153
|
-
}>>>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
154
58
|
plans: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
59
|
name: z.ZodString;
|
|
156
60
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -158,96 +62,14 @@ declare const BlimuConfigSchema: z.ZodObject<{
|
|
|
158
62
|
resource_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
159
63
|
usage_based_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
160
64
|
value: z.ZodNumber;
|
|
161
|
-
period: z.ZodEnum<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
name: string;
|
|
171
|
-
summary?: string | undefined;
|
|
172
|
-
description?: string | undefined;
|
|
173
|
-
resource_limits?: Record<string, number> | undefined;
|
|
174
|
-
usage_based_limits?: Record<string, {
|
|
175
|
-
value: number;
|
|
176
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
177
|
-
}> | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
name: string;
|
|
180
|
-
summary?: string | undefined;
|
|
181
|
-
description?: string | undefined;
|
|
182
|
-
resource_limits?: Record<string, number> | undefined;
|
|
183
|
-
usage_based_limits?: Record<string, {
|
|
184
|
-
value: number;
|
|
185
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
186
|
-
}> | undefined;
|
|
187
|
-
}>>>;
|
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
resources: Record<string, {
|
|
190
|
-
roles: string[];
|
|
191
|
-
is_tenant?: boolean | undefined;
|
|
192
|
-
parents?: Record<string, {
|
|
193
|
-
required: boolean;
|
|
194
|
-
}> | undefined;
|
|
195
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
196
|
-
}>;
|
|
197
|
-
plans?: Record<string, {
|
|
198
|
-
name: string;
|
|
199
|
-
summary?: string | undefined;
|
|
200
|
-
description?: string | undefined;
|
|
201
|
-
resource_limits?: Record<string, number> | undefined;
|
|
202
|
-
usage_based_limits?: Record<string, {
|
|
203
|
-
value: number;
|
|
204
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
205
|
-
}> | undefined;
|
|
206
|
-
}> | undefined;
|
|
207
|
-
entitlements?: Record<string, {
|
|
208
|
-
roles?: string[] | undefined;
|
|
209
|
-
plans?: string[] | undefined;
|
|
210
|
-
limit?: string | undefined;
|
|
211
|
-
}> | undefined;
|
|
212
|
-
features?: Record<string, {
|
|
213
|
-
name: string;
|
|
214
|
-
plans?: string[] | undefined;
|
|
215
|
-
summary?: string | undefined;
|
|
216
|
-
entitlements?: string[] | undefined;
|
|
217
|
-
default_enabled?: boolean | undefined;
|
|
218
|
-
}> | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
resources: Record<string, {
|
|
221
|
-
roles: string[];
|
|
222
|
-
is_tenant?: boolean | undefined;
|
|
223
|
-
parents?: Record<string, {
|
|
224
|
-
required: boolean;
|
|
225
|
-
}> | undefined;
|
|
226
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
227
|
-
}>;
|
|
228
|
-
plans?: Record<string, {
|
|
229
|
-
name: string;
|
|
230
|
-
summary?: string | undefined;
|
|
231
|
-
description?: string | undefined;
|
|
232
|
-
resource_limits?: Record<string, number> | undefined;
|
|
233
|
-
usage_based_limits?: Record<string, {
|
|
234
|
-
value: number;
|
|
235
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
236
|
-
}> | undefined;
|
|
237
|
-
}> | undefined;
|
|
238
|
-
entitlements?: Record<string, {
|
|
239
|
-
roles?: string[] | undefined;
|
|
240
|
-
plans?: string[] | undefined;
|
|
241
|
-
limit?: string | undefined;
|
|
242
|
-
}> | undefined;
|
|
243
|
-
features?: Record<string, {
|
|
244
|
-
name: string;
|
|
245
|
-
plans?: string[] | undefined;
|
|
246
|
-
summary?: string | undefined;
|
|
247
|
-
entitlements?: string[] | undefined;
|
|
248
|
-
default_enabled?: boolean | undefined;
|
|
249
|
-
}> | undefined;
|
|
250
|
-
}>;
|
|
65
|
+
period: z.ZodEnum<{
|
|
66
|
+
monthly: "monthly";
|
|
67
|
+
yearly: "yearly";
|
|
68
|
+
lifetime: "lifetime";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
251
73
|
type ResourceDefinition = z.infer<typeof ResourceDefinitionSchema>;
|
|
252
74
|
type EntitlementDefinition = z.infer<typeof EntitlementDefinitionSchema>;
|
|
253
75
|
type FeatureDefinition = z.infer<typeof FeatureDefinitionSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,62 +2,24 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const ResourceDefinitionSchema: z.ZodObject<{
|
|
4
4
|
is_tenant: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
roles: z.ZodArray<z.ZodString
|
|
5
|
+
roles: z.ZodArray<z.ZodString>;
|
|
6
6
|
parents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7
7
|
required: z.ZodBoolean;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
required: boolean;
|
|
12
|
-
}>>>;
|
|
13
|
-
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
roles: string[];
|
|
16
|
-
is_tenant?: boolean | undefined;
|
|
17
|
-
parents?: Record<string, {
|
|
18
|
-
required: boolean;
|
|
19
|
-
}> | undefined;
|
|
20
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
roles: string[];
|
|
23
|
-
is_tenant?: boolean | undefined;
|
|
24
|
-
parents?: Record<string, {
|
|
25
|
-
required: boolean;
|
|
26
|
-
}> | undefined;
|
|
27
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
28
|
-
}>;
|
|
8
|
+
}, z.core.$strip>>>;
|
|
9
|
+
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
29
11
|
declare const EntitlementDefinitionSchema: z.ZodObject<{
|
|
30
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
31
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
12
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
14
|
limit: z.ZodOptional<z.ZodString>;
|
|
33
|
-
},
|
|
34
|
-
roles?: string[] | undefined;
|
|
35
|
-
plans?: string[] | undefined;
|
|
36
|
-
limit?: string | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
roles?: string[] | undefined;
|
|
39
|
-
plans?: string[] | undefined;
|
|
40
|
-
limit?: string | undefined;
|
|
41
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
42
16
|
declare const FeatureDefinitionSchema: z.ZodObject<{
|
|
43
17
|
name: z.ZodString;
|
|
44
18
|
summary: z.ZodOptional<z.ZodString>;
|
|
45
|
-
entitlements: z.ZodOptional<z.ZodArray<z.ZodString
|
|
46
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
19
|
+
entitlements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
21
|
default_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
},
|
|
49
|
-
name: string;
|
|
50
|
-
plans?: string[] | undefined;
|
|
51
|
-
summary?: string | undefined;
|
|
52
|
-
entitlements?: string[] | undefined;
|
|
53
|
-
default_enabled?: boolean | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
name: string;
|
|
56
|
-
plans?: string[] | undefined;
|
|
57
|
-
summary?: string | undefined;
|
|
58
|
-
entitlements?: string[] | undefined;
|
|
59
|
-
default_enabled?: boolean | undefined;
|
|
60
|
-
}>;
|
|
22
|
+
}, z.core.$strip>;
|
|
61
23
|
declare const PlanDefinitionSchema: z.ZodObject<{
|
|
62
24
|
name: z.ZodString;
|
|
63
25
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -65,92 +27,34 @@ declare const PlanDefinitionSchema: z.ZodObject<{
|
|
|
65
27
|
resource_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
66
28
|
usage_based_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
29
|
value: z.ZodNumber;
|
|
68
|
-
period: z.ZodEnum<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}>>>;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
name: string;
|
|
78
|
-
summary?: string | undefined;
|
|
79
|
-
description?: string | undefined;
|
|
80
|
-
resource_limits?: Record<string, number> | undefined;
|
|
81
|
-
usage_based_limits?: Record<string, {
|
|
82
|
-
value: number;
|
|
83
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
84
|
-
}> | undefined;
|
|
85
|
-
}, {
|
|
86
|
-
name: string;
|
|
87
|
-
summary?: string | undefined;
|
|
88
|
-
description?: string | undefined;
|
|
89
|
-
resource_limits?: Record<string, number> | undefined;
|
|
90
|
-
usage_based_limits?: Record<string, {
|
|
91
|
-
value: number;
|
|
92
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
93
|
-
}> | undefined;
|
|
94
|
-
}>;
|
|
30
|
+
period: z.ZodEnum<{
|
|
31
|
+
monthly: "monthly";
|
|
32
|
+
yearly: "yearly";
|
|
33
|
+
lifetime: "lifetime";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
95
37
|
declare const BlimuConfigSchema: z.ZodObject<{
|
|
96
38
|
resources: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
97
39
|
is_tenant: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
roles: z.ZodArray<z.ZodString
|
|
40
|
+
roles: z.ZodArray<z.ZodString>;
|
|
99
41
|
parents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
100
42
|
required: z.ZodBoolean;
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
required: boolean;
|
|
105
|
-
}>>>;
|
|
106
|
-
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
107
|
-
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
roles: string[];
|
|
109
|
-
is_tenant?: boolean | undefined;
|
|
110
|
-
parents?: Record<string, {
|
|
111
|
-
required: boolean;
|
|
112
|
-
}> | undefined;
|
|
113
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
114
|
-
}, {
|
|
115
|
-
roles: string[];
|
|
116
|
-
is_tenant?: boolean | undefined;
|
|
117
|
-
parents?: Record<string, {
|
|
118
|
-
required: boolean;
|
|
119
|
-
}> | undefined;
|
|
120
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
121
|
-
}>>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
roles_inheritance: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
122
46
|
entitlements: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
123
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
124
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
47
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
49
|
limit: z.ZodOptional<z.ZodString>;
|
|
126
|
-
},
|
|
127
|
-
roles?: string[] | undefined;
|
|
128
|
-
plans?: string[] | undefined;
|
|
129
|
-
limit?: string | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
roles?: string[] | undefined;
|
|
132
|
-
plans?: string[] | undefined;
|
|
133
|
-
limit?: string | undefined;
|
|
134
|
-
}>>>;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
135
51
|
features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
136
52
|
name: z.ZodString;
|
|
137
53
|
summary: z.ZodOptional<z.ZodString>;
|
|
138
|
-
entitlements: z.ZodOptional<z.ZodArray<z.ZodString
|
|
139
|
-
plans: z.ZodOptional<z.ZodArray<z.ZodString
|
|
54
|
+
entitlements: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
55
|
+
plans: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
56
|
default_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
-
},
|
|
142
|
-
name: string;
|
|
143
|
-
plans?: string[] | undefined;
|
|
144
|
-
summary?: string | undefined;
|
|
145
|
-
entitlements?: string[] | undefined;
|
|
146
|
-
default_enabled?: boolean | undefined;
|
|
147
|
-
}, {
|
|
148
|
-
name: string;
|
|
149
|
-
plans?: string[] | undefined;
|
|
150
|
-
summary?: string | undefined;
|
|
151
|
-
entitlements?: string[] | undefined;
|
|
152
|
-
default_enabled?: boolean | undefined;
|
|
153
|
-
}>>>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
154
58
|
plans: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
59
|
name: z.ZodString;
|
|
156
60
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -158,96 +62,14 @@ declare const BlimuConfigSchema: z.ZodObject<{
|
|
|
158
62
|
resource_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
159
63
|
usage_based_limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
160
64
|
value: z.ZodNumber;
|
|
161
|
-
period: z.ZodEnum<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
name: string;
|
|
171
|
-
summary?: string | undefined;
|
|
172
|
-
description?: string | undefined;
|
|
173
|
-
resource_limits?: Record<string, number> | undefined;
|
|
174
|
-
usage_based_limits?: Record<string, {
|
|
175
|
-
value: number;
|
|
176
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
177
|
-
}> | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
name: string;
|
|
180
|
-
summary?: string | undefined;
|
|
181
|
-
description?: string | undefined;
|
|
182
|
-
resource_limits?: Record<string, number> | undefined;
|
|
183
|
-
usage_based_limits?: Record<string, {
|
|
184
|
-
value: number;
|
|
185
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
186
|
-
}> | undefined;
|
|
187
|
-
}>>>;
|
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
resources: Record<string, {
|
|
190
|
-
roles: string[];
|
|
191
|
-
is_tenant?: boolean | undefined;
|
|
192
|
-
parents?: Record<string, {
|
|
193
|
-
required: boolean;
|
|
194
|
-
}> | undefined;
|
|
195
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
196
|
-
}>;
|
|
197
|
-
plans?: Record<string, {
|
|
198
|
-
name: string;
|
|
199
|
-
summary?: string | undefined;
|
|
200
|
-
description?: string | undefined;
|
|
201
|
-
resource_limits?: Record<string, number> | undefined;
|
|
202
|
-
usage_based_limits?: Record<string, {
|
|
203
|
-
value: number;
|
|
204
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
205
|
-
}> | undefined;
|
|
206
|
-
}> | undefined;
|
|
207
|
-
entitlements?: Record<string, {
|
|
208
|
-
roles?: string[] | undefined;
|
|
209
|
-
plans?: string[] | undefined;
|
|
210
|
-
limit?: string | undefined;
|
|
211
|
-
}> | undefined;
|
|
212
|
-
features?: Record<string, {
|
|
213
|
-
name: string;
|
|
214
|
-
plans?: string[] | undefined;
|
|
215
|
-
summary?: string | undefined;
|
|
216
|
-
entitlements?: string[] | undefined;
|
|
217
|
-
default_enabled?: boolean | undefined;
|
|
218
|
-
}> | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
resources: Record<string, {
|
|
221
|
-
roles: string[];
|
|
222
|
-
is_tenant?: boolean | undefined;
|
|
223
|
-
parents?: Record<string, {
|
|
224
|
-
required: boolean;
|
|
225
|
-
}> | undefined;
|
|
226
|
-
roles_inheritance?: Record<string, string[]> | undefined;
|
|
227
|
-
}>;
|
|
228
|
-
plans?: Record<string, {
|
|
229
|
-
name: string;
|
|
230
|
-
summary?: string | undefined;
|
|
231
|
-
description?: string | undefined;
|
|
232
|
-
resource_limits?: Record<string, number> | undefined;
|
|
233
|
-
usage_based_limits?: Record<string, {
|
|
234
|
-
value: number;
|
|
235
|
-
period: "monthly" | "yearly" | "lifetime";
|
|
236
|
-
}> | undefined;
|
|
237
|
-
}> | undefined;
|
|
238
|
-
entitlements?: Record<string, {
|
|
239
|
-
roles?: string[] | undefined;
|
|
240
|
-
plans?: string[] | undefined;
|
|
241
|
-
limit?: string | undefined;
|
|
242
|
-
}> | undefined;
|
|
243
|
-
features?: Record<string, {
|
|
244
|
-
name: string;
|
|
245
|
-
plans?: string[] | undefined;
|
|
246
|
-
summary?: string | undefined;
|
|
247
|
-
entitlements?: string[] | undefined;
|
|
248
|
-
default_enabled?: boolean | undefined;
|
|
249
|
-
}> | undefined;
|
|
250
|
-
}>;
|
|
65
|
+
period: z.ZodEnum<{
|
|
66
|
+
monthly: "monthly";
|
|
67
|
+
yearly: "yearly";
|
|
68
|
+
lifetime: "lifetime";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strip>>>;
|
|
71
|
+
}, z.core.$strip>>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
251
73
|
type ResourceDefinition = z.infer<typeof ResourceDefinitionSchema>;
|
|
252
74
|
type EntitlementDefinition = z.infer<typeof EntitlementDefinitionSchema>;
|
|
253
75
|
type FeatureDefinition = z.infer<typeof FeatureDefinitionSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blimu",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Blimu - Authorization as a Service CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@clack/prompts": "^0.11.0",
|
|
23
|
-
"commander": "^
|
|
24
|
-
"zod": "^3.
|
|
23
|
+
"commander": "^14.0.2",
|
|
24
|
+
"zod": "^4.3.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@types/node": "^25.0.
|
|
27
|
+
"@types/node": "^25.0.9",
|
|
28
28
|
"tsup": "^8.5.1",
|
|
29
29
|
"tsx": "^4.21.0",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"vitest": "^4.0.
|
|
31
|
+
"vitest": "^4.0.17"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|