@lssm/lib.feature-flags 0.0.0-canary-20251217083314 → 1.41.1

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