@contractspec/lib.feature-flags 1.56.1 → 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 (279) 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 -953
  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 -489
  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 -8
  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 -7
  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/contracts/src/app-config/lifecycle.d.ts +0 -1
  49. package/dist/contracts/src/app-config/runtime.d.ts +0 -13
  50. package/dist/contracts/src/app-config/spec.d.ts +0 -9
  51. package/dist/contracts/src/app-config/validation.d.ts +0 -8
  52. package/dist/contracts/src/capabilities/capabilities.d.ts +0 -60
  53. package/dist/contracts/src/capabilities/capabilities.d.ts.map +0 -1
  54. package/dist/contracts/src/capabilities/context.d.ts +0 -1
  55. package/dist/contracts/src/capabilities/guards.d.ts +0 -4
  56. package/dist/contracts/src/capabilities/index.d.ts +0 -5
  57. package/dist/contracts/src/capabilities/openbanking.d.ts +0 -1
  58. package/dist/contracts/src/capabilities/validation.d.ts +0 -4
  59. package/dist/contracts/src/client/index.d.ts +0 -1
  60. package/dist/contracts/src/client/react/drivers/rn-reusables.d.ts +0 -1
  61. package/dist/contracts/src/client/react/drivers/shadcn.d.ts +0 -1
  62. package/dist/contracts/src/client/react/feature-render.d.ts +0 -3
  63. package/dist/contracts/src/client/react/form-render.d.ts +0 -4
  64. package/dist/contracts/src/client/react/index.d.ts +0 -4
  65. package/dist/contracts/src/contract-registry/index.d.ts +0 -2
  66. package/dist/contracts/src/contract-registry/schemas.d.ts +0 -2
  67. package/dist/contracts/src/contract-registry/types.d.ts +0 -1
  68. package/dist/contracts/src/data-views/index.d.ts +0 -4
  69. package/dist/contracts/src/data-views/registry.d.ts +0 -2
  70. package/dist/contracts/src/data-views/report/contractVerificationTable.d.ts +0 -1
  71. package/dist/contracts/src/data-views/spec.d.ts +0 -3
  72. package/dist/contracts/src/data-views/types.d.ts +0 -2
  73. package/dist/contracts/src/docs/accessibility_wcag_compliance_specs.docblock.d.ts +0 -1
  74. package/dist/contracts/src/docs/capabilities/documentationSystem.capability.d.ts +0 -1
  75. package/dist/contracts/src/docs/capabilities/index.d.ts +0 -1
  76. package/dist/contracts/src/docs/commands/docsGenerate.command.d.ts +0 -2
  77. package/dist/contracts/src/docs/commands/docsPublish.command.d.ts +0 -2
  78. package/dist/contracts/src/docs/commands/index.d.ts +0 -2
  79. package/dist/contracts/src/docs/contracts.d.ts +0 -7
  80. package/dist/contracts/src/docs/events/docsGenerated.event.d.ts +0 -2
  81. package/dist/contracts/src/docs/events/docsPublished.event.d.ts +0 -2
  82. package/dist/contracts/src/docs/events/index.d.ts +0 -2
  83. package/dist/contracts/src/docs/forms/docsSearch.form.d.ts +0 -2
  84. package/dist/contracts/src/docs/forms/index.d.ts +0 -1
  85. package/dist/contracts/src/docs/index.d.ts +0 -33
  86. package/dist/contracts/src/docs/presentations/docsLayout.presentation.d.ts +0 -1
  87. package/dist/contracts/src/docs/presentations/docsReferencePage.presentation.d.ts +0 -1
  88. package/dist/contracts/src/docs/presentations/index.d.ts +0 -2
  89. package/dist/contracts/src/docs/presentations.d.ts +0 -2
  90. package/dist/contracts/src/docs/queries/contractReference.query.d.ts +0 -2
  91. package/dist/contracts/src/docs/queries/docsIndex.query.d.ts +0 -2
  92. package/dist/contracts/src/docs/queries/index.d.ts +0 -2
  93. package/dist/contracts/src/docs/registry.d.ts +0 -10
  94. package/dist/contracts/src/docs/registry.d.ts.map +0 -1
  95. package/dist/contracts/src/docs/tech/auth/better-auth-nextjs.docblock.d.ts +0 -1
  96. package/dist/contracts/src/docs/tech/contracts/README.docblock.d.ts +0 -1
  97. package/dist/contracts/src/docs/tech/contracts/openapi-export.docblock.d.ts +0 -1
  98. package/dist/contracts/src/docs/tech/contracts/openapi-import.docblock.d.ts +0 -1
  99. package/dist/contracts/src/docs/tech/lifecycle-stage-system.docblock.d.ts +0 -1
  100. package/dist/contracts/src/docs/tech/llm/llm-integration.docblock.d.ts +0 -1
  101. package/dist/contracts/src/docs/tech/mcp-endpoints.docblock.d.ts +0 -1
  102. package/dist/contracts/src/docs/tech/presentation-runtime.docblock.d.ts +0 -1
  103. package/dist/contracts/src/docs/tech/schema/README.docblock.d.ts +0 -1
  104. package/dist/contracts/src/docs/tech/studio/learning-events.docblock.d.ts +0 -1
  105. package/dist/contracts/src/docs/tech/studio/learning-journeys.docblock.d.ts +0 -1
  106. package/dist/contracts/src/docs/tech/studio/platform-admin-panel.docblock.d.ts +0 -1
  107. package/dist/contracts/src/docs/tech/studio/project-access-teams.docblock.d.ts +0 -1
  108. package/dist/contracts/src/docs/tech/studio/project-routing.docblock.d.ts +0 -1
  109. package/dist/contracts/src/docs/tech/studio/sandbox-unlogged.docblock.d.ts +0 -1
  110. package/dist/contracts/src/docs/tech/studio/team-invitations.docblock.d.ts +0 -1
  111. package/dist/contracts/src/docs/tech/studio/workspace-ops.docblock.d.ts +0 -1
  112. package/dist/contracts/src/docs/tech/studio/workspaces.docblock.d.ts +0 -1
  113. package/dist/contracts/src/docs/tech/telemetry-ingest.docblock.d.ts +0 -1
  114. package/dist/contracts/src/docs/tech/vscode-extension.docblock.d.ts +0 -1
  115. package/dist/contracts/src/docs/views/contractReference.dataView.d.ts +0 -1
  116. package/dist/contracts/src/docs/views/docsIndex.dataView.d.ts +0 -1
  117. package/dist/contracts/src/docs/views/exampleCatalog.dataView.d.ts +0 -1
  118. package/dist/contracts/src/docs/views/index.d.ts +0 -3
  119. package/dist/contracts/src/events.d.ts +0 -45
  120. package/dist/contracts/src/events.d.ts.map +0 -1
  121. package/dist/contracts/src/examples/index.d.ts +0 -4
  122. package/dist/contracts/src/examples/registry.d.ts +0 -2
  123. package/dist/contracts/src/examples/schema.d.ts +0 -2
  124. package/dist/contracts/src/examples/types.d.ts +0 -3
  125. package/dist/contracts/src/examples/validation.d.ts +0 -1
  126. package/dist/contracts/src/experiments/evaluator.d.ts +0 -2
  127. package/dist/contracts/src/experiments/spec-resolver.d.ts +0 -4
  128. package/dist/contracts/src/experiments/spec.d.ts +0 -16
  129. package/dist/contracts/src/experiments/spec.d.ts.map +0 -1
  130. package/dist/contracts/src/features/index.d.ts +0 -4
  131. package/dist/contracts/src/features/install.d.ts +0 -6
  132. package/dist/contracts/src/features/registry.d.ts +0 -2
  133. package/dist/contracts/src/features/types.d.ts +0 -80
  134. package/dist/contracts/src/features/types.d.ts.map +0 -1
  135. package/dist/contracts/src/features/validation.d.ts +0 -2
  136. package/dist/contracts/src/forms/forms.d.ts +0 -3
  137. package/dist/contracts/src/forms/index.d.ts +0 -1
  138. package/dist/contracts/src/index.d.ts +0 -53
  139. package/dist/contracts/src/install.d.ts +0 -7
  140. package/dist/contracts/src/integrations/connection.d.ts +0 -1
  141. package/dist/contracts/src/integrations/index.d.ts +0 -6
  142. package/dist/contracts/src/integrations/openbanking/contracts/accounts.d.ts +0 -4
  143. package/dist/contracts/src/integrations/openbanking/contracts/balances.d.ts +0 -4
  144. package/dist/contracts/src/integrations/openbanking/contracts/index.d.ts +0 -5
  145. package/dist/contracts/src/integrations/openbanking/contracts/transactions.d.ts +0 -4
  146. package/dist/contracts/src/integrations/openbanking/guards.d.ts +0 -1
  147. package/dist/contracts/src/integrations/openbanking/models.d.ts +0 -1
  148. package/dist/contracts/src/integrations/openbanking/openbanking.feature.d.ts +0 -1
  149. package/dist/contracts/src/integrations/operations.d.ts +0 -4
  150. package/dist/contracts/src/integrations/providers/elevenlabs.d.ts +0 -2
  151. package/dist/contracts/src/integrations/providers/gcs-storage.d.ts +0 -2
  152. package/dist/contracts/src/integrations/providers/gmail.d.ts +0 -2
  153. package/dist/contracts/src/integrations/providers/google-calendar.d.ts +0 -2
  154. package/dist/contracts/src/integrations/providers/index.d.ts +0 -11
  155. package/dist/contracts/src/integrations/providers/mistral.d.ts +0 -2
  156. package/dist/contracts/src/integrations/providers/postmark.d.ts +0 -2
  157. package/dist/contracts/src/integrations/providers/powens.d.ts +0 -2
  158. package/dist/contracts/src/integrations/providers/qdrant.d.ts +0 -2
  159. package/dist/contracts/src/integrations/providers/registry.d.ts +0 -1
  160. package/dist/contracts/src/integrations/providers/stripe.d.ts +0 -2
  161. package/dist/contracts/src/integrations/providers/twilio-sms.d.ts +0 -2
  162. package/dist/contracts/src/integrations/spec.d.ts +0 -3
  163. package/dist/contracts/src/jsonschema.d.ts +0 -4
  164. package/dist/contracts/src/knowledge/index.d.ts +0 -2
  165. package/dist/contracts/src/knowledge/operations.d.ts +0 -4
  166. package/dist/contracts/src/knowledge/spaces/email-threads.d.ts +0 -1
  167. package/dist/contracts/src/knowledge/spaces/financial-docs.d.ts +0 -1
  168. package/dist/contracts/src/knowledge/spaces/financial-overview.d.ts +0 -1
  169. package/dist/contracts/src/knowledge/spaces/index.d.ts +0 -6
  170. package/dist/contracts/src/knowledge/spaces/product-canon.d.ts +0 -1
  171. package/dist/contracts/src/knowledge/spaces/support-faq.d.ts +0 -1
  172. package/dist/contracts/src/knowledge/spaces/uploaded-docs.d.ts +0 -1
  173. package/dist/contracts/src/knowledge/spec.d.ts +0 -3
  174. package/dist/contracts/src/llm/exporters.d.ts +0 -7
  175. package/dist/contracts/src/llm/index.d.ts +0 -3
  176. package/dist/contracts/src/llm/prompts.d.ts +0 -2
  177. package/dist/contracts/src/llm/types.d.ts +0 -5
  178. package/dist/contracts/src/migrations.d.ts +0 -1
  179. package/dist/contracts/src/model-registry.d.ts +0 -1
  180. package/dist/contracts/src/onboarding-base.d.ts +0 -2
  181. package/dist/contracts/src/openapi.d.ts +0 -1
  182. package/dist/contracts/src/operations/index.d.ts +0 -3
  183. package/dist/contracts/src/operations/operation.d.ts +0 -176
  184. package/dist/contracts/src/operations/operation.d.ts.map +0 -1
  185. package/dist/contracts/src/operations/registry.d.ts +0 -6
  186. package/dist/contracts/src/operations/report/getContractVerificationStatus.d.ts +0 -3
  187. package/dist/contracts/src/operations/report/index.d.ts +0 -4
  188. package/dist/contracts/src/ownership.d.ts +0 -164
  189. package/dist/contracts/src/ownership.d.ts.map +0 -1
  190. package/dist/contracts/src/policy/engine.d.ts +0 -3
  191. package/dist/contracts/src/policy/guards.d.ts +0 -1
  192. package/dist/contracts/src/policy/index.d.ts +0 -6
  193. package/dist/contracts/src/policy/opa-adapter.d.ts +0 -3
  194. package/dist/contracts/src/policy/registry.d.ts +0 -2
  195. package/dist/contracts/src/policy/spec.d.ts +0 -13
  196. package/dist/contracts/src/policy/spec.d.ts.map +0 -1
  197. package/dist/contracts/src/policy/validation.d.ts +0 -3
  198. package/dist/contracts/src/presentations/index.d.ts +0 -3
  199. package/dist/contracts/src/presentations/presentations.d.ts +0 -10
  200. package/dist/contracts/src/presentations/presentations.d.ts.map +0 -1
  201. package/dist/contracts/src/presentations/registry.d.ts +0 -2
  202. package/dist/contracts/src/presentations/transform-engine.d.ts +0 -2
  203. package/dist/contracts/src/prompt.d.ts +0 -2
  204. package/dist/contracts/src/promptRegistry.d.ts +0 -2
  205. package/dist/contracts/src/regenerator/adapters.d.ts +0 -1
  206. package/dist/contracts/src/regenerator/executor.d.ts +0 -1
  207. package/dist/contracts/src/regenerator/index.d.ts +0 -6
  208. package/dist/contracts/src/regenerator/service.d.ts +0 -2
  209. package/dist/contracts/src/regenerator/sinks.d.ts +0 -2
  210. package/dist/contracts/src/regenerator/types.d.ts +0 -3
  211. package/dist/contracts/src/regenerator/utils.d.ts +0 -1
  212. package/dist/contracts/src/registry-utils.d.ts +0 -1
  213. package/dist/contracts/src/registry.d.ts +0 -3
  214. package/dist/contracts/src/resources.d.ts +0 -19
  215. package/dist/contracts/src/resources.d.ts.map +0 -1
  216. package/dist/contracts/src/schema-to-markdown.d.ts +0 -1
  217. package/dist/contracts/src/serialization/index.d.ts +0 -1
  218. package/dist/contracts/src/serialization/serializers.d.ts +0 -7
  219. package/dist/contracts/src/server/graphql-pothos.d.ts +0 -7
  220. package/dist/contracts/src/server/index.d.ts +0 -7
  221. package/dist/contracts/src/server/mcp/createMcpServer.d.ts +0 -5
  222. package/dist/contracts/src/server/mcp/mcpTypes.d.ts +0 -2
  223. package/dist/contracts/src/server/provider-mcp.d.ts +0 -1
  224. package/dist/contracts/src/server/rest-elysia.d.ts +0 -3
  225. package/dist/contracts/src/server/rest-express.d.ts +0 -3
  226. package/dist/contracts/src/server/rest-generic.d.ts +0 -2
  227. package/dist/contracts/src/server/rest-next-app.d.ts +0 -3
  228. package/dist/contracts/src/server/rest-next-pages.d.ts +0 -3
  229. package/dist/contracts/src/telemetry/anomaly.d.ts +0 -2
  230. package/dist/contracts/src/telemetry/index.d.ts +0 -3
  231. package/dist/contracts/src/telemetry/spec.d.ts +0 -2
  232. package/dist/contracts/src/telemetry/tracker.d.ts +0 -3
  233. package/dist/contracts/src/tests/index.d.ts +0 -2
  234. package/dist/contracts/src/tests/runner.d.ts +0 -3
  235. package/dist/contracts/src/tests/spec.d.ts +0 -13
  236. package/dist/contracts/src/tests/spec.d.ts.map +0 -1
  237. package/dist/contracts/src/themes.d.ts +0 -2
  238. package/dist/contracts/src/types.d.ts +0 -5
  239. package/dist/contracts/src/versioning/refs.d.ts +0 -47
  240. package/dist/contracts/src/versioning/refs.d.ts.map +0 -1
  241. package/dist/contracts/src/workflow/adapters/db-adapter.d.ts +0 -1
  242. package/dist/contracts/src/workflow/adapters/file-adapter.d.ts +0 -1
  243. package/dist/contracts/src/workflow/adapters/index.d.ts +0 -3
  244. package/dist/contracts/src/workflow/adapters/memory-store.d.ts +0 -1
  245. package/dist/contracts/src/workflow/context.d.ts +0 -2
  246. package/dist/contracts/src/workflow/index.d.ts +0 -8
  247. package/dist/contracts/src/workflow/overview.docblock.d.ts +0 -1
  248. package/dist/contracts/src/workflow/runner.d.ts +0 -5
  249. package/dist/contracts/src/workflow/sla-monitor.d.ts +0 -2
  250. package/dist/contracts/src/workflow/spec.d.ts +0 -6
  251. package/dist/contracts/src/workflow/state.d.ts +0 -1
  252. package/dist/contracts/src/workflow/validation.d.ts +0 -5
  253. package/dist/contracts/src/workspace-config/contractsrc-schema.d.ts +0 -1
  254. package/dist/contracts/src/workspace-config/index.d.ts +0 -1
  255. package/dist/contracts/src/workspace-config/workspace-config.docblock.d.ts +0 -1
  256. package/dist/docs/feature-flags.docblock.js.map +0 -1
  257. package/dist/entities/index.js.map +0 -1
  258. package/dist/evaluation/index.js.map +0 -1
  259. package/dist/events.js.map +0 -1
  260. package/dist/feature-flags.capability.js.map +0 -1
  261. package/dist/feature-flags.feature.js.map +0 -1
  262. package/dist/schema/src/EnumType.d.ts +0 -36
  263. package/dist/schema/src/EnumType.d.ts.map +0 -1
  264. package/dist/schema/src/FieldType.d.ts +0 -30
  265. package/dist/schema/src/FieldType.d.ts.map +0 -1
  266. package/dist/schema/src/GraphQLSchemaType.d.ts +0 -2
  267. package/dist/schema/src/JsonSchemaType.d.ts +0 -2
  268. package/dist/schema/src/ScalarTypeEnum.d.ts +0 -1
  269. package/dist/schema/src/SchemaModel.d.ts +0 -70
  270. package/dist/schema/src/SchemaModel.d.ts.map +0 -1
  271. package/dist/schema/src/SchemaModelType.d.ts +0 -38
  272. package/dist/schema/src/SchemaModelType.d.ts.map +0 -1
  273. package/dist/schema/src/ZodSchemaType.d.ts +0 -2
  274. package/dist/schema/src/entity/defineEntity.d.ts +0 -1
  275. package/dist/schema/src/entity/generator.d.ts +0 -1
  276. package/dist/schema/src/entity/index.d.ts +0 -3
  277. package/dist/schema/src/entity/types.d.ts +0 -146
  278. package/dist/schema/src/entity/types.d.ts.map +0 -1
  279. package/dist/schema/src/index.d.ts +0 -10
package/dist/events.d.ts CHANGED
@@ -1,628 +1,619 @@
1
- import { FieldType } from "./schema/src/FieldType.js";
2
- import { SchemaModel } from "./schema/src/SchemaModel.js";
3
- import "./schema/src/index.js";
4
- import { EventSpec } from "./contracts/src/events.js";
5
- import "./contracts/src/index.js";
6
-
7
- //#region src/events.d.ts
8
1
  /**
9
2
  * Emitted when a feature flag is created.
10
3
  */
11
- declare const FlagCreatedEvent: EventSpec<SchemaModel<{
12
- flagId: {
13
- type: FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- key: {
17
- type: FieldType<string, string>;
18
- isOptional: false;
19
- };
20
- name: {
21
- type: FieldType<string, string>;
22
- isOptional: false;
23
- };
24
- status: {
25
- type: FieldType<string, string>;
26
- isOptional: false;
27
- };
28
- orgId: {
29
- type: FieldType<string, string>;
30
- isOptional: true;
31
- };
32
- createdBy: {
33
- type: FieldType<string, string>;
34
- isOptional: true;
35
- };
36
- createdAt: {
37
- type: FieldType<Date, string>;
38
- isOptional: false;
39
- };
40
- }>>;
41
- /**
42
- * Emitted when a feature flag is updated.
43
- */
44
- declare const FlagUpdatedEvent: EventSpec<SchemaModel<{
45
- flagId: {
46
- type: FieldType<string, string>;
47
- isOptional: false;
48
- };
49
- key: {
50
- type: FieldType<string, string>;
51
- isOptional: false;
52
- };
53
- changes: {
54
- type: FieldType<unknown, unknown>;
55
- isOptional: false;
56
- };
57
- updatedBy: {
58
- type: FieldType<string, string>;
59
- isOptional: true;
60
- };
61
- updatedAt: {
62
- type: FieldType<Date, string>;
63
- isOptional: false;
64
- };
65
- }>>;
66
- /**
67
- * Emitted when a feature flag is deleted.
68
- */
69
- declare const FlagDeletedEvent: EventSpec<SchemaModel<{
70
- flagId: {
71
- type: FieldType<string, string>;
72
- isOptional: false;
73
- };
74
- key: {
75
- type: FieldType<string, string>;
76
- isOptional: false;
77
- };
78
- deletedBy: {
79
- type: FieldType<string, string>;
80
- isOptional: true;
81
- };
82
- deletedAt: {
83
- type: FieldType<Date, string>;
84
- isOptional: false;
85
- };
86
- }>>;
87
- /**
88
- * Emitted when a feature flag status is toggled.
89
- */
90
- declare const FlagToggledEvent: EventSpec<SchemaModel<{
91
- flagId: {
92
- type: FieldType<string, string>;
93
- isOptional: false;
94
- };
95
- key: {
96
- type: FieldType<string, string>;
97
- isOptional: false;
98
- };
99
- previousStatus: {
100
- type: FieldType<string, string>;
101
- isOptional: false;
102
- };
103
- newStatus: {
104
- type: FieldType<string, string>;
105
- isOptional: false;
106
- };
107
- toggledBy: {
108
- type: FieldType<string, string>;
109
- isOptional: true;
110
- };
111
- toggledAt: {
112
- type: FieldType<Date, string>;
113
- isOptional: false;
114
- };
115
- }>>;
116
- /**
117
- * Emitted when a targeting rule is created.
118
- */
119
- declare const RuleCreatedEvent: EventSpec<SchemaModel<{
120
- ruleId: {
121
- type: FieldType<string, string>;
122
- isOptional: false;
123
- };
124
- flagId: {
125
- type: FieldType<string, string>;
126
- isOptional: false;
127
- };
128
- flagKey: {
129
- type: FieldType<string, string>;
130
- isOptional: false;
131
- };
132
- attribute: {
133
- type: FieldType<string, string>;
134
- isOptional: false;
135
- };
136
- operator: {
137
- type: FieldType<string, string>;
138
- isOptional: false;
139
- };
140
- createdAt: {
141
- type: FieldType<Date, string>;
142
- isOptional: false;
143
- };
144
- }>>;
145
- /**
146
- * Emitted when a targeting rule is deleted.
147
- */
148
- declare const RuleDeletedEvent: EventSpec<SchemaModel<{
149
- ruleId: {
150
- type: FieldType<string, string>;
151
- isOptional: false;
152
- };
153
- flagId: {
154
- type: FieldType<string, string>;
155
- isOptional: false;
156
- };
157
- flagKey: {
158
- type: FieldType<string, string>;
159
- isOptional: false;
160
- };
161
- deletedAt: {
162
- type: FieldType<Date, string>;
163
- isOptional: false;
164
- };
165
- }>>;
166
- /**
167
- * Emitted when an experiment is created.
168
- */
169
- declare const ExperimentCreatedEvent: EventSpec<SchemaModel<{
170
- experimentId: {
171
- type: FieldType<string, string>;
172
- isOptional: false;
173
- };
174
- key: {
175
- type: FieldType<string, string>;
176
- isOptional: false;
177
- };
178
- name: {
179
- type: FieldType<string, string>;
180
- isOptional: false;
181
- };
182
- flagId: {
183
- type: FieldType<string, string>;
184
- isOptional: false;
185
- };
186
- variants: {
187
- type: FieldType<unknown, unknown>;
188
- isOptional: false;
189
- };
190
- createdBy: {
191
- type: FieldType<string, string>;
192
- isOptional: true;
193
- };
194
- createdAt: {
195
- type: FieldType<Date, string>;
196
- isOptional: false;
197
- };
198
- }>>;
199
- /**
200
- * Emitted when an experiment starts.
201
- */
202
- declare const ExperimentStartedEvent: EventSpec<SchemaModel<{
203
- experimentId: {
204
- type: FieldType<string, string>;
205
- isOptional: false;
206
- };
207
- key: {
208
- type: FieldType<string, string>;
209
- isOptional: false;
210
- };
211
- flagId: {
212
- type: FieldType<string, string>;
213
- isOptional: false;
214
- };
215
- variants: {
216
- type: FieldType<unknown, unknown>;
217
- isOptional: false;
218
- };
219
- audiencePercentage: {
220
- type: FieldType<number, number>;
221
- isOptional: false;
222
- };
223
- startedBy: {
224
- type: FieldType<string, string>;
225
- isOptional: true;
226
- };
227
- startedAt: {
228
- type: FieldType<Date, string>;
229
- isOptional: false;
230
- };
231
- }>>;
232
- /**
233
- * Emitted when an experiment stops.
234
- */
235
- declare const ExperimentStoppedEvent: EventSpec<SchemaModel<{
236
- experimentId: {
237
- type: FieldType<string, string>;
238
- isOptional: false;
239
- };
240
- key: {
241
- type: FieldType<string, string>;
242
- isOptional: false;
243
- };
244
- reason: {
245
- type: FieldType<string, string>;
246
- isOptional: false;
247
- };
248
- winningVariant: {
249
- type: FieldType<string, string>;
250
- isOptional: true;
251
- };
252
- stoppedBy: {
253
- type: FieldType<string, string>;
254
- isOptional: true;
255
- };
256
- stoppedAt: {
257
- type: FieldType<Date, string>;
258
- isOptional: false;
259
- };
260
- }>>;
261
- /**
262
- * Emitted when a flag is evaluated (for analytics).
263
- */
264
- declare const FlagEvaluatedEvent: EventSpec<SchemaModel<{
265
- flagId: {
266
- type: FieldType<string, string>;
267
- isOptional: false;
268
- };
269
- flagKey: {
270
- type: FieldType<string, string>;
271
- isOptional: false;
272
- };
273
- subjectType: {
274
- type: FieldType<string, string>;
275
- isOptional: false;
276
- };
277
- subjectId: {
278
- type: FieldType<string, string>;
279
- isOptional: false;
280
- };
281
- result: {
282
- type: FieldType<boolean, boolean>;
283
- isOptional: false;
284
- };
285
- variant: {
286
- type: FieldType<string, string>;
287
- isOptional: true;
288
- };
289
- reason: {
290
- type: FieldType<string, string>;
291
- isOptional: false;
292
- };
293
- evaluatedAt: {
294
- type: FieldType<Date, string>;
295
- isOptional: false;
296
- };
297
- }>>;
298
- /**
299
- * Emitted when a subject is assigned to an experiment variant.
300
- */
301
- declare const VariantAssignedEvent: EventSpec<SchemaModel<{
302
- experimentId: {
303
- type: FieldType<string, string>;
304
- isOptional: false;
305
- };
306
- experimentKey: {
307
- type: FieldType<string, string>;
308
- isOptional: false;
309
- };
310
- subjectType: {
311
- type: FieldType<string, string>;
312
- isOptional: false;
313
- };
314
- subjectId: {
315
- type: FieldType<string, string>;
316
- isOptional: false;
317
- };
318
- variant: {
319
- type: FieldType<string, string>;
320
- isOptional: false;
321
- };
322
- bucket: {
323
- type: FieldType<number, number>;
324
- isOptional: false;
325
- };
326
- assignedAt: {
327
- type: FieldType<Date, string>;
328
- isOptional: false;
329
- };
330
- }>>;
331
- /**
332
- * All feature flag events.
333
- */
334
- declare const FeatureFlagEvents: {
335
- FlagCreatedEvent: EventSpec<SchemaModel<{
4
+ export declare const FlagCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
336
5
  flagId: {
337
- type: FieldType<string, string>;
338
- isOptional: false;
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
339
8
  };
340
9
  key: {
341
- type: FieldType<string, string>;
342
- isOptional: false;
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
343
12
  };
344
13
  name: {
345
- type: FieldType<string, string>;
346
- isOptional: false;
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
347
16
  };
348
17
  status: {
349
- type: FieldType<string, string>;
350
- isOptional: false;
18
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
19
+ isOptional: false;
351
20
  };
352
21
  orgId: {
353
- type: FieldType<string, string>;
354
- isOptional: true;
22
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
23
+ isOptional: true;
355
24
  };
356
25
  createdBy: {
357
- type: FieldType<string, string>;
358
- isOptional: true;
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: true;
359
28
  };
360
29
  createdAt: {
361
- type: FieldType<Date, string>;
362
- isOptional: false;
30
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
31
+ isOptional: false;
363
32
  };
364
- }>>;
365
- FlagUpdatedEvent: EventSpec<SchemaModel<{
33
+ }>>;
34
+ /**
35
+ * Emitted when a feature flag is updated.
36
+ */
37
+ export declare const FlagUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
366
38
  flagId: {
367
- type: FieldType<string, string>;
368
- isOptional: false;
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
369
41
  };
370
42
  key: {
371
- type: FieldType<string, string>;
372
- isOptional: false;
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: false;
373
45
  };
374
46
  changes: {
375
- type: FieldType<unknown, unknown>;
376
- isOptional: false;
47
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
48
+ isOptional: false;
377
49
  };
378
50
  updatedBy: {
379
- type: FieldType<string, string>;
380
- isOptional: true;
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: true;
381
53
  };
382
54
  updatedAt: {
383
- type: FieldType<Date, string>;
384
- isOptional: false;
55
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
56
+ isOptional: false;
385
57
  };
386
- }>>;
387
- FlagDeletedEvent: EventSpec<SchemaModel<{
58
+ }>>;
59
+ /**
60
+ * Emitted when a feature flag is deleted.
61
+ */
62
+ export declare const FlagDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
388
63
  flagId: {
389
- type: FieldType<string, string>;
390
- isOptional: false;
64
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
65
+ isOptional: false;
391
66
  };
392
67
  key: {
393
- type: FieldType<string, string>;
394
- isOptional: false;
68
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
69
+ isOptional: false;
395
70
  };
396
71
  deletedBy: {
397
- type: FieldType<string, string>;
398
- isOptional: true;
72
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
73
+ isOptional: true;
399
74
  };
400
75
  deletedAt: {
401
- type: FieldType<Date, string>;
402
- isOptional: false;
76
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
77
+ isOptional: false;
403
78
  };
404
- }>>;
405
- FlagToggledEvent: EventSpec<SchemaModel<{
79
+ }>>;
80
+ /**
81
+ * Emitted when a feature flag status is toggled.
82
+ */
83
+ export declare const FlagToggledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
406
84
  flagId: {
407
- type: FieldType<string, string>;
408
- isOptional: false;
85
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
409
87
  };
410
88
  key: {
411
- type: FieldType<string, string>;
412
- isOptional: false;
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: false;
413
91
  };
414
92
  previousStatus: {
415
- type: FieldType<string, string>;
416
- isOptional: false;
93
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
94
+ isOptional: false;
417
95
  };
418
96
  newStatus: {
419
- type: FieldType<string, string>;
420
- isOptional: false;
97
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
98
+ isOptional: false;
421
99
  };
422
100
  toggledBy: {
423
- type: FieldType<string, string>;
424
- isOptional: true;
101
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
102
+ isOptional: true;
425
103
  };
426
104
  toggledAt: {
427
- type: FieldType<Date, string>;
428
- isOptional: false;
105
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
106
+ isOptional: false;
429
107
  };
430
- }>>;
431
- RuleCreatedEvent: EventSpec<SchemaModel<{
108
+ }>>;
109
+ /**
110
+ * Emitted when a targeting rule is created.
111
+ */
112
+ export declare const RuleCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
432
113
  ruleId: {
433
- type: FieldType<string, string>;
434
- isOptional: false;
114
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
115
+ isOptional: false;
435
116
  };
436
117
  flagId: {
437
- type: FieldType<string, string>;
438
- isOptional: false;
118
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
119
+ isOptional: false;
439
120
  };
440
121
  flagKey: {
441
- type: FieldType<string, string>;
442
- isOptional: false;
122
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
123
+ isOptional: false;
443
124
  };
444
125
  attribute: {
445
- type: FieldType<string, string>;
446
- isOptional: false;
126
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
127
+ isOptional: false;
447
128
  };
448
129
  operator: {
449
- type: FieldType<string, string>;
450
- isOptional: false;
130
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
131
+ isOptional: false;
451
132
  };
452
133
  createdAt: {
453
- type: FieldType<Date, string>;
454
- isOptional: false;
134
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
135
+ isOptional: false;
455
136
  };
456
- }>>;
457
- RuleDeletedEvent: EventSpec<SchemaModel<{
137
+ }>>;
138
+ /**
139
+ * Emitted when a targeting rule is deleted.
140
+ */
141
+ export declare const RuleDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
458
142
  ruleId: {
459
- type: FieldType<string, string>;
460
- isOptional: false;
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: false;
461
145
  };
462
146
  flagId: {
463
- type: FieldType<string, string>;
464
- isOptional: false;
147
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
148
+ isOptional: false;
465
149
  };
466
150
  flagKey: {
467
- type: FieldType<string, string>;
468
- isOptional: false;
151
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
152
+ isOptional: false;
469
153
  };
470
154
  deletedAt: {
471
- type: FieldType<Date, string>;
472
- isOptional: false;
155
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
156
+ isOptional: false;
473
157
  };
474
- }>>;
475
- ExperimentCreatedEvent: EventSpec<SchemaModel<{
158
+ }>>;
159
+ /**
160
+ * Emitted when an experiment is created.
161
+ */
162
+ export declare const ExperimentCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
476
163
  experimentId: {
477
- type: FieldType<string, string>;
478
- isOptional: false;
164
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
165
+ isOptional: false;
479
166
  };
480
167
  key: {
481
- type: FieldType<string, string>;
482
- isOptional: false;
168
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
169
+ isOptional: false;
483
170
  };
484
171
  name: {
485
- type: FieldType<string, string>;
486
- isOptional: false;
172
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
173
+ isOptional: false;
487
174
  };
488
175
  flagId: {
489
- type: FieldType<string, string>;
490
- isOptional: false;
176
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
177
+ isOptional: false;
491
178
  };
492
179
  variants: {
493
- type: FieldType<unknown, unknown>;
494
- isOptional: false;
180
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
181
+ isOptional: false;
495
182
  };
496
183
  createdBy: {
497
- type: FieldType<string, string>;
498
- isOptional: true;
184
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
185
+ isOptional: true;
499
186
  };
500
187
  createdAt: {
501
- type: FieldType<Date, string>;
502
- isOptional: false;
188
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
189
+ isOptional: false;
503
190
  };
504
- }>>;
505
- ExperimentStartedEvent: EventSpec<SchemaModel<{
191
+ }>>;
192
+ /**
193
+ * Emitted when an experiment starts.
194
+ */
195
+ export declare const ExperimentStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
506
196
  experimentId: {
507
- type: FieldType<string, string>;
508
- isOptional: false;
197
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
198
+ isOptional: false;
509
199
  };
510
200
  key: {
511
- type: FieldType<string, string>;
512
- isOptional: false;
201
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
202
+ isOptional: false;
513
203
  };
514
204
  flagId: {
515
- type: FieldType<string, string>;
516
- isOptional: false;
205
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
206
+ isOptional: false;
517
207
  };
518
208
  variants: {
519
- type: FieldType<unknown, unknown>;
520
- isOptional: false;
209
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
210
+ isOptional: false;
521
211
  };
522
212
  audiencePercentage: {
523
- type: FieldType<number, number>;
524
- isOptional: false;
213
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
214
+ isOptional: false;
525
215
  };
526
216
  startedBy: {
527
- type: FieldType<string, string>;
528
- isOptional: true;
217
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
218
+ isOptional: true;
529
219
  };
530
220
  startedAt: {
531
- type: FieldType<Date, string>;
532
- isOptional: false;
221
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
222
+ isOptional: false;
533
223
  };
534
- }>>;
535
- ExperimentStoppedEvent: EventSpec<SchemaModel<{
224
+ }>>;
225
+ /**
226
+ * Emitted when an experiment stops.
227
+ */
228
+ export declare const ExperimentStoppedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
536
229
  experimentId: {
537
- type: FieldType<string, string>;
538
- isOptional: false;
230
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
231
+ isOptional: false;
539
232
  };
540
233
  key: {
541
- type: FieldType<string, string>;
542
- isOptional: false;
234
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
235
+ isOptional: false;
543
236
  };
544
237
  reason: {
545
- type: FieldType<string, string>;
546
- isOptional: false;
238
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
239
+ isOptional: false;
547
240
  };
548
241
  winningVariant: {
549
- type: FieldType<string, string>;
550
- isOptional: true;
242
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
243
+ isOptional: true;
551
244
  };
552
245
  stoppedBy: {
553
- type: FieldType<string, string>;
554
- isOptional: true;
246
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
247
+ isOptional: true;
555
248
  };
556
249
  stoppedAt: {
557
- type: FieldType<Date, string>;
558
- isOptional: false;
250
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
251
+ isOptional: false;
559
252
  };
560
- }>>;
561
- FlagEvaluatedEvent: EventSpec<SchemaModel<{
253
+ }>>;
254
+ /**
255
+ * Emitted when a flag is evaluated (for analytics).
256
+ */
257
+ export declare const FlagEvaluatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
562
258
  flagId: {
563
- type: FieldType<string, string>;
564
- isOptional: false;
259
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
260
+ isOptional: false;
565
261
  };
566
262
  flagKey: {
567
- type: FieldType<string, string>;
568
- isOptional: false;
263
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
264
+ isOptional: false;
569
265
  };
570
266
  subjectType: {
571
- type: FieldType<string, string>;
572
- isOptional: false;
267
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
268
+ isOptional: false;
573
269
  };
574
270
  subjectId: {
575
- type: FieldType<string, string>;
576
- isOptional: false;
271
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
272
+ isOptional: false;
577
273
  };
578
274
  result: {
579
- type: FieldType<boolean, boolean>;
580
- isOptional: false;
275
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
276
+ isOptional: false;
581
277
  };
582
278
  variant: {
583
- type: FieldType<string, string>;
584
- isOptional: true;
279
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
280
+ isOptional: true;
585
281
  };
586
282
  reason: {
587
- type: FieldType<string, string>;
588
- isOptional: false;
283
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
284
+ isOptional: false;
589
285
  };
590
286
  evaluatedAt: {
591
- type: FieldType<Date, string>;
592
- isOptional: false;
287
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
288
+ isOptional: false;
593
289
  };
594
- }>>;
595
- VariantAssignedEvent: EventSpec<SchemaModel<{
290
+ }>>;
291
+ /**
292
+ * Emitted when a subject is assigned to an experiment variant.
293
+ */
294
+ export declare const VariantAssignedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
596
295
  experimentId: {
597
- type: FieldType<string, string>;
598
- isOptional: false;
296
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
297
+ isOptional: false;
599
298
  };
600
299
  experimentKey: {
601
- type: FieldType<string, string>;
602
- isOptional: false;
300
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
301
+ isOptional: false;
603
302
  };
604
303
  subjectType: {
605
- type: FieldType<string, string>;
606
- isOptional: false;
304
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
305
+ isOptional: false;
607
306
  };
608
307
  subjectId: {
609
- type: FieldType<string, string>;
610
- isOptional: false;
308
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
309
+ isOptional: false;
611
310
  };
612
311
  variant: {
613
- type: FieldType<string, string>;
614
- isOptional: false;
312
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
313
+ isOptional: false;
615
314
  };
616
315
  bucket: {
617
- type: FieldType<number, number>;
618
- isOptional: false;
316
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
317
+ isOptional: false;
619
318
  };
620
319
  assignedAt: {
621
- type: FieldType<Date, string>;
622
- isOptional: false;
320
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
321
+ isOptional: false;
623
322
  };
624
- }>>;
323
+ }>>;
324
+ /**
325
+ * All feature flag events.
326
+ */
327
+ export declare const FeatureFlagEvents: {
328
+ FlagCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
329
+ flagId: {
330
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
331
+ isOptional: false;
332
+ };
333
+ key: {
334
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
335
+ isOptional: false;
336
+ };
337
+ name: {
338
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
339
+ isOptional: false;
340
+ };
341
+ status: {
342
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
343
+ isOptional: false;
344
+ };
345
+ orgId: {
346
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
347
+ isOptional: true;
348
+ };
349
+ createdBy: {
350
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
351
+ isOptional: true;
352
+ };
353
+ createdAt: {
354
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
355
+ isOptional: false;
356
+ };
357
+ }>>;
358
+ FlagUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
359
+ flagId: {
360
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
361
+ isOptional: false;
362
+ };
363
+ key: {
364
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
365
+ isOptional: false;
366
+ };
367
+ changes: {
368
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
369
+ isOptional: false;
370
+ };
371
+ updatedBy: {
372
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
373
+ isOptional: true;
374
+ };
375
+ updatedAt: {
376
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
377
+ isOptional: false;
378
+ };
379
+ }>>;
380
+ FlagDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
381
+ flagId: {
382
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
383
+ isOptional: false;
384
+ };
385
+ key: {
386
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
387
+ isOptional: false;
388
+ };
389
+ deletedBy: {
390
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
391
+ isOptional: true;
392
+ };
393
+ deletedAt: {
394
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
395
+ isOptional: false;
396
+ };
397
+ }>>;
398
+ FlagToggledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
399
+ flagId: {
400
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
401
+ isOptional: false;
402
+ };
403
+ key: {
404
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
405
+ isOptional: false;
406
+ };
407
+ previousStatus: {
408
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
409
+ isOptional: false;
410
+ };
411
+ newStatus: {
412
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
413
+ isOptional: false;
414
+ };
415
+ toggledBy: {
416
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
417
+ isOptional: true;
418
+ };
419
+ toggledAt: {
420
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
421
+ isOptional: false;
422
+ };
423
+ }>>;
424
+ RuleCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
425
+ ruleId: {
426
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
427
+ isOptional: false;
428
+ };
429
+ flagId: {
430
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
431
+ isOptional: false;
432
+ };
433
+ flagKey: {
434
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
435
+ isOptional: false;
436
+ };
437
+ attribute: {
438
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
439
+ isOptional: false;
440
+ };
441
+ operator: {
442
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
443
+ isOptional: false;
444
+ };
445
+ createdAt: {
446
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
447
+ isOptional: false;
448
+ };
449
+ }>>;
450
+ RuleDeletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
451
+ ruleId: {
452
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
453
+ isOptional: false;
454
+ };
455
+ flagId: {
456
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
457
+ isOptional: false;
458
+ };
459
+ flagKey: {
460
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
461
+ isOptional: false;
462
+ };
463
+ deletedAt: {
464
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
465
+ isOptional: false;
466
+ };
467
+ }>>;
468
+ ExperimentCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
469
+ experimentId: {
470
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
471
+ isOptional: false;
472
+ };
473
+ key: {
474
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
475
+ isOptional: false;
476
+ };
477
+ name: {
478
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
479
+ isOptional: false;
480
+ };
481
+ flagId: {
482
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
483
+ isOptional: false;
484
+ };
485
+ variants: {
486
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
487
+ isOptional: false;
488
+ };
489
+ createdBy: {
490
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
491
+ isOptional: true;
492
+ };
493
+ createdAt: {
494
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
495
+ isOptional: false;
496
+ };
497
+ }>>;
498
+ ExperimentStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
499
+ experimentId: {
500
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
501
+ isOptional: false;
502
+ };
503
+ key: {
504
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
505
+ isOptional: false;
506
+ };
507
+ flagId: {
508
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
509
+ isOptional: false;
510
+ };
511
+ variants: {
512
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
513
+ isOptional: false;
514
+ };
515
+ audiencePercentage: {
516
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
517
+ isOptional: false;
518
+ };
519
+ startedBy: {
520
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
521
+ isOptional: true;
522
+ };
523
+ startedAt: {
524
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
525
+ isOptional: false;
526
+ };
527
+ }>>;
528
+ ExperimentStoppedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
529
+ experimentId: {
530
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
531
+ isOptional: false;
532
+ };
533
+ key: {
534
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
535
+ isOptional: false;
536
+ };
537
+ reason: {
538
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
539
+ isOptional: false;
540
+ };
541
+ winningVariant: {
542
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
543
+ isOptional: true;
544
+ };
545
+ stoppedBy: {
546
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
547
+ isOptional: true;
548
+ };
549
+ stoppedAt: {
550
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
551
+ isOptional: false;
552
+ };
553
+ }>>;
554
+ FlagEvaluatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
555
+ flagId: {
556
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
557
+ isOptional: false;
558
+ };
559
+ flagKey: {
560
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
561
+ isOptional: false;
562
+ };
563
+ subjectType: {
564
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
565
+ isOptional: false;
566
+ };
567
+ subjectId: {
568
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
569
+ isOptional: false;
570
+ };
571
+ result: {
572
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
573
+ isOptional: false;
574
+ };
575
+ variant: {
576
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
577
+ isOptional: true;
578
+ };
579
+ reason: {
580
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
581
+ isOptional: false;
582
+ };
583
+ evaluatedAt: {
584
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
585
+ isOptional: false;
586
+ };
587
+ }>>;
588
+ VariantAssignedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
589
+ experimentId: {
590
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
591
+ isOptional: false;
592
+ };
593
+ experimentKey: {
594
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
595
+ isOptional: false;
596
+ };
597
+ subjectType: {
598
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
599
+ isOptional: false;
600
+ };
601
+ subjectId: {
602
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
603
+ isOptional: false;
604
+ };
605
+ variant: {
606
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
607
+ isOptional: false;
608
+ };
609
+ bucket: {
610
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
611
+ isOptional: false;
612
+ };
613
+ assignedAt: {
614
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
615
+ isOptional: false;
616
+ };
617
+ }>>;
625
618
  };
626
- //#endregion
627
- export { ExperimentCreatedEvent, ExperimentStartedEvent, ExperimentStoppedEvent, FeatureFlagEvents, FlagCreatedEvent, FlagDeletedEvent, FlagEvaluatedEvent, FlagToggledEvent, FlagUpdatedEvent, RuleCreatedEvent, RuleDeletedEvent, VariantAssignedEvent };
628
619
  //# sourceMappingURL=events.d.ts.map