unleash-server 5.3.4 → 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 -4
  4. package/dist/lib/addons/slack-app.js +46 -68
  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 +12 -13
  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
@@ -2,6 +2,7 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const applicationSchema: {
3
3
  readonly $id: "#/components/schemas/applicationSchema";
4
4
  readonly type: "object";
5
+ readonly description: "Data about an application that's connected to Unleash via an SDK.";
5
6
  readonly additionalProperties: false;
6
7
  readonly required: readonly ["appName"];
7
8
  readonly properties: {
@@ -43,7 +44,38 @@ export declare const applicationSchema: {
43
44
  readonly type: "string";
44
45
  readonly example: "https://github.com/favicon.ico";
45
46
  };
47
+ readonly usage: {
48
+ readonly description: "The list of projects the application has been using.";
49
+ readonly type: "array";
50
+ readonly items: {
51
+ readonly $ref: "#/components/schemas/applicationUsageSchema";
52
+ };
53
+ };
54
+ };
55
+ readonly components: {
56
+ readonly applicationUsageSchema: {
57
+ readonly $id: "#/components/schemas/applicationUsageSchema";
58
+ readonly type: "object";
59
+ readonly description: "Data about an project that have been used by applications.";
60
+ readonly additionalProperties: false;
61
+ readonly required: readonly ["project", "environments"];
62
+ readonly properties: {
63
+ readonly project: {
64
+ readonly description: "Name of the project";
65
+ readonly type: "string";
66
+ readonly example: "main-project";
67
+ };
68
+ readonly environments: {
69
+ readonly description: "Which environments have been accessed in this project.";
70
+ readonly type: "array";
71
+ readonly items: {
72
+ readonly type: "string";
73
+ };
74
+ readonly example: readonly ["development", "production"];
75
+ };
76
+ };
77
+ readonly components: {};
78
+ };
46
79
  };
47
- readonly components: {};
48
80
  };
49
81
  export declare type ApplicationSchema = FromSchema<typeof applicationSchema>;
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.applicationSchema = void 0;
4
+ const application_usage_schema_1 = require("./application-usage-schema");
4
5
  exports.applicationSchema = {
5
6
  $id: '#/components/schemas/applicationSchema',
6
7
  type: 'object',
8
+ description: "Data about an application that's connected to Unleash via an SDK.",
7
9
  additionalProperties: false,
8
10
  required: ['appName'],
9
11
  properties: {
@@ -45,7 +47,16 @@ exports.applicationSchema = {
45
47
  type: 'string',
46
48
  example: 'https://github.com/favicon.ico',
47
49
  },
50
+ usage: {
51
+ description: 'The list of projects the application has been using.',
52
+ type: 'array',
53
+ items: {
54
+ $ref: '#/components/schemas/applicationUsageSchema',
55
+ },
56
+ },
57
+ },
58
+ components: {
59
+ applicationUsageSchema: application_usage_schema_1.applicationUsageSchema,
48
60
  },
49
- components: {},
50
61
  };
51
62
  //# sourceMappingURL=application-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/application-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,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;SACxB;QACD,UAAU,EAAE;YACR,WAAW,EACP,yGAAyG;YAC7G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,2BAA2B;SACvC;QACD,UAAU,EAAE;YACR,WAAW,EACP,yRAAyR;YAC7R,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,yBAAyB,CAAC;SACrE;QACD,WAAW,EAAE;YACT,WAAW,EACP,4HAA4H;YAChI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,uCAAuC;SACnD;QACD,GAAG,EAAE;YACD,WAAW,EACP,qIAAqI;YACzI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oDAAoD;SAChE;QACD,KAAK,EAAE;YACH,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,KAAK;SACjB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,wFAAwF;YACrG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,gCAAgC;SAC5C;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"application-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/application-schema.ts"],"names":[],"mappings":";;;AACA,yEAAoE;AAEvD,QAAA,iBAAiB,GAAG;IAC7B,GAAG,EAAE,wCAAwC;IAC7C,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,mEAAmE;IACvE,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;SACxB;QACD,UAAU,EAAE;YACR,WAAW,EACP,yGAAyG;YAC7G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,2BAA2B;SACvC;QACD,UAAU,EAAE;YACR,WAAW,EACP,yRAAyR;YAC7R,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,yBAAyB,CAAC;SACrE;QACD,WAAW,EAAE;YACT,WAAW,EACP,4HAA4H;YAChI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,uCAAuC;SACnD;QACD,GAAG,EAAE;YACD,WAAW,EACP,qIAAqI;YACzI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oDAAoD;SAChE;QACD,KAAK,EAAE;YACH,WAAW,EAAE,qFAAqF;YAClG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,KAAK;SACjB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,wFAAwF;YACrG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,gCAAgC;SAC5C;QACD,KAAK,EAAE;YACH,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,6CAA6C;aACtD;SACJ;KACJ;IACD,UAAU,EAAE;QACR,sBAAsB,EAAtB,iDAAsB;KACzB;CACK,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { FromSchema } from 'json-schema-to-ts';
2
+ export declare const applicationUsageSchema: {
3
+ readonly $id: "#/components/schemas/applicationUsageSchema";
4
+ readonly type: "object";
5
+ readonly description: "Data about an project that have been used by applications.";
6
+ readonly additionalProperties: false;
7
+ readonly required: readonly ["project", "environments"];
8
+ readonly properties: {
9
+ readonly project: {
10
+ readonly description: "Name of the project";
11
+ readonly type: "string";
12
+ readonly example: "main-project";
13
+ };
14
+ readonly environments: {
15
+ readonly description: "Which environments have been accessed in this project.";
16
+ readonly type: "array";
17
+ readonly items: {
18
+ readonly type: "string";
19
+ };
20
+ readonly example: readonly ["development", "production"];
21
+ };
22
+ };
23
+ readonly components: {};
24
+ };
25
+ export declare type ApplicationUsageSchema = FromSchema<typeof applicationUsageSchema>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applicationUsageSchema = void 0;
4
+ exports.applicationUsageSchema = {
5
+ $id: '#/components/schemas/applicationUsageSchema',
6
+ type: 'object',
7
+ description: 'Data about an project that have been used by applications.',
8
+ additionalProperties: false,
9
+ required: ['project', 'environments'],
10
+ properties: {
11
+ project: {
12
+ description: 'Name of the project',
13
+ type: 'string',
14
+ example: 'main-project',
15
+ },
16
+ environments: {
17
+ description: 'Which environments have been accessed in this project.',
18
+ type: 'array',
19
+ items: {
20
+ type: 'string',
21
+ },
22
+ example: ['development', 'production'],
23
+ },
24
+ },
25
+ components: {},
26
+ };
27
+ //# sourceMappingURL=application-usage-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-usage-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/application-usage-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAG;IAClC,GAAG,EAAE,6CAA6C;IAClD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,4DAA4D;IACzE,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC;IACrC,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,cAAc;SAC1B;QACD,YAAY,EAAE;YACV,WAAW,EACP,wDAAwD;YAC5D,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,aAAa,EAAE,YAAY,CAAC;SACzC;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -2,10 +2,11 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const applicationsSchema: {
3
3
  readonly $id: "#/components/schemas/applicationsSchema";
4
4
  readonly additionalProperties: false;
5
+ readonly description: "An object containing a list of applications that have connected to Unleash via an SDK.";
5
6
  readonly type: "object";
6
7
  readonly properties: {
7
8
  readonly applications: {
8
- readonly description: "Contains a list of applications that have connected via an SDK";
9
+ readonly description: "The list of applications that have connected to this Unleash instance.";
9
10
  readonly type: "array";
10
11
  readonly items: {
11
12
  readonly $ref: "#/components/schemas/applicationSchema";
@@ -17,6 +18,7 @@ export declare const applicationsSchema: {
17
18
  readonly applicationSchema: {
18
19
  readonly $id: "#/components/schemas/applicationSchema";
19
20
  readonly type: "object";
21
+ readonly description: "Data about an application that's connected to Unleash via an SDK.";
20
22
  readonly additionalProperties: false;
21
23
  readonly required: readonly ["appName"];
22
24
  readonly properties: {
@@ -58,6 +60,60 @@ export declare const applicationsSchema: {
58
60
  readonly type: "string";
59
61
  readonly example: "https://github.com/favicon.ico";
60
62
  };
63
+ readonly usage: {
64
+ readonly description: "The list of projects the application has been using.";
65
+ readonly type: "array";
66
+ readonly items: {
67
+ readonly $ref: "#/components/schemas/applicationUsageSchema";
68
+ };
69
+ };
70
+ };
71
+ readonly components: {
72
+ readonly applicationUsageSchema: {
73
+ readonly $id: "#/components/schemas/applicationUsageSchema";
74
+ readonly type: "object";
75
+ readonly description: "Data about an project that have been used by applications.";
76
+ readonly additionalProperties: false;
77
+ readonly required: readonly ["project", "environments"];
78
+ readonly properties: {
79
+ readonly project: {
80
+ readonly description: "Name of the project";
81
+ readonly type: "string";
82
+ readonly example: "main-project";
83
+ };
84
+ readonly environments: {
85
+ readonly description: "Which environments have been accessed in this project.";
86
+ readonly type: "array";
87
+ readonly items: {
88
+ readonly type: "string";
89
+ };
90
+ readonly example: readonly ["development", "production"];
91
+ };
92
+ };
93
+ readonly components: {};
94
+ };
95
+ };
96
+ };
97
+ readonly applicationUsageSchema: {
98
+ readonly $id: "#/components/schemas/applicationUsageSchema";
99
+ readonly type: "object";
100
+ readonly description: "Data about an project that have been used by applications.";
101
+ readonly additionalProperties: false;
102
+ readonly required: readonly ["project", "environments"];
103
+ readonly properties: {
104
+ readonly project: {
105
+ readonly description: "Name of the project";
106
+ readonly type: "string";
107
+ readonly example: "main-project";
108
+ };
109
+ readonly environments: {
110
+ readonly description: "Which environments have been accessed in this project.";
111
+ readonly type: "array";
112
+ readonly items: {
113
+ readonly type: "string";
114
+ };
115
+ readonly example: readonly ["development", "production"];
116
+ };
61
117
  };
62
118
  readonly components: {};
63
119
  };
@@ -2,13 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.applicationsSchema = void 0;
4
4
  const application_schema_1 = require("./application-schema");
5
+ const application_usage_schema_1 = require("./application-usage-schema");
5
6
  exports.applicationsSchema = {
6
7
  $id: '#/components/schemas/applicationsSchema',
7
8
  additionalProperties: false,
9
+ description: 'An object containing a list of applications that have connected to Unleash via an SDK.',
8
10
  type: 'object',
9
11
  properties: {
10
12
  applications: {
11
- description: 'Contains a list of applications that have connected via an SDK',
13
+ description: 'The list of applications that have connected to this Unleash instance.',
12
14
  type: 'array',
13
15
  items: {
14
16
  $ref: '#/components/schemas/applicationSchema',
@@ -18,6 +20,7 @@ exports.applicationsSchema = {
18
20
  components: {
19
21
  schemas: {
20
22
  applicationSchema: application_schema_1.applicationSchema,
23
+ applicationUsageSchema: application_usage_schema_1.applicationUsageSchema,
21
24
  },
22
25
  },
23
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"applications-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/applications-schema.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AAG5C,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,oBAAoB,EAAE,KAAK;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,YAAY,EAAE;YACV,WAAW,EACP,gEAAgE;YACpE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,wCAAwC;aACjD;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,iBAAiB,EAAjB,sCAAiB;SACpB;KACJ;CACK,CAAC"}
1
+ {"version":3,"file":"applications-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/applications-schema.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AAEzD,yEAAoE;AAEvD,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EACP,wFAAwF;IAC5F,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,YAAY,EAAE;YACV,WAAW,EACP,wEAAwE;YAC5E,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,wCAAwC;aACjD;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,iBAAiB,EAAjB,sCAAiB;YACjB,sBAAsB,EAAtB,iDAAsB;SACzB;KACJ;CACK,CAAC"}
@@ -91,11 +91,16 @@ export declare const bulkMetricsSchema: {
91
91
  readonly schemas: {
92
92
  readonly dateSchema: {
93
93
  readonly $id: "#/components/schemas/dateSchema";
94
+ readonly description: "A representation of a date. Either as a date-time string or as a UNIX timestamp.";
94
95
  readonly oneOf: readonly [{
95
96
  readonly type: "string";
96
97
  readonly format: "date-time";
98
+ readonly description: "An [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339.html)-compliant timestamp.";
99
+ readonly example: "2023-07-27T11:23:44Z";
97
100
  }, {
98
- readonly type: "number";
101
+ readonly type: "integer";
102
+ readonly description: "A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time).";
103
+ readonly example: 1690449593;
99
104
  }];
100
105
  readonly components: {};
101
106
  };
@@ -104,11 +109,16 @@ export declare const bulkMetricsSchema: {
104
109
  };
105
110
  readonly dateSchema: {
106
111
  readonly $id: "#/components/schemas/dateSchema";
112
+ readonly description: "A representation of a date. Either as a date-time string or as a UNIX timestamp.";
107
113
  readonly oneOf: readonly [{
108
114
  readonly type: "string";
109
115
  readonly format: "date-time";
116
+ readonly description: "An [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339.html)-compliant timestamp.";
117
+ readonly example: "2023-07-27T11:23:44Z";
110
118
  }, {
111
- readonly type: "number";
119
+ readonly type: "integer";
120
+ readonly description: "A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time).";
121
+ readonly example: 1690449593;
112
122
  }];
113
123
  readonly components: {};
114
124
  };
@@ -116,7 +126,6 @@ export declare const bulkMetricsSchema: {
116
126
  readonly $id: "#/components/schemas/clientMetricsEnvSchema";
117
127
  readonly type: "object";
118
128
  readonly required: readonly ["featureName", "appName", "environment"];
119
- readonly additionalProperties: true;
120
129
  readonly description: "Used for reporting feature evaluation results from SDKs";
121
130
  readonly properties: {
122
131
  readonly featureName: {
@@ -169,11 +178,16 @@ export declare const bulkMetricsSchema: {
169
178
  readonly schemas: {
170
179
  readonly dateSchema: {
171
180
  readonly $id: "#/components/schemas/dateSchema";
181
+ readonly description: "A representation of a date. Either as a date-time string or as a UNIX timestamp.";
172
182
  readonly oneOf: readonly [{
173
183
  readonly type: "string";
174
184
  readonly format: "date-time";
185
+ readonly description: "An [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339.html)-compliant timestamp.";
186
+ readonly example: "2023-07-27T11:23:44Z";
175
187
  }, {
176
- readonly type: "number";
188
+ readonly type: "integer";
189
+ readonly description: "A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time).";
190
+ readonly example: 1690449593;
177
191
  }];
178
192
  readonly components: {};
179
193
  };
@@ -68,11 +68,16 @@ export declare const bulkRegistrationSchema: {
68
68
  readonly schemas: {
69
69
  readonly dateSchema: {
70
70
  readonly $id: "#/components/schemas/dateSchema";
71
+ readonly description: "A representation of a date. Either as a date-time string or as a UNIX timestamp.";
71
72
  readonly oneOf: readonly [{
72
73
  readonly type: "string";
73
74
  readonly format: "date-time";
75
+ readonly description: "An [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339.html)-compliant timestamp.";
76
+ readonly example: "2023-07-27T11:23:44Z";
74
77
  }, {
75
- readonly type: "number";
78
+ readonly type: "integer";
79
+ readonly description: "A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time).";
80
+ readonly example: 1690449593;
76
81
  }];
77
82
  readonly components: {};
78
83
  };
@@ -3,7 +3,6 @@ export declare const clientMetricsEnvSchema: {
3
3
  readonly $id: "#/components/schemas/clientMetricsEnvSchema";
4
4
  readonly type: "object";
5
5
  readonly required: readonly ["featureName", "appName", "environment"];
6
- readonly additionalProperties: true;
7
6
  readonly description: "Used for reporting feature evaluation results from SDKs";
8
7
  readonly properties: {
9
8
  readonly featureName: {
@@ -56,11 +55,16 @@ export declare const clientMetricsEnvSchema: {
56
55
  readonly schemas: {
57
56
  readonly dateSchema: {
58
57
  readonly $id: "#/components/schemas/dateSchema";
58
+ readonly description: "A representation of a date. Either as a date-time string or as a UNIX timestamp.";
59
59
  readonly oneOf: readonly [{
60
60
  readonly type: "string";
61
61
  readonly format: "date-time";
62
+ readonly description: "An [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339.html)-compliant timestamp.";
63
+ readonly example: "2023-07-27T11:23:44Z";
62
64
  }, {
63
- readonly type: "number";
65
+ readonly type: "integer";
66
+ readonly description: "A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time).";
67
+ readonly example: 1690449593;
64
68
  }];
65
69
  readonly components: {};
66
70
  };
@@ -6,7 +6,6 @@ exports.clientMetricsEnvSchema = {
6
6
  $id: '#/components/schemas/clientMetricsEnvSchema',
7
7
  type: 'object',
8
8
  required: ['featureName', 'appName', 'environment'],
9
- additionalProperties: true,
10
9
  description: 'Used for reporting feature evaluation results from SDKs',
11
10
  properties: {
12
11
  featureName: {
@@ -1 +1 @@
1
- {"version":3,"file":"client-metrics-env-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-metrics-env-schema.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAG9B,QAAA,sBAAsB,GAAG;IAClC,GAAG,EAAE,6CAA6C;IAClD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC;IACnD,oBAAoB,EAAE,IAAI;IAC1B,WAAW,EAAE,yDAAyD;IACtE,UAAU,EAAE;QACR,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,oBAAoB;SAChC;QACD,OAAO,EAAE;YACL,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;SACxB;QACD,WAAW,EAAE;YACT,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;SACzB;QACD,SAAS,EAAE;YACP,WAAW,EACP,qFAAqF;YACzF,OAAO,EAAE,0BAA0B;YACnC,IAAI,EAAE,iCAAiC;SAC1C;QACD,GAAG,EAAE;YACD,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,CAAC;SACb;QACD,EAAE,EAAE;YACA,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,CAAC;SACb;QACD,QAAQ,EAAE;YACN,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE;gBAClB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;aACb;YACD,OAAO,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,QAAQ,EAAE,EAAE;gBACZ,QAAQ,EAAE,CAAC;aACd;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,UAAU,EAAV,wBAAU;SACb;KACJ;CACK,CAAC"}
1
+ {"version":3,"file":"client-metrics-env-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-metrics-env-schema.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAG9B,QAAA,sBAAsB,GAAG;IAClC,GAAG,EAAE,6CAA6C;IAClD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,aAAa,CAAC;IACnD,WAAW,EAAE,yDAAyD;IACtE,UAAU,EAAE;QACR,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wCAAwC;YACrD,OAAO,EAAE,oBAAoB;SAChC;QACD,OAAO,EAAE;YACL,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;SACxB;QACD,WAAW,EAAE;YACT,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;SACzB;QACD,SAAS,EAAE;YACP,WAAW,EACP,qFAAqF;YACzF,OAAO,EAAE,0BAA0B;YACnC,IAAI,EAAE,iCAAiC;SAC1C;QACD,GAAG,EAAE;YACD,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,CAAC;SACb;QACD,EAAE,EAAE;YACA,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,CAAC;SACb;QACD,QAAQ,EAAE;YACN,WAAW,EAAE,0CAA0C;YACvD,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE;gBAClB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC;aACb;YACD,OAAO,EAAE;gBACL,QAAQ,EAAE,EAAE;gBACZ,QAAQ,EAAE,EAAE;gBACZ,QAAQ,EAAE,CAAC;aACd;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,UAAU,EAAV,wBAAU;SACb;KACJ;CACK,CAAC"}
@@ -91,11 +91,16 @@ export declare const clientMetricsSchema: {
91
91
  readonly schemas: {
92
92
  readonly dateSchema: {
93
93
  readonly $id: "#/components/schemas/dateSchema";
94
+ readonly description: "A representation of a date. Either as a date-time string or as a UNIX timestamp.";
94
95
  readonly oneOf: readonly [{
95
96
  readonly type: "string";
96
97
  readonly format: "date-time";
98
+ readonly description: "An [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339.html)-compliant timestamp.";
99
+ readonly example: "2023-07-27T11:23:44Z";
97
100
  }, {
98
- readonly type: "number";
101
+ readonly type: "integer";
102
+ readonly description: "A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time).";
103
+ readonly example: 1690449593;
99
104
  }];
100
105
  readonly components: {};
101
106
  };
@@ -2,7 +2,6 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const createApplicationSchema: {
3
3
  readonly $id: "#/components/schemas/createApplicationSchema";
4
4
  readonly type: "object";
5
- readonly additionalProperties: true;
6
5
  readonly description: "Reported application information from Unleash SDKs";
7
6
  readonly properties: {
8
7
  readonly appName: {
@@ -4,7 +4,6 @@ exports.createApplicationSchema = void 0;
4
4
  exports.createApplicationSchema = {
5
5
  $id: '#/components/schemas/createApplicationSchema',
6
6
  type: 'object',
7
- additionalProperties: true,
8
7
  description: 'Reported application information from Unleash SDKs',
9
8
  properties: {
10
9
  appName: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-application-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-application-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,IAAI;IAC1B,WAAW,EAAE,oDAAoD;IACjE,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;SACxB;QACD,UAAU,EAAE;YACR,WAAW,EACP,yGAAyG;YAC7G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,2BAA2B;SACvC;QACD,UAAU,EAAE;YACR,WAAW,EACP,yRAAyR;YAC7R,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,yBAAyB,CAAC;SACrE;QACD,GAAG,EAAE;YACD,WAAW,EACP,qIAAqI;YACzI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oDAAoD;SAChE;QACD,KAAK,EAAE;YACH,WAAW,EAAE,+EAA+E;YAC5F,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,KAAK;SACjB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,wFAAwF;YACrG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,gCAAgC;SAC5C;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"create-application-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-application-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,oDAAoD;IACjE,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;SACxB;QACD,UAAU,EAAE;YACR,WAAW,EACP,yGAAyG;YAC7G,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,2BAA2B;SACvC;QACD,UAAU,EAAE;YACR,WAAW,EACP,yRAAyR;YAC7R,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,yBAAyB,CAAC;SACrE;QACD,GAAG,EAAE;YACD,WAAW,EACP,qIAAqI;YACzI,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,oDAAoD;SAChE;QACD,KAAK,EAAE;YACH,WAAW,EAAE,+EAA+E;YAC5F,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,KAAK;SACjB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,wFAAwF;YACrG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,gCAAgC;SAC5C;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { FromSchema } from 'json-schema-to-ts';
2
+ export declare const createContextFieldSchema: {
3
+ readonly $id: "#/components/schemas/createContextFieldSchema";
4
+ readonly description: "Data used to create a context field configuration.";
5
+ readonly required: readonly ["name"];
6
+ readonly properties: {
7
+ readonly name: {
8
+ readonly description: "The name of the context field.";
9
+ readonly type: "string";
10
+ readonly example: "subscriptionTier";
11
+ };
12
+ readonly description: {
13
+ readonly type: "string";
14
+ readonly description: "A description of the context field";
15
+ readonly example: "The user's subscription tier";
16
+ };
17
+ readonly stickiness: {
18
+ readonly type: "boolean";
19
+ readonly description: "`true` if this field should be available for use with [custom stickiness](https://docs.getunleash.io/reference/stickiness#custom-stickiness), otherwise `false`";
20
+ readonly example: false;
21
+ };
22
+ readonly sortOrder: {
23
+ readonly type: "integer";
24
+ readonly description: "How this context field should be sorted if no other sort order is selected";
25
+ readonly example: 2;
26
+ };
27
+ readonly legalValues: {
28
+ readonly type: "array";
29
+ readonly description: "A list of allowed values for this context field";
30
+ readonly example: readonly [{
31
+ readonly value: "gold";
32
+ }, {
33
+ readonly value: "silver";
34
+ }, {
35
+ readonly value: "crystal";
36
+ }];
37
+ readonly items: {
38
+ readonly $ref: "#/components/schemas/legalValueSchema";
39
+ };
40
+ };
41
+ };
42
+ readonly type: "object";
43
+ readonly components: {
44
+ readonly schemas: {
45
+ readonly legalValueSchema: {
46
+ readonly $id: "#/components/schemas/legalValueSchema";
47
+ readonly type: "object";
48
+ readonly additionalProperties: false;
49
+ readonly description: "Describes a legal value. Typically used to limit possible values for contextFields or strategy properties";
50
+ readonly required: readonly ["value"];
51
+ readonly properties: {
52
+ readonly value: {
53
+ readonly description: "The valid value";
54
+ readonly type: "string";
55
+ readonly example: "#c154c1";
56
+ };
57
+ readonly description: {
58
+ readonly description: "Describes this specific legal value";
59
+ readonly type: "string";
60
+ readonly example: "Deep fuchsia";
61
+ };
62
+ };
63
+ readonly components: {};
64
+ };
65
+ };
66
+ };
67
+ };
68
+ export declare type CreateContextFieldSchema = FromSchema<typeof createContextFieldSchema>;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createContextFieldSchema = void 0;
4
+ const update_context_field_schema_1 = require("./update-context-field-schema");
5
+ exports.createContextFieldSchema = {
6
+ ...update_context_field_schema_1.updateContextFieldSchema,
7
+ $id: '#/components/schemas/createContextFieldSchema',
8
+ description: 'Data used to create a context field configuration.',
9
+ required: ['name'],
10
+ properties: {
11
+ ...update_context_field_schema_1.updateContextFieldSchema.properties,
12
+ name: {
13
+ description: 'The name of the context field.',
14
+ type: 'string',
15
+ example: 'subscriptionTier',
16
+ },
17
+ },
18
+ };
19
+ //# sourceMappingURL=create-context-field-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-context-field-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-context-field-schema.ts"],"names":[],"mappings":";;;AACA,+EAAyE;AAE5D,QAAA,wBAAwB,GAAG;IACpC,GAAG,sDAAwB;IAC3B,GAAG,EAAE,+CAA+C;IACpD,WAAW,EAAE,oDAAoD;IACjE,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,GAAG,sDAAwB,CAAC,UAAU;QACtC,IAAI,EAAE;YACF,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC9B;KACJ;CACK,CAAC"}
@@ -2,6 +2,7 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const createFeatureSchema: {
3
3
  readonly $id: "#/components/schemas/createFeatureSchema";
4
4
  readonly type: "object";
5
+ readonly description: "Data used to create a new feature toggle.";
5
6
  readonly required: readonly ["name"];
6
7
  readonly properties: {
7
8
  readonly name: {
@@ -4,6 +4,7 @@ exports.createFeatureSchema = void 0;
4
4
  exports.createFeatureSchema = {
5
5
  $id: '#/components/schemas/createFeatureSchema',
6
6
  type: 'object',
7
+ description: 'Data used to create a new feature toggle.',
7
8
  required: ['name'],
8
9
  properties: {
9
10
  name: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-feature-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,qBAAqB;SACrC;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,SAAS;YAClB,WAAW,EACP,6JAA6J;SACpK;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EACH,mEAAmE;YACvE,WAAW,EAAE,qCAAqC;SACrD;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EACP,yFAAyF;SAChG;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"create-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-feature-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,qBAAqB;SACrC;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,SAAS;YAClB,WAAW,EACP,6JAA6J;SACpK;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EACH,mEAAmE;YACvE,WAAW,EAAE,qCAAqC;SACrD;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EACP,yFAAyF;SAChG;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -124,7 +124,6 @@ export declare const createFeatureStrategySchema: {
124
124
  readonly createStrategyVariantSchema: {
125
125
  readonly $id: "#/components/schemas/createStrategyVariantSchema";
126
126
  readonly type: "object";
127
- readonly additionalProperties: true;
128
127
  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.";
129
128
  readonly required: readonly ["name", "weight", "weightType", "stickiness"];
130
129
  readonly properties: {
@@ -2,7 +2,6 @@ import { FromSchema } from 'json-schema-to-ts';
2
2
  export declare const createGroupSchema: {
3
3
  readonly $id: "#/components/schemas/createGroupSchema";
4
4
  readonly type: "object";
5
- readonly additionalProperties: true;
6
5
  readonly required: readonly ["name"];
7
6
  readonly description: "A detailed information about a user group";
8
7
  readonly properties: {
@@ -5,7 +5,6 @@ const group_schema_1 = require("./group-schema");
5
5
  exports.createGroupSchema = {
6
6
  $id: '#/components/schemas/createGroupSchema',
7
7
  type: 'object',
8
- additionalProperties: true,
9
8
  required: ['name'],
10
9
  description: 'A detailed information about a user group',
11
10
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"create-group-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-group-schema.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAEhC,QAAA,iBAAiB,GAAG;IAC7B,GAAG,EAAE,wCAAwC;IAC7C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,IAAI;IAC1B,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,WAAW,EAAE,2CAA2C;IACxD,UAAU,EAAE;QACR,IAAI,EAAE,0BAAW,CAAC,UAAU,CAAC,IAAI;QACjC,WAAW,EAAE,0BAAW,CAAC,UAAU,CAAC,WAAW;QAC/C,WAAW,EAAE,0BAAW,CAAC,UAAU,CAAC,WAAW;QAC/C,QAAQ,EAAE,0BAAW,CAAC,UAAU,CAAC,QAAQ;QACzC,KAAK,EAAE;YACH,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,yCAAyC;YACtD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uBAAuB;gBACpC,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,UAAU,EAAE;oBACR,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uBAAuB;wBACpC,QAAQ,EAAE,CAAC,IAAI,CAAC;wBAChB,UAAU,EAAE;4BACR,EAAE,EAAE;gCACA,WAAW,EAAE,aAAa;gCAC1B,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE,CAAC;gCACV,OAAO,EAAE,GAAG;6BACf;yBACJ;qBACJ;iBACJ;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
1
+ {"version":3,"file":"create-group-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/create-group-schema.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAEhC,QAAA,iBAAiB,GAAG;IAC7B,GAAG,EAAE,wCAAwC;IAC7C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,WAAW,EAAE,2CAA2C;IACxD,UAAU,EAAE;QACR,IAAI,EAAE,0BAAW,CAAC,UAAU,CAAC,IAAI;QACjC,WAAW,EAAE,0BAAW,CAAC,UAAU,CAAC,WAAW;QAC/C,WAAW,EAAE,0BAAW,CAAC,UAAU,CAAC,WAAW;QAC/C,QAAQ,EAAE,0BAAW,CAAC,UAAU,CAAC,QAAQ;QACzC,KAAK,EAAE;YACH,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,yCAAyC;YACtD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uBAAuB;gBACpC,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,UAAU,EAAE;oBACR,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uBAAuB;wBACpC,QAAQ,EAAE,CAAC,IAAI,CAAC;wBAChB,UAAU,EAAE;4BACR,EAAE,EAAE;gCACA,WAAW,EAAE,aAAa;gCAC1B,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE,CAAC;gCACV,OAAO,EAAE,GAAG;6BACf;yBACJ;qBACJ;iBACJ;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
@@ -4,18 +4,27 @@ export declare const createInvitedUserSchema: {
4
4
  readonly type: "object";
5
5
  readonly additionalProperties: false;
6
6
  readonly required: readonly ["email", "name", "password"];
7
+ readonly description: "Data used to create a user that has been invited to Unleash.";
7
8
  readonly properties: {
8
9
  readonly username: {
9
10
  readonly type: "string";
11
+ readonly description: "The user's username. Must be unique if provided.";
12
+ readonly example: "Hunter";
10
13
  };
11
14
  readonly email: {
12
15
  readonly type: "string";
16
+ readonly description: "The invited user's email address";
17
+ readonly example: "hunter@example.com";
13
18
  };
14
19
  readonly name: {
15
20
  readonly type: "string";
21
+ readonly description: "The user's name";
22
+ readonly example: "Hunter Burgan";
16
23
  };
17
24
  readonly password: {
18
25
  readonly type: "string";
26
+ readonly description: "The user's password";
27
+ readonly example: "hunter2";
19
28
  };
20
29
  };
21
30
  readonly components: {};