unleash-server 5.2.7 → 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 +21 -0
- package/dist/lib/addons/datadog-definition.js.map +1 -1
- package/dist/lib/addons/datadog.d.ts +8 -1
- package/dist/lib/addons/datadog.js +14 -2
- package/dist/lib/addons/datadog.js.map +1 -1
- package/dist/lib/addons/datadog.test.js +62 -0
- package/dist/lib/addons/datadog.test.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 +13 -0
- package/dist/lib/addons/slack-definition.js.map +1 -1
- package/dist/lib/addons/slack.d.ts +9 -1
- package/dist/lib/addons/slack.js +15 -3
- package/dist/lib/addons/slack.js.map +1 -1
- package/dist/lib/addons/slack.test.js +33 -0
- package/dist/lib/addons/slack.test.js.map +1 -1
- package/dist/lib/addons/teams-definition.js +13 -0
- package/dist/lib/addons/teams-definition.js.map +1 -1
- package/dist/lib/addons/teams.d.ts +6 -1
- package/dist/lib/addons/teams.js +11 -2
- package/dist/lib/addons/teams.js.map +1 -1
- package/dist/lib/addons/teams.test.js +28 -0
- package/dist/lib/addons/teams.test.js.map +1 -1
- package/dist/lib/addons/webhook-definition.js +13 -0
- package/dist/lib/addons/webhook-definition.js.map +1 -1
- package/dist/lib/addons/webhook.d.ts +1 -0
- package/dist/lib/addons/webhook.js +11 -1
- package/dist/lib/addons/webhook.js.map +1 -1
- package/dist/lib/addons/webhook.test.js +29 -0
- package/dist/lib/addons/webhook.test.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
|
@@ -3,52 +3,87 @@ export declare const uiConfigSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/uiConfigSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
|
+
readonly description: "A collection of properties used to configure the Unleash Admin UI.";
|
|
6
7
|
readonly required: readonly ["version", "unleashUrl", "baseUriPath", "versionInfo"];
|
|
7
8
|
readonly properties: {
|
|
8
9
|
readonly slogan: {
|
|
9
10
|
readonly type: "string";
|
|
11
|
+
readonly description: "The slogan to display in the UI footer.";
|
|
12
|
+
readonly example: "The enterprise-ready feature toggle service.";
|
|
10
13
|
};
|
|
11
14
|
readonly name: {
|
|
12
15
|
readonly type: "string";
|
|
16
|
+
readonly description: "The name of this Unleash instance. Used to build the text in the footer.";
|
|
17
|
+
readonly example: "Unleash enterprise";
|
|
13
18
|
};
|
|
14
19
|
readonly version: {
|
|
15
20
|
readonly type: "string";
|
|
21
|
+
readonly description: "The current version of Unleash";
|
|
22
|
+
readonly example: "5.3.0-main";
|
|
16
23
|
};
|
|
17
24
|
readonly environment: {
|
|
18
25
|
readonly type: "string";
|
|
26
|
+
readonly description: "What kind of Unleash instance it is: Enterprise, Pro, or Open source";
|
|
27
|
+
readonly example: "Enterprise";
|
|
19
28
|
};
|
|
20
29
|
readonly unleashUrl: {
|
|
21
30
|
readonly type: "string";
|
|
31
|
+
readonly description: "The URL of the Unleash instance.";
|
|
32
|
+
readonly example: "https://unleash.mycompany.com/enterprise";
|
|
22
33
|
};
|
|
23
34
|
readonly baseUriPath: {
|
|
24
35
|
readonly type: "string";
|
|
36
|
+
readonly description: "The base URI path at which this Unleash instance is listening.";
|
|
37
|
+
readonly example: "/enterprise";
|
|
25
38
|
};
|
|
26
39
|
readonly disablePasswordAuth: {
|
|
27
40
|
readonly type: "boolean";
|
|
41
|
+
readonly description: "Whether password authentication should be disabled or not.";
|
|
42
|
+
readonly example: false;
|
|
28
43
|
};
|
|
29
44
|
readonly emailEnabled: {
|
|
30
45
|
readonly type: "boolean";
|
|
46
|
+
readonly description: "Whether this instance can send out emails or not.";
|
|
47
|
+
readonly example: true;
|
|
31
48
|
};
|
|
32
49
|
readonly maintenanceMode: {
|
|
33
50
|
readonly type: "boolean";
|
|
51
|
+
readonly description: "Whether maintenance mode is currently active or not.";
|
|
52
|
+
readonly example: false;
|
|
34
53
|
};
|
|
35
54
|
readonly segmentValuesLimit: {
|
|
36
55
|
readonly type: "number";
|
|
56
|
+
readonly description: "The maximum number of values that can be used in a single segment.";
|
|
57
|
+
readonly example: 1000;
|
|
37
58
|
};
|
|
38
59
|
readonly strategySegmentsLimit: {
|
|
39
60
|
readonly type: "number";
|
|
61
|
+
readonly description: "The maximum number of segments that can be applied to a single strategy.";
|
|
62
|
+
readonly example: 5;
|
|
40
63
|
};
|
|
41
64
|
readonly networkViewEnabled: {
|
|
42
65
|
readonly type: "boolean";
|
|
66
|
+
readonly description: "Whether to enable the Unleash network view or not.";
|
|
67
|
+
readonly example: true;
|
|
43
68
|
};
|
|
44
69
|
readonly frontendApiOrigins: {
|
|
45
70
|
readonly type: "array";
|
|
71
|
+
readonly description: "The list of origins that the front-end API should accept requests from.";
|
|
72
|
+
readonly example: readonly ["*"];
|
|
46
73
|
readonly items: {
|
|
47
74
|
readonly type: "string";
|
|
48
75
|
};
|
|
49
76
|
};
|
|
50
77
|
readonly flags: {
|
|
51
78
|
readonly type: "object";
|
|
79
|
+
readonly description: "Additional (largely experimental) features that are enabled in this Unleash instance.";
|
|
80
|
+
readonly example: {
|
|
81
|
+
readonly messageBanner: {
|
|
82
|
+
readonly name: "disabled";
|
|
83
|
+
readonly enabled: false;
|
|
84
|
+
};
|
|
85
|
+
readonly featuresExportImport: true;
|
|
86
|
+
};
|
|
52
87
|
readonly additionalProperties: {
|
|
53
88
|
readonly anyOf: readonly [{
|
|
54
89
|
readonly type: "boolean";
|
|
@@ -58,6 +93,19 @@ export declare const uiConfigSchema: {
|
|
|
58
93
|
};
|
|
59
94
|
};
|
|
60
95
|
readonly links: {
|
|
96
|
+
readonly description: "Relevant links to use in the UI.";
|
|
97
|
+
readonly example: readonly [{
|
|
98
|
+
readonly value: "Documentation";
|
|
99
|
+
readonly icon: "library_books";
|
|
100
|
+
readonly href: "https://docs.getunleash.io/docs";
|
|
101
|
+
readonly title: "User documentation";
|
|
102
|
+
}, {
|
|
103
|
+
readonly value: "GitHub";
|
|
104
|
+
readonly icon: "c_github";
|
|
105
|
+
readonly href: "https://github.com/Unleash/unleash";
|
|
106
|
+
readonly title: "Source code on GitHub";
|
|
107
|
+
}];
|
|
108
|
+
readonly 'x-enforcer-exception-skip-codes': "WSCH006";
|
|
61
109
|
readonly type: "array";
|
|
62
110
|
readonly items: {
|
|
63
111
|
readonly type: "object";
|
|
@@ -65,6 +113,8 @@ export declare const uiConfigSchema: {
|
|
|
65
113
|
};
|
|
66
114
|
readonly authenticationType: {
|
|
67
115
|
readonly type: "string";
|
|
116
|
+
readonly description: "The type of authentication enabled for this Unleash instance";
|
|
117
|
+
readonly example: "enterprise";
|
|
68
118
|
readonly enum: readonly ["open-source", "demo", "enterprise", "hosted", "custom", "none"];
|
|
69
119
|
};
|
|
70
120
|
readonly versionInfo: {
|
|
@@ -77,16 +127,22 @@ export declare const uiConfigSchema: {
|
|
|
77
127
|
readonly $id: "#/components/schemas/versionSchema";
|
|
78
128
|
readonly type: "object";
|
|
79
129
|
readonly additionalProperties: false;
|
|
80
|
-
readonly
|
|
130
|
+
readonly description: "Detailed information about an Unleash version";
|
|
131
|
+
readonly required: readonly ["current", "latest", "isLatest"];
|
|
81
132
|
readonly properties: {
|
|
82
133
|
readonly current: {
|
|
83
134
|
readonly type: "object";
|
|
84
135
|
readonly additionalProperties: false;
|
|
136
|
+
readonly description: "The current version of Unleash.";
|
|
85
137
|
readonly properties: {
|
|
86
138
|
readonly oss: {
|
|
139
|
+
readonly description: "The OSS version used when building this Unleash instance, represented as a git revision belonging to the [main Unleash git repo](https://github.com/Unleash/unleash/)";
|
|
140
|
+
readonly example: "5.3.0-main";
|
|
87
141
|
readonly type: "string";
|
|
88
142
|
};
|
|
89
143
|
readonly enterprise: {
|
|
144
|
+
readonly description: "The Enterpris version of Unleash used to build this instance, represented as a git revision belonging to the [Unleash Enterprise](https://github.com/ivarconr/unleash-enterprise) repository. Will be an empty string if no enterprise version was used,";
|
|
145
|
+
readonly example: "5.3.0-main+2105.45ed03c9";
|
|
90
146
|
readonly type: "string";
|
|
91
147
|
};
|
|
92
148
|
};
|
|
@@ -94,20 +150,29 @@ export declare const uiConfigSchema: {
|
|
|
94
150
|
readonly latest: {
|
|
95
151
|
readonly type: "object";
|
|
96
152
|
readonly additionalProperties: false;
|
|
153
|
+
readonly description: "Information about the latest available Unleash releases. Will be an empty object if no data is available.";
|
|
97
154
|
readonly properties: {
|
|
98
155
|
readonly oss: {
|
|
156
|
+
readonly description: "The latest available OSS version of Unleash";
|
|
99
157
|
readonly type: "string";
|
|
158
|
+
readonly example: "5.1.5";
|
|
100
159
|
};
|
|
101
160
|
readonly enterprise: {
|
|
161
|
+
readonly description: "The latest available Enterprise version of Unleash";
|
|
102
162
|
readonly type: "string";
|
|
163
|
+
readonly example: "5.1.5";
|
|
103
164
|
};
|
|
104
165
|
};
|
|
105
166
|
};
|
|
106
167
|
readonly isLatest: {
|
|
107
168
|
readonly type: "boolean";
|
|
169
|
+
readonly description: "Whether the Unleash server is running the latest release (`true`) or if there are updates available (`false`)";
|
|
170
|
+
readonly example: true;
|
|
108
171
|
};
|
|
109
172
|
readonly instanceId: {
|
|
110
173
|
readonly type: "string";
|
|
174
|
+
readonly description: "The instance identifier of the Unleash instance";
|
|
175
|
+
readonly example: "0d652a82-43db-4144-8e02-864b0b030710";
|
|
111
176
|
};
|
|
112
177
|
};
|
|
113
178
|
readonly components: {};
|
|
@@ -116,22 +181,33 @@ export declare const uiConfigSchema: {
|
|
|
116
181
|
readonly $id: "#/components/schemas/variantFlagSchema";
|
|
117
182
|
readonly type: "object";
|
|
118
183
|
readonly additionalProperties: false;
|
|
184
|
+
readonly description: "A representation of an evaluated Unleash feature variant.";
|
|
119
185
|
readonly properties: {
|
|
120
186
|
readonly name: {
|
|
187
|
+
readonly description: "The name of the variant. Will always be disabled if `enabled` is false.";
|
|
188
|
+
readonly example: "blue";
|
|
121
189
|
readonly type: "string";
|
|
122
190
|
};
|
|
123
191
|
readonly enabled: {
|
|
124
192
|
readonly type: "boolean";
|
|
193
|
+
readonly description: "Whether the variant is enabled or not.";
|
|
194
|
+
readonly example: true;
|
|
125
195
|
};
|
|
126
196
|
readonly payload: {
|
|
127
197
|
readonly type: "object";
|
|
198
|
+
readonly description: "Additional data associated with this variant.";
|
|
128
199
|
readonly additionalProperties: false;
|
|
129
200
|
readonly properties: {
|
|
130
201
|
readonly type: {
|
|
202
|
+
readonly description: "The type of data contained.";
|
|
131
203
|
readonly type: "string";
|
|
204
|
+
readonly enum: readonly ["string", "json", "csv"];
|
|
205
|
+
readonly example: "json";
|
|
132
206
|
};
|
|
133
207
|
readonly value: {
|
|
208
|
+
readonly description: "The actual associated data";
|
|
134
209
|
readonly type: "string";
|
|
210
|
+
readonly example: "{ \"starter\": \"squirtle\" }";
|
|
135
211
|
};
|
|
136
212
|
};
|
|
137
213
|
};
|
|
@@ -7,52 +7,87 @@ exports.uiConfigSchema = {
|
|
|
7
7
|
$id: '#/components/schemas/uiConfigSchema',
|
|
8
8
|
type: 'object',
|
|
9
9
|
additionalProperties: false,
|
|
10
|
+
description: 'A collection of properties used to configure the Unleash Admin UI.',
|
|
10
11
|
required: ['version', 'unleashUrl', 'baseUriPath', 'versionInfo'],
|
|
11
12
|
properties: {
|
|
12
13
|
slogan: {
|
|
13
14
|
type: 'string',
|
|
15
|
+
description: 'The slogan to display in the UI footer.',
|
|
16
|
+
example: 'The enterprise-ready feature toggle service.',
|
|
14
17
|
},
|
|
15
18
|
name: {
|
|
16
19
|
type: 'string',
|
|
20
|
+
description: 'The name of this Unleash instance. Used to build the text in the footer.',
|
|
21
|
+
example: 'Unleash enterprise',
|
|
17
22
|
},
|
|
18
23
|
version: {
|
|
19
24
|
type: 'string',
|
|
25
|
+
description: 'The current version of Unleash',
|
|
26
|
+
example: '5.3.0-main',
|
|
20
27
|
},
|
|
21
28
|
environment: {
|
|
22
29
|
type: 'string',
|
|
30
|
+
description: 'What kind of Unleash instance it is: Enterprise, Pro, or Open source',
|
|
31
|
+
example: 'Enterprise',
|
|
23
32
|
},
|
|
24
33
|
unleashUrl: {
|
|
25
34
|
type: 'string',
|
|
35
|
+
description: 'The URL of the Unleash instance.',
|
|
36
|
+
example: 'https://unleash.mycompany.com/enterprise',
|
|
26
37
|
},
|
|
27
38
|
baseUriPath: {
|
|
28
39
|
type: 'string',
|
|
40
|
+
description: 'The base URI path at which this Unleash instance is listening.',
|
|
41
|
+
example: '/enterprise',
|
|
29
42
|
},
|
|
30
43
|
disablePasswordAuth: {
|
|
31
44
|
type: 'boolean',
|
|
45
|
+
description: 'Whether password authentication should be disabled or not.',
|
|
46
|
+
example: false,
|
|
32
47
|
},
|
|
33
48
|
emailEnabled: {
|
|
34
49
|
type: 'boolean',
|
|
50
|
+
description: 'Whether this instance can send out emails or not.',
|
|
51
|
+
example: true,
|
|
35
52
|
},
|
|
36
53
|
maintenanceMode: {
|
|
37
54
|
type: 'boolean',
|
|
55
|
+
description: 'Whether maintenance mode is currently active or not.',
|
|
56
|
+
example: false,
|
|
38
57
|
},
|
|
39
58
|
segmentValuesLimit: {
|
|
40
59
|
type: 'number',
|
|
60
|
+
description: 'The maximum number of values that can be used in a single segment.',
|
|
61
|
+
example: 1000,
|
|
41
62
|
},
|
|
42
63
|
strategySegmentsLimit: {
|
|
43
64
|
type: 'number',
|
|
65
|
+
description: 'The maximum number of segments that can be applied to a single strategy.',
|
|
66
|
+
example: 5,
|
|
44
67
|
},
|
|
45
68
|
networkViewEnabled: {
|
|
46
69
|
type: 'boolean',
|
|
70
|
+
description: 'Whether to enable the Unleash network view or not.',
|
|
71
|
+
example: true,
|
|
47
72
|
},
|
|
48
73
|
frontendApiOrigins: {
|
|
49
74
|
type: 'array',
|
|
75
|
+
description: 'The list of origins that the front-end API should accept requests from.',
|
|
76
|
+
example: ['*'],
|
|
50
77
|
items: {
|
|
51
78
|
type: 'string',
|
|
52
79
|
},
|
|
53
80
|
},
|
|
54
81
|
flags: {
|
|
55
82
|
type: 'object',
|
|
83
|
+
description: 'Additional (largely experimental) features that are enabled in this Unleash instance.',
|
|
84
|
+
example: {
|
|
85
|
+
messageBanner: {
|
|
86
|
+
name: 'disabled',
|
|
87
|
+
enabled: false,
|
|
88
|
+
},
|
|
89
|
+
featuresExportImport: true,
|
|
90
|
+
},
|
|
56
91
|
additionalProperties: {
|
|
57
92
|
anyOf: [
|
|
58
93
|
{
|
|
@@ -65,6 +100,22 @@ exports.uiConfigSchema = {
|
|
|
65
100
|
},
|
|
66
101
|
},
|
|
67
102
|
links: {
|
|
103
|
+
description: 'Relevant links to use in the UI.',
|
|
104
|
+
example: [
|
|
105
|
+
{
|
|
106
|
+
value: 'Documentation',
|
|
107
|
+
icon: 'library_books',
|
|
108
|
+
href: 'https://docs.getunleash.io/docs',
|
|
109
|
+
title: 'User documentation',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
value: 'GitHub',
|
|
113
|
+
icon: 'c_github',
|
|
114
|
+
href: 'https://github.com/Unleash/unleash',
|
|
115
|
+
title: 'Source code on GitHub',
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
'x-enforcer-exception-skip-codes': 'WSCH006',
|
|
68
119
|
type: 'array',
|
|
69
120
|
items: {
|
|
70
121
|
type: 'object',
|
|
@@ -72,6 +123,8 @@ exports.uiConfigSchema = {
|
|
|
72
123
|
},
|
|
73
124
|
authenticationType: {
|
|
74
125
|
type: 'string',
|
|
126
|
+
description: 'The type of authentication enabled for this Unleash instance',
|
|
127
|
+
example: 'enterprise',
|
|
75
128
|
enum: [
|
|
76
129
|
'open-source',
|
|
77
130
|
'demo',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-config-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/ui-config-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,+DAA0D;AAE7C,QAAA,cAAc,GAAG;IAC1B,GAAG,EAAE,qCAAqC;IAC1C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,CAAC;IACjE,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"ui-config-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/ui-config-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,+DAA0D;AAE7C,QAAA,cAAc,GAAG;IAC1B,GAAG,EAAE,qCAAqC;IAC1C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EACP,oEAAoE;IACxE,QAAQ,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,CAAC;IACjE,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE,8CAA8C;SAC1D;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,0EAA0E;YAC9E,OAAO,EAAE,oBAAoB;SAChC;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,OAAO,EAAE,YAAY;SACxB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,sEAAsE;YAC1E,OAAO,EAAE,YAAY;SACxB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,kCAAkC;YAC/C,OAAO,EAAE,0CAA0C;SACtD;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,gEAAgE;YACpE,OAAO,EAAE,aAAa;SACzB;QACD,mBAAmB,EAAE;YACjB,IAAI,EAAE,SAAS;YACf,WAAW,EACP,4DAA4D;YAChE,OAAO,EAAE,KAAK;SACjB;QACD,YAAY,EAAE;YACV,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mDAAmD;YAChE,OAAO,EAAE,IAAI;SAChB;QACD,eAAe,EAAE;YACb,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,KAAK;SACjB;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,oEAAoE;YACxE,OAAO,EAAE,IAAI;SAChB;QACD,qBAAqB,EAAE;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,0EAA0E;YAC9E,OAAO,EAAE,CAAC;SACb;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oDAAoD;YACjE,OAAO,EAAE,IAAI;SAChB;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,OAAO;YACb,WAAW,EACP,yEAAyE;YAC7E,OAAO,EAAE,CAAC,GAAG,CAAC;YACd,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,uFAAuF;YAC3F,OAAO,EAAE;gBACL,aAAa,EAAE;oBACX,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE,KAAK;iBACjB;gBACD,oBAAoB,EAAE,IAAI;aAC7B;YACD,oBAAoB,EAAE;gBAClB,KAAK,EAAE;oBACH;wBACI,IAAI,EAAE,SAAS;qBAClB;oBACD;wBACI,IAAI,EAAE,wCAAwC;qBACjD;iBACJ;aACJ;SACJ;QACD,KAAK,EAAE;YACH,WAAW,EAAE,kCAAkC;YAC/C,OAAO,EAAE;gBACL;oBACI,KAAK,EAAE,eAAe;oBACtB,IAAI,EAAE,eAAe;oBACrB,IAAI,EAAE,iCAAiC;oBACvC,KAAK,EAAE,oBAAoB;iBAC9B;gBACD;oBACI,KAAK,EAAE,QAAQ;oBACf,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,oCAAoC;oBAC1C,KAAK,EAAE,uBAAuB;iBACjC;aACJ;YACD,iCAAiC,EAAE,SAAS;YAC5C,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,kBAAkB,EAAE;YAChB,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,8DAA8D;YAClE,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE;gBACF,aAAa;gBACb,MAAM;gBACN,YAAY;gBACZ,QAAQ;gBACR,QAAQ;gBACR,MAAM;aACT;SACJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE,oCAAoC;SAC7C;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,aAAa,EAAb,8BAAa;YACb,iBAAiB,EAAjB,uCAAiB;SACpB;KACJ;CACK,CAAC"}
|
|
@@ -3,8 +3,11 @@ export declare const updateApiTokenSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/updateApiTokenSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly required: readonly ["expiresAt"];
|
|
6
|
+
readonly description: "An object with fields to updated for a given API token.";
|
|
6
7
|
readonly properties: {
|
|
7
8
|
readonly expiresAt: {
|
|
9
|
+
readonly description: "The new time when this token should expire.";
|
|
10
|
+
readonly example: "2023-09-04T11:26:24+02:00";
|
|
8
11
|
readonly type: "string";
|
|
9
12
|
readonly format: "date-time";
|
|
10
13
|
};
|
|
@@ -5,8 +5,11 @@ exports.updateApiTokenSchema = {
|
|
|
5
5
|
$id: '#/components/schemas/updateApiTokenSchema',
|
|
6
6
|
type: 'object',
|
|
7
7
|
required: ['expiresAt'],
|
|
8
|
+
description: 'An object with fields to updated for a given API token.',
|
|
8
9
|
properties: {
|
|
9
10
|
expiresAt: {
|
|
11
|
+
description: 'The new time when this token should expire.',
|
|
12
|
+
example: '2023-09-04T11:26:24+02:00',
|
|
10
13
|
type: 'string',
|
|
11
14
|
format: 'date-time',
|
|
12
15
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-api-token-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-api-token-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,WAAW,CAAC;IACvB,UAAU,EAAE;QACR,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;SACtB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-api-token-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-api-token-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAChC,GAAG,EAAE,2CAA2C;IAChD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,WAAW,CAAC;IACvB,WAAW,EAAE,yDAAyD;IACtE,UAAU,EAAE;QACR,SAAS,EAAE;YACP,WAAW,EAAE,6CAA6C;YAC1D,OAAO,EAAE,2BAA2B;YACpC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;SACtB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -2,35 +2,32 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const updateFeatureSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/updateFeatureSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly
|
|
5
|
+
readonly description: "Data used for updating a feature toggle";
|
|
6
6
|
readonly properties: {
|
|
7
|
-
readonly name: {
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
};
|
|
10
7
|
readonly description: {
|
|
11
8
|
readonly type: "string";
|
|
9
|
+
readonly example: "Controls disabling of the comments section in case of an incident";
|
|
10
|
+
readonly description: "Detailed description of the feature";
|
|
12
11
|
};
|
|
13
12
|
readonly type: {
|
|
14
13
|
readonly type: "string";
|
|
14
|
+
readonly example: "kill-switch";
|
|
15
|
+
readonly description: "Type of the toggle e.g. experiment, kill-switch, release, operational, permission";
|
|
15
16
|
};
|
|
16
17
|
readonly stale: {
|
|
17
18
|
readonly type: "boolean";
|
|
19
|
+
readonly example: true;
|
|
20
|
+
readonly description: "`true` if the feature is archived";
|
|
18
21
|
};
|
|
19
22
|
readonly archived: {
|
|
20
23
|
readonly type: "boolean";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
readonly format: "date-time";
|
|
24
|
+
readonly example: true;
|
|
25
|
+
readonly description: "If `true` the feature toggle will be moved to the [archive](https://docs.getunleash.io/reference/archived-toggles) with a property `archivedAt` set to current time";
|
|
25
26
|
};
|
|
26
27
|
readonly impressionData: {
|
|
27
28
|
readonly type: "boolean";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly type: "array";
|
|
31
|
-
readonly items: {
|
|
32
|
-
readonly $ref: "#/components/schemas/constraintSchema";
|
|
33
|
-
};
|
|
29
|
+
readonly example: false;
|
|
30
|
+
readonly description: "`true` if the impression data collection is enabled for the feature";
|
|
34
31
|
};
|
|
35
32
|
};
|
|
36
33
|
readonly components: {
|
|
@@ -5,35 +5,32 @@ const constraint_schema_1 = require("./constraint-schema");
|
|
|
5
5
|
exports.updateFeatureSchema = {
|
|
6
6
|
$id: '#/components/schemas/updateFeatureSchema',
|
|
7
7
|
type: 'object',
|
|
8
|
-
|
|
8
|
+
description: 'Data used for updating a feature toggle',
|
|
9
9
|
properties: {
|
|
10
|
-
name: {
|
|
11
|
-
type: 'string',
|
|
12
|
-
},
|
|
13
10
|
description: {
|
|
14
11
|
type: 'string',
|
|
12
|
+
example: 'Controls disabling of the comments section in case of an incident',
|
|
13
|
+
description: 'Detailed description of the feature',
|
|
15
14
|
},
|
|
16
15
|
type: {
|
|
17
16
|
type: 'string',
|
|
17
|
+
example: 'kill-switch',
|
|
18
|
+
description: 'Type of the toggle e.g. experiment, kill-switch, release, operational, permission',
|
|
18
19
|
},
|
|
19
20
|
stale: {
|
|
20
21
|
type: 'boolean',
|
|
22
|
+
example: true,
|
|
23
|
+
description: '`true` if the feature is archived',
|
|
21
24
|
},
|
|
22
25
|
archived: {
|
|
23
26
|
type: 'boolean',
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
type: 'string',
|
|
27
|
-
format: 'date-time',
|
|
27
|
+
example: true,
|
|
28
|
+
description: 'If `true` the feature toggle will be moved to the [archive](https://docs.getunleash.io/reference/archived-toggles) with a property `archivedAt` set to current time',
|
|
28
29
|
},
|
|
29
30
|
impressionData: {
|
|
30
31
|
type: 'boolean',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
type: 'array',
|
|
34
|
-
items: {
|
|
35
|
-
$ref: '#/components/schemas/constraintSchema',
|
|
36
|
-
},
|
|
32
|
+
example: false,
|
|
33
|
+
description: '`true` if the impression data collection is enabled for the feature',
|
|
37
34
|
},
|
|
38
35
|
},
|
|
39
36
|
components: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-feature-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AAE1C,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,
|
|
1
|
+
{"version":3,"file":"update-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-feature-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AAE1C,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,yCAAyC;IACtD,UAAU,EAAE;QACR,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EACH,mEAAmE;YACvE,WAAW,EAAE,qCAAqC;SACrD;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;YACtB,WAAW,EACP,mFAAmF;SAC1F;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;YACb,WAAW,EAAE,mCAAmC;SACnD;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;YACb,WAAW,EACP,qKAAqK;SAC5K;QACD,cAAc,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EACP,qEAAqE;SAC5E;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;SACnB;KACJ;CACK,CAAC"}
|
|
@@ -2,18 +2,22 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const updateFeatureStrategySchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/updateFeatureStrategySchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
+
readonly description: "Update a strategy configuration in a feature";
|
|
5
6
|
readonly properties: {
|
|
6
7
|
readonly name: {
|
|
7
8
|
readonly type: "string";
|
|
9
|
+
readonly description: "The name of the strategy type";
|
|
8
10
|
};
|
|
9
11
|
readonly sortOrder: {
|
|
10
12
|
readonly type: "number";
|
|
13
|
+
readonly description: "The order of the strategy in the list in feature environment configuration";
|
|
11
14
|
};
|
|
12
15
|
readonly constraints: {
|
|
13
16
|
readonly type: "array";
|
|
14
17
|
readonly items: {
|
|
15
18
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
16
19
|
};
|
|
20
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
17
21
|
};
|
|
18
22
|
readonly title: {
|
|
19
23
|
readonly type: "string";
|
|
@@ -80,6 +84,7 @@ export declare const updateFeatureStrategySchema: {
|
|
|
80
84
|
readonly parametersSchema: {
|
|
81
85
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
82
86
|
readonly type: "object";
|
|
87
|
+
readonly description: "A list of parameters for a strategy";
|
|
83
88
|
readonly additionalProperties: {
|
|
84
89
|
readonly type: "string";
|
|
85
90
|
};
|
|
@@ -6,18 +6,22 @@ const constraint_schema_1 = require("./constraint-schema");
|
|
|
6
6
|
exports.updateFeatureStrategySchema = {
|
|
7
7
|
$id: '#/components/schemas/updateFeatureStrategySchema',
|
|
8
8
|
type: 'object',
|
|
9
|
+
description: 'Update a strategy configuration in a feature',
|
|
9
10
|
properties: {
|
|
10
11
|
name: {
|
|
11
12
|
type: 'string',
|
|
13
|
+
description: 'The name of the strategy type',
|
|
12
14
|
},
|
|
13
15
|
sortOrder: {
|
|
14
16
|
type: 'number',
|
|
17
|
+
description: 'The order of the strategy in the list in feature environment configuration',
|
|
15
18
|
},
|
|
16
19
|
constraints: {
|
|
17
20
|
type: 'array',
|
|
18
21
|
items: {
|
|
19
22
|
$ref: '#/components/schemas/constraintSchema',
|
|
20
23
|
},
|
|
24
|
+
description: 'A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints',
|
|
21
25
|
},
|
|
22
26
|
title: {
|
|
23
27
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-feature-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-feature-strategy-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AAE1C,QAAA,2BAA2B,GAAG;IACvC,GAAG,EAAE,kDAAkD;IACvD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"update-feature-strategy-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-feature-strategy-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AAE1C,QAAA,2BAA2B,GAAG;IACvC,GAAG,EAAE,kDAAkD;IACvD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,8CAA8C;IAC3D,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+BAA+B;SAC/C;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,4EAA4E;SACnF;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;YACD,WAAW,EACP,mHAAmH;SAC1H;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,yBAAyB;SACrC;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,SAAS;YACf,WAAW,EACP,mHAAmH;YACvH,OAAO,EAAE,KAAK;YACd,QAAQ,EAAE,IAAI;SACjB;QACD,UAAU,EAAE;YACR,IAAI,EAAE,uCAAuC;SAChD;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,oCAAgB;SACnB;KACJ;CACK,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const updateFeatureTypeLifetimeSchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/updateFeatureTypeLifetimeSchema";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly required: readonly ["lifetimeDays"];
|
|
6
|
+
readonly description: "Data used when updating the lifetime of a [feature toggle type](https://docs.getunleash.io/reference/feature-toggle-types).";
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly lifetimeDays: {
|
|
9
|
+
readonly description: "The new lifetime (in days) that you want to assign to the feature toggle type. If the value is `null` or `0`, then the feature toggles of that type will never be marked as potentially stale. Otherwise, they will be considered potentially stale after the number of days indicated by this property.";
|
|
10
|
+
readonly example: 7;
|
|
11
|
+
readonly type: "integer";
|
|
12
|
+
readonly nullable: true;
|
|
13
|
+
readonly minimum: 0;
|
|
14
|
+
readonly maximum: 2147483647;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly components: {};
|
|
18
|
+
};
|
|
19
|
+
export declare type UpdateFeatureTypeLifetimeSchema = FromSchema<typeof updateFeatureTypeLifetimeSchema>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateFeatureTypeLifetimeSchema = void 0;
|
|
4
|
+
exports.updateFeatureTypeLifetimeSchema = {
|
|
5
|
+
$id: '#/components/schemas/updateFeatureTypeLifetimeSchema',
|
|
6
|
+
type: 'object',
|
|
7
|
+
required: ['lifetimeDays'],
|
|
8
|
+
description: 'Data used when updating the lifetime of a [feature toggle type](https://docs.getunleash.io/reference/feature-toggle-types).',
|
|
9
|
+
properties: {
|
|
10
|
+
lifetimeDays: {
|
|
11
|
+
description: 'The new lifetime (in days) that you want to assign to the feature toggle type. If the value is `null` or `0`, then the feature toggles of that type will never be marked as potentially stale. Otherwise, they will be considered potentially stale after the number of days indicated by this property.',
|
|
12
|
+
example: 7,
|
|
13
|
+
type: 'integer',
|
|
14
|
+
nullable: true,
|
|
15
|
+
minimum: 0,
|
|
16
|
+
maximum: 2147483647, // Postgres' max integer: https://www.postgresql.org/docs/9.1/datatype-numeric.html
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
components: {},
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=update-feature-type-lifetime-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-feature-type-lifetime-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/update-feature-type-lifetime-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,+BAA+B,GAAG;IAC3C,GAAG,EAAE,sDAAsD;IAC3D,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,cAAc,CAAC;IAC1B,WAAW,EACP,6HAA6H;IACjI,UAAU,EAAE;QACR,YAAY,EAAE;YACV,WAAW,EACP,0SAA0S;YAC9S,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,UAAU,EAAE,mFAAmF;SAC3G;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
export declare const updateStrategySchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/updateStrategySchema";
|
|
4
|
+
readonly type: "object";
|
|
5
|
+
readonly description: "The data required to update a strategy type.";
|
|
6
|
+
readonly required: readonly ["parameters"];
|
|
7
|
+
readonly properties: {
|
|
8
|
+
readonly description: {
|
|
9
|
+
readonly type: "string";
|
|
10
|
+
readonly description: "A description of the strategy type.";
|
|
11
|
+
readonly example: "Enable the feature for users who have not logged in before.";
|
|
12
|
+
};
|
|
13
|
+
readonly parameters: {
|
|
14
|
+
readonly type: "array";
|
|
15
|
+
readonly description: "The parameter list lets you pass arguments to your custom activation strategy. These will be made available to your custom strategy implementation.";
|
|
16
|
+
readonly items: {
|
|
17
|
+
readonly type: "object";
|
|
18
|
+
readonly required: readonly ["name", "type"];
|
|
19
|
+
readonly properties: {
|
|
20
|
+
readonly name: {
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
readonly description: "The name of the parameter";
|
|
23
|
+
readonly example: "Rollout percentage";
|
|
24
|
+
};
|
|
25
|
+
readonly type: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly description: "The [type of the parameter](https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types)";
|
|
28
|
+
readonly enum: readonly ["string", "percentage", "list", "number", "boolean"];
|
|
29
|
+
readonly example: "percentage";
|
|
30
|
+
};
|
|
31
|
+
readonly description: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
readonly description: "A description of this strategy parameter. Use this to indicate to the users what the parameter does.";
|
|
34
|
+
readonly example: "How many percent of users should see this feature?";
|
|
35
|
+
};
|
|
36
|
+
readonly required: {
|
|
37
|
+
readonly type: "boolean";
|
|
38
|
+
readonly description: "Whether this parameter must be configured when using the strategy. Defaults to `false`";
|
|
39
|
+
readonly example: false;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly components: {};
|
|
46
|
+
};
|
|
47
|
+
export declare type UpdateStrategySchema = FromSchema<typeof updateStrategySchema>;
|