@featurevisor/core 2.9.0 → 2.11.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/coverage/clover.xml +2 -2
  3. package/coverage/lcov-report/builder/allocator.ts.html +1 -1
  4. package/coverage/lcov-report/builder/buildScopedConditions.ts.html +1 -1
  5. package/coverage/lcov-report/builder/buildScopedDatafile.ts.html +1 -1
  6. package/coverage/lcov-report/builder/buildScopedSegments.ts.html +1 -1
  7. package/coverage/lcov-report/builder/index.html +1 -1
  8. package/coverage/lcov-report/builder/revision.ts.html +1 -1
  9. package/coverage/lcov-report/builder/traffic.ts.html +1 -1
  10. package/coverage/lcov-report/index.html +1 -1
  11. package/coverage/lcov-report/list/index.html +1 -1
  12. package/coverage/lcov-report/list/matrix.ts.html +1 -1
  13. package/coverage/lcov-report/parsers/index.html +1 -1
  14. package/coverage/lcov-report/parsers/json.ts.html +1 -1
  15. package/coverage/lcov-report/parsers/yml.ts.html +1 -1
  16. package/coverage/lcov-report/tester/helpers.ts.html +1 -1
  17. package/coverage/lcov-report/tester/index.html +1 -1
  18. package/lib/generate-code/typescript.js +150 -16
  19. package/lib/generate-code/typescript.js.map +1 -1
  20. package/lib/linter/featureSchema.d.ts +142 -101
  21. package/lib/linter/featureSchema.js +269 -81
  22. package/lib/linter/featureSchema.js.map +1 -1
  23. package/lib/linter/propertySchema.d.ts +5 -0
  24. package/lib/linter/propertySchema.js +43 -0
  25. package/lib/linter/propertySchema.js.map +1 -0
  26. package/package.json +5 -5
  27. package/src/generate-code/typescript.ts +168 -18
  28. package/src/linter/featureSchema.ts +358 -96
  29. package/src/linter/propertySchema.ts +47 -0
@@ -22,100 +22,129 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
22
22
  }, {
23
23
  or?: string[];
24
24
  }>]>;
25
- variablesSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
25
+ variablesSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
26
26
  deprecated: z.ZodOptional<z.ZodBoolean>;
27
- type: z.ZodEnum<["string", "integer", "boolean", "double", "array", "object", "json"]>;
27
+ type: z.ZodUnion<[z.ZodLiteral<"json">, z.ZodEnum<["boolean", "string", "integer", "double", "object", "array"]>]>;
28
+ items: z.ZodOptional<z.ZodType<import("@featurevisor/types").PropertySchema, z.ZodTypeDef, import("@featurevisor/types").PropertySchema>>;
29
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").PropertySchema, z.ZodTypeDef, import("@featurevisor/types").PropertySchema>>>;
30
+ required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
31
  description: z.ZodOptional<z.ZodString>;
29
- defaultValue: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>;
32
+ defaultValue: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
33
+ disabledValue: z.ZodOptional<z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>;
30
34
  useDefaultWhenDisabled: z.ZodOptional<z.ZodBoolean>;
31
- disabledValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>;
32
35
  }, "strict", z.ZodTypeAny, {
33
36
  deprecated?: boolean;
34
37
  type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
38
+ items?: import("@featurevisor/types").PropertySchema;
39
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
40
+ required?: string[];
35
41
  description?: string;
36
- defaultValue?: string | number | boolean | Record<string, unknown> | string[];
42
+ defaultValue?: import("@featurevisor/types").Value;
43
+ disabledValue?: import("@featurevisor/types").Value;
37
44
  useDefaultWhenDisabled?: boolean;
38
- disabledValue?: string | number | boolean | Record<string, unknown> | string[];
39
45
  }, {
40
46
  deprecated?: boolean;
41
47
  type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
48
+ items?: import("@featurevisor/types").PropertySchema;
49
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
50
+ required?: string[];
42
51
  description?: string;
43
- defaultValue?: string | number | boolean | Record<string, unknown> | string[];
52
+ defaultValue?: import("@featurevisor/types").Value;
53
+ disabledValue?: import("@featurevisor/types").Value;
54
+ useDefaultWhenDisabled?: boolean;
55
+ }>, {
56
+ deprecated?: boolean;
57
+ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
58
+ items?: import("@featurevisor/types").PropertySchema;
59
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
60
+ required?: string[];
61
+ description?: string;
62
+ defaultValue?: import("@featurevisor/types").Value;
63
+ disabledValue?: import("@featurevisor/types").Value;
64
+ useDefaultWhenDisabled?: boolean;
65
+ }, {
66
+ deprecated?: boolean;
67
+ type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
68
+ items?: import("@featurevisor/types").PropertySchema;
69
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
70
+ required?: string[];
71
+ description?: string;
72
+ defaultValue?: import("@featurevisor/types").Value;
73
+ disabledValue?: import("@featurevisor/types").Value;
44
74
  useDefaultWhenDisabled?: boolean;
45
- disabledValue?: string | number | boolean | Record<string, unknown> | string[];
46
75
  }>>>;
47
76
  disabledVariationValue: z.ZodOptional<z.ZodString>;
48
77
  variations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
49
78
  description: z.ZodOptional<z.ZodString>;
50
79
  value: z.ZodString;
51
80
  weight: z.ZodNumber;
52
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
81
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
53
82
  variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
54
83
  conditions: any;
55
- value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>;
84
+ value: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
56
85
  }, "strict", z.ZodTypeAny, {
57
86
  conditions?: any;
58
- value?: string | number | boolean | Record<string, unknown> | string[];
87
+ value?: import("@featurevisor/types").Value;
59
88
  }, {
60
89
  conditions?: any;
61
- value?: string | number | boolean | Record<string, unknown> | string[];
90
+ value?: import("@featurevisor/types").Value;
62
91
  }>, z.ZodObject<{
63
92
  segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
64
- value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>;
93
+ value: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
65
94
  }, "strict", z.ZodTypeAny, {
66
95
  segments?: any;
67
- value?: string | number | boolean | Record<string, unknown> | string[];
96
+ value?: import("@featurevisor/types").Value;
68
97
  }, {
69
98
  segments?: any;
70
- value?: string | number | boolean | Record<string, unknown> | string[];
99
+ value?: import("@featurevisor/types").Value;
71
100
  }>]>, "many">>>;
72
101
  }, "strict", z.ZodTypeAny, {
73
102
  description?: string;
74
103
  value?: string;
75
104
  weight?: number;
76
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
105
+ variables?: Record<string, import("@featurevisor/types").Value>;
77
106
  variableOverrides?: Record<string, ({
78
107
  conditions?: any;
79
- value?: string | number | boolean | Record<string, unknown> | string[];
108
+ value?: import("@featurevisor/types").Value;
80
109
  } | {
81
110
  segments?: any;
82
- value?: string | number | boolean | Record<string, unknown> | string[];
111
+ value?: import("@featurevisor/types").Value;
83
112
  })[]>;
84
113
  }, {
85
114
  description?: string;
86
115
  value?: string;
87
116
  weight?: number;
88
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
117
+ variables?: Record<string, import("@featurevisor/types").Value>;
89
118
  variableOverrides?: Record<string, ({
90
119
  conditions?: any;
91
- value?: string | number | boolean | Record<string, unknown> | string[];
120
+ value?: import("@featurevisor/types").Value;
92
121
  } | {
93
122
  segments?: any;
94
- value?: string | number | boolean | Record<string, unknown> | string[];
123
+ value?: import("@featurevisor/types").Value;
95
124
  })[]>;
96
125
  }>, "many">, {
97
126
  description?: string;
98
127
  value?: string;
99
128
  weight?: number;
100
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
129
+ variables?: Record<string, import("@featurevisor/types").Value>;
101
130
  variableOverrides?: Record<string, ({
102
131
  conditions?: any;
103
- value?: string | number | boolean | Record<string, unknown> | string[];
132
+ value?: import("@featurevisor/types").Value;
104
133
  } | {
105
134
  segments?: any;
106
- value?: string | number | boolean | Record<string, unknown> | string[];
135
+ value?: import("@featurevisor/types").Value;
107
136
  })[]>;
108
137
  }[], {
109
138
  description?: string;
110
139
  value?: string;
111
140
  weight?: number;
112
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
141
+ variables?: Record<string, import("@featurevisor/types").Value>;
113
142
  variableOverrides?: Record<string, ({
114
143
  conditions?: any;
115
- value?: string | number | boolean | Record<string, unknown> | string[];
144
+ value?: import("@featurevisor/types").Value;
116
145
  } | {
117
146
  segments?: any;
118
- value?: string | number | boolean | Record<string, unknown> | string[];
147
+ value?: import("@featurevisor/types").Value;
119
148
  })[]>;
120
149
  }[]>>;
121
150
  expose: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>> | z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>>>;
@@ -123,62 +152,62 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
123
152
  segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
124
153
  enabled: z.ZodOptional<z.ZodBoolean>;
125
154
  variation: z.ZodOptional<z.ZodString>;
126
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
155
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
127
156
  }, "strict", z.ZodTypeAny, {
128
157
  segments?: any;
129
158
  enabled?: boolean;
130
159
  variation?: string;
131
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
160
+ variables?: Record<string, import("@featurevisor/types").Value>;
132
161
  }, {
133
162
  segments?: any;
134
163
  enabled?: boolean;
135
164
  variation?: string;
136
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
165
+ variables?: Record<string, import("@featurevisor/types").Value>;
137
166
  }>, z.ZodObject<{
138
167
  conditions: any;
139
168
  enabled: z.ZodOptional<z.ZodBoolean>;
140
169
  variation: z.ZodOptional<z.ZodString>;
141
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
170
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
142
171
  }, "strict", z.ZodTypeAny, {
143
172
  conditions?: any;
144
173
  enabled?: boolean;
145
174
  variation?: string;
146
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
175
+ variables?: Record<string, import("@featurevisor/types").Value>;
147
176
  }, {
148
177
  conditions?: any;
149
178
  enabled?: boolean;
150
179
  variation?: string;
151
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
180
+ variables?: Record<string, import("@featurevisor/types").Value>;
152
181
  }>]>, "many">> | z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
153
182
  segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
154
183
  enabled: z.ZodOptional<z.ZodBoolean>;
155
184
  variation: z.ZodOptional<z.ZodString>;
156
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
185
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
157
186
  }, "strict", z.ZodTypeAny, {
158
187
  segments?: any;
159
188
  enabled?: boolean;
160
189
  variation?: string;
161
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
190
+ variables?: Record<string, import("@featurevisor/types").Value>;
162
191
  }, {
163
192
  segments?: any;
164
193
  enabled?: boolean;
165
194
  variation?: string;
166
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
195
+ variables?: Record<string, import("@featurevisor/types").Value>;
167
196
  }>, z.ZodObject<{
168
197
  conditions: any;
169
198
  enabled: z.ZodOptional<z.ZodBoolean>;
170
199
  variation: z.ZodOptional<z.ZodString>;
171
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
200
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
172
201
  }, "strict", z.ZodTypeAny, {
173
202
  conditions?: any;
174
203
  enabled?: boolean;
175
204
  variation?: string;
176
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
205
+ variables?: Record<string, import("@featurevisor/types").Value>;
177
206
  }, {
178
207
  conditions?: any;
179
208
  enabled?: boolean;
180
209
  variation?: string;
181
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
210
+ variables?: Record<string, import("@featurevisor/types").Value>;
182
211
  }>]>, "many">>>>;
183
212
  rules: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
184
213
  key: z.ZodString;
@@ -187,7 +216,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
187
216
  percentage: z.ZodNumber;
188
217
  enabled: z.ZodOptional<z.ZodBoolean>;
189
218
  variation: z.ZodOptional<z.ZodString>;
190
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
219
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
191
220
  variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
192
221
  }, "strict", z.ZodTypeAny, {
193
222
  key?: string;
@@ -196,7 +225,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
196
225
  percentage?: number;
197
226
  enabled?: boolean;
198
227
  variation?: string;
199
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
228
+ variables?: Record<string, import("@featurevisor/types").Value>;
200
229
  variationWeights?: Record<string, number>;
201
230
  }, {
202
231
  key?: string;
@@ -205,7 +234,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
205
234
  percentage?: number;
206
235
  enabled?: boolean;
207
236
  variation?: string;
208
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
237
+ variables?: Record<string, import("@featurevisor/types").Value>;
209
238
  variationWeights?: Record<string, number>;
210
239
  }>, "many">, {
211
240
  key?: string;
@@ -214,7 +243,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
214
243
  percentage?: number;
215
244
  enabled?: boolean;
216
245
  variation?: string;
217
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
246
+ variables?: Record<string, import("@featurevisor/types").Value>;
218
247
  variationWeights?: Record<string, number>;
219
248
  }[], {
220
249
  key?: string;
@@ -223,7 +252,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
223
252
  percentage?: number;
224
253
  enabled?: boolean;
225
254
  variation?: string;
226
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
255
+ variables?: Record<string, import("@featurevisor/types").Value>;
227
256
  variationWeights?: Record<string, number>;
228
257
  }[]>, {
229
258
  key?: string;
@@ -232,7 +261,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
232
261
  percentage?: number;
233
262
  enabled?: boolean;
234
263
  variation?: string;
235
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
264
+ variables?: Record<string, import("@featurevisor/types").Value>;
236
265
  variationWeights?: Record<string, number>;
237
266
  }[], {
238
267
  key?: string;
@@ -241,7 +270,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
241
270
  percentage?: number;
242
271
  enabled?: boolean;
243
272
  variation?: string;
244
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
273
+ variables?: Record<string, import("@featurevisor/types").Value>;
245
274
  variationWeights?: Record<string, number>;
246
275
  }[]>, {
247
276
  key?: string;
@@ -250,7 +279,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
250
279
  percentage?: number;
251
280
  enabled?: boolean;
252
281
  variation?: string;
253
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
282
+ variables?: Record<string, import("@featurevisor/types").Value>;
254
283
  variationWeights?: Record<string, number>;
255
284
  }[], {
256
285
  key?: string;
@@ -259,7 +288,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
259
288
  percentage?: number;
260
289
  enabled?: boolean;
261
290
  variation?: string;
262
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
291
+ variables?: Record<string, import("@featurevisor/types").Value>;
263
292
  variationWeights?: Record<string, number>;
264
293
  }[]> | z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
265
294
  key: z.ZodString;
@@ -268,7 +297,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
268
297
  percentage: z.ZodNumber;
269
298
  enabled: z.ZodOptional<z.ZodBoolean>;
270
299
  variation: z.ZodOptional<z.ZodString>;
271
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
300
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>>;
272
301
  variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
273
302
  }, "strict", z.ZodTypeAny, {
274
303
  key?: string;
@@ -277,7 +306,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
277
306
  percentage?: number;
278
307
  enabled?: boolean;
279
308
  variation?: string;
280
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
309
+ variables?: Record<string, import("@featurevisor/types").Value>;
281
310
  variationWeights?: Record<string, number>;
282
311
  }, {
283
312
  key?: string;
@@ -286,7 +315,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
286
315
  percentage?: number;
287
316
  enabled?: boolean;
288
317
  variation?: string;
289
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
318
+ variables?: Record<string, import("@featurevisor/types").Value>;
290
319
  variationWeights?: Record<string, number>;
291
320
  }>, "many">, {
292
321
  key?: string;
@@ -295,7 +324,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
295
324
  percentage?: number;
296
325
  enabled?: boolean;
297
326
  variation?: string;
298
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
327
+ variables?: Record<string, import("@featurevisor/types").Value>;
299
328
  variationWeights?: Record<string, number>;
300
329
  }[], {
301
330
  key?: string;
@@ -304,7 +333,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
304
333
  percentage?: number;
305
334
  enabled?: boolean;
306
335
  variation?: string;
307
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
336
+ variables?: Record<string, import("@featurevisor/types").Value>;
308
337
  variationWeights?: Record<string, number>;
309
338
  }[]>, {
310
339
  key?: string;
@@ -313,7 +342,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
313
342
  percentage?: number;
314
343
  enabled?: boolean;
315
344
  variation?: string;
316
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
345
+ variables?: Record<string, import("@featurevisor/types").Value>;
317
346
  variationWeights?: Record<string, number>;
318
347
  }[], {
319
348
  key?: string;
@@ -322,7 +351,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
322
351
  percentage?: number;
323
352
  enabled?: boolean;
324
353
  variation?: string;
325
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
354
+ variables?: Record<string, import("@featurevisor/types").Value>;
326
355
  variationWeights?: Record<string, number>;
327
356
  }[]>, {
328
357
  key?: string;
@@ -331,7 +360,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
331
360
  percentage?: number;
332
361
  enabled?: boolean;
333
362
  variation?: string;
334
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
363
+ variables?: Record<string, import("@featurevisor/types").Value>;
335
364
  variationWeights?: Record<string, number>;
336
365
  }[], {
337
366
  key?: string;
@@ -340,7 +369,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
340
369
  percentage?: number;
341
370
  enabled?: boolean;
342
371
  variation?: string;
343
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
372
+ variables?: Record<string, import("@featurevisor/types").Value>;
344
373
  variationWeights?: Record<string, number>;
345
374
  }[]>>;
346
375
  }, "strict", z.ZodTypeAny, {
@@ -358,23 +387,26 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
358
387
  variablesSchema?: Record<string, {
359
388
  deprecated?: boolean;
360
389
  type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
390
+ items?: import("@featurevisor/types").PropertySchema;
391
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
392
+ required?: string[];
361
393
  description?: string;
362
- defaultValue?: string | number | boolean | Record<string, unknown> | string[];
394
+ defaultValue?: import("@featurevisor/types").Value;
395
+ disabledValue?: import("@featurevisor/types").Value;
363
396
  useDefaultWhenDisabled?: boolean;
364
- disabledValue?: string | number | boolean | Record<string, unknown> | string[];
365
397
  }>;
366
398
  disabledVariationValue?: string;
367
399
  variations?: {
368
400
  description?: string;
369
401
  value?: string;
370
402
  weight?: number;
371
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
403
+ variables?: Record<string, import("@featurevisor/types").Value>;
372
404
  variableOverrides?: Record<string, ({
373
405
  conditions?: any;
374
- value?: string | number | boolean | Record<string, unknown> | string[];
406
+ value?: import("@featurevisor/types").Value;
375
407
  } | {
376
408
  segments?: any;
377
- value?: string | number | boolean | Record<string, unknown> | string[];
409
+ value?: import("@featurevisor/types").Value;
378
410
  })[]>;
379
411
  }[];
380
412
  expose?: boolean | string[] | Record<string, boolean | string[]>;
@@ -382,22 +414,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
382
414
  segments?: any;
383
415
  enabled?: boolean;
384
416
  variation?: string;
385
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
417
+ variables?: Record<string, import("@featurevisor/types").Value>;
386
418
  } | {
387
419
  conditions?: any;
388
420
  enabled?: boolean;
389
421
  variation?: string;
390
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
422
+ variables?: Record<string, import("@featurevisor/types").Value>;
391
423
  })[] | Record<string, ({
392
424
  segments?: any;
393
425
  enabled?: boolean;
394
426
  variation?: string;
395
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
427
+ variables?: Record<string, import("@featurevisor/types").Value>;
396
428
  } | {
397
429
  conditions?: any;
398
430
  enabled?: boolean;
399
431
  variation?: string;
400
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
432
+ variables?: Record<string, import("@featurevisor/types").Value>;
401
433
  })[]>;
402
434
  rules?: {
403
435
  key?: string;
@@ -406,7 +438,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
406
438
  percentage?: number;
407
439
  enabled?: boolean;
408
440
  variation?: string;
409
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
441
+ variables?: Record<string, import("@featurevisor/types").Value>;
410
442
  variationWeights?: Record<string, number>;
411
443
  }[] | Record<string, {
412
444
  key?: string;
@@ -415,7 +447,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
415
447
  percentage?: number;
416
448
  enabled?: boolean;
417
449
  variation?: string;
418
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
450
+ variables?: Record<string, import("@featurevisor/types").Value>;
419
451
  variationWeights?: Record<string, number>;
420
452
  }[]>;
421
453
  }, {
@@ -433,23 +465,26 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
433
465
  variablesSchema?: Record<string, {
434
466
  deprecated?: boolean;
435
467
  type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
468
+ items?: import("@featurevisor/types").PropertySchema;
469
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
470
+ required?: string[];
436
471
  description?: string;
437
- defaultValue?: string | number | boolean | Record<string, unknown> | string[];
472
+ defaultValue?: import("@featurevisor/types").Value;
473
+ disabledValue?: import("@featurevisor/types").Value;
438
474
  useDefaultWhenDisabled?: boolean;
439
- disabledValue?: string | number | boolean | Record<string, unknown> | string[];
440
475
  }>;
441
476
  disabledVariationValue?: string;
442
477
  variations?: {
443
478
  description?: string;
444
479
  value?: string;
445
480
  weight?: number;
446
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
481
+ variables?: Record<string, import("@featurevisor/types").Value>;
447
482
  variableOverrides?: Record<string, ({
448
483
  conditions?: any;
449
- value?: string | number | boolean | Record<string, unknown> | string[];
484
+ value?: import("@featurevisor/types").Value;
450
485
  } | {
451
486
  segments?: any;
452
- value?: string | number | boolean | Record<string, unknown> | string[];
487
+ value?: import("@featurevisor/types").Value;
453
488
  })[]>;
454
489
  }[];
455
490
  expose?: boolean | string[] | Record<string, boolean | string[]>;
@@ -457,22 +492,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
457
492
  segments?: any;
458
493
  enabled?: boolean;
459
494
  variation?: string;
460
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
495
+ variables?: Record<string, import("@featurevisor/types").Value>;
461
496
  } | {
462
497
  conditions?: any;
463
498
  enabled?: boolean;
464
499
  variation?: string;
465
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
500
+ variables?: Record<string, import("@featurevisor/types").Value>;
466
501
  })[] | Record<string, ({
467
502
  segments?: any;
468
503
  enabled?: boolean;
469
504
  variation?: string;
470
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
505
+ variables?: Record<string, import("@featurevisor/types").Value>;
471
506
  } | {
472
507
  conditions?: any;
473
508
  enabled?: boolean;
474
509
  variation?: string;
475
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
510
+ variables?: Record<string, import("@featurevisor/types").Value>;
476
511
  })[]>;
477
512
  rules?: {
478
513
  key?: string;
@@ -481,7 +516,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
481
516
  percentage?: number;
482
517
  enabled?: boolean;
483
518
  variation?: string;
484
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
519
+ variables?: Record<string, import("@featurevisor/types").Value>;
485
520
  variationWeights?: Record<string, number>;
486
521
  }[] | Record<string, {
487
522
  key?: string;
@@ -490,7 +525,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
490
525
  percentage?: number;
491
526
  enabled?: boolean;
492
527
  variation?: string;
493
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
528
+ variables?: Record<string, import("@featurevisor/types").Value>;
494
529
  variationWeights?: Record<string, number>;
495
530
  }[]>;
496
531
  }>, {
@@ -508,23 +543,26 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
508
543
  variablesSchema?: Record<string, {
509
544
  deprecated?: boolean;
510
545
  type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
546
+ items?: import("@featurevisor/types").PropertySchema;
547
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
548
+ required?: string[];
511
549
  description?: string;
512
- defaultValue?: string | number | boolean | Record<string, unknown> | string[];
550
+ defaultValue?: import("@featurevisor/types").Value;
551
+ disabledValue?: import("@featurevisor/types").Value;
513
552
  useDefaultWhenDisabled?: boolean;
514
- disabledValue?: string | number | boolean | Record<string, unknown> | string[];
515
553
  }>;
516
554
  disabledVariationValue?: string;
517
555
  variations?: {
518
556
  description?: string;
519
557
  value?: string;
520
558
  weight?: number;
521
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
559
+ variables?: Record<string, import("@featurevisor/types").Value>;
522
560
  variableOverrides?: Record<string, ({
523
561
  conditions?: any;
524
- value?: string | number | boolean | Record<string, unknown> | string[];
562
+ value?: import("@featurevisor/types").Value;
525
563
  } | {
526
564
  segments?: any;
527
- value?: string | number | boolean | Record<string, unknown> | string[];
565
+ value?: import("@featurevisor/types").Value;
528
566
  })[]>;
529
567
  }[];
530
568
  expose?: boolean | string[] | Record<string, boolean | string[]>;
@@ -532,22 +570,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
532
570
  segments?: any;
533
571
  enabled?: boolean;
534
572
  variation?: string;
535
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
573
+ variables?: Record<string, import("@featurevisor/types").Value>;
536
574
  } | {
537
575
  conditions?: any;
538
576
  enabled?: boolean;
539
577
  variation?: string;
540
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
578
+ variables?: Record<string, import("@featurevisor/types").Value>;
541
579
  })[] | Record<string, ({
542
580
  segments?: any;
543
581
  enabled?: boolean;
544
582
  variation?: string;
545
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
583
+ variables?: Record<string, import("@featurevisor/types").Value>;
546
584
  } | {
547
585
  conditions?: any;
548
586
  enabled?: boolean;
549
587
  variation?: string;
550
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
588
+ variables?: Record<string, import("@featurevisor/types").Value>;
551
589
  })[]>;
552
590
  rules?: {
553
591
  key?: string;
@@ -556,7 +594,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
556
594
  percentage?: number;
557
595
  enabled?: boolean;
558
596
  variation?: string;
559
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
597
+ variables?: Record<string, import("@featurevisor/types").Value>;
560
598
  variationWeights?: Record<string, number>;
561
599
  }[] | Record<string, {
562
600
  key?: string;
@@ -565,7 +603,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
565
603
  percentage?: number;
566
604
  enabled?: boolean;
567
605
  variation?: string;
568
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
606
+ variables?: Record<string, import("@featurevisor/types").Value>;
569
607
  variationWeights?: Record<string, number>;
570
608
  }[]>;
571
609
  }, {
@@ -583,23 +621,26 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
583
621
  variablesSchema?: Record<string, {
584
622
  deprecated?: boolean;
585
623
  type?: "string" | "boolean" | "object" | "json" | "integer" | "double" | "array";
624
+ items?: import("@featurevisor/types").PropertySchema;
625
+ properties?: Record<string, import("@featurevisor/types").PropertySchema>;
626
+ required?: string[];
586
627
  description?: string;
587
- defaultValue?: string | number | boolean | Record<string, unknown> | string[];
628
+ defaultValue?: import("@featurevisor/types").Value;
629
+ disabledValue?: import("@featurevisor/types").Value;
588
630
  useDefaultWhenDisabled?: boolean;
589
- disabledValue?: string | number | boolean | Record<string, unknown> | string[];
590
631
  }>;
591
632
  disabledVariationValue?: string;
592
633
  variations?: {
593
634
  description?: string;
594
635
  value?: string;
595
636
  weight?: number;
596
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
637
+ variables?: Record<string, import("@featurevisor/types").Value>;
597
638
  variableOverrides?: Record<string, ({
598
639
  conditions?: any;
599
- value?: string | number | boolean | Record<string, unknown> | string[];
640
+ value?: import("@featurevisor/types").Value;
600
641
  } | {
601
642
  segments?: any;
602
- value?: string | number | boolean | Record<string, unknown> | string[];
643
+ value?: import("@featurevisor/types").Value;
603
644
  })[]>;
604
645
  }[];
605
646
  expose?: boolean | string[] | Record<string, boolean | string[]>;
@@ -607,22 +648,22 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
607
648
  segments?: any;
608
649
  enabled?: boolean;
609
650
  variation?: string;
610
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
651
+ variables?: Record<string, import("@featurevisor/types").Value>;
611
652
  } | {
612
653
  conditions?: any;
613
654
  enabled?: boolean;
614
655
  variation?: string;
615
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
656
+ variables?: Record<string, import("@featurevisor/types").Value>;
616
657
  })[] | Record<string, ({
617
658
  segments?: any;
618
659
  enabled?: boolean;
619
660
  variation?: string;
620
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
661
+ variables?: Record<string, import("@featurevisor/types").Value>;
621
662
  } | {
622
663
  conditions?: any;
623
664
  enabled?: boolean;
624
665
  variation?: string;
625
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
666
+ variables?: Record<string, import("@featurevisor/types").Value>;
626
667
  })[]>;
627
668
  rules?: {
628
669
  key?: string;
@@ -631,7 +672,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
631
672
  percentage?: number;
632
673
  enabled?: boolean;
633
674
  variation?: string;
634
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
675
+ variables?: Record<string, import("@featurevisor/types").Value>;
635
676
  variationWeights?: Record<string, number>;
636
677
  }[] | Record<string, {
637
678
  key?: string;
@@ -640,7 +681,7 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
640
681
  percentage?: number;
641
682
  enabled?: boolean;
642
683
  variation?: string;
643
- variables?: Record<string, string | number | boolean | Record<string, unknown> | string[]>;
684
+ variables?: Record<string, import("@featurevisor/types").Value>;
644
685
  variationWeights?: Record<string, number>;
645
686
  }[]>;
646
687
  }>;