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