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