unleash-server 5.2.8 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/addons/addon-schema.js +10 -0
- package/dist/lib/addons/addon-schema.js.map +1 -1
- package/dist/lib/addons/addon.d.ts +1 -0
- package/dist/lib/addons/addon.js.map +1 -1
- package/dist/lib/addons/datadog-definition.js +1 -0
- package/dist/lib/addons/datadog-definition.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.d.ts +1 -0
- package/dist/lib/addons/feature-event-formatter-md.js +7 -0
- package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
- package/dist/lib/addons/index.d.ts +2 -1
- package/dist/lib/addons/index.js +12 -2
- package/dist/lib/addons/index.js.map +1 -1
- package/dist/lib/addons/installation-definition-schema.d.ts +2 -0
- package/dist/lib/addons/installation-definition-schema.js +13 -0
- package/dist/lib/addons/installation-definition-schema.js.map +1 -0
- package/dist/lib/addons/slack-app-definition.d.ts +3 -0
- package/dist/lib/addons/slack-app-definition.js +68 -0
- package/dist/lib/addons/slack-app-definition.js.map +1 -0
- package/dist/lib/addons/slack-app.d.ts +23 -0
- package/dist/lib/addons/slack-app.js +137 -0
- package/dist/lib/addons/slack-app.js.map +1 -0
- package/dist/lib/addons/slack-app.test.d.ts +1 -0
- package/dist/lib/addons/slack-app.test.js +191 -0
- package/dist/lib/addons/slack-app.test.js.map +1 -0
- package/dist/lib/addons/slack-definition.js +1 -0
- package/dist/lib/addons/slack-definition.js.map +1 -1
- package/dist/lib/addons/teams-definition.js +1 -0
- package/dist/lib/addons/teams-definition.js.map +1 -1
- package/dist/lib/addons/webhook-definition.js +1 -0
- package/dist/lib/addons/webhook-definition.js.map +1 -1
- package/dist/lib/create-config.js +2 -2
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +0 -1
- package/dist/lib/db/access-store.js +1 -14
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-metrics-store-v2.js +7 -2
- package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
- package/dist/lib/db/context-field-store.js +9 -18
- package/dist/lib/db/context-field-store.js.map +1 -1
- package/dist/lib/db/event-store.d.ts +2 -0
- package/dist/lib/db/event-store.js +19 -9
- package/dist/lib/db/event-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.js +5 -0
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +1 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
- package/dist/lib/db/feature-toggle-client-store.d.ts +7 -8
- package/dist/lib/db/feature-toggle-client-store.js +46 -24
- package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-store.d.ts +6 -0
- package/dist/lib/db/feature-toggle-store.js +35 -0
- package/dist/lib/db/feature-toggle-store.js.map +1 -1
- package/dist/lib/db/feature-type-store.d.ts +1 -0
- package/dist/lib/db/feature-type-store.js +12 -0
- package/dist/lib/db/feature-type-store.js.map +1 -1
- package/dist/lib/db/group-store.d.ts +5 -7
- package/dist/lib/db/group-store.js +51 -25
- package/dist/lib/db/group-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/project-store.d.ts +3 -5
- package/dist/lib/db/project-store.js +19 -19
- package/dist/lib/db/project-store.js.map +1 -1
- package/dist/lib/db/segment-store.d.ts +2 -1
- package/dist/lib/db/segment-store.js +23 -20
- package/dist/lib/db/segment-store.js.map +1 -1
- package/dist/lib/db/segment-store.test.d.ts +1 -0
- package/dist/lib/db/segment-store.test.js +32 -0
- package/dist/lib/db/segment-store.test.js.map +1 -0
- package/dist/lib/error/bad-data-error.d.ts +1 -0
- package/dist/lib/error/bad-data-error.js +18 -5
- package/dist/lib/error/bad-data-error.js.map +1 -1
- package/dist/lib/error/content-type-error.d.ts +1 -0
- package/dist/lib/error/content-type-error.js +1 -0
- package/dist/lib/error/content-type-error.js.map +1 -1
- package/dist/lib/error/disabled-error.d.ts +1 -0
- package/dist/lib/error/disabled-error.js +4 -0
- package/dist/lib/error/disabled-error.js.map +1 -1
- package/dist/lib/error/feature-has-tag-error.d.ts +1 -0
- package/dist/lib/error/feature-has-tag-error.js +4 -0
- package/dist/lib/error/feature-has-tag-error.js.map +1 -1
- package/dist/lib/error/forbidden-error.d.ts +5 -0
- package/dist/lib/error/forbidden-error.js +12 -0
- package/dist/lib/error/forbidden-error.js.map +1 -0
- package/dist/lib/error/from-legacy-error.js +68 -0
- package/dist/lib/error/from-legacy-error.js.map +1 -1
- package/dist/lib/error/incompatible-project-error.d.ts +1 -0
- package/dist/lib/error/incompatible-project-error.js +1 -0
- package/dist/lib/error/incompatible-project-error.js.map +1 -1
- package/dist/lib/error/index.d.ts +3 -2
- package/dist/lib/error/index.js +5 -3
- package/dist/lib/error/index.js.map +1 -1
- package/dist/lib/error/invalid-operation-error.d.ts +1 -0
- package/dist/lib/error/invalid-operation-error.js +4 -0
- package/dist/lib/error/invalid-operation-error.js.map +1 -1
- package/dist/lib/error/invalid-token-error.d.ts +1 -0
- package/dist/lib/error/invalid-token-error.js +1 -0
- package/dist/lib/error/invalid-token-error.js.map +1 -1
- package/dist/lib/error/minimum-one-environment-error.d.ts +1 -0
- package/dist/lib/error/minimum-one-environment-error.js +4 -0
- package/dist/lib/error/minimum-one-environment-error.js.map +1 -1
- package/dist/lib/error/name-exists-error.d.ts +1 -0
- package/dist/lib/error/name-exists-error.js +4 -0
- package/dist/lib/error/name-exists-error.js.map +1 -1
- package/dist/lib/error/not-implemented-error.d.ts +1 -0
- package/dist/lib/error/not-implemented-error.js +4 -0
- package/dist/lib/error/not-implemented-error.js.map +1 -1
- package/dist/lib/error/notfound-error.d.ts +1 -0
- package/dist/lib/error/notfound-error.js +1 -0
- package/dist/lib/error/notfound-error.js.map +1 -1
- package/dist/lib/error/operation-denied-error.d.ts +1 -0
- package/dist/lib/error/operation-denied-error.js +4 -0
- package/dist/lib/error/operation-denied-error.js.map +1 -1
- package/dist/lib/error/owasp-validation-error.d.ts +1 -0
- package/dist/lib/error/owasp-validation-error.js +1 -0
- package/dist/lib/error/owasp-validation-error.js.map +1 -1
- package/dist/lib/error/password-mismatch.d.ts +1 -0
- package/dist/lib/error/password-mismatch.js +1 -0
- package/dist/lib/error/password-mismatch.js.map +1 -1
- package/dist/lib/error/password-undefined.d.ts +1 -0
- package/dist/lib/error/password-undefined.js +1 -0
- package/dist/lib/error/password-undefined.js.map +1 -1
- package/dist/lib/error/{no-access-error.d.ts → permission-error.d.ts} +3 -2
- package/dist/lib/error/{no-access-error.js → permission-error.js} +10 -7
- package/dist/lib/error/permission-error.js.map +1 -0
- package/dist/lib/error/project-without-owner-error.d.ts +1 -0
- package/dist/lib/error/project-without-owner-error.js +1 -0
- package/dist/lib/error/project-without-owner-error.js.map +1 -1
- package/dist/lib/error/role-in-use-error.d.ts +1 -0
- package/dist/lib/error/role-in-use-error.js +4 -0
- package/dist/lib/error/role-in-use-error.js.map +1 -1
- package/dist/lib/error/unauthorized-error.d.ts +1 -0
- package/dist/lib/error/unauthorized-error.js +4 -0
- package/dist/lib/error/unauthorized-error.js.map +1 -1
- package/dist/lib/error/unleash-error.d.ts +5 -3
- package/dist/lib/error/unleash-error.js +4 -61
- package/dist/lib/error/unleash-error.js.map +1 -1
- package/dist/lib/error/unleash-error.test.js +67 -37
- package/dist/lib/error/unleash-error.test.js.map +1 -1
- package/dist/lib/error/used-token-error.d.ts +1 -0
- package/dist/lib/error/used-token-error.js +1 -0
- package/dist/lib/error/used-token-error.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-controller.js +12 -7
- package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/group/createGroupService.d.ts +4 -0
- package/dist/lib/features/group/createGroupService.js +20 -0
- package/dist/lib/features/group/createGroupService.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/client.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/client.js +33 -13
- package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js +14 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/variant.d.ts +4 -4
- package/dist/lib/features/playground/feature-evaluator/variant.js +14 -10
- package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.js +7 -0
- package/dist/lib/features/playground/offline-unleash-client.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.test.js +69 -0
- package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -1
- package/dist/lib/features/playground/playground-service.js +5 -3
- package/dist/lib/features/playground/playground-service.js.map +1 -1
- package/dist/lib/features/playground/playground.js +12 -15
- package/dist/lib/features/playground/playground.js.map +1 -1
- package/dist/lib/middleware/api-token-middleware.js +1 -1
- package/dist/lib/middleware/api-token-middleware.js.map +1 -1
- package/dist/lib/openapi/index.js +15 -3
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +0 -126
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/addon-type-schema.d.ts +57 -0
- package/dist/lib/openapi/spec/addon-type-schema.js +50 -0
- package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/addons-schema.d.ts +64 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +166 -4
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +1 -2
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +331 -6
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +662 -12
- package/dist/lib/openapi/spec/api-tokens-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-features-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-stale-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js.map +1 -1
- package/dist/lib/openapi/spec/change-password-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +121 -3
- package/dist/lib/openapi/spec/client-feature-schema.js +2 -0
- package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.d.ts +246 -16
- package/dist/lib/openapi/spec/client-features-schema.js +5 -3
- package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.test.js +1 -2
- package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/client-segment-schema.d.ts +75 -0
- package/dist/lib/openapi/spec/client-segment-schema.js +35 -0
- package/dist/lib/openapi/spec/client-segment-schema.js.map +1 -0
- package/dist/lib/openapi/spec/clone-feature-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-schema.d.ts +22 -3
- package/dist/lib/openapi/spec/context-field-schema.js +17 -3
- package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-fields-schema.d.ts +28 -3
- package/dist/lib/openapi/spec/context-fields-schema.js +1 -0
- package/dist/lib/openapi/spec/context-fields-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-api-token-schema.d.ts +130 -32
- package/dist/lib/openapi/spec/create-api-token-schema.js +71 -35
- package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +63 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js +12 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-group-schema.d.ts +61 -0
- package/dist/lib/openapi/spec/create-group-schema.js +43 -0
- package/dist/lib/openapi/spec/create-group-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-schema.d.ts +52 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js +60 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js +53 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-response-schema.d.ts +98 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js +31 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-schema.d.ts +21 -1
- package/dist/lib/openapi/spec/create-user-schema.js +24 -1
- package/dist/lib/openapi/spec/create-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/email-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/email-schema.js +3 -0
- package/dist/lib/openapi/spec/email-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/environment-project-schema.js +2 -0
- package/dist/lib/openapi/spec/environment-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +118 -2
- package/dist/lib/openapi/spec/environments-project-schema.js +3 -0
- package/dist/lib/openapi/spec/environments-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/environments-schema.js +4 -0
- package/dist/lib/openapi/spec/environments-schema.js.map +1 -1
- package/dist/lib/openapi/spec/event-schema.d.ts +130 -0
- package/dist/lib/openapi/spec/event-schema.js +42 -2
- package/dist/lib/openapi/spec/event-schema.js.map +1 -1
- package/dist/lib/openapi/spec/events-schema.d.ts +137 -0
- package/dist/lib/openapi/spec/events-schema.js +7 -0
- package/dist/lib/openapi/spec/events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-query-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +609 -17
- package/dist/lib/openapi/spec/export-result-schema.js +90 -0
- package/dist/lib/openapi/spec/export-result-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +125 -3
- package/dist/lib/openapi/spec/feature-environment-schema.js +6 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-events-schema.d.ts +141 -1
- package/dist/lib/openapi/spec/feature-events-schema.js +13 -1
- package/dist/lib/openapi/spec/feature-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.d.ts +251 -6
- package/dist/lib/openapi/spec/feature-schema.js +7 -0
- package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.test.js +2 -2
- package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +61 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js +10 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-type-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-types-schema.d.ts +42 -1
- package/dist/lib/openapi/spec/feature-types-schema.js +37 -0
- package/dist/lib/openapi/spec/feature-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-variants-schema.d.ts +11 -2
- package/dist/lib/openapi/spec/feature-variants-schema.js +4 -0
- package/dist/lib/openapi/spec/feature-variants-schema.js.map +1 -1
- package/dist/lib/openapi/spec/features-schema.d.ts +501 -12
- package/dist/lib/openapi/spec/features-schema.js +6 -0
- package/dist/lib/openapi/spec/features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feedback-create-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js +23 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-response-schema.d.ts +33 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js +35 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-update-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js +29 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js.map +1 -0
- package/dist/lib/openapi/spec/group-schema.d.ts +107 -9
- package/dist/lib/openapi/spec/group-schema.js +20 -3
- package/dist/lib/openapi/spec/group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/group-user-model-schema.d.ts +46 -3
- package/dist/lib/openapi/spec/group-user-model-schema.js +5 -0
- package/dist/lib/openapi/spec/group-user-model-schema.js.map +1 -1
- package/dist/lib/openapi/spec/groups-schema.d.ts +196 -15
- package/dist/lib/openapi/spec/groups-schema.js +2 -0
- package/dist/lib/openapi/spec/groups-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/health-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-report-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/id-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/id-schema.js +3 -0
- package/dist/lib/openapi/spec/id-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +1198 -63
- package/dist/lib/openapi/spec/import-toggles-schema.js +7 -0
- package/dist/lib/openapi/spec/import-toggles-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-schema.d.ts +18 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js +17 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js.map +1 -1
- package/dist/lib/openapi/spec/index.d.ts +15 -3
- package/dist/lib/openapi/spec/index.js +15 -3
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/legal-value-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js.map +1 -1
- package/dist/lib/openapi/spec/login-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/login-schema.js +5 -0
- package/dist/lib/openapi/spec/login-schema.js.map +1 -1
- package/dist/lib/openapi/spec/me-schema.d.ts +69 -11
- package/dist/lib/openapi/spec/me-schema.js +7 -3
- package/dist/lib/openapi/spec/me-schema.js.map +1 -1
- package/dist/lib/openapi/spec/name-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/name-schema.js +3 -0
- package/dist/lib/openapi/spec/name-schema.js.map +1 -1
- package/dist/lib/openapi/spec/parameters-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
- package/dist/lib/openapi/spec/password-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/password-schema.js +7 -0
- package/dist/lib/openapi/spec/password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/patches-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/patches-schema.js +1 -0
- package/dist/lib/openapi/spec/patches-schema.js.map +1 -1
- package/dist/lib/openapi/spec/permission-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/permission-schema.js +7 -0
- package/dist/lib/openapi/spec/permission-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +165 -3
- package/dist/lib/openapi/spec/playground-feature-schema.js +0 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +330 -5
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +204 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js +49 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +267 -7
- package/dist/lib/openapi/spec/profile-schema.js +5 -0
- package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/project-environment-schema.js +2 -0
- package/dist/lib/openapi/spec/project-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/project-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-client-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-feature-schema.d.ts +20 -2
- package/dist/lib/openapi/spec/proxy-feature-schema.js +20 -3
- package/dist/lib/openapi/spec/proxy-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-features-schema.d.ts +22 -1
- package/dist/lib/openapi/spec/proxy-features-schema.js +2 -0
- package/dist/lib/openapi/spec/proxy-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +52 -4
- package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +104 -8
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/requests-per-second-schema.js +22 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.js.map +1 -1
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.d.ts +17 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js +1 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js.map +1 -1
- package/dist/lib/openapi/spec/role-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/role-schema.js +11 -1
- package/dist/lib/openapi/spec/role-schema.js.map +1 -1
- package/dist/lib/openapi/spec/search-events-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/search-events-schema.js +10 -0
- package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/segment-schema.d.ts +23 -6
- package/dist/lib/openapi/spec/segment-schema.js +18 -15
- package/dist/lib/openapi/spec/segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-ui-config-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/splash-request-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/splash-request-schema.js +23 -0
- package/dist/lib/openapi/spec/splash-request-schema.js.map +1 -0
- package/dist/lib/openapi/spec/splash-response-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/splash-response-schema.js +21 -0
- package/dist/lib/openapi/spec/splash-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/state-schema.d.ts +523 -19
- package/dist/lib/openapi/spec/state-schema.js +2 -0
- package/dist/lib/openapi/spec/state-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategies-schema.d.ts +9 -3
- package/dist/lib/openapi/spec/strategies-schema.js +5 -0
- package/dist/lib/openapi/spec/strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.d.ts +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.test.js +5 -0
- package/dist/lib/openapi/spec/strategy-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js +16 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/tag-type-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-types-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/tag-types-schema.js +4 -0
- package/dist/lib/openapi/spec/tag-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-with-version-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js.map +1 -1
- package/dist/lib/openapi/spec/telemetry-settings-schema.d.ts +22 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js +24 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js.map +1 -0
- package/dist/lib/openapi/spec/token-user-schema.d.ts +23 -2
- package/dist/lib/openapi/spec/token-user-schema.js +12 -1
- package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/ui-config-schema.d.ts +77 -1
- package/dist/lib/openapi/spec/ui-config-schema.js +53 -0
- package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-api-token-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-schema.d.ts +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js +4 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.d.ts +19 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js +21 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-strategy-schema.d.ts +47 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js +55 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-user-schema.d.ts +15 -1
- package/dist/lib/openapi/spec/update-user-schema.js +18 -1
- package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/upsert-context-field-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/user-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/user-schema.js +41 -3
- package/dist/lib/openapi/spec/user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +194 -15
- package/dist/lib/openapi/spec/users-schema.d.ts +55 -4
- package/dist/lib/openapi/spec/users-schema.js +3 -0
- package/dist/lib/openapi/spec/users-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-search-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/validate-feature-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js +18 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/validate-password-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/validate-tag-type-schema.d.ts +10 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-flag-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/variant-schema.js +7 -2
- package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/version-schema.d.ts +16 -1
- package/dist/lib/openapi/spec/version-schema.js +16 -1
- package/dist/lib/openapi/spec/version-schema.js.map +1 -1
- package/dist/lib/openapi/util/openapi-tags.d.ts +14 -2
- package/dist/lib/openapi/util/openapi-tags.js +9 -1
- package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
- package/dist/lib/openapi/util/standard-responses.d.ts +1 -1
- package/dist/lib/openapi/util/standard-responses.js +1 -1
- package/dist/lib/openapi/util/standard-responses.js.map +1 -1
- package/dist/lib/openapi/validate.js +1 -1
- package/dist/lib/openapi/validate.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.js +12 -0
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/archive.d.ts +0 -1
- package/dist/lib/routes/admin-api/archive.js +20 -5
- package/dist/lib/routes/admin-api/archive.js.map +1 -1
- package/dist/lib/routes/admin-api/config.js +4 -0
- package/dist/lib/routes/admin-api/config.js.map +1 -1
- package/dist/lib/routes/admin-api/constraints.d.ts +2 -2
- package/dist/lib/routes/admin-api/constraints.js +5 -2
- package/dist/lib/routes/admin-api/constraints.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +2 -1
- package/dist/lib/routes/admin-api/context.js +16 -4
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/event.js +6 -3
- package/dist/lib/routes/admin-api/event.js.map +1 -1
- package/dist/lib/routes/admin-api/favorites.js +24 -4
- package/dist/lib/routes/admin-api/favorites.js.map +1 -1
- package/dist/lib/routes/admin-api/feature-type.d.ts +6 -0
- package/dist/lib/routes/admin-api/feature-type.js +37 -1
- package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
- package/dist/lib/routes/admin-api/feature.d.ts +2 -3
- package/dist/lib/routes/admin-api/feature.js +14 -3
- package/dist/lib/routes/admin-api/feature.js.map +1 -1
- package/dist/lib/routes/admin-api/index.js +2 -0
- package/dist/lib/routes/admin-api/index.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-archive.js +13 -4
- package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-features.d.ts +1 -1
- package/dist/lib/routes/admin-api/project/project-features.js +116 -27
- package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
- package/dist/lib/routes/admin-api/project/variants.js +26 -16
- package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.d.ts +6 -3
- package/dist/lib/routes/admin-api/strategy.js +40 -12
- package/dist/lib/routes/admin-api/strategy.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.test.js +5 -5
- package/dist/lib/routes/admin-api/strategy.test.js.map +1 -1
- package/dist/lib/routes/admin-api/tag-type.js +21 -1
- package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
- package/dist/lib/routes/admin-api/tag.js +17 -1
- package/dist/lib/routes/admin-api/tag.js.map +1 -1
- package/dist/lib/routes/admin-api/telemetry.d.ts +14 -0
- package/dist/lib/routes/admin-api/telemetry.js +41 -0
- package/dist/lib/routes/admin-api/telemetry.js.map +1 -0
- package/dist/lib/routes/admin-api/user/user.js +20 -4
- package/dist/lib/routes/admin-api/user/user.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.d.ts +3 -2
- package/dist/lib/routes/admin-api/user-admin.js +88 -14
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/user-feedback.js +17 -7
- package/dist/lib/routes/admin-api/user-feedback.js.map +1 -1
- package/dist/lib/routes/admin-api/user-splash.js +9 -3
- package/dist/lib/routes/admin-api/user-splash.js.map +1 -1
- package/dist/lib/routes/auth/reset-password-controller.js +24 -4
- package/dist/lib/routes/auth/reset-password-controller.js.map +1 -1
- package/dist/lib/routes/auth/simple-password-provider.js +4 -0
- package/dist/lib/routes/auth/simple-password-provider.js.map +1 -1
- package/dist/lib/routes/client-api/feature.js +1 -1
- package/dist/lib/routes/client-api/feature.js.map +1 -1
- package/dist/lib/routes/client-api/feature.test.js +8 -3
- package/dist/lib/routes/client-api/feature.test.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.js +3 -3
- package/dist/lib/routes/client-api/metrics.js.map +1 -1
- package/dist/lib/routes/controller.js +2 -2
- package/dist/lib/routes/controller.js.map +1 -1
- package/dist/lib/routes/index.js +1 -3
- package/dist/lib/routes/index.js.map +1 -1
- package/dist/lib/routes/proxy-api/index.d.ts +1 -1
- package/dist/lib/routes/proxy-api/index.js +27 -4
- package/dist/lib/routes/proxy-api/index.js.map +1 -1
- package/dist/lib/segments/segment-service-interface.d.ts +2 -1
- package/dist/lib/server-impl.js +1 -0
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/addon-service.d.ts +2 -1
- package/dist/lib/services/addon-service.js +6 -2
- package/dist/lib/services/addon-service.js.map +1 -1
- package/dist/lib/services/client-metrics/metrics-service-v2.js +24 -13
- package/dist/lib/services/client-metrics/metrics-service-v2.js.map +1 -1
- package/dist/lib/services/event-announcer-service.d.ts +8 -0
- package/dist/lib/services/event-announcer-service.js +13 -0
- package/dist/lib/services/event-announcer-service.js.map +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.d.ts +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js +44 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -0
- package/dist/lib/services/feature-toggle-service.d.ts +5 -2
- package/dist/lib/services/feature-toggle-service.js +95 -16
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/feature-type-service.d.ts +1 -0
- package/dist/lib/services/feature-type-service.js +14 -0
- package/dist/lib/services/feature-type-service.js.map +1 -1
- package/dist/lib/services/group-service.d.ts +4 -4
- package/dist/lib/services/group-service.js.map +1 -1
- package/dist/lib/services/index.js +9 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/project-schema.js +1 -0
- package/dist/lib/services/project-schema.js.map +1 -1
- package/dist/lib/services/project-service.d.ts +2 -4
- package/dist/lib/services/project-service.js +4 -9
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/segment-service.d.ts +2 -1
- package/dist/lib/services/segment-service.js +3 -0
- package/dist/lib/services/segment-service.js.map +1 -1
- package/dist/lib/services/tag-type-service.d.ts +2 -2
- package/dist/lib/services/tag-type-service.js +5 -3
- package/dist/lib/services/tag-type-service.js.map +1 -1
- package/dist/lib/services/user-service.js +13 -7
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +1 -2
- package/dist/lib/services/version-service.js +2 -4
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/services/version-service.test.js +0 -57
- package/dist/lib/services/version-service.test.js.map +1 -1
- package/dist/lib/types/authentication-required.d.ts +1 -0
- package/dist/lib/types/authentication-required.js +1 -0
- package/dist/lib/types/authentication-required.js.map +1 -1
- package/dist/lib/types/events.d.ts +138 -99
- package/dist/lib/types/events.js +136 -3
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +5 -5
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/group.d.ts +7 -0
- package/dist/lib/types/group.js.map +1 -1
- package/dist/lib/types/model.d.ts +24 -2
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/services.d.ts +3 -0
- package/dist/lib/types/stores/event-store.d.ts +1 -0
- package/dist/lib/types/stores/feature-toggle-client-store.d.ts +2 -1
- package/dist/lib/types/stores/feature-toggle-store.d.ts +6 -0
- package/dist/lib/types/stores/feature-type-store.d.ts +1 -0
- package/dist/lib/types/stores/group-store.d.ts +4 -4
- package/dist/lib/types/stores/project-store.d.ts +3 -6
- package/dist/lib/types/stores/segment-store.d.ts +2 -1
- package/dist/lib/util/is-email.d.ts +7 -0
- package/dist/lib/util/is-email.js +9 -0
- package/dist/lib/util/is-email.js.map +1 -1
- package/dist/lib/util/load-index-html.js +1 -1
- package/dist/lib/util/load-index-html.js.map +1 -1
- package/dist/migrations/20230630080126-delete-deprecated-permissions.d.ts +2 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js +15 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js.map +1 -0
- package/dist/migrations/20230706123907-events-announced-column.d.ts +2 -0
- package/dist/migrations/20230706123907-events-announced-column.js +15 -0
- package/dist/migrations/20230706123907-events-announced-column.js.map +1 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.d.ts +2 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js +18 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js.map +1 -0
- package/dist/migrations/20230711163311-project-feature-limit.d.ts +2 -0
- package/dist/migrations/20230711163311-project-feature-limit.js +13 -0
- package/dist/migrations/20230711163311-project-feature-limit.js.map +1 -0
- package/dist/migrations/20230712091834-strategy-variants.d.ts +2 -0
- package/dist/migrations/20230712091834-strategy-variants.js +81 -0
- package/dist/migrations/20230712091834-strategy-variants.js.map +1 -0
- package/dist/server-dev.js +5 -3
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.test.js +1 -1
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/archive.test.js +7 -1
- package/dist/test/e2e/api/admin/archive.test.js.map +1 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feature-type.test.js +41 -1
- package/dist/test/e2e/api/admin/feature-type.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +152 -0
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js +28 -12
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/state.e2e.test.js +6 -6
- package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js +9 -6
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +26 -4
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/group-service.e2e.test.js +16 -0
- package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/user-service.e2e.test.js +2 -2
- package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/event-store.e2e.test.js +3 -2
- package/dist/test/e2e/stores/event-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js +163 -0
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js +13 -0
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js.map +1 -1
- package/dist/test/fixtures/fake-event-store.d.ts +1 -0
- package/dist/test/fixtures/fake-event-store.js +3 -0
- package/dist/test/fixtures/fake-event-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-client-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js +10 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-store.d.ts +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-type-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-type-store.js +8 -0
- package/dist/test/fixtures/fake-feature-type-store.js.map +1 -1
- package/dist/test/fixtures/fake-group-store.d.ts +4 -4
- package/dist/test/fixtures/fake-group-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.d.ts +3 -4
- package/dist/test/fixtures/fake-project-store.js +4 -13
- package/dist/test/fixtures/fake-project-store.js.map +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts +2 -1
- package/dist/test/fixtures/fake-segment-store.js +3 -0
- package/dist/test/fixtures/fake-segment-store.js.map +1 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/AdvancedPlayground-4c9d02ea.js +13 -0
- package/frontend/build/static/CreateProject-16b35d57.js +4 -0
- package/frontend/build/static/{Error-2c3030da.js → Error-50364f10.js} +1 -1
- package/frontend/build/static/{FeatureArchiveDialog-a529848e.js → FeatureArchiveDialog-fda1aa0c.js} +3 -3
- package/frontend/build/static/{FeatureMetricsChart-e8ede36a.js → FeatureMetricsChart-839cdf1e.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-47bb7f13.js +7 -0
- package/frontend/build/static/LazyAdminExport-8ef0ca21.js +37 -0
- package/frontend/build/static/LazyProjectExport-49541c75.js +16 -0
- package/frontend/build/static/{NetworkOverview-e6f0a590.js → NetworkOverview-711050f3.js} +8 -8
- package/frontend/build/static/{NetworkTraffic-d1efc782.js → NetworkTraffic-e587c2c7.js} +1 -1
- package/frontend/build/static/RoleCell-9a62b4ed.js +1 -0
- package/frontend/build/static/StrategyItemContainer-4098c8ef.js +1 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-0d05c046.js → chartjs-adapter-date-fns.esm-d57aaddd.js} +1 -1
- package/frontend/build/static/demo-qr-c2ce85bd.png +0 -0
- package/frontend/build/static/{flowchart-elk-definition-170a3958-cc4ae597.js → flowchart-elk-definition-170a3958-4dece62b.js} +2 -2
- package/frontend/build/static/{index-a563ae6f.js → index-1c8194e0.js} +1 -1
- package/frontend/build/static/index-770afaee.css +1 -0
- package/frontend/build/static/{index-ade82986.js → index-9bb67f88.js} +1 -1
- package/frontend/build/static/index-9c528324.js +453 -0
- package/frontend/build/static/{is_dark-49e2e68f.js → is_dark-ba77f0b9.js} +1 -1
- package/frontend/build/static/{mindmap-definition-44684416-c6d3a96e.js → mindmap-definition-44684416-a4071c9f.js} +3 -3
- package/frontend/build/static/{timeline-definition-8e5a9bc6-920370f9.js → timeline-definition-8e5a9bc6-c996bf40.js} +2 -2
- package/frontend/build/static/{unknownify-30fed5e1.js → unknownify-db48ebae.js} +1 -1
- package/frontend/package.json +16 -16
- package/package.json +15 -13
- package/dist/lib/error/no-access-error.js.map +0 -1
- package/dist/lib/openapi/endpoint-descriptions.d.ts +0 -20
- package/dist/lib/openapi/endpoint-descriptions.js +0 -24
- package/dist/lib/openapi/endpoint-descriptions.js.map +0 -1
- package/dist/lib/openapi/spec/feedback-schema.d.ts +0 -24
- package/dist/lib/openapi/spec/feedback-schema.js +0 -26
- package/dist/lib/openapi/spec/feedback-schema.js.map +0 -1
- package/dist/lib/openapi/spec/splash-schema.d.ts +0 -20
- package/dist/lib/openapi/spec/splash-schema.js +0 -22
- package/dist/lib/openapi/spec/splash-schema.js.map +0 -1
- package/dist/lib/openapi/spec/upsert-strategy-schema.d.ts +0 -39
- package/dist/lib/openapi/spec/upsert-strategy-schema.js +0 -41
- package/dist/lib/openapi/spec/upsert-strategy-schema.js.map +0 -1
- package/frontend/build/static/AdvancedPlayground-bc3db7fd.js +0 -1
- package/frontend/build/static/CreateProject-4013b189.js +0 -4
- package/frontend/build/static/FeatureViewLazyExport-773303d1.js +0 -7
- package/frontend/build/static/LazyAdminExport-a9aeca56.js +0 -37
- package/frontend/build/static/LazyProjectExport-7c849a96.js +0 -13
- package/frontend/build/static/Playground-4fd4e26e.js +0 -1
- package/frontend/build/static/PlaygroundGuidancePopper-c761bfb7.js +0 -13
- package/frontend/build/static/RoleCell-cbb192fa.js +0 -1
- package/frontend/build/static/StrategyItemContainer-128fc163.js +0 -1
- package/frontend/build/static/demo-qr-1bebe2c9.png +0 -0
- package/frontend/build/static/index-66c635eb.css +0 -1
- package/frontend/build/static/index-bd571775.js +0 -450
- package/frontend/build/static/stringify-ec884b6d.js +0 -1
|
@@ -22,50 +22,67 @@ export declare const usersGroupsBaseSchema: {
|
|
|
22
22
|
readonly groupSchema: {
|
|
23
23
|
readonly $id: "#/components/schemas/groupSchema";
|
|
24
24
|
readonly type: "object";
|
|
25
|
-
readonly additionalProperties:
|
|
25
|
+
readonly additionalProperties: false;
|
|
26
26
|
readonly required: readonly ["name"];
|
|
27
|
+
readonly description: "A detailed information about a user group";
|
|
27
28
|
readonly properties: {
|
|
28
29
|
readonly id: {
|
|
29
|
-
readonly
|
|
30
|
+
readonly description: "The group id";
|
|
31
|
+
readonly type: "integer";
|
|
32
|
+
readonly example: 1;
|
|
30
33
|
};
|
|
31
34
|
readonly name: {
|
|
35
|
+
readonly description: "The name of the group";
|
|
32
36
|
readonly type: "string";
|
|
37
|
+
readonly example: "DX team";
|
|
33
38
|
};
|
|
34
39
|
readonly description: {
|
|
40
|
+
readonly description: "A custom description of the group";
|
|
35
41
|
readonly type: "string";
|
|
36
42
|
readonly nullable: true;
|
|
43
|
+
readonly example: "Current members of the DX squad";
|
|
37
44
|
};
|
|
38
45
|
readonly mappingsSSO: {
|
|
46
|
+
readonly description: "A list of SSO groups that should map to this Unleash group";
|
|
39
47
|
readonly type: "array";
|
|
40
48
|
readonly items: {
|
|
41
49
|
readonly type: "string";
|
|
42
50
|
};
|
|
51
|
+
readonly example: readonly ["SSOGroup1", "SSOGroup2"];
|
|
43
52
|
};
|
|
44
53
|
readonly rootRole: {
|
|
45
54
|
readonly type: "number";
|
|
46
55
|
readonly nullable: true;
|
|
47
|
-
readonly description: "A role id that is used as the root role for all users in this group. This can be either the id of the Editor or Admin role.";
|
|
56
|
+
readonly description: "A role id that is used as the root role for all users in this group. This can be either the id of the Viewer, Editor or Admin role.";
|
|
57
|
+
readonly example: 1;
|
|
48
58
|
};
|
|
49
59
|
readonly createdBy: {
|
|
60
|
+
readonly description: "A user who created this group";
|
|
50
61
|
readonly type: "string";
|
|
51
62
|
readonly nullable: true;
|
|
63
|
+
readonly example: "admin";
|
|
52
64
|
};
|
|
53
65
|
readonly createdAt: {
|
|
66
|
+
readonly description: "When was this group created";
|
|
54
67
|
readonly type: "string";
|
|
55
68
|
readonly format: "date-time";
|
|
56
69
|
readonly nullable: true;
|
|
70
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
57
71
|
};
|
|
58
72
|
readonly users: {
|
|
59
73
|
readonly type: "array";
|
|
74
|
+
readonly description: "A list of users belonging to this group";
|
|
60
75
|
readonly items: {
|
|
61
76
|
readonly $ref: "#/components/schemas/groupUserModelSchema";
|
|
62
77
|
};
|
|
63
78
|
};
|
|
64
79
|
readonly projects: {
|
|
80
|
+
readonly description: "A list of projects where this group is used";
|
|
65
81
|
readonly type: "array";
|
|
66
82
|
readonly items: {
|
|
67
83
|
readonly type: "string";
|
|
68
84
|
};
|
|
85
|
+
readonly example: readonly ["default", "my-project"];
|
|
69
86
|
};
|
|
70
87
|
};
|
|
71
88
|
readonly components: {
|
|
@@ -75,14 +92,19 @@ export declare const usersGroupsBaseSchema: {
|
|
|
75
92
|
readonly type: "object";
|
|
76
93
|
readonly additionalProperties: false;
|
|
77
94
|
readonly required: readonly ["user"];
|
|
95
|
+
readonly description: "Details for a single user belonging to a group";
|
|
78
96
|
readonly properties: {
|
|
79
97
|
readonly joinedAt: {
|
|
98
|
+
readonly description: "The date when the user joined the group";
|
|
80
99
|
readonly type: "string";
|
|
81
100
|
readonly format: "date-time";
|
|
101
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
82
102
|
};
|
|
83
103
|
readonly createdBy: {
|
|
104
|
+
readonly description: "The username of the user who added this user to this group";
|
|
84
105
|
readonly type: "string";
|
|
85
106
|
readonly nullable: true;
|
|
107
|
+
readonly example: "admin";
|
|
86
108
|
};
|
|
87
109
|
readonly user: {
|
|
88
110
|
readonly $ref: "#/components/schemas/userSchema";
|
|
@@ -94,50 +116,88 @@ export declare const usersGroupsBaseSchema: {
|
|
|
94
116
|
readonly $id: "#/components/schemas/userSchema";
|
|
95
117
|
readonly type: "object";
|
|
96
118
|
readonly additionalProperties: false;
|
|
119
|
+
readonly description: "An Unleash user";
|
|
97
120
|
readonly required: readonly ["id"];
|
|
98
121
|
readonly properties: {
|
|
99
122
|
readonly id: {
|
|
100
|
-
readonly
|
|
123
|
+
readonly description: "The user id";
|
|
124
|
+
readonly type: "integer";
|
|
125
|
+
readonly minimum: 0;
|
|
126
|
+
readonly example: 123;
|
|
101
127
|
};
|
|
102
128
|
readonly isAPI: {
|
|
129
|
+
readonly description: "(Deprecated): Used internally to know which operations the user should be allowed to perform";
|
|
103
130
|
readonly type: "boolean";
|
|
131
|
+
readonly example: true;
|
|
132
|
+
readonly deprecated: true;
|
|
104
133
|
};
|
|
105
134
|
readonly name: {
|
|
135
|
+
readonly description: "Name of the user";
|
|
106
136
|
readonly type: "string";
|
|
137
|
+
readonly example: "User";
|
|
107
138
|
};
|
|
108
139
|
readonly email: {
|
|
140
|
+
readonly description: "Email of the user";
|
|
109
141
|
readonly type: "string";
|
|
142
|
+
readonly example: "user@example.com";
|
|
110
143
|
};
|
|
111
144
|
readonly username: {
|
|
145
|
+
readonly description: "A unique username for the user";
|
|
112
146
|
readonly type: "string";
|
|
147
|
+
readonly example: "hunter";
|
|
113
148
|
};
|
|
114
149
|
readonly imageUrl: {
|
|
150
|
+
readonly description: "URL used for the userprofile image";
|
|
115
151
|
readonly type: "string";
|
|
152
|
+
readonly example: "https://example.com/242x200.png";
|
|
116
153
|
};
|
|
117
154
|
readonly inviteLink: {
|
|
155
|
+
readonly description: "If the user is actively inviting other users, this is the link that can be shared with other users";
|
|
118
156
|
readonly type: "string";
|
|
157
|
+
readonly example: "http://localhost:4242/invite-link/some-secret";
|
|
119
158
|
};
|
|
120
159
|
readonly loginAttempts: {
|
|
121
|
-
readonly
|
|
160
|
+
readonly description: "How many unsuccessful attempts at logging in has the user made";
|
|
161
|
+
readonly type: "integer";
|
|
162
|
+
readonly minimum: 0;
|
|
163
|
+
readonly example: 3;
|
|
122
164
|
};
|
|
123
165
|
readonly emailSent: {
|
|
166
|
+
readonly description: "Is the welcome email sent to the user or not";
|
|
124
167
|
readonly type: "boolean";
|
|
168
|
+
readonly example: false;
|
|
125
169
|
};
|
|
126
170
|
readonly rootRole: {
|
|
127
|
-
readonly
|
|
171
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned";
|
|
172
|
+
readonly type: "integer";
|
|
173
|
+
readonly example: 1;
|
|
174
|
+
readonly minimum: 0;
|
|
128
175
|
};
|
|
129
176
|
readonly seenAt: {
|
|
177
|
+
readonly description: "The last time this user logged in";
|
|
130
178
|
readonly type: "string";
|
|
131
179
|
readonly format: "date-time";
|
|
132
180
|
readonly nullable: true;
|
|
181
|
+
readonly example: "2023-06-30T11:42:00.345Z";
|
|
133
182
|
};
|
|
134
183
|
readonly createdAt: {
|
|
184
|
+
readonly description: "The user was created at this time";
|
|
135
185
|
readonly type: "string";
|
|
136
186
|
readonly format: "date-time";
|
|
187
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
137
188
|
};
|
|
138
189
|
readonly accountType: {
|
|
190
|
+
readonly description: "A user is either an actual User or a Service Account";
|
|
139
191
|
readonly type: "string";
|
|
140
192
|
readonly enum: readonly ["User", "Service Account"];
|
|
193
|
+
readonly example: "User";
|
|
194
|
+
};
|
|
195
|
+
readonly permissions: {
|
|
196
|
+
readonly description: "Deprecated";
|
|
197
|
+
readonly type: "array";
|
|
198
|
+
readonly items: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
};
|
|
141
201
|
};
|
|
142
202
|
};
|
|
143
203
|
readonly components: {};
|
|
@@ -149,50 +209,88 @@ export declare const usersGroupsBaseSchema: {
|
|
|
149
209
|
readonly $id: "#/components/schemas/userSchema";
|
|
150
210
|
readonly type: "object";
|
|
151
211
|
readonly additionalProperties: false;
|
|
212
|
+
readonly description: "An Unleash user";
|
|
152
213
|
readonly required: readonly ["id"];
|
|
153
214
|
readonly properties: {
|
|
154
215
|
readonly id: {
|
|
155
|
-
readonly
|
|
216
|
+
readonly description: "The user id";
|
|
217
|
+
readonly type: "integer";
|
|
218
|
+
readonly minimum: 0;
|
|
219
|
+
readonly example: 123;
|
|
156
220
|
};
|
|
157
221
|
readonly isAPI: {
|
|
222
|
+
readonly description: "(Deprecated): Used internally to know which operations the user should be allowed to perform";
|
|
158
223
|
readonly type: "boolean";
|
|
224
|
+
readonly example: true;
|
|
225
|
+
readonly deprecated: true;
|
|
159
226
|
};
|
|
160
227
|
readonly name: {
|
|
228
|
+
readonly description: "Name of the user";
|
|
161
229
|
readonly type: "string";
|
|
230
|
+
readonly example: "User";
|
|
162
231
|
};
|
|
163
232
|
readonly email: {
|
|
233
|
+
readonly description: "Email of the user";
|
|
164
234
|
readonly type: "string";
|
|
235
|
+
readonly example: "user@example.com";
|
|
165
236
|
};
|
|
166
237
|
readonly username: {
|
|
238
|
+
readonly description: "A unique username for the user";
|
|
167
239
|
readonly type: "string";
|
|
240
|
+
readonly example: "hunter";
|
|
168
241
|
};
|
|
169
242
|
readonly imageUrl: {
|
|
243
|
+
readonly description: "URL used for the userprofile image";
|
|
170
244
|
readonly type: "string";
|
|
245
|
+
readonly example: "https://example.com/242x200.png";
|
|
171
246
|
};
|
|
172
247
|
readonly inviteLink: {
|
|
248
|
+
readonly description: "If the user is actively inviting other users, this is the link that can be shared with other users";
|
|
173
249
|
readonly type: "string";
|
|
250
|
+
readonly example: "http://localhost:4242/invite-link/some-secret";
|
|
174
251
|
};
|
|
175
252
|
readonly loginAttempts: {
|
|
176
|
-
readonly
|
|
253
|
+
readonly description: "How many unsuccessful attempts at logging in has the user made";
|
|
254
|
+
readonly type: "integer";
|
|
255
|
+
readonly minimum: 0;
|
|
256
|
+
readonly example: 3;
|
|
177
257
|
};
|
|
178
258
|
readonly emailSent: {
|
|
259
|
+
readonly description: "Is the welcome email sent to the user or not";
|
|
179
260
|
readonly type: "boolean";
|
|
261
|
+
readonly example: false;
|
|
180
262
|
};
|
|
181
263
|
readonly rootRole: {
|
|
182
|
-
readonly
|
|
264
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned";
|
|
265
|
+
readonly type: "integer";
|
|
266
|
+
readonly example: 1;
|
|
267
|
+
readonly minimum: 0;
|
|
183
268
|
};
|
|
184
269
|
readonly seenAt: {
|
|
270
|
+
readonly description: "The last time this user logged in";
|
|
185
271
|
readonly type: "string";
|
|
186
272
|
readonly format: "date-time";
|
|
187
273
|
readonly nullable: true;
|
|
274
|
+
readonly example: "2023-06-30T11:42:00.345Z";
|
|
188
275
|
};
|
|
189
276
|
readonly createdAt: {
|
|
277
|
+
readonly description: "The user was created at this time";
|
|
190
278
|
readonly type: "string";
|
|
191
279
|
readonly format: "date-time";
|
|
280
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
192
281
|
};
|
|
193
282
|
readonly accountType: {
|
|
283
|
+
readonly description: "A user is either an actual User or a Service Account";
|
|
194
284
|
readonly type: "string";
|
|
195
285
|
readonly enum: readonly ["User", "Service Account"];
|
|
286
|
+
readonly example: "User";
|
|
287
|
+
};
|
|
288
|
+
readonly permissions: {
|
|
289
|
+
readonly description: "Deprecated";
|
|
290
|
+
readonly type: "array";
|
|
291
|
+
readonly items: {
|
|
292
|
+
readonly type: "string";
|
|
293
|
+
};
|
|
196
294
|
};
|
|
197
295
|
};
|
|
198
296
|
readonly components: {};
|
|
@@ -205,14 +303,19 @@ export declare const usersGroupsBaseSchema: {
|
|
|
205
303
|
readonly type: "object";
|
|
206
304
|
readonly additionalProperties: false;
|
|
207
305
|
readonly required: readonly ["user"];
|
|
306
|
+
readonly description: "Details for a single user belonging to a group";
|
|
208
307
|
readonly properties: {
|
|
209
308
|
readonly joinedAt: {
|
|
309
|
+
readonly description: "The date when the user joined the group";
|
|
210
310
|
readonly type: "string";
|
|
211
311
|
readonly format: "date-time";
|
|
312
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
212
313
|
};
|
|
213
314
|
readonly createdBy: {
|
|
315
|
+
readonly description: "The username of the user who added this user to this group";
|
|
214
316
|
readonly type: "string";
|
|
215
317
|
readonly nullable: true;
|
|
318
|
+
readonly example: "admin";
|
|
216
319
|
};
|
|
217
320
|
readonly user: {
|
|
218
321
|
readonly $ref: "#/components/schemas/userSchema";
|
|
@@ -224,50 +327,88 @@ export declare const usersGroupsBaseSchema: {
|
|
|
224
327
|
readonly $id: "#/components/schemas/userSchema";
|
|
225
328
|
readonly type: "object";
|
|
226
329
|
readonly additionalProperties: false;
|
|
330
|
+
readonly description: "An Unleash user";
|
|
227
331
|
readonly required: readonly ["id"];
|
|
228
332
|
readonly properties: {
|
|
229
333
|
readonly id: {
|
|
230
|
-
readonly
|
|
334
|
+
readonly description: "The user id";
|
|
335
|
+
readonly type: "integer";
|
|
336
|
+
readonly minimum: 0;
|
|
337
|
+
readonly example: 123;
|
|
231
338
|
};
|
|
232
339
|
readonly isAPI: {
|
|
340
|
+
readonly description: "(Deprecated): Used internally to know which operations the user should be allowed to perform";
|
|
233
341
|
readonly type: "boolean";
|
|
342
|
+
readonly example: true;
|
|
343
|
+
readonly deprecated: true;
|
|
234
344
|
};
|
|
235
345
|
readonly name: {
|
|
346
|
+
readonly description: "Name of the user";
|
|
236
347
|
readonly type: "string";
|
|
348
|
+
readonly example: "User";
|
|
237
349
|
};
|
|
238
350
|
readonly email: {
|
|
351
|
+
readonly description: "Email of the user";
|
|
239
352
|
readonly type: "string";
|
|
353
|
+
readonly example: "user@example.com";
|
|
240
354
|
};
|
|
241
355
|
readonly username: {
|
|
356
|
+
readonly description: "A unique username for the user";
|
|
242
357
|
readonly type: "string";
|
|
358
|
+
readonly example: "hunter";
|
|
243
359
|
};
|
|
244
360
|
readonly imageUrl: {
|
|
361
|
+
readonly description: "URL used for the userprofile image";
|
|
245
362
|
readonly type: "string";
|
|
363
|
+
readonly example: "https://example.com/242x200.png";
|
|
246
364
|
};
|
|
247
365
|
readonly inviteLink: {
|
|
366
|
+
readonly description: "If the user is actively inviting other users, this is the link that can be shared with other users";
|
|
248
367
|
readonly type: "string";
|
|
368
|
+
readonly example: "http://localhost:4242/invite-link/some-secret";
|
|
249
369
|
};
|
|
250
370
|
readonly loginAttempts: {
|
|
251
|
-
readonly
|
|
371
|
+
readonly description: "How many unsuccessful attempts at logging in has the user made";
|
|
372
|
+
readonly type: "integer";
|
|
373
|
+
readonly minimum: 0;
|
|
374
|
+
readonly example: 3;
|
|
252
375
|
};
|
|
253
376
|
readonly emailSent: {
|
|
377
|
+
readonly description: "Is the welcome email sent to the user or not";
|
|
254
378
|
readonly type: "boolean";
|
|
379
|
+
readonly example: false;
|
|
255
380
|
};
|
|
256
381
|
readonly rootRole: {
|
|
257
|
-
readonly
|
|
382
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned";
|
|
383
|
+
readonly type: "integer";
|
|
384
|
+
readonly example: 1;
|
|
385
|
+
readonly minimum: 0;
|
|
258
386
|
};
|
|
259
387
|
readonly seenAt: {
|
|
388
|
+
readonly description: "The last time this user logged in";
|
|
260
389
|
readonly type: "string";
|
|
261
390
|
readonly format: "date-time";
|
|
262
391
|
readonly nullable: true;
|
|
392
|
+
readonly example: "2023-06-30T11:42:00.345Z";
|
|
263
393
|
};
|
|
264
394
|
readonly createdAt: {
|
|
395
|
+
readonly description: "The user was created at this time";
|
|
265
396
|
readonly type: "string";
|
|
266
397
|
readonly format: "date-time";
|
|
398
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
267
399
|
};
|
|
268
400
|
readonly accountType: {
|
|
401
|
+
readonly description: "A user is either an actual User or a Service Account";
|
|
269
402
|
readonly type: "string";
|
|
270
403
|
readonly enum: readonly ["User", "Service Account"];
|
|
404
|
+
readonly example: "User";
|
|
405
|
+
};
|
|
406
|
+
readonly permissions: {
|
|
407
|
+
readonly description: "Deprecated";
|
|
408
|
+
readonly type: "array";
|
|
409
|
+
readonly items: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
};
|
|
271
412
|
};
|
|
272
413
|
};
|
|
273
414
|
readonly components: {};
|
|
@@ -279,50 +420,88 @@ export declare const usersGroupsBaseSchema: {
|
|
|
279
420
|
readonly $id: "#/components/schemas/userSchema";
|
|
280
421
|
readonly type: "object";
|
|
281
422
|
readonly additionalProperties: false;
|
|
423
|
+
readonly description: "An Unleash user";
|
|
282
424
|
readonly required: readonly ["id"];
|
|
283
425
|
readonly properties: {
|
|
284
426
|
readonly id: {
|
|
285
|
-
readonly
|
|
427
|
+
readonly description: "The user id";
|
|
428
|
+
readonly type: "integer";
|
|
429
|
+
readonly minimum: 0;
|
|
430
|
+
readonly example: 123;
|
|
286
431
|
};
|
|
287
432
|
readonly isAPI: {
|
|
433
|
+
readonly description: "(Deprecated): Used internally to know which operations the user should be allowed to perform";
|
|
288
434
|
readonly type: "boolean";
|
|
435
|
+
readonly example: true;
|
|
436
|
+
readonly deprecated: true;
|
|
289
437
|
};
|
|
290
438
|
readonly name: {
|
|
439
|
+
readonly description: "Name of the user";
|
|
291
440
|
readonly type: "string";
|
|
441
|
+
readonly example: "User";
|
|
292
442
|
};
|
|
293
443
|
readonly email: {
|
|
444
|
+
readonly description: "Email of the user";
|
|
294
445
|
readonly type: "string";
|
|
446
|
+
readonly example: "user@example.com";
|
|
295
447
|
};
|
|
296
448
|
readonly username: {
|
|
449
|
+
readonly description: "A unique username for the user";
|
|
297
450
|
readonly type: "string";
|
|
451
|
+
readonly example: "hunter";
|
|
298
452
|
};
|
|
299
453
|
readonly imageUrl: {
|
|
454
|
+
readonly description: "URL used for the userprofile image";
|
|
300
455
|
readonly type: "string";
|
|
456
|
+
readonly example: "https://example.com/242x200.png";
|
|
301
457
|
};
|
|
302
458
|
readonly inviteLink: {
|
|
459
|
+
readonly description: "If the user is actively inviting other users, this is the link that can be shared with other users";
|
|
303
460
|
readonly type: "string";
|
|
461
|
+
readonly example: "http://localhost:4242/invite-link/some-secret";
|
|
304
462
|
};
|
|
305
463
|
readonly loginAttempts: {
|
|
306
|
-
readonly
|
|
464
|
+
readonly description: "How many unsuccessful attempts at logging in has the user made";
|
|
465
|
+
readonly type: "integer";
|
|
466
|
+
readonly minimum: 0;
|
|
467
|
+
readonly example: 3;
|
|
307
468
|
};
|
|
308
469
|
readonly emailSent: {
|
|
470
|
+
readonly description: "Is the welcome email sent to the user or not";
|
|
309
471
|
readonly type: "boolean";
|
|
472
|
+
readonly example: false;
|
|
310
473
|
};
|
|
311
474
|
readonly rootRole: {
|
|
312
|
-
readonly
|
|
475
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned";
|
|
476
|
+
readonly type: "integer";
|
|
477
|
+
readonly example: 1;
|
|
478
|
+
readonly minimum: 0;
|
|
313
479
|
};
|
|
314
480
|
readonly seenAt: {
|
|
481
|
+
readonly description: "The last time this user logged in";
|
|
315
482
|
readonly type: "string";
|
|
316
483
|
readonly format: "date-time";
|
|
317
484
|
readonly nullable: true;
|
|
485
|
+
readonly example: "2023-06-30T11:42:00.345Z";
|
|
318
486
|
};
|
|
319
487
|
readonly createdAt: {
|
|
488
|
+
readonly description: "The user was created at this time";
|
|
320
489
|
readonly type: "string";
|
|
321
490
|
readonly format: "date-time";
|
|
491
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
322
492
|
};
|
|
323
493
|
readonly accountType: {
|
|
494
|
+
readonly description: "A user is either an actual User or a Service Account";
|
|
324
495
|
readonly type: "string";
|
|
325
496
|
readonly enum: readonly ["User", "Service Account"];
|
|
497
|
+
readonly example: "User";
|
|
498
|
+
};
|
|
499
|
+
readonly permissions: {
|
|
500
|
+
readonly description: "Deprecated";
|
|
501
|
+
readonly type: "array";
|
|
502
|
+
readonly items: {
|
|
503
|
+
readonly type: "string";
|
|
504
|
+
};
|
|
326
505
|
};
|
|
327
506
|
};
|
|
328
507
|
readonly components: {};
|
|
@@ -3,16 +3,19 @@ export declare const usersSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/usersSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
|
+
readonly description: "Users and root roles";
|
|
6
7
|
readonly required: readonly ["users"];
|
|
7
8
|
readonly properties: {
|
|
8
9
|
readonly users: {
|
|
9
10
|
readonly type: "array";
|
|
11
|
+
readonly description: "A list of users in the Unleash instance.";
|
|
10
12
|
readonly items: {
|
|
11
13
|
readonly $ref: "#/components/schemas/userSchema";
|
|
12
14
|
};
|
|
13
15
|
};
|
|
14
16
|
readonly rootRoles: {
|
|
15
17
|
readonly type: "array";
|
|
18
|
+
readonly description: "A list of [root roles](https://docs.getunleash.io/reference/rbac#standard-roles) in the Unleash instance.";
|
|
16
19
|
readonly items: {
|
|
17
20
|
readonly $ref: "#/components/schemas/roleSchema";
|
|
18
21
|
};
|
|
@@ -24,50 +27,88 @@ export declare const usersSchema: {
|
|
|
24
27
|
readonly $id: "#/components/schemas/userSchema";
|
|
25
28
|
readonly type: "object";
|
|
26
29
|
readonly additionalProperties: false;
|
|
30
|
+
readonly description: "An Unleash user";
|
|
27
31
|
readonly required: readonly ["id"];
|
|
28
32
|
readonly properties: {
|
|
29
33
|
readonly id: {
|
|
30
|
-
readonly
|
|
34
|
+
readonly description: "The user id";
|
|
35
|
+
readonly type: "integer";
|
|
36
|
+
readonly minimum: 0;
|
|
37
|
+
readonly example: 123;
|
|
31
38
|
};
|
|
32
39
|
readonly isAPI: {
|
|
40
|
+
readonly description: "(Deprecated): Used internally to know which operations the user should be allowed to perform";
|
|
33
41
|
readonly type: "boolean";
|
|
42
|
+
readonly example: true;
|
|
43
|
+
readonly deprecated: true;
|
|
34
44
|
};
|
|
35
45
|
readonly name: {
|
|
46
|
+
readonly description: "Name of the user";
|
|
36
47
|
readonly type: "string";
|
|
48
|
+
readonly example: "User";
|
|
37
49
|
};
|
|
38
50
|
readonly email: {
|
|
51
|
+
readonly description: "Email of the user";
|
|
39
52
|
readonly type: "string";
|
|
53
|
+
readonly example: "user@example.com";
|
|
40
54
|
};
|
|
41
55
|
readonly username: {
|
|
56
|
+
readonly description: "A unique username for the user";
|
|
42
57
|
readonly type: "string";
|
|
58
|
+
readonly example: "hunter";
|
|
43
59
|
};
|
|
44
60
|
readonly imageUrl: {
|
|
61
|
+
readonly description: "URL used for the userprofile image";
|
|
45
62
|
readonly type: "string";
|
|
63
|
+
readonly example: "https://example.com/242x200.png";
|
|
46
64
|
};
|
|
47
65
|
readonly inviteLink: {
|
|
66
|
+
readonly description: "If the user is actively inviting other users, this is the link that can be shared with other users";
|
|
48
67
|
readonly type: "string";
|
|
68
|
+
readonly example: "http://localhost:4242/invite-link/some-secret";
|
|
49
69
|
};
|
|
50
70
|
readonly loginAttempts: {
|
|
51
|
-
readonly
|
|
71
|
+
readonly description: "How many unsuccessful attempts at logging in has the user made";
|
|
72
|
+
readonly type: "integer";
|
|
73
|
+
readonly minimum: 0;
|
|
74
|
+
readonly example: 3;
|
|
52
75
|
};
|
|
53
76
|
readonly emailSent: {
|
|
77
|
+
readonly description: "Is the welcome email sent to the user or not";
|
|
54
78
|
readonly type: "boolean";
|
|
79
|
+
readonly example: false;
|
|
55
80
|
};
|
|
56
81
|
readonly rootRole: {
|
|
57
|
-
readonly
|
|
82
|
+
readonly description: "Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned";
|
|
83
|
+
readonly type: "integer";
|
|
84
|
+
readonly example: 1;
|
|
85
|
+
readonly minimum: 0;
|
|
58
86
|
};
|
|
59
87
|
readonly seenAt: {
|
|
88
|
+
readonly description: "The last time this user logged in";
|
|
60
89
|
readonly type: "string";
|
|
61
90
|
readonly format: "date-time";
|
|
62
91
|
readonly nullable: true;
|
|
92
|
+
readonly example: "2023-06-30T11:42:00.345Z";
|
|
63
93
|
};
|
|
64
94
|
readonly createdAt: {
|
|
95
|
+
readonly description: "The user was created at this time";
|
|
65
96
|
readonly type: "string";
|
|
66
97
|
readonly format: "date-time";
|
|
98
|
+
readonly example: "2023-06-30T11:41:00.123Z";
|
|
67
99
|
};
|
|
68
100
|
readonly accountType: {
|
|
101
|
+
readonly description: "A user is either an actual User or a Service Account";
|
|
69
102
|
readonly type: "string";
|
|
70
103
|
readonly enum: readonly ["User", "Service Account"];
|
|
104
|
+
readonly example: "User";
|
|
105
|
+
};
|
|
106
|
+
readonly permissions: {
|
|
107
|
+
readonly description: "Deprecated";
|
|
108
|
+
readonly type: "array";
|
|
109
|
+
readonly items: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
};
|
|
71
112
|
};
|
|
72
113
|
};
|
|
73
114
|
readonly components: {};
|
|
@@ -75,20 +116,30 @@ export declare const usersSchema: {
|
|
|
75
116
|
readonly roleSchema: {
|
|
76
117
|
readonly $id: "#/components/schemas/roleSchema";
|
|
77
118
|
readonly type: "object";
|
|
119
|
+
readonly description: "A role holds permissions to allow Unleash to decide what actions a role holder is allowed to perform";
|
|
78
120
|
readonly additionalProperties: false;
|
|
79
121
|
readonly required: readonly ["id", "type", "name"];
|
|
80
122
|
readonly properties: {
|
|
81
123
|
readonly id: {
|
|
82
|
-
readonly type: "
|
|
124
|
+
readonly type: "integer";
|
|
125
|
+
readonly description: "The role id";
|
|
126
|
+
readonly example: 9;
|
|
127
|
+
readonly minimum: 0;
|
|
83
128
|
};
|
|
84
129
|
readonly type: {
|
|
130
|
+
readonly description: "A role can either be a global root role (applies to all projects) or a project role";
|
|
85
131
|
readonly type: "string";
|
|
132
|
+
readonly example: "root";
|
|
86
133
|
};
|
|
87
134
|
readonly name: {
|
|
135
|
+
readonly description: "The name of the role";
|
|
88
136
|
readonly type: "string";
|
|
137
|
+
readonly example: "Editor";
|
|
89
138
|
};
|
|
90
139
|
readonly description: {
|
|
140
|
+
readonly description: "A more detailed description of the role and what use it's intended for";
|
|
91
141
|
readonly type: "string";
|
|
142
|
+
readonly example: "Users with the editor role have access to most features in Unleash but can not manage users and roles in the global scope. Editors will be added as project owners when creating projects and get superuser rights within the context of these projects. Users with the editor role will also get access to most permissions on the default project by default.";
|
|
92
143
|
};
|
|
93
144
|
};
|
|
94
145
|
readonly components: {};
|
|
@@ -7,16 +7,19 @@ exports.usersSchema = {
|
|
|
7
7
|
$id: '#/components/schemas/usersSchema',
|
|
8
8
|
type: 'object',
|
|
9
9
|
additionalProperties: false,
|
|
10
|
+
description: 'Users and root roles',
|
|
10
11
|
required: ['users'],
|
|
11
12
|
properties: {
|
|
12
13
|
users: {
|
|
13
14
|
type: 'array',
|
|
15
|
+
description: 'A list of users in the Unleash instance.',
|
|
14
16
|
items: {
|
|
15
17
|
$ref: '#/components/schemas/userSchema',
|
|
16
18
|
},
|
|
17
19
|
},
|
|
18
20
|
rootRoles: {
|
|
19
21
|
type: 'array',
|
|
22
|
+
description: 'A list of [root roles](https://docs.getunleash.io/reference/rbac#standard-roles) in the Unleash instance.',
|
|
20
23
|
items: {
|
|
21
24
|
$ref: '#/components/schemas/roleSchema',
|
|
22
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/users-schema.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAC3C,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,iCAAiC;aAC1C;SACJ;QACD,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,iCAAiC;aAC1C;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,UAAU,EAAV,wBAAU;YACV,UAAU,EAAV,wBAAU;SACb;KACJ;CACK,CAAC"}
|
|
1
|
+
{"version":3,"file":"users-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/users-schema.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAC3C,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,KAAK,EAAE;YACH,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,0CAA0C;YACvD,KAAK,EAAE;gBACH,IAAI,EAAE,iCAAiC;aAC1C;SACJ;QACD,SAAS,EAAE;YACP,IAAI,EAAE,OAAO;YACb,WAAW,EACP,2GAA2G;YAC/G,KAAK,EAAE;gBACH,IAAI,EAAE,iCAAiC;aAC1C;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,UAAU,EAAV,wBAAU;YACV,UAAU,EAAV,wBAAU;SACb;KACJ;CACK,CAAC"}
|