@vllnt/convex-flags 0.1.0-canary.0e432b5

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 (70) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +182 -0
  3. package/dist/client/index.d.ts +122 -0
  4. package/dist/client/index.d.ts.map +1 -0
  5. package/dist/client/index.js +94 -0
  6. package/dist/client/index.js.map +1 -0
  7. package/dist/client/types.d.ts +45 -0
  8. package/dist/client/types.d.ts.map +1 -0
  9. package/dist/client/types.js +2 -0
  10. package/dist/client/types.js.map +1 -0
  11. package/dist/component/_generated/api.d.ts +38 -0
  12. package/dist/component/_generated/api.d.ts.map +1 -0
  13. package/dist/component/_generated/api.js +31 -0
  14. package/dist/component/_generated/api.js.map +1 -0
  15. package/dist/component/_generated/component.d.ts +207 -0
  16. package/dist/component/_generated/component.d.ts.map +1 -0
  17. package/dist/component/_generated/component.js +11 -0
  18. package/dist/component/_generated/component.js.map +1 -0
  19. package/dist/component/_generated/dataModel.d.ts +46 -0
  20. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  21. package/dist/component/_generated/dataModel.js +11 -0
  22. package/dist/component/_generated/dataModel.js.map +1 -0
  23. package/dist/component/_generated/server.d.ts +121 -0
  24. package/dist/component/_generated/server.d.ts.map +1 -0
  25. package/dist/component/_generated/server.js +78 -0
  26. package/dist/component/_generated/server.js.map +1 -0
  27. package/dist/component/convex.config.d.ts +3 -0
  28. package/dist/component/convex.config.d.ts.map +1 -0
  29. package/dist/component/convex.config.js +7 -0
  30. package/dist/component/convex.config.js.map +1 -0
  31. package/dist/component/mutations.d.ts +104 -0
  32. package/dist/component/mutations.d.ts.map +1 -0
  33. package/dist/component/mutations.js +209 -0
  34. package/dist/component/mutations.js.map +1 -0
  35. package/dist/component/queries.d.ts +103 -0
  36. package/dist/component/queries.d.ts.map +1 -0
  37. package/dist/component/queries.js +97 -0
  38. package/dist/component/queries.js.map +1 -0
  39. package/dist/component/schema.d.ts +157 -0
  40. package/dist/component/schema.d.ts.map +1 -0
  41. package/dist/component/schema.js +16 -0
  42. package/dist/component/schema.js.map +1 -0
  43. package/dist/component/validators.d.ts +376 -0
  44. package/dist/component/validators.d.ts.map +1 -0
  45. package/dist/component/validators.js +72 -0
  46. package/dist/component/validators.js.map +1 -0
  47. package/dist/react/index.d.ts +29 -0
  48. package/dist/react/index.d.ts.map +1 -0
  49. package/dist/react/index.js +35 -0
  50. package/dist/react/index.js.map +1 -0
  51. package/dist/shared.d.ts +107 -0
  52. package/dist/shared.d.ts.map +1 -0
  53. package/dist/shared.js +127 -0
  54. package/dist/shared.js.map +1 -0
  55. package/package.json +112 -0
  56. package/src/client/index.ts +242 -0
  57. package/src/client/types.ts +65 -0
  58. package/src/component/_generated/api.ts +54 -0
  59. package/src/component/_generated/component.ts +310 -0
  60. package/src/component/_generated/dataModel.ts +60 -0
  61. package/src/component/_generated/server.ts +156 -0
  62. package/src/component/convex.config.ts +9 -0
  63. package/src/component/mutations.ts +230 -0
  64. package/src/component/queries.ts +115 -0
  65. package/src/component/schema.ts +16 -0
  66. package/src/component/validators.ts +104 -0
  67. package/src/react/index.test.ts +52 -0
  68. package/src/react/index.ts +69 -0
  69. package/src/shared.ts +241 -0
  70. package/src/test.ts +17 -0
@@ -0,0 +1,376 @@
1
+ /**
2
+ * A flag/variant value — typed primitives only (boolean, string, number). The
3
+ * client class is generic over the host's concrete value type; the component
4
+ * stores the typed union. No `v.any()`.
5
+ */
6
+ export declare const variantValue: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
7
+ /** An attribute value usable in a targeting comparison. */
8
+ export declare const attributeValue: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
9
+ /** Comparison operators available to a targeting condition. */
10
+ export declare const conditionOp: import("convex/values").VUnion<"eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte", [import("convex/values").VLiteral<"eq", "required">, import("convex/values").VLiteral<"neq", "required">, import("convex/values").VLiteral<"in", "required">, import("convex/values").VLiteral<"nin", "required">, import("convex/values").VLiteral<"contains", "required">, import("convex/values").VLiteral<"gt", "required">, import("convex/values").VLiteral<"gte", "required">, import("convex/values").VLiteral<"lt", "required">, import("convex/values").VLiteral<"lte", "required">], "required", never>;
11
+ /** One targeting condition: `<attribute> <op> <values>`. */
12
+ export declare const condition: import("convex/values").VObject<{
13
+ values: (string | number | boolean)[];
14
+ attribute: string;
15
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
16
+ }, {
17
+ attribute: import("convex/values").VString<string, "required">;
18
+ op: import("convex/values").VUnion<"eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte", [import("convex/values").VLiteral<"eq", "required">, import("convex/values").VLiteral<"neq", "required">, import("convex/values").VLiteral<"in", "required">, import("convex/values").VLiteral<"nin", "required">, import("convex/values").VLiteral<"contains", "required">, import("convex/values").VLiteral<"gt", "required">, import("convex/values").VLiteral<"gte", "required">, import("convex/values").VLiteral<"lt", "required">, import("convex/values").VLiteral<"lte", "required">], "required", never>;
19
+ values: import("convex/values").VArray<(string | number | boolean)[], import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>, "required">;
20
+ }, "required", "values" | "attribute" | "op">;
21
+ /** One weighted entry in a rollout's distribution. */
22
+ export declare const split: import("convex/values").VObject<{
23
+ value: string | number | boolean;
24
+ weight: number;
25
+ }, {
26
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
27
+ weight: import("convex/values").VFloat64<number, "required">;
28
+ }, "required", "value" | "weight">;
29
+ /** A deterministic weighted distribution across variant values. */
30
+ export declare const rollout: import("convex/values").VObject<{
31
+ by?: string | undefined;
32
+ splits: {
33
+ value: string | number | boolean;
34
+ weight: number;
35
+ }[];
36
+ }, {
37
+ splits: import("convex/values").VArray<{
38
+ value: string | number | boolean;
39
+ weight: number;
40
+ }[], import("convex/values").VObject<{
41
+ value: string | number | boolean;
42
+ weight: number;
43
+ }, {
44
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
45
+ weight: import("convex/values").VFloat64<number, "required">;
46
+ }, "required", "value" | "weight">, "required">;
47
+ by: import("convex/values").VString<string | undefined, "optional">;
48
+ }, "required", "by" | "splits">;
49
+ /** A declared variant (metadata for tooling / labels). */
50
+ export declare const variant: import("convex/values").VObject<{
51
+ label?: string | undefined;
52
+ value: string | number | boolean;
53
+ }, {
54
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
55
+ label: import("convex/values").VString<string | undefined, "optional">;
56
+ }, "required", "value" | "label">;
57
+ /** A targeting rule: all conditions AND; first matching rule (in order) wins. */
58
+ export declare const rule: import("convex/values").VObject<{
59
+ rollout?: {
60
+ by?: string | undefined;
61
+ splits: {
62
+ value: string | number | boolean;
63
+ weight: number;
64
+ }[];
65
+ } | undefined;
66
+ value?: string | number | boolean | undefined;
67
+ conditions: {
68
+ values: (string | number | boolean)[];
69
+ attribute: string;
70
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
71
+ }[];
72
+ }, {
73
+ conditions: import("convex/values").VArray<{
74
+ values: (string | number | boolean)[];
75
+ attribute: string;
76
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
77
+ }[], import("convex/values").VObject<{
78
+ values: (string | number | boolean)[];
79
+ attribute: string;
80
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
81
+ }, {
82
+ attribute: import("convex/values").VString<string, "required">;
83
+ op: import("convex/values").VUnion<"eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte", [import("convex/values").VLiteral<"eq", "required">, import("convex/values").VLiteral<"neq", "required">, import("convex/values").VLiteral<"in", "required">, import("convex/values").VLiteral<"nin", "required">, import("convex/values").VLiteral<"contains", "required">, import("convex/values").VLiteral<"gt", "required">, import("convex/values").VLiteral<"gte", "required">, import("convex/values").VLiteral<"lt", "required">, import("convex/values").VLiteral<"lte", "required">], "required", never>;
84
+ values: import("convex/values").VArray<(string | number | boolean)[], import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>, "required">;
85
+ }, "required", "values" | "attribute" | "op">, "required">;
86
+ value: import("convex/values").VUnion<string | number | boolean | undefined, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
87
+ rollout: import("convex/values").VObject<{
88
+ by?: string | undefined;
89
+ splits: {
90
+ value: string | number | boolean;
91
+ weight: number;
92
+ }[];
93
+ } | undefined, {
94
+ splits: import("convex/values").VArray<{
95
+ value: string | number | boolean;
96
+ weight: number;
97
+ }[], import("convex/values").VObject<{
98
+ value: string | number | boolean;
99
+ weight: number;
100
+ }, {
101
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
102
+ weight: import("convex/values").VFloat64<number, "required">;
103
+ }, "required", "value" | "weight">, "required">;
104
+ by: import("convex/values").VString<string | undefined, "optional">;
105
+ }, "optional", "by" | "splits">;
106
+ }, "required", "rollout" | "value" | "conditions" | "rollout.by" | "rollout.splits">;
107
+ /** Lifecycle status of a flag. */
108
+ export declare const flagStatus: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
109
+ /**
110
+ * Column validators for a stored flag document (excluding Convex system fields).
111
+ * Shared between the schema and the query return validators.
112
+ */
113
+ export declare const flagFields: {
114
+ key: import("convex/values").VString<string, "required">;
115
+ description: import("convex/values").VString<string | undefined, "optional">;
116
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
117
+ variants: import("convex/values").VArray<{
118
+ label?: string | undefined;
119
+ value: string | number | boolean;
120
+ }[] | undefined, import("convex/values").VObject<{
121
+ label?: string | undefined;
122
+ value: string | number | boolean;
123
+ }, {
124
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
125
+ label: import("convex/values").VString<string | undefined, "optional">;
126
+ }, "required", "value" | "label">, "optional">;
127
+ rules: import("convex/values").VArray<{
128
+ rollout?: {
129
+ by?: string | undefined;
130
+ splits: {
131
+ value: string | number | boolean;
132
+ weight: number;
133
+ }[];
134
+ } | undefined;
135
+ value?: string | number | boolean | undefined;
136
+ conditions: {
137
+ values: (string | number | boolean)[];
138
+ attribute: string;
139
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
140
+ }[];
141
+ }[] | undefined, import("convex/values").VObject<{
142
+ rollout?: {
143
+ by?: string | undefined;
144
+ splits: {
145
+ value: string | number | boolean;
146
+ weight: number;
147
+ }[];
148
+ } | undefined;
149
+ value?: string | number | boolean | undefined;
150
+ conditions: {
151
+ values: (string | number | boolean)[];
152
+ attribute: string;
153
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
154
+ }[];
155
+ }, {
156
+ conditions: import("convex/values").VArray<{
157
+ values: (string | number | boolean)[];
158
+ attribute: string;
159
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
160
+ }[], import("convex/values").VObject<{
161
+ values: (string | number | boolean)[];
162
+ attribute: string;
163
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
164
+ }, {
165
+ attribute: import("convex/values").VString<string, "required">;
166
+ op: import("convex/values").VUnion<"eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte", [import("convex/values").VLiteral<"eq", "required">, import("convex/values").VLiteral<"neq", "required">, import("convex/values").VLiteral<"in", "required">, import("convex/values").VLiteral<"nin", "required">, import("convex/values").VLiteral<"contains", "required">, import("convex/values").VLiteral<"gt", "required">, import("convex/values").VLiteral<"gte", "required">, import("convex/values").VLiteral<"lt", "required">, import("convex/values").VLiteral<"lte", "required">], "required", never>;
167
+ values: import("convex/values").VArray<(string | number | boolean)[], import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>, "required">;
168
+ }, "required", "values" | "attribute" | "op">, "required">;
169
+ value: import("convex/values").VUnion<string | number | boolean | undefined, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
170
+ rollout: import("convex/values").VObject<{
171
+ by?: string | undefined;
172
+ splits: {
173
+ value: string | number | boolean;
174
+ weight: number;
175
+ }[];
176
+ } | undefined, {
177
+ splits: import("convex/values").VArray<{
178
+ value: string | number | boolean;
179
+ weight: number;
180
+ }[], import("convex/values").VObject<{
181
+ value: string | number | boolean;
182
+ weight: number;
183
+ }, {
184
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
185
+ weight: import("convex/values").VFloat64<number, "required">;
186
+ }, "required", "value" | "weight">, "required">;
187
+ by: import("convex/values").VString<string | undefined, "optional">;
188
+ }, "optional", "by" | "splits">;
189
+ }, "required", "rollout" | "value" | "conditions" | "rollout.by" | "rollout.splits">, "optional">;
190
+ rollout: import("convex/values").VObject<{
191
+ by?: string | undefined;
192
+ splits: {
193
+ value: string | number | boolean;
194
+ weight: number;
195
+ }[];
196
+ } | undefined, {
197
+ splits: import("convex/values").VArray<{
198
+ value: string | number | boolean;
199
+ weight: number;
200
+ }[], import("convex/values").VObject<{
201
+ value: string | number | boolean;
202
+ weight: number;
203
+ }, {
204
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
205
+ weight: import("convex/values").VFloat64<number, "required">;
206
+ }, "required", "value" | "weight">, "required">;
207
+ by: import("convex/values").VString<string | undefined, "optional">;
208
+ }, "optional", "by" | "splits">;
209
+ status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
210
+ createdAt: import("convex/values").VFloat64<number, "required">;
211
+ updatedAt: import("convex/values").VFloat64<number, "required">;
212
+ };
213
+ /** Public shape of a flag document returned by queries. */
214
+ export declare const flagDoc: import("convex/values").VObject<{
215
+ rollout?: {
216
+ by?: string | undefined;
217
+ splits: {
218
+ value: string | number | boolean;
219
+ weight: number;
220
+ }[];
221
+ } | undefined;
222
+ description?: string | undefined;
223
+ variants?: {
224
+ label?: string | undefined;
225
+ value: string | number | boolean;
226
+ }[] | undefined;
227
+ rules?: {
228
+ rollout?: {
229
+ by?: string | undefined;
230
+ splits: {
231
+ value: string | number | boolean;
232
+ weight: number;
233
+ }[];
234
+ } | undefined;
235
+ value?: string | number | boolean | undefined;
236
+ conditions: {
237
+ values: (string | number | boolean)[];
238
+ attribute: string;
239
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
240
+ }[];
241
+ }[] | undefined;
242
+ key: string;
243
+ value: string | number | boolean;
244
+ _id: import("convex/values").GenericId<"flags">;
245
+ _creationTime: number;
246
+ status: "active" | "archived";
247
+ createdAt: number;
248
+ updatedAt: number;
249
+ }, {
250
+ key: import("convex/values").VString<string, "required">;
251
+ description: import("convex/values").VString<string | undefined, "optional">;
252
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
253
+ variants: import("convex/values").VArray<{
254
+ label?: string | undefined;
255
+ value: string | number | boolean;
256
+ }[] | undefined, import("convex/values").VObject<{
257
+ label?: string | undefined;
258
+ value: string | number | boolean;
259
+ }, {
260
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
261
+ label: import("convex/values").VString<string | undefined, "optional">;
262
+ }, "required", "value" | "label">, "optional">;
263
+ rules: import("convex/values").VArray<{
264
+ rollout?: {
265
+ by?: string | undefined;
266
+ splits: {
267
+ value: string | number | boolean;
268
+ weight: number;
269
+ }[];
270
+ } | undefined;
271
+ value?: string | number | boolean | undefined;
272
+ conditions: {
273
+ values: (string | number | boolean)[];
274
+ attribute: string;
275
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
276
+ }[];
277
+ }[] | undefined, import("convex/values").VObject<{
278
+ rollout?: {
279
+ by?: string | undefined;
280
+ splits: {
281
+ value: string | number | boolean;
282
+ weight: number;
283
+ }[];
284
+ } | undefined;
285
+ value?: string | number | boolean | undefined;
286
+ conditions: {
287
+ values: (string | number | boolean)[];
288
+ attribute: string;
289
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
290
+ }[];
291
+ }, {
292
+ conditions: import("convex/values").VArray<{
293
+ values: (string | number | boolean)[];
294
+ attribute: string;
295
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
296
+ }[], import("convex/values").VObject<{
297
+ values: (string | number | boolean)[];
298
+ attribute: string;
299
+ op: "eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte";
300
+ }, {
301
+ attribute: import("convex/values").VString<string, "required">;
302
+ op: import("convex/values").VUnion<"eq" | "neq" | "in" | "nin" | "contains" | "gt" | "gte" | "lt" | "lte", [import("convex/values").VLiteral<"eq", "required">, import("convex/values").VLiteral<"neq", "required">, import("convex/values").VLiteral<"in", "required">, import("convex/values").VLiteral<"nin", "required">, import("convex/values").VLiteral<"contains", "required">, import("convex/values").VLiteral<"gt", "required">, import("convex/values").VLiteral<"gte", "required">, import("convex/values").VLiteral<"lt", "required">, import("convex/values").VLiteral<"lte", "required">], "required", never>;
303
+ values: import("convex/values").VArray<(string | number | boolean)[], import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>, "required">;
304
+ }, "required", "values" | "attribute" | "op">, "required">;
305
+ value: import("convex/values").VUnion<string | number | boolean | undefined, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "optional", never>;
306
+ rollout: import("convex/values").VObject<{
307
+ by?: string | undefined;
308
+ splits: {
309
+ value: string | number | boolean;
310
+ weight: number;
311
+ }[];
312
+ } | undefined, {
313
+ splits: import("convex/values").VArray<{
314
+ value: string | number | boolean;
315
+ weight: number;
316
+ }[], import("convex/values").VObject<{
317
+ value: string | number | boolean;
318
+ weight: number;
319
+ }, {
320
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
321
+ weight: import("convex/values").VFloat64<number, "required">;
322
+ }, "required", "value" | "weight">, "required">;
323
+ by: import("convex/values").VString<string | undefined, "optional">;
324
+ }, "optional", "by" | "splits">;
325
+ }, "required", "rollout" | "value" | "conditions" | "rollout.by" | "rollout.splits">, "optional">;
326
+ rollout: import("convex/values").VObject<{
327
+ by?: string | undefined;
328
+ splits: {
329
+ value: string | number | boolean;
330
+ weight: number;
331
+ }[];
332
+ } | undefined, {
333
+ splits: import("convex/values").VArray<{
334
+ value: string | number | boolean;
335
+ weight: number;
336
+ }[], import("convex/values").VObject<{
337
+ value: string | number | boolean;
338
+ weight: number;
339
+ }, {
340
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
341
+ weight: import("convex/values").VFloat64<number, "required">;
342
+ }, "required", "value" | "weight">, "required">;
343
+ by: import("convex/values").VString<string | undefined, "optional">;
344
+ }, "optional", "by" | "splits">;
345
+ status: import("convex/values").VUnion<"active" | "archived", [import("convex/values").VLiteral<"active", "required">, import("convex/values").VLiteral<"archived", "required">], "required", never>;
346
+ createdAt: import("convex/values").VFloat64<number, "required">;
347
+ updatedAt: import("convex/values").VFloat64<number, "required">;
348
+ _id: import("convex/values").VId<import("convex/values").GenericId<"flags">, "required">;
349
+ _creationTime: import("convex/values").VFloat64<number, "required">;
350
+ }, "required", "rollout" | "key" | "value" | "description" | "variants" | "rules" | "rollout.by" | "rollout.splits" | "_id" | "_creationTime" | "status" | "createdAt" | "updatedAt">;
351
+ /** Column validators for a stored per-subject override. */
352
+ export declare const overrideFields: {
353
+ key: import("convex/values").VString<string, "required">;
354
+ subjectRef: import("convex/values").VString<string, "required">;
355
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
356
+ createdAt: import("convex/values").VFloat64<number, "required">;
357
+ };
358
+ /** Host-supplied, per-evaluation context. */
359
+ export declare const evalContext: import("convex/values").VObject<{
360
+ subjectRef?: string | undefined;
361
+ attributes?: Record<string, string | number | boolean> | undefined;
362
+ }, {
363
+ subjectRef: import("convex/values").VString<string | undefined, "optional">;
364
+ attributes: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>, "optional", string>;
365
+ }, "required", "subjectRef" | "attributes" | `attributes.${string}`>;
366
+ /** Stable evaluation reason codes (kept in sync with `EVAL_REASON` in shared.ts). */
367
+ export declare const evalReason: import("convex/values").VUnion<"flag" | "rule" | "rollout" | "override" | "disabled" | "default" | "unknown", [import("convex/values").VLiteral<"flag", "required">, import("convex/values").VLiteral<"rule", "required">, import("convex/values").VLiteral<"rollout", "required">, import("convex/values").VLiteral<"override", "required">, import("convex/values").VLiteral<"disabled", "required">, import("convex/values").VLiteral<"default", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
368
+ /** Result of evaluating one flag: the value plus a reason code. */
369
+ export declare const evaluation: import("convex/values").VObject<{
370
+ value: string | number | boolean;
371
+ reason: "flag" | "rule" | "rollout" | "override" | "disabled" | "default" | "unknown";
372
+ }, {
373
+ value: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VBoolean<boolean, "required">, import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">], "required", never>;
374
+ reason: import("convex/values").VUnion<"flag" | "rule" | "rollout" | "override" | "disabled" | "default" | "unknown", [import("convex/values").VLiteral<"flag", "required">, import("convex/values").VLiteral<"rule", "required">, import("convex/values").VLiteral<"rollout", "required">, import("convex/values").VLiteral<"override", "required">, import("convex/values").VLiteral<"disabled", "required">, import("convex/values").VLiteral<"default", "required">, import("convex/values").VLiteral<"unknown", "required">], "required", never>;
375
+ }, "required", "value" | "reason">;
376
+ //# sourceMappingURL=validators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/component/validators.ts"],"names":[],"mappings":"AAEA;;;;GA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 /**
3
+ * A flag/variant value — typed primitives only (boolean, string, number). The
4
+ * client class is generic over the host's concrete value type; the component
5
+ * stores the typed union. No `v.any()`.
6
+ */
7
+ export const variantValue = v.union(v.boolean(), v.string(), v.number());
8
+ /** An attribute value usable in a targeting comparison. */
9
+ export const attributeValue = v.union(v.boolean(), v.string(), v.number());
10
+ /** Comparison operators available to a targeting condition. */
11
+ export const conditionOp = v.union(v.literal("eq"), v.literal("neq"), v.literal("in"), v.literal("nin"), v.literal("contains"), v.literal("gt"), v.literal("gte"), v.literal("lt"), v.literal("lte"));
12
+ /** One targeting condition: `<attribute> <op> <values>`. */
13
+ export const condition = v.object({
14
+ attribute: v.string(),
15
+ op: conditionOp,
16
+ values: v.array(attributeValue),
17
+ });
18
+ /** One weighted entry in a rollout's distribution. */
19
+ export const split = v.object({ value: variantValue, weight: v.number() });
20
+ /** A deterministic weighted distribution across variant values. */
21
+ export const rollout = v.object({
22
+ splits: v.array(split),
23
+ by: v.optional(v.string()),
24
+ });
25
+ /** A declared variant (metadata for tooling / labels). */
26
+ export const variant = v.object({ value: variantValue, label: v.optional(v.string()) });
27
+ /** A targeting rule: all conditions AND; first matching rule (in order) wins. */
28
+ export const rule = v.object({
29
+ conditions: v.array(condition),
30
+ value: v.optional(variantValue),
31
+ rollout: v.optional(rollout),
32
+ });
33
+ /** Lifecycle status of a flag. */
34
+ export const flagStatus = v.union(v.literal("active"), v.literal("archived"));
35
+ /**
36
+ * Column validators for a stored flag document (excluding Convex system fields).
37
+ * Shared between the schema and the query return validators.
38
+ */
39
+ export const flagFields = {
40
+ key: v.string(),
41
+ description: v.optional(v.string()),
42
+ value: variantValue,
43
+ variants: v.optional(v.array(variant)),
44
+ rules: v.optional(v.array(rule)),
45
+ rollout: v.optional(rollout),
46
+ status: flagStatus,
47
+ createdAt: v.number(),
48
+ updatedAt: v.number(),
49
+ };
50
+ /** Public shape of a flag document returned by queries. */
51
+ export const flagDoc = v.object({
52
+ _id: v.id("flags"),
53
+ _creationTime: v.number(),
54
+ ...flagFields,
55
+ });
56
+ /** Column validators for a stored per-subject override. */
57
+ export const overrideFields = {
58
+ key: v.string(),
59
+ subjectRef: v.string(),
60
+ value: variantValue,
61
+ createdAt: v.number(),
62
+ };
63
+ /** Host-supplied, per-evaluation context. */
64
+ export const evalContext = v.object({
65
+ subjectRef: v.optional(v.string()),
66
+ attributes: v.optional(v.record(v.string(), attributeValue)),
67
+ });
68
+ /** Stable evaluation reason codes (kept in sync with `EVAL_REASON` in shared.ts). */
69
+ export const evalReason = v.union(v.literal("flag"), v.literal("rule"), v.literal("rollout"), v.literal("override"), v.literal("disabled"), v.literal("default"), v.literal("unknown"));
70
+ /** Result of evaluating one flag: the value plus a reason code. */
71
+ export const evaluation = v.object({ value: variantValue, reason: evalReason });
72
+ //# sourceMappingURL=validators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/component/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAEzE,2DAA2D;AAC3D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAE3E,+DAA+D;AAC/D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAChC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAChB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAChB,CAA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ClC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,cAAc,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAC/B,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EACjB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EACjB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EACpB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EACrB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EACrB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EACpB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CACrB,CAAC;AAEF,mEAAmE;AACnE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { FunctionReference } from "convex/server";
2
+ import type { EvalContext, FlagEvaluation, VariantValue } from "../shared.js";
3
+ /** The host's re-exported `evaluate` query reference. */
4
+ export type EvaluateRef = FunctionReference<"query", "public", {
5
+ key: string;
6
+ context?: EvalContext;
7
+ default?: VariantValue;
8
+ }, FlagEvaluation>;
9
+ /** The host's re-exported `all` query reference. */
10
+ export type AllRef = FunctionReference<"query", "public", {
11
+ context?: EvalContext;
12
+ }, Record<string, FlagEvaluation>>;
13
+ /** Options for {@link useFlag}. */
14
+ export interface UseFlagOptions {
15
+ context?: EvalContext;
16
+ default?: VariantValue;
17
+ }
18
+ /**
19
+ * Reactively evaluate a single flag. Returns `undefined` while the query loads,
20
+ * then the {@link FlagEvaluation}. Re-renders whenever the flag changes.
21
+ */
22
+ export declare function useFlag(query: EvaluateRef, key: string, options?: UseFlagOptions): FlagEvaluation | undefined;
23
+ /**
24
+ * Reactively evaluate every flag against optional context. Returns `undefined`
25
+ * while loading, then a map of flag key → {@link FlagEvaluation}.
26
+ */
27
+ export declare function useFlags(query: AllRef, context?: EvalContext): Record<string, FlagEvaluation> | undefined;
28
+ export type { EvalContext, FlagEvaluation, VariantValue };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE9E,yDAAyD;AACzD,MAAM,MAAM,WAAW,GAAG,iBAAiB,CACzC,OAAO,EACP,QAAQ,EACR;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,EAC9D,cAAc,CACf,CAAC;AAEF,oDAAoD;AACpD,MAAM,MAAM,MAAM,GAAG,iBAAiB,CACpC,OAAO,EACP,QAAQ,EACR;IAAE,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,EACzB,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAC/B,CAAC;AAEF,mCAAmC;AACnC,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,cAAc,GACvB,cAAc,GAAG,SAAS,CAM5B;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,WAAW,GACpB,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,SAAS,CAE5C;AAED,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Optional React layer for `@vllnt/convex-flags`.
3
+ *
4
+ * Thin, tree-shakeable hooks over `convex/react`'s `useQuery`. They wrap the
5
+ * host's own re-exported `evaluate` / `all` query refs — the component never
6
+ * owns the host's `api`. `react` and `convex/react` are optional peer deps: a
7
+ * backend-only consumer never imports this entry and pulls in zero React.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * // convex/flags.ts (host) re-exports the query refs from its wrappers, then:
12
+ * const evaluation = useFlag(api.flags.evaluate, "new-checkout", { context: { subjectRef } });
13
+ * if (evaluation?.value === true) { ... }
14
+ * ```
15
+ */
16
+ import { useQuery } from "convex/react";
17
+ /**
18
+ * Reactively evaluate a single flag. Returns `undefined` while the query loads,
19
+ * then the {@link FlagEvaluation}. Re-renders whenever the flag changes.
20
+ */
21
+ export function useFlag(query, key, options) {
22
+ return useQuery(query, {
23
+ key,
24
+ context: options?.context,
25
+ default: options?.default,
26
+ });
27
+ }
28
+ /**
29
+ * Reactively evaluate every flag against optional context. Returns `undefined`
30
+ * while loading, then a map of flag key → {@link FlagEvaluation}.
31
+ */
32
+ export function useFlags(query, context) {
33
+ return useQuery(query, { context });
34
+ }
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA0BxC;;;GAGG;AACH,MAAM,UAAU,OAAO,CACrB,KAAkB,EAClB,GAAW,EACX,OAAwB;IAExB,OAAO,QAAQ,CAAC,KAAK,EAAE;QACrB,GAAG;QACH,OAAO,EAAE,OAAO,EAAE,OAAO;QACzB,OAAO,EAAE,OAAO,EAAE,OAAO;KAC1B,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,QAAQ,CACtB,KAAa,EACb,OAAqB;IAErB,OAAO,QAAQ,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;AACtC,CAAC"}