@featurevisor/core 2.24.0 → 2.26.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 (104) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/coverage/clover.xml +1499 -1476
  3. package/coverage/coverage-final.json +18 -17
  4. package/coverage/lcov-report/builder/allocator.ts.html +1 -1
  5. package/coverage/lcov-report/builder/buildDatafile.ts.html +1 -1
  6. package/coverage/lcov-report/builder/buildScopedConditions.ts.html +1 -1
  7. package/coverage/lcov-report/builder/buildScopedDatafile.ts.html +1 -1
  8. package/coverage/lcov-report/builder/buildScopedSegments.ts.html +1 -1
  9. package/coverage/lcov-report/builder/convertToV1.ts.html +1 -1
  10. package/coverage/lcov-report/builder/getFeatureRanges.ts.html +1 -1
  11. package/coverage/lcov-report/builder/hashes.ts.html +1 -1
  12. package/coverage/lcov-report/builder/index.html +1 -1
  13. package/coverage/lcov-report/builder/mutateVariables.ts.html +1 -1
  14. package/coverage/lcov-report/builder/mutator.ts.html +52 -52
  15. package/coverage/lcov-report/builder/revision.ts.html +1 -1
  16. package/coverage/lcov-report/builder/traffic.ts.html +1 -1
  17. package/coverage/lcov-report/config/index.html +1 -1
  18. package/coverage/lcov-report/config/index.ts.html +1 -1
  19. package/coverage/lcov-report/config/projectConfig.ts.html +15 -15
  20. package/coverage/lcov-report/datasource/adapter.ts.html +1 -1
  21. package/coverage/lcov-report/datasource/datasource.ts.html +18 -18
  22. package/coverage/lcov-report/datasource/filesystemAdapter.ts.html +43 -43
  23. package/coverage/lcov-report/datasource/index.html +1 -1
  24. package/coverage/lcov-report/datasource/index.ts.html +1 -1
  25. package/coverage/lcov-report/generate-code/index.html +1 -1
  26. package/coverage/lcov-report/generate-code/typescript.ts.html +1 -1
  27. package/coverage/lcov-report/index.html +18 -18
  28. package/coverage/lcov-report/linter/attributeSchema.ts.html +130 -130
  29. package/coverage/lcov-report/linter/checkCircularDependency.ts.html +11 -11
  30. package/coverage/lcov-report/linter/checkPercentageExceedingSlot.ts.html +15 -15
  31. package/coverage/lcov-report/linter/conditionSchema.ts.html +150 -150
  32. package/coverage/lcov-report/linter/featureSchema.ts.html +458 -443
  33. package/coverage/lcov-report/linter/groupSchema.ts.html +24 -27
  34. package/coverage/lcov-report/linter/index.html +83 -68
  35. package/coverage/lcov-report/linter/lintProject.ts.html +158 -158
  36. package/coverage/lcov-report/linter/mutationNotation.ts.html +104 -104
  37. package/coverage/lcov-report/linter/printError.ts.html +79 -28
  38. package/coverage/lcov-report/linter/schema.ts.html +129 -135
  39. package/coverage/lcov-report/linter/segmentSchema.ts.html +15 -9
  40. package/coverage/lcov-report/linter/testSchema.ts.html +67 -94
  41. package/coverage/lcov-report/linter/zodHelpers.ts.html +133 -0
  42. package/coverage/lcov-report/list/index.html +1 -1
  43. package/coverage/lcov-report/list/matrix.ts.html +1 -1
  44. package/coverage/lcov-report/tester/cliFormat.ts.html +6 -6
  45. package/coverage/lcov-report/tester/helpers.ts.html +1 -1
  46. package/coverage/lcov-report/tester/index.html +1 -1
  47. package/coverage/lcov-report/utils/extractKeys.ts.html +1 -1
  48. package/coverage/lcov-report/utils/git.ts.html +1 -1
  49. package/coverage/lcov-report/utils/index.html +1 -1
  50. package/coverage/lcov-report/utils/index.ts.html +1 -1
  51. package/coverage/lcov-report/utils/pretty.ts.html +1 -1
  52. package/coverage/lcov.info +3031 -2984
  53. package/lib/linter/attributeSchema.d.ts +19 -352
  54. package/lib/linter/attributeSchema.spec.js.map +1 -1
  55. package/lib/linter/conditionSchema.d.ts +1 -1
  56. package/lib/linter/conditionSchema.js +2 -3
  57. package/lib/linter/conditionSchema.js.map +1 -1
  58. package/lib/linter/conditionSchema.spec.js.map +1 -1
  59. package/lib/linter/featureSchema.d.ts +75 -964
  60. package/lib/linter/featureSchema.js +64 -53
  61. package/lib/linter/featureSchema.js.map +1 -1
  62. package/lib/linter/featureSchema.spec.js +28 -0
  63. package/lib/linter/featureSchema.spec.js.map +1 -1
  64. package/lib/linter/groupSchema.d.ts +4 -28
  65. package/lib/linter/groupSchema.js +3 -5
  66. package/lib/linter/groupSchema.js.map +1 -1
  67. package/lib/linter/lintProject.spec.js +101 -13
  68. package/lib/linter/lintProject.spec.js.map +1 -1
  69. package/lib/linter/printError.js +21 -7
  70. package/lib/linter/printError.js.map +1 -1
  71. package/lib/linter/schema.d.ts +9 -2
  72. package/lib/linter/schema.js +2 -6
  73. package/lib/linter/schema.js.map +1 -1
  74. package/lib/linter/schema.spec.js +3 -2
  75. package/lib/linter/schema.spec.js.map +1 -1
  76. package/lib/linter/segmentSchema.d.ts +1 -9
  77. package/lib/linter/segmentSchema.js +3 -1
  78. package/lib/linter/segmentSchema.js.map +1 -1
  79. package/lib/linter/segmentSchema.spec.js.map +1 -1
  80. package/lib/linter/testSchema.d.ts +16 -222
  81. package/lib/linter/testSchema.js +23 -38
  82. package/lib/linter/testSchema.js.map +1 -1
  83. package/lib/linter/testSchema.spec.d.ts +1 -0
  84. package/lib/linter/testSchema.spec.js +162 -0
  85. package/lib/linter/testSchema.spec.js.map +1 -0
  86. package/lib/linter/zodHelpers.d.ts +2 -0
  87. package/lib/linter/zodHelpers.js +15 -0
  88. package/lib/linter/zodHelpers.js.map +1 -0
  89. package/package.json +4 -3
  90. package/src/linter/attributeSchema.spec.ts +3 -3
  91. package/src/linter/conditionSchema.spec.ts +3 -3
  92. package/src/linter/conditionSchema.ts +4 -4
  93. package/src/linter/featureSchema.spec.ts +39 -4
  94. package/src/linter/featureSchema.ts +82 -77
  95. package/src/linter/groupSchema.ts +11 -12
  96. package/src/linter/lintProject.spec.ts +121 -13
  97. package/src/linter/printError.ts +27 -10
  98. package/src/linter/schema.spec.ts +12 -11
  99. package/src/linter/schema.ts +7 -9
  100. package/src/linter/segmentSchema.spec.ts +5 -5
  101. package/src/linter/segmentSchema.ts +3 -1
  102. package/src/linter/testSchema.spec.ts +193 -0
  103. package/src/linter/testSchema.ts +36 -45
  104. package/src/linter/zodHelpers.ts +16 -0
@@ -1,39 +1,36 @@
1
1
  import type { Schema } from "@featurevisor/types";
2
2
  import { z } from "zod";
3
3
  import { ProjectConfig } from "../config";
4
- export declare function getFeatureZodSchema(projectConfig: ProjectConfig, conditionsZodSchema: any, availableAttributeKeys: [string, ...string[]], availableSegmentKeys: [string, ...string[]], availableFeatureKeys: [string, ...string[]], availableSchemaKeys?: string[], schemasByKey?: Record<string, Schema>): z.ZodEffects<z.ZodObject<{
4
+ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, conditionsZodSchema: any, availableAttributeKeys: [string, ...string[]], availableSegmentKeys: [string, ...string[]], availableFeatureKeys: [string, ...string[]], availableSchemaKeys?: string[], schemasByKey?: Record<string, Schema>): z.ZodObject<{
5
5
  archived: z.ZodOptional<z.ZodBoolean>;
6
6
  deprecated: z.ZodOptional<z.ZodBoolean>;
7
7
  description: z.ZodString;
8
- tags: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
9
- required: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
10
- key: z.ZodEffects<z.ZodString, string, string>;
8
+ tags: z.ZodArray<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
9
+ required: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodObject<{
10
+ key: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
11
11
  variation: z.ZodOptional<z.ZodString>;
12
- }, "strict", z.ZodTypeAny, {
13
- key?: string;
14
- variation?: string;
15
- }, {
16
- key?: string;
17
- variation?: string;
18
- }>]>, "many">>;
19
- bucketBy: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
20
- or: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
21
- }, "strict", z.ZodTypeAny, {
22
- or?: string[];
23
- }, {
24
- or?: string[];
25
- }>]>;
26
- variablesSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
12
+ }, z.core.$strict>]>>>;
13
+ bucketBy: z.ZodUnion<readonly [z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>, z.ZodArray<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>, z.ZodObject<{
14
+ or: z.ZodArray<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
15
+ }, z.core.$strict>]>;
16
+ variablesSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
27
17
  deprecated: z.ZodOptional<z.ZodBoolean>;
28
- schema: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
29
- type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"json">, z.ZodEnum<["boolean", "string", "integer", "double", "object", "array"]>]>>;
30
- items: z.ZodOptional<z.ZodType<Schema, z.ZodTypeDef, Schema>>;
31
- properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Schema, z.ZodTypeDef, Schema>>>;
32
- additionalProperties: z.ZodOptional<z.ZodType<Schema, z.ZodTypeDef, Schema>>;
33
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
- enum: z.ZodOptional<z.ZodArray<z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, "many">>;
35
- const: z.ZodOptional<z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>;
36
- oneOf: z.ZodOptional<z.ZodArray<z.ZodType<Schema, z.ZodTypeDef, Schema>, "many">>;
18
+ schema: z.ZodOptional<z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>>;
19
+ type: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"json">, z.ZodEnum<{
20
+ string: "string";
21
+ boolean: "boolean";
22
+ object: "object";
23
+ integer: "integer";
24
+ double: "double";
25
+ array: "array";
26
+ }>]>>;
27
+ items: z.ZodOptional<z.ZodType<Schema, unknown, z.core.$ZodTypeInternals<Schema, unknown>>>;
28
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Schema, unknown, z.core.$ZodTypeInternals<Schema, unknown>>>>;
29
+ additionalProperties: z.ZodOptional<z.ZodType<Schema, unknown, z.core.$ZodTypeInternals<Schema, unknown>>>;
30
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
31
+ enum: z.ZodOptional<z.ZodArray<z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>>>;
32
+ const: z.ZodOptional<z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>>;
33
+ oneOf: z.ZodOptional<z.ZodArray<z.ZodType<Schema, unknown, z.core.$ZodTypeInternals<Schema, unknown>>>>;
37
34
  minimum: z.ZodOptional<z.ZodNumber>;
38
35
  maximum: z.ZodOptional<z.ZodNumber>;
39
36
  minLength: z.ZodOptional<z.ZodNumber>;
@@ -43,969 +40,83 @@ export declare function getFeatureZodSchema(projectConfig: ProjectConfig, condit
43
40
  maxItems: z.ZodOptional<z.ZodNumber>;
44
41
  uniqueItems: z.ZodOptional<z.ZodBoolean>;
45
42
  description: z.ZodOptional<z.ZodString>;
46
- defaultValue: z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>;
47
- disabledValue: z.ZodOptional<z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>>;
43
+ defaultValue: z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>;
44
+ disabledValue: z.ZodOptional<z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>>;
48
45
  useDefaultWhenDisabled: z.ZodOptional<z.ZodBoolean>;
49
- }, "strict", z.ZodTypeAny, {
50
- deprecated?: boolean;
51
- schema?: string;
52
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
53
- items?: Schema;
54
- properties?: Record<string, Schema>;
55
- additionalProperties?: Schema;
56
- required?: string[];
57
- enum?: import("@featurevisor/types").Value[];
58
- const?: import("@featurevisor/types").Value;
59
- oneOf?: Schema[];
60
- minimum?: number;
61
- maximum?: number;
62
- minLength?: number;
63
- maxLength?: number;
64
- pattern?: string;
65
- minItems?: number;
66
- maxItems?: number;
67
- uniqueItems?: boolean;
68
- description?: string;
69
- defaultValue?: import("@featurevisor/types").Value;
70
- disabledValue?: import("@featurevisor/types").Value;
71
- useDefaultWhenDisabled?: boolean;
72
- }, {
73
- deprecated?: boolean;
74
- schema?: string;
75
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
76
- items?: Schema;
77
- properties?: Record<string, Schema>;
78
- additionalProperties?: Schema;
79
- required?: string[];
80
- enum?: import("@featurevisor/types").Value[];
81
- const?: import("@featurevisor/types").Value;
82
- oneOf?: Schema[];
83
- minimum?: number;
84
- maximum?: number;
85
- minLength?: number;
86
- maxLength?: number;
87
- pattern?: string;
88
- minItems?: number;
89
- maxItems?: number;
90
- uniqueItems?: boolean;
91
- description?: string;
92
- defaultValue?: import("@featurevisor/types").Value;
93
- disabledValue?: import("@featurevisor/types").Value;
94
- useDefaultWhenDisabled?: boolean;
95
- }>, {
96
- deprecated?: boolean;
97
- schema?: string;
98
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
99
- items?: Schema;
100
- properties?: Record<string, Schema>;
101
- additionalProperties?: Schema;
102
- required?: string[];
103
- enum?: import("@featurevisor/types").Value[];
104
- const?: import("@featurevisor/types").Value;
105
- oneOf?: Schema[];
106
- minimum?: number;
107
- maximum?: number;
108
- minLength?: number;
109
- maxLength?: number;
110
- pattern?: string;
111
- minItems?: number;
112
- maxItems?: number;
113
- uniqueItems?: boolean;
114
- description?: string;
115
- defaultValue?: import("@featurevisor/types").Value;
116
- disabledValue?: import("@featurevisor/types").Value;
117
- useDefaultWhenDisabled?: boolean;
118
- }, {
119
- deprecated?: boolean;
120
- schema?: string;
121
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
122
- items?: Schema;
123
- properties?: Record<string, Schema>;
124
- additionalProperties?: Schema;
125
- required?: string[];
126
- enum?: import("@featurevisor/types").Value[];
127
- const?: import("@featurevisor/types").Value;
128
- oneOf?: Schema[];
129
- minimum?: number;
130
- maximum?: number;
131
- minLength?: number;
132
- maxLength?: number;
133
- pattern?: string;
134
- minItems?: number;
135
- maxItems?: number;
136
- uniqueItems?: boolean;
137
- description?: string;
138
- defaultValue?: import("@featurevisor/types").Value;
139
- disabledValue?: import("@featurevisor/types").Value;
140
- useDefaultWhenDisabled?: boolean;
141
- }>>>;
46
+ }, z.core.$strict>>>;
142
47
  disabledVariationValue: z.ZodOptional<z.ZodString>;
143
- variations: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
48
+ variations: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
49
  description: z.ZodOptional<z.ZodString>;
145
50
  value: z.ZodString;
146
51
  weight: z.ZodNumber;
147
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
148
- variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
52
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>>;
53
+ variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
149
54
  conditions: any;
150
- value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
151
- }, "strict", z.ZodTypeAny, {
152
- conditions?: any;
153
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
154
- }, {
155
- conditions?: any;
156
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
157
- }>, z.ZodObject<{
158
- segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
159
- value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
160
- }, "strict", z.ZodTypeAny, {
161
- segments?: any;
162
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
163
- }, {
164
- segments?: any;
165
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
166
- }>]>, "many">>>;
167
- }, "strict", z.ZodTypeAny, {
168
- description?: string;
169
- value?: string;
170
- weight?: number;
171
- variables?: Record<string, import("@featurevisor/types").Value>;
172
- variableOverrides?: Record<string, ({
173
- conditions?: any;
174
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
175
- } | {
176
- segments?: any;
177
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
178
- })[]>;
179
- }, {
180
- description?: string;
181
- value?: string;
182
- weight?: number;
183
- variables?: Record<string, import("@featurevisor/types").Value>;
184
- variableOverrides?: Record<string, ({
185
- conditions?: any;
186
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
187
- } | {
188
- segments?: any;
189
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
190
- })[]>;
191
- }>, "many">, {
192
- description?: string;
193
- value?: string;
194
- weight?: number;
195
- variables?: Record<string, import("@featurevisor/types").Value>;
196
- variableOverrides?: Record<string, ({
197
- conditions?: any;
198
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
199
- } | {
200
- segments?: any;
201
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
202
- })[]>;
203
- }[], {
204
- description?: string;
205
- value?: string;
206
- weight?: number;
207
- variables?: Record<string, import("@featurevisor/types").Value>;
208
- variableOverrides?: Record<string, ({
209
- conditions?: any;
210
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
211
- } | {
212
- segments?: any;
213
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
214
- })[]>;
215
- }[]>>;
216
- 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">]>>>>;
217
- force: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
218
- segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
55
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>]>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ segments: z.ZodUnion<readonly [z.ZodArray<any>, any]>;
58
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>]>;
59
+ }, z.core.$strict>]>>>>;
60
+ }, z.core.$strict>>>;
61
+ expose: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>> | z.ZodOptional<z.ZodRecord<z.ZodEnum<{
62
+ [x: string]: string;
63
+ }> & z.core.$partial, z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>>>;
64
+ force: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
65
+ segments: z.ZodUnion<readonly [z.ZodArray<any>, any]>;
219
66
  enabled: z.ZodOptional<z.ZodBoolean>;
220
67
  variation: z.ZodOptional<z.ZodString>;
221
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
222
- }, "strict", z.ZodTypeAny, {
223
- segments?: any;
224
- enabled?: boolean;
225
- variation?: string;
226
- variables?: Record<string, import("@featurevisor/types").Value>;
227
- }, {
228
- segments?: any;
229
- enabled?: boolean;
230
- variation?: string;
231
- variables?: Record<string, import("@featurevisor/types").Value>;
232
- }>, z.ZodObject<{
68
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>>;
69
+ }, z.core.$strict>, z.ZodObject<{
233
70
  conditions: any;
234
71
  enabled: z.ZodOptional<z.ZodBoolean>;
235
72
  variation: z.ZodOptional<z.ZodString>;
236
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
237
- }, "strict", z.ZodTypeAny, {
238
- conditions?: any;
239
- enabled?: boolean;
240
- variation?: string;
241
- variables?: Record<string, import("@featurevisor/types").Value>;
242
- }, {
243
- conditions?: any;
244
- enabled?: boolean;
245
- variation?: string;
246
- variables?: Record<string, import("@featurevisor/types").Value>;
247
- }>]>, "many">> | z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
248
- segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
73
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>>;
74
+ }, z.core.$strict>]>>> | z.ZodOptional<z.ZodRecord<z.ZodEnum<{
75
+ [x: string]: string;
76
+ }> & z.core.$partial, z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
77
+ segments: z.ZodUnion<readonly [z.ZodArray<any>, any]>;
249
78
  enabled: z.ZodOptional<z.ZodBoolean>;
250
79
  variation: z.ZodOptional<z.ZodString>;
251
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
252
- }, "strict", z.ZodTypeAny, {
253
- segments?: any;
254
- enabled?: boolean;
255
- variation?: string;
256
- variables?: Record<string, import("@featurevisor/types").Value>;
257
- }, {
258
- segments?: any;
259
- enabled?: boolean;
260
- variation?: string;
261
- variables?: Record<string, import("@featurevisor/types").Value>;
262
- }>, z.ZodObject<{
80
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>>;
81
+ }, z.core.$strict>, z.ZodObject<{
263
82
  conditions: any;
264
83
  enabled: z.ZodOptional<z.ZodBoolean>;
265
84
  variation: z.ZodOptional<z.ZodString>;
266
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
267
- }, "strict", z.ZodTypeAny, {
268
- conditions?: any;
269
- enabled?: boolean;
270
- variation?: string;
271
- variables?: Record<string, import("@featurevisor/types").Value>;
272
- }, {
273
- conditions?: any;
274
- enabled?: boolean;
275
- variation?: string;
276
- variables?: Record<string, import("@featurevisor/types").Value>;
277
- }>]>, "many">>>>;
278
- rules: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
85
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>>;
86
+ }, z.core.$strict>]>>>>>;
87
+ rules: z.ZodArray<z.ZodObject<{
279
88
  key: z.ZodString;
280
89
  description: z.ZodOptional<z.ZodString>;
281
- segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
90
+ segments: z.ZodUnion<readonly [z.ZodArray<any>, any]>;
282
91
  percentage: z.ZodNumber;
283
92
  enabled: z.ZodOptional<z.ZodBoolean>;
284
93
  variation: z.ZodOptional<z.ZodString>;
285
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
286
- variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
94
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>>;
95
+ variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
287
96
  conditions: any;
288
- value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
289
- }, "strict", z.ZodTypeAny, {
290
- conditions?: any;
291
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
292
- }, {
293
- conditions?: any;
294
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
295
- }>, z.ZodObject<{
296
- segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
297
- value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
298
- }, "strict", z.ZodTypeAny, {
299
- segments?: any;
300
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
301
- }, {
302
- segments?: any;
303
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
304
- }>]>, "many">>>;
97
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>]>;
98
+ }, z.core.$strict>, z.ZodObject<{
99
+ segments: z.ZodUnion<readonly [z.ZodArray<any>, any]>;
100
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>]>;
101
+ }, z.core.$strict>]>>>>;
305
102
  variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
306
- }, "strict", z.ZodTypeAny, {
307
- key?: string;
308
- description?: string;
309
- segments?: any;
310
- percentage?: number;
311
- enabled?: boolean;
312
- variation?: string;
313
- variables?: Record<string, import("@featurevisor/types").Value>;
314
- variableOverrides?: Record<string, ({
315
- conditions?: any;
316
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
317
- } | {
318
- segments?: any;
319
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
320
- })[]>;
321
- variationWeights?: Record<string, number>;
322
- }, {
323
- key?: string;
324
- description?: string;
325
- segments?: any;
326
- percentage?: number;
327
- enabled?: boolean;
328
- variation?: string;
329
- variables?: Record<string, import("@featurevisor/types").Value>;
330
- variableOverrides?: Record<string, ({
331
- conditions?: any;
332
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
333
- } | {
334
- segments?: any;
335
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
336
- })[]>;
337
- variationWeights?: Record<string, number>;
338
- }>, "many">, {
339
- key?: string;
340
- description?: string;
341
- segments?: any;
342
- percentage?: number;
343
- enabled?: boolean;
344
- variation?: string;
345
- variables?: Record<string, import("@featurevisor/types").Value>;
346
- variableOverrides?: Record<string, ({
347
- conditions?: any;
348
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
349
- } | {
350
- segments?: any;
351
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
352
- })[]>;
353
- variationWeights?: Record<string, number>;
354
- }[], {
355
- key?: string;
356
- description?: string;
357
- segments?: any;
358
- percentage?: number;
359
- enabled?: boolean;
360
- variation?: string;
361
- variables?: Record<string, import("@featurevisor/types").Value>;
362
- variableOverrides?: Record<string, ({
363
- conditions?: any;
364
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
365
- } | {
366
- segments?: any;
367
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
368
- })[]>;
369
- variationWeights?: Record<string, number>;
370
- }[]>, {
371
- key?: string;
372
- description?: string;
373
- segments?: any;
374
- percentage?: number;
375
- enabled?: boolean;
376
- variation?: string;
377
- variables?: Record<string, import("@featurevisor/types").Value>;
378
- variableOverrides?: Record<string, ({
379
- conditions?: any;
380
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
381
- } | {
382
- segments?: any;
383
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
384
- })[]>;
385
- variationWeights?: Record<string, number>;
386
- }[], {
387
- key?: string;
388
- description?: string;
389
- segments?: any;
390
- percentage?: number;
391
- enabled?: boolean;
392
- variation?: string;
393
- variables?: Record<string, import("@featurevisor/types").Value>;
394
- variableOverrides?: Record<string, ({
395
- conditions?: any;
396
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
397
- } | {
398
- segments?: any;
399
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
400
- })[]>;
401
- variationWeights?: Record<string, number>;
402
- }[]>, {
403
- key?: string;
404
- description?: string;
405
- segments?: any;
406
- percentage?: number;
407
- enabled?: boolean;
408
- variation?: string;
409
- variables?: Record<string, import("@featurevisor/types").Value>;
410
- variableOverrides?: Record<string, ({
411
- conditions?: any;
412
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
413
- } | {
414
- segments?: any;
415
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
416
- })[]>;
417
- variationWeights?: Record<string, number>;
418
- }[], {
419
- key?: string;
420
- description?: string;
421
- segments?: any;
422
- percentage?: number;
423
- enabled?: boolean;
424
- variation?: string;
425
- variables?: Record<string, import("@featurevisor/types").Value>;
426
- variableOverrides?: Record<string, ({
427
- conditions?: any;
428
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
429
- } | {
430
- segments?: any;
431
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
432
- })[]>;
433
- variationWeights?: Record<string, number>;
434
- }[]> | z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodObject<{
103
+ }, z.core.$strict>> | z.ZodRecord<z.ZodEnum<{
104
+ [x: string]: string;
105
+ }> & z.core.$partial, z.ZodArray<z.ZodObject<{
435
106
  key: z.ZodString;
436
107
  description: z.ZodOptional<z.ZodString>;
437
- segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
108
+ segments: z.ZodUnion<readonly [z.ZodArray<any>, any]>;
438
109
  percentage: z.ZodNumber;
439
110
  enabled: z.ZodOptional<z.ZodBoolean>;
440
111
  variation: z.ZodOptional<z.ZodString>;
441
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>>;
442
- variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
112
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>>;
113
+ variableOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
443
114
  conditions: any;
444
- value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
445
- }, "strict", z.ZodTypeAny, {
446
- conditions?: any;
447
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
448
- }, {
449
- conditions?: any;
450
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
451
- }>, z.ZodObject<{
452
- segments: z.ZodUnion<[z.ZodArray<any, "many">, any]>;
453
- value: z.ZodUnion<[z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<import("@featurevisor/types").Value, z.ZodTypeDef, import("@featurevisor/types").Value>, z.ZodNull]>>]>;
454
- }, "strict", z.ZodTypeAny, {
455
- segments?: any;
456
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
457
- }, {
458
- segments?: any;
459
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
460
- }>]>, "many">>>;
115
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>]>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ segments: z.ZodUnion<readonly [z.ZodArray<any>, any]>;
118
+ value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodType<import("@featurevisor/types").Value, unknown, z.core.$ZodTypeInternals<import("@featurevisor/types").Value, unknown>>, z.ZodNull]>>]>;
119
+ }, z.core.$strict>]>>>>;
461
120
  variationWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
462
- }, "strict", z.ZodTypeAny, {
463
- key?: string;
464
- description?: string;
465
- segments?: any;
466
- percentage?: number;
467
- enabled?: boolean;
468
- variation?: string;
469
- variables?: Record<string, import("@featurevisor/types").Value>;
470
- variableOverrides?: Record<string, ({
471
- conditions?: any;
472
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
473
- } | {
474
- segments?: any;
475
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
476
- })[]>;
477
- variationWeights?: Record<string, number>;
478
- }, {
479
- key?: string;
480
- description?: string;
481
- segments?: any;
482
- percentage?: number;
483
- enabled?: boolean;
484
- variation?: string;
485
- variables?: Record<string, import("@featurevisor/types").Value>;
486
- variableOverrides?: Record<string, ({
487
- conditions?: any;
488
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
489
- } | {
490
- segments?: any;
491
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
492
- })[]>;
493
- variationWeights?: Record<string, number>;
494
- }>, "many">, {
495
- key?: string;
496
- description?: string;
497
- segments?: any;
498
- percentage?: number;
499
- enabled?: boolean;
500
- variation?: string;
501
- variables?: Record<string, import("@featurevisor/types").Value>;
502
- variableOverrides?: Record<string, ({
503
- conditions?: any;
504
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
505
- } | {
506
- segments?: any;
507
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
508
- })[]>;
509
- variationWeights?: Record<string, number>;
510
- }[], {
511
- key?: string;
512
- description?: string;
513
- segments?: any;
514
- percentage?: number;
515
- enabled?: boolean;
516
- variation?: string;
517
- variables?: Record<string, import("@featurevisor/types").Value>;
518
- variableOverrides?: Record<string, ({
519
- conditions?: any;
520
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
521
- } | {
522
- segments?: any;
523
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
524
- })[]>;
525
- variationWeights?: Record<string, number>;
526
- }[]>, {
527
- key?: string;
528
- description?: string;
529
- segments?: any;
530
- percentage?: number;
531
- enabled?: boolean;
532
- variation?: string;
533
- variables?: Record<string, import("@featurevisor/types").Value>;
534
- variableOverrides?: Record<string, ({
535
- conditions?: any;
536
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
537
- } | {
538
- segments?: any;
539
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
540
- })[]>;
541
- variationWeights?: Record<string, number>;
542
- }[], {
543
- key?: string;
544
- description?: string;
545
- segments?: any;
546
- percentage?: number;
547
- enabled?: boolean;
548
- variation?: string;
549
- variables?: Record<string, import("@featurevisor/types").Value>;
550
- variableOverrides?: Record<string, ({
551
- conditions?: any;
552
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
553
- } | {
554
- segments?: any;
555
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
556
- })[]>;
557
- variationWeights?: Record<string, number>;
558
- }[]>, {
559
- key?: string;
560
- description?: string;
561
- segments?: any;
562
- percentage?: number;
563
- enabled?: boolean;
564
- variation?: string;
565
- variables?: Record<string, import("@featurevisor/types").Value>;
566
- variableOverrides?: Record<string, ({
567
- conditions?: any;
568
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
569
- } | {
570
- segments?: any;
571
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
572
- })[]>;
573
- variationWeights?: Record<string, number>;
574
- }[], {
575
- key?: string;
576
- description?: string;
577
- segments?: any;
578
- percentage?: number;
579
- enabled?: boolean;
580
- variation?: string;
581
- variables?: Record<string, import("@featurevisor/types").Value>;
582
- variableOverrides?: Record<string, ({
583
- conditions?: any;
584
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
585
- } | {
586
- segments?: any;
587
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
588
- })[]>;
589
- variationWeights?: Record<string, number>;
590
- }[]>>;
591
- }, "strict", z.ZodTypeAny, {
592
- archived?: boolean;
593
- deprecated?: boolean;
594
- description?: string;
595
- tags?: string[];
596
- required?: (string | {
597
- key?: string;
598
- variation?: string;
599
- })[];
600
- bucketBy?: string | string[] | {
601
- or?: string[];
602
- };
603
- variablesSchema?: Record<string, {
604
- deprecated?: boolean;
605
- schema?: string;
606
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
607
- items?: Schema;
608
- properties?: Record<string, Schema>;
609
- additionalProperties?: Schema;
610
- required?: string[];
611
- enum?: import("@featurevisor/types").Value[];
612
- const?: import("@featurevisor/types").Value;
613
- oneOf?: Schema[];
614
- minimum?: number;
615
- maximum?: number;
616
- minLength?: number;
617
- maxLength?: number;
618
- pattern?: string;
619
- minItems?: number;
620
- maxItems?: number;
621
- uniqueItems?: boolean;
622
- description?: string;
623
- defaultValue?: import("@featurevisor/types").Value;
624
- disabledValue?: import("@featurevisor/types").Value;
625
- useDefaultWhenDisabled?: boolean;
626
- }>;
627
- disabledVariationValue?: string;
628
- variations?: {
629
- description?: string;
630
- value?: string;
631
- weight?: number;
632
- variables?: Record<string, import("@featurevisor/types").Value>;
633
- variableOverrides?: Record<string, ({
634
- conditions?: any;
635
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
636
- } | {
637
- segments?: any;
638
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
639
- })[]>;
640
- }[];
641
- expose?: boolean | string[] | Record<string, boolean | string[]>;
642
- force?: ({
643
- segments?: any;
644
- enabled?: boolean;
645
- variation?: string;
646
- variables?: Record<string, import("@featurevisor/types").Value>;
647
- } | {
648
- conditions?: any;
649
- enabled?: boolean;
650
- variation?: string;
651
- variables?: Record<string, import("@featurevisor/types").Value>;
652
- })[] | Record<string, ({
653
- segments?: any;
654
- enabled?: boolean;
655
- variation?: string;
656
- variables?: Record<string, import("@featurevisor/types").Value>;
657
- } | {
658
- conditions?: any;
659
- enabled?: boolean;
660
- variation?: string;
661
- variables?: Record<string, import("@featurevisor/types").Value>;
662
- })[]>;
663
- rules?: {
664
- key?: string;
665
- description?: string;
666
- segments?: any;
667
- percentage?: number;
668
- enabled?: boolean;
669
- variation?: string;
670
- variables?: Record<string, import("@featurevisor/types").Value>;
671
- variableOverrides?: Record<string, ({
672
- conditions?: any;
673
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
674
- } | {
675
- segments?: any;
676
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
677
- })[]>;
678
- variationWeights?: Record<string, number>;
679
- }[] | Record<string, {
680
- key?: string;
681
- description?: string;
682
- segments?: any;
683
- percentage?: number;
684
- enabled?: boolean;
685
- variation?: string;
686
- variables?: Record<string, import("@featurevisor/types").Value>;
687
- variableOverrides?: Record<string, ({
688
- conditions?: any;
689
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
690
- } | {
691
- segments?: any;
692
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
693
- })[]>;
694
- variationWeights?: Record<string, number>;
695
- }[]>;
696
- }, {
697
- archived?: boolean;
698
- deprecated?: boolean;
699
- description?: string;
700
- tags?: string[];
701
- required?: (string | {
702
- key?: string;
703
- variation?: string;
704
- })[];
705
- bucketBy?: string | string[] | {
706
- or?: string[];
707
- };
708
- variablesSchema?: Record<string, {
709
- deprecated?: boolean;
710
- schema?: string;
711
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
712
- items?: Schema;
713
- properties?: Record<string, Schema>;
714
- additionalProperties?: Schema;
715
- required?: string[];
716
- enum?: import("@featurevisor/types").Value[];
717
- const?: import("@featurevisor/types").Value;
718
- oneOf?: Schema[];
719
- minimum?: number;
720
- maximum?: number;
721
- minLength?: number;
722
- maxLength?: number;
723
- pattern?: string;
724
- minItems?: number;
725
- maxItems?: number;
726
- uniqueItems?: boolean;
727
- description?: string;
728
- defaultValue?: import("@featurevisor/types").Value;
729
- disabledValue?: import("@featurevisor/types").Value;
730
- useDefaultWhenDisabled?: boolean;
731
- }>;
732
- disabledVariationValue?: string;
733
- variations?: {
734
- description?: string;
735
- value?: string;
736
- weight?: number;
737
- variables?: Record<string, import("@featurevisor/types").Value>;
738
- variableOverrides?: Record<string, ({
739
- conditions?: any;
740
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
741
- } | {
742
- segments?: any;
743
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
744
- })[]>;
745
- }[];
746
- expose?: boolean | string[] | Record<string, boolean | string[]>;
747
- force?: ({
748
- segments?: any;
749
- enabled?: boolean;
750
- variation?: string;
751
- variables?: Record<string, import("@featurevisor/types").Value>;
752
- } | {
753
- conditions?: any;
754
- enabled?: boolean;
755
- variation?: string;
756
- variables?: Record<string, import("@featurevisor/types").Value>;
757
- })[] | Record<string, ({
758
- segments?: any;
759
- enabled?: boolean;
760
- variation?: string;
761
- variables?: Record<string, import("@featurevisor/types").Value>;
762
- } | {
763
- conditions?: any;
764
- enabled?: boolean;
765
- variation?: string;
766
- variables?: Record<string, import("@featurevisor/types").Value>;
767
- })[]>;
768
- rules?: {
769
- key?: string;
770
- description?: string;
771
- segments?: any;
772
- percentage?: number;
773
- enabled?: boolean;
774
- variation?: string;
775
- variables?: Record<string, import("@featurevisor/types").Value>;
776
- variableOverrides?: Record<string, ({
777
- conditions?: any;
778
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
779
- } | {
780
- segments?: any;
781
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
782
- })[]>;
783
- variationWeights?: Record<string, number>;
784
- }[] | Record<string, {
785
- key?: string;
786
- description?: string;
787
- segments?: any;
788
- percentage?: number;
789
- enabled?: boolean;
790
- variation?: string;
791
- variables?: Record<string, import("@featurevisor/types").Value>;
792
- variableOverrides?: Record<string, ({
793
- conditions?: any;
794
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
795
- } | {
796
- segments?: any;
797
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
798
- })[]>;
799
- variationWeights?: Record<string, number>;
800
- }[]>;
801
- }>, {
802
- archived?: boolean;
803
- deprecated?: boolean;
804
- description?: string;
805
- tags?: string[];
806
- required?: (string | {
807
- key?: string;
808
- variation?: string;
809
- })[];
810
- bucketBy?: string | string[] | {
811
- or?: string[];
812
- };
813
- variablesSchema?: Record<string, {
814
- deprecated?: boolean;
815
- schema?: string;
816
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
817
- items?: Schema;
818
- properties?: Record<string, Schema>;
819
- additionalProperties?: Schema;
820
- required?: string[];
821
- enum?: import("@featurevisor/types").Value[];
822
- const?: import("@featurevisor/types").Value;
823
- oneOf?: Schema[];
824
- minimum?: number;
825
- maximum?: number;
826
- minLength?: number;
827
- maxLength?: number;
828
- pattern?: string;
829
- minItems?: number;
830
- maxItems?: number;
831
- uniqueItems?: boolean;
832
- description?: string;
833
- defaultValue?: import("@featurevisor/types").Value;
834
- disabledValue?: import("@featurevisor/types").Value;
835
- useDefaultWhenDisabled?: boolean;
836
- }>;
837
- disabledVariationValue?: string;
838
- variations?: {
839
- description?: string;
840
- value?: string;
841
- weight?: number;
842
- variables?: Record<string, import("@featurevisor/types").Value>;
843
- variableOverrides?: Record<string, ({
844
- conditions?: any;
845
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
846
- } | {
847
- segments?: any;
848
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
849
- })[]>;
850
- }[];
851
- expose?: boolean | string[] | Record<string, boolean | string[]>;
852
- force?: ({
853
- segments?: any;
854
- enabled?: boolean;
855
- variation?: string;
856
- variables?: Record<string, import("@featurevisor/types").Value>;
857
- } | {
858
- conditions?: any;
859
- enabled?: boolean;
860
- variation?: string;
861
- variables?: Record<string, import("@featurevisor/types").Value>;
862
- })[] | Record<string, ({
863
- segments?: any;
864
- enabled?: boolean;
865
- variation?: string;
866
- variables?: Record<string, import("@featurevisor/types").Value>;
867
- } | {
868
- conditions?: any;
869
- enabled?: boolean;
870
- variation?: string;
871
- variables?: Record<string, import("@featurevisor/types").Value>;
872
- })[]>;
873
- rules?: {
874
- key?: string;
875
- description?: string;
876
- segments?: any;
877
- percentage?: number;
878
- enabled?: boolean;
879
- variation?: string;
880
- variables?: Record<string, import("@featurevisor/types").Value>;
881
- variableOverrides?: Record<string, ({
882
- conditions?: any;
883
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
884
- } | {
885
- segments?: any;
886
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
887
- })[]>;
888
- variationWeights?: Record<string, number>;
889
- }[] | Record<string, {
890
- key?: string;
891
- description?: string;
892
- segments?: any;
893
- percentage?: number;
894
- enabled?: boolean;
895
- variation?: string;
896
- variables?: Record<string, import("@featurevisor/types").Value>;
897
- variableOverrides?: Record<string, ({
898
- conditions?: any;
899
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
900
- } | {
901
- segments?: any;
902
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
903
- })[]>;
904
- variationWeights?: Record<string, number>;
905
- }[]>;
906
- }, {
907
- archived?: boolean;
908
- deprecated?: boolean;
909
- description?: string;
910
- tags?: string[];
911
- required?: (string | {
912
- key?: string;
913
- variation?: string;
914
- })[];
915
- bucketBy?: string | string[] | {
916
- or?: string[];
917
- };
918
- variablesSchema?: Record<string, {
919
- deprecated?: boolean;
920
- schema?: string;
921
- type?: "string" | "boolean" | "object" | "integer" | "double" | "array" | "json";
922
- items?: Schema;
923
- properties?: Record<string, Schema>;
924
- additionalProperties?: Schema;
925
- required?: string[];
926
- enum?: import("@featurevisor/types").Value[];
927
- const?: import("@featurevisor/types").Value;
928
- oneOf?: Schema[];
929
- minimum?: number;
930
- maximum?: number;
931
- minLength?: number;
932
- maxLength?: number;
933
- pattern?: string;
934
- minItems?: number;
935
- maxItems?: number;
936
- uniqueItems?: boolean;
937
- description?: string;
938
- defaultValue?: import("@featurevisor/types").Value;
939
- disabledValue?: import("@featurevisor/types").Value;
940
- useDefaultWhenDisabled?: boolean;
941
- }>;
942
- disabledVariationValue?: string;
943
- variations?: {
944
- description?: string;
945
- value?: string;
946
- weight?: number;
947
- variables?: Record<string, import("@featurevisor/types").Value>;
948
- variableOverrides?: Record<string, ({
949
- conditions?: any;
950
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
951
- } | {
952
- segments?: any;
953
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
954
- })[]>;
955
- }[];
956
- expose?: boolean | string[] | Record<string, boolean | string[]>;
957
- force?: ({
958
- segments?: any;
959
- enabled?: boolean;
960
- variation?: string;
961
- variables?: Record<string, import("@featurevisor/types").Value>;
962
- } | {
963
- conditions?: any;
964
- enabled?: boolean;
965
- variation?: string;
966
- variables?: Record<string, import("@featurevisor/types").Value>;
967
- })[] | Record<string, ({
968
- segments?: any;
969
- enabled?: boolean;
970
- variation?: string;
971
- variables?: Record<string, import("@featurevisor/types").Value>;
972
- } | {
973
- conditions?: any;
974
- enabled?: boolean;
975
- variation?: string;
976
- variables?: Record<string, import("@featurevisor/types").Value>;
977
- })[]>;
978
- rules?: {
979
- key?: string;
980
- description?: string;
981
- segments?: any;
982
- percentage?: number;
983
- enabled?: boolean;
984
- variation?: string;
985
- variables?: Record<string, import("@featurevisor/types").Value>;
986
- variableOverrides?: Record<string, ({
987
- conditions?: any;
988
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
989
- } | {
990
- segments?: any;
991
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
992
- })[]>;
993
- variationWeights?: Record<string, number>;
994
- }[] | Record<string, {
995
- key?: string;
996
- description?: string;
997
- segments?: any;
998
- percentage?: number;
999
- enabled?: boolean;
1000
- variation?: string;
1001
- variables?: Record<string, import("@featurevisor/types").Value>;
1002
- variableOverrides?: Record<string, ({
1003
- conditions?: any;
1004
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
1005
- } | {
1006
- segments?: any;
1007
- value?: import("@featurevisor/types").Value | Record<string, import("@featurevisor/types").Value>;
1008
- })[]>;
1009
- variationWeights?: Record<string, number>;
1010
- }[]>;
1011
- }>;
121
+ }, z.core.$strict>>>;
122
+ }, z.core.$strict>;