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
|
@@ -4,15 +4,19 @@ export declare const featuresSchema: {
|
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
6
|
readonly required: readonly ["version", "features"];
|
|
7
|
+
readonly description: "A list of features";
|
|
8
|
+
readonly deprecated: true;
|
|
7
9
|
readonly properties: {
|
|
8
10
|
readonly version: {
|
|
9
11
|
readonly type: "integer";
|
|
12
|
+
readonly description: "The version of the feature's schema";
|
|
10
13
|
};
|
|
11
14
|
readonly features: {
|
|
12
15
|
readonly type: "array";
|
|
13
16
|
readonly items: {
|
|
14
17
|
readonly $ref: "#/components/schemas/featureSchema";
|
|
15
18
|
};
|
|
19
|
+
readonly description: "A list of features";
|
|
16
20
|
};
|
|
17
21
|
};
|
|
18
22
|
readonly components: {
|
|
@@ -122,6 +126,7 @@ export declare const featuresSchema: {
|
|
|
122
126
|
readonly type: "object";
|
|
123
127
|
readonly additionalProperties: false;
|
|
124
128
|
readonly required: readonly ["name"];
|
|
129
|
+
readonly description: "A feature toggle definition";
|
|
125
130
|
readonly properties: {
|
|
126
131
|
readonly name: {
|
|
127
132
|
readonly type: "string";
|
|
@@ -152,6 +157,7 @@ export declare const featuresSchema: {
|
|
|
152
157
|
readonly enabled: {
|
|
153
158
|
readonly type: "boolean";
|
|
154
159
|
readonly example: true;
|
|
160
|
+
readonly description: "`true` if the feature is enabled, otherwise `false`.";
|
|
155
161
|
};
|
|
156
162
|
readonly stale: {
|
|
157
163
|
readonly type: "boolean";
|
|
@@ -173,18 +179,21 @@ export declare const featuresSchema: {
|
|
|
173
179
|
readonly format: "date-time";
|
|
174
180
|
readonly nullable: true;
|
|
175
181
|
readonly example: "2023-01-28T15:21:39.975Z";
|
|
182
|
+
readonly description: "The date the feature was created";
|
|
176
183
|
};
|
|
177
184
|
readonly archivedAt: {
|
|
178
185
|
readonly type: "string";
|
|
179
186
|
readonly format: "date-time";
|
|
180
187
|
readonly nullable: true;
|
|
181
188
|
readonly example: "2023-01-29T15:21:39.975Z";
|
|
189
|
+
readonly description: "The date the feature was archived";
|
|
182
190
|
};
|
|
183
191
|
readonly lastSeenAt: {
|
|
184
192
|
readonly type: "string";
|
|
185
193
|
readonly format: "date-time";
|
|
186
194
|
readonly nullable: true;
|
|
187
195
|
readonly example: "2023-01-28T16:21:39.975Z";
|
|
196
|
+
readonly description: "The date when metrics where last collected for the feature";
|
|
188
197
|
};
|
|
189
198
|
readonly environments: {
|
|
190
199
|
readonly type: "array";
|
|
@@ -279,9 +288,12 @@ export declare const featuresSchema: {
|
|
|
279
288
|
readonly featureName: {
|
|
280
289
|
readonly type: "string";
|
|
281
290
|
readonly example: "disable-comments";
|
|
291
|
+
readonly description: "The name of the feature";
|
|
282
292
|
};
|
|
283
293
|
readonly environment: {
|
|
284
294
|
readonly type: "string";
|
|
295
|
+
readonly example: "development";
|
|
296
|
+
readonly description: "The name of the environment";
|
|
285
297
|
};
|
|
286
298
|
readonly type: {
|
|
287
299
|
readonly type: "string";
|
|
@@ -300,6 +312,7 @@ export declare const featuresSchema: {
|
|
|
300
312
|
};
|
|
301
313
|
readonly variantCount: {
|
|
302
314
|
readonly type: "number";
|
|
315
|
+
readonly description: "The number of defined variants";
|
|
303
316
|
};
|
|
304
317
|
readonly strategies: {
|
|
305
318
|
readonly type: "array";
|
|
@@ -365,6 +378,7 @@ export declare const featuresSchema: {
|
|
|
365
378
|
readonly parametersSchema: {
|
|
366
379
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
367
380
|
readonly type: "object";
|
|
381
|
+
readonly description: "A list of parameters for a strategy";
|
|
368
382
|
readonly additionalProperties: {
|
|
369
383
|
readonly type: "string";
|
|
370
384
|
};
|
|
@@ -419,11 +433,18 @@ export declare const featuresSchema: {
|
|
|
419
433
|
};
|
|
420
434
|
readonly constraints: {
|
|
421
435
|
readonly type: "array";
|
|
422
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
436
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
423
437
|
readonly items: {
|
|
424
438
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
425
439
|
};
|
|
426
440
|
};
|
|
441
|
+
readonly variants: {
|
|
442
|
+
readonly type: "array";
|
|
443
|
+
readonly description: "Strategy level variants";
|
|
444
|
+
readonly items: {
|
|
445
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
446
|
+
};
|
|
447
|
+
};
|
|
427
448
|
readonly parameters: {
|
|
428
449
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
429
450
|
};
|
|
@@ -477,13 +498,118 @@ export declare const featuresSchema: {
|
|
|
477
498
|
readonly parametersSchema: {
|
|
478
499
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
479
500
|
readonly type: "object";
|
|
501
|
+
readonly description: "A list of parameters for a strategy";
|
|
480
502
|
readonly additionalProperties: {
|
|
481
503
|
readonly type: "string";
|
|
482
504
|
};
|
|
483
505
|
readonly components: {};
|
|
484
506
|
};
|
|
507
|
+
readonly strategyVariantSchema: {
|
|
508
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
509
|
+
readonly type: "object";
|
|
510
|
+
readonly additionalProperties: false;
|
|
511
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
512
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
513
|
+
readonly properties: {
|
|
514
|
+
readonly name: {
|
|
515
|
+
readonly type: "string";
|
|
516
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
517
|
+
readonly example: "blue_group";
|
|
518
|
+
};
|
|
519
|
+
readonly weight: {
|
|
520
|
+
readonly type: "integer";
|
|
521
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
522
|
+
readonly minimum: 0;
|
|
523
|
+
readonly maximum: 1000;
|
|
524
|
+
};
|
|
525
|
+
readonly weightType: {
|
|
526
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
527
|
+
readonly type: "string";
|
|
528
|
+
readonly example: "fix";
|
|
529
|
+
readonly enum: readonly ["variable", "fix"];
|
|
530
|
+
};
|
|
531
|
+
readonly stickiness: {
|
|
532
|
+
readonly type: "string";
|
|
533
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
534
|
+
readonly example: "custom.context.field";
|
|
535
|
+
};
|
|
536
|
+
readonly payload: {
|
|
537
|
+
readonly type: "object";
|
|
538
|
+
readonly required: readonly ["type", "value"];
|
|
539
|
+
readonly description: "Extra data configured for this variant";
|
|
540
|
+
readonly properties: {
|
|
541
|
+
readonly type: {
|
|
542
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
543
|
+
readonly type: "string";
|
|
544
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
545
|
+
};
|
|
546
|
+
readonly value: {
|
|
547
|
+
readonly description: "The actual value of payload";
|
|
548
|
+
readonly type: "string";
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
readonly example: {
|
|
552
|
+
readonly type: "json";
|
|
553
|
+
readonly value: "{\"color\": \"red\"}";
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
readonly components: {};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
readonly strategyVariantSchema: {
|
|
563
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
564
|
+
readonly type: "object";
|
|
565
|
+
readonly additionalProperties: false;
|
|
566
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
567
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
568
|
+
readonly properties: {
|
|
569
|
+
readonly name: {
|
|
570
|
+
readonly type: "string";
|
|
571
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
572
|
+
readonly example: "blue_group";
|
|
573
|
+
};
|
|
574
|
+
readonly weight: {
|
|
575
|
+
readonly type: "integer";
|
|
576
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
577
|
+
readonly minimum: 0;
|
|
578
|
+
readonly maximum: 1000;
|
|
579
|
+
};
|
|
580
|
+
readonly weightType: {
|
|
581
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
582
|
+
readonly type: "string";
|
|
583
|
+
readonly example: "fix";
|
|
584
|
+
readonly enum: readonly ["variable", "fix"];
|
|
585
|
+
};
|
|
586
|
+
readonly stickiness: {
|
|
587
|
+
readonly type: "string";
|
|
588
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
589
|
+
readonly example: "custom.context.field";
|
|
590
|
+
};
|
|
591
|
+
readonly payload: {
|
|
592
|
+
readonly type: "object";
|
|
593
|
+
readonly required: readonly ["type", "value"];
|
|
594
|
+
readonly description: "Extra data configured for this variant";
|
|
595
|
+
readonly properties: {
|
|
596
|
+
readonly type: {
|
|
597
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
598
|
+
readonly type: "string";
|
|
599
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
600
|
+
};
|
|
601
|
+
readonly value: {
|
|
602
|
+
readonly description: "The actual value of payload";
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
readonly example: {
|
|
607
|
+
readonly type: "json";
|
|
608
|
+
readonly value: "{\"color\": \"red\"}";
|
|
609
|
+
};
|
|
485
610
|
};
|
|
486
611
|
};
|
|
612
|
+
readonly components: {};
|
|
487
613
|
};
|
|
488
614
|
readonly variantSchema: {
|
|
489
615
|
readonly $id: "#/components/schemas/variantSchema";
|
|
@@ -506,7 +632,8 @@ export declare const featuresSchema: {
|
|
|
506
632
|
readonly weightType: {
|
|
507
633
|
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";
|
|
508
634
|
readonly type: "string";
|
|
509
|
-
readonly example: "
|
|
635
|
+
readonly example: "variable";
|
|
636
|
+
readonly enum: readonly ["variable", "fix"];
|
|
510
637
|
};
|
|
511
638
|
readonly stickiness: {
|
|
512
639
|
readonly type: "string";
|
|
@@ -517,17 +644,21 @@ export declare const featuresSchema: {
|
|
|
517
644
|
readonly type: "object";
|
|
518
645
|
readonly required: readonly ["type", "value"];
|
|
519
646
|
readonly description: "Extra data configured for this variant";
|
|
647
|
+
readonly additionalProperties: false;
|
|
520
648
|
readonly properties: {
|
|
521
649
|
readonly type: {
|
|
650
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
522
651
|
readonly type: "string";
|
|
652
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
523
653
|
};
|
|
524
654
|
readonly value: {
|
|
655
|
+
readonly description: "The actual value of payload";
|
|
525
656
|
readonly type: "string";
|
|
526
657
|
};
|
|
527
658
|
};
|
|
528
659
|
readonly example: {
|
|
529
660
|
readonly type: "json";
|
|
530
|
-
readonly value: "{color: red}";
|
|
661
|
+
readonly value: "{\"color\": \"red\"}";
|
|
531
662
|
};
|
|
532
663
|
};
|
|
533
664
|
readonly overrides: {
|
|
@@ -618,11 +749,18 @@ export declare const featuresSchema: {
|
|
|
618
749
|
};
|
|
619
750
|
readonly constraints: {
|
|
620
751
|
readonly type: "array";
|
|
621
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
752
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
622
753
|
readonly items: {
|
|
623
754
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
624
755
|
};
|
|
625
756
|
};
|
|
757
|
+
readonly variants: {
|
|
758
|
+
readonly type: "array";
|
|
759
|
+
readonly description: "Strategy level variants";
|
|
760
|
+
readonly items: {
|
|
761
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
762
|
+
};
|
|
763
|
+
};
|
|
626
764
|
readonly parameters: {
|
|
627
765
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
628
766
|
};
|
|
@@ -676,14 +814,119 @@ export declare const featuresSchema: {
|
|
|
676
814
|
readonly parametersSchema: {
|
|
677
815
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
678
816
|
readonly type: "object";
|
|
817
|
+
readonly description: "A list of parameters for a strategy";
|
|
679
818
|
readonly additionalProperties: {
|
|
680
819
|
readonly type: "string";
|
|
681
820
|
};
|
|
682
821
|
readonly components: {};
|
|
683
822
|
};
|
|
823
|
+
readonly strategyVariantSchema: {
|
|
824
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
825
|
+
readonly type: "object";
|
|
826
|
+
readonly additionalProperties: false;
|
|
827
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
828
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
829
|
+
readonly properties: {
|
|
830
|
+
readonly name: {
|
|
831
|
+
readonly type: "string";
|
|
832
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
833
|
+
readonly example: "blue_group";
|
|
834
|
+
};
|
|
835
|
+
readonly weight: {
|
|
836
|
+
readonly type: "integer";
|
|
837
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
838
|
+
readonly minimum: 0;
|
|
839
|
+
readonly maximum: 1000;
|
|
840
|
+
};
|
|
841
|
+
readonly weightType: {
|
|
842
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
843
|
+
readonly type: "string";
|
|
844
|
+
readonly example: "fix";
|
|
845
|
+
readonly enum: readonly ["variable", "fix"];
|
|
846
|
+
};
|
|
847
|
+
readonly stickiness: {
|
|
848
|
+
readonly type: "string";
|
|
849
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
850
|
+
readonly example: "custom.context.field";
|
|
851
|
+
};
|
|
852
|
+
readonly payload: {
|
|
853
|
+
readonly type: "object";
|
|
854
|
+
readonly required: readonly ["type", "value"];
|
|
855
|
+
readonly description: "Extra data configured for this variant";
|
|
856
|
+
readonly properties: {
|
|
857
|
+
readonly type: {
|
|
858
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
859
|
+
readonly type: "string";
|
|
860
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
861
|
+
};
|
|
862
|
+
readonly value: {
|
|
863
|
+
readonly description: "The actual value of payload";
|
|
864
|
+
readonly type: "string";
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
readonly example: {
|
|
868
|
+
readonly type: "json";
|
|
869
|
+
readonly value: "{\"color\": \"red\"}";
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
readonly components: {};
|
|
874
|
+
};
|
|
684
875
|
};
|
|
685
876
|
};
|
|
686
877
|
};
|
|
878
|
+
readonly strategyVariantSchema: {
|
|
879
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
880
|
+
readonly type: "object";
|
|
881
|
+
readonly additionalProperties: false;
|
|
882
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
883
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
884
|
+
readonly properties: {
|
|
885
|
+
readonly name: {
|
|
886
|
+
readonly type: "string";
|
|
887
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
888
|
+
readonly example: "blue_group";
|
|
889
|
+
};
|
|
890
|
+
readonly weight: {
|
|
891
|
+
readonly type: "integer";
|
|
892
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
893
|
+
readonly minimum: 0;
|
|
894
|
+
readonly maximum: 1000;
|
|
895
|
+
};
|
|
896
|
+
readonly weightType: {
|
|
897
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
898
|
+
readonly type: "string";
|
|
899
|
+
readonly example: "fix";
|
|
900
|
+
readonly enum: readonly ["variable", "fix"];
|
|
901
|
+
};
|
|
902
|
+
readonly stickiness: {
|
|
903
|
+
readonly type: "string";
|
|
904
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
905
|
+
readonly example: "custom.context.field";
|
|
906
|
+
};
|
|
907
|
+
readonly payload: {
|
|
908
|
+
readonly type: "object";
|
|
909
|
+
readonly required: readonly ["type", "value"];
|
|
910
|
+
readonly description: "Extra data configured for this variant";
|
|
911
|
+
readonly properties: {
|
|
912
|
+
readonly type: {
|
|
913
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
914
|
+
readonly type: "string";
|
|
915
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
916
|
+
};
|
|
917
|
+
readonly value: {
|
|
918
|
+
readonly description: "The actual value of payload";
|
|
919
|
+
readonly type: "string";
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
readonly example: {
|
|
923
|
+
readonly type: "json";
|
|
924
|
+
readonly value: "{\"color\": \"red\"}";
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
readonly components: {};
|
|
929
|
+
};
|
|
687
930
|
readonly overrideSchema: {
|
|
688
931
|
readonly $id: "#/components/schemas/overrideSchema";
|
|
689
932
|
readonly type: "object";
|
|
@@ -710,6 +953,7 @@ export declare const featuresSchema: {
|
|
|
710
953
|
readonly parametersSchema: {
|
|
711
954
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
712
955
|
readonly type: "object";
|
|
956
|
+
readonly description: "A list of parameters for a strategy";
|
|
713
957
|
readonly additionalProperties: {
|
|
714
958
|
readonly type: "string";
|
|
715
959
|
};
|
|
@@ -736,7 +980,8 @@ export declare const featuresSchema: {
|
|
|
736
980
|
readonly weightType: {
|
|
737
981
|
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";
|
|
738
982
|
readonly type: "string";
|
|
739
|
-
readonly example: "
|
|
983
|
+
readonly example: "variable";
|
|
984
|
+
readonly enum: readonly ["variable", "fix"];
|
|
740
985
|
};
|
|
741
986
|
readonly stickiness: {
|
|
742
987
|
readonly type: "string";
|
|
@@ -747,17 +992,21 @@ export declare const featuresSchema: {
|
|
|
747
992
|
readonly type: "object";
|
|
748
993
|
readonly required: readonly ["type", "value"];
|
|
749
994
|
readonly description: "Extra data configured for this variant";
|
|
995
|
+
readonly additionalProperties: false;
|
|
750
996
|
readonly properties: {
|
|
751
997
|
readonly type: {
|
|
998
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
752
999
|
readonly type: "string";
|
|
1000
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
753
1001
|
};
|
|
754
1002
|
readonly value: {
|
|
1003
|
+
readonly description: "The actual value of payload";
|
|
755
1004
|
readonly type: "string";
|
|
756
1005
|
};
|
|
757
1006
|
};
|
|
758
1007
|
readonly example: {
|
|
759
1008
|
readonly type: "json";
|
|
760
|
-
readonly value: "{color: red}";
|
|
1009
|
+
readonly value: "{\"color\": \"red\"}";
|
|
761
1010
|
};
|
|
762
1011
|
};
|
|
763
1012
|
readonly overrides: {
|
|
@@ -862,9 +1111,12 @@ export declare const featuresSchema: {
|
|
|
862
1111
|
readonly featureName: {
|
|
863
1112
|
readonly type: "string";
|
|
864
1113
|
readonly example: "disable-comments";
|
|
1114
|
+
readonly description: "The name of the feature";
|
|
865
1115
|
};
|
|
866
1116
|
readonly environment: {
|
|
867
1117
|
readonly type: "string";
|
|
1118
|
+
readonly example: "development";
|
|
1119
|
+
readonly description: "The name of the environment";
|
|
868
1120
|
};
|
|
869
1121
|
readonly type: {
|
|
870
1122
|
readonly type: "string";
|
|
@@ -883,6 +1135,7 @@ export declare const featuresSchema: {
|
|
|
883
1135
|
};
|
|
884
1136
|
readonly variantCount: {
|
|
885
1137
|
readonly type: "number";
|
|
1138
|
+
readonly description: "The number of defined variants";
|
|
886
1139
|
};
|
|
887
1140
|
readonly strategies: {
|
|
888
1141
|
readonly type: "array";
|
|
@@ -948,6 +1201,7 @@ export declare const featuresSchema: {
|
|
|
948
1201
|
readonly parametersSchema: {
|
|
949
1202
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
950
1203
|
readonly type: "object";
|
|
1204
|
+
readonly description: "A list of parameters for a strategy";
|
|
951
1205
|
readonly additionalProperties: {
|
|
952
1206
|
readonly type: "string";
|
|
953
1207
|
};
|
|
@@ -1002,11 +1256,18 @@ export declare const featuresSchema: {
|
|
|
1002
1256
|
};
|
|
1003
1257
|
readonly constraints: {
|
|
1004
1258
|
readonly type: "array";
|
|
1005
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1259
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
1006
1260
|
readonly items: {
|
|
1007
1261
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
1008
1262
|
};
|
|
1009
1263
|
};
|
|
1264
|
+
readonly variants: {
|
|
1265
|
+
readonly type: "array";
|
|
1266
|
+
readonly description: "Strategy level variants";
|
|
1267
|
+
readonly items: {
|
|
1268
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1010
1271
|
readonly parameters: {
|
|
1011
1272
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
1012
1273
|
};
|
|
@@ -1060,13 +1321,118 @@ export declare const featuresSchema: {
|
|
|
1060
1321
|
readonly parametersSchema: {
|
|
1061
1322
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1062
1323
|
readonly type: "object";
|
|
1324
|
+
readonly description: "A list of parameters for a strategy";
|
|
1063
1325
|
readonly additionalProperties: {
|
|
1064
1326
|
readonly type: "string";
|
|
1065
1327
|
};
|
|
1066
1328
|
readonly components: {};
|
|
1067
1329
|
};
|
|
1330
|
+
readonly strategyVariantSchema: {
|
|
1331
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1332
|
+
readonly type: "object";
|
|
1333
|
+
readonly additionalProperties: false;
|
|
1334
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
1335
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1336
|
+
readonly properties: {
|
|
1337
|
+
readonly name: {
|
|
1338
|
+
readonly type: "string";
|
|
1339
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1340
|
+
readonly example: "blue_group";
|
|
1341
|
+
};
|
|
1342
|
+
readonly weight: {
|
|
1343
|
+
readonly type: "integer";
|
|
1344
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1345
|
+
readonly minimum: 0;
|
|
1346
|
+
readonly maximum: 1000;
|
|
1347
|
+
};
|
|
1348
|
+
readonly weightType: {
|
|
1349
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
1350
|
+
readonly type: "string";
|
|
1351
|
+
readonly example: "fix";
|
|
1352
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1353
|
+
};
|
|
1354
|
+
readonly stickiness: {
|
|
1355
|
+
readonly type: "string";
|
|
1356
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
1357
|
+
readonly example: "custom.context.field";
|
|
1358
|
+
};
|
|
1359
|
+
readonly payload: {
|
|
1360
|
+
readonly type: "object";
|
|
1361
|
+
readonly required: readonly ["type", "value"];
|
|
1362
|
+
readonly description: "Extra data configured for this variant";
|
|
1363
|
+
readonly properties: {
|
|
1364
|
+
readonly type: {
|
|
1365
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1366
|
+
readonly type: "string";
|
|
1367
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1368
|
+
};
|
|
1369
|
+
readonly value: {
|
|
1370
|
+
readonly description: "The actual value of payload";
|
|
1371
|
+
readonly type: "string";
|
|
1372
|
+
};
|
|
1373
|
+
};
|
|
1374
|
+
readonly example: {
|
|
1375
|
+
readonly type: "json";
|
|
1376
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
readonly components: {};
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1385
|
+
readonly strategyVariantSchema: {
|
|
1386
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1387
|
+
readonly type: "object";
|
|
1388
|
+
readonly additionalProperties: false;
|
|
1389
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
1390
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1391
|
+
readonly properties: {
|
|
1392
|
+
readonly name: {
|
|
1393
|
+
readonly type: "string";
|
|
1394
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1395
|
+
readonly example: "blue_group";
|
|
1396
|
+
};
|
|
1397
|
+
readonly weight: {
|
|
1398
|
+
readonly type: "integer";
|
|
1399
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1400
|
+
readonly minimum: 0;
|
|
1401
|
+
readonly maximum: 1000;
|
|
1402
|
+
};
|
|
1403
|
+
readonly weightType: {
|
|
1404
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
1405
|
+
readonly type: "string";
|
|
1406
|
+
readonly example: "fix";
|
|
1407
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1408
|
+
};
|
|
1409
|
+
readonly stickiness: {
|
|
1410
|
+
readonly type: "string";
|
|
1411
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
1412
|
+
readonly example: "custom.context.field";
|
|
1413
|
+
};
|
|
1414
|
+
readonly payload: {
|
|
1415
|
+
readonly type: "object";
|
|
1416
|
+
readonly required: readonly ["type", "value"];
|
|
1417
|
+
readonly description: "Extra data configured for this variant";
|
|
1418
|
+
readonly properties: {
|
|
1419
|
+
readonly type: {
|
|
1420
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1421
|
+
readonly type: "string";
|
|
1422
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1423
|
+
};
|
|
1424
|
+
readonly value: {
|
|
1425
|
+
readonly description: "The actual value of payload";
|
|
1426
|
+
readonly type: "string";
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
readonly example: {
|
|
1430
|
+
readonly type: "json";
|
|
1431
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1432
|
+
};
|
|
1068
1433
|
};
|
|
1069
1434
|
};
|
|
1435
|
+
readonly components: {};
|
|
1070
1436
|
};
|
|
1071
1437
|
readonly variantSchema: {
|
|
1072
1438
|
readonly $id: "#/components/schemas/variantSchema";
|
|
@@ -1089,7 +1455,8 @@ export declare const featuresSchema: {
|
|
|
1089
1455
|
readonly weightType: {
|
|
1090
1456
|
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";
|
|
1091
1457
|
readonly type: "string";
|
|
1092
|
-
readonly example: "
|
|
1458
|
+
readonly example: "variable";
|
|
1459
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1093
1460
|
};
|
|
1094
1461
|
readonly stickiness: {
|
|
1095
1462
|
readonly type: "string";
|
|
@@ -1100,17 +1467,21 @@ export declare const featuresSchema: {
|
|
|
1100
1467
|
readonly type: "object";
|
|
1101
1468
|
readonly required: readonly ["type", "value"];
|
|
1102
1469
|
readonly description: "Extra data configured for this variant";
|
|
1470
|
+
readonly additionalProperties: false;
|
|
1103
1471
|
readonly properties: {
|
|
1104
1472
|
readonly type: {
|
|
1473
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1105
1474
|
readonly type: "string";
|
|
1475
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1106
1476
|
};
|
|
1107
1477
|
readonly value: {
|
|
1478
|
+
readonly description: "The actual value of payload";
|
|
1108
1479
|
readonly type: "string";
|
|
1109
1480
|
};
|
|
1110
1481
|
};
|
|
1111
1482
|
readonly example: {
|
|
1112
1483
|
readonly type: "json";
|
|
1113
|
-
readonly value: "{color: red}";
|
|
1484
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1114
1485
|
};
|
|
1115
1486
|
};
|
|
1116
1487
|
readonly overrides: {
|
|
@@ -1201,11 +1572,18 @@ export declare const featuresSchema: {
|
|
|
1201
1572
|
};
|
|
1202
1573
|
readonly constraints: {
|
|
1203
1574
|
readonly type: "array";
|
|
1204
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1575
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
1205
1576
|
readonly items: {
|
|
1206
1577
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
1207
1578
|
};
|
|
1208
1579
|
};
|
|
1580
|
+
readonly variants: {
|
|
1581
|
+
readonly type: "array";
|
|
1582
|
+
readonly description: "Strategy level variants";
|
|
1583
|
+
readonly items: {
|
|
1584
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1585
|
+
};
|
|
1586
|
+
};
|
|
1209
1587
|
readonly parameters: {
|
|
1210
1588
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
1211
1589
|
};
|
|
@@ -1259,17 +1637,123 @@ export declare const featuresSchema: {
|
|
|
1259
1637
|
readonly parametersSchema: {
|
|
1260
1638
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1261
1639
|
readonly type: "object";
|
|
1640
|
+
readonly description: "A list of parameters for a strategy";
|
|
1262
1641
|
readonly additionalProperties: {
|
|
1263
1642
|
readonly type: "string";
|
|
1264
1643
|
};
|
|
1265
1644
|
readonly components: {};
|
|
1266
1645
|
};
|
|
1646
|
+
readonly strategyVariantSchema: {
|
|
1647
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1648
|
+
readonly type: "object";
|
|
1649
|
+
readonly additionalProperties: false;
|
|
1650
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
1651
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1652
|
+
readonly properties: {
|
|
1653
|
+
readonly name: {
|
|
1654
|
+
readonly type: "string";
|
|
1655
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1656
|
+
readonly example: "blue_group";
|
|
1657
|
+
};
|
|
1658
|
+
readonly weight: {
|
|
1659
|
+
readonly type: "integer";
|
|
1660
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1661
|
+
readonly minimum: 0;
|
|
1662
|
+
readonly maximum: 1000;
|
|
1663
|
+
};
|
|
1664
|
+
readonly weightType: {
|
|
1665
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
1666
|
+
readonly type: "string";
|
|
1667
|
+
readonly example: "fix";
|
|
1668
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1669
|
+
};
|
|
1670
|
+
readonly stickiness: {
|
|
1671
|
+
readonly type: "string";
|
|
1672
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
1673
|
+
readonly example: "custom.context.field";
|
|
1674
|
+
};
|
|
1675
|
+
readonly payload: {
|
|
1676
|
+
readonly type: "object";
|
|
1677
|
+
readonly required: readonly ["type", "value"];
|
|
1678
|
+
readonly description: "Extra data configured for this variant";
|
|
1679
|
+
readonly properties: {
|
|
1680
|
+
readonly type: {
|
|
1681
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1682
|
+
readonly type: "string";
|
|
1683
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1684
|
+
};
|
|
1685
|
+
readonly value: {
|
|
1686
|
+
readonly description: "The actual value of payload";
|
|
1687
|
+
readonly type: "string";
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
readonly example: {
|
|
1691
|
+
readonly type: "json";
|
|
1692
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
};
|
|
1696
|
+
readonly components: {};
|
|
1697
|
+
};
|
|
1267
1698
|
};
|
|
1268
1699
|
};
|
|
1269
1700
|
};
|
|
1701
|
+
readonly strategyVariantSchema: {
|
|
1702
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1703
|
+
readonly type: "object";
|
|
1704
|
+
readonly additionalProperties: false;
|
|
1705
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
1706
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1707
|
+
readonly properties: {
|
|
1708
|
+
readonly name: {
|
|
1709
|
+
readonly type: "string";
|
|
1710
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1711
|
+
readonly example: "blue_group";
|
|
1712
|
+
};
|
|
1713
|
+
readonly weight: {
|
|
1714
|
+
readonly type: "integer";
|
|
1715
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1716
|
+
readonly minimum: 0;
|
|
1717
|
+
readonly maximum: 1000;
|
|
1718
|
+
};
|
|
1719
|
+
readonly weightType: {
|
|
1720
|
+
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. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
1721
|
+
readonly type: "string";
|
|
1722
|
+
readonly example: "fix";
|
|
1723
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1724
|
+
};
|
|
1725
|
+
readonly stickiness: {
|
|
1726
|
+
readonly type: "string";
|
|
1727
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
1728
|
+
readonly example: "custom.context.field";
|
|
1729
|
+
};
|
|
1730
|
+
readonly payload: {
|
|
1731
|
+
readonly type: "object";
|
|
1732
|
+
readonly required: readonly ["type", "value"];
|
|
1733
|
+
readonly description: "Extra data configured for this variant";
|
|
1734
|
+
readonly properties: {
|
|
1735
|
+
readonly type: {
|
|
1736
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1737
|
+
readonly type: "string";
|
|
1738
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1739
|
+
};
|
|
1740
|
+
readonly value: {
|
|
1741
|
+
readonly description: "The actual value of payload";
|
|
1742
|
+
readonly type: "string";
|
|
1743
|
+
};
|
|
1744
|
+
};
|
|
1745
|
+
readonly example: {
|
|
1746
|
+
readonly type: "json";
|
|
1747
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1748
|
+
};
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
readonly components: {};
|
|
1752
|
+
};
|
|
1270
1753
|
readonly parametersSchema: {
|
|
1271
1754
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1272
1755
|
readonly type: "object";
|
|
1756
|
+
readonly description: "A list of parameters for a strategy";
|
|
1273
1757
|
readonly additionalProperties: {
|
|
1274
1758
|
readonly type: "string";
|
|
1275
1759
|
};
|
|
@@ -1296,7 +1780,8 @@ export declare const featuresSchema: {
|
|
|
1296
1780
|
readonly weightType: {
|
|
1297
1781
|
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";
|
|
1298
1782
|
readonly type: "string";
|
|
1299
|
-
readonly example: "
|
|
1783
|
+
readonly example: "variable";
|
|
1784
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1300
1785
|
};
|
|
1301
1786
|
readonly stickiness: {
|
|
1302
1787
|
readonly type: "string";
|
|
@@ -1307,17 +1792,21 @@ export declare const featuresSchema: {
|
|
|
1307
1792
|
readonly type: "object";
|
|
1308
1793
|
readonly required: readonly ["type", "value"];
|
|
1309
1794
|
readonly description: "Extra data configured for this variant";
|
|
1795
|
+
readonly additionalProperties: false;
|
|
1310
1796
|
readonly properties: {
|
|
1311
1797
|
readonly type: {
|
|
1798
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1312
1799
|
readonly type: "string";
|
|
1800
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1313
1801
|
};
|
|
1314
1802
|
readonly value: {
|
|
1803
|
+
readonly description: "The actual value of payload";
|
|
1315
1804
|
readonly type: "string";
|
|
1316
1805
|
};
|
|
1317
1806
|
};
|
|
1318
1807
|
readonly example: {
|
|
1319
1808
|
readonly type: "json";
|
|
1320
|
-
readonly value: "{color: red}";
|
|
1809
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1321
1810
|
};
|
|
1322
1811
|
};
|
|
1323
1812
|
readonly overrides: {
|