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
|
@@ -67,6 +67,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
67
67
|
readonly parametersSchema: {
|
|
68
68
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
69
69
|
readonly type: "object";
|
|
70
|
+
readonly description: "A list of parameters for a strategy";
|
|
70
71
|
readonly additionalProperties: {
|
|
71
72
|
readonly type: "string";
|
|
72
73
|
};
|
|
@@ -210,7 +211,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
210
211
|
readonly example: true;
|
|
211
212
|
};
|
|
212
213
|
readonly variant: {
|
|
213
|
-
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of
|
|
214
|
+
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of the feature's defined variants.";
|
|
214
215
|
readonly type: "object";
|
|
215
216
|
readonly additionalProperties: false;
|
|
216
217
|
readonly required: readonly ["name", "enabled"];
|
|
@@ -233,7 +234,6 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
233
234
|
readonly type: {
|
|
234
235
|
readonly description: "The format of the payload.";
|
|
235
236
|
readonly type: "string";
|
|
236
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
237
237
|
};
|
|
238
238
|
readonly value: {
|
|
239
239
|
readonly type: "string";
|
|
@@ -315,6 +315,53 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
315
315
|
readonly type: "boolean";
|
|
316
316
|
readonly description: "Whether this strategy evaluates to true or not.";
|
|
317
317
|
};
|
|
318
|
+
readonly variant: {
|
|
319
|
+
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of the feature's defined variants.";
|
|
320
|
+
readonly type: "object";
|
|
321
|
+
readonly additionalProperties: false;
|
|
322
|
+
readonly required: readonly ["name", "enabled"];
|
|
323
|
+
readonly properties: {
|
|
324
|
+
readonly name: {
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly description: "The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled`";
|
|
327
|
+
readonly example: "red-variant";
|
|
328
|
+
};
|
|
329
|
+
readonly enabled: {
|
|
330
|
+
readonly type: "boolean";
|
|
331
|
+
readonly description: "Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false`";
|
|
332
|
+
};
|
|
333
|
+
readonly payload: {
|
|
334
|
+
readonly type: "object";
|
|
335
|
+
readonly additionalProperties: false;
|
|
336
|
+
readonly required: readonly ["type", "value"];
|
|
337
|
+
readonly description: "An optional payload attached to the variant.";
|
|
338
|
+
readonly properties: {
|
|
339
|
+
readonly type: {
|
|
340
|
+
readonly description: "The format of the payload.";
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
343
|
+
};
|
|
344
|
+
readonly value: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly description: "The payload value stringified.";
|
|
347
|
+
readonly example: "{\"property\": \"value\"}";
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
readonly nullable: true;
|
|
353
|
+
readonly example: {
|
|
354
|
+
readonly name: "green";
|
|
355
|
+
readonly enabled: true;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
readonly variants: {
|
|
359
|
+
readonly type: "array";
|
|
360
|
+
readonly description: "The feature variants.";
|
|
361
|
+
readonly items: {
|
|
362
|
+
readonly $ref: "#/components/schemas/variantSchema";
|
|
363
|
+
};
|
|
364
|
+
};
|
|
318
365
|
};
|
|
319
366
|
}];
|
|
320
367
|
readonly description: "The strategy's evaluation result. If the strategy is a custom strategy that Unleash can't evaluate, `evaluationStatus` will be `unknown`. Otherwise, it will be `true` or `false`";
|
|
@@ -491,11 +538,121 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
491
538
|
readonly parametersSchema: {
|
|
492
539
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
493
540
|
readonly type: "object";
|
|
541
|
+
readonly description: "A list of parameters for a strategy";
|
|
494
542
|
readonly additionalProperties: {
|
|
495
543
|
readonly type: "string";
|
|
496
544
|
};
|
|
497
545
|
readonly components: {};
|
|
498
546
|
};
|
|
547
|
+
readonly variantSchema: {
|
|
548
|
+
readonly $id: "#/components/schemas/variantSchema";
|
|
549
|
+
readonly type: "object";
|
|
550
|
+
readonly additionalProperties: false;
|
|
551
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
552
|
+
readonly required: readonly ["name", "weight"];
|
|
553
|
+
readonly properties: {
|
|
554
|
+
readonly name: {
|
|
555
|
+
readonly type: "string";
|
|
556
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
557
|
+
readonly example: "blue_group";
|
|
558
|
+
};
|
|
559
|
+
readonly weight: {
|
|
560
|
+
readonly type: "number";
|
|
561
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
562
|
+
readonly minimum: 0;
|
|
563
|
+
readonly maximum: 1000;
|
|
564
|
+
};
|
|
565
|
+
readonly weightType: {
|
|
566
|
+
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
567
|
+
readonly type: "string";
|
|
568
|
+
readonly example: "variable";
|
|
569
|
+
readonly enum: readonly ["variable", "fix"];
|
|
570
|
+
};
|
|
571
|
+
readonly stickiness: {
|
|
572
|
+
readonly type: "string";
|
|
573
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
574
|
+
readonly example: "custom.context.field";
|
|
575
|
+
};
|
|
576
|
+
readonly payload: {
|
|
577
|
+
readonly type: "object";
|
|
578
|
+
readonly required: readonly ["type", "value"];
|
|
579
|
+
readonly description: "Extra data configured for this variant";
|
|
580
|
+
readonly additionalProperties: false;
|
|
581
|
+
readonly properties: {
|
|
582
|
+
readonly type: {
|
|
583
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
584
|
+
readonly type: "string";
|
|
585
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
586
|
+
};
|
|
587
|
+
readonly value: {
|
|
588
|
+
readonly description: "The actual value of payload";
|
|
589
|
+
readonly type: "string";
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
readonly example: {
|
|
593
|
+
readonly type: "json";
|
|
594
|
+
readonly value: "{\"color\": \"red\"}";
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
readonly overrides: {
|
|
598
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
599
|
+
readonly type: "array";
|
|
600
|
+
readonly items: {
|
|
601
|
+
readonly $ref: "#/components/schemas/overrideSchema";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly components: {
|
|
606
|
+
readonly schemas: {
|
|
607
|
+
readonly overrideSchema: {
|
|
608
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
609
|
+
readonly type: "object";
|
|
610
|
+
readonly additionalProperties: false;
|
|
611
|
+
readonly required: readonly ["contextName", "values"];
|
|
612
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
613
|
+
readonly properties: {
|
|
614
|
+
readonly contextName: {
|
|
615
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly example: "userId";
|
|
618
|
+
};
|
|
619
|
+
readonly values: {
|
|
620
|
+
readonly description: "Which values that should be overriden";
|
|
621
|
+
readonly type: "array";
|
|
622
|
+
readonly items: {
|
|
623
|
+
readonly type: "string";
|
|
624
|
+
};
|
|
625
|
+
readonly example: readonly ["red", "blue"];
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly components: {};
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
readonly overrideSchema: {
|
|
634
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
635
|
+
readonly type: "object";
|
|
636
|
+
readonly additionalProperties: false;
|
|
637
|
+
readonly required: readonly ["contextName", "values"];
|
|
638
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
639
|
+
readonly properties: {
|
|
640
|
+
readonly contextName: {
|
|
641
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
642
|
+
readonly type: "string";
|
|
643
|
+
readonly example: "userId";
|
|
644
|
+
};
|
|
645
|
+
readonly values: {
|
|
646
|
+
readonly description: "Which values that should be overriden";
|
|
647
|
+
readonly type: "array";
|
|
648
|
+
readonly items: {
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
};
|
|
651
|
+
readonly example: readonly ["red", "blue"];
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
readonly components: {};
|
|
655
|
+
};
|
|
499
656
|
};
|
|
500
657
|
};
|
|
501
658
|
};
|
|
@@ -630,6 +787,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
630
787
|
readonly parametersSchema: {
|
|
631
788
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
632
789
|
readonly type: "object";
|
|
790
|
+
readonly description: "A list of parameters for a strategy";
|
|
633
791
|
readonly additionalProperties: {
|
|
634
792
|
readonly type: "string";
|
|
635
793
|
};
|
|
@@ -656,7 +814,8 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
656
814
|
readonly weightType: {
|
|
657
815
|
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
658
816
|
readonly type: "string";
|
|
659
|
-
readonly example: "
|
|
817
|
+
readonly example: "variable";
|
|
818
|
+
readonly enum: readonly ["variable", "fix"];
|
|
660
819
|
};
|
|
661
820
|
readonly stickiness: {
|
|
662
821
|
readonly type: "string";
|
|
@@ -667,17 +826,21 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
667
826
|
readonly type: "object";
|
|
668
827
|
readonly required: readonly ["type", "value"];
|
|
669
828
|
readonly description: "Extra data configured for this variant";
|
|
829
|
+
readonly additionalProperties: false;
|
|
670
830
|
readonly properties: {
|
|
671
831
|
readonly type: {
|
|
832
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
672
833
|
readonly type: "string";
|
|
834
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
673
835
|
};
|
|
674
836
|
readonly value: {
|
|
837
|
+
readonly description: "The actual value of payload";
|
|
675
838
|
readonly type: "string";
|
|
676
839
|
};
|
|
677
840
|
};
|
|
678
841
|
readonly example: {
|
|
679
842
|
readonly type: "json";
|
|
680
|
-
readonly value: "{color: red}";
|
|
843
|
+
readonly value: "{\"color\": \"red\"}";
|
|
681
844
|
};
|
|
682
845
|
};
|
|
683
846
|
readonly overrides: {
|
|
@@ -856,6 +1019,53 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
856
1019
|
readonly type: "boolean";
|
|
857
1020
|
readonly description: "Whether this strategy evaluates to true or not.";
|
|
858
1021
|
};
|
|
1022
|
+
readonly variant: {
|
|
1023
|
+
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of the feature's defined variants.";
|
|
1024
|
+
readonly type: "object";
|
|
1025
|
+
readonly additionalProperties: false;
|
|
1026
|
+
readonly required: readonly ["name", "enabled"];
|
|
1027
|
+
readonly properties: {
|
|
1028
|
+
readonly name: {
|
|
1029
|
+
readonly type: "string";
|
|
1030
|
+
readonly description: "The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled`";
|
|
1031
|
+
readonly example: "red-variant";
|
|
1032
|
+
};
|
|
1033
|
+
readonly enabled: {
|
|
1034
|
+
readonly type: "boolean";
|
|
1035
|
+
readonly description: "Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false`";
|
|
1036
|
+
};
|
|
1037
|
+
readonly payload: {
|
|
1038
|
+
readonly type: "object";
|
|
1039
|
+
readonly additionalProperties: false;
|
|
1040
|
+
readonly required: readonly ["type", "value"];
|
|
1041
|
+
readonly description: "An optional payload attached to the variant.";
|
|
1042
|
+
readonly properties: {
|
|
1043
|
+
readonly type: {
|
|
1044
|
+
readonly description: "The format of the payload.";
|
|
1045
|
+
readonly type: "string";
|
|
1046
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1047
|
+
};
|
|
1048
|
+
readonly value: {
|
|
1049
|
+
readonly type: "string";
|
|
1050
|
+
readonly description: "The payload value stringified.";
|
|
1051
|
+
readonly example: "{\"property\": \"value\"}";
|
|
1052
|
+
};
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
readonly nullable: true;
|
|
1057
|
+
readonly example: {
|
|
1058
|
+
readonly name: "green";
|
|
1059
|
+
readonly enabled: true;
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
readonly variants: {
|
|
1063
|
+
readonly type: "array";
|
|
1064
|
+
readonly description: "The feature variants.";
|
|
1065
|
+
readonly items: {
|
|
1066
|
+
readonly $ref: "#/components/schemas/variantSchema";
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
859
1069
|
};
|
|
860
1070
|
}];
|
|
861
1071
|
readonly description: "The strategy's evaluation result. If the strategy is a custom strategy that Unleash can't evaluate, `evaluationStatus` will be `unknown`. Otherwise, it will be `true` or `false`";
|
|
@@ -1032,11 +1242,121 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1032
1242
|
readonly parametersSchema: {
|
|
1033
1243
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1034
1244
|
readonly type: "object";
|
|
1245
|
+
readonly description: "A list of parameters for a strategy";
|
|
1035
1246
|
readonly additionalProperties: {
|
|
1036
1247
|
readonly type: "string";
|
|
1037
1248
|
};
|
|
1038
1249
|
readonly components: {};
|
|
1039
1250
|
};
|
|
1251
|
+
readonly variantSchema: {
|
|
1252
|
+
readonly $id: "#/components/schemas/variantSchema";
|
|
1253
|
+
readonly type: "object";
|
|
1254
|
+
readonly additionalProperties: false;
|
|
1255
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
1256
|
+
readonly required: readonly ["name", "weight"];
|
|
1257
|
+
readonly properties: {
|
|
1258
|
+
readonly name: {
|
|
1259
|
+
readonly type: "string";
|
|
1260
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1261
|
+
readonly example: "blue_group";
|
|
1262
|
+
};
|
|
1263
|
+
readonly weight: {
|
|
1264
|
+
readonly type: "number";
|
|
1265
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1266
|
+
readonly minimum: 0;
|
|
1267
|
+
readonly maximum: 1000;
|
|
1268
|
+
};
|
|
1269
|
+
readonly weightType: {
|
|
1270
|
+
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
1271
|
+
readonly type: "string";
|
|
1272
|
+
readonly example: "variable";
|
|
1273
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1274
|
+
};
|
|
1275
|
+
readonly stickiness: {
|
|
1276
|
+
readonly type: "string";
|
|
1277
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
1278
|
+
readonly example: "custom.context.field";
|
|
1279
|
+
};
|
|
1280
|
+
readonly payload: {
|
|
1281
|
+
readonly type: "object";
|
|
1282
|
+
readonly required: readonly ["type", "value"];
|
|
1283
|
+
readonly description: "Extra data configured for this variant";
|
|
1284
|
+
readonly additionalProperties: false;
|
|
1285
|
+
readonly properties: {
|
|
1286
|
+
readonly type: {
|
|
1287
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1288
|
+
readonly type: "string";
|
|
1289
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1290
|
+
};
|
|
1291
|
+
readonly value: {
|
|
1292
|
+
readonly description: "The actual value of payload";
|
|
1293
|
+
readonly type: "string";
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1296
|
+
readonly example: {
|
|
1297
|
+
readonly type: "json";
|
|
1298
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
readonly overrides: {
|
|
1302
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
1303
|
+
readonly type: "array";
|
|
1304
|
+
readonly items: {
|
|
1305
|
+
readonly $ref: "#/components/schemas/overrideSchema";
|
|
1306
|
+
};
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
readonly components: {
|
|
1310
|
+
readonly schemas: {
|
|
1311
|
+
readonly overrideSchema: {
|
|
1312
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
1313
|
+
readonly type: "object";
|
|
1314
|
+
readonly additionalProperties: false;
|
|
1315
|
+
readonly required: readonly ["contextName", "values"];
|
|
1316
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1317
|
+
readonly properties: {
|
|
1318
|
+
readonly contextName: {
|
|
1319
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1320
|
+
readonly type: "string";
|
|
1321
|
+
readonly example: "userId";
|
|
1322
|
+
};
|
|
1323
|
+
readonly values: {
|
|
1324
|
+
readonly description: "Which values that should be overriden";
|
|
1325
|
+
readonly type: "array";
|
|
1326
|
+
readonly items: {
|
|
1327
|
+
readonly type: "string";
|
|
1328
|
+
};
|
|
1329
|
+
readonly example: readonly ["red", "blue"];
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
readonly components: {};
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1337
|
+
readonly overrideSchema: {
|
|
1338
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
1339
|
+
readonly type: "object";
|
|
1340
|
+
readonly additionalProperties: false;
|
|
1341
|
+
readonly required: readonly ["contextName", "values"];
|
|
1342
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1343
|
+
readonly properties: {
|
|
1344
|
+
readonly contextName: {
|
|
1345
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1346
|
+
readonly type: "string";
|
|
1347
|
+
readonly example: "userId";
|
|
1348
|
+
};
|
|
1349
|
+
readonly values: {
|
|
1350
|
+
readonly description: "Which values that should be overriden";
|
|
1351
|
+
readonly type: "array";
|
|
1352
|
+
readonly items: {
|
|
1353
|
+
readonly type: "string";
|
|
1354
|
+
};
|
|
1355
|
+
readonly example: readonly ["red", "blue"];
|
|
1356
|
+
};
|
|
1357
|
+
};
|
|
1358
|
+
readonly components: {};
|
|
1359
|
+
};
|
|
1040
1360
|
};
|
|
1041
1361
|
};
|
|
1042
1362
|
};
|
|
@@ -1171,6 +1491,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1171
1491
|
readonly parametersSchema: {
|
|
1172
1492
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1173
1493
|
readonly type: "object";
|
|
1494
|
+
readonly description: "A list of parameters for a strategy";
|
|
1174
1495
|
readonly additionalProperties: {
|
|
1175
1496
|
readonly type: "string";
|
|
1176
1497
|
};
|
|
@@ -1197,7 +1518,8 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1197
1518
|
readonly weightType: {
|
|
1198
1519
|
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
1199
1520
|
readonly type: "string";
|
|
1200
|
-
readonly example: "
|
|
1521
|
+
readonly example: "variable";
|
|
1522
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1201
1523
|
};
|
|
1202
1524
|
readonly stickiness: {
|
|
1203
1525
|
readonly type: "string";
|
|
@@ -1208,17 +1530,21 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1208
1530
|
readonly type: "object";
|
|
1209
1531
|
readonly required: readonly ["type", "value"];
|
|
1210
1532
|
readonly description: "Extra data configured for this variant";
|
|
1533
|
+
readonly additionalProperties: false;
|
|
1211
1534
|
readonly properties: {
|
|
1212
1535
|
readonly type: {
|
|
1536
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1213
1537
|
readonly type: "string";
|
|
1538
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1214
1539
|
};
|
|
1215
1540
|
readonly value: {
|
|
1541
|
+
readonly description: "The actual value of payload";
|
|
1216
1542
|
readonly type: "string";
|
|
1217
1543
|
};
|
|
1218
1544
|
};
|
|
1219
1545
|
readonly example: {
|
|
1220
1546
|
readonly type: "json";
|
|
1221
|
-
readonly value: "{color: red}";
|
|
1547
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1222
1548
|
};
|
|
1223
1549
|
};
|
|
1224
1550
|
readonly overrides: {
|
|
@@ -1395,7 +1721,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1395
1721
|
readonly example: true;
|
|
1396
1722
|
};
|
|
1397
1723
|
readonly variant: {
|
|
1398
|
-
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of
|
|
1724
|
+
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of the feature's defined variants.";
|
|
1399
1725
|
readonly type: "object";
|
|
1400
1726
|
readonly additionalProperties: false;
|
|
1401
1727
|
readonly required: readonly ["name", "enabled"];
|
|
@@ -1418,7 +1744,6 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1418
1744
|
readonly type: {
|
|
1419
1745
|
readonly description: "The format of the payload.";
|
|
1420
1746
|
readonly type: "string";
|
|
1421
|
-
readonly enum: readonly ["json", "csv", "string"];
|
|
1422
1747
|
};
|
|
1423
1748
|
readonly value: {
|
|
1424
1749
|
readonly type: "string";
|
|
@@ -1500,6 +1825,53 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1500
1825
|
readonly type: "boolean";
|
|
1501
1826
|
readonly description: "Whether this strategy evaluates to true or not.";
|
|
1502
1827
|
};
|
|
1828
|
+
readonly variant: {
|
|
1829
|
+
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of the feature's defined variants.";
|
|
1830
|
+
readonly type: "object";
|
|
1831
|
+
readonly additionalProperties: false;
|
|
1832
|
+
readonly required: readonly ["name", "enabled"];
|
|
1833
|
+
readonly properties: {
|
|
1834
|
+
readonly name: {
|
|
1835
|
+
readonly type: "string";
|
|
1836
|
+
readonly description: "The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled`";
|
|
1837
|
+
readonly example: "red-variant";
|
|
1838
|
+
};
|
|
1839
|
+
readonly enabled: {
|
|
1840
|
+
readonly type: "boolean";
|
|
1841
|
+
readonly description: "Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false`";
|
|
1842
|
+
};
|
|
1843
|
+
readonly payload: {
|
|
1844
|
+
readonly type: "object";
|
|
1845
|
+
readonly additionalProperties: false;
|
|
1846
|
+
readonly required: readonly ["type", "value"];
|
|
1847
|
+
readonly description: "An optional payload attached to the variant.";
|
|
1848
|
+
readonly properties: {
|
|
1849
|
+
readonly type: {
|
|
1850
|
+
readonly description: "The format of the payload.";
|
|
1851
|
+
readonly type: "string";
|
|
1852
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1853
|
+
};
|
|
1854
|
+
readonly value: {
|
|
1855
|
+
readonly type: "string";
|
|
1856
|
+
readonly description: "The payload value stringified.";
|
|
1857
|
+
readonly example: "{\"property\": \"value\"}";
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
};
|
|
1862
|
+
readonly nullable: true;
|
|
1863
|
+
readonly example: {
|
|
1864
|
+
readonly name: "green";
|
|
1865
|
+
readonly enabled: true;
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
readonly variants: {
|
|
1869
|
+
readonly type: "array";
|
|
1870
|
+
readonly description: "The feature variants.";
|
|
1871
|
+
readonly items: {
|
|
1872
|
+
readonly $ref: "#/components/schemas/variantSchema";
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1503
1875
|
};
|
|
1504
1876
|
}];
|
|
1505
1877
|
readonly description: "The strategy's evaluation result. If the strategy is a custom strategy that Unleash can't evaluate, `evaluationStatus` will be `unknown`. Otherwise, it will be `true` or `false`";
|
|
@@ -1676,11 +2048,121 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1676
2048
|
readonly parametersSchema: {
|
|
1677
2049
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1678
2050
|
readonly type: "object";
|
|
2051
|
+
readonly description: "A list of parameters for a strategy";
|
|
1679
2052
|
readonly additionalProperties: {
|
|
1680
2053
|
readonly type: "string";
|
|
1681
2054
|
};
|
|
1682
2055
|
readonly components: {};
|
|
1683
2056
|
};
|
|
2057
|
+
readonly variantSchema: {
|
|
2058
|
+
readonly $id: "#/components/schemas/variantSchema";
|
|
2059
|
+
readonly type: "object";
|
|
2060
|
+
readonly additionalProperties: false;
|
|
2061
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
2062
|
+
readonly required: readonly ["name", "weight"];
|
|
2063
|
+
readonly properties: {
|
|
2064
|
+
readonly name: {
|
|
2065
|
+
readonly type: "string";
|
|
2066
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
2067
|
+
readonly example: "blue_group";
|
|
2068
|
+
};
|
|
2069
|
+
readonly weight: {
|
|
2070
|
+
readonly type: "number";
|
|
2071
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
2072
|
+
readonly minimum: 0;
|
|
2073
|
+
readonly maximum: 1000;
|
|
2074
|
+
};
|
|
2075
|
+
readonly weightType: {
|
|
2076
|
+
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
2077
|
+
readonly type: "string";
|
|
2078
|
+
readonly example: "variable";
|
|
2079
|
+
readonly enum: readonly ["variable", "fix"];
|
|
2080
|
+
};
|
|
2081
|
+
readonly stickiness: {
|
|
2082
|
+
readonly type: "string";
|
|
2083
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
2084
|
+
readonly example: "custom.context.field";
|
|
2085
|
+
};
|
|
2086
|
+
readonly payload: {
|
|
2087
|
+
readonly type: "object";
|
|
2088
|
+
readonly required: readonly ["type", "value"];
|
|
2089
|
+
readonly description: "Extra data configured for this variant";
|
|
2090
|
+
readonly additionalProperties: false;
|
|
2091
|
+
readonly properties: {
|
|
2092
|
+
readonly type: {
|
|
2093
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2094
|
+
readonly type: "string";
|
|
2095
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
2096
|
+
};
|
|
2097
|
+
readonly value: {
|
|
2098
|
+
readonly description: "The actual value of payload";
|
|
2099
|
+
readonly type: "string";
|
|
2100
|
+
};
|
|
2101
|
+
};
|
|
2102
|
+
readonly example: {
|
|
2103
|
+
readonly type: "json";
|
|
2104
|
+
readonly value: "{\"color\": \"red\"}";
|
|
2105
|
+
};
|
|
2106
|
+
};
|
|
2107
|
+
readonly overrides: {
|
|
2108
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
2109
|
+
readonly type: "array";
|
|
2110
|
+
readonly items: {
|
|
2111
|
+
readonly $ref: "#/components/schemas/overrideSchema";
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
2115
|
+
readonly components: {
|
|
2116
|
+
readonly schemas: {
|
|
2117
|
+
readonly overrideSchema: {
|
|
2118
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
2119
|
+
readonly type: "object";
|
|
2120
|
+
readonly additionalProperties: false;
|
|
2121
|
+
readonly required: readonly ["contextName", "values"];
|
|
2122
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2123
|
+
readonly properties: {
|
|
2124
|
+
readonly contextName: {
|
|
2125
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2126
|
+
readonly type: "string";
|
|
2127
|
+
readonly example: "userId";
|
|
2128
|
+
};
|
|
2129
|
+
readonly values: {
|
|
2130
|
+
readonly description: "Which values that should be overriden";
|
|
2131
|
+
readonly type: "array";
|
|
2132
|
+
readonly items: {
|
|
2133
|
+
readonly type: "string";
|
|
2134
|
+
};
|
|
2135
|
+
readonly example: readonly ["red", "blue"];
|
|
2136
|
+
};
|
|
2137
|
+
};
|
|
2138
|
+
readonly components: {};
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
};
|
|
2142
|
+
};
|
|
2143
|
+
readonly overrideSchema: {
|
|
2144
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
2145
|
+
readonly type: "object";
|
|
2146
|
+
readonly additionalProperties: false;
|
|
2147
|
+
readonly required: readonly ["contextName", "values"];
|
|
2148
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2149
|
+
readonly properties: {
|
|
2150
|
+
readonly contextName: {
|
|
2151
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2152
|
+
readonly type: "string";
|
|
2153
|
+
readonly example: "userId";
|
|
2154
|
+
};
|
|
2155
|
+
readonly values: {
|
|
2156
|
+
readonly description: "Which values that should be overriden";
|
|
2157
|
+
readonly type: "array";
|
|
2158
|
+
readonly items: {
|
|
2159
|
+
readonly type: "string";
|
|
2160
|
+
};
|
|
2161
|
+
readonly example: readonly ["red", "blue"];
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
2164
|
+
readonly components: {};
|
|
2165
|
+
};
|
|
1684
2166
|
};
|
|
1685
2167
|
};
|
|
1686
2168
|
};
|
|
@@ -1815,6 +2297,7 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1815
2297
|
readonly parametersSchema: {
|
|
1816
2298
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1817
2299
|
readonly type: "object";
|
|
2300
|
+
readonly description: "A list of parameters for a strategy";
|
|
1818
2301
|
readonly additionalProperties: {
|
|
1819
2302
|
readonly type: "string";
|
|
1820
2303
|
};
|
|
@@ -1841,7 +2324,8 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1841
2324
|
readonly weightType: {
|
|
1842
2325
|
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
1843
2326
|
readonly type: "string";
|
|
1844
|
-
readonly example: "
|
|
2327
|
+
readonly example: "variable";
|
|
2328
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1845
2329
|
};
|
|
1846
2330
|
readonly stickiness: {
|
|
1847
2331
|
readonly type: "string";
|
|
@@ -1852,17 +2336,21 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
1852
2336
|
readonly type: "object";
|
|
1853
2337
|
readonly required: readonly ["type", "value"];
|
|
1854
2338
|
readonly description: "Extra data configured for this variant";
|
|
2339
|
+
readonly additionalProperties: false;
|
|
1855
2340
|
readonly properties: {
|
|
1856
2341
|
readonly type: {
|
|
2342
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1857
2343
|
readonly type: "string";
|
|
2344
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1858
2345
|
};
|
|
1859
2346
|
readonly value: {
|
|
2347
|
+
readonly description: "The actual value of payload";
|
|
1860
2348
|
readonly type: "string";
|
|
1861
2349
|
};
|
|
1862
2350
|
};
|
|
1863
2351
|
readonly example: {
|
|
1864
2352
|
readonly type: "json";
|
|
1865
|
-
readonly value: "{color: red}";
|
|
2353
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1866
2354
|
};
|
|
1867
2355
|
};
|
|
1868
2356
|
readonly overrides: {
|
|
@@ -2214,6 +2702,53 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2214
2702
|
readonly type: "boolean";
|
|
2215
2703
|
readonly description: "Whether this strategy evaluates to true or not.";
|
|
2216
2704
|
};
|
|
2705
|
+
readonly variant: {
|
|
2706
|
+
readonly description: "The feature variant you receive based on the provided context or the _disabled\n variant_. If a feature is disabled or doesn't have any\n variants, you would get the _disabled variant_.\n Otherwise, you'll get one of the feature's defined variants.";
|
|
2707
|
+
readonly type: "object";
|
|
2708
|
+
readonly additionalProperties: false;
|
|
2709
|
+
readonly required: readonly ["name", "enabled"];
|
|
2710
|
+
readonly properties: {
|
|
2711
|
+
readonly name: {
|
|
2712
|
+
readonly type: "string";
|
|
2713
|
+
readonly description: "The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled`";
|
|
2714
|
+
readonly example: "red-variant";
|
|
2715
|
+
};
|
|
2716
|
+
readonly enabled: {
|
|
2717
|
+
readonly type: "boolean";
|
|
2718
|
+
readonly description: "Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false`";
|
|
2719
|
+
};
|
|
2720
|
+
readonly payload: {
|
|
2721
|
+
readonly type: "object";
|
|
2722
|
+
readonly additionalProperties: false;
|
|
2723
|
+
readonly required: readonly ["type", "value"];
|
|
2724
|
+
readonly description: "An optional payload attached to the variant.";
|
|
2725
|
+
readonly properties: {
|
|
2726
|
+
readonly type: {
|
|
2727
|
+
readonly description: "The format of the payload.";
|
|
2728
|
+
readonly type: "string";
|
|
2729
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
2730
|
+
};
|
|
2731
|
+
readonly value: {
|
|
2732
|
+
readonly type: "string";
|
|
2733
|
+
readonly description: "The payload value stringified.";
|
|
2734
|
+
readonly example: "{\"property\": \"value\"}";
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
};
|
|
2739
|
+
readonly nullable: true;
|
|
2740
|
+
readonly example: {
|
|
2741
|
+
readonly name: "green";
|
|
2742
|
+
readonly enabled: true;
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2745
|
+
readonly variants: {
|
|
2746
|
+
readonly type: "array";
|
|
2747
|
+
readonly description: "The feature variants.";
|
|
2748
|
+
readonly items: {
|
|
2749
|
+
readonly $ref: "#/components/schemas/variantSchema";
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2217
2752
|
};
|
|
2218
2753
|
}];
|
|
2219
2754
|
readonly description: "The strategy's evaluation result. If the strategy is a custom strategy that Unleash can't evaluate, `evaluationStatus` will be `unknown`. Otherwise, it will be `true` or `false`";
|
|
@@ -2390,11 +2925,121 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2390
2925
|
readonly parametersSchema: {
|
|
2391
2926
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
2392
2927
|
readonly type: "object";
|
|
2928
|
+
readonly description: "A list of parameters for a strategy";
|
|
2393
2929
|
readonly additionalProperties: {
|
|
2394
2930
|
readonly type: "string";
|
|
2395
2931
|
};
|
|
2396
2932
|
readonly components: {};
|
|
2397
2933
|
};
|
|
2934
|
+
readonly variantSchema: {
|
|
2935
|
+
readonly $id: "#/components/schemas/variantSchema";
|
|
2936
|
+
readonly type: "object";
|
|
2937
|
+
readonly additionalProperties: false;
|
|
2938
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
2939
|
+
readonly required: readonly ["name", "weight"];
|
|
2940
|
+
readonly properties: {
|
|
2941
|
+
readonly name: {
|
|
2942
|
+
readonly type: "string";
|
|
2943
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
2944
|
+
readonly example: "blue_group";
|
|
2945
|
+
};
|
|
2946
|
+
readonly weight: {
|
|
2947
|
+
readonly type: "number";
|
|
2948
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
2949
|
+
readonly minimum: 0;
|
|
2950
|
+
readonly maximum: 1000;
|
|
2951
|
+
};
|
|
2952
|
+
readonly weightType: {
|
|
2953
|
+
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
2954
|
+
readonly type: "string";
|
|
2955
|
+
readonly example: "variable";
|
|
2956
|
+
readonly enum: readonly ["variable", "fix"];
|
|
2957
|
+
};
|
|
2958
|
+
readonly stickiness: {
|
|
2959
|
+
readonly type: "string";
|
|
2960
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
2961
|
+
readonly example: "custom.context.field";
|
|
2962
|
+
};
|
|
2963
|
+
readonly payload: {
|
|
2964
|
+
readonly type: "object";
|
|
2965
|
+
readonly required: readonly ["type", "value"];
|
|
2966
|
+
readonly description: "Extra data configured for this variant";
|
|
2967
|
+
readonly additionalProperties: false;
|
|
2968
|
+
readonly properties: {
|
|
2969
|
+
readonly type: {
|
|
2970
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2971
|
+
readonly type: "string";
|
|
2972
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
2973
|
+
};
|
|
2974
|
+
readonly value: {
|
|
2975
|
+
readonly description: "The actual value of payload";
|
|
2976
|
+
readonly type: "string";
|
|
2977
|
+
};
|
|
2978
|
+
};
|
|
2979
|
+
readonly example: {
|
|
2980
|
+
readonly type: "json";
|
|
2981
|
+
readonly value: "{\"color\": \"red\"}";
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2984
|
+
readonly overrides: {
|
|
2985
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
2986
|
+
readonly type: "array";
|
|
2987
|
+
readonly items: {
|
|
2988
|
+
readonly $ref: "#/components/schemas/overrideSchema";
|
|
2989
|
+
};
|
|
2990
|
+
};
|
|
2991
|
+
};
|
|
2992
|
+
readonly components: {
|
|
2993
|
+
readonly schemas: {
|
|
2994
|
+
readonly overrideSchema: {
|
|
2995
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
2996
|
+
readonly type: "object";
|
|
2997
|
+
readonly additionalProperties: false;
|
|
2998
|
+
readonly required: readonly ["contextName", "values"];
|
|
2999
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
3000
|
+
readonly properties: {
|
|
3001
|
+
readonly contextName: {
|
|
3002
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
3003
|
+
readonly type: "string";
|
|
3004
|
+
readonly example: "userId";
|
|
3005
|
+
};
|
|
3006
|
+
readonly values: {
|
|
3007
|
+
readonly description: "Which values that should be overriden";
|
|
3008
|
+
readonly type: "array";
|
|
3009
|
+
readonly items: {
|
|
3010
|
+
readonly type: "string";
|
|
3011
|
+
};
|
|
3012
|
+
readonly example: readonly ["red", "blue"];
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
readonly components: {};
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
3018
|
+
};
|
|
3019
|
+
};
|
|
3020
|
+
readonly overrideSchema: {
|
|
3021
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
3022
|
+
readonly type: "object";
|
|
3023
|
+
readonly additionalProperties: false;
|
|
3024
|
+
readonly required: readonly ["contextName", "values"];
|
|
3025
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
3026
|
+
readonly properties: {
|
|
3027
|
+
readonly contextName: {
|
|
3028
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
3029
|
+
readonly type: "string";
|
|
3030
|
+
readonly example: "userId";
|
|
3031
|
+
};
|
|
3032
|
+
readonly values: {
|
|
3033
|
+
readonly description: "Which values that should be overriden";
|
|
3034
|
+
readonly type: "array";
|
|
3035
|
+
readonly items: {
|
|
3036
|
+
readonly type: "string";
|
|
3037
|
+
};
|
|
3038
|
+
readonly example: readonly ["red", "blue"];
|
|
3039
|
+
};
|
|
3040
|
+
};
|
|
3041
|
+
readonly components: {};
|
|
3042
|
+
};
|
|
2398
3043
|
};
|
|
2399
3044
|
};
|
|
2400
3045
|
};
|
|
@@ -2471,7 +3116,8 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2471
3116
|
readonly weightType: {
|
|
2472
3117
|
readonly description: "Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000";
|
|
2473
3118
|
readonly type: "string";
|
|
2474
|
-
readonly example: "
|
|
3119
|
+
readonly example: "variable";
|
|
3120
|
+
readonly enum: readonly ["variable", "fix"];
|
|
2475
3121
|
};
|
|
2476
3122
|
readonly stickiness: {
|
|
2477
3123
|
readonly type: "string";
|
|
@@ -2482,17 +3128,21 @@ export declare const advancedPlaygroundResponseSchema: {
|
|
|
2482
3128
|
readonly type: "object";
|
|
2483
3129
|
readonly required: readonly ["type", "value"];
|
|
2484
3130
|
readonly description: "Extra data configured for this variant";
|
|
3131
|
+
readonly additionalProperties: false;
|
|
2485
3132
|
readonly properties: {
|
|
2486
3133
|
readonly type: {
|
|
3134
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2487
3135
|
readonly type: "string";
|
|
3136
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
2488
3137
|
};
|
|
2489
3138
|
readonly value: {
|
|
3139
|
+
readonly description: "The actual value of payload";
|
|
2490
3140
|
readonly type: "string";
|
|
2491
3141
|
};
|
|
2492
3142
|
};
|
|
2493
3143
|
readonly example: {
|
|
2494
3144
|
readonly type: "json";
|
|
2495
|
-
readonly value: "{color: red}";
|
|
3145
|
+
readonly value: "{\"color\": \"red\"}";
|
|
2496
3146
|
};
|
|
2497
3147
|
};
|
|
2498
3148
|
readonly overrides: {
|