unleash-server 5.2.8 → 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 (767) 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 +1 -0
  6. package/dist/lib/addons/datadog-definition.js.map +1 -1
  7. package/dist/lib/addons/feature-event-formatter-md.d.ts +1 -0
  8. package/dist/lib/addons/feature-event-formatter-md.js +7 -0
  9. package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
  10. package/dist/lib/addons/index.d.ts +2 -1
  11. package/dist/lib/addons/index.js +12 -2
  12. package/dist/lib/addons/index.js.map +1 -1
  13. package/dist/lib/addons/installation-definition-schema.d.ts +2 -0
  14. package/dist/lib/addons/installation-definition-schema.js +13 -0
  15. package/dist/lib/addons/installation-definition-schema.js.map +1 -0
  16. package/dist/lib/addons/slack-app-definition.d.ts +3 -0
  17. package/dist/lib/addons/slack-app-definition.js +68 -0
  18. package/dist/lib/addons/slack-app-definition.js.map +1 -0
  19. package/dist/lib/addons/slack-app.d.ts +23 -0
  20. package/dist/lib/addons/slack-app.js +137 -0
  21. package/dist/lib/addons/slack-app.js.map +1 -0
  22. package/dist/lib/addons/slack-app.test.d.ts +1 -0
  23. package/dist/lib/addons/slack-app.test.js +191 -0
  24. package/dist/lib/addons/slack-app.test.js.map +1 -0
  25. package/dist/lib/addons/slack-definition.js +1 -0
  26. package/dist/lib/addons/slack-definition.js.map +1 -1
  27. package/dist/lib/addons/teams-definition.js +1 -0
  28. package/dist/lib/addons/teams-definition.js.map +1 -1
  29. package/dist/lib/addons/webhook-definition.js +1 -0
  30. package/dist/lib/addons/webhook-definition.js.map +1 -1
  31. package/dist/lib/create-config.js +2 -2
  32. package/dist/lib/create-config.js.map +1 -1
  33. package/dist/lib/db/access-store.d.ts +0 -1
  34. package/dist/lib/db/access-store.js +1 -14
  35. package/dist/lib/db/access-store.js.map +1 -1
  36. package/dist/lib/db/client-metrics-store-v2.js +7 -2
  37. package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
  38. package/dist/lib/db/context-field-store.js +9 -18
  39. package/dist/lib/db/context-field-store.js.map +1 -1
  40. package/dist/lib/db/event-store.d.ts +2 -0
  41. package/dist/lib/db/event-store.js +19 -9
  42. package/dist/lib/db/event-store.js.map +1 -1
  43. package/dist/lib/db/feature-strategy-store.js +5 -0
  44. package/dist/lib/db/feature-strategy-store.js.map +1 -1
  45. package/dist/lib/db/feature-strategy-store.test.js +1 -0
  46. package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
  47. package/dist/lib/db/feature-toggle-client-store.d.ts +7 -8
  48. package/dist/lib/db/feature-toggle-client-store.js +46 -24
  49. package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
  50. package/dist/lib/db/feature-toggle-store.d.ts +6 -0
  51. package/dist/lib/db/feature-toggle-store.js +35 -0
  52. package/dist/lib/db/feature-toggle-store.js.map +1 -1
  53. package/dist/lib/db/feature-type-store.d.ts +1 -0
  54. package/dist/lib/db/feature-type-store.js +12 -0
  55. package/dist/lib/db/feature-type-store.js.map +1 -1
  56. package/dist/lib/db/group-store.d.ts +5 -7
  57. package/dist/lib/db/group-store.js +51 -25
  58. package/dist/lib/db/group-store.js.map +1 -1
  59. package/dist/lib/db/index.js +1 -1
  60. package/dist/lib/db/index.js.map +1 -1
  61. package/dist/lib/db/project-store.d.ts +3 -5
  62. package/dist/lib/db/project-store.js +19 -19
  63. package/dist/lib/db/project-store.js.map +1 -1
  64. package/dist/lib/db/segment-store.d.ts +2 -1
  65. package/dist/lib/db/segment-store.js +23 -20
  66. package/dist/lib/db/segment-store.js.map +1 -1
  67. package/dist/lib/db/segment-store.test.d.ts +1 -0
  68. package/dist/lib/db/segment-store.test.js +32 -0
  69. package/dist/lib/db/segment-store.test.js.map +1 -0
  70. package/dist/lib/error/bad-data-error.d.ts +1 -0
  71. package/dist/lib/error/bad-data-error.js +18 -5
  72. package/dist/lib/error/bad-data-error.js.map +1 -1
  73. package/dist/lib/error/content-type-error.d.ts +1 -0
  74. package/dist/lib/error/content-type-error.js +1 -0
  75. package/dist/lib/error/content-type-error.js.map +1 -1
  76. package/dist/lib/error/disabled-error.d.ts +1 -0
  77. package/dist/lib/error/disabled-error.js +4 -0
  78. package/dist/lib/error/disabled-error.js.map +1 -1
  79. package/dist/lib/error/feature-has-tag-error.d.ts +1 -0
  80. package/dist/lib/error/feature-has-tag-error.js +4 -0
  81. package/dist/lib/error/feature-has-tag-error.js.map +1 -1
  82. package/dist/lib/error/forbidden-error.d.ts +5 -0
  83. package/dist/lib/error/forbidden-error.js +12 -0
  84. package/dist/lib/error/forbidden-error.js.map +1 -0
  85. package/dist/lib/error/from-legacy-error.js +68 -0
  86. package/dist/lib/error/from-legacy-error.js.map +1 -1
  87. package/dist/lib/error/incompatible-project-error.d.ts +1 -0
  88. package/dist/lib/error/incompatible-project-error.js +1 -0
  89. package/dist/lib/error/incompatible-project-error.js.map +1 -1
  90. package/dist/lib/error/index.d.ts +3 -2
  91. package/dist/lib/error/index.js +5 -3
  92. package/dist/lib/error/index.js.map +1 -1
  93. package/dist/lib/error/invalid-operation-error.d.ts +1 -0
  94. package/dist/lib/error/invalid-operation-error.js +4 -0
  95. package/dist/lib/error/invalid-operation-error.js.map +1 -1
  96. package/dist/lib/error/invalid-token-error.d.ts +1 -0
  97. package/dist/lib/error/invalid-token-error.js +1 -0
  98. package/dist/lib/error/invalid-token-error.js.map +1 -1
  99. package/dist/lib/error/minimum-one-environment-error.d.ts +1 -0
  100. package/dist/lib/error/minimum-one-environment-error.js +4 -0
  101. package/dist/lib/error/minimum-one-environment-error.js.map +1 -1
  102. package/dist/lib/error/name-exists-error.d.ts +1 -0
  103. package/dist/lib/error/name-exists-error.js +4 -0
  104. package/dist/lib/error/name-exists-error.js.map +1 -1
  105. package/dist/lib/error/not-implemented-error.d.ts +1 -0
  106. package/dist/lib/error/not-implemented-error.js +4 -0
  107. package/dist/lib/error/not-implemented-error.js.map +1 -1
  108. package/dist/lib/error/notfound-error.d.ts +1 -0
  109. package/dist/lib/error/notfound-error.js +1 -0
  110. package/dist/lib/error/notfound-error.js.map +1 -1
  111. package/dist/lib/error/operation-denied-error.d.ts +1 -0
  112. package/dist/lib/error/operation-denied-error.js +4 -0
  113. package/dist/lib/error/operation-denied-error.js.map +1 -1
  114. package/dist/lib/error/owasp-validation-error.d.ts +1 -0
  115. package/dist/lib/error/owasp-validation-error.js +1 -0
  116. package/dist/lib/error/owasp-validation-error.js.map +1 -1
  117. package/dist/lib/error/password-mismatch.d.ts +1 -0
  118. package/dist/lib/error/password-mismatch.js +1 -0
  119. package/dist/lib/error/password-mismatch.js.map +1 -1
  120. package/dist/lib/error/password-undefined.d.ts +1 -0
  121. package/dist/lib/error/password-undefined.js +1 -0
  122. package/dist/lib/error/password-undefined.js.map +1 -1
  123. package/dist/lib/error/{no-access-error.d.ts → permission-error.d.ts} +3 -2
  124. package/dist/lib/error/{no-access-error.js → permission-error.js} +10 -7
  125. package/dist/lib/error/permission-error.js.map +1 -0
  126. package/dist/lib/error/project-without-owner-error.d.ts +1 -0
  127. package/dist/lib/error/project-without-owner-error.js +1 -0
  128. package/dist/lib/error/project-without-owner-error.js.map +1 -1
  129. package/dist/lib/error/role-in-use-error.d.ts +1 -0
  130. package/dist/lib/error/role-in-use-error.js +4 -0
  131. package/dist/lib/error/role-in-use-error.js.map +1 -1
  132. package/dist/lib/error/unauthorized-error.d.ts +1 -0
  133. package/dist/lib/error/unauthorized-error.js +4 -0
  134. package/dist/lib/error/unauthorized-error.js.map +1 -1
  135. package/dist/lib/error/unleash-error.d.ts +5 -3
  136. package/dist/lib/error/unleash-error.js +4 -61
  137. package/dist/lib/error/unleash-error.js.map +1 -1
  138. package/dist/lib/error/unleash-error.test.js +67 -37
  139. package/dist/lib/error/unleash-error.test.js.map +1 -1
  140. package/dist/lib/error/used-token-error.d.ts +1 -0
  141. package/dist/lib/error/used-token-error.js +1 -0
  142. package/dist/lib/error/used-token-error.js.map +1 -1
  143. package/dist/lib/features/export-import-toggles/export-import-controller.js +12 -7
  144. package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
  145. package/dist/lib/features/export-import-toggles/import-permissions-service.js +1 -1
  146. package/dist/lib/features/export-import-toggles/import-permissions-service.js.map +1 -1
  147. package/dist/lib/features/feature-toggle/createFeatureToggleService.js +1 -1
  148. package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
  149. package/dist/lib/features/group/createGroupService.d.ts +4 -0
  150. package/dist/lib/features/group/createGroupService.js +20 -0
  151. package/dist/lib/features/group/createGroupService.js.map +1 -0
  152. package/dist/lib/features/playground/feature-evaluator/client.d.ts +3 -1
  153. package/dist/lib/features/playground/feature-evaluator/client.js +33 -13
  154. package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -1
  155. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.d.ts +3 -1
  156. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js +14 -1
  157. package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -1
  158. package/dist/lib/features/playground/feature-evaluator/variant.d.ts +4 -4
  159. package/dist/lib/features/playground/feature-evaluator/variant.js +14 -10
  160. package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -1
  161. package/dist/lib/features/playground/offline-unleash-client.js +7 -0
  162. package/dist/lib/features/playground/offline-unleash-client.js.map +1 -1
  163. package/dist/lib/features/playground/offline-unleash-client.test.js +69 -0
  164. package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -1
  165. package/dist/lib/features/playground/playground-service.js +5 -3
  166. package/dist/lib/features/playground/playground-service.js.map +1 -1
  167. package/dist/lib/features/playground/playground.js +12 -15
  168. package/dist/lib/features/playground/playground.js.map +1 -1
  169. package/dist/lib/middleware/api-token-middleware.js +1 -1
  170. package/dist/lib/middleware/api-token-middleware.js.map +1 -1
  171. package/dist/lib/openapi/index.js +15 -3
  172. package/dist/lib/openapi/index.js.map +1 -1
  173. package/dist/lib/openapi/meta-schema-rules.test.js +0 -126
  174. package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
  175. package/dist/lib/openapi/spec/addon-type-schema.d.ts +57 -0
  176. package/dist/lib/openapi/spec/addon-type-schema.js +50 -0
  177. package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
  178. package/dist/lib/openapi/spec/addons-schema.d.ts +64 -0
  179. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +166 -4
  180. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +1 -2
  181. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
  182. package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +331 -6
  183. package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +662 -12
  184. package/dist/lib/openapi/spec/api-tokens-schema.d.ts +2 -2
  185. package/dist/lib/openapi/spec/api-tokens-schema.js +2 -2
  186. package/dist/lib/openapi/spec/api-tokens-schema.js.map +1 -1
  187. package/dist/lib/openapi/spec/batch-features-schema.d.ts +3 -0
  188. package/dist/lib/openapi/spec/batch-features-schema.js +3 -0
  189. package/dist/lib/openapi/spec/batch-features-schema.js.map +1 -1
  190. package/dist/lib/openapi/spec/batch-stale-schema.d.ts +7 -0
  191. package/dist/lib/openapi/spec/batch-stale-schema.js +7 -0
  192. package/dist/lib/openapi/spec/batch-stale-schema.js.map +1 -1
  193. package/dist/lib/openapi/spec/change-password-schema.d.ts +5 -0
  194. package/dist/lib/openapi/spec/change-password-schema.js +5 -0
  195. package/dist/lib/openapi/spec/change-password-schema.js.map +1 -1
  196. package/dist/lib/openapi/spec/client-feature-schema.d.ts +121 -3
  197. package/dist/lib/openapi/spec/client-feature-schema.js +2 -0
  198. package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
  199. package/dist/lib/openapi/spec/client-features-schema.d.ts +246 -16
  200. package/dist/lib/openapi/spec/client-features-schema.js +5 -3
  201. package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
  202. package/dist/lib/openapi/spec/client-features-schema.test.js +1 -2
  203. package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
  204. package/dist/lib/openapi/spec/client-segment-schema.d.ts +75 -0
  205. package/dist/lib/openapi/spec/client-segment-schema.js +35 -0
  206. package/dist/lib/openapi/spec/client-segment-schema.js.map +1 -0
  207. package/dist/lib/openapi/spec/clone-feature-schema.d.ts +5 -0
  208. package/dist/lib/openapi/spec/clone-feature-schema.js +5 -0
  209. package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -1
  210. package/dist/lib/openapi/spec/context-field-schema.d.ts +22 -3
  211. package/dist/lib/openapi/spec/context-field-schema.js +17 -3
  212. package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
  213. package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
  214. package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
  215. package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
  216. package/dist/lib/openapi/spec/context-fields-schema.d.ts +28 -3
  217. package/dist/lib/openapi/spec/context-fields-schema.js +1 -0
  218. package/dist/lib/openapi/spec/context-fields-schema.js.map +1 -1
  219. package/dist/lib/openapi/spec/create-api-token-schema.d.ts +130 -32
  220. package/dist/lib/openapi/spec/create-api-token-schema.js +71 -35
  221. package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
  222. package/dist/lib/openapi/spec/create-feature-schema.d.ts +9 -0
  223. package/dist/lib/openapi/spec/create-feature-schema.js +9 -0
  224. package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
  225. package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +63 -2
  226. package/dist/lib/openapi/spec/create-feature-strategy-schema.js +12 -2
  227. package/dist/lib/openapi/spec/create-feature-strategy-schema.js.map +1 -1
  228. package/dist/lib/openapi/spec/create-group-schema.d.ts +61 -0
  229. package/dist/lib/openapi/spec/create-group-schema.js +43 -0
  230. package/dist/lib/openapi/spec/create-group-schema.js.map +1 -0
  231. package/dist/lib/openapi/spec/create-strategy-schema.d.ts +52 -0
  232. package/dist/lib/openapi/spec/create-strategy-schema.js +60 -0
  233. package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -0
  234. package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +54 -0
  235. package/dist/lib/openapi/spec/create-strategy-variant-schema.js +53 -0
  236. package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -0
  237. package/dist/lib/openapi/spec/create-user-response-schema.d.ts +98 -0
  238. package/dist/lib/openapi/spec/create-user-response-schema.js +31 -0
  239. package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -0
  240. package/dist/lib/openapi/spec/create-user-schema.d.ts +21 -1
  241. package/dist/lib/openapi/spec/create-user-schema.js +24 -1
  242. package/dist/lib/openapi/spec/create-user-schema.js.map +1 -1
  243. package/dist/lib/openapi/spec/email-schema.d.ts +3 -0
  244. package/dist/lib/openapi/spec/email-schema.js +3 -0
  245. package/dist/lib/openapi/spec/email-schema.js.map +1 -1
  246. package/dist/lib/openapi/spec/environment-project-schema.d.ts +115 -2
  247. package/dist/lib/openapi/spec/environment-project-schema.js +2 -0
  248. package/dist/lib/openapi/spec/environment-project-schema.js.map +1 -1
  249. package/dist/lib/openapi/spec/environments-project-schema.d.ts +118 -2
  250. package/dist/lib/openapi/spec/environments-project-schema.js +3 -0
  251. package/dist/lib/openapi/spec/environments-project-schema.js.map +1 -1
  252. package/dist/lib/openapi/spec/environments-schema.d.ts +4 -0
  253. package/dist/lib/openapi/spec/environments-schema.js +4 -0
  254. package/dist/lib/openapi/spec/environments-schema.js.map +1 -1
  255. package/dist/lib/openapi/spec/event-schema.d.ts +130 -0
  256. package/dist/lib/openapi/spec/event-schema.js +42 -2
  257. package/dist/lib/openapi/spec/event-schema.js.map +1 -1
  258. package/dist/lib/openapi/spec/events-schema.d.ts +137 -0
  259. package/dist/lib/openapi/spec/events-schema.js +7 -0
  260. package/dist/lib/openapi/spec/events-schema.js.map +1 -1
  261. package/dist/lib/openapi/spec/export-query-schema.d.ts +7 -0
  262. package/dist/lib/openapi/spec/export-query-schema.js +7 -0
  263. package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
  264. package/dist/lib/openapi/spec/export-result-schema.d.ts +609 -17
  265. package/dist/lib/openapi/spec/export-result-schema.js +90 -0
  266. package/dist/lib/openapi/spec/export-result-schema.js.map +1 -1
  267. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +125 -3
  268. package/dist/lib/openapi/spec/feature-environment-schema.js +6 -0
  269. package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
  270. package/dist/lib/openapi/spec/feature-events-schema.d.ts +141 -1
  271. package/dist/lib/openapi/spec/feature-events-schema.js +13 -1
  272. package/dist/lib/openapi/spec/feature-events-schema.js.map +1 -1
  273. package/dist/lib/openapi/spec/feature-schema.d.ts +251 -6
  274. package/dist/lib/openapi/spec/feature-schema.js +7 -0
  275. package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
  276. package/dist/lib/openapi/spec/feature-schema.test.js +2 -2
  277. package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
  278. package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +61 -1
  279. package/dist/lib/openapi/spec/feature-strategy-schema.js +10 -1
  280. package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
  281. package/dist/lib/openapi/spec/feature-type-schema.d.ts +11 -1
  282. package/dist/lib/openapi/spec/feature-type-schema.js +11 -1
  283. package/dist/lib/openapi/spec/feature-type-schema.js.map +1 -1
  284. package/dist/lib/openapi/spec/feature-types-schema.d.ts +42 -1
  285. package/dist/lib/openapi/spec/feature-types-schema.js +37 -0
  286. package/dist/lib/openapi/spec/feature-types-schema.js.map +1 -1
  287. package/dist/lib/openapi/spec/feature-variants-schema.d.ts +11 -2
  288. package/dist/lib/openapi/spec/feature-variants-schema.js +4 -0
  289. package/dist/lib/openapi/spec/feature-variants-schema.js.map +1 -1
  290. package/dist/lib/openapi/spec/features-schema.d.ts +501 -12
  291. package/dist/lib/openapi/spec/features-schema.js +6 -0
  292. package/dist/lib/openapi/spec/features-schema.js.map +1 -1
  293. package/dist/lib/openapi/spec/feedback-create-schema.d.ts +21 -0
  294. package/dist/lib/openapi/spec/feedback-create-schema.js +23 -0
  295. package/dist/lib/openapi/spec/feedback-create-schema.js.map +1 -0
  296. package/dist/lib/openapi/spec/feedback-response-schema.d.ts +33 -0
  297. package/dist/lib/openapi/spec/feedback-response-schema.js +35 -0
  298. package/dist/lib/openapi/spec/feedback-response-schema.js.map +1 -0
  299. package/dist/lib/openapi/spec/feedback-update-schema.d.ts +27 -0
  300. package/dist/lib/openapi/spec/feedback-update-schema.js +29 -0
  301. package/dist/lib/openapi/spec/feedback-update-schema.js.map +1 -0
  302. package/dist/lib/openapi/spec/group-schema.d.ts +107 -9
  303. package/dist/lib/openapi/spec/group-schema.js +20 -3
  304. package/dist/lib/openapi/spec/group-schema.js.map +1 -1
  305. package/dist/lib/openapi/spec/group-user-model-schema.d.ts +46 -3
  306. package/dist/lib/openapi/spec/group-user-model-schema.js +5 -0
  307. package/dist/lib/openapi/spec/group-user-model-schema.js.map +1 -1
  308. package/dist/lib/openapi/spec/groups-schema.d.ts +196 -15
  309. package/dist/lib/openapi/spec/groups-schema.js +2 -0
  310. package/dist/lib/openapi/spec/groups-schema.js.map +1 -1
  311. package/dist/lib/openapi/spec/health-overview-schema.d.ts +733 -16
  312. package/dist/lib/openapi/spec/health-overview-schema.js +10 -0
  313. package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
  314. package/dist/lib/openapi/spec/health-report-schema.d.ts +733 -16
  315. package/dist/lib/openapi/spec/id-schema.d.ts +3 -0
  316. package/dist/lib/openapi/spec/id-schema.js +3 -0
  317. package/dist/lib/openapi/spec/id-schema.js.map +1 -1
  318. package/dist/lib/openapi/spec/import-toggles-schema.d.ts +1198 -63
  319. package/dist/lib/openapi/spec/import-toggles-schema.js +7 -0
  320. package/dist/lib/openapi/spec/import-toggles-schema.js.map +1 -1
  321. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.d.ts +5 -0
  322. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js +5 -0
  323. package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js.map +1 -1
  324. package/dist/lib/openapi/spec/import-toggles-validate-schema.d.ts +18 -0
  325. package/dist/lib/openapi/spec/import-toggles-validate-schema.js +17 -0
  326. package/dist/lib/openapi/spec/import-toggles-validate-schema.js.map +1 -1
  327. package/dist/lib/openapi/spec/index.d.ts +15 -3
  328. package/dist/lib/openapi/spec/index.js +15 -3
  329. package/dist/lib/openapi/spec/index.js.map +1 -1
  330. package/dist/lib/openapi/spec/legal-value-schema.d.ts +5 -0
  331. package/dist/lib/openapi/spec/legal-value-schema.js +5 -0
  332. package/dist/lib/openapi/spec/legal-value-schema.js.map +1 -1
  333. package/dist/lib/openapi/spec/login-schema.d.ts +5 -0
  334. package/dist/lib/openapi/spec/login-schema.js +5 -0
  335. package/dist/lib/openapi/spec/login-schema.js.map +1 -1
  336. package/dist/lib/openapi/spec/me-schema.d.ts +69 -11
  337. package/dist/lib/openapi/spec/me-schema.js +7 -3
  338. package/dist/lib/openapi/spec/me-schema.js.map +1 -1
  339. package/dist/lib/openapi/spec/name-schema.d.ts +3 -0
  340. package/dist/lib/openapi/spec/name-schema.js +3 -0
  341. package/dist/lib/openapi/spec/name-schema.js.map +1 -1
  342. package/dist/lib/openapi/spec/parameters-schema.d.ts +1 -0
  343. package/dist/lib/openapi/spec/parameters-schema.js +1 -0
  344. package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
  345. package/dist/lib/openapi/spec/password-schema.d.ts +7 -0
  346. package/dist/lib/openapi/spec/password-schema.js +7 -0
  347. package/dist/lib/openapi/spec/password-schema.js.map +1 -1
  348. package/dist/lib/openapi/spec/patches-schema.d.ts +1 -0
  349. package/dist/lib/openapi/spec/patches-schema.js +1 -0
  350. package/dist/lib/openapi/spec/patches-schema.js.map +1 -1
  351. package/dist/lib/openapi/spec/permission-schema.d.ts +7 -0
  352. package/dist/lib/openapi/spec/permission-schema.js +7 -0
  353. package/dist/lib/openapi/spec/permission-schema.js.map +1 -1
  354. package/dist/lib/openapi/spec/playground-feature-schema.d.ts +165 -3
  355. package/dist/lib/openapi/spec/playground-feature-schema.js +0 -1
  356. package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
  357. package/dist/lib/openapi/spec/playground-response-schema.d.ts +330 -5
  358. package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +204 -0
  359. package/dist/lib/openapi/spec/playground-strategy-schema.js +49 -0
  360. package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
  361. package/dist/lib/openapi/spec/profile-schema.d.ts +267 -7
  362. package/dist/lib/openapi/spec/profile-schema.js +5 -0
  363. package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
  364. package/dist/lib/openapi/spec/project-environment-schema.d.ts +115 -2
  365. package/dist/lib/openapi/spec/project-environment-schema.js +2 -0
  366. package/dist/lib/openapi/spec/project-environment-schema.js.map +1 -1
  367. package/dist/lib/openapi/spec/project-overview-schema.d.ts +733 -16
  368. package/dist/lib/openapi/spec/project-overview-schema.js +10 -0
  369. package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
  370. package/dist/lib/openapi/spec/proxy-client-schema.d.ts +3 -0
  371. package/dist/lib/openapi/spec/proxy-client-schema.js +3 -0
  372. package/dist/lib/openapi/spec/proxy-client-schema.js.map +1 -1
  373. package/dist/lib/openapi/spec/proxy-feature-schema.d.ts +20 -2
  374. package/dist/lib/openapi/spec/proxy-feature-schema.js +20 -3
  375. package/dist/lib/openapi/spec/proxy-feature-schema.js.map +1 -1
  376. package/dist/lib/openapi/spec/proxy-features-schema.d.ts +22 -1
  377. package/dist/lib/openapi/spec/proxy-features-schema.js +2 -0
  378. package/dist/lib/openapi/spec/proxy-features-schema.js.map +1 -1
  379. package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +52 -4
  380. package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +104 -8
  381. package/dist/lib/openapi/spec/push-variants-schema.d.ts +7 -2
  382. package/dist/lib/openapi/spec/requests-per-second-schema.d.ts +16 -0
  383. package/dist/lib/openapi/spec/requests-per-second-schema.js +22 -2
  384. package/dist/lib/openapi/spec/requests-per-second-schema.js.map +1 -1
  385. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.d.ts +17 -0
  386. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js +1 -0
  387. package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js.map +1 -1
  388. package/dist/lib/openapi/spec/role-schema.d.ts +11 -1
  389. package/dist/lib/openapi/spec/role-schema.js +11 -1
  390. package/dist/lib/openapi/spec/role-schema.js.map +1 -1
  391. package/dist/lib/openapi/spec/search-events-schema.d.ts +9 -0
  392. package/dist/lib/openapi/spec/search-events-schema.js +10 -0
  393. package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
  394. package/dist/lib/openapi/spec/segment-schema.d.ts +23 -6
  395. package/dist/lib/openapi/spec/segment-schema.js +18 -15
  396. package/dist/lib/openapi/spec/segment-schema.js.map +1 -1
  397. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.d.ts +6 -0
  398. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js +6 -0
  399. package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js.map +1 -1
  400. package/dist/lib/openapi/spec/set-ui-config-schema.d.ts +4 -0
  401. package/dist/lib/openapi/spec/set-ui-config-schema.js +4 -0
  402. package/dist/lib/openapi/spec/set-ui-config-schema.js.map +1 -1
  403. package/dist/lib/openapi/spec/splash-request-schema.d.ts +21 -0
  404. package/dist/lib/openapi/spec/splash-request-schema.js +23 -0
  405. package/dist/lib/openapi/spec/splash-request-schema.js.map +1 -0
  406. package/dist/lib/openapi/spec/splash-response-schema.d.ts +27 -0
  407. package/dist/lib/openapi/spec/splash-response-schema.js +21 -0
  408. package/dist/lib/openapi/spec/splash-response-schema.js.map +1 -0
  409. package/dist/lib/openapi/spec/state-schema.d.ts +523 -19
  410. package/dist/lib/openapi/spec/state-schema.js +2 -0
  411. package/dist/lib/openapi/spec/state-schema.js.map +1 -1
  412. package/dist/lib/openapi/spec/strategies-schema.d.ts +9 -3
  413. package/dist/lib/openapi/spec/strategies-schema.js +5 -0
  414. package/dist/lib/openapi/spec/strategies-schema.js.map +1 -1
  415. package/dist/lib/openapi/spec/strategy-schema.d.ts +4 -3
  416. package/dist/lib/openapi/spec/strategy-schema.js +4 -3
  417. package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
  418. package/dist/lib/openapi/spec/strategy-schema.test.js +5 -0
  419. package/dist/lib/openapi/spec/strategy-schema.test.js.map +1 -1
  420. package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +54 -0
  421. package/dist/lib/openapi/spec/strategy-variant-schema.js +16 -0
  422. package/dist/lib/openapi/spec/strategy-variant-schema.js.map +1 -0
  423. package/dist/lib/openapi/spec/tag-type-schema.d.ts +7 -0
  424. package/dist/lib/openapi/spec/tag-type-schema.js +7 -0
  425. package/dist/lib/openapi/spec/tag-type-schema.js.map +1 -1
  426. package/dist/lib/openapi/spec/tag-types-schema.d.ts +11 -0
  427. package/dist/lib/openapi/spec/tag-types-schema.js +4 -0
  428. package/dist/lib/openapi/spec/tag-types-schema.js.map +1 -1
  429. package/dist/lib/openapi/spec/tag-with-version-schema.d.ts +3 -0
  430. package/dist/lib/openapi/spec/tag-with-version-schema.js +3 -0
  431. package/dist/lib/openapi/spec/tag-with-version-schema.js.map +1 -1
  432. package/dist/lib/openapi/spec/telemetry-settings-schema.d.ts +22 -0
  433. package/dist/lib/openapi/spec/telemetry-settings-schema.js +24 -0
  434. package/dist/lib/openapi/spec/telemetry-settings-schema.js.map +1 -0
  435. package/dist/lib/openapi/spec/token-user-schema.d.ts +23 -2
  436. package/dist/lib/openapi/spec/token-user-schema.js +12 -1
  437. package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
  438. package/dist/lib/openapi/spec/ui-config-schema.d.ts +77 -1
  439. package/dist/lib/openapi/spec/ui-config-schema.js +53 -0
  440. package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
  441. package/dist/lib/openapi/spec/update-api-token-schema.d.ts +3 -0
  442. package/dist/lib/openapi/spec/update-api-token-schema.js +3 -0
  443. package/dist/lib/openapi/spec/update-api-token-schema.js.map +1 -1
  444. package/dist/lib/openapi/spec/update-feature-schema.d.ts +11 -14
  445. package/dist/lib/openapi/spec/update-feature-schema.js +11 -14
  446. package/dist/lib/openapi/spec/update-feature-schema.js.map +1 -1
  447. package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +5 -0
  448. package/dist/lib/openapi/spec/update-feature-strategy-schema.js +4 -0
  449. package/dist/lib/openapi/spec/update-feature-strategy-schema.js.map +1 -1
  450. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.d.ts +19 -0
  451. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js +21 -0
  452. package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js.map +1 -0
  453. package/dist/lib/openapi/spec/update-strategy-schema.d.ts +47 -0
  454. package/dist/lib/openapi/spec/update-strategy-schema.js +55 -0
  455. package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
  456. package/dist/lib/openapi/spec/update-tag-type-schema.d.ts +5 -0
  457. package/dist/lib/openapi/spec/update-tag-type-schema.js +5 -0
  458. package/dist/lib/openapi/spec/update-tag-type-schema.js.map +1 -1
  459. package/dist/lib/openapi/spec/update-user-schema.d.ts +15 -1
  460. package/dist/lib/openapi/spec/update-user-schema.js +18 -1
  461. package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
  462. package/dist/lib/openapi/spec/upsert-context-field-schema.d.ts +5 -0
  463. package/dist/lib/openapi/spec/user-schema.d.ts +41 -3
  464. package/dist/lib/openapi/spec/user-schema.js +41 -3
  465. package/dist/lib/openapi/spec/user-schema.js.map +1 -1
  466. package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +194 -15
  467. package/dist/lib/openapi/spec/users-schema.d.ts +55 -4
  468. package/dist/lib/openapi/spec/users-schema.js +3 -0
  469. package/dist/lib/openapi/spec/users-schema.js.map +1 -1
  470. package/dist/lib/openapi/spec/users-search-schema.d.ts +41 -3
  471. package/dist/lib/openapi/spec/validate-feature-schema.d.ts +16 -0
  472. package/dist/lib/openapi/spec/validate-feature-schema.js +18 -0
  473. package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -0
  474. package/dist/lib/openapi/spec/validate-password-schema.d.ts +3 -0
  475. package/dist/lib/openapi/spec/validate-password-schema.js +3 -0
  476. package/dist/lib/openapi/spec/validate-password-schema.js.map +1 -1
  477. package/dist/lib/openapi/spec/validate-tag-type-schema.d.ts +10 -0
  478. package/dist/lib/openapi/spec/validate-tag-type-schema.js +3 -0
  479. package/dist/lib/openapi/spec/validate-tag-type-schema.js.map +1 -1
  480. package/dist/lib/openapi/spec/variant-flag-schema.d.ts +11 -0
  481. package/dist/lib/openapi/spec/variant-flag-schema.js +11 -0
  482. package/dist/lib/openapi/spec/variant-flag-schema.js.map +1 -1
  483. package/dist/lib/openapi/spec/variant-schema.d.ts +7 -2
  484. package/dist/lib/openapi/spec/variant-schema.js +7 -2
  485. package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
  486. package/dist/lib/openapi/spec/variants-schema.d.ts +7 -2
  487. package/dist/lib/openapi/spec/version-schema.d.ts +16 -1
  488. package/dist/lib/openapi/spec/version-schema.js +16 -1
  489. package/dist/lib/openapi/spec/version-schema.js.map +1 -1
  490. package/dist/lib/openapi/util/openapi-tags.d.ts +14 -2
  491. package/dist/lib/openapi/util/openapi-tags.js +9 -1
  492. package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
  493. package/dist/lib/openapi/util/standard-responses.d.ts +1 -1
  494. package/dist/lib/openapi/util/standard-responses.js +1 -1
  495. package/dist/lib/openapi/util/standard-responses.js.map +1 -1
  496. package/dist/lib/openapi/validate.js +1 -1
  497. package/dist/lib/openapi/validate.js.map +1 -1
  498. package/dist/lib/routes/admin-api/api-token.js +12 -0
  499. package/dist/lib/routes/admin-api/api-token.js.map +1 -1
  500. package/dist/lib/routes/admin-api/archive.d.ts +0 -1
  501. package/dist/lib/routes/admin-api/archive.js +20 -5
  502. package/dist/lib/routes/admin-api/archive.js.map +1 -1
  503. package/dist/lib/routes/admin-api/config.js +4 -0
  504. package/dist/lib/routes/admin-api/config.js.map +1 -1
  505. package/dist/lib/routes/admin-api/constraints.d.ts +2 -2
  506. package/dist/lib/routes/admin-api/constraints.js +5 -2
  507. package/dist/lib/routes/admin-api/constraints.js.map +1 -1
  508. package/dist/lib/routes/admin-api/context.d.ts +2 -1
  509. package/dist/lib/routes/admin-api/context.js +16 -4
  510. package/dist/lib/routes/admin-api/context.js.map +1 -1
  511. package/dist/lib/routes/admin-api/event.js +6 -3
  512. package/dist/lib/routes/admin-api/event.js.map +1 -1
  513. package/dist/lib/routes/admin-api/favorites.js +24 -4
  514. package/dist/lib/routes/admin-api/favorites.js.map +1 -1
  515. package/dist/lib/routes/admin-api/feature-type.d.ts +6 -0
  516. package/dist/lib/routes/admin-api/feature-type.js +37 -1
  517. package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
  518. package/dist/lib/routes/admin-api/feature.d.ts +2 -3
  519. package/dist/lib/routes/admin-api/feature.js +14 -3
  520. package/dist/lib/routes/admin-api/feature.js.map +1 -1
  521. package/dist/lib/routes/admin-api/index.js +2 -0
  522. package/dist/lib/routes/admin-api/index.js.map +1 -1
  523. package/dist/lib/routes/admin-api/project/project-archive.js +13 -4
  524. package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
  525. package/dist/lib/routes/admin-api/project/project-features.d.ts +1 -1
  526. package/dist/lib/routes/admin-api/project/project-features.js +116 -27
  527. package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
  528. package/dist/lib/routes/admin-api/project/variants.js +26 -16
  529. package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
  530. package/dist/lib/routes/admin-api/strategy.d.ts +6 -3
  531. package/dist/lib/routes/admin-api/strategy.js +40 -12
  532. package/dist/lib/routes/admin-api/strategy.js.map +1 -1
  533. package/dist/lib/routes/admin-api/strategy.test.js +5 -5
  534. package/dist/lib/routes/admin-api/strategy.test.js.map +1 -1
  535. package/dist/lib/routes/admin-api/tag-type.js +21 -1
  536. package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
  537. package/dist/lib/routes/admin-api/tag.js +17 -1
  538. package/dist/lib/routes/admin-api/tag.js.map +1 -1
  539. package/dist/lib/routes/admin-api/telemetry.d.ts +14 -0
  540. package/dist/lib/routes/admin-api/telemetry.js +41 -0
  541. package/dist/lib/routes/admin-api/telemetry.js.map +1 -0
  542. package/dist/lib/routes/admin-api/user/user.js +20 -4
  543. package/dist/lib/routes/admin-api/user/user.js.map +1 -1
  544. package/dist/lib/routes/admin-api/user-admin.d.ts +3 -2
  545. package/dist/lib/routes/admin-api/user-admin.js +88 -14
  546. package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
  547. package/dist/lib/routes/admin-api/user-feedback.js +17 -7
  548. package/dist/lib/routes/admin-api/user-feedback.js.map +1 -1
  549. package/dist/lib/routes/admin-api/user-splash.js +9 -3
  550. package/dist/lib/routes/admin-api/user-splash.js.map +1 -1
  551. package/dist/lib/routes/auth/reset-password-controller.js +24 -4
  552. package/dist/lib/routes/auth/reset-password-controller.js.map +1 -1
  553. package/dist/lib/routes/auth/simple-password-provider.js +4 -0
  554. package/dist/lib/routes/auth/simple-password-provider.js.map +1 -1
  555. package/dist/lib/routes/client-api/feature.js +1 -1
  556. package/dist/lib/routes/client-api/feature.js.map +1 -1
  557. package/dist/lib/routes/client-api/feature.test.js +8 -3
  558. package/dist/lib/routes/client-api/feature.test.js.map +1 -1
  559. package/dist/lib/routes/client-api/metrics.js +3 -3
  560. package/dist/lib/routes/client-api/metrics.js.map +1 -1
  561. package/dist/lib/routes/controller.js +2 -2
  562. package/dist/lib/routes/controller.js.map +1 -1
  563. package/dist/lib/routes/index.js +1 -3
  564. package/dist/lib/routes/index.js.map +1 -1
  565. package/dist/lib/routes/proxy-api/index.d.ts +1 -1
  566. package/dist/lib/routes/proxy-api/index.js +27 -4
  567. package/dist/lib/routes/proxy-api/index.js.map +1 -1
  568. package/dist/lib/segments/segment-service-interface.d.ts +2 -1
  569. package/dist/lib/server-impl.js +1 -0
  570. package/dist/lib/server-impl.js.map +1 -1
  571. package/dist/lib/services/addon-service.d.ts +2 -1
  572. package/dist/lib/services/addon-service.js +6 -2
  573. package/dist/lib/services/addon-service.js.map +1 -1
  574. package/dist/lib/services/client-metrics/metrics-service-v2.js +24 -13
  575. package/dist/lib/services/client-metrics/metrics-service-v2.js.map +1 -1
  576. package/dist/lib/services/event-announcer-service.d.ts +8 -0
  577. package/dist/lib/services/event-announcer-service.js +13 -0
  578. package/dist/lib/services/event-announcer-service.js.map +1 -0
  579. package/dist/lib/services/feature-service-potentially-stale.test.d.ts +1 -0
  580. package/dist/lib/services/feature-service-potentially-stale.test.js +44 -0
  581. package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -0
  582. package/dist/lib/services/feature-toggle-service.d.ts +5 -2
  583. package/dist/lib/services/feature-toggle-service.js +95 -16
  584. package/dist/lib/services/feature-toggle-service.js.map +1 -1
  585. package/dist/lib/services/feature-type-service.d.ts +1 -0
  586. package/dist/lib/services/feature-type-service.js +14 -0
  587. package/dist/lib/services/feature-type-service.js.map +1 -1
  588. package/dist/lib/services/group-service.d.ts +4 -4
  589. package/dist/lib/services/group-service.js.map +1 -1
  590. package/dist/lib/services/index.js +9 -1
  591. package/dist/lib/services/index.js.map +1 -1
  592. package/dist/lib/services/project-schema.js +1 -0
  593. package/dist/lib/services/project-schema.js.map +1 -1
  594. package/dist/lib/services/project-service.d.ts +2 -4
  595. package/dist/lib/services/project-service.js +4 -9
  596. package/dist/lib/services/project-service.js.map +1 -1
  597. package/dist/lib/services/segment-service.d.ts +2 -1
  598. package/dist/lib/services/segment-service.js +3 -0
  599. package/dist/lib/services/segment-service.js.map +1 -1
  600. package/dist/lib/services/tag-type-service.d.ts +2 -2
  601. package/dist/lib/services/tag-type-service.js +5 -3
  602. package/dist/lib/services/tag-type-service.js.map +1 -1
  603. package/dist/lib/services/user-service.js +13 -7
  604. package/dist/lib/services/user-service.js.map +1 -1
  605. package/dist/lib/services/version-service.d.ts +1 -2
  606. package/dist/lib/services/version-service.js +2 -4
  607. package/dist/lib/services/version-service.js.map +1 -1
  608. package/dist/lib/services/version-service.test.js +0 -57
  609. package/dist/lib/services/version-service.test.js.map +1 -1
  610. package/dist/lib/types/authentication-required.d.ts +1 -0
  611. package/dist/lib/types/authentication-required.js +1 -0
  612. package/dist/lib/types/authentication-required.js.map +1 -1
  613. package/dist/lib/types/events.d.ts +138 -99
  614. package/dist/lib/types/events.js +136 -3
  615. package/dist/lib/types/events.js.map +1 -1
  616. package/dist/lib/types/experimental.d.ts +1 -1
  617. package/dist/lib/types/experimental.js +5 -5
  618. package/dist/lib/types/experimental.js.map +1 -1
  619. package/dist/lib/types/group.d.ts +7 -0
  620. package/dist/lib/types/group.js.map +1 -1
  621. package/dist/lib/types/model.d.ts +24 -2
  622. package/dist/lib/types/model.js.map +1 -1
  623. package/dist/lib/types/services.d.ts +3 -0
  624. package/dist/lib/types/stores/event-store.d.ts +1 -0
  625. package/dist/lib/types/stores/feature-toggle-client-store.d.ts +2 -1
  626. package/dist/lib/types/stores/feature-toggle-store.d.ts +6 -0
  627. package/dist/lib/types/stores/feature-type-store.d.ts +1 -0
  628. package/dist/lib/types/stores/group-store.d.ts +4 -4
  629. package/dist/lib/types/stores/project-store.d.ts +3 -6
  630. package/dist/lib/types/stores/segment-store.d.ts +2 -1
  631. package/dist/lib/util/is-email.d.ts +7 -0
  632. package/dist/lib/util/is-email.js +9 -0
  633. package/dist/lib/util/is-email.js.map +1 -1
  634. package/dist/lib/util/load-index-html.js +1 -1
  635. package/dist/lib/util/load-index-html.js.map +1 -1
  636. package/dist/migrations/20230630080126-delete-deprecated-permissions.d.ts +2 -0
  637. package/dist/migrations/20230630080126-delete-deprecated-permissions.js +15 -0
  638. package/dist/migrations/20230630080126-delete-deprecated-permissions.js.map +1 -0
  639. package/dist/migrations/20230706123907-events-announced-column.d.ts +2 -0
  640. package/dist/migrations/20230706123907-events-announced-column.js +15 -0
  641. package/dist/migrations/20230706123907-events-announced-column.js.map +1 -0
  642. package/dist/migrations/20230711094214-add-potentially-stale-flag.d.ts +2 -0
  643. package/dist/migrations/20230711094214-add-potentially-stale-flag.js +18 -0
  644. package/dist/migrations/20230711094214-add-potentially-stale-flag.js.map +1 -0
  645. package/dist/migrations/20230711163311-project-feature-limit.d.ts +2 -0
  646. package/dist/migrations/20230711163311-project-feature-limit.js +13 -0
  647. package/dist/migrations/20230711163311-project-feature-limit.js.map +1 -0
  648. package/dist/migrations/20230712091834-strategy-variants.d.ts +2 -0
  649. package/dist/migrations/20230712091834-strategy-variants.js +81 -0
  650. package/dist/migrations/20230712091834-strategy-variants.js.map +1 -0
  651. package/dist/server-dev.js +5 -3
  652. package/dist/server-dev.js.map +1 -1
  653. package/dist/test/arbitraries.test.js +1 -1
  654. package/dist/test/arbitraries.test.js.map +1 -1
  655. package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
  656. package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
  657. package/dist/test/e2e/api/admin/api-token.e2e.test.js +7 -1
  658. package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
  659. package/dist/test/e2e/api/admin/archive.test.js +7 -1
  660. package/dist/test/e2e/api/admin/archive.test.js.map +1 -1
  661. package/dist/test/e2e/api/admin/config.e2e.test.js +7 -1
  662. package/dist/test/e2e/api/admin/config.e2e.test.js.map +1 -1
  663. package/dist/test/e2e/api/admin/favorites.e2e.test.js +7 -1
  664. package/dist/test/e2e/api/admin/favorites.e2e.test.js.map +1 -1
  665. package/dist/test/e2e/api/admin/feature-type.test.js +41 -1
  666. package/dist/test/e2e/api/admin/feature-type.test.js.map +1 -1
  667. package/dist/test/e2e/api/admin/feedback.e2e.test.js +7 -1
  668. package/dist/test/e2e/api/admin/feedback.e2e.test.js.map +1 -1
  669. package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
  670. package/dist/test/e2e/api/admin/project/features.e2e.test.js +152 -0
  671. package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
  672. package/dist/test/e2e/api/admin/project/variants.e2e.test.js +28 -12
  673. package/dist/test/e2e/api/admin/project/variants.e2e.test.js.map +1 -1
  674. package/dist/test/e2e/api/admin/splash.e2e.test.js +7 -1
  675. package/dist/test/e2e/api/admin/splash.e2e.test.js.map +1 -1
  676. package/dist/test/e2e/api/admin/state.e2e.test.js +6 -6
  677. package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
  678. package/dist/test/e2e/api/admin/user-admin.e2e.test.js +7 -1
  679. package/dist/test/e2e/api/admin/user-admin.e2e.test.js.map +1 -1
  680. package/dist/test/e2e/api/openapi/openapi.e2e.test.js +9 -6
  681. package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
  682. package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
  683. package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
  684. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +26 -4
  685. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
  686. package/dist/test/e2e/services/group-service.e2e.test.js +16 -0
  687. package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
  688. package/dist/test/e2e/services/user-service.e2e.test.js +2 -2
  689. package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
  690. package/dist/test/e2e/stores/event-store.e2e.test.js +3 -2
  691. package/dist/test/e2e/stores/event-store.e2e.test.js.map +1 -1
  692. package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js +163 -0
  693. package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js.map +1 -1
  694. package/dist/test/e2e/stores/feature-type-store.e2e.test.js +13 -0
  695. package/dist/test/e2e/stores/feature-type-store.e2e.test.js.map +1 -1
  696. package/dist/test/fixtures/fake-event-store.d.ts +1 -0
  697. package/dist/test/fixtures/fake-event-store.js +3 -0
  698. package/dist/test/fixtures/fake-event-store.js.map +1 -1
  699. package/dist/test/fixtures/fake-feature-toggle-client-store.d.ts +1 -0
  700. package/dist/test/fixtures/fake-feature-toggle-client-store.js +10 -0
  701. package/dist/test/fixtures/fake-feature-toggle-client-store.js.map +1 -1
  702. package/dist/test/fixtures/fake-feature-toggle-store.d.ts +6 -0
  703. package/dist/test/fixtures/fake-feature-toggle-store.js +6 -0
  704. package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
  705. package/dist/test/fixtures/fake-feature-type-store.d.ts +1 -0
  706. package/dist/test/fixtures/fake-feature-type-store.js +8 -0
  707. package/dist/test/fixtures/fake-feature-type-store.js.map +1 -1
  708. package/dist/test/fixtures/fake-group-store.d.ts +4 -4
  709. package/dist/test/fixtures/fake-group-store.js.map +1 -1
  710. package/dist/test/fixtures/fake-project-store.d.ts +3 -4
  711. package/dist/test/fixtures/fake-project-store.js +4 -13
  712. package/dist/test/fixtures/fake-project-store.js.map +1 -1
  713. package/dist/test/fixtures/fake-segment-store.d.ts +2 -1
  714. package/dist/test/fixtures/fake-segment-store.js +3 -0
  715. package/dist/test/fixtures/fake-segment-store.js.map +1 -1
  716. package/frontend/build/index.html +2 -2
  717. package/frontend/build/static/AdvancedPlayground-4c9d02ea.js +13 -0
  718. package/frontend/build/static/CreateProject-16b35d57.js +4 -0
  719. package/frontend/build/static/{Error-2c3030da.js → Error-50364f10.js} +1 -1
  720. package/frontend/build/static/{FeatureArchiveDialog-a529848e.js → FeatureArchiveDialog-fda1aa0c.js} +3 -3
  721. package/frontend/build/static/{FeatureMetricsChart-e8ede36a.js → FeatureMetricsChart-839cdf1e.js} +2 -2
  722. package/frontend/build/static/FeatureViewLazyExport-47bb7f13.js +7 -0
  723. package/frontend/build/static/LazyAdminExport-8ef0ca21.js +37 -0
  724. package/frontend/build/static/LazyProjectExport-49541c75.js +16 -0
  725. package/frontend/build/static/{NetworkOverview-e6f0a590.js → NetworkOverview-711050f3.js} +8 -8
  726. package/frontend/build/static/{NetworkTraffic-d1efc782.js → NetworkTraffic-e587c2c7.js} +1 -1
  727. package/frontend/build/static/RoleCell-9a62b4ed.js +1 -0
  728. package/frontend/build/static/StrategyItemContainer-4098c8ef.js +1 -0
  729. package/frontend/build/static/{chartjs-adapter-date-fns.esm-0d05c046.js → chartjs-adapter-date-fns.esm-d57aaddd.js} +1 -1
  730. package/frontend/build/static/demo-qr-c2ce85bd.png +0 -0
  731. package/frontend/build/static/{flowchart-elk-definition-170a3958-cc4ae597.js → flowchart-elk-definition-170a3958-4dece62b.js} +2 -2
  732. package/frontend/build/static/{index-a563ae6f.js → index-1c8194e0.js} +1 -1
  733. package/frontend/build/static/index-770afaee.css +1 -0
  734. package/frontend/build/static/{index-ade82986.js → index-9bb67f88.js} +1 -1
  735. package/frontend/build/static/index-9c528324.js +453 -0
  736. package/frontend/build/static/{is_dark-49e2e68f.js → is_dark-ba77f0b9.js} +1 -1
  737. package/frontend/build/static/{mindmap-definition-44684416-c6d3a96e.js → mindmap-definition-44684416-a4071c9f.js} +3 -3
  738. package/frontend/build/static/{timeline-definition-8e5a9bc6-920370f9.js → timeline-definition-8e5a9bc6-c996bf40.js} +2 -2
  739. package/frontend/build/static/{unknownify-30fed5e1.js → unknownify-db48ebae.js} +1 -1
  740. package/frontend/package.json +16 -16
  741. package/package.json +15 -13
  742. package/dist/lib/error/no-access-error.js.map +0 -1
  743. package/dist/lib/openapi/endpoint-descriptions.d.ts +0 -20
  744. package/dist/lib/openapi/endpoint-descriptions.js +0 -24
  745. package/dist/lib/openapi/endpoint-descriptions.js.map +0 -1
  746. package/dist/lib/openapi/spec/feedback-schema.d.ts +0 -24
  747. package/dist/lib/openapi/spec/feedback-schema.js +0 -26
  748. package/dist/lib/openapi/spec/feedback-schema.js.map +0 -1
  749. package/dist/lib/openapi/spec/splash-schema.d.ts +0 -20
  750. package/dist/lib/openapi/spec/splash-schema.js +0 -22
  751. package/dist/lib/openapi/spec/splash-schema.js.map +0 -1
  752. package/dist/lib/openapi/spec/upsert-strategy-schema.d.ts +0 -39
  753. package/dist/lib/openapi/spec/upsert-strategy-schema.js +0 -41
  754. package/dist/lib/openapi/spec/upsert-strategy-schema.js.map +0 -1
  755. package/frontend/build/static/AdvancedPlayground-bc3db7fd.js +0 -1
  756. package/frontend/build/static/CreateProject-4013b189.js +0 -4
  757. package/frontend/build/static/FeatureViewLazyExport-773303d1.js +0 -7
  758. package/frontend/build/static/LazyAdminExport-a9aeca56.js +0 -37
  759. package/frontend/build/static/LazyProjectExport-7c849a96.js +0 -13
  760. package/frontend/build/static/Playground-4fd4e26e.js +0 -1
  761. package/frontend/build/static/PlaygroundGuidancePopper-c761bfb7.js +0 -13
  762. package/frontend/build/static/RoleCell-cbb192fa.js +0 -1
  763. package/frontend/build/static/StrategyItemContainer-128fc163.js +0 -1
  764. package/frontend/build/static/demo-qr-1bebe2c9.png +0 -0
  765. package/frontend/build/static/index-66c635eb.css +0 -1
  766. package/frontend/build/static/index-bd571775.js +0 -450
  767. package/frontend/build/static/stringify-ec884b6d.js +0 -1
@@ -3,39 +3,53 @@ export declare const contextFieldSchema: {
3
3
  readonly $id: "#/components/schemas/contextFieldSchema";
4
4
  readonly type: "object";
5
5
  readonly additionalProperties: false;
6
+ readonly description: "A representation of a [context field](https://docs.getunleash.io/reference/unleash-context).";
6
7
  readonly required: readonly ["name"];
7
8
  readonly properties: {
8
9
  readonly name: {
10
+ readonly description: "The name of the context field";
9
11
  readonly type: "string";
12
+ readonly example: "userId";
10
13
  };
11
14
  readonly description: {
15
+ readonly description: "The description of the context field.";
12
16
  readonly type: "string";
13
17
  readonly nullable: true;
18
+ readonly example: "Used to uniquely identify users";
14
19
  };
15
20
  readonly stickiness: {
21
+ readonly description: "Does this context field support being used for [stickiness](https://docs.getunleash.io/reference/stickiness) calculations";
16
22
  readonly type: "boolean";
23
+ readonly example: true;
17
24
  };
18
25
  readonly sortOrder: {
19
- readonly type: "number";
26
+ readonly description: "Used when sorting a list of context fields. Is also used as a tiebreaker if a list of context fields is sorted alphabetically.";
27
+ readonly type: "integer";
28
+ readonly example: 900;
20
29
  };
21
30
  readonly createdAt: {
31
+ readonly description: "When this context field was created";
22
32
  readonly type: "string";
23
33
  readonly format: "date-time";
24
34
  readonly nullable: true;
35
+ readonly example: "2023-06-29T10:19:00.000Z";
25
36
  };
26
37
  readonly usedInFeatures: {
27
- readonly type: "number";
38
+ readonly type: "integer";
28
39
  readonly description: "Number of projects where this context field is used in";
29
40
  readonly example: 3;
30
41
  readonly nullable: true;
42
+ readonly minimum: 0;
31
43
  };
32
44
  readonly usedInProjects: {
33
- readonly type: "number";
45
+ readonly type: "integer";
34
46
  readonly description: "Number of projects where this context field is used in";
35
47
  readonly example: 2;
36
48
  readonly nullable: true;
49
+ readonly minimum: 0;
37
50
  };
38
51
  readonly legalValues: {
52
+ readonly description: "Allowed values for this context field schema. Can be used to narrow down accepted input";
39
53
  readonly type: "array";
40
54
  readonly items: {
41
55
  readonly $ref: "#/components/schemas/legalValueSchema";
@@ -48,13 +62,18 @@ export declare const contextFieldSchema: {
48
62
  readonly $id: "#/components/schemas/legalValueSchema";
49
63
  readonly type: "object";
50
64
  readonly additionalProperties: false;
65
+ readonly description: "Describes a legal value. Typically used to limit possible values for contextFields or strategy properties";
51
66
  readonly required: readonly ["value"];
52
67
  readonly properties: {
53
68
  readonly value: {
69
+ readonly description: "The valid value";
54
70
  readonly type: "string";
71
+ readonly example: "#c154c1";
55
72
  };
56
73
  readonly description: {
74
+ readonly description: "Describes this specific legal value";
57
75
  readonly type: "string";
76
+ readonly example: "Deep fuchsia";
58
77
  };
59
78
  };
60
79
  readonly components: {};
@@ -6,39 +6,53 @@ exports.contextFieldSchema = {
6
6
  $id: '#/components/schemas/contextFieldSchema',
7
7
  type: 'object',
8
8
  additionalProperties: false,
9
+ description: 'A representation of a [context field](https://docs.getunleash.io/reference/unleash-context).',
9
10
  required: ['name'],
10
11
  properties: {
11
12
  name: {
13
+ description: 'The name of the context field',
12
14
  type: 'string',
15
+ example: 'userId',
13
16
  },
14
17
  description: {
18
+ description: 'The description of the context field.',
15
19
  type: 'string',
16
20
  nullable: true,
21
+ example: 'Used to uniquely identify users',
17
22
  },
18
23
  stickiness: {
24
+ description: 'Does this context field support being used for [stickiness](https://docs.getunleash.io/reference/stickiness) calculations',
19
25
  type: 'boolean',
26
+ example: true,
20
27
  },
21
28
  sortOrder: {
22
- type: 'number',
29
+ description: 'Used when sorting a list of context fields. Is also used as a tiebreaker if a list of context fields is sorted alphabetically.',
30
+ type: 'integer',
31
+ example: 900,
23
32
  },
24
33
  createdAt: {
34
+ description: 'When this context field was created',
25
35
  type: 'string',
26
36
  format: 'date-time',
27
37
  nullable: true,
38
+ example: '2023-06-29T10:19:00.000Z',
28
39
  },
29
40
  usedInFeatures: {
30
- type: 'number',
41
+ type: 'integer',
31
42
  description: 'Number of projects where this context field is used in',
32
43
  example: 3,
33
44
  nullable: true,
45
+ minimum: 0,
34
46
  },
35
47
  usedInProjects: {
36
- type: 'number',
48
+ type: 'integer',
37
49
  description: 'Number of projects where this context field is used in',
38
50
  example: 2,
39
51
  nullable: true,
52
+ minimum: 0,
40
53
  },
41
54
  legalValues: {
55
+ description: 'Allowed values for this context field schema. Can be used to narrow down accepted input',
42
56
  type: 'array',
43
57
  items: {
44
58
  $ref: '#/components/schemas/legalValueSchema',
@@ -1 +1 @@
1
- {"version":3,"file":"context-field-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-field-schema.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AAE3C,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;SAClB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;SACjB;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,wDAAwD;YAC5D,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,wDAAwD;YAC5D,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;SACjB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,qCAAgB;SACnB;KACJ;CACK,CAAC"}
1
+ {"version":3,"file":"context-field-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-field-schema.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AAE3C,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EACP,8FAA8F;IAClG,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,WAAW,EAAE,+BAA+B;YAC5C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;SACpB;QACD,WAAW,EAAE;YACT,WAAW,EAAE,uCAAuC;YACpD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,iCAAiC;SAC7C;QACD,UAAU,EAAE;YACR,WAAW,EACP,2HAA2H;YAC/H,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SAChB;QACD,SAAS,EAAE;YACP,WAAW,EACP,gIAAgI;YACpI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,GAAG;SACf;QACD,SAAS,EAAE;YACP,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,0BAA0B;SACtC;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EACP,wDAAwD;YAC5D,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;SACb;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,WAAW,EACP,wDAAwD;YAC5D,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;SACb;QACD,WAAW,EAAE;YACT,WAAW,EACP,yFAAyF;YAC7F,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,qCAAgB;SACnB;KACJ;CACK,CAAC"}
@@ -2,7 +2,7 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const contextFieldStrategiesSchema: {
3
3
  readonly $id: "#/components/schemas/segmentStrategiesSchema";
4
4
  readonly type: "object";
5
- readonly description: "A wrapper object containing all for strategies using a specific context field";
5
+ readonly description: "A wrapper object containing all strategies that use a specific context field";
6
6
  readonly required: readonly ["strategies"];
7
7
  readonly properties: {
8
8
  readonly strategies: {
@@ -4,7 +4,7 @@ exports.contextFieldStrategiesSchema = void 0;
4
4
  exports.contextFieldStrategiesSchema = {
5
5
  $id: '#/components/schemas/segmentStrategiesSchema',
6
6
  type: 'object',
7
- description: 'A wrapper object containing all for strategies using a specific context field',
7
+ description: 'A wrapper object containing all strategies that use a specific context field',
8
8
  required: ['strategies'],
9
9
  properties: {
10
10
  strategies: {
@@ -1 +1 @@
1
- {"version":3,"file":"context-field-strategies-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-field-strategies-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG;IACxC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,+EAA+E;IACnF,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,UAAU,EAAE;QACR,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4CAA4C;YACzD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE;oBACN,IAAI;oBACJ,aAAa;oBACb,WAAW;oBACX,aAAa;oBACb,cAAc;iBACjB;gBACD,UAAU,EAAE;oBACR,EAAE,EAAE;wBACA,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,sCAAsC;wBAC/C,WAAW,EAAE,yBAAyB;qBACzC;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,cAAc;wBACvB,WAAW,EACP,sDAAsD;qBAC7D;oBACD,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,mDAAmD;qBAC1D;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,sDAAsD;qBAC7D;oBACD,YAAY,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2BAA2B;qBAC3C;iBACJ;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"context-field-strategies-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-field-strategies-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG;IACxC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,8EAA8E;IAClF,QAAQ,EAAE,CAAC,YAAY,CAAC;IACxB,UAAU,EAAE;QACR,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4CAA4C;YACzD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE;oBACN,IAAI;oBACJ,aAAa;oBACb,WAAW;oBACX,aAAa;oBACb,cAAc;iBACjB;gBACD,UAAU,EAAE;oBACR,EAAE,EAAE;wBACA,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,sCAAsC;wBAC/C,WAAW,EAAE,yBAAyB;qBACzC;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,cAAc;wBACvB,WAAW,EACP,sDAAsD;qBAC7D;oBACD,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,mDAAmD;qBAC1D;oBACD,WAAW,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EACP,sDAAsD;qBAC7D;oBACD,YAAY,EAAE;wBACV,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2BAA2B;qBAC3C;iBACJ;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -2,6 +2,7 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const contextFieldsSchema: {
3
3
  readonly $id: "#/components/schemas/contextFieldsSchema";
4
4
  readonly type: "array";
5
+ readonly description: "A list of context fields";
5
6
  readonly items: {
6
7
  readonly $ref: "#/components/schemas/contextFieldSchema";
7
8
  };
@@ -11,39 +12,53 @@ export declare const contextFieldsSchema: {
11
12
  readonly $id: "#/components/schemas/contextFieldSchema";
12
13
  readonly type: "object";
13
14
  readonly additionalProperties: false;
15
+ readonly description: "A representation of a [context field](https://docs.getunleash.io/reference/unleash-context).";
14
16
  readonly required: readonly ["name"];
15
17
  readonly properties: {
16
18
  readonly name: {
19
+ readonly description: "The name of the context field";
17
20
  readonly type: "string";
21
+ readonly example: "userId";
18
22
  };
19
23
  readonly description: {
24
+ readonly description: "The description of the context field.";
20
25
  readonly type: "string";
21
26
  readonly nullable: true;
27
+ readonly example: "Used to uniquely identify users";
22
28
  };
23
29
  readonly stickiness: {
30
+ readonly description: "Does this context field support being used for [stickiness](https://docs.getunleash.io/reference/stickiness) calculations";
24
31
  readonly type: "boolean";
32
+ readonly example: true;
25
33
  };
26
34
  readonly sortOrder: {
27
- readonly type: "number";
35
+ readonly description: "Used when sorting a list of context fields. Is also used as a tiebreaker if a list of context fields is sorted alphabetically.";
36
+ readonly type: "integer";
37
+ readonly example: 900;
28
38
  };
29
39
  readonly createdAt: {
40
+ readonly description: "When this context field was created";
30
41
  readonly type: "string";
31
42
  readonly format: "date-time";
32
43
  readonly nullable: true;
44
+ readonly example: "2023-06-29T10:19:00.000Z";
33
45
  };
34
46
  readonly usedInFeatures: {
35
- readonly type: "number";
47
+ readonly type: "integer";
36
48
  readonly description: "Number of projects where this context field is used in";
37
49
  readonly example: 3;
38
50
  readonly nullable: true;
51
+ readonly minimum: 0;
39
52
  };
40
53
  readonly usedInProjects: {
41
- readonly type: "number";
54
+ readonly type: "integer";
42
55
  readonly description: "Number of projects where this context field is used in";
43
56
  readonly example: 2;
44
57
  readonly nullable: true;
58
+ readonly minimum: 0;
45
59
  };
46
60
  readonly legalValues: {
61
+ readonly description: "Allowed values for this context field schema. Can be used to narrow down accepted input";
47
62
  readonly type: "array";
48
63
  readonly items: {
49
64
  readonly $ref: "#/components/schemas/legalValueSchema";
@@ -56,13 +71,18 @@ export declare const contextFieldsSchema: {
56
71
  readonly $id: "#/components/schemas/legalValueSchema";
57
72
  readonly type: "object";
58
73
  readonly additionalProperties: false;
74
+ readonly description: "Describes a legal value. Typically used to limit possible values for contextFields or strategy properties";
59
75
  readonly required: readonly ["value"];
60
76
  readonly properties: {
61
77
  readonly value: {
78
+ readonly description: "The valid value";
62
79
  readonly type: "string";
80
+ readonly example: "#c154c1";
63
81
  };
64
82
  readonly description: {
83
+ readonly description: "Describes this specific legal value";
65
84
  readonly type: "string";
85
+ readonly example: "Deep fuchsia";
66
86
  };
67
87
  };
68
88
  readonly components: {};
@@ -74,13 +94,18 @@ export declare const contextFieldsSchema: {
74
94
  readonly $id: "#/components/schemas/legalValueSchema";
75
95
  readonly type: "object";
76
96
  readonly additionalProperties: false;
97
+ readonly description: "Describes a legal value. Typically used to limit possible values for contextFields or strategy properties";
77
98
  readonly required: readonly ["value"];
78
99
  readonly properties: {
79
100
  readonly value: {
101
+ readonly description: "The valid value";
80
102
  readonly type: "string";
103
+ readonly example: "#c154c1";
81
104
  };
82
105
  readonly description: {
106
+ readonly description: "Describes this specific legal value";
83
107
  readonly type: "string";
108
+ readonly example: "Deep fuchsia";
84
109
  };
85
110
  };
86
111
  readonly components: {};
@@ -6,6 +6,7 @@ const legal_value_schema_1 = require("./legal-value-schema");
6
6
  exports.contextFieldsSchema = {
7
7
  $id: '#/components/schemas/contextFieldsSchema',
8
8
  type: 'array',
9
+ description: 'A list of context fields',
9
10
  items: {
10
11
  $ref: '#/components/schemas/contextFieldSchema',
11
12
  },
@@ -1 +1 @@
1
- {"version":3,"file":"context-fields-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-fields-schema.ts"],"names":[],"mappings":";;;AACA,iEAA4D;AAC5D,6DAAwD;AAE3C,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,yCAAyC;KAClD;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,kBAAkB,EAAlB,yCAAkB;YAClB,gBAAgB,EAAhB,qCAAgB;SACnB;KACJ;CACK,CAAC"}
1
+ {"version":3,"file":"context-fields-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/context-fields-schema.ts"],"names":[],"mappings":";;;AACA,iEAA4D;AAC5D,6DAAwD;AAE3C,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,0BAA0B;IACvC,KAAK,EAAE;QACH,IAAI,EAAE,yCAAyC;KAClD;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,kBAAkB,EAAlB,yCAAkB;YAClB,gBAAgB,EAAhB,qCAAgB;SACnB;KACJ;CACK,CAAC"}
@@ -2,47 +2,145 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const createApiTokenSchema: {
3
3
  readonly $id: "#/components/schemas/createApiTokenSchema";
4
4
  readonly type: "object";
5
- readonly required: readonly ["type"];
5
+ readonly description: "The data required to create an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).";
6
6
  readonly properties: {
7
- readonly secret: {
8
- readonly type: "string";
9
- };
10
- readonly type: {
11
- readonly type: "string";
12
- readonly description: `One of ${string}`;
13
- };
14
- readonly environment: {
15
- readonly type: "string";
16
- };
17
- readonly project: {
18
- readonly type: "string";
19
- };
20
- readonly projects: {
21
- readonly type: "array";
22
- readonly items: {
23
- readonly type: "string";
24
- };
25
- };
26
7
  readonly expiresAt: {
27
8
  readonly type: "string";
28
9
  readonly format: "date-time";
29
- readonly nullable: true;
10
+ readonly description: "The time when this token should expire.";
11
+ readonly example: "2023-07-04T11:26:24+02:00";
30
12
  };
31
13
  };
32
- readonly anyOf: readonly [{
33
- readonly properties: {
34
- readonly username: {
35
- readonly type: "string";
14
+ readonly oneOf: readonly [{
15
+ readonly allOf: readonly [{
16
+ readonly required: readonly ["type"];
17
+ readonly type: "object";
18
+ readonly properties: {
19
+ readonly type: {
20
+ readonly type: "string";
21
+ readonly pattern: "^[Aa][Dd][Mm][Ii][Nn]$";
22
+ readonly description: "An admin token. Must be the string \"admin\" (not case sensitive).";
23
+ readonly example: "admin";
24
+ };
36
25
  };
37
- };
38
- readonly required: readonly ["username"];
26
+ }, {
27
+ readonly type: "object";
28
+ readonly required: readonly ["tokenName"];
29
+ readonly properties: {
30
+ readonly tokenName: {
31
+ readonly type: "string";
32
+ readonly description: "The name of the token.";
33
+ readonly example: "token-64522";
34
+ };
35
+ };
36
+ }];
39
37
  }, {
40
- readonly properties: {
41
- readonly tokenName: {
42
- readonly type: "string";
38
+ readonly allOf: readonly [{
39
+ readonly required: readonly ["type"];
40
+ readonly type: "object";
41
+ readonly properties: {
42
+ readonly type: {
43
+ readonly type: "string";
44
+ readonly pattern: "^[Aa][Dd][Mm][Ii][Nn]$";
45
+ readonly description: "An admin token. Must be the string \"admin\" (not case sensitive).";
46
+ readonly example: "admin";
47
+ };
43
48
  };
44
- };
45
- readonly required: readonly ["tokenName"];
49
+ }, {
50
+ readonly type: "object";
51
+ readonly required: readonly ["username"];
52
+ readonly properties: {
53
+ readonly username: {
54
+ readonly deprecated: true;
55
+ readonly type: "string";
56
+ readonly description: "The name of the token. This property is deprecated. Use `tokenName` instead.";
57
+ readonly example: "token-64523";
58
+ };
59
+ };
60
+ }];
61
+ }, {
62
+ readonly allOf: readonly [{
63
+ readonly required: readonly ["type"];
64
+ readonly type: "object";
65
+ readonly properties: {
66
+ readonly type: {
67
+ readonly type: "string";
68
+ readonly pattern: "^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$";
69
+ readonly description: "A client or frontend token. Must be one of the strings \"client\" or \"frontend\" (not case sensitive).";
70
+ readonly example: "frontend";
71
+ };
72
+ readonly environment: {
73
+ readonly type: "string";
74
+ readonly description: "The environment that the token should be valid for. Defaults to \"default\"";
75
+ readonly example: "development";
76
+ };
77
+ readonly project: {
78
+ readonly type: "string";
79
+ readonly description: "The project that the token should be valid for. Defaults to \"*\" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other.";
80
+ readonly example: "project-851";
81
+ };
82
+ readonly projects: {
83
+ readonly type: "array";
84
+ readonly description: "A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other.";
85
+ readonly example: readonly ["project-851", "project-852"];
86
+ readonly items: {
87
+ readonly type: "string";
88
+ };
89
+ };
90
+ };
91
+ }, {
92
+ readonly type: "object";
93
+ readonly required: readonly ["tokenName"];
94
+ readonly properties: {
95
+ readonly tokenName: {
96
+ readonly type: "string";
97
+ readonly description: "The name of the token.";
98
+ readonly example: "token-64522";
99
+ };
100
+ };
101
+ }];
102
+ }, {
103
+ readonly allOf: readonly [{
104
+ readonly required: readonly ["type"];
105
+ readonly type: "object";
106
+ readonly properties: {
107
+ readonly type: {
108
+ readonly type: "string";
109
+ readonly pattern: "^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$";
110
+ readonly description: "A client or frontend token. Must be one of the strings \"client\" or \"frontend\" (not case sensitive).";
111
+ readonly example: "frontend";
112
+ };
113
+ readonly environment: {
114
+ readonly type: "string";
115
+ readonly description: "The environment that the token should be valid for. Defaults to \"default\"";
116
+ readonly example: "development";
117
+ };
118
+ readonly project: {
119
+ readonly type: "string";
120
+ readonly description: "The project that the token should be valid for. Defaults to \"*\" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other.";
121
+ readonly example: "project-851";
122
+ };
123
+ readonly projects: {
124
+ readonly type: "array";
125
+ readonly description: "A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other.";
126
+ readonly example: readonly ["project-851", "project-852"];
127
+ readonly items: {
128
+ readonly type: "string";
129
+ };
130
+ };
131
+ };
132
+ }, {
133
+ readonly type: "object";
134
+ readonly required: readonly ["username"];
135
+ readonly properties: {
136
+ readonly username: {
137
+ readonly deprecated: true;
138
+ readonly type: "string";
139
+ readonly description: "The name of the token. This property is deprecated. Use `tokenName` instead.";
140
+ readonly example: "token-64523";
141
+ };
142
+ };
143
+ }];
46
144
  }];
47
145
  readonly components: {};
48
146
  };
@@ -1,68 +1,104 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createApiTokenSchema = void 0;
4
- const api_token_1 = require("../../types/models/api-token");
5
- // TODO: (openapi) this schema isn't entirely correct: `project` and `projects`
6
- // are mutually exclusive.
7
- //
8
- // That is, when creating a token, you can provide either `project` _or_
9
- // `projects`, but *not* both.
10
- //
11
- // We should be able to annotate this using `oneOf` and `allOf`, but making
12
- // `oneOf` only valid for _either_ `project` _or_ `projects` is tricky.
13
- //
14
- // I've opened an issue to get some help (thought it was a bug initially).
15
- // There's more info available at:
16
- //
17
- // https://github.com/ajv-validator/ajv/issues/2096
18
- //
19
- // This also applies to apiTokenSchema and potentially other related schemas.
20
- exports.createApiTokenSchema = {
21
- $id: '#/components/schemas/createApiTokenSchema',
22
- type: 'object',
4
+ const adminSchema = {
23
5
  required: ['type'],
6
+ type: 'object',
24
7
  properties: {
25
- secret: {
8
+ type: {
9
+ type: 'string',
10
+ pattern: '^[Aa][Dd][Mm][Ii][Nn]$',
11
+ description: `An admin token. Must be the string "admin" (not case sensitive).`,
12
+ example: 'admin',
13
+ },
14
+ },
15
+ };
16
+ const tokenNameSchema = {
17
+ type: 'object',
18
+ required: ['tokenName'],
19
+ properties: {
20
+ tokenName: {
26
21
  type: 'string',
22
+ description: 'The name of the token.',
23
+ example: 'token-64522',
27
24
  },
25
+ },
26
+ };
27
+ const usernameSchema = {
28
+ type: 'object',
29
+ required: ['username'],
30
+ properties: {
31
+ username: {
32
+ deprecated: true,
33
+ type: 'string',
34
+ description: 'The name of the token. This property is deprecated. Use `tokenName` instead.',
35
+ example: 'token-64523',
36
+ },
37
+ },
38
+ };
39
+ const clientFrontendSchema = {
40
+ required: ['type'],
41
+ type: 'object',
42
+ properties: {
28
43
  type: {
29
44
  type: 'string',
30
- description: `One of ${Object.values(api_token_1.ApiTokenType).join(', ')}`,
45
+ pattern: '^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$',
46
+ description: `A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive).`,
47
+ example: 'frontend',
31
48
  },
32
49
  environment: {
33
50
  type: 'string',
51
+ description: 'The environment that the token should be valid for. Defaults to "default"',
52
+ example: 'development',
34
53
  },
35
54
  project: {
36
55
  type: 'string',
56
+ description: 'The project that the token should be valid for. Defaults to "*" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other.',
57
+ example: 'project-851',
37
58
  },
38
59
  projects: {
39
60
  type: 'array',
61
+ description: 'A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other.',
62
+ example: ['project-851', 'project-852'],
40
63
  items: {
41
64
  type: 'string',
42
65
  },
43
66
  },
67
+ },
68
+ };
69
+ // TODO: (openapi) this schema isn't entirely correct: `project` and `projects`
70
+ // are mutually exclusive.
71
+ //
72
+ // That is, when creating a token, you can provide either `project` _or_
73
+ // `projects`, but *not* both.
74
+ //
75
+ // Because we allow additional properties, we cannot express the mutual
76
+ // exclusiveness in the schema (with OpenAPI 3.0). As such, it's mentioned in
77
+ // the description for now.
78
+ exports.createApiTokenSchema = {
79
+ $id: '#/components/schemas/createApiTokenSchema',
80
+ type: 'object',
81
+ description: 'The data required to create an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).',
82
+ properties: {
44
83
  expiresAt: {
45
84
  type: 'string',
46
85
  format: 'date-time',
47
- nullable: true,
86
+ description: 'The time when this token should expire.',
87
+ example: '2023-07-04T11:26:24+02:00',
48
88
  },
49
89
  },
50
- anyOf: [
90
+ oneOf: [
51
91
  {
52
- properties: {
53
- username: {
54
- type: 'string',
55
- },
56
- },
57
- required: ['username'],
92
+ allOf: [adminSchema, tokenNameSchema],
58
93
  },
59
94
  {
60
- properties: {
61
- tokenName: {
62
- type: 'string',
63
- },
64
- },
65
- required: ['tokenName'],
95
+ allOf: [adminSchema, usernameSchema],
96
+ },
97
+ {
98
+ allOf: [clientFrontendSchema, tokenNameSchema],
99
+ },
100
+ {
101
+ allOf: [clientFrontendSchema, usernameSchema],
66
102
  },
67
103
  ],
68
104
  components: {},
@@ -1 +1 @@
1
- {"version":3,"file":"create-api-token-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-api-token-schema.ts"],"names":[],"mappings":";;;AACA,4DAA4D;AAE5D,+EAA+E;AAC/E,0BAA0B;AAC1B,EAAE;AACF,wEAAwE;AACxE,8BAA8B;AAC9B,EAAE;AACF,2EAA2E;AAC3E,uEAAuE;AACvE,EAAE;AACF,0EAA0E;AAC1E,kCAAkC;AAClC,EAAE;AACF,mDAAmD;AACnD,EAAE;AACF,6EAA6E;AAEhE,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;SACjB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU,MAAM,CAAC,MAAM,CAAC,wBAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;SAClE;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;SACjB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,KAAK,EAAE;QACH;YACI,UAAU,EAAE;gBACR,QAAQ,EAAE;oBACN,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,QAAQ,EAAE,CAAC,UAAU,CAAC;SACzB;QACD;YACI,UAAU,EAAE;gBACR,SAAS,EAAE;oBACP,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,QAAQ,EAAE,CAAC,WAAW,CAAC;SAC1B;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"create-api-token-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-api-token-schema.ts"],"names":[],"mappings":";;;AAEA,MAAM,WAAW,GAAG;IAChB,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAwB;YACjC,WAAW,EAAE,kEAAkE;YAC/E,OAAO,EAAE,OAAO;SACnB;KACJ;CACK,CAAC;AAEX,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,WAAW,CAAC;IACvB,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wBAAwB;YACrC,OAAO,EAAE,aAAa;SACzB;KACJ;CACK,CAAC;AAEX,MAAM,cAAc,GAAG;IACnB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,8EAA8E;YAClF,OAAO,EAAE,aAAa;SACzB;KACJ;CACK,CAAC;AAEX,MAAM,oBAAoB,GAAG;IACzB,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EACH,+DAA+D;YACnE,WAAW,EAAE,qGAAqG;YAClH,OAAO,EAAE,UAAU;SACtB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,2EAA2E;YAC/E,OAAO,EAAE,aAAa;SACzB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,+MAA+M;YACnN,OAAO,EAAE,aAAa;SACzB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,8KAA8K;YAClL,OAAO,EAAE,CAAC,aAAa,EAAE,aAAa,CAAC;YACvC,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACK,CAAC;AAEX,+EAA+E;AAC/E,0BAA0B;AAC1B,EAAE;AACF,wEAAwE;AACxE,8BAA8B;AAC9B,EAAE;AACF,uEAAuE;AACvE,6EAA6E;AAC7E,2BAA2B;AACd,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,sHAAsH;IAC1H,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE,2BAA2B;SACvC;KACJ;IACD,KAAK,EAAE;QACH;YACI,KAAK,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;SACxC;QACD;YACI,KAAK,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC;SACvC;QACD;YACI,KAAK,EAAE,CAAC,oBAAoB,EAAE,eAAe,CAAC;SACjD;QACD;YACI,KAAK,EAAE,CAAC,oBAAoB,EAAE,cAAc,CAAC;SAChD;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -6,15 +6,24 @@ export declare const createFeatureSchema: {
6
6
  readonly properties: {
7
7
  readonly name: {
8
8
  readonly type: "string";
9
+ readonly example: "disable-comments";
10
+ readonly description: "Unique feature name";
9
11
  };
10
12
  readonly type: {
11
13
  readonly type: "string";
14
+ readonly example: "release";
15
+ readonly description: "The feature toggle's [type](https://docs.getunleash.io/reference/feature-toggle-types). One of experiment, kill-switch, release, operational, or permission";
12
16
  };
13
17
  readonly description: {
14
18
  readonly type: "string";
19
+ readonly nullable: true;
20
+ readonly example: "Controls disabling of the comments section in case of an incident";
21
+ readonly description: "Detailed description of the feature";
15
22
  };
16
23
  readonly impressionData: {
17
24
  readonly type: "boolean";
25
+ readonly example: false;
26
+ readonly description: "`true` if the impression data collection is enabled for the feature, otherwise `false`.";
18
27
  };
19
28
  };
20
29
  readonly components: {};