unleash-server 5.3.5 → 5.4.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 (454) hide show
  1. package/dist/lib/addons/slack-app-definition.js +8 -0
  2. package/dist/lib/addons/slack-app-definition.js.map +1 -1
  3. package/dist/lib/addons/slack-app.d.ts +1 -0
  4. package/dist/lib/addons/slack-app.js +12 -5
  5. package/dist/lib/addons/slack-app.js.map +1 -1
  6. package/dist/lib/addons/slack-app.test.js +12 -66
  7. package/dist/lib/addons/slack-app.test.js.map +1 -1
  8. package/dist/lib/create-config.js +1 -0
  9. package/dist/lib/create-config.js.map +1 -1
  10. package/dist/lib/db/access-store.d.ts +3 -1
  11. package/dist/lib/db/access-store.js +53 -0
  12. package/dist/lib/db/access-store.js.map +1 -1
  13. package/dist/lib/db/client-applications-store.d.ts +3 -1
  14. package/dist/lib/db/client-applications-store.js +73 -6
  15. package/dist/lib/db/client-applications-store.js.map +1 -1
  16. package/dist/lib/db/feature-environment-store.js +3 -0
  17. package/dist/lib/db/feature-environment-store.js.map +1 -1
  18. package/dist/lib/db/feature-strategy-store.d.ts +1 -0
  19. package/dist/lib/db/feature-strategy-store.js +21 -3
  20. package/dist/lib/db/feature-strategy-store.js.map +1 -1
  21. package/dist/lib/db/feature-strategy-store.test.js +40 -0
  22. package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
  23. package/dist/lib/db/feature-toggle-client-store.js +5 -3
  24. package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
  25. package/dist/lib/db/feature-toggle-store.d.ts +6 -1
  26. package/dist/lib/db/feature-toggle-store.js +37 -9
  27. package/dist/lib/db/feature-toggle-store.js.map +1 -1
  28. package/dist/lib/db/index.js +1 -1
  29. package/dist/lib/db/index.js.map +1 -1
  30. package/dist/lib/db/role-store.d.ts +3 -0
  31. package/dist/lib/db/role-store.js +21 -4
  32. package/dist/lib/db/role-store.js.map +1 -1
  33. package/dist/lib/features/access/createAccessService.js +2 -2
  34. package/dist/lib/features/access/createAccessService.js.map +1 -1
  35. package/dist/lib/features/change-request-access-service/change-request-access-read-model.d.ts +1 -0
  36. package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.d.ts +1 -0
  37. package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.js +3 -0
  38. package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.js.map +1 -1
  39. package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.d.ts +1 -0
  40. package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.js +10 -1
  41. package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.js.map +1 -1
  42. package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js +4 -0
  43. package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js.map +1 -1
  44. package/dist/lib/features/export-import-toggles/export-import-service.d.ts +2 -1
  45. package/dist/lib/features/export-import-toggles/export-import-service.js +30 -16
  46. package/dist/lib/features/export-import-toggles/export-import-service.js.map +1 -1
  47. package/dist/lib/features/export-import-toggles/export-import.e2e.test.js +24 -4
  48. package/dist/lib/features/export-import-toggles/export-import.e2e.test.js.map +1 -1
  49. package/dist/lib/features/export-import-toggles/import-context-validation.js +1 -1
  50. package/dist/lib/features/export-import-toggles/import-context-validation.js.map +1 -1
  51. package/dist/lib/features/export-import-toggles/import-toggles-store-type.d.ts +1 -0
  52. package/dist/lib/features/export-import-toggles/import-toggles-store.d.ts +1 -0
  53. package/dist/lib/features/export-import-toggles/import-toggles-store.js +8 -0
  54. package/dist/lib/features/export-import-toggles/import-toggles-store.js.map +1 -1
  55. package/dist/lib/features/export-import-toggles/import-validation-messages.d.ts +1 -1
  56. package/dist/lib/features/export-import-toggles/import-validation-messages.js +7 -1
  57. package/dist/lib/features/export-import-toggles/import-validation-messages.js.map +1 -1
  58. package/dist/lib/features/feature-toggle/createFeatureToggleService.js +9 -12
  59. package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
  60. package/dist/lib/features/index.d.ts +1 -0
  61. package/dist/lib/features/index.js +1 -0
  62. package/dist/lib/features/index.js.map +1 -1
  63. package/dist/lib/features/playground/advanced-playground.test.js +57 -6
  64. package/dist/lib/features/playground/advanced-playground.test.js.map +1 -1
  65. package/dist/lib/features/playground/generateObjectCombinations.d.ts +2 -2
  66. package/dist/lib/features/playground/generateObjectCombinations.js +4 -1
  67. package/dist/lib/features/playground/generateObjectCombinations.js.map +1 -1
  68. package/dist/lib/features/playground/generateObjectCombinations.test.js +7 -6
  69. package/dist/lib/features/playground/generateObjectCombinations.test.js.map +1 -1
  70. package/dist/lib/features/playground/playground.js +1 -1
  71. package/dist/lib/features/playground/playground.js.map +1 -1
  72. package/dist/lib/features/segment/createSegmentService.d.ts +5 -0
  73. package/dist/lib/features/segment/createSegmentService.js +32 -0
  74. package/dist/lib/features/segment/createSegmentService.js.map +1 -0
  75. package/dist/lib/metrics.js +12 -0
  76. package/dist/lib/metrics.js.map +1 -1
  77. package/dist/lib/metrics.test.js +1 -1
  78. package/dist/lib/metrics.test.js.map +1 -1
  79. package/dist/lib/middleware/response-time-metrics.js +1 -1
  80. package/dist/lib/middleware/response-time-metrics.js.map +1 -1
  81. package/dist/lib/openapi/index.js +3 -1
  82. package/dist/lib/openapi/index.js.map +1 -1
  83. package/dist/lib/openapi/meta-schema-rules.test.js +2 -41
  84. package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
  85. package/dist/lib/openapi/spec/admin-features-query-schema.d.ts +1 -0
  86. package/dist/lib/openapi/spec/admin-features-query-schema.js +1 -0
  87. package/dist/lib/openapi/spec/admin-features-query-schema.js.map +1 -1
  88. package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +4 -1
  89. package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +8 -2
  90. package/dist/lib/openapi/spec/advanced-playground-request-schema.d.ts +1 -1
  91. package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +17 -5
  92. package/dist/lib/openapi/spec/application-schema.d.ts +33 -1
  93. package/dist/lib/openapi/spec/application-schema.js +12 -1
  94. package/dist/lib/openapi/spec/application-schema.js.map +1 -1
  95. package/dist/lib/openapi/spec/application-usage-schema.d.ts +25 -0
  96. package/dist/lib/openapi/spec/application-usage-schema.js +27 -0
  97. package/dist/lib/openapi/spec/application-usage-schema.js.map +1 -0
  98. package/dist/lib/openapi/spec/applications-schema.d.ts +57 -1
  99. package/dist/lib/openapi/spec/applications-schema.js +4 -1
  100. package/dist/lib/openapi/spec/applications-schema.js.map +1 -1
  101. package/dist/lib/openapi/spec/bulk-metrics-schema.d.ts +18 -4
  102. package/dist/lib/openapi/spec/bulk-registration-schema.d.ts +6 -1
  103. package/dist/lib/openapi/spec/client-metrics-env-schema.d.ts +6 -2
  104. package/dist/lib/openapi/spec/client-metrics-env-schema.js +0 -1
  105. package/dist/lib/openapi/spec/client-metrics-env-schema.js.map +1 -1
  106. package/dist/lib/openapi/spec/client-metrics-schema.d.ts +6 -1
  107. package/dist/lib/openapi/spec/create-application-schema.d.ts +0 -1
  108. package/dist/lib/openapi/spec/create-application-schema.js +0 -1
  109. package/dist/lib/openapi/spec/create-application-schema.js.map +1 -1
  110. package/dist/lib/openapi/spec/create-context-field-schema.d.ts +68 -0
  111. package/dist/lib/openapi/spec/create-context-field-schema.js +19 -0
  112. package/dist/lib/openapi/spec/create-context-field-schema.js.map +1 -0
  113. package/dist/lib/openapi/spec/create-feature-schema.d.ts +1 -0
  114. package/dist/lib/openapi/spec/create-feature-schema.js +1 -0
  115. package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
  116. package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +0 -1
  117. package/dist/lib/openapi/spec/create-group-schema.d.ts +0 -1
  118. package/dist/lib/openapi/spec/create-group-schema.js +0 -1
  119. package/dist/lib/openapi/spec/create-group-schema.js.map +1 -1
  120. package/dist/lib/openapi/spec/create-invited-user-schema.d.ts +9 -0
  121. package/dist/lib/openapi/spec/create-invited-user-schema.js +9 -0
  122. package/dist/lib/openapi/spec/create-invited-user-schema.js.map +1 -1
  123. package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +0 -1
  124. package/dist/lib/openapi/spec/create-strategy-variant-schema.js +0 -1
  125. package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -1
  126. package/dist/lib/openapi/spec/create-user-response-schema.d.ts +2 -1
  127. package/dist/lib/openapi/spec/create-user-response-schema.js +1 -1
  128. package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -1
  129. package/dist/lib/openapi/spec/date-schema.d.ts +6 -1
  130. package/dist/lib/openapi/spec/date-schema.js +14 -1
  131. package/dist/lib/openapi/spec/date-schema.js.map +1 -1
  132. package/dist/lib/openapi/spec/environment-project-schema.d.ts +0 -2
  133. package/dist/lib/openapi/spec/environments-project-schema.d.ts +0 -2
  134. package/dist/lib/openapi/spec/event-schema.d.ts +1 -3
  135. package/dist/lib/openapi/spec/event-schema.js +0 -1
  136. package/dist/lib/openapi/spec/event-schema.js.map +1 -1
  137. package/dist/lib/openapi/spec/events-schema.d.ts +1 -3
  138. package/dist/lib/openapi/spec/export-query-schema.d.ts +0 -1
  139. package/dist/lib/openapi/spec/export-query-schema.js +0 -1
  140. package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
  141. package/dist/lib/openapi/spec/export-result-schema.d.ts +17 -1
  142. package/dist/lib/openapi/spec/feature-environment-metrics-schema.d.ts +6 -1
  143. package/dist/lib/openapi/spec/feature-environment-schema.d.ts +7 -0
  144. package/dist/lib/openapi/spec/feature-environment-schema.js +7 -0
  145. package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
  146. package/dist/lib/openapi/spec/feature-events-schema.d.ts +1 -3
  147. package/dist/lib/openapi/spec/feature-metrics-schema.d.ts +12 -2
  148. package/dist/lib/openapi/spec/feature-schema.d.ts +9 -1
  149. package/dist/lib/openapi/spec/feature-schema.js +2 -1
  150. package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
  151. package/dist/lib/openapi/spec/feature-strategy-segment-schema.d.ts +5 -0
  152. package/dist/lib/openapi/spec/feature-strategy-segment-schema.js +5 -0
  153. package/dist/lib/openapi/spec/feature-strategy-segment-schema.js.map +1 -1
  154. package/dist/lib/openapi/spec/feature-usage-schema.d.ts +12 -2
  155. package/dist/lib/openapi/spec/features-schema.d.ts +16 -1
  156. package/dist/lib/openapi/spec/group-schema.d.ts +10 -2
  157. package/dist/lib/openapi/spec/group-schema.js +6 -0
  158. package/dist/lib/openapi/spec/group-schema.js.map +1 -1
  159. package/dist/lib/openapi/spec/group-user-model-schema.d.ts +2 -1
  160. package/dist/lib/openapi/spec/groups-schema.d.ts +14 -4
  161. package/dist/lib/openapi/spec/health-overview-schema.d.ts +16 -5
  162. package/dist/lib/openapi/spec/health-report-schema.d.ts +16 -5
  163. package/dist/lib/openapi/spec/import-toggles-schema.d.ts +34 -2
  164. package/dist/lib/openapi/spec/index.d.ts +3 -1
  165. package/dist/lib/openapi/spec/index.js +3 -1
  166. package/dist/lib/openapi/spec/index.js.map +1 -1
  167. package/dist/lib/openapi/spec/maintenance-schema.d.ts +2 -0
  168. package/dist/lib/openapi/spec/maintenance-schema.js +2 -0
  169. package/dist/lib/openapi/spec/maintenance-schema.js.map +1 -1
  170. package/dist/lib/openapi/spec/me-schema.d.ts +2 -1
  171. package/dist/lib/openapi/spec/patch-schema.d.ts +12 -1
  172. package/dist/lib/openapi/spec/patch-schema.js +12 -1
  173. package/dist/lib/openapi/spec/patch-schema.js.map +1 -1
  174. package/dist/lib/openapi/spec/patches-schema.d.ts +12 -1
  175. package/dist/lib/openapi/spec/playground-feature-schema.d.ts +3 -0
  176. package/dist/lib/openapi/spec/playground-request-schema.d.ts +1 -1
  177. package/dist/lib/openapi/spec/playground-response-schema.d.ts +8 -2
  178. package/dist/lib/openapi/spec/playground-segment-schema.d.ts +1 -0
  179. package/dist/lib/openapi/spec/playground-segment-schema.js +1 -0
  180. package/dist/lib/openapi/spec/playground-segment-schema.js.map +1 -1
  181. package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +2 -0
  182. package/dist/lib/openapi/spec/playground-strategy-schema.js +1 -0
  183. package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
  184. package/dist/lib/openapi/spec/profile-schema.d.ts +9 -1
  185. package/dist/lib/openapi/spec/project-environment-schema.d.ts +0 -2
  186. package/dist/lib/openapi/spec/project-overview-schema.d.ts +20 -6
  187. package/dist/lib/openapi/spec/project-overview-schema.js +4 -1
  188. package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
  189. package/dist/lib/openapi/spec/project-schema.d.ts +4 -0
  190. package/dist/lib/openapi/spec/project-schema.js +4 -0
  191. package/dist/lib/openapi/spec/project-schema.js.map +1 -1
  192. package/dist/lib/openapi/spec/projects-schema.d.ts +6 -0
  193. package/dist/lib/openapi/spec/projects-schema.js +2 -0
  194. package/dist/lib/openapi/spec/projects-schema.js.map +1 -1
  195. package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +3 -1
  196. package/dist/lib/openapi/spec/public-signup-token-schema.js +1 -0
  197. package/dist/lib/openapi/spec/public-signup-token-schema.js.map +1 -1
  198. package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +5 -2
  199. package/dist/lib/openapi/spec/push-variants-schema.d.ts +3 -0
  200. package/dist/lib/openapi/spec/push-variants-schema.js +3 -0
  201. package/dist/lib/openapi/spec/push-variants-schema.js.map +1 -1
  202. package/dist/lib/openapi/spec/reset-password-schema.d.ts +4 -0
  203. package/dist/lib/openapi/spec/reset-password-schema.js +4 -0
  204. package/dist/lib/openapi/spec/reset-password-schema.js.map +1 -1
  205. package/dist/lib/openapi/spec/sdk-context-schema.d.ts +1 -1
  206. package/dist/lib/openapi/spec/sdk-context-schema.js +1 -1
  207. package/dist/lib/openapi/spec/sdk-context-schema.js.map +1 -1
  208. package/dist/lib/openapi/spec/search-events-schema.d.ts +2 -2
  209. package/dist/lib/openapi/spec/search-events-schema.js +1 -6
  210. package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
  211. package/dist/lib/openapi/spec/sort-order-schema.d.ts +4 -1
  212. package/dist/lib/openapi/spec/sort-order-schema.js +4 -1
  213. package/dist/lib/openapi/spec/sort-order-schema.js.map +1 -1
  214. package/dist/lib/openapi/spec/state-schema.d.ts +39 -3
  215. package/dist/lib/openapi/spec/state-schema.js +14 -2
  216. package/dist/lib/openapi/spec/state-schema.js.map +1 -1
  217. package/dist/lib/openapi/spec/toggle-maintenance-schema.d.ts +2 -0
  218. package/dist/lib/openapi/spec/toggle-maintenance-schema.js +2 -0
  219. package/dist/lib/openapi/spec/toggle-maintenance-schema.js.map +1 -1
  220. package/dist/lib/openapi/spec/token-string-list-schema.d.ts +0 -1
  221. package/dist/lib/openapi/spec/token-string-list-schema.js +0 -1
  222. package/dist/lib/openapi/spec/token-string-list-schema.js.map +1 -1
  223. package/dist/lib/openapi/spec/token-user-schema.d.ts +1 -1
  224. package/dist/lib/openapi/spec/token-user-schema.js +1 -1
  225. package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
  226. package/dist/lib/openapi/spec/{upsert-context-field-schema.d.ts → update-context-field-schema.d.ts} +19 -8
  227. package/dist/lib/openapi/spec/update-context-field-schema.js +44 -0
  228. package/dist/lib/openapi/spec/update-context-field-schema.js.map +1 -0
  229. package/dist/lib/openapi/spec/update-user-schema.d.ts +0 -1
  230. package/dist/lib/openapi/spec/update-user-schema.js +0 -1
  231. package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
  232. package/dist/lib/openapi/spec/user-schema.d.ts +2 -1
  233. package/dist/lib/openapi/spec/user-schema.js +2 -1
  234. package/dist/lib/openapi/spec/user-schema.js.map +1 -1
  235. package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +33 -4
  236. package/dist/lib/openapi/spec/users-groups-base-schema.js +24 -0
  237. package/dist/lib/openapi/spec/users-groups-base-schema.js.map +1 -1
  238. package/dist/lib/openapi/spec/users-schema.d.ts +3 -2
  239. package/dist/lib/openapi/spec/users-schema.js +1 -1
  240. package/dist/lib/openapi/spec/users-schema.js.map +1 -1
  241. package/dist/lib/openapi/spec/users-search-schema.d.ts +3 -1
  242. package/dist/lib/openapi/spec/users-search-schema.js +1 -0
  243. package/dist/lib/openapi/spec/users-search-schema.js.map +1 -1
  244. package/dist/lib/openapi/spec/variants-schema.d.ts +1 -0
  245. package/dist/lib/openapi/spec/variants-schema.js +1 -0
  246. package/dist/lib/openapi/spec/variants-schema.js.map +1 -1
  247. package/dist/lib/openapi/util/openapi-tags.d.ts +18 -0
  248. package/dist/lib/openapi/util/openapi-tags.js +12 -0
  249. package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
  250. package/dist/lib/routes/admin-api/api-token.d.ts +5 -0
  251. package/dist/lib/routes/admin-api/api-token.js +28 -0
  252. package/dist/lib/routes/admin-api/api-token.js.map +1 -1
  253. package/dist/lib/routes/admin-api/archive.js +4 -0
  254. package/dist/lib/routes/admin-api/archive.js.map +1 -1
  255. package/dist/lib/routes/admin-api/client-metrics.js +2 -1
  256. package/dist/lib/routes/admin-api/client-metrics.js.map +1 -1
  257. package/dist/lib/routes/admin-api/context.d.ts +4 -3
  258. package/dist/lib/routes/admin-api/context.js +3 -4
  259. package/dist/lib/routes/admin-api/context.js.map +1 -1
  260. package/dist/lib/routes/admin-api/feature-type.js +2 -2
  261. package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
  262. package/dist/lib/routes/admin-api/instance-admin.js +2 -0
  263. package/dist/lib/routes/admin-api/instance-admin.js.map +1 -1
  264. package/dist/lib/routes/admin-api/maintenance.d.ts +2 -1
  265. package/dist/lib/routes/admin-api/maintenance.js.map +1 -1
  266. package/dist/lib/routes/admin-api/project/environments.js +1 -0
  267. package/dist/lib/routes/admin-api/project/environments.js.map +1 -1
  268. package/dist/lib/routes/admin-api/project/project-features.js +2 -1
  269. package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
  270. package/dist/lib/routes/admin-api/public-signup.js +2 -1
  271. package/dist/lib/routes/admin-api/public-signup.js.map +1 -1
  272. package/dist/lib/routes/admin-api/strategy.d.ts +1 -1
  273. package/dist/lib/routes/admin-api/strategy.js +2 -2
  274. package/dist/lib/routes/admin-api/strategy.js.map +1 -1
  275. package/dist/lib/routes/admin-api/tag-type.js +2 -2
  276. package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
  277. package/dist/lib/routes/admin-api/user-admin.js +2 -1
  278. package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
  279. package/dist/lib/routes/client-api/register.d.ts +1 -0
  280. package/dist/lib/routes/client-api/register.js +8 -0
  281. package/dist/lib/routes/client-api/register.js.map +1 -1
  282. package/dist/lib/routes/index.js +1 -0
  283. package/dist/lib/routes/index.js.map +1 -1
  284. package/dist/lib/routes/public-invite.js +2 -1
  285. package/dist/lib/routes/public-invite.js.map +1 -1
  286. package/dist/lib/segments/segment-service-interface.d.ts +2 -0
  287. package/dist/lib/server-impl.js +3 -1
  288. package/dist/lib/server-impl.js.map +1 -1
  289. package/dist/lib/services/access-service.d.ts +6 -3
  290. package/dist/lib/services/access-service.js +17 -5
  291. package/dist/lib/services/access-service.js.map +1 -1
  292. package/dist/lib/services/access-service.test.js +49 -3
  293. package/dist/lib/services/access-service.test.js.map +1 -1
  294. package/dist/lib/services/client-metrics/instance-service.js +5 -7
  295. package/dist/lib/services/client-metrics/instance-service.js.map +1 -1
  296. package/dist/lib/services/client-metrics/last-seen-service.d.ts +4 -0
  297. package/dist/lib/services/client-metrics/last-seen-service.js +4 -1
  298. package/dist/lib/services/client-metrics/last-seen-service.js.map +1 -1
  299. package/dist/lib/services/client-metrics/models.d.ts +2 -0
  300. package/dist/lib/services/client-metrics/schema.js +1 -0
  301. package/dist/lib/services/client-metrics/schema.js.map +1 -1
  302. package/dist/lib/services/feature-service-potentially-stale.test.js +0 -1
  303. package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -1
  304. package/dist/lib/services/feature-toggle-service.js +20 -30
  305. package/dist/lib/services/feature-toggle-service.js.map +1 -1
  306. package/dist/lib/services/index.js +1 -1
  307. package/dist/lib/services/index.js.map +1 -1
  308. package/dist/lib/services/instance-stats-service.d.ts +2 -0
  309. package/dist/lib/services/instance-stats-service.js +6 -1
  310. package/dist/lib/services/instance-stats-service.js.map +1 -1
  311. package/dist/lib/services/maintenance-service.js +1 -1
  312. package/dist/lib/services/maintenance-service.js.map +1 -1
  313. package/dist/lib/services/maintenance-service.test.js +1 -1
  314. package/dist/lib/services/maintenance-service.test.js.map +1 -1
  315. package/dist/lib/services/project-service.d.ts +2 -1
  316. package/dist/lib/services/project-service.js +3 -0
  317. package/dist/lib/services/project-service.js.map +1 -1
  318. package/dist/lib/services/segment-service.d.ts +8 -2
  319. package/dist/lib/services/segment-service.js +34 -3
  320. package/dist/lib/services/segment-service.js.map +1 -1
  321. package/dist/lib/services/user-service.js +3 -3
  322. package/dist/lib/services/user-service.js.map +1 -1
  323. package/dist/lib/services/version-service.d.ts +1 -0
  324. package/dist/lib/services/version-service.js +8 -1
  325. package/dist/lib/services/version-service.js.map +1 -1
  326. package/dist/lib/types/events.d.ts +2 -1
  327. package/dist/lib/types/events.js +4 -2
  328. package/dist/lib/types/events.js.map +1 -1
  329. package/dist/lib/types/experimental.d.ts +1 -1
  330. package/dist/lib/types/experimental.js +6 -5
  331. package/dist/lib/types/experimental.js.map +1 -1
  332. package/dist/lib/types/model.d.ts +2 -0
  333. package/dist/lib/types/model.js.map +1 -1
  334. package/dist/lib/types/option.d.ts +2 -0
  335. package/dist/lib/types/project.d.ts +7 -0
  336. package/dist/lib/types/stores/access-store.d.ts +9 -0
  337. package/dist/lib/types/stores/client-applications-store.d.ts +5 -0
  338. package/dist/lib/types/stores/context-field-store.d.ts +3 -3
  339. package/dist/lib/types/stores/feature-toggle-store.d.ts +2 -1
  340. package/dist/lib/types/stores/role-store.d.ts +3 -0
  341. package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.d.ts +2 -0
  342. package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.js +84 -0
  343. package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.js.map +1 -0
  344. package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.d.ts +2 -0
  345. package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.js +83 -0
  346. package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.js.map +1 -0
  347. package/dist/migrations/20230803061359-change-request-optional-feature.d.ts +2 -0
  348. package/dist/migrations/20230803061359-change-request-optional-feature.js +13 -0
  349. package/dist/migrations/20230803061359-change-request-optional-feature.js.map +1 -0
  350. package/dist/migrations/20230808104232-update-root-roles-descriptions.d.ts +2 -0
  351. package/dist/migrations/20230808104232-update-root-roles-descriptions.js +15 -0
  352. package/dist/migrations/20230808104232-update-root-roles-descriptions.js.map +1 -0
  353. package/dist/migrations/20230814095253-change-request-rejections.d.ts +2 -0
  354. package/dist/migrations/20230814095253-change-request-rejections.js +18 -0
  355. package/dist/migrations/20230814095253-change-request-rejections.js.map +1 -0
  356. package/dist/migrations/20230814115436-change-request-timzone-timestamps.d.ts +2 -0
  357. package/dist/migrations/20230814115436-change-request-timzone-timestamps.js +15 -0
  358. package/dist/migrations/20230814115436-change-request-timzone-timestamps.js.map +1 -0
  359. package/dist/migrations/20230815065908-change-request-approve-reject-permission.d.ts +2 -0
  360. package/dist/migrations/20230815065908-change-request-approve-reject-permission.js +12 -0
  361. package/dist/migrations/20230815065908-change-request-approve-reject-permission.js.map +1 -0
  362. package/dist/migrations/20230817095805-client-applications-usage-table.d.ts +2 -0
  363. package/dist/migrations/20230817095805-client-applications-usage-table.js +17 -0
  364. package/dist/migrations/20230817095805-client-applications-usage-table.js.map +1 -0
  365. package/dist/migrations/20230818124614-update-client-applications-usage-table.d.ts +2 -0
  366. package/dist/migrations/20230818124614-update-client-applications-usage-table.js +25 -0
  367. package/dist/migrations/20230818124614-update-client-applications-usage-table.js.map +1 -0
  368. package/dist/server-dev.js +3 -2
  369. package/dist/server-dev.js.map +1 -1
  370. package/dist/test/config/test-config.js +1 -0
  371. package/dist/test/config/test-config.js.map +1 -1
  372. package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js +12 -84
  373. package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js.map +1 -1
  374. package/dist/test/e2e/api/admin/api-token.e2e.test.js +10 -2
  375. package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
  376. package/dist/test/e2e/api/admin/metrics.e2e.test.js +30 -4
  377. package/dist/test/e2e/api/admin/metrics.e2e.test.js.map +1 -1
  378. package/dist/test/e2e/api/admin/project/features.e2e.test.js +14 -15
  379. package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
  380. package/dist/test/e2e/api/client/metricsV2.e2e.test.js +19 -5
  381. package/dist/test/e2e/api/client/metricsV2.e2e.test.js.map +1 -1
  382. package/dist/test/e2e/api/openapi/openapi.e2e.test.js +23 -0
  383. package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
  384. package/dist/test/e2e/helpers/test-helper.js +11 -1
  385. package/dist/test/e2e/helpers/test-helper.js.map +1 -1
  386. package/dist/test/e2e/services/access-service.e2e.test.js +2 -2
  387. package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
  388. package/dist/test/e2e/services/api-token-service.e2e.test.js +1 -1
  389. package/dist/test/e2e/services/api-token-service.e2e.test.js.map +1 -1
  390. package/dist/test/e2e/services/environment-service.test.js +2 -0
  391. package/dist/test/e2e/services/environment-service.test.js.map +1 -1
  392. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +1 -1
  393. package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
  394. package/dist/test/e2e/services/playground-service.test.js +1 -1
  395. package/dist/test/e2e/services/playground-service.test.js.map +1 -1
  396. package/dist/test/e2e/services/project-health-service.e2e.test.js +1 -1
  397. package/dist/test/e2e/services/project-health-service.e2e.test.js.map +1 -1
  398. package/dist/test/e2e/services/project-service.e2e.test.js +1 -1
  399. package/dist/test/e2e/services/project-service.e2e.test.js.map +1 -1
  400. package/dist/test/e2e/services/user-service.e2e.test.js +10 -0
  401. package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
  402. package/dist/test/fixtures/access-service-mock.js +1 -0
  403. package/dist/test/fixtures/access-service-mock.js.map +1 -1
  404. package/dist/test/fixtures/fake-access-store.d.ts +3 -1
  405. package/dist/test/fixtures/fake-access-store.js +6 -0
  406. package/dist/test/fixtures/fake-access-store.js.map +1 -1
  407. package/dist/test/fixtures/fake-feature-toggle-store.d.ts +2 -1
  408. package/dist/test/fixtures/fake-feature-toggle-store.js +19 -6
  409. package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
  410. package/dist/test/fixtures/fake-project-store.d.ts +1 -1
  411. package/dist/test/fixtures/fake-role-store.d.ts +3 -0
  412. package/dist/test/fixtures/fake-role-store.js +6 -0
  413. package/dist/test/fixtures/fake-role-store.js.map +1 -1
  414. package/frontend/build/index.html +2 -2
  415. package/frontend/build/static/{AdvancedPlayground-48dddbf4.js → AdvancedPlayground-2d715a2c.js} +3 -3
  416. package/frontend/build/static/{CreateProject-c1b0f704.js → CreateProject-5b1090c2.js} +1 -1
  417. package/frontend/build/static/{Error-e6f7c2ee.js → Error-e44ea66b.js} +1 -1
  418. package/frontend/build/static/FeatureArchiveDialog-b47b18e8.js +10 -0
  419. package/frontend/build/static/{FeatureMetricsChart-81da0ce4.js → FeatureMetricsChart-36caeeb7.js} +2 -2
  420. package/frontend/build/static/FeatureViewLazyExport-49d56afd.js +7 -0
  421. package/frontend/build/static/LazyAdminExport-87c9ab51.js +35 -0
  422. package/frontend/build/static/LazyProjectExport-c4634b2a.js +17 -0
  423. package/frontend/build/static/{NetworkOverview-cd06e59f.js → NetworkOverview-c762698b.js} +64 -64
  424. package/frontend/build/static/{NetworkTraffic-ba933617.js → NetworkTraffic-c8d9eb9b.js} +1 -1
  425. package/frontend/build/static/RoleCell-d1aa8288.js +1 -0
  426. package/frontend/build/static/{StrategyItemContainer-88c18285.js → StrategyItemContainer-c7c352a4.js} +1 -1
  427. package/frontend/build/static/changeRequestProcess-f2469ef4.svg +61 -0
  428. package/frontend/build/static/{chartjs-adapter-date-fns.esm-799be047.js → chartjs-adapter-date-fns.esm-9c67372b.js} +6 -6
  429. package/frontend/build/static/{flowchart-elk-definition-170a3958-543f0844.js → flowchart-elk-definition-170a3958-5ea9fc56.js} +1 -1
  430. package/frontend/build/static/{index-88f1c682.js → index-1aaa8c27.js} +1 -1
  431. package/frontend/build/static/{index-aa638b65.js → index-670c9345.js} +1 -1
  432. package/frontend/build/static/index-b7003840.js +454 -0
  433. package/frontend/build/static/{is_dark-735e3a95.js → is_dark-b445e102.js} +1 -1
  434. package/frontend/build/static/{mindmap-definition-44684416-ac92f950.js → mindmap-definition-44684416-254e936e.js} +1 -1
  435. package/frontend/build/static/pro-enterprise-feature-badge-8ac467c3.svg +7 -0
  436. package/frontend/build/static/pro-enterprise-feature-badge-light-81a18f9b.svg +6 -0
  437. package/frontend/build/static/{timeline-definition-8e5a9bc6-6c09f608.js → timeline-definition-8e5a9bc6-24fd1725.js} +1 -1
  438. package/frontend/build/static/{unknownify-0b176a78.js → unknownify-ea4585e8.js} +1 -1
  439. package/frontend/build/static/usage-line-00d00632.svg +3 -0
  440. package/frontend/build/static/usage-rate-cb18f02b.svg +3 -0
  441. package/frontend/package.json +13 -13
  442. package/package.json +11 -12
  443. package/dist/lib/openapi/spec/upsert-context-field-schema.js +0 -35
  444. package/dist/lib/openapi/spec/upsert-context-field-schema.js.map +0 -1
  445. package/frontend/build/static/FeatureArchiveDialog-9ad60db1.js +0 -10
  446. package/frontend/build/static/FeatureViewLazyExport-58a3e977.js +0 -7
  447. package/frontend/build/static/LazyAdminExport-c98b11d7.js +0 -37
  448. package/frontend/build/static/LazyProjectExport-14db2e37.js +0 -16
  449. package/frontend/build/static/RoleCell-c534790e.js +0 -1
  450. package/frontend/build/static/changeRequestProcess-a532ab60.svg +0 -1
  451. package/frontend/build/static/index-1c4c68c3.js +0 -453
  452. package/frontend/build/static/pro-enterprise-feature-badge-8fab99c5.svg +0 -5
  453. package/frontend/build/static/pro-enterprise-feature-badge-light-0227af08.svg +0 -1
  454. /package/frontend/build/static/{index-770afaee.css → style-770afaee.css} +0 -0
@@ -295,7 +295,6 @@ export declare const healthOverviewSchema: {
295
295
  readonly createStrategyVariantSchema: {
296
296
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
297
297
  readonly type: "object";
298
- readonly additionalProperties: true;
299
298
  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.";
300
299
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
301
300
  readonly properties: {
@@ -350,7 +349,6 @@ export declare const healthOverviewSchema: {
350
349
  readonly createStrategyVariantSchema: {
351
350
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
352
351
  readonly type: "object";
353
- readonly additionalProperties: true;
354
352
  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.";
355
353
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
356
354
  readonly properties: {
@@ -527,7 +525,6 @@ export declare const healthOverviewSchema: {
527
525
  readonly createStrategyVariantSchema: {
528
526
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
529
527
  readonly type: "object";
530
- readonly additionalProperties: true;
531
528
  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.";
532
529
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
533
530
  readonly properties: {
@@ -582,7 +579,6 @@ export declare const healthOverviewSchema: {
582
579
  readonly createStrategyVariantSchema: {
583
580
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
584
581
  readonly type: "object";
585
- readonly additionalProperties: true;
586
582
  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.";
587
583
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
588
584
  readonly properties: {
@@ -746,8 +742,9 @@ export declare const healthOverviewSchema: {
746
742
  readonly type: "string";
747
743
  readonly format: "date-time";
748
744
  readonly nullable: true;
745
+ readonly deprecated: true;
749
746
  readonly example: "2023-01-28T16:21:39.975Z";
750
- readonly description: "The date when metrics where last collected for the feature";
747
+ readonly description: "The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema";
751
748
  };
752
749
  readonly environments: {
753
750
  readonly type: "array";
@@ -882,6 +879,13 @@ export declare const healthOverviewSchema: {
882
879
  };
883
880
  readonly description: "A list of variants for the feature environment";
884
881
  };
882
+ readonly lastSeenAt: {
883
+ readonly type: "string";
884
+ readonly format: "date-time";
885
+ readonly nullable: true;
886
+ readonly example: "2023-01-28T16:21:39.975Z";
887
+ readonly description: "The date when metrics where last collected for the feature environment";
888
+ };
885
889
  };
886
890
  readonly components: {
887
891
  readonly schemas: {
@@ -1682,6 +1686,13 @@ export declare const healthOverviewSchema: {
1682
1686
  };
1683
1687
  readonly description: "A list of variants for the feature environment";
1684
1688
  };
1689
+ readonly lastSeenAt: {
1690
+ readonly type: "string";
1691
+ readonly format: "date-time";
1692
+ readonly nullable: true;
1693
+ readonly example: "2023-01-28T16:21:39.975Z";
1694
+ readonly description: "The date when metrics where last collected for the feature environment";
1695
+ };
1685
1696
  };
1686
1697
  readonly components: {
1687
1698
  readonly schemas: {
@@ -310,7 +310,6 @@ export declare const healthReportSchema: {
310
310
  readonly createStrategyVariantSchema: {
311
311
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
312
312
  readonly type: "object";
313
- readonly additionalProperties: true;
314
313
  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
314
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
316
315
  readonly properties: {
@@ -365,7 +364,6 @@ export declare const healthReportSchema: {
365
364
  readonly createStrategyVariantSchema: {
366
365
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
367
366
  readonly type: "object";
368
- readonly additionalProperties: true;
369
367
  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
368
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
371
369
  readonly properties: {
@@ -542,7 +540,6 @@ export declare const healthReportSchema: {
542
540
  readonly createStrategyVariantSchema: {
543
541
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
544
542
  readonly type: "object";
545
- readonly additionalProperties: true;
546
543
  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
544
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
548
545
  readonly properties: {
@@ -597,7 +594,6 @@ export declare const healthReportSchema: {
597
594
  readonly createStrategyVariantSchema: {
598
595
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
599
596
  readonly type: "object";
600
- readonly additionalProperties: true;
601
597
  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
598
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
603
599
  readonly properties: {
@@ -761,8 +757,9 @@ export declare const healthReportSchema: {
761
757
  readonly type: "string";
762
758
  readonly format: "date-time";
763
759
  readonly nullable: true;
760
+ readonly deprecated: true;
764
761
  readonly example: "2023-01-28T16:21:39.975Z";
765
- readonly description: "The date when metrics where last collected for the feature";
762
+ readonly description: "The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema";
766
763
  };
767
764
  readonly environments: {
768
765
  readonly type: "array";
@@ -897,6 +894,13 @@ export declare const healthReportSchema: {
897
894
  };
898
895
  readonly description: "A list of variants for the feature environment";
899
896
  };
897
+ readonly lastSeenAt: {
898
+ readonly type: "string";
899
+ readonly format: "date-time";
900
+ readonly nullable: true;
901
+ readonly example: "2023-01-28T16:21:39.975Z";
902
+ readonly description: "The date when metrics where last collected for the feature environment";
903
+ };
900
904
  };
901
905
  readonly components: {
902
906
  readonly schemas: {
@@ -1697,6 +1701,13 @@ export declare const healthReportSchema: {
1697
1701
  };
1698
1702
  readonly description: "A list of variants for the feature environment";
1699
1703
  };
1704
+ readonly lastSeenAt: {
1705
+ readonly type: "string";
1706
+ readonly format: "date-time";
1707
+ readonly nullable: true;
1708
+ readonly example: "2023-01-28T16:21:39.975Z";
1709
+ readonly description: "The date when metrics where last collected for the feature environment";
1710
+ };
1700
1711
  };
1701
1712
  readonly components: {
1702
1713
  readonly schemas: {
@@ -225,8 +225,9 @@ export declare const importTogglesSchema: {
225
225
  readonly type: "string";
226
226
  readonly format: "date-time";
227
227
  readonly nullable: true;
228
+ readonly deprecated: true;
228
229
  readonly example: "2023-01-28T16:21:39.975Z";
229
- readonly description: "The date when metrics where last collected for the feature";
230
+ readonly description: "The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema";
230
231
  };
231
232
  readonly environments: {
232
233
  readonly type: "array";
@@ -361,6 +362,13 @@ export declare const importTogglesSchema: {
361
362
  };
362
363
  readonly description: "A list of variants for the feature environment";
363
364
  };
365
+ readonly lastSeenAt: {
366
+ readonly type: "string";
367
+ readonly format: "date-time";
368
+ readonly nullable: true;
369
+ readonly example: "2023-01-28T16:21:39.975Z";
370
+ readonly description: "The date when metrics where last collected for the feature environment";
371
+ };
364
372
  };
365
373
  readonly components: {
366
374
  readonly schemas: {
@@ -1388,6 +1396,13 @@ export declare const importTogglesSchema: {
1388
1396
  };
1389
1397
  readonly description: "A list of variants for the feature environment";
1390
1398
  };
1399
+ readonly lastSeenAt: {
1400
+ readonly type: "string";
1401
+ readonly format: "date-time";
1402
+ readonly nullable: true;
1403
+ readonly example: "2023-01-28T16:21:39.975Z";
1404
+ readonly description: "The date when metrics where last collected for the feature environment";
1405
+ };
1391
1406
  };
1392
1407
  readonly components: {
1393
1408
  readonly schemas: {
@@ -1880,6 +1895,7 @@ export declare const importTogglesSchema: {
1880
1895
  readonly variantsSchema: {
1881
1896
  readonly $id: "#/components/schemas/variantsSchema";
1882
1897
  readonly type: "array";
1898
+ readonly description: "A list of variants";
1883
1899
  readonly items: {
1884
1900
  readonly $ref: "#/components/schemas/variantSchema";
1885
1901
  };
@@ -2279,8 +2295,9 @@ export declare const importTogglesSchema: {
2279
2295
  readonly type: "string";
2280
2296
  readonly format: "date-time";
2281
2297
  readonly nullable: true;
2298
+ readonly deprecated: true;
2282
2299
  readonly example: "2023-01-28T16:21:39.975Z";
2283
- readonly description: "The date when metrics where last collected for the feature";
2300
+ readonly description: "The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema";
2284
2301
  };
2285
2302
  readonly environments: {
2286
2303
  readonly type: "array";
@@ -2415,6 +2432,13 @@ export declare const importTogglesSchema: {
2415
2432
  };
2416
2433
  readonly description: "A list of variants for the feature environment";
2417
2434
  };
2435
+ readonly lastSeenAt: {
2436
+ readonly type: "string";
2437
+ readonly format: "date-time";
2438
+ readonly nullable: true;
2439
+ readonly example: "2023-01-28T16:21:39.975Z";
2440
+ readonly description: "The date when metrics where last collected for the feature environment";
2441
+ };
2418
2442
  };
2419
2443
  readonly components: {
2420
2444
  readonly schemas: {
@@ -3442,6 +3466,13 @@ export declare const importTogglesSchema: {
3442
3466
  };
3443
3467
  readonly description: "A list of variants for the feature environment";
3444
3468
  };
3469
+ readonly lastSeenAt: {
3470
+ readonly type: "string";
3471
+ readonly format: "date-time";
3472
+ readonly nullable: true;
3473
+ readonly example: "2023-01-28T16:21:39.975Z";
3474
+ readonly description: "The date when metrics where last collected for the feature environment";
3475
+ };
3445
3476
  };
3446
3477
  readonly components: {
3447
3478
  readonly schemas: {
@@ -4030,6 +4061,7 @@ export declare const importTogglesSchema: {
4030
4061
  readonly variantsSchema: {
4031
4062
  readonly $id: "#/components/schemas/variantsSchema";
4032
4063
  readonly type: "array";
4064
+ readonly description: "A list of variants";
4033
4065
  readonly items: {
4034
4066
  readonly $ref: "#/components/schemas/variantSchema";
4035
4067
  };
@@ -115,7 +115,8 @@ export * from './public-signup-token-schema';
115
115
  export * from './environments-project-schema';
116
116
  export * from './instance-admin-stats-schema';
117
117
  export * from './public-signup-tokens-schema';
118
- export * from './upsert-context-field-schema';
118
+ export * from './update-context-field-schema';
119
+ export * from './create-context-field-schema';
119
120
  export * from './validated-edge-tokens-schema';
120
121
  export * from './client-features-query-schema';
121
122
  export * from './admin-features-query-schema';
@@ -152,3 +153,4 @@ export * from './strategy-variant-schema';
152
153
  export * from './client-segment-schema';
153
154
  export * from './update-feature-type-lifetime-schema';
154
155
  export * from './create-group-schema';
156
+ export * from './application-usage-schema';
@@ -131,7 +131,8 @@ __exportStar(require("./public-signup-token-schema"), exports);
131
131
  __exportStar(require("./environments-project-schema"), exports);
132
132
  __exportStar(require("./instance-admin-stats-schema"), exports);
133
133
  __exportStar(require("./public-signup-tokens-schema"), exports);
134
- __exportStar(require("./upsert-context-field-schema"), exports);
134
+ __exportStar(require("./update-context-field-schema"), exports);
135
+ __exportStar(require("./create-context-field-schema"), exports);
135
136
  __exportStar(require("./validated-edge-tokens-schema"), exports);
136
137
  __exportStar(require("./client-features-query-schema"), exports);
137
138
  __exportStar(require("./admin-features-query-schema"), exports);
@@ -168,4 +169,5 @@ __exportStar(require("./strategy-variant-schema"), exports);
168
169
  __exportStar(require("./client-segment-schema"), exports);
169
170
  __exportStar(require("./update-feature-type-lifetime-schema"), exports);
170
171
  __exportStar(require("./create-group-schema"), exports);
172
+ __exportStar(require("./application-usage-schema"), exports);
171
173
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B;AAC7B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,gDAA8B;AAC9B,gEAA8C;AAC9C,iDAA+B;AAC/B,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,mDAAiC;AACjC,wDAAsC;AACtC,mDAAiC;AACjC,oDAAkC;AAClC,2DAAyC;AACzC,2DAAyC;AACzC,6DAA2C;AAC3C,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,y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AwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,6DAA2C;AAC3C,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C;AAC9C,gEAA8C;AAC9C,gEAA8C;AAC9C,gEAA8C;AAC9C,gEAA8C;AAC9C,iEAA+C;AAC/C,iEAA+C;AAC/C,gEAA8C;AAC9C,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,mEAAiD;AACjD,oEAAkD;AAClD,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,+DAA6C;AAC7C,yEAAuD;AACvD,yDAAuC;AACvC,wDAAsC;AACtC,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,wEAAsD;AACtD,mEAAiD;AACjD,0DAAwC;AACxC,yDAAuC;AACvC,0DAAwC;AACxC,0DAAwC;AACxC,6DAA2C;AAC3C,gEAA8C;AAC9C,uDAAqC;AACrC,uEAAqD;AACrD,wEAAsD;AACtD,uEAAqD;AACrD,8DAA4C;AAC5C,mEAAiD;AACjD,4DAA0C;AAC1C,0DAAwC;AACxC,wEAAsD;AACtD,wDAAsC;AACtC,6DAA2C"}
@@ -3,9 +3,11 @@ export declare const maintenanceSchema: {
3
3
  readonly $id: "#/components/schemas/maintenanceSchema";
4
4
  readonly type: "object";
5
5
  readonly additionalProperties: false;
6
+ readonly description: "The current state of Unleash's maintenance mode feature.";
6
7
  readonly required: readonly ["enabled"];
7
8
  readonly properties: {
8
9
  readonly enabled: {
10
+ readonly description: "Whether maintenance mode is enabled or not.";
9
11
  readonly type: "boolean";
10
12
  readonly example: true;
11
13
  };
@@ -5,9 +5,11 @@ exports.maintenanceSchema = {
5
5
  $id: '#/components/schemas/maintenanceSchema',
6
6
  type: 'object',
7
7
  additionalProperties: false,
8
+ description: "The current state of Unleash's maintenance mode feature.",
8
9
  required: ['enabled'],
9
10
  properties: {
10
11
  enabled: {
12
+ description: 'Whether maintenance mode is enabled or not.',
11
13
  type: 'boolean',
12
14
  example: true,
13
15
  },
@@ -1 +1 @@
1
- {"version":3,"file":"maintenance-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/maintenance-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAG;IAC7B,GAAG,EAAE,wCAAwC;IAC7C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SAChB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"maintenance-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/maintenance-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAG;IAC7B,GAAG,EAAE,wCAAwC;IAC7C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,0DAA0D;IACvE,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SAChB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -56,6 +56,7 @@ export declare const meSchema: {
56
56
  readonly description: "Name of the user";
57
57
  readonly type: "string";
58
58
  readonly example: "User";
59
+ readonly nullable: true;
59
60
  };
60
61
  readonly email: {
61
62
  readonly description: "Email of the user";
@@ -89,7 +90,7 @@ export declare const meSchema: {
89
90
  readonly example: false;
90
91
  };
91
92
  readonly rootRole: {
92
- readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned";
93
+ readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned";
93
94
  readonly type: "integer";
94
95
  readonly example: 1;
95
96
  readonly minimum: 0;
@@ -3,18 +3,29 @@ export declare const patchSchema: {
3
3
  readonly $id: "#/components/schemas/patchSchema";
4
4
  readonly type: "object";
5
5
  readonly required: readonly ["path", "op"];
6
+ readonly description: "A [JSON patch](https://www.rfc-editor.org/rfc/rfc6902) operation description";
6
7
  readonly properties: {
7
8
  readonly path: {
8
9
  readonly type: "string";
10
+ readonly description: "The path to the property to operate on";
11
+ readonly example: "/type";
9
12
  };
10
13
  readonly op: {
11
14
  readonly type: "string";
12
15
  readonly enum: readonly ["add", "remove", "replace", "copy", "move"];
16
+ readonly description: "The kind of operation to perform";
17
+ readonly example: "replace";
13
18
  };
14
19
  readonly from: {
15
20
  readonly type: "string";
21
+ readonly description: "The target to move or copy from, if performing one of those operations";
22
+ readonly example: "/type";
23
+ };
24
+ readonly value: {
25
+ readonly description: "The value to add or replace, if performing one of those operations";
26
+ readonly example: "kill-switch";
27
+ readonly nullable: true;
16
28
  };
17
- readonly value: {};
18
29
  };
19
30
  readonly components: {};
20
31
  };
@@ -5,18 +5,29 @@ exports.patchSchema = {
5
5
  $id: '#/components/schemas/patchSchema',
6
6
  type: 'object',
7
7
  required: ['path', 'op'],
8
+ description: 'A [JSON patch](https://www.rfc-editor.org/rfc/rfc6902) operation description',
8
9
  properties: {
9
10
  path: {
10
11
  type: 'string',
12
+ description: 'The path to the property to operate on',
13
+ example: '/type',
11
14
  },
12
15
  op: {
13
16
  type: 'string',
14
17
  enum: ['add', 'remove', 'replace', 'copy', 'move'],
18
+ description: 'The kind of operation to perform',
19
+ example: 'replace',
15
20
  },
16
21
  from: {
17
22
  type: 'string',
23
+ description: 'The target to move or copy from, if performing one of those operations',
24
+ example: '/type',
25
+ },
26
+ value: {
27
+ description: 'The value to add or replace, if performing one of those operations',
28
+ example: 'kill-switch',
29
+ nullable: true,
18
30
  },
19
- value: {},
20
31
  },
21
32
  components: {},
22
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"patch-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/patch-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;IACxB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,EAAE,EAAE;YACA,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;SACrD;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;SACjB;QACD,KAAK,EAAE,EAAE;KACZ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"patch-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/patch-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;IACxB,WAAW,EACP,8EAA8E;IAClF,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,OAAO;SACnB;QACD,EAAE,EAAE;YACA,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC;YAClD,WAAW,EAAE,kCAAkC;YAC/C,OAAO,EAAE,SAAS;SACrB;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,wEAAwE;YAC5E,OAAO,EAAE,OAAO;SACnB;QACD,KAAK,EAAE;YACH,WAAW,EACP,oEAAoE;YACxE,OAAO,EAAE,aAAa;YACtB,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -12,18 +12,29 @@ export declare const patchesSchema: {
12
12
  readonly $id: "#/components/schemas/patchSchema";
13
13
  readonly type: "object";
14
14
  readonly required: readonly ["path", "op"];
15
+ readonly description: "A [JSON patch](https://www.rfc-editor.org/rfc/rfc6902) operation description";
15
16
  readonly properties: {
16
17
  readonly path: {
17
18
  readonly type: "string";
19
+ readonly description: "The path to the property to operate on";
20
+ readonly example: "/type";
18
21
  };
19
22
  readonly op: {
20
23
  readonly type: "string";
21
24
  readonly enum: readonly ["add", "remove", "replace", "copy", "move"];
25
+ readonly description: "The kind of operation to perform";
26
+ readonly example: "replace";
22
27
  };
23
28
  readonly from: {
24
29
  readonly type: "string";
30
+ readonly description: "The target to move or copy from, if performing one of those operations";
31
+ readonly example: "/type";
32
+ };
33
+ readonly value: {
34
+ readonly description: "The value to add or replace, if performing one of those operations";
35
+ readonly example: "kill-switch";
36
+ readonly nullable: true;
25
37
  };
26
- readonly value: {};
27
38
  };
28
39
  readonly components: {};
29
40
  };
@@ -102,6 +102,7 @@ export declare const playgroundFeatureSchema: {
102
102
  readonly playgroundStrategySchema: {
103
103
  readonly $id: "#/components/schemas/playgroundStrategySchema";
104
104
  readonly type: "object";
105
+ readonly description: "An evaluated feature toggle strategy as used by the Playground";
105
106
  readonly additionalProperties: false;
106
107
  readonly required: readonly ["id", "name", "result", "segments", "constraints", "parameters", "disabled", "links"];
107
108
  readonly properties: {
@@ -299,6 +300,7 @@ export declare const playgroundFeatureSchema: {
299
300
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
300
301
  readonly type: "object";
301
302
  readonly additionalProperties: false;
303
+ readonly description: "The evaluated result of a segment as used by the Playground.";
302
304
  readonly required: readonly ["name", "id", "constraints", "result"];
303
305
  readonly properties: {
304
306
  readonly id: {
@@ -548,6 +550,7 @@ export declare const playgroundFeatureSchema: {
548
550
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
549
551
  readonly type: "object";
550
552
  readonly additionalProperties: false;
553
+ readonly description: "The evaluated result of a segment as used by the Playground.";
551
554
  readonly required: readonly ["name", "id", "constraints", "result"];
552
555
  readonly properties: {
553
556
  readonly id: {
@@ -35,7 +35,6 @@ export declare const playgroundRequestSchema: {
35
35
  readonly $id: "#/components/schemas/sdkContextSchema";
36
36
  readonly description: "The Unleash context as modeled in client SDKs";
37
37
  readonly type: "object";
38
- readonly additionalProperties: true;
39
38
  readonly required: readonly ["appName"];
40
39
  readonly properties: {
41
40
  readonly appName: {
@@ -60,6 +59,7 @@ export declare const playgroundRequestSchema: {
60
59
  readonly additionalProperties: {
61
60
  readonly type: "string";
62
61
  };
62
+ readonly description: "Additional Unleash context properties";
63
63
  readonly example: {
64
64
  readonly customContextField: "this is one!";
65
65
  readonly otherCustomField: "3";
@@ -223,6 +223,7 @@ export declare const playgroundResponseSchema: {
223
223
  readonly playgroundStrategySchema: {
224
224
  readonly $id: "#/components/schemas/playgroundStrategySchema";
225
225
  readonly type: "object";
226
+ readonly description: "An evaluated feature toggle strategy as used by the Playground";
226
227
  readonly additionalProperties: false;
227
228
  readonly required: readonly ["id", "name", "result", "segments", "constraints", "parameters", "disabled", "links"];
228
229
  readonly properties: {
@@ -420,6 +421,7 @@ export declare const playgroundResponseSchema: {
420
421
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
421
422
  readonly type: "object";
422
423
  readonly additionalProperties: false;
424
+ readonly description: "The evaluated result of a segment as used by the Playground.";
423
425
  readonly required: readonly ["name", "id", "constraints", "result"];
424
426
  readonly properties: {
425
427
  readonly id: {
@@ -669,6 +671,7 @@ export declare const playgroundResponseSchema: {
669
671
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
670
672
  readonly type: "object";
671
673
  readonly additionalProperties: false;
674
+ readonly description: "The evaluated result of a segment as used by the Playground.";
672
675
  readonly required: readonly ["name", "id", "constraints", "result"];
673
676
  readonly properties: {
674
677
  readonly id: {
@@ -908,7 +911,6 @@ export declare const playgroundResponseSchema: {
908
911
  readonly $id: "#/components/schemas/sdkContextSchema";
909
912
  readonly description: "The Unleash context as modeled in client SDKs";
910
913
  readonly type: "object";
911
- readonly additionalProperties: true;
912
914
  readonly required: readonly ["appName"];
913
915
  readonly properties: {
914
916
  readonly appName: {
@@ -933,6 +935,7 @@ export declare const playgroundResponseSchema: {
933
935
  readonly additionalProperties: {
934
936
  readonly type: "string";
935
937
  };
938
+ readonly description: "Additional Unleash context properties";
936
939
  readonly example: {
937
940
  readonly customContextField: "this is one!";
938
941
  readonly otherCustomField: "3";
@@ -963,6 +966,7 @@ export declare const playgroundResponseSchema: {
963
966
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
964
967
  readonly type: "object";
965
968
  readonly additionalProperties: false;
969
+ readonly description: "The evaluated result of a segment as used by the Playground.";
966
970
  readonly required: readonly ["name", "id", "constraints", "result"];
967
971
  readonly properties: {
968
972
  readonly id: {
@@ -1042,6 +1046,7 @@ export declare const playgroundResponseSchema: {
1042
1046
  readonly playgroundStrategySchema: {
1043
1047
  readonly $id: "#/components/schemas/playgroundStrategySchema";
1044
1048
  readonly type: "object";
1049
+ readonly description: "An evaluated feature toggle strategy as used by the Playground";
1045
1050
  readonly additionalProperties: false;
1046
1051
  readonly required: readonly ["id", "name", "result", "segments", "constraints", "parameters", "disabled", "links"];
1047
1052
  readonly properties: {
@@ -1239,6 +1244,7 @@ export declare const playgroundResponseSchema: {
1239
1244
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
1240
1245
  readonly type: "object";
1241
1246
  readonly additionalProperties: false;
1247
+ readonly description: "The evaluated result of a segment as used by the Playground.";
1242
1248
  readonly required: readonly ["name", "id", "constraints", "result"];
1243
1249
  readonly properties: {
1244
1250
  readonly id: {
@@ -1440,7 +1446,6 @@ export declare const playgroundResponseSchema: {
1440
1446
  readonly $id: "#/components/schemas/sdkContextSchema";
1441
1447
  readonly description: "The Unleash context as modeled in client SDKs";
1442
1448
  readonly type: "object";
1443
- readonly additionalProperties: true;
1444
1449
  readonly required: readonly ["appName"];
1445
1450
  readonly properties: {
1446
1451
  readonly appName: {
@@ -1465,6 +1470,7 @@ export declare const playgroundResponseSchema: {
1465
1470
  readonly additionalProperties: {
1466
1471
  readonly type: "string";
1467
1472
  };
1473
+ readonly description: "Additional Unleash context properties";
1468
1474
  readonly example: {
1469
1475
  readonly customContextField: "this is one!";
1470
1476
  readonly otherCustomField: "3";
@@ -3,6 +3,7 @@ export declare const playgroundSegmentSchema: {
3
3
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
4
4
  readonly type: "object";
5
5
  readonly additionalProperties: false;
6
+ readonly description: "The evaluated result of a segment as used by the Playground.";
6
7
  readonly required: readonly ["name", "id", "constraints", "result"];
7
8
  readonly properties: {
8
9
  readonly id: {
@@ -6,6 +6,7 @@ exports.playgroundSegmentSchema = {
6
6
  $id: '#/components/schemas/playgroundSegmentSchema',
7
7
  type: 'object',
8
8
  additionalProperties: false,
9
+ description: 'The evaluated result of a segment as used by the Playground.',
9
10
  required: ['name', 'id', 'constraints', 'result'],
10
11
  properties: {
11
12
  id: {
@@ -1 +1 @@
1
- {"version":3,"file":"playground-segment-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-segment-schema.ts"],"names":[],"mappings":";;;AACA,iFAA4E;AAE/D,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC;IACjD,UAAU,EAAE;QACR,EAAE,EAAE;YACA,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE,WAAW;YACpB,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,SAAS;SAClB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE,EAAE,IAAI,EAAE,yDAA0B,CAAC,GAAG,EAAE;SAClD;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,0BAA0B,EAA1B,yDAA0B;SAC7B;KACJ;CACK,CAAC"}
1
+ {"version":3,"file":"playground-segment-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-segment-schema.ts"],"names":[],"mappings":";;;AACA,iFAA4E;AAE/D,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,8DAA8D;IAC3E,QAAQ,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC;IACjD,UAAU,EAAE;QACR,EAAE,EAAE;YACA,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,SAAS;SAClB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,0BAA0B;YACvC,OAAO,EAAE,WAAW;YACpB,IAAI,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,SAAS;SAClB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE,EAAE,IAAI,EAAE,yDAA0B,CAAC,GAAG,EAAE;SAClD;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,0BAA0B,EAA1B,yDAA0B;SAC7B;KACJ;CACK,CAAC"}
@@ -93,6 +93,7 @@ export declare const strategyEvaluationResults: {
93
93
  export declare const playgroundStrategySchema: {
94
94
  readonly $id: "#/components/schemas/playgroundStrategySchema";
95
95
  readonly type: "object";
96
+ readonly description: "An evaluated feature toggle strategy as used by the Playground";
96
97
  readonly additionalProperties: false;
97
98
  readonly required: readonly ["id", "name", "result", "segments", "constraints", "parameters", "disabled", "links"];
98
99
  readonly properties: {
@@ -290,6 +291,7 @@ export declare const playgroundStrategySchema: {
290
291
  readonly $id: "#/components/schemas/playgroundSegmentSchema";
291
292
  readonly type: "object";
292
293
  readonly additionalProperties: false;
294
+ readonly description: "The evaluated result of a segment as used by the Playground.";
293
295
  readonly required: readonly ["name", "id", "constraints", "result"];
294
296
  readonly properties: {
295
297
  readonly id: {
@@ -101,6 +101,7 @@ exports.strategyEvaluationResults = {
101
101
  exports.playgroundStrategySchema = {
102
102
  $id: '#/components/schemas/playgroundStrategySchema',
103
103
  type: 'object',
104
+ description: 'An evaluated feature toggle strategy as used by the Playground',
104
105
  additionalProperties: false,
105
106
  required: [
106
107
  'id',
@@ -1 +1 @@
1
- {"version":3,"file":"playground-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-strategy-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,iFAA4E;AAC5E,2EAAsE;AACtE,qDAAiD;AACjD,uDAAmD;AAEtC,QAAA,4BAA4B,GAAG;IACxC,kBAAkB,EAAE,UAAU;IAC9B,oBAAoB,EAAE,YAAY;IAClC,aAAa,EAAE,SAAS;CAClB,CAAC;AAEE,QAAA,yBAAyB,GAAG;IACrC,KAAK,EAAE;QACH;YACI,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B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,SAAS;YACf,WAAW,EACP,8DAA8D;YAClE,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,uDAAuD;YAC3D,KAAK,EAAE;gBACH,IAAI,EAAE,mDAAuB,CAAC,GAAG;aACpC;SACJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EACP,0DAA0D;YAC9D,KAAK,EAAE;gBACH,IAAI,EAAE,yDAA0B,CAAC,GAAG;aACvC;SACJ;QACD,UAAU,EAAE;YACR,WAAW,EACP,0DAA0D;YAC9D,OAAO,EAAE;gBACL,QAAQ,EAAE,aAAa;aAC1B;YACD,IAAI,EAAE,oCAAgB,CAAC,GAAG;SAC7B;QACD,KAAK,EAAE;YACH,WAAW,EACP,4DAA4D;YAChE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,MAAM,CAAC;YAClB,UAAU,EAAE;gBACR,IAAI,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,OAAO,EACH,sIAAsI;iBAC7I;aACJ;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,0BAA0B,EAA1B,yDAA0B;YAC1B,uBAAuB,EAAvB,mDAAuB;YACvB,gBAAgB,EAAhB,oCAAgB;YAChB,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
1
+ {"version":3,"file":"playground-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/playground-strategy-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,iFAA4E;AAC5E,2EAAsE;AACtE,qDAAiD;AACjD,uDAAmD;AAEtC,QAAA,4BAA4B,GAAG;IACxC,kBAAkB,EAAE,UAAU;IAC9B,oBAAoB,EAAE,YAAY;IAClC,aAAa,EAAE,SAAS;CAClB,CAAC;AAEE,QAAA,yBAAyB,GAAG;IACrC,KAAK,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