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.
- package/dist/lib/addons/slack-app-definition.js +8 -0
- package/dist/lib/addons/slack-app-definition.js.map +1 -1
- package/dist/lib/addons/slack-app.d.ts +1 -0
- package/dist/lib/addons/slack-app.js +12 -5
- package/dist/lib/addons/slack-app.js.map +1 -1
- package/dist/lib/addons/slack-app.test.js +12 -66
- package/dist/lib/addons/slack-app.test.js.map +1 -1
- package/dist/lib/create-config.js +1 -0
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +3 -1
- package/dist/lib/db/access-store.js +53 -0
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-applications-store.d.ts +3 -1
- package/dist/lib/db/client-applications-store.js +73 -6
- package/dist/lib/db/client-applications-store.js.map +1 -1
- package/dist/lib/db/feature-environment-store.js +3 -0
- package/dist/lib/db/feature-environment-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.d.ts +1 -0
- package/dist/lib/db/feature-strategy-store.js +21 -3
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +40 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
- package/dist/lib/db/feature-toggle-client-store.js +5 -3
- package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-store.d.ts +6 -1
- package/dist/lib/db/feature-toggle-store.js +37 -9
- package/dist/lib/db/feature-toggle-store.js.map +1 -1
- package/dist/lib/db/index.js +1 -1
- package/dist/lib/db/index.js.map +1 -1
- package/dist/lib/db/role-store.d.ts +3 -0
- package/dist/lib/db/role-store.js +21 -4
- package/dist/lib/db/role-store.js.map +1 -1
- package/dist/lib/features/access/createAccessService.js +2 -2
- package/dist/lib/features/access/createAccessService.js.map +1 -1
- package/dist/lib/features/change-request-access-service/change-request-access-read-model.d.ts +1 -0
- package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.d.ts +1 -0
- package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.js +3 -0
- package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.js.map +1 -1
- package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.d.ts +1 -0
- package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.js +10 -1
- package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js +4 -0
- package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-service.d.ts +2 -1
- package/dist/lib/features/export-import-toggles/export-import-service.js +30 -16
- package/dist/lib/features/export-import-toggles/export-import-service.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import.e2e.test.js +24 -4
- package/dist/lib/features/export-import-toggles/export-import.e2e.test.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-context-validation.js +1 -1
- package/dist/lib/features/export-import-toggles/import-context-validation.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-toggles-store-type.d.ts +1 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.d.ts +1 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.js +8 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-validation-messages.d.ts +1 -1
- package/dist/lib/features/export-import-toggles/import-validation-messages.js +7 -1
- package/dist/lib/features/export-import-toggles/import-validation-messages.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +9 -12
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/index.d.ts +1 -0
- package/dist/lib/features/index.js +1 -0
- package/dist/lib/features/index.js.map +1 -1
- package/dist/lib/features/playground/advanced-playground.test.js +57 -6
- package/dist/lib/features/playground/advanced-playground.test.js.map +1 -1
- package/dist/lib/features/playground/generateObjectCombinations.d.ts +2 -2
- package/dist/lib/features/playground/generateObjectCombinations.js +4 -1
- package/dist/lib/features/playground/generateObjectCombinations.js.map +1 -1
- package/dist/lib/features/playground/generateObjectCombinations.test.js +7 -6
- package/dist/lib/features/playground/generateObjectCombinations.test.js.map +1 -1
- package/dist/lib/features/playground/playground.js +1 -1
- package/dist/lib/features/playground/playground.js.map +1 -1
- package/dist/lib/features/segment/createSegmentService.d.ts +5 -0
- package/dist/lib/features/segment/createSegmentService.js +32 -0
- package/dist/lib/features/segment/createSegmentService.js.map +1 -0
- package/dist/lib/metrics.js +12 -0
- package/dist/lib/metrics.js.map +1 -1
- package/dist/lib/metrics.test.js +1 -1
- package/dist/lib/metrics.test.js.map +1 -1
- package/dist/lib/middleware/response-time-metrics.js +1 -1
- package/dist/lib/middleware/response-time-metrics.js.map +1 -1
- package/dist/lib/openapi/index.js +3 -1
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +2 -41
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/admin-features-query-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/admin-features-query-schema.js +1 -0
- package/dist/lib/openapi/spec/admin-features-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +4 -1
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +8 -2
- package/dist/lib/openapi/spec/advanced-playground-request-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +17 -5
- package/dist/lib/openapi/spec/application-schema.d.ts +33 -1
- package/dist/lib/openapi/spec/application-schema.js +12 -1
- package/dist/lib/openapi/spec/application-schema.js.map +1 -1
- package/dist/lib/openapi/spec/application-usage-schema.d.ts +25 -0
- package/dist/lib/openapi/spec/application-usage-schema.js +27 -0
- package/dist/lib/openapi/spec/application-usage-schema.js.map +1 -0
- package/dist/lib/openapi/spec/applications-schema.d.ts +57 -1
- package/dist/lib/openapi/spec/applications-schema.js +4 -1
- package/dist/lib/openapi/spec/applications-schema.js.map +1 -1
- package/dist/lib/openapi/spec/bulk-metrics-schema.d.ts +18 -4
- package/dist/lib/openapi/spec/bulk-registration-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/client-metrics-env-schema.d.ts +6 -2
- package/dist/lib/openapi/spec/client-metrics-env-schema.js +0 -1
- package/dist/lib/openapi/spec/client-metrics-env-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/create-application-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-application-schema.js +0 -1
- package/dist/lib/openapi/spec/create-application-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-context-field-schema.d.ts +68 -0
- package/dist/lib/openapi/spec/create-context-field-schema.js +19 -0
- package/dist/lib/openapi/spec/create-context-field-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-feature-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/create-feature-schema.js +1 -0
- package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-group-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-group-schema.js +0 -1
- package/dist/lib/openapi/spec/create-group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-invited-user-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/create-invited-user-schema.js +9 -0
- package/dist/lib/openapi/spec/create-invited-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js +0 -1
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-user-response-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/create-user-response-schema.js +1 -1
- package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -1
- package/dist/lib/openapi/spec/date-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/date-schema.js +14 -1
- package/dist/lib/openapi/spec/date-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +0 -2
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +0 -2
- package/dist/lib/openapi/spec/event-schema.d.ts +1 -3
- package/dist/lib/openapi/spec/event-schema.js +0 -1
- package/dist/lib/openapi/spec/event-schema.js.map +1 -1
- package/dist/lib/openapi/spec/events-schema.d.ts +1 -3
- package/dist/lib/openapi/spec/export-query-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/export-query-schema.js +0 -1
- package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +17 -1
- package/dist/lib/openapi/spec/feature-environment-metrics-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js +7 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-events-schema.d.ts +1 -3
- package/dist/lib/openapi/spec/feature-metrics-schema.d.ts +12 -2
- package/dist/lib/openapi/spec/feature-schema.d.ts +9 -1
- package/dist/lib/openapi/spec/feature-schema.js +2 -1
- package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-segment-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/feature-strategy-segment-schema.js +5 -0
- package/dist/lib/openapi/spec/feature-strategy-segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-usage-schema.d.ts +12 -2
- package/dist/lib/openapi/spec/features-schema.d.ts +16 -1
- package/dist/lib/openapi/spec/group-schema.d.ts +10 -2
- package/dist/lib/openapi/spec/group-schema.js +6 -0
- package/dist/lib/openapi/spec/group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/group-user-model-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/groups-schema.d.ts +14 -4
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +16 -5
- package/dist/lib/openapi/spec/health-report-schema.d.ts +16 -5
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +34 -2
- package/dist/lib/openapi/spec/index.d.ts +3 -1
- package/dist/lib/openapi/spec/index.js +3 -1
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/maintenance-schema.d.ts +2 -0
- package/dist/lib/openapi/spec/maintenance-schema.js +2 -0
- package/dist/lib/openapi/spec/maintenance-schema.js.map +1 -1
- package/dist/lib/openapi/spec/me-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/patch-schema.d.ts +12 -1
- package/dist/lib/openapi/spec/patch-schema.js +12 -1
- package/dist/lib/openapi/spec/patch-schema.js.map +1 -1
- package/dist/lib/openapi/spec/patches-schema.d.ts +12 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/playground-request-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +8 -2
- package/dist/lib/openapi/spec/playground-segment-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/playground-segment-schema.js +1 -0
- package/dist/lib/openapi/spec/playground-segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +2 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js +1 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +9 -1
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +0 -2
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +20 -6
- package/dist/lib/openapi/spec/project-overview-schema.js +4 -1
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/project-schema.js +4 -0
- package/dist/lib/openapi/spec/project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/projects-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/projects-schema.js +2 -0
- package/dist/lib/openapi/spec/projects-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +3 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.js +1 -0
- package/dist/lib/openapi/spec/public-signup-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +5 -2
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/push-variants-schema.js +3 -0
- package/dist/lib/openapi/spec/push-variants-schema.js.map +1 -1
- package/dist/lib/openapi/spec/reset-password-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/reset-password-schema.js +4 -0
- package/dist/lib/openapi/spec/reset-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.js +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.js.map +1 -1
- package/dist/lib/openapi/spec/search-events-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/search-events-schema.js +1 -6
- package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/sort-order-schema.d.ts +4 -1
- package/dist/lib/openapi/spec/sort-order-schema.js +4 -1
- package/dist/lib/openapi/spec/sort-order-schema.js.map +1 -1
- package/dist/lib/openapi/spec/state-schema.d.ts +39 -3
- package/dist/lib/openapi/spec/state-schema.js +14 -2
- package/dist/lib/openapi/spec/state-schema.js.map +1 -1
- package/dist/lib/openapi/spec/toggle-maintenance-schema.d.ts +2 -0
- package/dist/lib/openapi/spec/toggle-maintenance-schema.js +2 -0
- package/dist/lib/openapi/spec/toggle-maintenance-schema.js.map +1 -1
- package/dist/lib/openapi/spec/token-string-list-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/token-string-list-schema.js +0 -1
- package/dist/lib/openapi/spec/token-string-list-schema.js.map +1 -1
- package/dist/lib/openapi/spec/token-user-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/token-user-schema.js +1 -1
- package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/{upsert-context-field-schema.d.ts → update-context-field-schema.d.ts} +19 -8
- package/dist/lib/openapi/spec/update-context-field-schema.js +44 -0
- package/dist/lib/openapi/spec/update-context-field-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-user-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/update-user-schema.js +0 -1
- package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/user-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/user-schema.js +2 -1
- package/dist/lib/openapi/spec/user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +33 -4
- package/dist/lib/openapi/spec/users-groups-base-schema.js +24 -0
- package/dist/lib/openapi/spec/users-groups-base-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-schema.d.ts +3 -2
- package/dist/lib/openapi/spec/users-schema.js +1 -1
- package/dist/lib/openapi/spec/users-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-search-schema.d.ts +3 -1
- package/dist/lib/openapi/spec/users-search-schema.js +1 -0
- package/dist/lib/openapi/spec/users-search-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/variants-schema.js +1 -0
- package/dist/lib/openapi/spec/variants-schema.js.map +1 -1
- package/dist/lib/openapi/util/openapi-tags.d.ts +18 -0
- package/dist/lib/openapi/util/openapi-tags.js +12 -0
- package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.d.ts +5 -0
- package/dist/lib/routes/admin-api/api-token.js +28 -0
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/archive.js +4 -0
- package/dist/lib/routes/admin-api/archive.js.map +1 -1
- package/dist/lib/routes/admin-api/client-metrics.js +2 -1
- package/dist/lib/routes/admin-api/client-metrics.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +4 -3
- package/dist/lib/routes/admin-api/context.js +3 -4
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/feature-type.js +2 -2
- package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
- package/dist/lib/routes/admin-api/instance-admin.js +2 -0
- package/dist/lib/routes/admin-api/instance-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/maintenance.d.ts +2 -1
- package/dist/lib/routes/admin-api/maintenance.js.map +1 -1
- package/dist/lib/routes/admin-api/project/environments.js +1 -0
- package/dist/lib/routes/admin-api/project/environments.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-features.js +2 -1
- package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
- package/dist/lib/routes/admin-api/public-signup.js +2 -1
- package/dist/lib/routes/admin-api/public-signup.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.d.ts +1 -1
- package/dist/lib/routes/admin-api/strategy.js +2 -2
- package/dist/lib/routes/admin-api/strategy.js.map +1 -1
- package/dist/lib/routes/admin-api/tag-type.js +2 -2
- package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.js +2 -1
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/client-api/register.d.ts +1 -0
- package/dist/lib/routes/client-api/register.js +8 -0
- package/dist/lib/routes/client-api/register.js.map +1 -1
- package/dist/lib/routes/index.js +1 -0
- package/dist/lib/routes/index.js.map +1 -1
- package/dist/lib/routes/public-invite.js +2 -1
- package/dist/lib/routes/public-invite.js.map +1 -1
- package/dist/lib/segments/segment-service-interface.d.ts +2 -0
- package/dist/lib/server-impl.js +3 -1
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/access-service.d.ts +6 -3
- package/dist/lib/services/access-service.js +17 -5
- package/dist/lib/services/access-service.js.map +1 -1
- package/dist/lib/services/access-service.test.js +49 -3
- package/dist/lib/services/access-service.test.js.map +1 -1
- package/dist/lib/services/client-metrics/instance-service.js +5 -7
- package/dist/lib/services/client-metrics/instance-service.js.map +1 -1
- package/dist/lib/services/client-metrics/last-seen-service.d.ts +4 -0
- package/dist/lib/services/client-metrics/last-seen-service.js +4 -1
- package/dist/lib/services/client-metrics/last-seen-service.js.map +1 -1
- package/dist/lib/services/client-metrics/models.d.ts +2 -0
- package/dist/lib/services/client-metrics/schema.js +1 -0
- package/dist/lib/services/client-metrics/schema.js.map +1 -1
- package/dist/lib/services/feature-service-potentially-stale.test.js +0 -1
- package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -1
- package/dist/lib/services/feature-toggle-service.js +20 -30
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/index.js +1 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/instance-stats-service.d.ts +2 -0
- package/dist/lib/services/instance-stats-service.js +6 -1
- package/dist/lib/services/instance-stats-service.js.map +1 -1
- package/dist/lib/services/maintenance-service.js +1 -1
- package/dist/lib/services/maintenance-service.js.map +1 -1
- package/dist/lib/services/maintenance-service.test.js +1 -1
- package/dist/lib/services/maintenance-service.test.js.map +1 -1
- package/dist/lib/services/project-service.d.ts +2 -1
- package/dist/lib/services/project-service.js +3 -0
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/segment-service.d.ts +8 -2
- package/dist/lib/services/segment-service.js +34 -3
- package/dist/lib/services/segment-service.js.map +1 -1
- package/dist/lib/services/user-service.js +3 -3
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +1 -0
- package/dist/lib/services/version-service.js +8 -1
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/types/events.d.ts +2 -1
- package/dist/lib/types/events.js +4 -2
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +6 -5
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/model.d.ts +2 -0
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/option.d.ts +2 -0
- package/dist/lib/types/project.d.ts +7 -0
- package/dist/lib/types/stores/access-store.d.ts +9 -0
- package/dist/lib/types/stores/client-applications-store.d.ts +5 -0
- package/dist/lib/types/stores/context-field-store.d.ts +3 -3
- package/dist/lib/types/stores/feature-toggle-store.d.ts +2 -1
- package/dist/lib/types/stores/role-store.d.ts +3 -0
- package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.d.ts +2 -0
- package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.js +84 -0
- package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.js.map +1 -0
- package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.d.ts +2 -0
- package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.js +83 -0
- package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.js.map +1 -0
- package/dist/migrations/20230803061359-change-request-optional-feature.d.ts +2 -0
- package/dist/migrations/20230803061359-change-request-optional-feature.js +13 -0
- package/dist/migrations/20230803061359-change-request-optional-feature.js.map +1 -0
- package/dist/migrations/20230808104232-update-root-roles-descriptions.d.ts +2 -0
- package/dist/migrations/20230808104232-update-root-roles-descriptions.js +15 -0
- package/dist/migrations/20230808104232-update-root-roles-descriptions.js.map +1 -0
- package/dist/migrations/20230814095253-change-request-rejections.d.ts +2 -0
- package/dist/migrations/20230814095253-change-request-rejections.js +18 -0
- package/dist/migrations/20230814095253-change-request-rejections.js.map +1 -0
- package/dist/migrations/20230814115436-change-request-timzone-timestamps.d.ts +2 -0
- package/dist/migrations/20230814115436-change-request-timzone-timestamps.js +15 -0
- package/dist/migrations/20230814115436-change-request-timzone-timestamps.js.map +1 -0
- package/dist/migrations/20230815065908-change-request-approve-reject-permission.d.ts +2 -0
- package/dist/migrations/20230815065908-change-request-approve-reject-permission.js +12 -0
- package/dist/migrations/20230815065908-change-request-approve-reject-permission.js.map +1 -0
- package/dist/migrations/20230817095805-client-applications-usage-table.d.ts +2 -0
- package/dist/migrations/20230817095805-client-applications-usage-table.js +17 -0
- package/dist/migrations/20230817095805-client-applications-usage-table.js.map +1 -0
- package/dist/migrations/20230818124614-update-client-applications-usage-table.d.ts +2 -0
- package/dist/migrations/20230818124614-update-client-applications-usage-table.js +25 -0
- package/dist/migrations/20230818124614-update-client-applications-usage-table.js.map +1 -0
- package/dist/server-dev.js +3 -2
- package/dist/server-dev.js.map +1 -1
- package/dist/test/config/test-config.js +1 -0
- package/dist/test/config/test-config.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js +12 -84
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js +10 -2
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/metrics.e2e.test.js +30 -4
- package/dist/test/e2e/api/admin/metrics.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +14 -15
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/client/metricsV2.e2e.test.js +19 -5
- package/dist/test/e2e/api/client/metricsV2.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js +23 -0
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
- package/dist/test/e2e/helpers/test-helper.js +11 -1
- package/dist/test/e2e/helpers/test-helper.js.map +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js +2 -2
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/api-token-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/api-token-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/environment-service.test.js +2 -0
- package/dist/test/e2e/services/environment-service.test.js.map +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/playground-service.test.js +1 -1
- package/dist/test/e2e/services/playground-service.test.js.map +1 -1
- package/dist/test/e2e/services/project-health-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/project-health-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/project-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/project-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/user-service.e2e.test.js +10 -0
- package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
- package/dist/test/fixtures/access-service-mock.js +1 -0
- package/dist/test/fixtures/access-service-mock.js.map +1 -1
- package/dist/test/fixtures/fake-access-store.d.ts +3 -1
- package/dist/test/fixtures/fake-access-store.js +6 -0
- package/dist/test/fixtures/fake-access-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-store.d.ts +2 -1
- package/dist/test/fixtures/fake-feature-toggle-store.js +19 -6
- package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.d.ts +1 -1
- package/dist/test/fixtures/fake-role-store.d.ts +3 -0
- package/dist/test/fixtures/fake-role-store.js +6 -0
- package/dist/test/fixtures/fake-role-store.js.map +1 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/{AdvancedPlayground-48dddbf4.js → AdvancedPlayground-2d715a2c.js} +3 -3
- package/frontend/build/static/{CreateProject-c1b0f704.js → CreateProject-5b1090c2.js} +1 -1
- package/frontend/build/static/{Error-e6f7c2ee.js → Error-e44ea66b.js} +1 -1
- package/frontend/build/static/FeatureArchiveDialog-b47b18e8.js +10 -0
- package/frontend/build/static/{FeatureMetricsChart-81da0ce4.js → FeatureMetricsChart-36caeeb7.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-49d56afd.js +7 -0
- package/frontend/build/static/LazyAdminExport-87c9ab51.js +35 -0
- package/frontend/build/static/LazyProjectExport-c4634b2a.js +17 -0
- package/frontend/build/static/{NetworkOverview-cd06e59f.js → NetworkOverview-c762698b.js} +64 -64
- package/frontend/build/static/{NetworkTraffic-ba933617.js → NetworkTraffic-c8d9eb9b.js} +1 -1
- package/frontend/build/static/RoleCell-d1aa8288.js +1 -0
- package/frontend/build/static/{StrategyItemContainer-88c18285.js → StrategyItemContainer-c7c352a4.js} +1 -1
- package/frontend/build/static/changeRequestProcess-f2469ef4.svg +61 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-799be047.js → chartjs-adapter-date-fns.esm-9c67372b.js} +6 -6
- package/frontend/build/static/{flowchart-elk-definition-170a3958-543f0844.js → flowchart-elk-definition-170a3958-5ea9fc56.js} +1 -1
- package/frontend/build/static/{index-88f1c682.js → index-1aaa8c27.js} +1 -1
- package/frontend/build/static/{index-aa638b65.js → index-670c9345.js} +1 -1
- package/frontend/build/static/index-b7003840.js +454 -0
- package/frontend/build/static/{is_dark-735e3a95.js → is_dark-b445e102.js} +1 -1
- package/frontend/build/static/{mindmap-definition-44684416-ac92f950.js → mindmap-definition-44684416-254e936e.js} +1 -1
- package/frontend/build/static/pro-enterprise-feature-badge-8ac467c3.svg +7 -0
- package/frontend/build/static/pro-enterprise-feature-badge-light-81a18f9b.svg +6 -0
- package/frontend/build/static/{timeline-definition-8e5a9bc6-6c09f608.js → timeline-definition-8e5a9bc6-24fd1725.js} +1 -1
- package/frontend/build/static/{unknownify-0b176a78.js → unknownify-ea4585e8.js} +1 -1
- package/frontend/build/static/usage-line-00d00632.svg +3 -0
- package/frontend/build/static/usage-rate-cb18f02b.svg +3 -0
- package/frontend/package.json +13 -13
- package/package.json +11 -12
- package/dist/lib/openapi/spec/upsert-context-field-schema.js +0 -35
- package/dist/lib/openapi/spec/upsert-context-field-schema.js.map +0 -1
- package/frontend/build/static/FeatureArchiveDialog-9ad60db1.js +0 -10
- package/frontend/build/static/FeatureViewLazyExport-58a3e977.js +0 -7
- package/frontend/build/static/LazyAdminExport-c98b11d7.js +0 -37
- package/frontend/build/static/LazyProjectExport-14db2e37.js +0 -16
- package/frontend/build/static/RoleCell-c534790e.js +0 -1
- package/frontend/build/static/changeRequestProcess-a532ab60.svg +0 -1
- package/frontend/build/static/index-1c4c68c3.js +0 -453
- package/frontend/build/static/pro-enterprise-feature-badge-8fab99c5.svg +0 -5
- package/frontend/build/static/pro-enterprise-feature-badge-light-0227af08.svg +0 -1
- /package/frontend/build/static/{index-770afaee.css → style-770afaee.css} +0 -0
|
@@ -2,76 +2,88 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const stateSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/stateSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly additionalProperties: true;
|
|
6
5
|
readonly deprecated: true;
|
|
7
|
-
readonly description: "The state
|
|
6
|
+
readonly description: "The application state as used by the deprecated export/import APIs.";
|
|
8
7
|
readonly required: readonly ["version"];
|
|
9
8
|
readonly properties: {
|
|
10
9
|
readonly version: {
|
|
11
10
|
readonly type: "integer";
|
|
11
|
+
readonly description: "The version of the schema used to describe the state";
|
|
12
|
+
readonly example: 1;
|
|
12
13
|
};
|
|
13
14
|
readonly features: {
|
|
14
15
|
readonly type: "array";
|
|
16
|
+
readonly description: "A list of features";
|
|
15
17
|
readonly items: {
|
|
16
18
|
readonly $ref: "#/components/schemas/featureSchema";
|
|
17
19
|
};
|
|
18
20
|
};
|
|
19
21
|
readonly strategies: {
|
|
20
22
|
readonly type: "array";
|
|
23
|
+
readonly description: "A list of strategies";
|
|
21
24
|
readonly items: {
|
|
22
25
|
readonly $ref: "#/components/schemas/strategySchema";
|
|
23
26
|
};
|
|
24
27
|
};
|
|
25
28
|
readonly tags: {
|
|
26
29
|
readonly type: "array";
|
|
30
|
+
readonly description: "A list of tags";
|
|
27
31
|
readonly items: {
|
|
28
32
|
readonly $ref: "#/components/schemas/tagSchema";
|
|
29
33
|
};
|
|
30
34
|
};
|
|
31
35
|
readonly tagTypes: {
|
|
32
36
|
readonly type: "array";
|
|
37
|
+
readonly description: "A list of tag types";
|
|
33
38
|
readonly items: {
|
|
34
39
|
readonly $ref: "#/components/schemas/tagTypeSchema";
|
|
35
40
|
};
|
|
36
41
|
};
|
|
37
42
|
readonly featureTags: {
|
|
38
43
|
readonly type: "array";
|
|
44
|
+
readonly description: "A list of tags applied to features";
|
|
39
45
|
readonly items: {
|
|
40
46
|
readonly $ref: "#/components/schemas/featureTagSchema";
|
|
41
47
|
};
|
|
42
48
|
};
|
|
43
49
|
readonly projects: {
|
|
44
50
|
readonly type: "array";
|
|
51
|
+
readonly description: "A list of projects";
|
|
45
52
|
readonly items: {
|
|
46
53
|
readonly $ref: "#/components/schemas/projectSchema";
|
|
47
54
|
};
|
|
48
55
|
};
|
|
49
56
|
readonly featureStrategies: {
|
|
50
57
|
readonly type: "array";
|
|
58
|
+
readonly description: "A list of feature strategies as applied to features";
|
|
51
59
|
readonly items: {
|
|
52
60
|
readonly $ref: "#/components/schemas/featureStrategySchema";
|
|
53
61
|
};
|
|
54
62
|
};
|
|
55
63
|
readonly featureEnvironments: {
|
|
56
64
|
readonly type: "array";
|
|
65
|
+
readonly description: "A list of feature environment configurations";
|
|
57
66
|
readonly items: {
|
|
58
67
|
readonly $ref: "#/components/schemas/featureEnvironmentSchema";
|
|
59
68
|
};
|
|
60
69
|
};
|
|
61
70
|
readonly environments: {
|
|
62
71
|
readonly type: "array";
|
|
72
|
+
readonly description: "A list of environments";
|
|
63
73
|
readonly items: {
|
|
64
74
|
readonly $ref: "#/components/schemas/environmentSchema";
|
|
65
75
|
};
|
|
66
76
|
};
|
|
67
77
|
readonly segments: {
|
|
68
78
|
readonly type: "array";
|
|
79
|
+
readonly description: "A list of segments";
|
|
69
80
|
readonly items: {
|
|
70
81
|
readonly $ref: "#/components/schemas/segmentSchema";
|
|
71
82
|
};
|
|
72
83
|
};
|
|
73
84
|
readonly featureStrategySegments: {
|
|
74
85
|
readonly type: "array";
|
|
86
|
+
readonly description: "A list of segment/strategy pairings";
|
|
75
87
|
readonly items: {
|
|
76
88
|
readonly $ref: "#/components/schemas/featureStrategySegmentSchema";
|
|
77
89
|
};
|
|
@@ -150,8 +162,9 @@ export declare const stateSchema: {
|
|
|
150
162
|
readonly type: "string";
|
|
151
163
|
readonly format: "date-time";
|
|
152
164
|
readonly nullable: true;
|
|
165
|
+
readonly deprecated: true;
|
|
153
166
|
readonly example: "2023-01-28T16:21:39.975Z";
|
|
154
|
-
readonly description: "The date when metrics where last collected for the feature";
|
|
167
|
+
readonly description: "The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema";
|
|
155
168
|
};
|
|
156
169
|
readonly environments: {
|
|
157
170
|
readonly type: "array";
|
|
@@ -286,6 +299,13 @@ export declare const stateSchema: {
|
|
|
286
299
|
};
|
|
287
300
|
readonly description: "A list of variants for the feature environment";
|
|
288
301
|
};
|
|
302
|
+
readonly lastSeenAt: {
|
|
303
|
+
readonly type: "string";
|
|
304
|
+
readonly format: "date-time";
|
|
305
|
+
readonly nullable: true;
|
|
306
|
+
readonly example: "2023-01-28T16:21:39.975Z";
|
|
307
|
+
readonly description: "The date when metrics where last collected for the feature environment";
|
|
308
|
+
};
|
|
289
309
|
};
|
|
290
310
|
readonly components: {
|
|
291
311
|
readonly schemas: {
|
|
@@ -1157,12 +1177,16 @@ export declare const stateSchema: {
|
|
|
1157
1177
|
};
|
|
1158
1178
|
readonly createdAt: {
|
|
1159
1179
|
readonly type: "string";
|
|
1180
|
+
readonly description: "When this project was created.";
|
|
1181
|
+
readonly example: "2023-07-27T12:12:28Z";
|
|
1160
1182
|
readonly format: "date-time";
|
|
1161
1183
|
};
|
|
1162
1184
|
readonly updatedAt: {
|
|
1163
1185
|
readonly type: "string";
|
|
1164
1186
|
readonly format: "date-time";
|
|
1165
1187
|
readonly nullable: true;
|
|
1188
|
+
readonly description: "When this project was last updated.";
|
|
1189
|
+
readonly example: "2023-07-28T12:12:28Z";
|
|
1166
1190
|
};
|
|
1167
1191
|
readonly favorite: {
|
|
1168
1192
|
readonly type: "boolean";
|
|
@@ -1465,6 +1489,13 @@ export declare const stateSchema: {
|
|
|
1465
1489
|
};
|
|
1466
1490
|
readonly description: "A list of variants for the feature environment";
|
|
1467
1491
|
};
|
|
1492
|
+
readonly lastSeenAt: {
|
|
1493
|
+
readonly type: "string";
|
|
1494
|
+
readonly format: "date-time";
|
|
1495
|
+
readonly nullable: true;
|
|
1496
|
+
readonly example: "2023-01-28T16:21:39.975Z";
|
|
1497
|
+
readonly description: "The date when metrics where last collected for the feature environment";
|
|
1498
|
+
};
|
|
1468
1499
|
};
|
|
1469
1500
|
readonly components: {
|
|
1470
1501
|
readonly schemas: {
|
|
@@ -1992,14 +2023,19 @@ export declare const stateSchema: {
|
|
|
1992
2023
|
readonly featureStrategySegmentSchema: {
|
|
1993
2024
|
readonly $id: "#/components/schemas/featureStrategySegmentSchema";
|
|
1994
2025
|
readonly type: "object";
|
|
2026
|
+
readonly description: "An object containing a segment identifier and a strategy identifier.";
|
|
1995
2027
|
readonly additionalProperties: false;
|
|
1996
2028
|
readonly required: readonly ["segmentId", "featureStrategyId"];
|
|
1997
2029
|
readonly properties: {
|
|
1998
2030
|
readonly segmentId: {
|
|
1999
2031
|
readonly type: "integer";
|
|
2032
|
+
readonly description: "The ID of the segment";
|
|
2033
|
+
readonly example: 2;
|
|
2000
2034
|
};
|
|
2001
2035
|
readonly featureStrategyId: {
|
|
2002
2036
|
readonly type: "string";
|
|
2037
|
+
readonly description: "The ID of the strategy";
|
|
2038
|
+
readonly example: "e2caa08f-30c4-4aa3-b955-54ca9e93dc13";
|
|
2003
2039
|
};
|
|
2004
2040
|
};
|
|
2005
2041
|
readonly components: {};
|
|
@@ -16,76 +16,88 @@ const strategy_variant_schema_1 = require("./strategy-variant-schema");
|
|
|
16
16
|
exports.stateSchema = {
|
|
17
17
|
$id: '#/components/schemas/stateSchema',
|
|
18
18
|
type: 'object',
|
|
19
|
-
additionalProperties: true,
|
|
20
19
|
deprecated: true,
|
|
21
|
-
description: 'The state
|
|
20
|
+
description: 'The application state as used by the deprecated export/import APIs.',
|
|
22
21
|
required: ['version'],
|
|
23
22
|
properties: {
|
|
24
23
|
version: {
|
|
25
24
|
type: 'integer',
|
|
25
|
+
description: 'The version of the schema used to describe the state',
|
|
26
|
+
example: 1,
|
|
26
27
|
},
|
|
27
28
|
features: {
|
|
28
29
|
type: 'array',
|
|
30
|
+
description: 'A list of features',
|
|
29
31
|
items: {
|
|
30
32
|
$ref: '#/components/schemas/featureSchema',
|
|
31
33
|
},
|
|
32
34
|
},
|
|
33
35
|
strategies: {
|
|
34
36
|
type: 'array',
|
|
37
|
+
description: 'A list of strategies',
|
|
35
38
|
items: {
|
|
36
39
|
$ref: '#/components/schemas/strategySchema',
|
|
37
40
|
},
|
|
38
41
|
},
|
|
39
42
|
tags: {
|
|
40
43
|
type: 'array',
|
|
44
|
+
description: 'A list of tags',
|
|
41
45
|
items: {
|
|
42
46
|
$ref: '#/components/schemas/tagSchema',
|
|
43
47
|
},
|
|
44
48
|
},
|
|
45
49
|
tagTypes: {
|
|
46
50
|
type: 'array',
|
|
51
|
+
description: 'A list of tag types',
|
|
47
52
|
items: {
|
|
48
53
|
$ref: '#/components/schemas/tagTypeSchema',
|
|
49
54
|
},
|
|
50
55
|
},
|
|
51
56
|
featureTags: {
|
|
52
57
|
type: 'array',
|
|
58
|
+
description: 'A list of tags applied to features',
|
|
53
59
|
items: {
|
|
54
60
|
$ref: '#/components/schemas/featureTagSchema',
|
|
55
61
|
},
|
|
56
62
|
},
|
|
57
63
|
projects: {
|
|
58
64
|
type: 'array',
|
|
65
|
+
description: 'A list of projects',
|
|
59
66
|
items: {
|
|
60
67
|
$ref: '#/components/schemas/projectSchema',
|
|
61
68
|
},
|
|
62
69
|
},
|
|
63
70
|
featureStrategies: {
|
|
64
71
|
type: 'array',
|
|
72
|
+
description: 'A list of feature strategies as applied to features',
|
|
65
73
|
items: {
|
|
66
74
|
$ref: '#/components/schemas/featureStrategySchema',
|
|
67
75
|
},
|
|
68
76
|
},
|
|
69
77
|
featureEnvironments: {
|
|
70
78
|
type: 'array',
|
|
79
|
+
description: 'A list of feature environment configurations',
|
|
71
80
|
items: {
|
|
72
81
|
$ref: '#/components/schemas/featureEnvironmentSchema',
|
|
73
82
|
},
|
|
74
83
|
},
|
|
75
84
|
environments: {
|
|
76
85
|
type: 'array',
|
|
86
|
+
description: 'A list of environments',
|
|
77
87
|
items: {
|
|
78
88
|
$ref: '#/components/schemas/environmentSchema',
|
|
79
89
|
},
|
|
80
90
|
},
|
|
81
91
|
segments: {
|
|
82
92
|
type: 'array',
|
|
93
|
+
description: 'A list of segments',
|
|
83
94
|
items: {
|
|
84
95
|
$ref: '#/components/schemas/segmentSchema',
|
|
85
96
|
},
|
|
86
97
|
},
|
|
87
98
|
featureStrategySegments: {
|
|
88
99
|
type: 'array',
|
|
100
|
+
description: 'A list of segment/strategy pairings',
|
|
89
101
|
items: {
|
|
90
102
|
$ref: '#/components/schemas/featureStrategySegmentSchema',
|
|
91
103
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/state-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,6CAAyC;AACzC,uDAAkD;AAClD,6DAAwD;AACxD,qDAAiD;AACjD,uEAAkE;AAClE,6EAAwE;AACxE,6DAAyD;AACzD,qDAAiD;AACjD,uFAAiF;AACjF,uDAAmD;AACnD,uEAAkE;AAErD,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,
|
|
1
|
+
{"version":3,"file":"state-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/state-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,6CAAyC;AACzC,uDAAkD;AAClD,6DAAwD;AACxD,qDAAiD;AACjD,uEAAkE;AAClE,6EAAwE;AACxE,6DAAyD;AACzD,qDAAiD;AACjD,uFAAiF;AACjF,uDAAmD;AACnD,uEAAkE;AAErD,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,IAAI;IAChB,WAAW,EACP,qEAAqE;IACzE,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,CAAC;SACb;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,sBAAsB;YACnC,KAAK,EAAE;gBACH,IAAI,EAAE,qCAAqC;aAC9C;SACJ;QACD,IAAI,EAAE;YACF,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gBAAgB;YAC7B,KAAK,EAAE;gBACH,IAAI,EAAE,gCAAgC;aACzC;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qBAAqB;YAClC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oCAAoC;YACjD,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qDAAqD;YAClE,KAAK,EAAE;gBACH,IAAI,EAAE,4CAA4C;aACrD;SACJ;QACD,mBAAmB,EAAE;YACjB,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,8CAA8C;YAC3D,KAAK,EAAE;gBACH,IAAI,EAAE,+CAA+C;aACxD;SACJ;QACD,YAAY,EAAE;YACV,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE;gBACH,IAAI,EAAE,wCAAwC;aACjD;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,uBAAuB,EAAE;YACrB,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qCAAqC;YAClD,KAAK,EAAE;gBACH,IAAI,EAAE,mDAAmD;aAC5D;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,aAAa,EAAb,8BAAa;YACb,SAAS,EAAT,sBAAS;YACT,aAAa,EAAb,+BAAa;YACb,gBAAgB,EAAhB,qCAAgB;YAChB,aAAa,EAAb,8BAAa;YACb,qBAAqB,EAArB,+CAAqB;YACrB,qBAAqB,EAArB,+CAAqB;YACrB,wBAAwB,EAAxB,qDAAwB;YACxB,iBAAiB,EAAjB,sCAAiB;YACjB,aAAa,EAAb,8BAAa;YACb,4BAA4B,EAA5B,8DAA4B;YAC5B,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
|
|
@@ -2,9 +2,11 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const toggleMaintenanceSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/toggleMaintenanceSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
+
readonly description: "Data used when to activate or deactivate maintenance mode for Unleash.";
|
|
5
6
|
readonly required: readonly ["enabled"];
|
|
6
7
|
readonly properties: {
|
|
7
8
|
readonly enabled: {
|
|
9
|
+
readonly description: "`true` if you want to activate maintenance mode, `false` if you want to deactivate it.";
|
|
8
10
|
readonly type: "boolean";
|
|
9
11
|
readonly example: true;
|
|
10
12
|
};
|
|
@@ -4,9 +4,11 @@ exports.toggleMaintenanceSchema = void 0;
|
|
|
4
4
|
exports.toggleMaintenanceSchema = {
|
|
5
5
|
$id: '#/components/schemas/toggleMaintenanceSchema',
|
|
6
6
|
type: 'object',
|
|
7
|
+
description: 'Data used when to activate or deactivate maintenance mode for Unleash.',
|
|
7
8
|
required: ['enabled'],
|
|
8
9
|
properties: {
|
|
9
10
|
enabled: {
|
|
11
|
+
description: '`true` if you want to activate maintenance mode, `false` if you want to deactivate it.',
|
|
10
12
|
type: 'boolean',
|
|
11
13
|
example: true,
|
|
12
14
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-maintenance-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/toggle-maintenance-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,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":"toggle-maintenance-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/toggle-maintenance-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,wEAAwE;IAC5E,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EACP,wFAAwF;YAC5F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SAChB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const tokenStringListSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/tokenStringListSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly additionalProperties: true;
|
|
6
5
|
readonly description: "A list of unleash tokens to validate against known tokens";
|
|
7
6
|
readonly required: readonly ["tokens"];
|
|
8
7
|
readonly properties: {
|
|
@@ -4,7 +4,6 @@ exports.tokenStringListSchema = void 0;
|
|
|
4
4
|
exports.tokenStringListSchema = {
|
|
5
5
|
$id: '#/components/schemas/tokenStringListSchema',
|
|
6
6
|
type: 'object',
|
|
7
|
-
additionalProperties: true,
|
|
8
7
|
description: 'A list of unleash tokens to validate against known tokens',
|
|
9
8
|
required: ['tokens'],
|
|
10
9
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-string-list-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-string-list-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAG;IACjC,GAAG,EAAE,4CAA4C;IACjD,IAAI,EAAE,QAAQ;IACd,
|
|
1
|
+
{"version":3,"file":"token-string-list-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-string-list-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAG;IACjC,GAAG,EAAE,4CAA4C;IACjD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,OAAO,EAAE;gBACL,mCAAmC;gBACnC,4BAA4B;aAC/B;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -4,7 +4,7 @@ export declare const tokenUserSchema: {
|
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
6
|
readonly description: "A user identified by a token";
|
|
7
|
-
readonly required: readonly ["id", "
|
|
7
|
+
readonly required: readonly ["id", "email", "token", "createdBy", "role"];
|
|
8
8
|
readonly properties: {
|
|
9
9
|
readonly id: {
|
|
10
10
|
readonly type: "integer";
|
|
@@ -7,7 +7,7 @@ exports.tokenUserSchema = {
|
|
|
7
7
|
type: 'object',
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
description: 'A user identified by a token',
|
|
10
|
-
required: ['id', '
|
|
10
|
+
required: ['id', 'email', 'token', 'createdBy', 'role'],
|
|
11
11
|
properties: {
|
|
12
12
|
id: {
|
|
13
13
|
type: 'integer',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-user-schema.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAE9B,QAAA,eAAe,GAAG;IAC3B,GAAG,EAAE,sCAAsC;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"token-user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-user-schema.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAE9B,QAAA,eAAe,GAAG;IAC3B,GAAG,EAAE,sCAAsC;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC;IACvD,UAAU,EAAE;QACR,EAAE,EAAE;YACA,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,CAAC;SACb;QACD,IAAI,EAAE;YACF,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;SACzB;QACD,KAAK,EAAE;YACH,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,KAAK,EAAE;YACH,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,sBAAsB;SAClC;QACD,SAAS,EAAE;YACP,WAAW,EACP,+DAA+D;YACnE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,mBAAmB;SAC/B;QACD,IAAI,EAAE;YACF,IAAI,EAAE,iCAAiC;SAC1C;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,UAAU,EAAV,wBAAU;SACb;KACJ;CACK,CAAC"}
|
package/dist/lib/openapi/spec/{upsert-context-field-schema.d.ts → update-context-field-schema.d.ts}
RENAMED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
-
export declare const
|
|
3
|
-
readonly $id: "#/components/schemas/
|
|
2
|
+
export declare const updateContextFieldSchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/updateContextFieldSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly
|
|
5
|
+
readonly description: "Data to update an existing context field configuration.";
|
|
6
6
|
readonly properties: {
|
|
7
|
-
readonly name: {
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
};
|
|
10
7
|
readonly description: {
|
|
11
8
|
readonly type: "string";
|
|
9
|
+
readonly description: "A description of the context field";
|
|
10
|
+
readonly example: "The user's subscription tier";
|
|
12
11
|
};
|
|
13
12
|
readonly stickiness: {
|
|
14
13
|
readonly type: "boolean";
|
|
14
|
+
readonly description: "`true` if this field should be available for use with [custom stickiness](https://docs.getunleash.io/reference/stickiness#custom-stickiness), otherwise `false`";
|
|
15
|
+
readonly example: false;
|
|
15
16
|
};
|
|
16
17
|
readonly sortOrder: {
|
|
17
|
-
readonly type: "
|
|
18
|
+
readonly type: "integer";
|
|
19
|
+
readonly description: "How this context field should be sorted if no other sort order is selected";
|
|
20
|
+
readonly example: 2;
|
|
18
21
|
};
|
|
19
22
|
readonly legalValues: {
|
|
20
23
|
readonly type: "array";
|
|
24
|
+
readonly description: "A list of allowed values for this context field";
|
|
25
|
+
readonly example: readonly [{
|
|
26
|
+
readonly value: "gold";
|
|
27
|
+
}, {
|
|
28
|
+
readonly value: "silver";
|
|
29
|
+
}, {
|
|
30
|
+
readonly value: "crystal";
|
|
31
|
+
}];
|
|
21
32
|
readonly items: {
|
|
22
33
|
readonly $ref: "#/components/schemas/legalValueSchema";
|
|
23
34
|
};
|
|
@@ -48,4 +59,4 @@ export declare const upsertContextFieldSchema: {
|
|
|
48
59
|
};
|
|
49
60
|
};
|
|
50
61
|
};
|
|
51
|
-
export declare type
|
|
62
|
+
export declare type UpdateContextFieldSchema = FromSchema<typeof updateContextFieldSchema>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateContextFieldSchema = void 0;
|
|
4
|
+
const legal_value_schema_1 = require("./legal-value-schema");
|
|
5
|
+
exports.updateContextFieldSchema = {
|
|
6
|
+
$id: '#/components/schemas/updateContextFieldSchema',
|
|
7
|
+
type: 'object',
|
|
8
|
+
description: 'Data to update an existing context field configuration.',
|
|
9
|
+
properties: {
|
|
10
|
+
description: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
description: 'A description of the context field',
|
|
13
|
+
example: "The user's subscription tier",
|
|
14
|
+
},
|
|
15
|
+
stickiness: {
|
|
16
|
+
type: 'boolean',
|
|
17
|
+
description: '`true` if this field should be available for use with [custom stickiness](https://docs.getunleash.io/reference/stickiness#custom-stickiness), otherwise `false`',
|
|
18
|
+
example: false,
|
|
19
|
+
},
|
|
20
|
+
sortOrder: {
|
|
21
|
+
type: 'integer',
|
|
22
|
+
description: 'How this context field should be sorted if no other sort order is selected',
|
|
23
|
+
example: 2,
|
|
24
|
+
},
|
|
25
|
+
legalValues: {
|
|
26
|
+
type: 'array',
|
|
27
|
+
description: 'A list of allowed values for this context field',
|
|
28
|
+
example: [
|
|
29
|
+
{ value: 'gold' },
|
|
30
|
+
{ value: 'silver' },
|
|
31
|
+
{ value: 'crystal' },
|
|
32
|
+
],
|
|
33
|
+
items: {
|
|
34
|
+
$ref: '#/components/schemas/legalValueSchema',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
components: {
|
|
39
|
+
schemas: {
|
|
40
|
+
legalValueSchema: legal_value_schema_1.legalValueSchema,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=update-context-field-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-context-field-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-context-field-schema.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AAE3C,QAAA,wBAAwB,GAAG;IACpC,GAAG,EAAE,+CAA+C;IACpD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,yDAAyD;IACtE,UAAU,EAAE;QACR,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,oCAAoC;YACjD,OAAO,EAAE,8BAA8B;SAC1C;QACD,UAAU,EAAE;YACR,IAAI,EAAE,SAAS;YACf,WAAW,EACP,iKAAiK;YACrK,OAAO,EAAE,KAAK;SACjB;QACD,SAAS,EAAE;YACP,IAAI,EAAE,SAAS;YACf,WAAW,EACP,4EAA4E;YAChF,OAAO,EAAE,CAAC;SACb;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE;gBACL,EAAE,KAAK,EAAE,MAAM,EAAE;gBACjB,EAAE,KAAK,EAAE,QAAQ,EAAE;gBACnB,EAAE,KAAK,EAAE,SAAS,EAAE;aACvB;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,qCAAgB;SACnB;KACJ;CACK,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const updateUserSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/updateUserSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly additionalProperties: true;
|
|
6
5
|
readonly description: "All fields that can be directly changed for the user";
|
|
7
6
|
readonly properties: {
|
|
8
7
|
readonly email: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-user-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAG;IAC5B,GAAG,EAAE,uCAAuC;IAC5C,IAAI,EAAE,QAAQ;IACd,
|
|
1
|
+
{"version":3,"file":"update-user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-user-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAG;IAC5B,GAAG,EAAE,uCAAuC;IAC5C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,sDAAsD;IACnE,UAAU,EAAE;QACR,KAAK,EAAE;YACH,WAAW,EACP,yEAAyE;YAC7E,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,IAAI,EAAE;YACF,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,eAAe;SAC3B;QACD,QAAQ,EAAE;YACN,WAAW,EACP,iFAAiF;YACrF,KAAK,EAAE;gBACH;oBACI,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,CAAC;iBACb;gBACD;oBACI,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,OAAO;oBAChB,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC;iBACzD;aACJ;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -22,6 +22,7 @@ export declare const userSchema: {
|
|
|
22
22
|
readonly description: "Name of the user";
|
|
23
23
|
readonly type: "string";
|
|
24
24
|
readonly example: "User";
|
|
25
|
+
readonly nullable: true;
|
|
25
26
|
};
|
|
26
27
|
readonly email: {
|
|
27
28
|
readonly description: "Email of the user";
|
|
@@ -55,7 +56,7 @@ export declare const userSchema: {
|
|
|
55
56
|
readonly example: false;
|
|
56
57
|
};
|
|
57
58
|
readonly rootRole: {
|
|
58
|
-
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#
|
|
59
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned";
|
|
59
60
|
readonly type: "integer";
|
|
60
61
|
readonly example: 1;
|
|
61
62
|
readonly minimum: 0;
|
|
@@ -25,6 +25,7 @@ exports.userSchema = {
|
|
|
25
25
|
description: 'Name of the user',
|
|
26
26
|
type: 'string',
|
|
27
27
|
example: 'User',
|
|
28
|
+
nullable: true,
|
|
28
29
|
},
|
|
29
30
|
email: {
|
|
30
31
|
description: 'Email of the user',
|
|
@@ -58,7 +59,7 @@ exports.userSchema = {
|
|
|
58
59
|
example: false,
|
|
59
60
|
},
|
|
60
61
|
rootRole: {
|
|
61
|
-
description: 'Which [root role](https://docs.getunleash.io/reference/rbac#
|
|
62
|
+
description: 'Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned',
|
|
62
63
|
type: 'integer',
|
|
63
64
|
example: 1,
|
|
64
65
|
minimum: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/user-schema.ts"],"names":[],"mappings":";;;AACA,uCAA2C;AAE9B,QAAA,UAAU,GAAG;IACtB,GAAG,EAAE,iCAAiC;IACtC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,iBAAiB;IAC9B,QAAQ,EAAE,CAAC,IAAI,CAAC;IAChB,UAAU,EAAE;QACR,EAAE,EAAE;YACA,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,GAAG;SACf;QACD,KAAK,EAAE;YACH,WAAW,EACP,8FAA8F;YAClG,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,IAAI;SACnB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/user-schema.ts"],"names":[],"mappings":";;;AACA,uCAA2C;AAE9B,QAAA,UAAU,GAAG;IACtB,GAAG,EAAE,iCAAiC;IACtC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,iBAAiB;IAC9B,QAAQ,EAAE,CAAC,IAAI,CAAC;IAChB,UAAU,EAAE;QACR,EAAE,EAAE;YACA,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,GAAG;SACf;QACD,KAAK,EAAE;YACH,WAAW,EACP,8FAA8F;YAClG,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,IAAI;SACnB;QACD,IAAI,EAAE;YACF,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,MAAM;YACf,QAAQ,EAAE,IAAI;SACjB;QACD,KAAK,EAAE;YACH,WAAW,EAAE,mBAAmB;YAChC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,QAAQ,EAAE;YACN,WAAW,EAAE,gCAAgC;YAC7C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,QAAQ;SACpB;QACD,QAAQ,EAAE;YACN,WAAW,EAAE,oCAAoC;YACjD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,iCAAiC;SAC7C;QACD,UAAU,EAAE;YACR,WAAW,EAAE,oGAAoG;YACjH,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,+CAA+C;SAC3D;QACD,aAAa,EAAE;YACX,WAAW,EACP,gEAAgE;YACpE,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;SACb;QACD,SAAS,EAAE;YACP,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB;QACD,QAAQ,EAAE;YACN,WAAW,EACP,qGAAqG;YACzG,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;SACb;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,0BAA0B;SACtC;QACD,SAAS,EAAE;YACP,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,OAAO,EAAE,0BAA0B;SACtC;QACD,WAAW,EAAE;YACT,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oBAAY;YAClB,OAAO,EAAE,MAAM;SAClB;QACD,WAAW,EAAE;YACT,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -3,18 +3,37 @@ export declare const usersGroupsBaseSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/usersGroupsBaseSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
|
+
readonly description: "An overview of user groups and users.";
|
|
6
7
|
readonly properties: {
|
|
7
8
|
readonly groups: {
|
|
8
9
|
readonly type: "array";
|
|
10
|
+
readonly description: "A list of user groups and their configuration.";
|
|
9
11
|
readonly items: {
|
|
10
12
|
readonly $ref: "#/components/schemas/groupSchema";
|
|
11
13
|
};
|
|
14
|
+
readonly example: readonly [{
|
|
15
|
+
readonly id: 1;
|
|
16
|
+
readonly name: "unleash-e2e-7095756699593281";
|
|
17
|
+
readonly userCount: 1;
|
|
18
|
+
readonly rootRole: any;
|
|
19
|
+
}];
|
|
12
20
|
};
|
|
13
21
|
readonly users: {
|
|
14
22
|
readonly type: "array";
|
|
15
23
|
readonly items: {
|
|
16
24
|
readonly $ref: "#/components/schemas/userSchema";
|
|
17
25
|
};
|
|
26
|
+
readonly description: "A list of users.";
|
|
27
|
+
readonly example: readonly [{
|
|
28
|
+
readonly id: 4;
|
|
29
|
+
readonly name: "unleash-e2e-user2-7095756699593281";
|
|
30
|
+
readonly email: "unleash-e2e-user2-7095756699593281@test.com";
|
|
31
|
+
readonly accountType: "User";
|
|
32
|
+
}, {
|
|
33
|
+
readonly id: 1;
|
|
34
|
+
readonly username: "admin";
|
|
35
|
+
readonly accountType: "User";
|
|
36
|
+
}];
|
|
18
37
|
};
|
|
19
38
|
};
|
|
20
39
|
readonly components: {
|
|
@@ -84,6 +103,12 @@ export declare const usersGroupsBaseSchema: {
|
|
|
84
103
|
};
|
|
85
104
|
readonly example: readonly ["default", "my-project"];
|
|
86
105
|
};
|
|
106
|
+
readonly userCount: {
|
|
107
|
+
readonly description: "The number of users that belong to this group";
|
|
108
|
+
readonly example: 1;
|
|
109
|
+
readonly type: "integer";
|
|
110
|
+
readonly minimum: 0;
|
|
111
|
+
};
|
|
87
112
|
};
|
|
88
113
|
readonly components: {
|
|
89
114
|
readonly schemas: {
|
|
@@ -135,6 +160,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
135
160
|
readonly description: "Name of the user";
|
|
136
161
|
readonly type: "string";
|
|
137
162
|
readonly example: "User";
|
|
163
|
+
readonly nullable: true;
|
|
138
164
|
};
|
|
139
165
|
readonly email: {
|
|
140
166
|
readonly description: "Email of the user";
|
|
@@ -168,7 +194,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
168
194
|
readonly example: false;
|
|
169
195
|
};
|
|
170
196
|
readonly rootRole: {
|
|
171
|
-
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#
|
|
197
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned";
|
|
172
198
|
readonly type: "integer";
|
|
173
199
|
readonly example: 1;
|
|
174
200
|
readonly minimum: 0;
|
|
@@ -228,6 +254,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
228
254
|
readonly description: "Name of the user";
|
|
229
255
|
readonly type: "string";
|
|
230
256
|
readonly example: "User";
|
|
257
|
+
readonly nullable: true;
|
|
231
258
|
};
|
|
232
259
|
readonly email: {
|
|
233
260
|
readonly description: "Email of the user";
|
|
@@ -261,7 +288,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
261
288
|
readonly example: false;
|
|
262
289
|
};
|
|
263
290
|
readonly rootRole: {
|
|
264
|
-
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#
|
|
291
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned";
|
|
265
292
|
readonly type: "integer";
|
|
266
293
|
readonly example: 1;
|
|
267
294
|
readonly minimum: 0;
|
|
@@ -346,6 +373,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
346
373
|
readonly description: "Name of the user";
|
|
347
374
|
readonly type: "string";
|
|
348
375
|
readonly example: "User";
|
|
376
|
+
readonly nullable: true;
|
|
349
377
|
};
|
|
350
378
|
readonly email: {
|
|
351
379
|
readonly description: "Email of the user";
|
|
@@ -379,7 +407,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
379
407
|
readonly example: false;
|
|
380
408
|
};
|
|
381
409
|
readonly rootRole: {
|
|
382
|
-
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#
|
|
410
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned";
|
|
383
411
|
readonly type: "integer";
|
|
384
412
|
readonly example: 1;
|
|
385
413
|
readonly minimum: 0;
|
|
@@ -439,6 +467,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
439
467
|
readonly description: "Name of the user";
|
|
440
468
|
readonly type: "string";
|
|
441
469
|
readonly example: "User";
|
|
470
|
+
readonly nullable: true;
|
|
442
471
|
};
|
|
443
472
|
readonly email: {
|
|
444
473
|
readonly description: "Email of the user";
|
|
@@ -472,7 +501,7 @@ export declare const usersGroupsBaseSchema: {
|
|
|
472
501
|
readonly example: false;
|
|
473
502
|
};
|
|
474
503
|
readonly rootRole: {
|
|
475
|
-
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#
|
|
504
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) this user is assigned";
|
|
476
505
|
readonly type: "integer";
|
|
477
506
|
readonly example: 1;
|
|
478
507
|
readonly minimum: 0;
|