unleash-server 5.2.7 → 5.3.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 (787) hide show
  1. package/dist/lib/addons/addon-schema.js +10 -0
  2. package/dist/lib/addons/addon-schema.js.map +1 -1
  3. package/dist/lib/addons/addon.d.ts +1 -0
  4. package/dist/lib/addons/addon.js.map +1 -1
  5. package/dist/lib/addons/datadog-definition.js +21 -0
  6. package/dist/lib/addons/datadog-definition.js.map +1 -1
  7. package/dist/lib/addons/datadog.d.ts +8 -1
  8. package/dist/lib/addons/datadog.js +14 -2
  9. package/dist/lib/addons/datadog.js.map +1 -1
  10. package/dist/lib/addons/datadog.test.js +62 -0
  11. package/dist/lib/addons/datadog.test.js.map +1 -1
  12. package/dist/lib/addons/feature-event-formatter-md.d.ts +1 -0
  13. package/dist/lib/addons/feature-event-formatter-md.js +7 -0
  14. package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
  15. package/dist/lib/addons/index.d.ts +2 -1
  16. package/dist/lib/addons/index.js +12 -2
  17. package/dist/lib/addons/index.js.map +1 -1
  18. package/dist/lib/addons/installation-definition-schema.d.ts +2 -0
  19. package/dist/lib/addons/installation-definition-schema.js +13 -0
  20. package/dist/lib/addons/installation-definition-schema.js.map +1 -0
  21. package/dist/lib/addons/slack-app-definition.d.ts +3 -0
  22. package/dist/lib/addons/slack-app-definition.js +68 -0
  23. package/dist/lib/addons/slack-app-definition.js.map +1 -0
  24. package/dist/lib/addons/slack-app.d.ts +23 -0
  25. package/dist/lib/addons/slack-app.js +137 -0
  26. package/dist/lib/addons/slack-app.js.map +1 -0
  27. package/dist/lib/addons/slack-app.test.d.ts +1 -0
  28. package/dist/lib/addons/slack-app.test.js +191 -0
  29. package/dist/lib/addons/slack-app.test.js.map +1 -0
  30. package/dist/lib/addons/slack-definition.js +13 -0
  31. package/dist/lib/addons/slack-definition.js.map +1 -1
  32. package/dist/lib/addons/slack.d.ts +9 -1
  33. package/dist/lib/addons/slack.js +15 -3
  34. package/dist/lib/addons/slack.js.map +1 -1
  35. package/dist/lib/addons/slack.test.js +33 -0
  36. package/dist/lib/addons/slack.test.js.map +1 -1
  37. package/dist/lib/addons/teams-definition.js +13 -0
  38. package/dist/lib/addons/teams-definition.js.map +1 -1
  39. package/dist/lib/addons/teams.d.ts +6 -1
  40. package/dist/lib/addons/teams.js +11 -2
  41. package/dist/lib/addons/teams.js.map +1 -1
  42. package/dist/lib/addons/teams.test.js +28 -0
  43. package/dist/lib/addons/teams.test.js.map +1 -1
  44. package/dist/lib/addons/webhook-definition.js +13 -0
  45. package/dist/lib/addons/webhook-definition.js.map +1 -1
  46. package/dist/lib/addons/webhook.d.ts +1 -0
  47. package/dist/lib/addons/webhook.js +11 -1
  48. package/dist/lib/addons/webhook.js.map +1 -1
  49. package/dist/lib/addons/webhook.test.js +29 -0
  50. package/dist/lib/addons/webhook.test.js.map +1 -1
  51. package/dist/lib/create-config.js +2 -2
  52. package/dist/lib/create-config.js.map +1 -1
  53. package/dist/lib/db/access-store.d.ts +0 -1
  54. package/dist/lib/db/access-store.js +1 -14
  55. package/dist/lib/db/access-store.js.map +1 -1
  56. package/dist/lib/db/client-metrics-store-v2.js +7 -2
  57. package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
  58. package/dist/lib/db/context-field-store.js +9 -18
  59. package/dist/lib/db/context-field-store.js.map +1 -1
  60. package/dist/lib/db/event-store.d.ts +2 -0
  61. package/dist/lib/db/event-store.js +19 -9
  62. package/dist/lib/db/event-store.js.map +1 -1
  63. package/dist/lib/db/feature-strategy-store.js +5 -0
  64. package/dist/lib/db/feature-strategy-store.js.map +1 -1
  65. package/dist/lib/db/feature-strategy-store.test.js +1 -0
  66. package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
  67. package/dist/lib/db/feature-toggle-client-store.d.ts +7 -8
  68. package/dist/lib/db/feature-toggle-client-store.js +46 -24
  69. package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
  70. package/dist/lib/db/feature-toggle-store.d.ts +6 -0
  71. package/dist/lib/db/feature-toggle-store.js +35 -0
  72. package/dist/lib/db/feature-toggle-store.js.map +1 -1
  73. package/dist/lib/db/feature-type-store.d.ts +1 -0
  74. package/dist/lib/db/feature-type-store.js +12 -0
  75. package/dist/lib/db/feature-type-store.js.map +1 -1
  76. package/dist/lib/db/group-store.d.ts +5 -7
  77. package/dist/lib/db/group-store.js +51 -25
  78. package/dist/lib/db/group-store.js.map +1 -1
  79. package/dist/lib/db/index.js +1 -1
  80. package/dist/lib/db/index.js.map +1 -1
  81. package/dist/lib/db/project-store.d.ts +3 -5
  82. package/dist/lib/db/project-store.js +19 -19
  83. package/dist/lib/db/project-store.js.map +1 -1
  84. package/dist/lib/db/segment-store.d.ts +2 -1
  85. package/dist/lib/db/segment-store.js +23 -20
  86. package/dist/lib/db/segment-store.js.map +1 -1
  87. package/dist/lib/db/segment-store.test.d.ts +1 -0
  88. package/dist/lib/db/segment-store.test.js +32 -0
  89. package/dist/lib/db/segment-store.test.js.map +1 -0
  90. package/dist/lib/error/bad-data-error.d.ts +1 -0
  91. package/dist/lib/error/bad-data-error.js +18 -5
  92. package/dist/lib/error/bad-data-error.js.map +1 -1
  93. package/dist/lib/error/content-type-error.d.ts +1 -0
  94. package/dist/lib/error/content-type-error.js +1 -0
  95. package/dist/lib/error/content-type-error.js.map +1 -1
  96. package/dist/lib/error/disabled-error.d.ts +1 -0
  97. package/dist/lib/error/disabled-error.js +4 -0
  98. package/dist/lib/error/disabled-error.js.map +1 -1
  99. package/dist/lib/error/feature-has-tag-error.d.ts +1 -0
  100. package/dist/lib/error/feature-has-tag-error.js +4 -0
  101. package/dist/lib/error/feature-has-tag-error.js.map +1 -1
  102. package/dist/lib/error/forbidden-error.d.ts +5 -0
  103. package/dist/lib/error/forbidden-error.js +12 -0
  104. package/dist/lib/error/forbidden-error.js.map +1 -0
  105. package/dist/lib/error/from-legacy-error.js +68 -0
  106. package/dist/lib/error/from-legacy-error.js.map +1 -1
  107. package/dist/lib/error/incompatible-project-error.d.ts +1 -0
  108. package/dist/lib/error/incompatible-project-error.js +1 -0
  109. package/dist/lib/error/incompatible-project-error.js.map +1 -1
  110. package/dist/lib/error/index.d.ts +3 -2
  111. package/dist/lib/error/index.js +5 -3
  112. package/dist/lib/error/index.js.map +1 -1
  113. package/dist/lib/error/invalid-operation-error.d.ts +1 -0
  114. package/dist/lib/error/invalid-operation-error.js +4 -0
  115. package/dist/lib/error/invalid-operation-error.js.map +1 -1
  116. package/dist/lib/error/invalid-token-error.d.ts +1 -0
  117. package/dist/lib/error/invalid-token-error.js +1 -0
  118. package/dist/lib/error/invalid-token-error.js.map +1 -1
  119. package/dist/lib/error/minimum-one-environment-error.d.ts +1 -0
  120. package/dist/lib/error/minimum-one-environment-error.js +4 -0
  121. package/dist/lib/error/minimum-one-environment-error.js.map +1 -1
  122. package/dist/lib/error/name-exists-error.d.ts +1 -0
  123. package/dist/lib/error/name-exists-error.js +4 -0
  124. package/dist/lib/error/name-exists-error.js.map +1 -1
  125. package/dist/lib/error/not-implemented-error.d.ts +1 -0
  126. package/dist/lib/error/not-implemented-error.js +4 -0
  127. package/dist/lib/error/not-implemented-error.js.map +1 -1
  128. package/dist/lib/error/notfound-error.d.ts +1 -0
  129. package/dist/lib/error/notfound-error.js +1 -0
  130. package/dist/lib/error/notfound-error.js.map +1 -1
  131. package/dist/lib/error/operation-denied-error.d.ts +1 -0
  132. package/dist/lib/error/operation-denied-error.js +4 -0
  133. package/dist/lib/error/operation-denied-error.js.map +1 -1
  134. package/dist/lib/error/owasp-validation-error.d.ts +1 -0
  135. package/dist/lib/error/owasp-validation-error.js +1 -0
  136. package/dist/lib/error/owasp-validation-error.js.map +1 -1
  137. package/dist/lib/error/password-mismatch.d.ts +1 -0
  138. package/dist/lib/error/password-mismatch.js +1 -0
  139. package/dist/lib/error/password-mismatch.js.map +1 -1
  140. package/dist/lib/error/password-undefined.d.ts +1 -0
  141. package/dist/lib/error/password-undefined.js +1 -0
  142. package/dist/lib/error/password-undefined.js.map +1 -1
  143. package/dist/lib/error/{no-access-error.d.ts → permission-error.d.ts} +3 -2
  144. package/dist/lib/error/{no-access-error.js → permission-error.js} +10 -7
  145. package/dist/lib/error/permission-error.js.map +1 -0
  146. package/dist/lib/error/project-without-owner-error.d.ts +1 -0
  147. package/dist/lib/error/project-without-owner-error.js +1 -0
  148. package/dist/lib/error/project-without-owner-error.js.map +1 -1
  149. package/dist/lib/error/role-in-use-error.d.ts +1 -0
  150. package/dist/lib/error/role-in-use-error.js +4 -0
  151. package/dist/lib/error/role-in-use-error.js.map +1 -1
  152. package/dist/lib/error/unauthorized-error.d.ts +1 -0
  153. package/dist/lib/error/unauthorized-error.js +4 -0
  154. package/dist/lib/error/unauthorized-error.js.map +1 -1
  155. package/dist/lib/error/unleash-error.d.ts +5 -3
  156. package/dist/lib/error/unleash-error.js +4 -61
  157. package/dist/lib/error/unleash-error.js.map +1 -1
  158. package/dist/lib/error/unleash-error.test.js +67 -37
  159. package/dist/lib/error/unleash-error.test.js.map +1 -1
  160. package/dist/lib/error/used-token-error.d.ts +1 -0
  161. package/dist/lib/error/used-token-error.js +1 -0
  162. package/dist/lib/error/used-token-error.js.map +1 -1
  163. package/dist/lib/features/export-import-toggles/export-import-controller.js +12 -7
  164. package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
  165. package/dist/lib/features/export-import-toggles/import-permissions-service.js +1 -1
  166. package/dist/lib/features/export-import-toggles/import-permissions-service.js.map +1 -1
  167. package/dist/lib/features/feature-toggle/createFeatureToggleService.js +1 -1
  168. package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
  169. package/dist/lib/features/group/createGroupService.d.ts +4 -0
  170. package/dist/lib/features/group/createGroupService.js +20 -0
  171. package/dist/lib/features/group/createGroupService.js.map +1 -0
  172. package/dist/lib/features/playground/feature-evaluator/client.d.ts +3 -1
  173. package/dist/lib/features/playground/feature-evaluator/client.js +33 -13
  174. package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -1
  175. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.d.ts +3 -1
  176. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js +14 -1
  177. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -1
  178. package/dist/lib/features/playground/feature-evaluator/variant.d.ts +4 -4
  179. package/dist/lib/features/playground/feature-evaluator/variant.js +14 -10
  180. package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -1
  181. package/dist/lib/features/playground/offline-unleash-client.js +7 -0
  182. package/dist/lib/features/playground/offline-unleash-client.js.map +1 -1
  183. package/dist/lib/features/playground/offline-unleash-client.test.js +69 -0
  184. package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -1
  185. package/dist/lib/features/playground/playground-service.js +5 -3
  186. package/dist/lib/features/playground/playground-service.js.map +1 -1
  187. package/dist/lib/features/playground/playground.js +12 -15
  188. package/dist/lib/features/playground/playground.js.map +1 -1
  189. package/dist/lib/middleware/api-token-middleware.js +1 -1
  190. package/dist/lib/middleware/api-token-middleware.js.map +1 -1
  191. package/dist/lib/openapi/index.js +15 -3
  192. package/dist/lib/openapi/index.js.map +1 -1
  193. package/dist/lib/openapi/meta-schema-rules.test.js +0 -126
  194. package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
  195. package/dist/lib/openapi/spec/addon-type-schema.d.ts +57 -0
  196. package/dist/lib/openapi/spec/addon-type-schema.js +50 -0
  197. package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
  198. package/dist/lib/openapi/spec/addons-schema.d.ts +64 -0
  199. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +166 -4
  200. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +1 -2
  201. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
  202. package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +331 -6
  203. package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +662 -12
  204. package/dist/lib/openapi/spec/api-tokens-schema.d.ts +2 -2
  205. package/dist/lib/openapi/spec/api-tokens-schema.js +2 -2
  206. package/dist/lib/openapi/spec/api-tokens-schema.js.map +1 -1
  207. package/dist/lib/openapi/spec/batch-features-schema.d.ts +3 -0
  208. package/dist/lib/openapi/spec/batch-features-schema.js +3 -0
  209. package/dist/lib/openapi/spec/batch-features-schema.js.map +1 -1
  210. package/dist/lib/openapi/spec/batch-stale-schema.d.ts +7 -0
  211. package/dist/lib/openapi/spec/batch-stale-schema.js +7 -0
  212. package/dist/lib/openapi/spec/batch-stale-schema.js.map +1 -1
  213. package/dist/lib/openapi/spec/change-password-schema.d.ts +5 -0
  214. package/dist/lib/openapi/spec/change-password-schema.js +5 -0
  215. package/dist/lib/openapi/spec/change-password-schema.js.map +1 -1
  216. package/dist/lib/openapi/spec/client-feature-schema.d.ts +121 -3
  217. package/dist/lib/openapi/spec/client-feature-schema.js +2 -0
  218. package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
  219. package/dist/lib/openapi/spec/client-features-schema.d.ts +246 -16
  220. package/dist/lib/openapi/spec/client-features-schema.js +5 -3
  221. package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
  222. package/dist/lib/openapi/spec/client-features-schema.test.js +1 -2
  223. package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
  224. package/dist/lib/openapi/spec/client-segment-schema.d.ts +75 -0
  225. package/dist/lib/openapi/spec/client-segment-schema.js +35 -0
  226. package/dist/lib/openapi/spec/client-segment-schema.js.map +1 -0
  227. package/dist/lib/openapi/spec/clone-feature-schema.d.ts +5 -0
  228. package/dist/lib/openapi/spec/clone-feature-schema.js +5 -0
  229. package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -1
  230. package/dist/lib/openapi/spec/context-field-schema.d.ts +22 -3
  231. package/dist/lib/openapi/spec/context-field-schema.js +17 -3
  232. package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
  233. package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
  234. package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
  235. package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
  236. package/dist/lib/openapi/spec/context-fields-schema.d.ts +28 -3
  237. package/dist/lib/openapi/spec/context-fields-schema.js +1 -0
  238. package/dist/lib/openapi/spec/context-fields-schema.js.map +1 -1
  239. package/dist/lib/openapi/spec/create-api-token-schema.d.ts +130 -32
  240. package/dist/lib/openapi/spec/create-api-token-schema.js +71 -35
  241. package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
  242. package/dist/lib/openapi/spec/create-feature-schema.d.ts +9 -0
  243. package/dist/lib/openapi/spec/create-feature-schema.js +9 -0
  244. package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
  245. package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +63 -2
  246. package/dist/lib/openapi/spec/create-feature-strategy-schema.js +12 -2
  247. package/dist/lib/openapi/spec/create-feature-strategy-schema.js.map +1 -1
  248. package/dist/lib/openapi/spec/create-group-schema.d.ts +61 -0
  249. package/dist/lib/openapi/spec/create-group-schema.js +43 -0
  250. package/dist/lib/openapi/spec/create-group-schema.js.map +1 -0
  251. package/dist/lib/openapi/spec/create-strategy-schema.d.ts +52 -0
  252. package/dist/lib/openapi/spec/create-strategy-schema.js +60 -0
  253. package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -0
  254. package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +54 -0
  255. package/dist/lib/openapi/spec/create-strategy-variant-schema.js +53 -0
  256. package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -0
  257. package/dist/lib/openapi/spec/create-user-response-schema.d.ts +98 -0
  258. package/dist/lib/openapi/spec/create-user-response-schema.js +31 -0
  259. package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -0
  260. package/dist/lib/openapi/spec/create-user-schema.d.ts +21 -1
  261. package/dist/lib/openapi/spec/create-user-schema.js +24 -1
  262. package/dist/lib/openapi/spec/create-user-schema.js.map +1 -1
  263. package/dist/lib/openapi/spec/email-schema.d.ts +3 -0
  264. package/dist/lib/openapi/spec/email-schema.js +3 -0
  265. package/dist/lib/openapi/spec/email-schema.js.map +1 -1
  266. package/dist/lib/openapi/spec/environment-project-schema.d.ts +115 -2
  267. package/dist/lib/openapi/spec/environment-project-schema.js +2 -0
  268. package/dist/lib/openapi/spec/environment-project-schema.js.map +1 -1
  269. package/dist/lib/openapi/spec/environments-project-schema.d.ts +118 -2
  270. package/dist/lib/openapi/spec/environments-project-schema.js +3 -0
  271. package/dist/lib/openapi/spec/environments-project-schema.js.map +1 -1
  272. package/dist/lib/openapi/spec/environments-schema.d.ts +4 -0
  273. package/dist/lib/openapi/spec/environments-schema.js +4 -0
  274. package/dist/lib/openapi/spec/environments-schema.js.map +1 -1
  275. package/dist/lib/openapi/spec/event-schema.d.ts +130 -0
  276. package/dist/lib/openapi/spec/event-schema.js +42 -2
  277. package/dist/lib/openapi/spec/event-schema.js.map +1 -1
  278. package/dist/lib/openapi/spec/events-schema.d.ts +137 -0
  279. package/dist/lib/openapi/spec/events-schema.js +7 -0
  280. package/dist/lib/openapi/spec/events-schema.js.map +1 -1
  281. package/dist/lib/openapi/spec/export-query-schema.d.ts +7 -0
  282. package/dist/lib/openapi/spec/export-query-schema.js +7 -0
  283. package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
  284. package/dist/lib/openapi/spec/export-result-schema.d.ts +609 -17
  285. package/dist/lib/openapi/spec/export-result-schema.js +90 -0
  286. package/dist/lib/openapi/spec/export-result-schema.js.map +1 -1
  287. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +125 -3
  288. package/dist/lib/openapi/spec/feature-environment-schema.js +6 -0
  289. package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
  290. package/dist/lib/openapi/spec/feature-events-schema.d.ts +141 -1
  291. package/dist/lib/openapi/spec/feature-events-schema.js +13 -1
  292. package/dist/lib/openapi/spec/feature-events-schema.js.map +1 -1
  293. package/dist/lib/openapi/spec/feature-schema.d.ts +251 -6
  294. package/dist/lib/openapi/spec/feature-schema.js +7 -0
  295. package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
  296. package/dist/lib/openapi/spec/feature-schema.test.js +2 -2
  297. package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
  298. package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +61 -1
  299. package/dist/lib/openapi/spec/feature-strategy-schema.js +10 -1
  300. package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
  301. package/dist/lib/openapi/spec/feature-type-schema.d.ts +11 -1
  302. package/dist/lib/openapi/spec/feature-type-schema.js +11 -1
  303. package/dist/lib/openapi/spec/feature-type-schema.js.map +1 -1
  304. package/dist/lib/openapi/spec/feature-types-schema.d.ts +42 -1
  305. package/dist/lib/openapi/spec/feature-types-schema.js +37 -0
  306. package/dist/lib/openapi/spec/feature-types-schema.js.map +1 -1
  307. package/dist/lib/openapi/spec/feature-variants-schema.d.ts +11 -2
  308. package/dist/lib/openapi/spec/feature-variants-schema.js +4 -0
  309. package/dist/lib/openapi/spec/feature-variants-schema.js.map +1 -1
  310. package/dist/lib/openapi/spec/features-schema.d.ts +501 -12
  311. package/dist/lib/openapi/spec/features-schema.js +6 -0
  312. package/dist/lib/openapi/spec/features-schema.js.map +1 -1
  313. package/dist/lib/openapi/spec/feedback-create-schema.d.ts +21 -0
  314. package/dist/lib/openapi/spec/feedback-create-schema.js +23 -0
  315. package/dist/lib/openapi/spec/feedback-create-schema.js.map +1 -0
  316. package/dist/lib/openapi/spec/feedback-response-schema.d.ts +33 -0
  317. package/dist/lib/openapi/spec/feedback-response-schema.js +35 -0
  318. package/dist/lib/openapi/spec/feedback-response-schema.js.map +1 -0
  319. package/dist/lib/openapi/spec/feedback-update-schema.d.ts +27 -0
  320. package/dist/lib/openapi/spec/feedback-update-schema.js +29 -0
  321. package/dist/lib/openapi/spec/feedback-update-schema.js.map +1 -0
  322. package/dist/lib/openapi/spec/group-schema.d.ts +107 -9
  323. package/dist/lib/openapi/spec/group-schema.js +20 -3
  324. package/dist/lib/openapi/spec/group-schema.js.map +1 -1
  325. package/dist/lib/openapi/spec/group-user-model-schema.d.ts +46 -3
  326. package/dist/lib/openapi/spec/group-user-model-schema.js +5 -0
  327. package/dist/lib/openapi/spec/group-user-model-schema.js.map +1 -1
  328. package/dist/lib/openapi/spec/groups-schema.d.ts +196 -15
  329. package/dist/lib/openapi/spec/groups-schema.js +2 -0
  330. package/dist/lib/openapi/spec/groups-schema.js.map +1 -1
  331. package/dist/lib/openapi/spec/health-overview-schema.d.ts +733 -16
  332. package/dist/lib/openapi/spec/health-overview-schema.js +10 -0
  333. package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
  334. package/dist/lib/openapi/spec/health-report-schema.d.ts +733 -16
  335. package/dist/lib/openapi/spec/id-schema.d.ts +3 -0
  336. package/dist/lib/openapi/spec/id-schema.js +3 -0
  337. package/dist/lib/openapi/spec/id-schema.js.map +1 -1
  338. package/dist/lib/openapi/spec/import-toggles-schema.d.ts +1198 -63
  339. package/dist/lib/openapi/spec/import-toggles-schema.js +7 -0
  340. package/dist/lib/openapi/spec/import-toggles-schema.js.map +1 -1
  341. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.d.ts +5 -0
  342. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js +5 -0
  343. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js.map +1 -1
  344. package/dist/lib/openapi/spec/import-toggles-validate-schema.d.ts +18 -0
  345. package/dist/lib/openapi/spec/import-toggles-validate-schema.js +17 -0
  346. package/dist/lib/openapi/spec/import-toggles-validate-schema.js.map +1 -1
  347. package/dist/lib/openapi/spec/index.d.ts +15 -3
  348. package/dist/lib/openapi/spec/index.js +15 -3
  349. package/dist/lib/openapi/spec/index.js.map +1 -1
  350. package/dist/lib/openapi/spec/legal-value-schema.d.ts +5 -0
  351. package/dist/lib/openapi/spec/legal-value-schema.js +5 -0
  352. package/dist/lib/openapi/spec/legal-value-schema.js.map +1 -1
  353. package/dist/lib/openapi/spec/login-schema.d.ts +5 -0
  354. package/dist/lib/openapi/spec/login-schema.js +5 -0
  355. package/dist/lib/openapi/spec/login-schema.js.map +1 -1
  356. package/dist/lib/openapi/spec/me-schema.d.ts +69 -11
  357. package/dist/lib/openapi/spec/me-schema.js +7 -3
  358. package/dist/lib/openapi/spec/me-schema.js.map +1 -1
  359. package/dist/lib/openapi/spec/name-schema.d.ts +3 -0
  360. package/dist/lib/openapi/spec/name-schema.js +3 -0
  361. package/dist/lib/openapi/spec/name-schema.js.map +1 -1
  362. package/dist/lib/openapi/spec/parameters-schema.d.ts +1 -0
  363. package/dist/lib/openapi/spec/parameters-schema.js +1 -0
  364. package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
  365. package/dist/lib/openapi/spec/password-schema.d.ts +7 -0
  366. package/dist/lib/openapi/spec/password-schema.js +7 -0
  367. package/dist/lib/openapi/spec/password-schema.js.map +1 -1
  368. package/dist/lib/openapi/spec/patches-schema.d.ts +1 -0
  369. package/dist/lib/openapi/spec/patches-schema.js +1 -0
  370. package/dist/lib/openapi/spec/patches-schema.js.map +1 -1
  371. package/dist/lib/openapi/spec/permission-schema.d.ts +7 -0
  372. package/dist/lib/openapi/spec/permission-schema.js +7 -0
  373. package/dist/lib/openapi/spec/permission-schema.js.map +1 -1
  374. package/dist/lib/openapi/spec/playground-feature-schema.d.ts +165 -3
  375. package/dist/lib/openapi/spec/playground-feature-schema.js +0 -1
  376. package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
  377. package/dist/lib/openapi/spec/playground-response-schema.d.ts +330 -5
  378. package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +204 -0
  379. package/dist/lib/openapi/spec/playground-strategy-schema.js +49 -0
  380. package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
  381. package/dist/lib/openapi/spec/profile-schema.d.ts +267 -7
  382. package/dist/lib/openapi/spec/profile-schema.js +5 -0
  383. package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
  384. package/dist/lib/openapi/spec/project-environment-schema.d.ts +115 -2
  385. package/dist/lib/openapi/spec/project-environment-schema.js +2 -0
  386. package/dist/lib/openapi/spec/project-environment-schema.js.map +1 -1
  387. package/dist/lib/openapi/spec/project-overview-schema.d.ts +733 -16
  388. package/dist/lib/openapi/spec/project-overview-schema.js +10 -0
  389. package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
  390. package/dist/lib/openapi/spec/proxy-client-schema.d.ts +3 -0
  391. package/dist/lib/openapi/spec/proxy-client-schema.js +3 -0
  392. package/dist/lib/openapi/spec/proxy-client-schema.js.map +1 -1
  393. package/dist/lib/openapi/spec/proxy-feature-schema.d.ts +20 -2
  394. package/dist/lib/openapi/spec/proxy-feature-schema.js +20 -3
  395. package/dist/lib/openapi/spec/proxy-feature-schema.js.map +1 -1
  396. package/dist/lib/openapi/spec/proxy-features-schema.d.ts +22 -1
  397. package/dist/lib/openapi/spec/proxy-features-schema.js +2 -0
  398. package/dist/lib/openapi/spec/proxy-features-schema.js.map +1 -1
  399. package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +52 -4
  400. package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +104 -8
  401. package/dist/lib/openapi/spec/push-variants-schema.d.ts +7 -2
  402. package/dist/lib/openapi/spec/requests-per-second-schema.d.ts +16 -0
  403. package/dist/lib/openapi/spec/requests-per-second-schema.js +22 -2
  404. package/dist/lib/openapi/spec/requests-per-second-schema.js.map +1 -1
  405. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.d.ts +17 -0
  406. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js +1 -0
  407. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js.map +1 -1
  408. package/dist/lib/openapi/spec/role-schema.d.ts +11 -1
  409. package/dist/lib/openapi/spec/role-schema.js +11 -1
  410. package/dist/lib/openapi/spec/role-schema.js.map +1 -1
  411. package/dist/lib/openapi/spec/search-events-schema.d.ts +9 -0
  412. package/dist/lib/openapi/spec/search-events-schema.js +10 -0
  413. package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
  414. package/dist/lib/openapi/spec/segment-schema.d.ts +23 -6
  415. package/dist/lib/openapi/spec/segment-schema.js +18 -15
  416. package/dist/lib/openapi/spec/segment-schema.js.map +1 -1
  417. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.d.ts +6 -0
  418. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js +6 -0
  419. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js.map +1 -1
  420. package/dist/lib/openapi/spec/set-ui-config-schema.d.ts +4 -0
  421. package/dist/lib/openapi/spec/set-ui-config-schema.js +4 -0
  422. package/dist/lib/openapi/spec/set-ui-config-schema.js.map +1 -1
  423. package/dist/lib/openapi/spec/splash-request-schema.d.ts +21 -0
  424. package/dist/lib/openapi/spec/splash-request-schema.js +23 -0
  425. package/dist/lib/openapi/spec/splash-request-schema.js.map +1 -0
  426. package/dist/lib/openapi/spec/splash-response-schema.d.ts +27 -0
  427. package/dist/lib/openapi/spec/splash-response-schema.js +21 -0
  428. package/dist/lib/openapi/spec/splash-response-schema.js.map +1 -0
  429. package/dist/lib/openapi/spec/state-schema.d.ts +523 -19
  430. package/dist/lib/openapi/spec/state-schema.js +2 -0
  431. package/dist/lib/openapi/spec/state-schema.js.map +1 -1
  432. package/dist/lib/openapi/spec/strategies-schema.d.ts +9 -3
  433. package/dist/lib/openapi/spec/strategies-schema.js +5 -0
  434. package/dist/lib/openapi/spec/strategies-schema.js.map +1 -1
  435. package/dist/lib/openapi/spec/strategy-schema.d.ts +4 -3
  436. package/dist/lib/openapi/spec/strategy-schema.js +4 -3
  437. package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
  438. package/dist/lib/openapi/spec/strategy-schema.test.js +5 -0
  439. package/dist/lib/openapi/spec/strategy-schema.test.js.map +1 -1
  440. package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +54 -0
  441. package/dist/lib/openapi/spec/strategy-variant-schema.js +16 -0
  442. package/dist/lib/openapi/spec/strategy-variant-schema.js.map +1 -0
  443. package/dist/lib/openapi/spec/tag-type-schema.d.ts +7 -0
  444. package/dist/lib/openapi/spec/tag-type-schema.js +7 -0
  445. package/dist/lib/openapi/spec/tag-type-schema.js.map +1 -1
  446. package/dist/lib/openapi/spec/tag-types-schema.d.ts +11 -0
  447. package/dist/lib/openapi/spec/tag-types-schema.js +4 -0
  448. package/dist/lib/openapi/spec/tag-types-schema.js.map +1 -1
  449. package/dist/lib/openapi/spec/tag-with-version-schema.d.ts +3 -0
  450. package/dist/lib/openapi/spec/tag-with-version-schema.js +3 -0
  451. package/dist/lib/openapi/spec/tag-with-version-schema.js.map +1 -1
  452. package/dist/lib/openapi/spec/telemetry-settings-schema.d.ts +22 -0
  453. package/dist/lib/openapi/spec/telemetry-settings-schema.js +24 -0
  454. package/dist/lib/openapi/spec/telemetry-settings-schema.js.map +1 -0
  455. package/dist/lib/openapi/spec/token-user-schema.d.ts +23 -2
  456. package/dist/lib/openapi/spec/token-user-schema.js +12 -1
  457. package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
  458. package/dist/lib/openapi/spec/ui-config-schema.d.ts +77 -1
  459. package/dist/lib/openapi/spec/ui-config-schema.js +53 -0
  460. package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
  461. package/dist/lib/openapi/spec/update-api-token-schema.d.ts +3 -0
  462. package/dist/lib/openapi/spec/update-api-token-schema.js +3 -0
  463. package/dist/lib/openapi/spec/update-api-token-schema.js.map +1 -1
  464. package/dist/lib/openapi/spec/update-feature-schema.d.ts +11 -14
  465. package/dist/lib/openapi/spec/update-feature-schema.js +11 -14
  466. package/dist/lib/openapi/spec/update-feature-schema.js.map +1 -1
  467. package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +5 -0
  468. package/dist/lib/openapi/spec/update-feature-strategy-schema.js +4 -0
  469. package/dist/lib/openapi/spec/update-feature-strategy-schema.js.map +1 -1
  470. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.d.ts +19 -0
  471. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js +21 -0
  472. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js.map +1 -0
  473. package/dist/lib/openapi/spec/update-strategy-schema.d.ts +47 -0
  474. package/dist/lib/openapi/spec/update-strategy-schema.js +55 -0
  475. package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
  476. package/dist/lib/openapi/spec/update-tag-type-schema.d.ts +5 -0
  477. package/dist/lib/openapi/spec/update-tag-type-schema.js +5 -0
  478. package/dist/lib/openapi/spec/update-tag-type-schema.js.map +1 -1
  479. package/dist/lib/openapi/spec/update-user-schema.d.ts +15 -1
  480. package/dist/lib/openapi/spec/update-user-schema.js +18 -1
  481. package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
  482. package/dist/lib/openapi/spec/upsert-context-field-schema.d.ts +5 -0
  483. package/dist/lib/openapi/spec/user-schema.d.ts +41 -3
  484. package/dist/lib/openapi/spec/user-schema.js +41 -3
  485. package/dist/lib/openapi/spec/user-schema.js.map +1 -1
  486. package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +194 -15
  487. package/dist/lib/openapi/spec/users-schema.d.ts +55 -4
  488. package/dist/lib/openapi/spec/users-schema.js +3 -0
  489. package/dist/lib/openapi/spec/users-schema.js.map +1 -1
  490. package/dist/lib/openapi/spec/users-search-schema.d.ts +41 -3
  491. package/dist/lib/openapi/spec/validate-feature-schema.d.ts +16 -0
  492. package/dist/lib/openapi/spec/validate-feature-schema.js +18 -0
  493. package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -0
  494. package/dist/lib/openapi/spec/validate-password-schema.d.ts +3 -0
  495. package/dist/lib/openapi/spec/validate-password-schema.js +3 -0
  496. package/dist/lib/openapi/spec/validate-password-schema.js.map +1 -1
  497. package/dist/lib/openapi/spec/validate-tag-type-schema.d.ts +10 -0
  498. package/dist/lib/openapi/spec/validate-tag-type-schema.js +3 -0
  499. package/dist/lib/openapi/spec/validate-tag-type-schema.js.map +1 -1
  500. package/dist/lib/openapi/spec/variant-flag-schema.d.ts +11 -0
  501. package/dist/lib/openapi/spec/variant-flag-schema.js +11 -0
  502. package/dist/lib/openapi/spec/variant-flag-schema.js.map +1 -1
  503. package/dist/lib/openapi/spec/variant-schema.d.ts +7 -2
  504. package/dist/lib/openapi/spec/variant-schema.js +7 -2
  505. package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
  506. package/dist/lib/openapi/spec/variants-schema.d.ts +7 -2
  507. package/dist/lib/openapi/spec/version-schema.d.ts +16 -1
  508. package/dist/lib/openapi/spec/version-schema.js +16 -1
  509. package/dist/lib/openapi/spec/version-schema.js.map +1 -1
  510. package/dist/lib/openapi/util/openapi-tags.d.ts +14 -2
  511. package/dist/lib/openapi/util/openapi-tags.js +9 -1
  512. package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
  513. package/dist/lib/openapi/util/standard-responses.d.ts +1 -1
  514. package/dist/lib/openapi/util/standard-responses.js +1 -1
  515. package/dist/lib/openapi/util/standard-responses.js.map +1 -1
  516. package/dist/lib/openapi/validate.js +1 -1
  517. package/dist/lib/openapi/validate.js.map +1 -1
  518. package/dist/lib/routes/admin-api/api-token.js +12 -0
  519. package/dist/lib/routes/admin-api/api-token.js.map +1 -1
  520. package/dist/lib/routes/admin-api/archive.d.ts +0 -1
  521. package/dist/lib/routes/admin-api/archive.js +20 -5
  522. package/dist/lib/routes/admin-api/archive.js.map +1 -1
  523. package/dist/lib/routes/admin-api/config.js +4 -0
  524. package/dist/lib/routes/admin-api/config.js.map +1 -1
  525. package/dist/lib/routes/admin-api/constraints.d.ts +2 -2
  526. package/dist/lib/routes/admin-api/constraints.js +5 -2
  527. package/dist/lib/routes/admin-api/constraints.js.map +1 -1
  528. package/dist/lib/routes/admin-api/context.d.ts +2 -1
  529. package/dist/lib/routes/admin-api/context.js +16 -4
  530. package/dist/lib/routes/admin-api/context.js.map +1 -1
  531. package/dist/lib/routes/admin-api/event.js +6 -3
  532. package/dist/lib/routes/admin-api/event.js.map +1 -1
  533. package/dist/lib/routes/admin-api/favorites.js +24 -4
  534. package/dist/lib/routes/admin-api/favorites.js.map +1 -1
  535. package/dist/lib/routes/admin-api/feature-type.d.ts +6 -0
  536. package/dist/lib/routes/admin-api/feature-type.js +37 -1
  537. package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
  538. package/dist/lib/routes/admin-api/feature.d.ts +2 -3
  539. package/dist/lib/routes/admin-api/feature.js +14 -3
  540. package/dist/lib/routes/admin-api/feature.js.map +1 -1
  541. package/dist/lib/routes/admin-api/index.js +2 -0
  542. package/dist/lib/routes/admin-api/index.js.map +1 -1
  543. package/dist/lib/routes/admin-api/project/project-archive.js +13 -4
  544. package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
  545. package/dist/lib/routes/admin-api/project/project-features.d.ts +1 -1
  546. package/dist/lib/routes/admin-api/project/project-features.js +116 -27
  547. package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
  548. package/dist/lib/routes/admin-api/project/variants.js +26 -16
  549. package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
  550. package/dist/lib/routes/admin-api/strategy.d.ts +6 -3
  551. package/dist/lib/routes/admin-api/strategy.js +40 -12
  552. package/dist/lib/routes/admin-api/strategy.js.map +1 -1
  553. package/dist/lib/routes/admin-api/strategy.test.js +5 -5
  554. package/dist/lib/routes/admin-api/strategy.test.js.map +1 -1
  555. package/dist/lib/routes/admin-api/tag-type.js +21 -1
  556. package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
  557. package/dist/lib/routes/admin-api/tag.js +17 -1
  558. package/dist/lib/routes/admin-api/tag.js.map +1 -1
  559. package/dist/lib/routes/admin-api/telemetry.d.ts +14 -0
  560. package/dist/lib/routes/admin-api/telemetry.js +41 -0
  561. package/dist/lib/routes/admin-api/telemetry.js.map +1 -0
  562. package/dist/lib/routes/admin-api/user/user.js +20 -4
  563. package/dist/lib/routes/admin-api/user/user.js.map +1 -1
  564. package/dist/lib/routes/admin-api/user-admin.d.ts +3 -2
  565. package/dist/lib/routes/admin-api/user-admin.js +88 -14
  566. package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
  567. package/dist/lib/routes/admin-api/user-feedback.js +17 -7
  568. package/dist/lib/routes/admin-api/user-feedback.js.map +1 -1
  569. package/dist/lib/routes/admin-api/user-splash.js +9 -3
  570. package/dist/lib/routes/admin-api/user-splash.js.map +1 -1
  571. package/dist/lib/routes/auth/reset-password-controller.js +24 -4
  572. package/dist/lib/routes/auth/reset-password-controller.js.map +1 -1
  573. package/dist/lib/routes/auth/simple-password-provider.js +4 -0
  574. package/dist/lib/routes/auth/simple-password-provider.js.map +1 -1
  575. package/dist/lib/routes/client-api/feature.js +1 -1
  576. package/dist/lib/routes/client-api/feature.js.map +1 -1
  577. package/dist/lib/routes/client-api/feature.test.js +8 -3
  578. package/dist/lib/routes/client-api/feature.test.js.map +1 -1
  579. package/dist/lib/routes/client-api/metrics.js +3 -3
  580. package/dist/lib/routes/client-api/metrics.js.map +1 -1
  581. package/dist/lib/routes/controller.js +2 -2
  582. package/dist/lib/routes/controller.js.map +1 -1
  583. package/dist/lib/routes/index.js +1 -3
  584. package/dist/lib/routes/index.js.map +1 -1
  585. package/dist/lib/routes/proxy-api/index.d.ts +1 -1
  586. package/dist/lib/routes/proxy-api/index.js +27 -4
  587. package/dist/lib/routes/proxy-api/index.js.map +1 -1
  588. package/dist/lib/segments/segment-service-interface.d.ts +2 -1
  589. package/dist/lib/server-impl.js +1 -0
  590. package/dist/lib/server-impl.js.map +1 -1
  591. package/dist/lib/services/addon-service.d.ts +2 -1
  592. package/dist/lib/services/addon-service.js +6 -2
  593. package/dist/lib/services/addon-service.js.map +1 -1
  594. package/dist/lib/services/client-metrics/metrics-service-v2.js +24 -13
  595. package/dist/lib/services/client-metrics/metrics-service-v2.js.map +1 -1
  596. package/dist/lib/services/event-announcer-service.d.ts +8 -0
  597. package/dist/lib/services/event-announcer-service.js +13 -0
  598. package/dist/lib/services/event-announcer-service.js.map +1 -0
  599. package/dist/lib/services/feature-service-potentially-stale.test.d.ts +1 -0
  600. package/dist/lib/services/feature-service-potentially-stale.test.js +44 -0
  601. package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -0
  602. package/dist/lib/services/feature-toggle-service.d.ts +5 -2
  603. package/dist/lib/services/feature-toggle-service.js +95 -16
  604. package/dist/lib/services/feature-toggle-service.js.map +1 -1
  605. package/dist/lib/services/feature-type-service.d.ts +1 -0
  606. package/dist/lib/services/feature-type-service.js +14 -0
  607. package/dist/lib/services/feature-type-service.js.map +1 -1
  608. package/dist/lib/services/group-service.d.ts +4 -4
  609. package/dist/lib/services/group-service.js.map +1 -1
  610. package/dist/lib/services/index.js +9 -1
  611. package/dist/lib/services/index.js.map +1 -1
  612. package/dist/lib/services/project-schema.js +1 -0
  613. package/dist/lib/services/project-schema.js.map +1 -1
  614. package/dist/lib/services/project-service.d.ts +2 -4
  615. package/dist/lib/services/project-service.js +4 -9
  616. package/dist/lib/services/project-service.js.map +1 -1
  617. package/dist/lib/services/segment-service.d.ts +2 -1
  618. package/dist/lib/services/segment-service.js +3 -0
  619. package/dist/lib/services/segment-service.js.map +1 -1
  620. package/dist/lib/services/tag-type-service.d.ts +2 -2
  621. package/dist/lib/services/tag-type-service.js +5 -3
  622. package/dist/lib/services/tag-type-service.js.map +1 -1
  623. package/dist/lib/services/user-service.js +13 -7
  624. package/dist/lib/services/user-service.js.map +1 -1
  625. package/dist/lib/services/version-service.d.ts +1 -2
  626. package/dist/lib/services/version-service.js +2 -4
  627. package/dist/lib/services/version-service.js.map +1 -1
  628. package/dist/lib/services/version-service.test.js +0 -57
  629. package/dist/lib/services/version-service.test.js.map +1 -1
  630. package/dist/lib/types/authentication-required.d.ts +1 -0
  631. package/dist/lib/types/authentication-required.js +1 -0
  632. package/dist/lib/types/authentication-required.js.map +1 -1
  633. package/dist/lib/types/events.d.ts +138 -99
  634. package/dist/lib/types/events.js +136 -3
  635. package/dist/lib/types/events.js.map +1 -1
  636. package/dist/lib/types/experimental.d.ts +1 -1
  637. package/dist/lib/types/experimental.js +5 -5
  638. package/dist/lib/types/experimental.js.map +1 -1
  639. package/dist/lib/types/group.d.ts +7 -0
  640. package/dist/lib/types/group.js.map +1 -1
  641. package/dist/lib/types/model.d.ts +24 -2
  642. package/dist/lib/types/model.js.map +1 -1
  643. package/dist/lib/types/services.d.ts +3 -0
  644. package/dist/lib/types/stores/event-store.d.ts +1 -0
  645. package/dist/lib/types/stores/feature-toggle-client-store.d.ts +2 -1
  646. package/dist/lib/types/stores/feature-toggle-store.d.ts +6 -0
  647. package/dist/lib/types/stores/feature-type-store.d.ts +1 -0
  648. package/dist/lib/types/stores/group-store.d.ts +4 -4
  649. package/dist/lib/types/stores/project-store.d.ts +3 -6
  650. package/dist/lib/types/stores/segment-store.d.ts +2 -1
  651. package/dist/lib/util/is-email.d.ts +7 -0
  652. package/dist/lib/util/is-email.js +9 -0
  653. package/dist/lib/util/is-email.js.map +1 -1
  654. package/dist/lib/util/load-index-html.js +1 -1
  655. package/dist/lib/util/load-index-html.js.map +1 -1
  656. package/dist/migrations/20230630080126-delete-deprecated-permissions.d.ts +2 -0
  657. package/dist/migrations/20230630080126-delete-deprecated-permissions.js +15 -0
  658. package/dist/migrations/20230630080126-delete-deprecated-permissions.js.map +1 -0
  659. package/dist/migrations/20230706123907-events-announced-column.d.ts +2 -0
  660. package/dist/migrations/20230706123907-events-announced-column.js +15 -0
  661. package/dist/migrations/20230706123907-events-announced-column.js.map +1 -0
  662. package/dist/migrations/20230711094214-add-potentially-stale-flag.d.ts +2 -0
  663. package/dist/migrations/20230711094214-add-potentially-stale-flag.js +18 -0
  664. package/dist/migrations/20230711094214-add-potentially-stale-flag.js.map +1 -0
  665. package/dist/migrations/20230711163311-project-feature-limit.d.ts +2 -0
  666. package/dist/migrations/20230711163311-project-feature-limit.js +13 -0
  667. package/dist/migrations/20230711163311-project-feature-limit.js.map +1 -0
  668. package/dist/migrations/20230712091834-strategy-variants.d.ts +2 -0
  669. package/dist/migrations/20230712091834-strategy-variants.js +81 -0
  670. package/dist/migrations/20230712091834-strategy-variants.js.map +1 -0
  671. package/dist/server-dev.js +5 -3
  672. package/dist/server-dev.js.map +1 -1
  673. package/dist/test/arbitraries.test.js +1 -1
  674. package/dist/test/arbitraries.test.js.map +1 -1
  675. package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
  676. package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
  677. package/dist/test/e2e/api/admin/api-token.e2e.test.js +7 -1
  678. package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
  679. package/dist/test/e2e/api/admin/archive.test.js +7 -1
  680. package/dist/test/e2e/api/admin/archive.test.js.map +1 -1
  681. package/dist/test/e2e/api/admin/config.e2e.test.js +7 -1
  682. package/dist/test/e2e/api/admin/config.e2e.test.js.map +1 -1
  683. package/dist/test/e2e/api/admin/favorites.e2e.test.js +7 -1
  684. package/dist/test/e2e/api/admin/favorites.e2e.test.js.map +1 -1
  685. package/dist/test/e2e/api/admin/feature-type.test.js +41 -1
  686. package/dist/test/e2e/api/admin/feature-type.test.js.map +1 -1
  687. package/dist/test/e2e/api/admin/feedback.e2e.test.js +7 -1
  688. package/dist/test/e2e/api/admin/feedback.e2e.test.js.map +1 -1
  689. package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
  690. package/dist/test/e2e/api/admin/project/features.e2e.test.js +152 -0
  691. package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
  692. package/dist/test/e2e/api/admin/project/variants.e2e.test.js +28 -12
  693. package/dist/test/e2e/api/admin/project/variants.e2e.test.js.map +1 -1
  694. package/dist/test/e2e/api/admin/splash.e2e.test.js +7 -1
  695. package/dist/test/e2e/api/admin/splash.e2e.test.js.map +1 -1
  696. package/dist/test/e2e/api/admin/state.e2e.test.js +6 -6
  697. package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
  698. package/dist/test/e2e/api/admin/user-admin.e2e.test.js +7 -1
  699. package/dist/test/e2e/api/admin/user-admin.e2e.test.js.map +1 -1
  700. package/dist/test/e2e/api/openapi/openapi.e2e.test.js +9 -6
  701. package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
  702. package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
  703. package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
  704. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +26 -4
  705. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
  706. package/dist/test/e2e/services/group-service.e2e.test.js +16 -0
  707. package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
  708. package/dist/test/e2e/services/user-service.e2e.test.js +2 -2
  709. package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
  710. package/dist/test/e2e/stores/event-store.e2e.test.js +3 -2
  711. package/dist/test/e2e/stores/event-store.e2e.test.js.map +1 -1
  712. package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js +163 -0
  713. package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js.map +1 -1
  714. package/dist/test/e2e/stores/feature-type-store.e2e.test.js +13 -0
  715. package/dist/test/e2e/stores/feature-type-store.e2e.test.js.map +1 -1
  716. package/dist/test/fixtures/fake-event-store.d.ts +1 -0
  717. package/dist/test/fixtures/fake-event-store.js +3 -0
  718. package/dist/test/fixtures/fake-event-store.js.map +1 -1
  719. package/dist/test/fixtures/fake-feature-toggle-client-store.d.ts +1 -0
  720. package/dist/test/fixtures/fake-feature-toggle-client-store.js +10 -0
  721. package/dist/test/fixtures/fake-feature-toggle-client-store.js.map +1 -1
  722. package/dist/test/fixtures/fake-feature-toggle-store.d.ts +6 -0
  723. package/dist/test/fixtures/fake-feature-toggle-store.js +6 -0
  724. package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
  725. package/dist/test/fixtures/fake-feature-type-store.d.ts +1 -0
  726. package/dist/test/fixtures/fake-feature-type-store.js +8 -0
  727. package/dist/test/fixtures/fake-feature-type-store.js.map +1 -1
  728. package/dist/test/fixtures/fake-group-store.d.ts +4 -4
  729. package/dist/test/fixtures/fake-group-store.js.map +1 -1
  730. package/dist/test/fixtures/fake-project-store.d.ts +3 -4
  731. package/dist/test/fixtures/fake-project-store.js +4 -13
  732. package/dist/test/fixtures/fake-project-store.js.map +1 -1
  733. package/dist/test/fixtures/fake-segment-store.d.ts +2 -1
  734. package/dist/test/fixtures/fake-segment-store.js +3 -0
  735. package/dist/test/fixtures/fake-segment-store.js.map +1 -1
  736. package/frontend/build/index.html +2 -2
  737. package/frontend/build/static/AdvancedPlayground-4c9d02ea.js +13 -0
  738. package/frontend/build/static/CreateProject-16b35d57.js +4 -0
  739. package/frontend/build/static/{Error-2c3030da.js → Error-50364f10.js} +1 -1
  740. package/frontend/build/static/{FeatureArchiveDialog-a529848e.js → FeatureArchiveDialog-fda1aa0c.js} +3 -3
  741. package/frontend/build/static/{FeatureMetricsChart-e8ede36a.js → FeatureMetricsChart-839cdf1e.js} +2 -2
  742. package/frontend/build/static/FeatureViewLazyExport-47bb7f13.js +7 -0
  743. package/frontend/build/static/LazyAdminExport-8ef0ca21.js +37 -0
  744. package/frontend/build/static/LazyProjectExport-49541c75.js +16 -0
  745. package/frontend/build/static/{NetworkOverview-e6f0a590.js → NetworkOverview-711050f3.js} +8 -8
  746. package/frontend/build/static/{NetworkTraffic-d1efc782.js → NetworkTraffic-e587c2c7.js} +1 -1
  747. package/frontend/build/static/RoleCell-9a62b4ed.js +1 -0
  748. package/frontend/build/static/StrategyItemContainer-4098c8ef.js +1 -0
  749. package/frontend/build/static/{chartjs-adapter-date-fns.esm-0d05c046.js → chartjs-adapter-date-fns.esm-d57aaddd.js} +1 -1
  750. package/frontend/build/static/demo-qr-c2ce85bd.png +0 -0
  751. package/frontend/build/static/{flowchart-elk-definition-170a3958-cc4ae597.js → flowchart-elk-definition-170a3958-4dece62b.js} +2 -2
  752. package/frontend/build/static/{index-a563ae6f.js → index-1c8194e0.js} +1 -1
  753. package/frontend/build/static/index-770afaee.css +1 -0
  754. package/frontend/build/static/{index-ade82986.js → index-9bb67f88.js} +1 -1
  755. package/frontend/build/static/index-9c528324.js +453 -0
  756. package/frontend/build/static/{is_dark-49e2e68f.js → is_dark-ba77f0b9.js} +1 -1
  757. package/frontend/build/static/{mindmap-definition-44684416-c6d3a96e.js → mindmap-definition-44684416-a4071c9f.js} +3 -3
  758. package/frontend/build/static/{timeline-definition-8e5a9bc6-920370f9.js → timeline-definition-8e5a9bc6-c996bf40.js} +2 -2
  759. package/frontend/build/static/{unknownify-30fed5e1.js → unknownify-db48ebae.js} +1 -1
  760. package/frontend/package.json +16 -16
  761. package/package.json +15 -13
  762. package/dist/lib/error/no-access-error.js.map +0 -1
  763. package/dist/lib/openapi/endpoint-descriptions.d.ts +0 -20
  764. package/dist/lib/openapi/endpoint-descriptions.js +0 -24
  765. package/dist/lib/openapi/endpoint-descriptions.js.map +0 -1
  766. package/dist/lib/openapi/spec/feedback-schema.d.ts +0 -24
  767. package/dist/lib/openapi/spec/feedback-schema.js +0 -26
  768. package/dist/lib/openapi/spec/feedback-schema.js.map +0 -1
  769. package/dist/lib/openapi/spec/splash-schema.d.ts +0 -20
  770. package/dist/lib/openapi/spec/splash-schema.js +0 -22
  771. package/dist/lib/openapi/spec/splash-schema.js.map +0 -1
  772. package/dist/lib/openapi/spec/upsert-strategy-schema.d.ts +0 -39
  773. package/dist/lib/openapi/spec/upsert-strategy-schema.js +0 -41
  774. package/dist/lib/openapi/spec/upsert-strategy-schema.js.map +0 -1
  775. package/frontend/build/static/AdvancedPlayground-bc3db7fd.js +0 -1
  776. package/frontend/build/static/CreateProject-4013b189.js +0 -4
  777. package/frontend/build/static/FeatureViewLazyExport-773303d1.js +0 -7
  778. package/frontend/build/static/LazyAdminExport-a9aeca56.js +0 -37
  779. package/frontend/build/static/LazyProjectExport-7c849a96.js +0 -13
  780. package/frontend/build/static/Playground-4fd4e26e.js +0 -1
  781. package/frontend/build/static/PlaygroundGuidancePopper-c761bfb7.js +0 -13
  782. package/frontend/build/static/RoleCell-cbb192fa.js +0 -1
  783. package/frontend/build/static/StrategyItemContainer-128fc163.js +0 -1
  784. package/frontend/build/static/demo-qr-1bebe2c9.png +0 -0
  785. package/frontend/build/static/index-66c635eb.css +0 -1
  786. package/frontend/build/static/index-bd571775.js +0 -450
  787. package/frontend/build/static/stringify-ec884b6d.js +0 -1
@@ -46,6 +46,12 @@ export declare const healthReportSchema: {
46
46
  readonly example: "open";
47
47
  readonly description: "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.";
48
48
  };
49
+ readonly featureLimit: {
50
+ readonly type: "number";
51
+ readonly nullable: true;
52
+ readonly example: 100;
53
+ readonly description: "A limit on the number of features allowed in the project. Null if no limit.";
54
+ };
49
55
  readonly members: {
50
56
  readonly type: "integer";
51
57
  readonly description: "The number of users/members in the project.";
@@ -183,10 +189,11 @@ export declare const healthReportSchema: {
183
189
  readonly $id: "#/components/schemas/createFeatureStrategySchema";
184
190
  readonly type: "object";
185
191
  readonly required: readonly ["name"];
192
+ readonly description: "Create a strategy configuration in a feature";
186
193
  readonly properties: {
187
194
  readonly name: {
188
195
  readonly type: "string";
189
- readonly description: "The name or type of strategy";
196
+ readonly description: "The name of the strategy type";
190
197
  readonly example: "flexibleRollout";
191
198
  };
192
199
  readonly title: {
@@ -208,7 +215,7 @@ export declare const healthReportSchema: {
208
215
  };
209
216
  readonly constraints: {
210
217
  readonly type: "array";
211
- readonly description: "A list of the constraints attached to the strategy";
218
+ readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
212
219
  readonly example: readonly [{
213
220
  readonly values: readonly ["1", "2"];
214
221
  readonly inverted: false;
@@ -220,6 +227,13 @@ export declare const healthReportSchema: {
220
227
  readonly $ref: "#/components/schemas/constraintSchema";
221
228
  };
222
229
  };
230
+ readonly variants: {
231
+ readonly type: "array";
232
+ readonly description: "Strategy level variants";
233
+ readonly items: {
234
+ readonly $ref: "#/components/schemas/createStrategyVariantSchema";
235
+ };
236
+ };
223
237
  readonly parameters: {
224
238
  readonly description: "An object containing the parameters for the strategy";
225
239
  readonly example: {
@@ -287,14 +301,119 @@ export declare const healthReportSchema: {
287
301
  readonly parametersSchema: {
288
302
  readonly $id: "#/components/schemas/parametersSchema";
289
303
  readonly type: "object";
304
+ readonly description: "A list of parameters for a strategy";
290
305
  readonly additionalProperties: {
291
306
  readonly type: "string";
292
307
  };
293
308
  readonly components: {};
294
309
  };
310
+ readonly createStrategyVariantSchema: {
311
+ readonly $id: "#/components/schemas/createStrategyVariantSchema";
312
+ readonly type: "object";
313
+ readonly additionalProperties: true;
314
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
315
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
316
+ readonly properties: {
317
+ readonly name: {
318
+ readonly type: "string";
319
+ readonly description: "The variant name. Must be unique for this feature toggle";
320
+ readonly example: "blue_group";
321
+ };
322
+ readonly weight: {
323
+ readonly type: "integer";
324
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
325
+ readonly minimum: 0;
326
+ readonly maximum: 1000;
327
+ };
328
+ readonly weightType: {
329
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
330
+ readonly type: "string";
331
+ readonly example: "fix";
332
+ readonly enum: readonly ["variable", "fix"];
333
+ };
334
+ readonly stickiness: {
335
+ readonly type: "string";
336
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
337
+ readonly example: "custom.context.field";
338
+ };
339
+ readonly payload: {
340
+ readonly type: "object";
341
+ readonly required: readonly ["type", "value"];
342
+ readonly description: "Extra data configured for this variant";
343
+ readonly properties: {
344
+ readonly type: {
345
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
346
+ readonly type: "string";
347
+ readonly enum: readonly ["json", "csv", "string"];
348
+ };
349
+ readonly value: {
350
+ readonly description: "The actual value of payload";
351
+ readonly type: "string";
352
+ };
353
+ };
354
+ readonly example: {
355
+ readonly type: "json";
356
+ readonly value: "{\"color\": \"red\"}";
357
+ };
358
+ };
359
+ };
360
+ readonly components: {};
361
+ };
295
362
  };
296
363
  };
297
364
  };
365
+ readonly createStrategyVariantSchema: {
366
+ readonly $id: "#/components/schemas/createStrategyVariantSchema";
367
+ readonly type: "object";
368
+ readonly additionalProperties: true;
369
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
370
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
371
+ readonly properties: {
372
+ readonly name: {
373
+ readonly type: "string";
374
+ readonly description: "The variant name. Must be unique for this feature toggle";
375
+ readonly example: "blue_group";
376
+ };
377
+ readonly weight: {
378
+ readonly type: "integer";
379
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
380
+ readonly minimum: 0;
381
+ readonly maximum: 1000;
382
+ };
383
+ readonly weightType: {
384
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
385
+ readonly type: "string";
386
+ readonly example: "fix";
387
+ readonly enum: readonly ["variable", "fix"];
388
+ };
389
+ readonly stickiness: {
390
+ readonly type: "string";
391
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
392
+ readonly example: "custom.context.field";
393
+ };
394
+ readonly payload: {
395
+ readonly type: "object";
396
+ readonly required: readonly ["type", "value"];
397
+ readonly description: "Extra data configured for this variant";
398
+ readonly properties: {
399
+ readonly type: {
400
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
401
+ readonly type: "string";
402
+ readonly enum: readonly ["json", "csv", "string"];
403
+ };
404
+ readonly value: {
405
+ readonly description: "The actual value of payload";
406
+ readonly type: "string";
407
+ };
408
+ };
409
+ readonly example: {
410
+ readonly type: "json";
411
+ readonly value: "{\"color\": \"red\"}";
412
+ };
413
+ };
414
+ };
415
+ readonly components: {};
416
+ };
298
417
  };
299
418
  };
300
419
  };
@@ -302,10 +421,11 @@ export declare const healthReportSchema: {
302
421
  readonly $id: "#/components/schemas/createFeatureStrategySchema";
303
422
  readonly type: "object";
304
423
  readonly required: readonly ["name"];
424
+ readonly description: "Create a strategy configuration in a feature";
305
425
  readonly properties: {
306
426
  readonly name: {
307
427
  readonly type: "string";
308
- readonly description: "The name or type of strategy";
428
+ readonly description: "The name of the strategy type";
309
429
  readonly example: "flexibleRollout";
310
430
  };
311
431
  readonly title: {
@@ -327,7 +447,7 @@ export declare const healthReportSchema: {
327
447
  };
328
448
  readonly constraints: {
329
449
  readonly type: "array";
330
- readonly description: "A list of the constraints attached to the strategy";
450
+ readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
331
451
  readonly example: readonly [{
332
452
  readonly values: readonly ["1", "2"];
333
453
  readonly inverted: false;
@@ -339,6 +459,13 @@ export declare const healthReportSchema: {
339
459
  readonly $ref: "#/components/schemas/constraintSchema";
340
460
  };
341
461
  };
462
+ readonly variants: {
463
+ readonly type: "array";
464
+ readonly description: "Strategy level variants";
465
+ readonly items: {
466
+ readonly $ref: "#/components/schemas/createStrategyVariantSchema";
467
+ };
468
+ };
342
469
  readonly parameters: {
343
470
  readonly description: "An object containing the parameters for the strategy";
344
471
  readonly example: {
@@ -406,14 +533,119 @@ export declare const healthReportSchema: {
406
533
  readonly parametersSchema: {
407
534
  readonly $id: "#/components/schemas/parametersSchema";
408
535
  readonly type: "object";
536
+ readonly description: "A list of parameters for a strategy";
409
537
  readonly additionalProperties: {
410
538
  readonly type: "string";
411
539
  };
412
540
  readonly components: {};
413
541
  };
542
+ readonly createStrategyVariantSchema: {
543
+ readonly $id: "#/components/schemas/createStrategyVariantSchema";
544
+ readonly type: "object";
545
+ readonly additionalProperties: true;
546
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
547
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
548
+ readonly properties: {
549
+ readonly name: {
550
+ readonly type: "string";
551
+ readonly description: "The variant name. Must be unique for this feature toggle";
552
+ readonly example: "blue_group";
553
+ };
554
+ readonly weight: {
555
+ readonly type: "integer";
556
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
557
+ readonly minimum: 0;
558
+ readonly maximum: 1000;
559
+ };
560
+ readonly weightType: {
561
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
562
+ readonly type: "string";
563
+ readonly example: "fix";
564
+ readonly enum: readonly ["variable", "fix"];
565
+ };
566
+ readonly stickiness: {
567
+ readonly type: "string";
568
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
569
+ readonly example: "custom.context.field";
570
+ };
571
+ readonly payload: {
572
+ readonly type: "object";
573
+ readonly required: readonly ["type", "value"];
574
+ readonly description: "Extra data configured for this variant";
575
+ readonly properties: {
576
+ readonly type: {
577
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
578
+ readonly type: "string";
579
+ readonly enum: readonly ["json", "csv", "string"];
580
+ };
581
+ readonly value: {
582
+ readonly description: "The actual value of payload";
583
+ readonly type: "string";
584
+ };
585
+ };
586
+ readonly example: {
587
+ readonly type: "json";
588
+ readonly value: "{\"color\": \"red\"}";
589
+ };
590
+ };
591
+ };
592
+ readonly components: {};
593
+ };
414
594
  };
415
595
  };
416
596
  };
597
+ readonly createStrategyVariantSchema: {
598
+ readonly $id: "#/components/schemas/createStrategyVariantSchema";
599
+ readonly type: "object";
600
+ readonly additionalProperties: true;
601
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
602
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
603
+ readonly properties: {
604
+ readonly name: {
605
+ readonly type: "string";
606
+ readonly description: "The variant name. Must be unique for this feature toggle";
607
+ readonly example: "blue_group";
608
+ };
609
+ readonly weight: {
610
+ readonly type: "integer";
611
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
612
+ readonly minimum: 0;
613
+ readonly maximum: 1000;
614
+ };
615
+ readonly weightType: {
616
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
617
+ readonly type: "string";
618
+ readonly example: "fix";
619
+ readonly enum: readonly ["variable", "fix"];
620
+ };
621
+ readonly stickiness: {
622
+ readonly type: "string";
623
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
624
+ readonly example: "custom.context.field";
625
+ };
626
+ readonly payload: {
627
+ readonly type: "object";
628
+ readonly required: readonly ["type", "value"];
629
+ readonly description: "Extra data configured for this variant";
630
+ readonly properties: {
631
+ readonly type: {
632
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
633
+ readonly type: "string";
634
+ readonly enum: readonly ["json", "csv", "string"];
635
+ };
636
+ readonly value: {
637
+ readonly description: "The actual value of payload";
638
+ readonly type: "string";
639
+ };
640
+ };
641
+ readonly example: {
642
+ readonly type: "json";
643
+ readonly value: "{\"color\": \"red\"}";
644
+ };
645
+ };
646
+ };
647
+ readonly components: {};
648
+ };
417
649
  readonly constraintSchema: {
418
650
  readonly type: "object";
419
651
  readonly required: readonly ["contextName", "operator"];
@@ -463,6 +695,7 @@ export declare const healthReportSchema: {
463
695
  readonly type: "object";
464
696
  readonly additionalProperties: false;
465
697
  readonly required: readonly ["name"];
698
+ readonly description: "A feature toggle definition";
466
699
  readonly properties: {
467
700
  readonly name: {
468
701
  readonly type: "string";
@@ -493,6 +726,7 @@ export declare const healthReportSchema: {
493
726
  readonly enabled: {
494
727
  readonly type: "boolean";
495
728
  readonly example: true;
729
+ readonly description: "`true` if the feature is enabled, otherwise `false`.";
496
730
  };
497
731
  readonly stale: {
498
732
  readonly type: "boolean";
@@ -514,18 +748,21 @@ export declare const healthReportSchema: {
514
748
  readonly format: "date-time";
515
749
  readonly nullable: true;
516
750
  readonly example: "2023-01-28T15:21:39.975Z";
751
+ readonly description: "The date the feature was created";
517
752
  };
518
753
  readonly archivedAt: {
519
754
  readonly type: "string";
520
755
  readonly format: "date-time";
521
756
  readonly nullable: true;
522
757
  readonly example: "2023-01-29T15:21:39.975Z";
758
+ readonly description: "The date the feature was archived";
523
759
  };
524
760
  readonly lastSeenAt: {
525
761
  readonly type: "string";
526
762
  readonly format: "date-time";
527
763
  readonly nullable: true;
528
764
  readonly example: "2023-01-28T16:21:39.975Z";
765
+ readonly description: "The date when metrics where last collected for the feature";
529
766
  };
530
767
  readonly environments: {
531
768
  readonly type: "array";
@@ -620,9 +857,12 @@ export declare const healthReportSchema: {
620
857
  readonly featureName: {
621
858
  readonly type: "string";
622
859
  readonly example: "disable-comments";
860
+ readonly description: "The name of the feature";
623
861
  };
624
862
  readonly environment: {
625
863
  readonly type: "string";
864
+ readonly example: "development";
865
+ readonly description: "The name of the environment";
626
866
  };
627
867
  readonly type: {
628
868
  readonly type: "string";
@@ -641,6 +881,7 @@ export declare const healthReportSchema: {
641
881
  };
642
882
  readonly variantCount: {
643
883
  readonly type: "number";
884
+ readonly description: "The number of defined variants";
644
885
  };
645
886
  readonly strategies: {
646
887
  readonly type: "array";
@@ -706,6 +947,7 @@ export declare const healthReportSchema: {
706
947
  readonly parametersSchema: {
707
948
  readonly $id: "#/components/schemas/parametersSchema";
708
949
  readonly type: "object";
950
+ readonly description: "A list of parameters for a strategy";
709
951
  readonly additionalProperties: {
710
952
  readonly type: "string";
711
953
  };
@@ -760,11 +1002,18 @@ export declare const healthReportSchema: {
760
1002
  };
761
1003
  readonly constraints: {
762
1004
  readonly type: "array";
763
- readonly description: "A list of the constraints attached to the strategy";
1005
+ readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
764
1006
  readonly items: {
765
1007
  readonly $ref: "#/components/schemas/constraintSchema";
766
1008
  };
767
1009
  };
1010
+ readonly variants: {
1011
+ readonly type: "array";
1012
+ readonly description: "Strategy level variants";
1013
+ readonly items: {
1014
+ readonly $ref: "#/components/schemas/strategyVariantSchema";
1015
+ };
1016
+ };
768
1017
  readonly parameters: {
769
1018
  readonly $ref: "#/components/schemas/parametersSchema";
770
1019
  };
@@ -818,14 +1067,119 @@ export declare const healthReportSchema: {
818
1067
  readonly parametersSchema: {
819
1068
  readonly $id: "#/components/schemas/parametersSchema";
820
1069
  readonly type: "object";
1070
+ readonly description: "A list of parameters for a strategy";
821
1071
  readonly additionalProperties: {
822
1072
  readonly type: "string";
823
1073
  };
824
1074
  readonly components: {};
825
1075
  };
1076
+ readonly strategyVariantSchema: {
1077
+ readonly $id: "#/components/schemas/strategyVariantSchema";
1078
+ readonly type: "object";
1079
+ readonly additionalProperties: false;
1080
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
1081
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
1082
+ readonly properties: {
1083
+ readonly name: {
1084
+ readonly type: "string";
1085
+ readonly description: "The variant name. Must be unique for this feature toggle";
1086
+ readonly example: "blue_group";
1087
+ };
1088
+ readonly weight: {
1089
+ readonly type: "integer";
1090
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
1091
+ readonly minimum: 0;
1092
+ readonly maximum: 1000;
1093
+ };
1094
+ readonly weightType: {
1095
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
1096
+ readonly type: "string";
1097
+ readonly example: "fix";
1098
+ readonly enum: readonly ["variable", "fix"];
1099
+ };
1100
+ readonly stickiness: {
1101
+ readonly type: "string";
1102
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
1103
+ readonly example: "custom.context.field";
1104
+ };
1105
+ readonly payload: {
1106
+ readonly type: "object";
1107
+ readonly required: readonly ["type", "value"];
1108
+ readonly description: "Extra data configured for this variant";
1109
+ readonly properties: {
1110
+ readonly type: {
1111
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1112
+ readonly type: "string";
1113
+ readonly enum: readonly ["json", "csv", "string"];
1114
+ };
1115
+ readonly value: {
1116
+ readonly description: "The actual value of payload";
1117
+ readonly type: "string";
1118
+ };
1119
+ };
1120
+ readonly example: {
1121
+ readonly type: "json";
1122
+ readonly value: "{\"color\": \"red\"}";
1123
+ };
1124
+ };
1125
+ };
1126
+ readonly components: {};
1127
+ };
826
1128
  };
827
1129
  };
828
1130
  };
1131
+ readonly strategyVariantSchema: {
1132
+ readonly $id: "#/components/schemas/strategyVariantSchema";
1133
+ readonly type: "object";
1134
+ readonly additionalProperties: false;
1135
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
1136
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
1137
+ readonly properties: {
1138
+ readonly name: {
1139
+ readonly type: "string";
1140
+ readonly description: "The variant name. Must be unique for this feature toggle";
1141
+ readonly example: "blue_group";
1142
+ };
1143
+ readonly weight: {
1144
+ readonly type: "integer";
1145
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
1146
+ readonly minimum: 0;
1147
+ readonly maximum: 1000;
1148
+ };
1149
+ readonly weightType: {
1150
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
1151
+ readonly type: "string";
1152
+ readonly example: "fix";
1153
+ readonly enum: readonly ["variable", "fix"];
1154
+ };
1155
+ readonly stickiness: {
1156
+ readonly type: "string";
1157
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
1158
+ readonly example: "custom.context.field";
1159
+ };
1160
+ readonly payload: {
1161
+ readonly type: "object";
1162
+ readonly required: readonly ["type", "value"];
1163
+ readonly description: "Extra data configured for this variant";
1164
+ readonly properties: {
1165
+ readonly type: {
1166
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1167
+ readonly type: "string";
1168
+ readonly enum: readonly ["json", "csv", "string"];
1169
+ };
1170
+ readonly value: {
1171
+ readonly description: "The actual value of payload";
1172
+ readonly type: "string";
1173
+ };
1174
+ };
1175
+ readonly example: {
1176
+ readonly type: "json";
1177
+ readonly value: "{\"color\": \"red\"}";
1178
+ };
1179
+ };
1180
+ };
1181
+ readonly components: {};
1182
+ };
829
1183
  readonly variantSchema: {
830
1184
  readonly $id: "#/components/schemas/variantSchema";
831
1185
  readonly type: "object";
@@ -847,7 +1201,8 @@ export declare const healthReportSchema: {
847
1201
  readonly weightType: {
848
1202
  readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
849
1203
  readonly type: "string";
850
- readonly example: "fix";
1204
+ readonly example: "variable";
1205
+ readonly enum: readonly ["variable", "fix"];
851
1206
  };
852
1207
  readonly stickiness: {
853
1208
  readonly type: "string";
@@ -858,17 +1213,21 @@ export declare const healthReportSchema: {
858
1213
  readonly type: "object";
859
1214
  readonly required: readonly ["type", "value"];
860
1215
  readonly description: "Extra data configured for this variant";
1216
+ readonly additionalProperties: false;
861
1217
  readonly properties: {
862
1218
  readonly type: {
1219
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
863
1220
  readonly type: "string";
1221
+ readonly enum: readonly ["json", "csv", "string"];
864
1222
  };
865
1223
  readonly value: {
1224
+ readonly description: "The actual value of payload";
866
1225
  readonly type: "string";
867
1226
  };
868
1227
  };
869
1228
  readonly example: {
870
1229
  readonly type: "json";
871
- readonly value: "{color: red}";
1230
+ readonly value: "{\"color\": \"red\"}";
872
1231
  };
873
1232
  };
874
1233
  readonly overrides: {
@@ -959,11 +1318,18 @@ export declare const healthReportSchema: {
959
1318
  };
960
1319
  readonly constraints: {
961
1320
  readonly type: "array";
962
- readonly description: "A list of the constraints attached to the strategy";
1321
+ readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
963
1322
  readonly items: {
964
1323
  readonly $ref: "#/components/schemas/constraintSchema";
965
1324
  };
966
1325
  };
1326
+ readonly variants: {
1327
+ readonly type: "array";
1328
+ readonly description: "Strategy level variants";
1329
+ readonly items: {
1330
+ readonly $ref: "#/components/schemas/strategyVariantSchema";
1331
+ };
1332
+ };
967
1333
  readonly parameters: {
968
1334
  readonly $ref: "#/components/schemas/parametersSchema";
969
1335
  };
@@ -1017,14 +1383,119 @@ export declare const healthReportSchema: {
1017
1383
  readonly parametersSchema: {
1018
1384
  readonly $id: "#/components/schemas/parametersSchema";
1019
1385
  readonly type: "object";
1386
+ readonly description: "A list of parameters for a strategy";
1020
1387
  readonly additionalProperties: {
1021
1388
  readonly type: "string";
1022
1389
  };
1023
1390
  readonly components: {};
1024
1391
  };
1392
+ readonly strategyVariantSchema: {
1393
+ readonly $id: "#/components/schemas/strategyVariantSchema";
1394
+ readonly type: "object";
1395
+ readonly additionalProperties: false;
1396
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
1397
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
1398
+ readonly properties: {
1399
+ readonly name: {
1400
+ readonly type: "string";
1401
+ readonly description: "The variant name. Must be unique for this feature toggle";
1402
+ readonly example: "blue_group";
1403
+ };
1404
+ readonly weight: {
1405
+ readonly type: "integer";
1406
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
1407
+ readonly minimum: 0;
1408
+ readonly maximum: 1000;
1409
+ };
1410
+ readonly weightType: {
1411
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
1412
+ readonly type: "string";
1413
+ readonly example: "fix";
1414
+ readonly enum: readonly ["variable", "fix"];
1415
+ };
1416
+ readonly stickiness: {
1417
+ readonly type: "string";
1418
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
1419
+ readonly example: "custom.context.field";
1420
+ };
1421
+ readonly payload: {
1422
+ readonly type: "object";
1423
+ readonly required: readonly ["type", "value"];
1424
+ readonly description: "Extra data configured for this variant";
1425
+ readonly properties: {
1426
+ readonly type: {
1427
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1428
+ readonly type: "string";
1429
+ readonly enum: readonly ["json", "csv", "string"];
1430
+ };
1431
+ readonly value: {
1432
+ readonly description: "The actual value of payload";
1433
+ readonly type: "string";
1434
+ };
1435
+ };
1436
+ readonly example: {
1437
+ readonly type: "json";
1438
+ readonly value: "{\"color\": \"red\"}";
1439
+ };
1440
+ };
1441
+ };
1442
+ readonly components: {};
1443
+ };
1025
1444
  };
1026
1445
  };
1027
1446
  };
1447
+ readonly strategyVariantSchema: {
1448
+ readonly $id: "#/components/schemas/strategyVariantSchema";
1449
+ readonly type: "object";
1450
+ readonly additionalProperties: false;
1451
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
1452
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
1453
+ readonly properties: {
1454
+ readonly name: {
1455
+ readonly type: "string";
1456
+ readonly description: "The variant name. Must be unique for this feature toggle";
1457
+ readonly example: "blue_group";
1458
+ };
1459
+ readonly weight: {
1460
+ readonly type: "integer";
1461
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
1462
+ readonly minimum: 0;
1463
+ readonly maximum: 1000;
1464
+ };
1465
+ readonly weightType: {
1466
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
1467
+ readonly type: "string";
1468
+ readonly example: "fix";
1469
+ readonly enum: readonly ["variable", "fix"];
1470
+ };
1471
+ readonly stickiness: {
1472
+ readonly type: "string";
1473
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
1474
+ readonly example: "custom.context.field";
1475
+ };
1476
+ readonly payload: {
1477
+ readonly type: "object";
1478
+ readonly required: readonly ["type", "value"];
1479
+ readonly description: "Extra data configured for this variant";
1480
+ readonly properties: {
1481
+ readonly type: {
1482
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1483
+ readonly type: "string";
1484
+ readonly enum: readonly ["json", "csv", "string"];
1485
+ };
1486
+ readonly value: {
1487
+ readonly description: "The actual value of payload";
1488
+ readonly type: "string";
1489
+ };
1490
+ };
1491
+ readonly example: {
1492
+ readonly type: "json";
1493
+ readonly value: "{\"color\": \"red\"}";
1494
+ };
1495
+ };
1496
+ };
1497
+ readonly components: {};
1498
+ };
1028
1499
  readonly overrideSchema: {
1029
1500
  readonly $id: "#/components/schemas/overrideSchema";
1030
1501
  readonly type: "object";
@@ -1051,6 +1522,7 @@ export declare const healthReportSchema: {
1051
1522
  readonly parametersSchema: {
1052
1523
  readonly $id: "#/components/schemas/parametersSchema";
1053
1524
  readonly type: "object";
1525
+ readonly description: "A list of parameters for a strategy";
1054
1526
  readonly additionalProperties: {
1055
1527
  readonly type: "string";
1056
1528
  };
@@ -1077,7 +1549,8 @@ export declare const healthReportSchema: {
1077
1549
  readonly weightType: {
1078
1550
  readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
1079
1551
  readonly type: "string";
1080
- readonly example: "fix";
1552
+ readonly example: "variable";
1553
+ readonly enum: readonly ["variable", "fix"];
1081
1554
  };
1082
1555
  readonly stickiness: {
1083
1556
  readonly type: "string";
@@ -1088,17 +1561,21 @@ export declare const healthReportSchema: {
1088
1561
  readonly type: "object";
1089
1562
  readonly required: readonly ["type", "value"];
1090
1563
  readonly description: "Extra data configured for this variant";
1564
+ readonly additionalProperties: false;
1091
1565
  readonly properties: {
1092
1566
  readonly type: {
1567
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1093
1568
  readonly type: "string";
1569
+ readonly enum: readonly ["json", "csv", "string"];
1094
1570
  };
1095
1571
  readonly value: {
1572
+ readonly description: "The actual value of payload";
1096
1573
  readonly type: "string";
1097
1574
  };
1098
1575
  };
1099
1576
  readonly example: {
1100
1577
  readonly type: "json";
1101
- readonly value: "{color: red}";
1578
+ readonly value: "{\"color\": \"red\"}";
1102
1579
  };
1103
1580
  };
1104
1581
  readonly overrides: {
@@ -1180,9 +1657,12 @@ export declare const healthReportSchema: {
1180
1657
  readonly featureName: {
1181
1658
  readonly type: "string";
1182
1659
  readonly example: "disable-comments";
1660
+ readonly description: "The name of the feature";
1183
1661
  };
1184
1662
  readonly environment: {
1185
1663
  readonly type: "string";
1664
+ readonly example: "development";
1665
+ readonly description: "The name of the environment";
1186
1666
  };
1187
1667
  readonly type: {
1188
1668
  readonly type: "string";
@@ -1201,6 +1681,7 @@ export declare const healthReportSchema: {
1201
1681
  };
1202
1682
  readonly variantCount: {
1203
1683
  readonly type: "number";
1684
+ readonly description: "The number of defined variants";
1204
1685
  };
1205
1686
  readonly strategies: {
1206
1687
  readonly type: "array";
@@ -1266,6 +1747,7 @@ export declare const healthReportSchema: {
1266
1747
  readonly parametersSchema: {
1267
1748
  readonly $id: "#/components/schemas/parametersSchema";
1268
1749
  readonly type: "object";
1750
+ readonly description: "A list of parameters for a strategy";
1269
1751
  readonly additionalProperties: {
1270
1752
  readonly type: "string";
1271
1753
  };
@@ -1320,11 +1802,18 @@ export declare const healthReportSchema: {
1320
1802
  };
1321
1803
  readonly constraints: {
1322
1804
  readonly type: "array";
1323
- readonly description: "A list of the constraints attached to the strategy";
1805
+ readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
1324
1806
  readonly items: {
1325
1807
  readonly $ref: "#/components/schemas/constraintSchema";
1326
1808
  };
1327
1809
  };
1810
+ readonly variants: {
1811
+ readonly type: "array";
1812
+ readonly description: "Strategy level variants";
1813
+ readonly items: {
1814
+ readonly $ref: "#/components/schemas/strategyVariantSchema";
1815
+ };
1816
+ };
1328
1817
  readonly parameters: {
1329
1818
  readonly $ref: "#/components/schemas/parametersSchema";
1330
1819
  };
@@ -1378,14 +1867,119 @@ export declare const healthReportSchema: {
1378
1867
  readonly parametersSchema: {
1379
1868
  readonly $id: "#/components/schemas/parametersSchema";
1380
1869
  readonly type: "object";
1870
+ readonly description: "A list of parameters for a strategy";
1381
1871
  readonly additionalProperties: {
1382
1872
  readonly type: "string";
1383
1873
  };
1384
1874
  readonly components: {};
1385
1875
  };
1876
+ readonly strategyVariantSchema: {
1877
+ readonly $id: "#/components/schemas/strategyVariantSchema";
1878
+ readonly type: "object";
1879
+ readonly additionalProperties: false;
1880
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
1881
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
1882
+ readonly properties: {
1883
+ readonly name: {
1884
+ readonly type: "string";
1885
+ readonly description: "The variant name. Must be unique for this feature toggle";
1886
+ readonly example: "blue_group";
1887
+ };
1888
+ readonly weight: {
1889
+ readonly type: "integer";
1890
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
1891
+ readonly minimum: 0;
1892
+ readonly maximum: 1000;
1893
+ };
1894
+ readonly weightType: {
1895
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
1896
+ readonly type: "string";
1897
+ readonly example: "fix";
1898
+ readonly enum: readonly ["variable", "fix"];
1899
+ };
1900
+ readonly stickiness: {
1901
+ readonly type: "string";
1902
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
1903
+ readonly example: "custom.context.field";
1904
+ };
1905
+ readonly payload: {
1906
+ readonly type: "object";
1907
+ readonly required: readonly ["type", "value"];
1908
+ readonly description: "Extra data configured for this variant";
1909
+ readonly properties: {
1910
+ readonly type: {
1911
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1912
+ readonly type: "string";
1913
+ readonly enum: readonly ["json", "csv", "string"];
1914
+ };
1915
+ readonly value: {
1916
+ readonly description: "The actual value of payload";
1917
+ readonly type: "string";
1918
+ };
1919
+ };
1920
+ readonly example: {
1921
+ readonly type: "json";
1922
+ readonly value: "{\"color\": \"red\"}";
1923
+ };
1924
+ };
1925
+ };
1926
+ readonly components: {};
1927
+ };
1386
1928
  };
1387
1929
  };
1388
1930
  };
1931
+ readonly strategyVariantSchema: {
1932
+ readonly $id: "#/components/schemas/strategyVariantSchema";
1933
+ readonly type: "object";
1934
+ readonly additionalProperties: false;
1935
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
1936
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
1937
+ readonly properties: {
1938
+ readonly name: {
1939
+ readonly type: "string";
1940
+ readonly description: "The variant name. Must be unique for this feature toggle";
1941
+ readonly example: "blue_group";
1942
+ };
1943
+ readonly weight: {
1944
+ readonly type: "integer";
1945
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
1946
+ readonly minimum: 0;
1947
+ readonly maximum: 1000;
1948
+ };
1949
+ readonly weightType: {
1950
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
1951
+ readonly type: "string";
1952
+ readonly example: "fix";
1953
+ readonly enum: readonly ["variable", "fix"];
1954
+ };
1955
+ readonly stickiness: {
1956
+ readonly type: "string";
1957
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
1958
+ readonly example: "custom.context.field";
1959
+ };
1960
+ readonly payload: {
1961
+ readonly type: "object";
1962
+ readonly required: readonly ["type", "value"];
1963
+ readonly description: "Extra data configured for this variant";
1964
+ readonly properties: {
1965
+ readonly type: {
1966
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1967
+ readonly type: "string";
1968
+ readonly enum: readonly ["json", "csv", "string"];
1969
+ };
1970
+ readonly value: {
1971
+ readonly description: "The actual value of payload";
1972
+ readonly type: "string";
1973
+ };
1974
+ };
1975
+ readonly example: {
1976
+ readonly type: "json";
1977
+ readonly value: "{\"color\": \"red\"}";
1978
+ };
1979
+ };
1980
+ };
1981
+ readonly components: {};
1982
+ };
1389
1983
  readonly variantSchema: {
1390
1984
  readonly $id: "#/components/schemas/variantSchema";
1391
1985
  readonly type: "object";
@@ -1407,7 +2001,8 @@ export declare const healthReportSchema: {
1407
2001
  readonly weightType: {
1408
2002
  readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
1409
2003
  readonly type: "string";
1410
- readonly example: "fix";
2004
+ readonly example: "variable";
2005
+ readonly enum: readonly ["variable", "fix"];
1411
2006
  };
1412
2007
  readonly stickiness: {
1413
2008
  readonly type: "string";
@@ -1418,17 +2013,21 @@ export declare const healthReportSchema: {
1418
2013
  readonly type: "object";
1419
2014
  readonly required: readonly ["type", "value"];
1420
2015
  readonly description: "Extra data configured for this variant";
2016
+ readonly additionalProperties: false;
1421
2017
  readonly properties: {
1422
2018
  readonly type: {
2019
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1423
2020
  readonly type: "string";
2021
+ readonly enum: readonly ["json", "csv", "string"];
1424
2022
  };
1425
2023
  readonly value: {
2024
+ readonly description: "The actual value of payload";
1426
2025
  readonly type: "string";
1427
2026
  };
1428
2027
  };
1429
2028
  readonly example: {
1430
2029
  readonly type: "json";
1431
- readonly value: "{color: red}";
2030
+ readonly value: "{\"color\": \"red\"}";
1432
2031
  };
1433
2032
  };
1434
2033
  readonly overrides: {
@@ -1496,6 +2095,7 @@ export declare const healthReportSchema: {
1496
2095
  readonly parametersSchema: {
1497
2096
  readonly $id: "#/components/schemas/parametersSchema";
1498
2097
  readonly type: "object";
2098
+ readonly description: "A list of parameters for a strategy";
1499
2099
  readonly additionalProperties: {
1500
2100
  readonly type: "string";
1501
2101
  };
@@ -1550,11 +2150,18 @@ export declare const healthReportSchema: {
1550
2150
  };
1551
2151
  readonly constraints: {
1552
2152
  readonly type: "array";
1553
- readonly description: "A list of the constraints attached to the strategy";
2153
+ readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
1554
2154
  readonly items: {
1555
2155
  readonly $ref: "#/components/schemas/constraintSchema";
1556
2156
  };
1557
2157
  };
2158
+ readonly variants: {
2159
+ readonly type: "array";
2160
+ readonly description: "Strategy level variants";
2161
+ readonly items: {
2162
+ readonly $ref: "#/components/schemas/strategyVariantSchema";
2163
+ };
2164
+ };
1558
2165
  readonly parameters: {
1559
2166
  readonly $ref: "#/components/schemas/parametersSchema";
1560
2167
  };
@@ -1608,14 +2215,119 @@ export declare const healthReportSchema: {
1608
2215
  readonly parametersSchema: {
1609
2216
  readonly $id: "#/components/schemas/parametersSchema";
1610
2217
  readonly type: "object";
2218
+ readonly description: "A list of parameters for a strategy";
1611
2219
  readonly additionalProperties: {
1612
2220
  readonly type: "string";
1613
2221
  };
1614
2222
  readonly components: {};
1615
2223
  };
2224
+ readonly strategyVariantSchema: {
2225
+ readonly $id: "#/components/schemas/strategyVariantSchema";
2226
+ readonly type: "object";
2227
+ readonly additionalProperties: false;
2228
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
2229
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
2230
+ readonly properties: {
2231
+ readonly name: {
2232
+ readonly type: "string";
2233
+ readonly description: "The variant name. Must be unique for this feature toggle";
2234
+ readonly example: "blue_group";
2235
+ };
2236
+ readonly weight: {
2237
+ readonly type: "integer";
2238
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
2239
+ readonly minimum: 0;
2240
+ readonly maximum: 1000;
2241
+ };
2242
+ readonly weightType: {
2243
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
2244
+ readonly type: "string";
2245
+ readonly example: "fix";
2246
+ readonly enum: readonly ["variable", "fix"];
2247
+ };
2248
+ readonly stickiness: {
2249
+ readonly type: "string";
2250
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
2251
+ readonly example: "custom.context.field";
2252
+ };
2253
+ readonly payload: {
2254
+ readonly type: "object";
2255
+ readonly required: readonly ["type", "value"];
2256
+ readonly description: "Extra data configured for this variant";
2257
+ readonly properties: {
2258
+ readonly type: {
2259
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
2260
+ readonly type: "string";
2261
+ readonly enum: readonly ["json", "csv", "string"];
2262
+ };
2263
+ readonly value: {
2264
+ readonly description: "The actual value of payload";
2265
+ readonly type: "string";
2266
+ };
2267
+ };
2268
+ readonly example: {
2269
+ readonly type: "json";
2270
+ readonly value: "{\"color\": \"red\"}";
2271
+ };
2272
+ };
2273
+ };
2274
+ readonly components: {};
2275
+ };
1616
2276
  };
1617
2277
  };
1618
2278
  };
2279
+ readonly strategyVariantSchema: {
2280
+ readonly $id: "#/components/schemas/strategyVariantSchema";
2281
+ readonly type: "object";
2282
+ readonly additionalProperties: false;
2283
+ readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
2284
+ readonly required: readonly ["name", "weight", "weightType", "stickiness"];
2285
+ readonly properties: {
2286
+ readonly name: {
2287
+ readonly type: "string";
2288
+ readonly description: "The variant name. Must be unique for this feature toggle";
2289
+ readonly example: "blue_group";
2290
+ };
2291
+ readonly weight: {
2292
+ readonly type: "integer";
2293
+ readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
2294
+ readonly minimum: 0;
2295
+ readonly maximum: 1000;
2296
+ };
2297
+ readonly weightType: {
2298
+ readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
2299
+ readonly type: "string";
2300
+ readonly example: "fix";
2301
+ readonly enum: readonly ["variable", "fix"];
2302
+ };
2303
+ readonly stickiness: {
2304
+ readonly type: "string";
2305
+ readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
2306
+ readonly example: "custom.context.field";
2307
+ };
2308
+ readonly payload: {
2309
+ readonly type: "object";
2310
+ readonly required: readonly ["type", "value"];
2311
+ readonly description: "Extra data configured for this variant";
2312
+ readonly properties: {
2313
+ readonly type: {
2314
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
2315
+ readonly type: "string";
2316
+ readonly enum: readonly ["json", "csv", "string"];
2317
+ };
2318
+ readonly value: {
2319
+ readonly description: "The actual value of payload";
2320
+ readonly type: "string";
2321
+ };
2322
+ };
2323
+ readonly example: {
2324
+ readonly type: "json";
2325
+ readonly value: "{\"color\": \"red\"}";
2326
+ };
2327
+ };
2328
+ };
2329
+ readonly components: {};
2330
+ };
1619
2331
  readonly variantSchema: {
1620
2332
  readonly $id: "#/components/schemas/variantSchema";
1621
2333
  readonly type: "object";
@@ -1637,7 +2349,8 @@ export declare const healthReportSchema: {
1637
2349
  readonly weightType: {
1638
2350
  readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
1639
2351
  readonly type: "string";
1640
- readonly example: "fix";
2352
+ readonly example: "variable";
2353
+ readonly enum: readonly ["variable", "fix"];
1641
2354
  };
1642
2355
  readonly stickiness: {
1643
2356
  readonly type: "string";
@@ -1648,17 +2361,21 @@ export declare const healthReportSchema: {
1648
2361
  readonly type: "object";
1649
2362
  readonly required: readonly ["type", "value"];
1650
2363
  readonly description: "Extra data configured for this variant";
2364
+ readonly additionalProperties: false;
1651
2365
  readonly properties: {
1652
2366
  readonly type: {
2367
+ readonly description: "The type of the value. Commonly used types are string, json and csv.";
1653
2368
  readonly type: "string";
2369
+ readonly enum: readonly ["json", "csv", "string"];
1654
2370
  };
1655
2371
  readonly value: {
2372
+ readonly description: "The actual value of payload";
1656
2373
  readonly type: "string";
1657
2374
  };
1658
2375
  };
1659
2376
  readonly example: {
1660
2377
  readonly type: "json";
1661
- readonly value: "{color: red}";
2378
+ readonly value: "{\"color\": \"red\"}";
1662
2379
  };
1663
2380
  };
1664
2381
  readonly overrides: {