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