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
|
@@ -84,6 +84,7 @@ export declare const stateSchema: {
|
|
|
84
84
|
readonly type: "object";
|
|
85
85
|
readonly additionalProperties: false;
|
|
86
86
|
readonly required: readonly ["name"];
|
|
87
|
+
readonly description: "A feature toggle definition";
|
|
87
88
|
readonly properties: {
|
|
88
89
|
readonly name: {
|
|
89
90
|
readonly type: "string";
|
|
@@ -114,6 +115,7 @@ export declare const stateSchema: {
|
|
|
114
115
|
readonly enabled: {
|
|
115
116
|
readonly type: "boolean";
|
|
116
117
|
readonly example: true;
|
|
118
|
+
readonly description: "`true` if the feature is enabled, otherwise `false`.";
|
|
117
119
|
};
|
|
118
120
|
readonly stale: {
|
|
119
121
|
readonly type: "boolean";
|
|
@@ -135,18 +137,21 @@ export declare const stateSchema: {
|
|
|
135
137
|
readonly format: "date-time";
|
|
136
138
|
readonly nullable: true;
|
|
137
139
|
readonly example: "2023-01-28T15:21:39.975Z";
|
|
140
|
+
readonly description: "The date the feature was created";
|
|
138
141
|
};
|
|
139
142
|
readonly archivedAt: {
|
|
140
143
|
readonly type: "string";
|
|
141
144
|
readonly format: "date-time";
|
|
142
145
|
readonly nullable: true;
|
|
143
146
|
readonly example: "2023-01-29T15:21:39.975Z";
|
|
147
|
+
readonly description: "The date the feature was archived";
|
|
144
148
|
};
|
|
145
149
|
readonly lastSeenAt: {
|
|
146
150
|
readonly type: "string";
|
|
147
151
|
readonly format: "date-time";
|
|
148
152
|
readonly nullable: true;
|
|
149
153
|
readonly example: "2023-01-28T16:21:39.975Z";
|
|
154
|
+
readonly description: "The date when metrics where last collected for the feature";
|
|
150
155
|
};
|
|
151
156
|
readonly environments: {
|
|
152
157
|
readonly type: "array";
|
|
@@ -241,9 +246,12 @@ export declare const stateSchema: {
|
|
|
241
246
|
readonly featureName: {
|
|
242
247
|
readonly type: "string";
|
|
243
248
|
readonly example: "disable-comments";
|
|
249
|
+
readonly description: "The name of the feature";
|
|
244
250
|
};
|
|
245
251
|
readonly environment: {
|
|
246
252
|
readonly type: "string";
|
|
253
|
+
readonly example: "development";
|
|
254
|
+
readonly description: "The name of the environment";
|
|
247
255
|
};
|
|
248
256
|
readonly type: {
|
|
249
257
|
readonly type: "string";
|
|
@@ -262,6 +270,7 @@ export declare const stateSchema: {
|
|
|
262
270
|
};
|
|
263
271
|
readonly variantCount: {
|
|
264
272
|
readonly type: "number";
|
|
273
|
+
readonly description: "The number of defined variants";
|
|
265
274
|
};
|
|
266
275
|
readonly strategies: {
|
|
267
276
|
readonly type: "array";
|
|
@@ -327,6 +336,7 @@ export declare const stateSchema: {
|
|
|
327
336
|
readonly parametersSchema: {
|
|
328
337
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
329
338
|
readonly type: "object";
|
|
339
|
+
readonly description: "A list of parameters for a strategy";
|
|
330
340
|
readonly additionalProperties: {
|
|
331
341
|
readonly type: "string";
|
|
332
342
|
};
|
|
@@ -381,11 +391,18 @@ export declare const stateSchema: {
|
|
|
381
391
|
};
|
|
382
392
|
readonly constraints: {
|
|
383
393
|
readonly type: "array";
|
|
384
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
394
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
385
395
|
readonly items: {
|
|
386
396
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
387
397
|
};
|
|
388
398
|
};
|
|
399
|
+
readonly variants: {
|
|
400
|
+
readonly type: "array";
|
|
401
|
+
readonly description: "Strategy level variants";
|
|
402
|
+
readonly items: {
|
|
403
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
404
|
+
};
|
|
405
|
+
};
|
|
389
406
|
readonly parameters: {
|
|
390
407
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
391
408
|
};
|
|
@@ -439,14 +456,119 @@ export declare const stateSchema: {
|
|
|
439
456
|
readonly parametersSchema: {
|
|
440
457
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
441
458
|
readonly type: "object";
|
|
459
|
+
readonly description: "A list of parameters for a strategy";
|
|
442
460
|
readonly additionalProperties: {
|
|
443
461
|
readonly type: "string";
|
|
444
462
|
};
|
|
445
463
|
readonly components: {};
|
|
446
464
|
};
|
|
465
|
+
readonly strategyVariantSchema: {
|
|
466
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
467
|
+
readonly type: "object";
|
|
468
|
+
readonly additionalProperties: false;
|
|
469
|
+
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.";
|
|
470
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
471
|
+
readonly properties: {
|
|
472
|
+
readonly name: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
475
|
+
readonly example: "blue_group";
|
|
476
|
+
};
|
|
477
|
+
readonly weight: {
|
|
478
|
+
readonly type: "integer";
|
|
479
|
+
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";
|
|
480
|
+
readonly minimum: 0;
|
|
481
|
+
readonly maximum: 1000;
|
|
482
|
+
};
|
|
483
|
+
readonly weightType: {
|
|
484
|
+
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).";
|
|
485
|
+
readonly type: "string";
|
|
486
|
+
readonly example: "fix";
|
|
487
|
+
readonly enum: readonly ["variable", "fix"];
|
|
488
|
+
};
|
|
489
|
+
readonly stickiness: {
|
|
490
|
+
readonly type: "string";
|
|
491
|
+
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";
|
|
492
|
+
readonly example: "custom.context.field";
|
|
493
|
+
};
|
|
494
|
+
readonly payload: {
|
|
495
|
+
readonly type: "object";
|
|
496
|
+
readonly required: readonly ["type", "value"];
|
|
497
|
+
readonly description: "Extra data configured for this variant";
|
|
498
|
+
readonly properties: {
|
|
499
|
+
readonly type: {
|
|
500
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
501
|
+
readonly type: "string";
|
|
502
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
503
|
+
};
|
|
504
|
+
readonly value: {
|
|
505
|
+
readonly description: "The actual value of payload";
|
|
506
|
+
readonly type: "string";
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
readonly example: {
|
|
510
|
+
readonly type: "json";
|
|
511
|
+
readonly value: "{\"color\": \"red\"}";
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
readonly components: {};
|
|
516
|
+
};
|
|
447
517
|
};
|
|
448
518
|
};
|
|
449
519
|
};
|
|
520
|
+
readonly strategyVariantSchema: {
|
|
521
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
522
|
+
readonly type: "object";
|
|
523
|
+
readonly additionalProperties: false;
|
|
524
|
+
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.";
|
|
525
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
526
|
+
readonly properties: {
|
|
527
|
+
readonly name: {
|
|
528
|
+
readonly type: "string";
|
|
529
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
530
|
+
readonly example: "blue_group";
|
|
531
|
+
};
|
|
532
|
+
readonly weight: {
|
|
533
|
+
readonly type: "integer";
|
|
534
|
+
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";
|
|
535
|
+
readonly minimum: 0;
|
|
536
|
+
readonly maximum: 1000;
|
|
537
|
+
};
|
|
538
|
+
readonly weightType: {
|
|
539
|
+
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).";
|
|
540
|
+
readonly type: "string";
|
|
541
|
+
readonly example: "fix";
|
|
542
|
+
readonly enum: readonly ["variable", "fix"];
|
|
543
|
+
};
|
|
544
|
+
readonly stickiness: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
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";
|
|
547
|
+
readonly example: "custom.context.field";
|
|
548
|
+
};
|
|
549
|
+
readonly payload: {
|
|
550
|
+
readonly type: "object";
|
|
551
|
+
readonly required: readonly ["type", "value"];
|
|
552
|
+
readonly description: "Extra data configured for this variant";
|
|
553
|
+
readonly properties: {
|
|
554
|
+
readonly type: {
|
|
555
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
556
|
+
readonly type: "string";
|
|
557
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
558
|
+
};
|
|
559
|
+
readonly value: {
|
|
560
|
+
readonly description: "The actual value of payload";
|
|
561
|
+
readonly type: "string";
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
readonly example: {
|
|
565
|
+
readonly type: "json";
|
|
566
|
+
readonly value: "{\"color\": \"red\"}";
|
|
567
|
+
};
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
readonly components: {};
|
|
571
|
+
};
|
|
450
572
|
readonly variantSchema: {
|
|
451
573
|
readonly $id: "#/components/schemas/variantSchema";
|
|
452
574
|
readonly type: "object";
|
|
@@ -468,7 +590,8 @@ export declare const stateSchema: {
|
|
|
468
590
|
readonly weightType: {
|
|
469
591
|
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";
|
|
470
592
|
readonly type: "string";
|
|
471
|
-
readonly example: "
|
|
593
|
+
readonly example: "variable";
|
|
594
|
+
readonly enum: readonly ["variable", "fix"];
|
|
472
595
|
};
|
|
473
596
|
readonly stickiness: {
|
|
474
597
|
readonly type: "string";
|
|
@@ -479,17 +602,21 @@ export declare const stateSchema: {
|
|
|
479
602
|
readonly type: "object";
|
|
480
603
|
readonly required: readonly ["type", "value"];
|
|
481
604
|
readonly description: "Extra data configured for this variant";
|
|
605
|
+
readonly additionalProperties: false;
|
|
482
606
|
readonly properties: {
|
|
483
607
|
readonly type: {
|
|
608
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
484
609
|
readonly type: "string";
|
|
610
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
485
611
|
};
|
|
486
612
|
readonly value: {
|
|
613
|
+
readonly description: "The actual value of payload";
|
|
487
614
|
readonly type: "string";
|
|
488
615
|
};
|
|
489
616
|
};
|
|
490
617
|
readonly example: {
|
|
491
618
|
readonly type: "json";
|
|
492
|
-
readonly value: "{color: red}";
|
|
619
|
+
readonly value: "{\"color\": \"red\"}";
|
|
493
620
|
};
|
|
494
621
|
};
|
|
495
622
|
readonly overrides: {
|
|
@@ -580,11 +707,18 @@ export declare const stateSchema: {
|
|
|
580
707
|
};
|
|
581
708
|
readonly constraints: {
|
|
582
709
|
readonly type: "array";
|
|
583
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
710
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
584
711
|
readonly items: {
|
|
585
712
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
586
713
|
};
|
|
587
714
|
};
|
|
715
|
+
readonly variants: {
|
|
716
|
+
readonly type: "array";
|
|
717
|
+
readonly description: "Strategy level variants";
|
|
718
|
+
readonly items: {
|
|
719
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
720
|
+
};
|
|
721
|
+
};
|
|
588
722
|
readonly parameters: {
|
|
589
723
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
590
724
|
};
|
|
@@ -638,14 +772,119 @@ export declare const stateSchema: {
|
|
|
638
772
|
readonly parametersSchema: {
|
|
639
773
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
640
774
|
readonly type: "object";
|
|
775
|
+
readonly description: "A list of parameters for a strategy";
|
|
641
776
|
readonly additionalProperties: {
|
|
642
777
|
readonly type: "string";
|
|
643
778
|
};
|
|
644
779
|
readonly components: {};
|
|
645
780
|
};
|
|
781
|
+
readonly strategyVariantSchema: {
|
|
782
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
783
|
+
readonly type: "object";
|
|
784
|
+
readonly additionalProperties: false;
|
|
785
|
+
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.";
|
|
786
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
787
|
+
readonly properties: {
|
|
788
|
+
readonly name: {
|
|
789
|
+
readonly type: "string";
|
|
790
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
791
|
+
readonly example: "blue_group";
|
|
792
|
+
};
|
|
793
|
+
readonly weight: {
|
|
794
|
+
readonly type: "integer";
|
|
795
|
+
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";
|
|
796
|
+
readonly minimum: 0;
|
|
797
|
+
readonly maximum: 1000;
|
|
798
|
+
};
|
|
799
|
+
readonly weightType: {
|
|
800
|
+
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).";
|
|
801
|
+
readonly type: "string";
|
|
802
|
+
readonly example: "fix";
|
|
803
|
+
readonly enum: readonly ["variable", "fix"];
|
|
804
|
+
};
|
|
805
|
+
readonly stickiness: {
|
|
806
|
+
readonly type: "string";
|
|
807
|
+
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";
|
|
808
|
+
readonly example: "custom.context.field";
|
|
809
|
+
};
|
|
810
|
+
readonly payload: {
|
|
811
|
+
readonly type: "object";
|
|
812
|
+
readonly required: readonly ["type", "value"];
|
|
813
|
+
readonly description: "Extra data configured for this variant";
|
|
814
|
+
readonly properties: {
|
|
815
|
+
readonly type: {
|
|
816
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
817
|
+
readonly type: "string";
|
|
818
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
819
|
+
};
|
|
820
|
+
readonly value: {
|
|
821
|
+
readonly description: "The actual value of payload";
|
|
822
|
+
readonly type: "string";
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
readonly example: {
|
|
826
|
+
readonly type: "json";
|
|
827
|
+
readonly value: "{\"color\": \"red\"}";
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
readonly components: {};
|
|
832
|
+
};
|
|
646
833
|
};
|
|
647
834
|
};
|
|
648
835
|
};
|
|
836
|
+
readonly strategyVariantSchema: {
|
|
837
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
838
|
+
readonly type: "object";
|
|
839
|
+
readonly additionalProperties: false;
|
|
840
|
+
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.";
|
|
841
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
842
|
+
readonly properties: {
|
|
843
|
+
readonly name: {
|
|
844
|
+
readonly type: "string";
|
|
845
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
846
|
+
readonly example: "blue_group";
|
|
847
|
+
};
|
|
848
|
+
readonly weight: {
|
|
849
|
+
readonly type: "integer";
|
|
850
|
+
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";
|
|
851
|
+
readonly minimum: 0;
|
|
852
|
+
readonly maximum: 1000;
|
|
853
|
+
};
|
|
854
|
+
readonly weightType: {
|
|
855
|
+
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).";
|
|
856
|
+
readonly type: "string";
|
|
857
|
+
readonly example: "fix";
|
|
858
|
+
readonly enum: readonly ["variable", "fix"];
|
|
859
|
+
};
|
|
860
|
+
readonly stickiness: {
|
|
861
|
+
readonly type: "string";
|
|
862
|
+
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";
|
|
863
|
+
readonly example: "custom.context.field";
|
|
864
|
+
};
|
|
865
|
+
readonly payload: {
|
|
866
|
+
readonly type: "object";
|
|
867
|
+
readonly required: readonly ["type", "value"];
|
|
868
|
+
readonly description: "Extra data configured for this variant";
|
|
869
|
+
readonly properties: {
|
|
870
|
+
readonly type: {
|
|
871
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
872
|
+
readonly type: "string";
|
|
873
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
874
|
+
};
|
|
875
|
+
readonly value: {
|
|
876
|
+
readonly description: "The actual value of payload";
|
|
877
|
+
readonly type: "string";
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
readonly example: {
|
|
881
|
+
readonly type: "json";
|
|
882
|
+
readonly value: "{\"color\": \"red\"}";
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
readonly components: {};
|
|
887
|
+
};
|
|
649
888
|
readonly overrideSchema: {
|
|
650
889
|
readonly $id: "#/components/schemas/overrideSchema";
|
|
651
890
|
readonly type: "object";
|
|
@@ -672,6 +911,7 @@ export declare const stateSchema: {
|
|
|
672
911
|
readonly parametersSchema: {
|
|
673
912
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
674
913
|
readonly type: "object";
|
|
914
|
+
readonly description: "A list of parameters for a strategy";
|
|
675
915
|
readonly additionalProperties: {
|
|
676
916
|
readonly type: "string";
|
|
677
917
|
};
|
|
@@ -698,7 +938,8 @@ export declare const stateSchema: {
|
|
|
698
938
|
readonly weightType: {
|
|
699
939
|
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";
|
|
700
940
|
readonly type: "string";
|
|
701
|
-
readonly example: "
|
|
941
|
+
readonly example: "variable";
|
|
942
|
+
readonly enum: readonly ["variable", "fix"];
|
|
702
943
|
};
|
|
703
944
|
readonly stickiness: {
|
|
704
945
|
readonly type: "string";
|
|
@@ -709,17 +950,21 @@ export declare const stateSchema: {
|
|
|
709
950
|
readonly type: "object";
|
|
710
951
|
readonly required: readonly ["type", "value"];
|
|
711
952
|
readonly description: "Extra data configured for this variant";
|
|
953
|
+
readonly additionalProperties: false;
|
|
712
954
|
readonly properties: {
|
|
713
955
|
readonly type: {
|
|
956
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
714
957
|
readonly type: "string";
|
|
958
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
715
959
|
};
|
|
716
960
|
readonly value: {
|
|
961
|
+
readonly description: "The actual value of payload";
|
|
717
962
|
readonly type: "string";
|
|
718
963
|
};
|
|
719
964
|
};
|
|
720
965
|
readonly example: {
|
|
721
966
|
readonly type: "json";
|
|
722
|
-
readonly value: "{color: red}";
|
|
967
|
+
readonly value: "{\"color\": \"red\"}";
|
|
723
968
|
};
|
|
724
969
|
};
|
|
725
970
|
readonly overrides: {
|
|
@@ -815,17 +1060,24 @@ export declare const stateSchema: {
|
|
|
815
1060
|
readonly $id: "#/components/schemas/tagTypeSchema";
|
|
816
1061
|
readonly type: "object";
|
|
817
1062
|
readonly additionalProperties: false;
|
|
1063
|
+
readonly description: "A tag type.";
|
|
818
1064
|
readonly required: readonly ["name"];
|
|
819
1065
|
readonly properties: {
|
|
820
1066
|
readonly name: {
|
|
821
1067
|
readonly type: "string";
|
|
1068
|
+
readonly description: "The name of the tag type.";
|
|
1069
|
+
readonly example: "color";
|
|
822
1070
|
};
|
|
823
1071
|
readonly description: {
|
|
824
1072
|
readonly type: "string";
|
|
1073
|
+
readonly description: "The description of the tag type.";
|
|
1074
|
+
readonly example: "A tag type for describing the color of a tag.";
|
|
825
1075
|
};
|
|
826
1076
|
readonly icon: {
|
|
827
1077
|
readonly type: "string";
|
|
828
1078
|
readonly nullable: true;
|
|
1079
|
+
readonly description: "The icon of the tag type.";
|
|
1080
|
+
readonly example: "not-really-used";
|
|
829
1081
|
};
|
|
830
1082
|
};
|
|
831
1083
|
readonly components: {};
|
|
@@ -980,11 +1232,18 @@ export declare const stateSchema: {
|
|
|
980
1232
|
};
|
|
981
1233
|
readonly constraints: {
|
|
982
1234
|
readonly type: "array";
|
|
983
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1235
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
984
1236
|
readonly items: {
|
|
985
1237
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
986
1238
|
};
|
|
987
1239
|
};
|
|
1240
|
+
readonly variants: {
|
|
1241
|
+
readonly type: "array";
|
|
1242
|
+
readonly description: "Strategy level variants";
|
|
1243
|
+
readonly items: {
|
|
1244
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
988
1247
|
readonly parameters: {
|
|
989
1248
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
990
1249
|
};
|
|
@@ -1038,14 +1297,119 @@ export declare const stateSchema: {
|
|
|
1038
1297
|
readonly parametersSchema: {
|
|
1039
1298
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1040
1299
|
readonly type: "object";
|
|
1300
|
+
readonly description: "A list of parameters for a strategy";
|
|
1041
1301
|
readonly additionalProperties: {
|
|
1042
1302
|
readonly type: "string";
|
|
1043
1303
|
};
|
|
1044
1304
|
readonly components: {};
|
|
1045
1305
|
};
|
|
1306
|
+
readonly strategyVariantSchema: {
|
|
1307
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1308
|
+
readonly type: "object";
|
|
1309
|
+
readonly additionalProperties: false;
|
|
1310
|
+
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.";
|
|
1311
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1312
|
+
readonly properties: {
|
|
1313
|
+
readonly name: {
|
|
1314
|
+
readonly type: "string";
|
|
1315
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1316
|
+
readonly example: "blue_group";
|
|
1317
|
+
};
|
|
1318
|
+
readonly weight: {
|
|
1319
|
+
readonly type: "integer";
|
|
1320
|
+
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";
|
|
1321
|
+
readonly minimum: 0;
|
|
1322
|
+
readonly maximum: 1000;
|
|
1323
|
+
};
|
|
1324
|
+
readonly weightType: {
|
|
1325
|
+
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).";
|
|
1326
|
+
readonly type: "string";
|
|
1327
|
+
readonly example: "fix";
|
|
1328
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1329
|
+
};
|
|
1330
|
+
readonly stickiness: {
|
|
1331
|
+
readonly type: "string";
|
|
1332
|
+
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";
|
|
1333
|
+
readonly example: "custom.context.field";
|
|
1334
|
+
};
|
|
1335
|
+
readonly payload: {
|
|
1336
|
+
readonly type: "object";
|
|
1337
|
+
readonly required: readonly ["type", "value"];
|
|
1338
|
+
readonly description: "Extra data configured for this variant";
|
|
1339
|
+
readonly properties: {
|
|
1340
|
+
readonly type: {
|
|
1341
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1342
|
+
readonly type: "string";
|
|
1343
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1344
|
+
};
|
|
1345
|
+
readonly value: {
|
|
1346
|
+
readonly description: "The actual value of payload";
|
|
1347
|
+
readonly type: "string";
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
readonly example: {
|
|
1351
|
+
readonly type: "json";
|
|
1352
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1353
|
+
};
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
readonly components: {};
|
|
1357
|
+
};
|
|
1046
1358
|
};
|
|
1047
1359
|
};
|
|
1048
1360
|
};
|
|
1361
|
+
readonly strategyVariantSchema: {
|
|
1362
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1363
|
+
readonly type: "object";
|
|
1364
|
+
readonly additionalProperties: false;
|
|
1365
|
+
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.";
|
|
1366
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1367
|
+
readonly properties: {
|
|
1368
|
+
readonly name: {
|
|
1369
|
+
readonly type: "string";
|
|
1370
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1371
|
+
readonly example: "blue_group";
|
|
1372
|
+
};
|
|
1373
|
+
readonly weight: {
|
|
1374
|
+
readonly type: "integer";
|
|
1375
|
+
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";
|
|
1376
|
+
readonly minimum: 0;
|
|
1377
|
+
readonly maximum: 1000;
|
|
1378
|
+
};
|
|
1379
|
+
readonly weightType: {
|
|
1380
|
+
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).";
|
|
1381
|
+
readonly type: "string";
|
|
1382
|
+
readonly example: "fix";
|
|
1383
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1384
|
+
};
|
|
1385
|
+
readonly stickiness: {
|
|
1386
|
+
readonly type: "string";
|
|
1387
|
+
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";
|
|
1388
|
+
readonly example: "custom.context.field";
|
|
1389
|
+
};
|
|
1390
|
+
readonly payload: {
|
|
1391
|
+
readonly type: "object";
|
|
1392
|
+
readonly required: readonly ["type", "value"];
|
|
1393
|
+
readonly description: "Extra data configured for this variant";
|
|
1394
|
+
readonly properties: {
|
|
1395
|
+
readonly type: {
|
|
1396
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1397
|
+
readonly type: "string";
|
|
1398
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1399
|
+
};
|
|
1400
|
+
readonly value: {
|
|
1401
|
+
readonly description: "The actual value of payload";
|
|
1402
|
+
readonly type: "string";
|
|
1403
|
+
};
|
|
1404
|
+
};
|
|
1405
|
+
readonly example: {
|
|
1406
|
+
readonly type: "json";
|
|
1407
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
readonly components: {};
|
|
1412
|
+
};
|
|
1049
1413
|
readonly featureEnvironmentSchema: {
|
|
1050
1414
|
readonly $id: "#/components/schemas/featureEnvironmentSchema";
|
|
1051
1415
|
readonly type: "object";
|
|
@@ -1061,9 +1425,12 @@ export declare const stateSchema: {
|
|
|
1061
1425
|
readonly featureName: {
|
|
1062
1426
|
readonly type: "string";
|
|
1063
1427
|
readonly example: "disable-comments";
|
|
1428
|
+
readonly description: "The name of the feature";
|
|
1064
1429
|
};
|
|
1065
1430
|
readonly environment: {
|
|
1066
1431
|
readonly type: "string";
|
|
1432
|
+
readonly example: "development";
|
|
1433
|
+
readonly description: "The name of the environment";
|
|
1067
1434
|
};
|
|
1068
1435
|
readonly type: {
|
|
1069
1436
|
readonly type: "string";
|
|
@@ -1082,6 +1449,7 @@ export declare const stateSchema: {
|
|
|
1082
1449
|
};
|
|
1083
1450
|
readonly variantCount: {
|
|
1084
1451
|
readonly type: "number";
|
|
1452
|
+
readonly description: "The number of defined variants";
|
|
1085
1453
|
};
|
|
1086
1454
|
readonly strategies: {
|
|
1087
1455
|
readonly type: "array";
|
|
@@ -1147,6 +1515,7 @@ export declare const stateSchema: {
|
|
|
1147
1515
|
readonly parametersSchema: {
|
|
1148
1516
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1149
1517
|
readonly type: "object";
|
|
1518
|
+
readonly description: "A list of parameters for a strategy";
|
|
1150
1519
|
readonly additionalProperties: {
|
|
1151
1520
|
readonly type: "string";
|
|
1152
1521
|
};
|
|
@@ -1201,11 +1570,18 @@ export declare const stateSchema: {
|
|
|
1201
1570
|
};
|
|
1202
1571
|
readonly constraints: {
|
|
1203
1572
|
readonly type: "array";
|
|
1204
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1573
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
1205
1574
|
readonly items: {
|
|
1206
1575
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
1207
1576
|
};
|
|
1208
1577
|
};
|
|
1578
|
+
readonly variants: {
|
|
1579
|
+
readonly type: "array";
|
|
1580
|
+
readonly description: "Strategy level variants";
|
|
1581
|
+
readonly items: {
|
|
1582
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1583
|
+
};
|
|
1584
|
+
};
|
|
1209
1585
|
readonly parameters: {
|
|
1210
1586
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
1211
1587
|
};
|
|
@@ -1259,13 +1635,118 @@ export declare const stateSchema: {
|
|
|
1259
1635
|
readonly parametersSchema: {
|
|
1260
1636
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1261
1637
|
readonly type: "object";
|
|
1638
|
+
readonly description: "A list of parameters for a strategy";
|
|
1262
1639
|
readonly additionalProperties: {
|
|
1263
1640
|
readonly type: "string";
|
|
1264
1641
|
};
|
|
1265
1642
|
readonly components: {};
|
|
1266
1643
|
};
|
|
1644
|
+
readonly strategyVariantSchema: {
|
|
1645
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1646
|
+
readonly type: "object";
|
|
1647
|
+
readonly additionalProperties: false;
|
|
1648
|
+
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.";
|
|
1649
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1650
|
+
readonly properties: {
|
|
1651
|
+
readonly name: {
|
|
1652
|
+
readonly type: "string";
|
|
1653
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1654
|
+
readonly example: "blue_group";
|
|
1655
|
+
};
|
|
1656
|
+
readonly weight: {
|
|
1657
|
+
readonly type: "integer";
|
|
1658
|
+
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";
|
|
1659
|
+
readonly minimum: 0;
|
|
1660
|
+
readonly maximum: 1000;
|
|
1661
|
+
};
|
|
1662
|
+
readonly weightType: {
|
|
1663
|
+
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).";
|
|
1664
|
+
readonly type: "string";
|
|
1665
|
+
readonly example: "fix";
|
|
1666
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1667
|
+
};
|
|
1668
|
+
readonly stickiness: {
|
|
1669
|
+
readonly type: "string";
|
|
1670
|
+
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";
|
|
1671
|
+
readonly example: "custom.context.field";
|
|
1672
|
+
};
|
|
1673
|
+
readonly payload: {
|
|
1674
|
+
readonly type: "object";
|
|
1675
|
+
readonly required: readonly ["type", "value"];
|
|
1676
|
+
readonly description: "Extra data configured for this variant";
|
|
1677
|
+
readonly properties: {
|
|
1678
|
+
readonly type: {
|
|
1679
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1680
|
+
readonly type: "string";
|
|
1681
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1682
|
+
};
|
|
1683
|
+
readonly value: {
|
|
1684
|
+
readonly description: "The actual value of payload";
|
|
1685
|
+
readonly type: "string";
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
readonly example: {
|
|
1689
|
+
readonly type: "json";
|
|
1690
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1694
|
+
readonly components: {};
|
|
1695
|
+
};
|
|
1696
|
+
};
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
readonly strategyVariantSchema: {
|
|
1700
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1701
|
+
readonly type: "object";
|
|
1702
|
+
readonly additionalProperties: false;
|
|
1703
|
+
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.";
|
|
1704
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1705
|
+
readonly properties: {
|
|
1706
|
+
readonly name: {
|
|
1707
|
+
readonly type: "string";
|
|
1708
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1709
|
+
readonly example: "blue_group";
|
|
1710
|
+
};
|
|
1711
|
+
readonly weight: {
|
|
1712
|
+
readonly type: "integer";
|
|
1713
|
+
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";
|
|
1714
|
+
readonly minimum: 0;
|
|
1715
|
+
readonly maximum: 1000;
|
|
1716
|
+
};
|
|
1717
|
+
readonly weightType: {
|
|
1718
|
+
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).";
|
|
1719
|
+
readonly type: "string";
|
|
1720
|
+
readonly example: "fix";
|
|
1721
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1722
|
+
};
|
|
1723
|
+
readonly stickiness: {
|
|
1724
|
+
readonly type: "string";
|
|
1725
|
+
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";
|
|
1726
|
+
readonly example: "custom.context.field";
|
|
1727
|
+
};
|
|
1728
|
+
readonly payload: {
|
|
1729
|
+
readonly type: "object";
|
|
1730
|
+
readonly required: readonly ["type", "value"];
|
|
1731
|
+
readonly description: "Extra data configured for this variant";
|
|
1732
|
+
readonly properties: {
|
|
1733
|
+
readonly type: {
|
|
1734
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1735
|
+
readonly type: "string";
|
|
1736
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1737
|
+
};
|
|
1738
|
+
readonly value: {
|
|
1739
|
+
readonly description: "The actual value of payload";
|
|
1740
|
+
readonly type: "string";
|
|
1741
|
+
};
|
|
1742
|
+
};
|
|
1743
|
+
readonly example: {
|
|
1744
|
+
readonly type: "json";
|
|
1745
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1746
|
+
};
|
|
1267
1747
|
};
|
|
1268
1748
|
};
|
|
1749
|
+
readonly components: {};
|
|
1269
1750
|
};
|
|
1270
1751
|
readonly variantSchema: {
|
|
1271
1752
|
readonly $id: "#/components/schemas/variantSchema";
|
|
@@ -1288,7 +1769,8 @@ export declare const stateSchema: {
|
|
|
1288
1769
|
readonly weightType: {
|
|
1289
1770
|
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";
|
|
1290
1771
|
readonly type: "string";
|
|
1291
|
-
readonly example: "
|
|
1772
|
+
readonly example: "variable";
|
|
1773
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1292
1774
|
};
|
|
1293
1775
|
readonly stickiness: {
|
|
1294
1776
|
readonly type: "string";
|
|
@@ -1299,17 +1781,21 @@ export declare const stateSchema: {
|
|
|
1299
1781
|
readonly type: "object";
|
|
1300
1782
|
readonly required: readonly ["type", "value"];
|
|
1301
1783
|
readonly description: "Extra data configured for this variant";
|
|
1784
|
+
readonly additionalProperties: false;
|
|
1302
1785
|
readonly properties: {
|
|
1303
1786
|
readonly type: {
|
|
1787
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1304
1788
|
readonly type: "string";
|
|
1789
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1305
1790
|
};
|
|
1306
1791
|
readonly value: {
|
|
1792
|
+
readonly description: "The actual value of payload";
|
|
1307
1793
|
readonly type: "string";
|
|
1308
1794
|
};
|
|
1309
1795
|
};
|
|
1310
1796
|
readonly example: {
|
|
1311
1797
|
readonly type: "json";
|
|
1312
|
-
readonly value: "{color: red}";
|
|
1798
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1313
1799
|
};
|
|
1314
1800
|
};
|
|
1315
1801
|
readonly overrides: {
|
|
@@ -1414,6 +1900,29 @@ export declare const stateSchema: {
|
|
|
1414
1900
|
readonly additionalProperties: false;
|
|
1415
1901
|
readonly required: readonly ["id", "constraints"];
|
|
1416
1902
|
readonly properties: {
|
|
1903
|
+
readonly description: {
|
|
1904
|
+
readonly type: "string";
|
|
1905
|
+
readonly nullable: true;
|
|
1906
|
+
readonly description: "The description of the segment.";
|
|
1907
|
+
readonly example: "Segment A description";
|
|
1908
|
+
};
|
|
1909
|
+
readonly createdAt: {
|
|
1910
|
+
readonly type: "string";
|
|
1911
|
+
readonly format: "date-time";
|
|
1912
|
+
readonly description: "The time the segment was created as a RFC 3339-conformant timestamp.";
|
|
1913
|
+
readonly example: "2023-07-05T12:56:00.000Z";
|
|
1914
|
+
};
|
|
1915
|
+
readonly createdBy: {
|
|
1916
|
+
readonly type: "string";
|
|
1917
|
+
readonly description: "Which user created this segment";
|
|
1918
|
+
readonly example: "johndoe";
|
|
1919
|
+
};
|
|
1920
|
+
readonly project: {
|
|
1921
|
+
readonly type: "string";
|
|
1922
|
+
readonly nullable: true;
|
|
1923
|
+
readonly description: "The project the segment relates to, if applicable.";
|
|
1924
|
+
readonly example: "default";
|
|
1925
|
+
};
|
|
1417
1926
|
readonly id: {
|
|
1418
1927
|
readonly type: "number";
|
|
1419
1928
|
readonly description: "The segment's id.";
|
|
@@ -1423,12 +1932,6 @@ export declare const stateSchema: {
|
|
|
1423
1932
|
readonly description: "The name of the segment.";
|
|
1424
1933
|
readonly example: "segment A";
|
|
1425
1934
|
};
|
|
1426
|
-
readonly description: {
|
|
1427
|
-
readonly type: "string";
|
|
1428
|
-
readonly nullable: true;
|
|
1429
|
-
readonly description: "The description of the segment.";
|
|
1430
|
-
readonly example: "Segment A description";
|
|
1431
|
-
};
|
|
1432
1935
|
readonly constraints: {
|
|
1433
1936
|
readonly type: "array";
|
|
1434
1937
|
readonly description: "List of constraints that determine which users are part of the segment";
|
|
@@ -1516,7 +2019,7 @@ export declare const stateSchema: {
|
|
|
1516
2019
|
};
|
|
1517
2020
|
readonly name: {
|
|
1518
2021
|
readonly type: "string";
|
|
1519
|
-
readonly description: "The name
|
|
2022
|
+
readonly description: "The name (type) of the strategy";
|
|
1520
2023
|
readonly example: "flexibleRollout";
|
|
1521
2024
|
};
|
|
1522
2025
|
readonly displayName: {
|
|
@@ -1527,12 +2030,13 @@ export declare const stateSchema: {
|
|
|
1527
2030
|
};
|
|
1528
2031
|
readonly description: {
|
|
1529
2032
|
readonly type: "string";
|
|
1530
|
-
readonly
|
|
2033
|
+
readonly nullable: true;
|
|
2034
|
+
readonly description: "A short description of the strategy";
|
|
1531
2035
|
readonly example: "Gradual rollout to logged in users";
|
|
1532
2036
|
};
|
|
1533
2037
|
readonly editable: {
|
|
1534
2038
|
readonly type: "boolean";
|
|
1535
|
-
readonly description: "
|
|
2039
|
+
readonly description: "Whether the strategy can be edited or not. Strategies bundled with Unleash cannot be edited.";
|
|
1536
2040
|
readonly example: true;
|
|
1537
2041
|
};
|
|
1538
2042
|
readonly deprecated: {
|