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

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 (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/contracts/dist/capabilities/openbanking.js +2 -1
  4. package/dist/contracts/dist/capabilities/openbanking.js.map +1 -0
  5. package/dist/contracts/dist/contract-registry/schemas.js +2 -1
  6. package/dist/contracts/dist/contract-registry/schemas.js.map +1 -0
  7. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
  8. package/dist/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
  9. package/dist/contracts/dist/docs/index.js +2 -6
  10. package/dist/contracts/dist/docs/meta.docs.js +30 -0
  11. package/dist/contracts/dist/docs/meta.docs.js.map +1 -0
  12. package/dist/contracts/dist/docs/presentations.js +2 -1
  13. package/dist/contracts/dist/docs/presentations.js.map +1 -0
  14. package/dist/contracts/dist/docs/registry.js +2 -1
  15. package/dist/contracts/dist/docs/registry.js.map +1 -0
  16. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
  17. package/dist/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
  18. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
  19. package/dist/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
  20. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
  21. package/dist/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
  22. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
  23. package/dist/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
  24. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
  25. package/dist/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
  26. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
  27. package/dist/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
  28. package/dist/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
  29. package/dist/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
  30. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
  31. package/dist/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
  32. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
  33. package/dist/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
  34. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
  35. package/dist/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
  36. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
  37. package/dist/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
  38. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
  39. package/dist/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
  40. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
  41. package/dist/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
  42. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
  43. package/dist/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
  44. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
  45. package/dist/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
  46. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
  47. package/dist/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
  48. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
  49. package/dist/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
  50. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
  51. package/dist/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
  52. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
  53. package/dist/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
  54. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
  55. package/dist/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
  56. package/dist/contracts/dist/docs/tech-contracts.docs.js +97 -0
  57. package/dist/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
  58. package/dist/contracts/dist/events.js +2 -1
  59. package/dist/contracts/dist/events.js.map +1 -0
  60. package/dist/contracts/dist/index.js +2 -1
  61. package/dist/contracts/dist/integrations/contracts.js +65 -66
  62. package/dist/contracts/dist/integrations/contracts.js.map +1 -0
  63. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
  64. package/dist/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
  65. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
  66. package/dist/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
  67. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
  68. package/dist/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
  69. package/dist/contracts/dist/integrations/openbanking/models.js +60 -61
  70. package/dist/contracts/dist/integrations/openbanking/models.js.map +1 -0
  71. package/dist/contracts/dist/integrations/openbanking/telemetry.js +2 -1
  72. package/dist/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
  73. package/dist/contracts/dist/integrations/providers/elevenlabs.js +2 -1
  74. package/dist/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
  75. package/dist/contracts/dist/integrations/providers/gcs-storage.js +2 -1
  76. package/dist/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
  77. package/dist/contracts/dist/integrations/providers/gmail.js +2 -1
  78. package/dist/contracts/dist/integrations/providers/gmail.js.map +1 -0
  79. package/dist/contracts/dist/integrations/providers/google-calendar.js +2 -1
  80. package/dist/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
  81. package/dist/contracts/dist/integrations/providers/mistral.js +2 -1
  82. package/dist/contracts/dist/integrations/providers/mistral.js.map +1 -0
  83. package/dist/contracts/dist/integrations/providers/postmark.js +2 -1
  84. package/dist/contracts/dist/integrations/providers/postmark.js.map +1 -0
  85. package/dist/contracts/dist/integrations/providers/powens.js +2 -1
  86. package/dist/contracts/dist/integrations/providers/powens.js.map +1 -0
  87. package/dist/contracts/dist/integrations/providers/qdrant.js +2 -1
  88. package/dist/contracts/dist/integrations/providers/qdrant.js.map +1 -0
  89. package/dist/contracts/dist/integrations/providers/stripe.js +2 -1
  90. package/dist/contracts/dist/integrations/providers/stripe.js.map +1 -0
  91. package/dist/contracts/dist/integrations/providers/twilio-sms.js +2 -1
  92. package/dist/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
  93. package/dist/contracts/dist/knowledge/contracts.js +44 -45
  94. package/dist/contracts/dist/knowledge/contracts.js.map +1 -0
  95. package/dist/contracts/dist/knowledge/spaces/email-threads.js +2 -1
  96. package/dist/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
  97. package/dist/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
  98. package/dist/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
  99. package/dist/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
  100. package/dist/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
  101. package/dist/contracts/dist/knowledge/spaces/product-canon.js +2 -1
  102. package/dist/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
  103. package/dist/contracts/dist/knowledge/spaces/support-faq.js +2 -1
  104. package/dist/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
  105. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
  106. package/dist/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
  107. package/dist/contracts/dist/llm/exporters.js +2 -1
  108. package/dist/contracts/dist/llm/exporters.js.map +1 -0
  109. package/dist/contracts/dist/onboarding-base.js +22 -23
  110. package/dist/contracts/dist/onboarding-base.js.map +1 -0
  111. package/dist/contracts/dist/ownership.js +4 -2
  112. package/dist/contracts/dist/ownership.js.map +1 -0
  113. package/dist/contracts/dist/presentations.v2.js +2 -1
  114. package/dist/contracts/dist/presentations.v2.js.map +1 -0
  115. package/dist/contracts/dist/regenerator/service.js +2 -1
  116. package/dist/contracts/dist/regenerator/service.js.map +1 -0
  117. package/dist/contracts/dist/schema/dist/index.js +3873 -6
  118. package/dist/contracts/dist/schema/dist/index.js.map +1 -0
  119. package/dist/contracts/dist/spec.js +2 -1
  120. package/dist/contracts/dist/spec.js.map +1 -0
  121. package/dist/contracts/index.d.ts +2 -1
  122. package/dist/contracts/index.d.ts.map +1 -0
  123. package/dist/contracts/index.js +117 -118
  124. package/dist/contracts/index.js.map +1 -0
  125. package/dist/docs/feature-flags.docblock.js +2 -1
  126. package/dist/docs/feature-flags.docblock.js.map +1 -0
  127. package/dist/entities/index.d.ts +2 -1
  128. package/dist/entities/index.d.ts.map +1 -0
  129. package/dist/entities/index.js +93 -93
  130. package/dist/entities/index.js.map +1 -0
  131. package/dist/evaluation/index.d.ts +2 -1
  132. package/dist/evaluation/index.d.ts.map +1 -0
  133. package/dist/evaluation/index.js +2 -1
  134. package/dist/evaluation/index.js.map +1 -0
  135. package/dist/events.d.ts +2 -1
  136. package/dist/events.d.ts.map +1 -0
  137. package/dist/events.js +81 -82
  138. package/dist/events.js.map +1 -0
  139. package/dist/feature-flags.feature.d.ts +2 -1
  140. package/dist/feature-flags.feature.d.ts.map +1 -0
  141. package/dist/feature-flags.feature.js +2 -1
  142. package/dist/feature-flags.feature.js.map +1 -0
  143. package/dist/schema/dist/index.js +4889 -6
  144. package/dist/schema/dist/index.js.map +1 -0
  145. package/package.json +13 -6
  146. package/dist/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
  147. package/dist/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
  148. package/dist/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
  149. package/dist/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
  150. package/dist/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
  151. package/dist/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  152. package/dist/contracts/dist/schema/dist/EnumType.js +0 -2
  153. package/dist/contracts/dist/schema/dist/FieldType.js +0 -49
  154. package/dist/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
  155. package/dist/contracts/dist/schema/dist/SchemaModel.js +0 -34
  156. package/dist/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  157. package/dist/contracts/dist/schema/dist/entity/index.js +0 -2
  158. package/dist/contracts/dist/schema/dist/entity/types.js +0 -1
  159. package/dist/schema/dist/EnumType.js +0 -2
  160. package/dist/schema/dist/FieldType.js +0 -49
  161. package/dist/schema/dist/ScalarTypeEnum.js +0 -236
  162. package/dist/schema/dist/SchemaModel.js +0 -39
  163. package/dist/schema/dist/entity/defineEntity.js +0 -236
  164. package/dist/schema/dist/entity/index.js +0 -2
  165. package/dist/schema/dist/entity/types.js +0 -1
@@ -31,4 +31,5 @@ const defineQuery = (spec) => ({
31
31
  });
32
32
 
33
33
  //#endregion
34
- export { defineCommand, defineQuery };
34
+ export { defineCommand, defineQuery };
35
+ //# sourceMappingURL=spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec.js","names":[],"sources":["../../../../contracts/dist/spec.js"],"sourcesContent":["//#region src/spec.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
@@ -1003,4 +1003,5 @@ declare const GetExperimentContract: _lssm_lib_contracts21.ContractSpec<_lssm_li
1003
1003
  };
1004
1004
  }>, undefined>;
1005
1005
  //#endregion
1006
- export { CreateExperimentContract, CreateFlagContract, CreateRuleContract, DeleteFlagContract, DeleteRuleContract, EvaluateFlagContract, EvaluationResultModel, ExperimentModel, FeatureFlagModel, GetExperimentContract, GetFlagContract, ListFlagsContract, StartExperimentContract, StopExperimentContract, TargetingRuleModel, ToggleFlagContract, UpdateFlagContract };
1006
+ export { CreateExperimentContract, CreateFlagContract, CreateRuleContract, DeleteFlagContract, DeleteRuleContract, EvaluateFlagContract, EvaluationResultModel, ExperimentModel, FeatureFlagModel, GetExperimentContract, GetFlagContract, ListFlagsContract, StartExperimentContract, StopExperimentContract, TargetingRuleModel, ToggleFlagContract, UpdateFlagContract };
1007
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d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;;;;;;;;UAtCmC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2CxB,+CAAuB,iCAAA;;UAgClC,mBAAA,CAAA;;;;;UAhCkC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCvB,8CAAsB,iCAAA;;UAgCjC,mBAAA,CAAA;;;;;;;;;;;;;UAhCiC,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCtB,6CAAqB,iCAAA;;UA0BhC,mBAAA,CAAA;;;;;UA1BgC,mBAAA,CAAA"}
@@ -1,330 +1,328 @@
1
- import { ScalarTypeEnum } from "../schema/dist/ScalarTypeEnum.js";
2
- import { defineSchemaModel } from "../schema/dist/SchemaModel.js";
3
- import "../schema/dist/index.js";
1
+ import { E5, K5 } from "../schema/dist/index.js";
4
2
  import { defineCommand, defineQuery } from "./dist/spec.js";
5
3
  import "./dist/index.js";
6
4
 
7
5
  //#region src/contracts/index.ts
8
6
  const OWNERS = ["platform.feature-flags"];
9
- const FeatureFlagModel = defineSchemaModel({
7
+ const FeatureFlagModel = K5({
10
8
  name: "FeatureFlag",
11
9
  description: "Represents a feature flag",
12
10
  fields: {
13
11
  id: {
14
- type: ScalarTypeEnum.String_unsecure(),
12
+ type: E5.String_unsecure(),
15
13
  isOptional: false
16
14
  },
17
15
  key: {
18
- type: ScalarTypeEnum.String_unsecure(),
16
+ type: E5.String_unsecure(),
19
17
  isOptional: false
20
18
  },
21
19
  name: {
22
- type: ScalarTypeEnum.String_unsecure(),
20
+ type: E5.String_unsecure(),
23
21
  isOptional: false
24
22
  },
25
23
  description: {
26
- type: ScalarTypeEnum.String_unsecure(),
24
+ type: E5.String_unsecure(),
27
25
  isOptional: true
28
26
  },
29
27
  status: {
30
- type: ScalarTypeEnum.String_unsecure(),
28
+ type: E5.String_unsecure(),
31
29
  isOptional: false
32
30
  },
33
31
  defaultValue: {
34
- type: ScalarTypeEnum.Boolean(),
32
+ type: E5.Boolean(),
35
33
  isOptional: false
36
34
  },
37
35
  variants: {
38
- type: ScalarTypeEnum.JSON(),
36
+ type: E5.JSON(),
39
37
  isOptional: true
40
38
  },
41
39
  orgId: {
42
- type: ScalarTypeEnum.String_unsecure(),
40
+ type: E5.String_unsecure(),
43
41
  isOptional: true
44
42
  },
45
43
  tags: {
46
- type: ScalarTypeEnum.JSON(),
44
+ type: E5.JSON(),
47
45
  isOptional: true
48
46
  },
49
47
  createdAt: {
50
- type: ScalarTypeEnum.DateTime(),
48
+ type: E5.DateTime(),
51
49
  isOptional: false
52
50
  },
53
51
  updatedAt: {
54
- type: ScalarTypeEnum.DateTime(),
52
+ type: E5.DateTime(),
55
53
  isOptional: false
56
54
  }
57
55
  }
58
56
  });
59
- const TargetingRuleModel = defineSchemaModel({
57
+ const TargetingRuleModel = K5({
60
58
  name: "TargetingRule",
61
59
  description: "Represents a targeting rule",
62
60
  fields: {
63
61
  id: {
64
- type: ScalarTypeEnum.String_unsecure(),
62
+ type: E5.String_unsecure(),
65
63
  isOptional: false
66
64
  },
67
65
  flagId: {
68
- type: ScalarTypeEnum.String_unsecure(),
66
+ type: E5.String_unsecure(),
69
67
  isOptional: false
70
68
  },
71
69
  name: {
72
- type: ScalarTypeEnum.String_unsecure(),
70
+ type: E5.String_unsecure(),
73
71
  isOptional: true
74
72
  },
75
73
  priority: {
76
- type: ScalarTypeEnum.Int_unsecure(),
74
+ type: E5.Int_unsecure(),
77
75
  isOptional: false
78
76
  },
79
77
  enabled: {
80
- type: ScalarTypeEnum.Boolean(),
78
+ type: E5.Boolean(),
81
79
  isOptional: false
82
80
  },
83
81
  attribute: {
84
- type: ScalarTypeEnum.String_unsecure(),
82
+ type: E5.String_unsecure(),
85
83
  isOptional: false
86
84
  },
87
85
  operator: {
88
- type: ScalarTypeEnum.String_unsecure(),
86
+ type: E5.String_unsecure(),
89
87
  isOptional: false
90
88
  },
91
89
  value: {
92
- type: ScalarTypeEnum.JSON(),
90
+ type: E5.JSON(),
93
91
  isOptional: false
94
92
  },
95
93
  rolloutPercentage: {
96
- type: ScalarTypeEnum.Int_unsecure(),
94
+ type: E5.Int_unsecure(),
97
95
  isOptional: true
98
96
  },
99
97
  serveValue: {
100
- type: ScalarTypeEnum.Boolean(),
98
+ type: E5.Boolean(),
101
99
  isOptional: true
102
100
  },
103
101
  serveVariant: {
104
- type: ScalarTypeEnum.String_unsecure(),
102
+ type: E5.String_unsecure(),
105
103
  isOptional: true
106
104
  }
107
105
  }
108
106
  });
109
- const ExperimentModel = defineSchemaModel({
107
+ const ExperimentModel = K5({
110
108
  name: "Experiment",
111
109
  description: "Represents an experiment",
112
110
  fields: {
113
111
  id: {
114
- type: ScalarTypeEnum.String_unsecure(),
112
+ type: E5.String_unsecure(),
115
113
  isOptional: false
116
114
  },
117
115
  key: {
118
- type: ScalarTypeEnum.String_unsecure(),
116
+ type: E5.String_unsecure(),
119
117
  isOptional: false
120
118
  },
121
119
  name: {
122
- type: ScalarTypeEnum.String_unsecure(),
120
+ type: E5.String_unsecure(),
123
121
  isOptional: false
124
122
  },
125
123
  description: {
126
- type: ScalarTypeEnum.String_unsecure(),
124
+ type: E5.String_unsecure(),
127
125
  isOptional: true
128
126
  },
129
127
  hypothesis: {
130
- type: ScalarTypeEnum.String_unsecure(),
128
+ type: E5.String_unsecure(),
131
129
  isOptional: true
132
130
  },
133
131
  flagId: {
134
- type: ScalarTypeEnum.String_unsecure(),
132
+ type: E5.String_unsecure(),
135
133
  isOptional: false
136
134
  },
137
135
  status: {
138
- type: ScalarTypeEnum.String_unsecure(),
136
+ type: E5.String_unsecure(),
139
137
  isOptional: false
140
138
  },
141
139
  variants: {
142
- type: ScalarTypeEnum.JSON(),
140
+ type: E5.JSON(),
143
141
  isOptional: false
144
142
  },
145
143
  metrics: {
146
- type: ScalarTypeEnum.JSON(),
144
+ type: E5.JSON(),
147
145
  isOptional: true
148
146
  },
149
147
  audiencePercentage: {
150
- type: ScalarTypeEnum.Int_unsecure(),
148
+ type: E5.Int_unsecure(),
151
149
  isOptional: false
152
150
  },
153
151
  startedAt: {
154
- type: ScalarTypeEnum.DateTime(),
152
+ type: E5.DateTime(),
155
153
  isOptional: true
156
154
  },
157
155
  endedAt: {
158
- type: ScalarTypeEnum.DateTime(),
156
+ type: E5.DateTime(),
159
157
  isOptional: true
160
158
  },
161
159
  winningVariant: {
162
- type: ScalarTypeEnum.String_unsecure(),
160
+ type: E5.String_unsecure(),
163
161
  isOptional: true
164
162
  },
165
163
  results: {
166
- type: ScalarTypeEnum.JSON(),
164
+ type: E5.JSON(),
167
165
  isOptional: true
168
166
  },
169
167
  createdAt: {
170
- type: ScalarTypeEnum.DateTime(),
168
+ type: E5.DateTime(),
171
169
  isOptional: false
172
170
  }
173
171
  }
174
172
  });
175
- const EvaluationResultModel = defineSchemaModel({
173
+ const EvaluationResultModel = K5({
176
174
  name: "EvaluationResult",
177
175
  description: "Result of flag evaluation",
178
176
  fields: {
179
177
  enabled: {
180
- type: ScalarTypeEnum.Boolean(),
178
+ type: E5.Boolean(),
181
179
  isOptional: false
182
180
  },
183
181
  variant: {
184
- type: ScalarTypeEnum.String_unsecure(),
182
+ type: E5.String_unsecure(),
185
183
  isOptional: true
186
184
  },
187
185
  reason: {
188
- type: ScalarTypeEnum.String_unsecure(),
186
+ type: E5.String_unsecure(),
189
187
  isOptional: false
190
188
  },
191
189
  ruleId: {
192
- type: ScalarTypeEnum.String_unsecure(),
190
+ type: E5.String_unsecure(),
193
191
  isOptional: true
194
192
  },
195
193
  experimentId: {
196
- type: ScalarTypeEnum.String_unsecure(),
194
+ type: E5.String_unsecure(),
197
195
  isOptional: true
198
196
  }
199
197
  }
200
198
  });
201
- const CreateFlagInput = defineSchemaModel({
199
+ const CreateFlagInput = K5({
202
200
  name: "CreateFlagInput",
203
201
  description: "Input for creating a feature flag",
204
202
  fields: {
205
203
  key: {
206
- type: ScalarTypeEnum.String_unsecure(),
204
+ type: E5.String_unsecure(),
207
205
  isOptional: false
208
206
  },
209
207
  name: {
210
- type: ScalarTypeEnum.String_unsecure(),
208
+ type: E5.String_unsecure(),
211
209
  isOptional: false
212
210
  },
213
211
  description: {
214
- type: ScalarTypeEnum.String_unsecure(),
212
+ type: E5.String_unsecure(),
215
213
  isOptional: true
216
214
  },
217
215
  defaultValue: {
218
- type: ScalarTypeEnum.Boolean(),
216
+ type: E5.Boolean(),
219
217
  isOptional: true
220
218
  },
221
219
  variants: {
222
- type: ScalarTypeEnum.JSON(),
220
+ type: E5.JSON(),
223
221
  isOptional: true
224
222
  },
225
223
  orgId: {
226
- type: ScalarTypeEnum.String_unsecure(),
224
+ type: E5.String_unsecure(),
227
225
  isOptional: true
228
226
  },
229
227
  tags: {
230
- type: ScalarTypeEnum.JSON(),
228
+ type: E5.JSON(),
231
229
  isOptional: true
232
230
  }
233
231
  }
234
232
  });
235
- const UpdateFlagInput = defineSchemaModel({
233
+ const UpdateFlagInput = K5({
236
234
  name: "UpdateFlagInput",
237
235
  description: "Input for updating a feature flag",
238
236
  fields: {
239
237
  flagId: {
240
- type: ScalarTypeEnum.String_unsecure(),
238
+ type: E5.String_unsecure(),
241
239
  isOptional: false
242
240
  },
243
241
  name: {
244
- type: ScalarTypeEnum.String_unsecure(),
242
+ type: E5.String_unsecure(),
245
243
  isOptional: true
246
244
  },
247
245
  description: {
248
- type: ScalarTypeEnum.String_unsecure(),
246
+ type: E5.String_unsecure(),
249
247
  isOptional: true
250
248
  },
251
249
  defaultValue: {
252
- type: ScalarTypeEnum.Boolean(),
250
+ type: E5.Boolean(),
253
251
  isOptional: true
254
252
  },
255
253
  variants: {
256
- type: ScalarTypeEnum.JSON(),
254
+ type: E5.JSON(),
257
255
  isOptional: true
258
256
  },
259
257
  tags: {
260
- type: ScalarTypeEnum.JSON(),
258
+ type: E5.JSON(),
261
259
  isOptional: true
262
260
  }
263
261
  }
264
262
  });
265
- const DeleteFlagInput = defineSchemaModel({
263
+ const DeleteFlagInput = K5({
266
264
  name: "DeleteFlagInput",
267
265
  description: "Input for deleting a feature flag",
268
266
  fields: { flagId: {
269
- type: ScalarTypeEnum.String_unsecure(),
267
+ type: E5.String_unsecure(),
270
268
  isOptional: false
271
269
  } }
272
270
  });
273
- const ToggleFlagInput = defineSchemaModel({
271
+ const ToggleFlagInput = K5({
274
272
  name: "ToggleFlagInput",
275
273
  description: "Input for toggling a feature flag",
276
274
  fields: {
277
275
  flagId: {
278
- type: ScalarTypeEnum.String_unsecure(),
276
+ type: E5.String_unsecure(),
279
277
  isOptional: false
280
278
  },
281
279
  status: {
282
- type: ScalarTypeEnum.String_unsecure(),
280
+ type: E5.String_unsecure(),
283
281
  isOptional: false
284
282
  }
285
283
  }
286
284
  });
287
- const GetFlagInput = defineSchemaModel({
285
+ const GetFlagInput = K5({
288
286
  name: "GetFlagInput",
289
287
  description: "Input for getting a feature flag",
290
288
  fields: {
291
289
  key: {
292
- type: ScalarTypeEnum.String_unsecure(),
290
+ type: E5.String_unsecure(),
293
291
  isOptional: false
294
292
  },
295
293
  orgId: {
296
- type: ScalarTypeEnum.String_unsecure(),
294
+ type: E5.String_unsecure(),
297
295
  isOptional: true
298
296
  }
299
297
  }
300
298
  });
301
- const ListFlagsInput = defineSchemaModel({
299
+ const ListFlagsInput = K5({
302
300
  name: "ListFlagsInput",
303
301
  description: "Input for listing feature flags",
304
302
  fields: {
305
303
  orgId: {
306
- type: ScalarTypeEnum.String_unsecure(),
304
+ type: E5.String_unsecure(),
307
305
  isOptional: true
308
306
  },
309
307
  status: {
310
- type: ScalarTypeEnum.String_unsecure(),
308
+ type: E5.String_unsecure(),
311
309
  isOptional: true
312
310
  },
313
311
  tags: {
314
- type: ScalarTypeEnum.JSON(),
312
+ type: E5.JSON(),
315
313
  isOptional: true
316
314
  },
317
315
  limit: {
318
- type: ScalarTypeEnum.Int_unsecure(),
316
+ type: E5.Int_unsecure(),
319
317
  isOptional: true
320
318
  },
321
319
  offset: {
322
- type: ScalarTypeEnum.Int_unsecure(),
320
+ type: E5.Int_unsecure(),
323
321
  isOptional: true
324
322
  }
325
323
  }
326
324
  });
327
- const ListFlagsOutput = defineSchemaModel({
325
+ const ListFlagsOutput = K5({
328
326
  name: "ListFlagsOutput",
329
327
  description: "Output for listing feature flags",
330
328
  fields: {
@@ -334,164 +332,164 @@ const ListFlagsOutput = defineSchemaModel({
334
332
  isOptional: false
335
333
  },
336
334
  total: {
337
- type: ScalarTypeEnum.Int_unsecure(),
335
+ type: E5.Int_unsecure(),
338
336
  isOptional: false
339
337
  }
340
338
  }
341
339
  });
342
- const EvaluateFlagInput = defineSchemaModel({
340
+ const EvaluateFlagInput = K5({
343
341
  name: "EvaluateFlagInput",
344
342
  description: "Input for evaluating a feature flag",
345
343
  fields: {
346
344
  key: {
347
- type: ScalarTypeEnum.String_unsecure(),
345
+ type: E5.String_unsecure(),
348
346
  isOptional: false
349
347
  },
350
348
  context: {
351
- type: ScalarTypeEnum.JSON(),
349
+ type: E5.JSON(),
352
350
  isOptional: false
353
351
  }
354
352
  }
355
353
  });
356
- const CreateRuleInput = defineSchemaModel({
354
+ const CreateRuleInput = K5({
357
355
  name: "CreateRuleInput",
358
356
  description: "Input for creating a targeting rule",
359
357
  fields: {
360
358
  flagId: {
361
- type: ScalarTypeEnum.String_unsecure(),
359
+ type: E5.String_unsecure(),
362
360
  isOptional: false
363
361
  },
364
362
  name: {
365
- type: ScalarTypeEnum.String_unsecure(),
363
+ type: E5.String_unsecure(),
366
364
  isOptional: true
367
365
  },
368
366
  priority: {
369
- type: ScalarTypeEnum.Int_unsecure(),
367
+ type: E5.Int_unsecure(),
370
368
  isOptional: true
371
369
  },
372
370
  attribute: {
373
- type: ScalarTypeEnum.String_unsecure(),
371
+ type: E5.String_unsecure(),
374
372
  isOptional: false
375
373
  },
376
374
  operator: {
377
- type: ScalarTypeEnum.String_unsecure(),
375
+ type: E5.String_unsecure(),
378
376
  isOptional: false
379
377
  },
380
378
  value: {
381
- type: ScalarTypeEnum.JSON(),
379
+ type: E5.JSON(),
382
380
  isOptional: false
383
381
  },
384
382
  rolloutPercentage: {
385
- type: ScalarTypeEnum.Int_unsecure(),
383
+ type: E5.Int_unsecure(),
386
384
  isOptional: true
387
385
  },
388
386
  serveValue: {
389
- type: ScalarTypeEnum.Boolean(),
387
+ type: E5.Boolean(),
390
388
  isOptional: true
391
389
  },
392
390
  serveVariant: {
393
- type: ScalarTypeEnum.String_unsecure(),
391
+ type: E5.String_unsecure(),
394
392
  isOptional: true
395
393
  }
396
394
  }
397
395
  });
398
- const DeleteRuleInput = defineSchemaModel({
396
+ const DeleteRuleInput = K5({
399
397
  name: "DeleteRuleInput",
400
398
  description: "Input for deleting a targeting rule",
401
399
  fields: { ruleId: {
402
- type: ScalarTypeEnum.String_unsecure(),
400
+ type: E5.String_unsecure(),
403
401
  isOptional: false
404
402
  } }
405
403
  });
406
- const CreateExperimentInput = defineSchemaModel({
404
+ const CreateExperimentInput = K5({
407
405
  name: "CreateExperimentInput",
408
406
  description: "Input for creating an experiment",
409
407
  fields: {
410
408
  key: {
411
- type: ScalarTypeEnum.String_unsecure(),
409
+ type: E5.String_unsecure(),
412
410
  isOptional: false
413
411
  },
414
412
  name: {
415
- type: ScalarTypeEnum.String_unsecure(),
413
+ type: E5.String_unsecure(),
416
414
  isOptional: false
417
415
  },
418
416
  description: {
419
- type: ScalarTypeEnum.String_unsecure(),
417
+ type: E5.String_unsecure(),
420
418
  isOptional: true
421
419
  },
422
420
  hypothesis: {
423
- type: ScalarTypeEnum.String_unsecure(),
421
+ type: E5.String_unsecure(),
424
422
  isOptional: true
425
423
  },
426
424
  flagId: {
427
- type: ScalarTypeEnum.String_unsecure(),
425
+ type: E5.String_unsecure(),
428
426
  isOptional: false
429
427
  },
430
428
  variants: {
431
- type: ScalarTypeEnum.JSON(),
429
+ type: E5.JSON(),
432
430
  isOptional: false
433
431
  },
434
432
  metrics: {
435
- type: ScalarTypeEnum.JSON(),
433
+ type: E5.JSON(),
436
434
  isOptional: true
437
435
  },
438
436
  audiencePercentage: {
439
- type: ScalarTypeEnum.Int_unsecure(),
437
+ type: E5.Int_unsecure(),
440
438
  isOptional: true
441
439
  },
442
440
  scheduledStartAt: {
443
- type: ScalarTypeEnum.DateTime(),
441
+ type: E5.DateTime(),
444
442
  isOptional: true
445
443
  },
446
444
  scheduledEndAt: {
447
- type: ScalarTypeEnum.DateTime(),
445
+ type: E5.DateTime(),
448
446
  isOptional: true
449
447
  },
450
448
  orgId: {
451
- type: ScalarTypeEnum.String_unsecure(),
449
+ type: E5.String_unsecure(),
452
450
  isOptional: true
453
451
  }
454
452
  }
455
453
  });
456
- const StartExperimentInput = defineSchemaModel({
454
+ const StartExperimentInput = K5({
457
455
  name: "StartExperimentInput",
458
456
  description: "Input for starting an experiment",
459
457
  fields: { experimentId: {
460
- type: ScalarTypeEnum.String_unsecure(),
458
+ type: E5.String_unsecure(),
461
459
  isOptional: false
462
460
  } }
463
461
  });
464
- const StopExperimentInput = defineSchemaModel({
462
+ const StopExperimentInput = K5({
465
463
  name: "StopExperimentInput",
466
464
  description: "Input for stopping an experiment",
467
465
  fields: {
468
466
  experimentId: {
469
- type: ScalarTypeEnum.String_unsecure(),
467
+ type: E5.String_unsecure(),
470
468
  isOptional: false
471
469
  },
472
470
  reason: {
473
- type: ScalarTypeEnum.String_unsecure(),
471
+ type: E5.String_unsecure(),
474
472
  isOptional: false
475
473
  },
476
474
  winningVariant: {
477
- type: ScalarTypeEnum.String_unsecure(),
475
+ type: E5.String_unsecure(),
478
476
  isOptional: true
479
477
  }
480
478
  }
481
479
  });
482
- const GetExperimentInput = defineSchemaModel({
480
+ const GetExperimentInput = K5({
483
481
  name: "GetExperimentInput",
484
482
  description: "Input for getting an experiment",
485
483
  fields: { experimentId: {
486
- type: ScalarTypeEnum.String_unsecure(),
484
+ type: E5.String_unsecure(),
487
485
  isOptional: false
488
486
  } }
489
487
  });
490
- const SuccessOutput = defineSchemaModel({
488
+ const SuccessOutput = K5({
491
489
  name: "SuccessOutput",
492
490
  description: "Generic success output",
493
491
  fields: { success: {
494
- type: ScalarTypeEnum.Boolean(),
492
+ type: E5.Boolean(),
495
493
  isOptional: false
496
494
  } }
497
495
  });
@@ -907,4 +905,5 @@ const GetExperimentContract = defineQuery({
907
905
  });
908
906
 
909
907
  //#endregion
910
- export { CreateExperimentContract, CreateFlagContract, CreateRuleContract, DeleteFlagContract, DeleteRuleContract, EvaluateFlagContract, EvaluationResultModel, ExperimentModel, FeatureFlagModel, GetExperimentContract, GetFlagContract, ListFlagsContract, StartExperimentContract, StopExperimentContract, TargetingRuleModel, ToggleFlagContract, UpdateFlagContract };
908
+ export { CreateExperimentContract, CreateFlagContract, CreateRuleContract, DeleteFlagContract, DeleteRuleContract, EvaluateFlagContract, EvaluationResultModel, ExperimentModel, FeatureFlagModel, GetExperimentContract, GetFlagContract, ListFlagsContract, StartExperimentContract, StopExperimentContract, TargetingRuleModel, ToggleFlagContract, UpdateFlagContract };
909
+ //# sourceMappingURL=index.js.map