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
|
@@ -36,6 +36,12 @@ export declare const projectOverviewSchema: {
|
|
|
36
36
|
readonly example: "open";
|
|
37
37
|
readonly description: "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.";
|
|
38
38
|
};
|
|
39
|
+
readonly featureLimit: {
|
|
40
|
+
readonly type: "number";
|
|
41
|
+
readonly nullable: true;
|
|
42
|
+
readonly example: 100;
|
|
43
|
+
readonly description: "A limit on the number of features allowed in the project. Null if no limit.";
|
|
44
|
+
};
|
|
39
45
|
readonly members: {
|
|
40
46
|
readonly type: "number";
|
|
41
47
|
readonly example: 4;
|
|
@@ -178,10 +184,11 @@ export declare const projectOverviewSchema: {
|
|
|
178
184
|
readonly $id: "#/components/schemas/createFeatureStrategySchema";
|
|
179
185
|
readonly type: "object";
|
|
180
186
|
readonly required: readonly ["name"];
|
|
187
|
+
readonly description: "Create a strategy configuration in a feature";
|
|
181
188
|
readonly properties: {
|
|
182
189
|
readonly name: {
|
|
183
190
|
readonly type: "string";
|
|
184
|
-
readonly description: "The name
|
|
191
|
+
readonly description: "The name of the strategy type";
|
|
185
192
|
readonly example: "flexibleRollout";
|
|
186
193
|
};
|
|
187
194
|
readonly title: {
|
|
@@ -203,7 +210,7 @@ export declare const projectOverviewSchema: {
|
|
|
203
210
|
};
|
|
204
211
|
readonly constraints: {
|
|
205
212
|
readonly type: "array";
|
|
206
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
213
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
207
214
|
readonly example: readonly [{
|
|
208
215
|
readonly values: readonly ["1", "2"];
|
|
209
216
|
readonly inverted: false;
|
|
@@ -215,6 +222,13 @@ export declare const projectOverviewSchema: {
|
|
|
215
222
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
216
223
|
};
|
|
217
224
|
};
|
|
225
|
+
readonly variants: {
|
|
226
|
+
readonly type: "array";
|
|
227
|
+
readonly description: "Strategy level variants";
|
|
228
|
+
readonly items: {
|
|
229
|
+
readonly $ref: "#/components/schemas/createStrategyVariantSchema";
|
|
230
|
+
};
|
|
231
|
+
};
|
|
218
232
|
readonly parameters: {
|
|
219
233
|
readonly description: "An object containing the parameters for the strategy";
|
|
220
234
|
readonly example: {
|
|
@@ -282,14 +296,119 @@ export declare const projectOverviewSchema: {
|
|
|
282
296
|
readonly parametersSchema: {
|
|
283
297
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
284
298
|
readonly type: "object";
|
|
299
|
+
readonly description: "A list of parameters for a strategy";
|
|
285
300
|
readonly additionalProperties: {
|
|
286
301
|
readonly type: "string";
|
|
287
302
|
};
|
|
288
303
|
readonly components: {};
|
|
289
304
|
};
|
|
305
|
+
readonly createStrategyVariantSchema: {
|
|
306
|
+
readonly $id: "#/components/schemas/createStrategyVariantSchema";
|
|
307
|
+
readonly type: "object";
|
|
308
|
+
readonly additionalProperties: true;
|
|
309
|
+
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.";
|
|
310
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
311
|
+
readonly properties: {
|
|
312
|
+
readonly name: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
315
|
+
readonly example: "blue_group";
|
|
316
|
+
};
|
|
317
|
+
readonly weight: {
|
|
318
|
+
readonly type: "integer";
|
|
319
|
+
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";
|
|
320
|
+
readonly minimum: 0;
|
|
321
|
+
readonly maximum: 1000;
|
|
322
|
+
};
|
|
323
|
+
readonly weightType: {
|
|
324
|
+
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).";
|
|
325
|
+
readonly type: "string";
|
|
326
|
+
readonly example: "fix";
|
|
327
|
+
readonly enum: readonly ["variable", "fix"];
|
|
328
|
+
};
|
|
329
|
+
readonly stickiness: {
|
|
330
|
+
readonly type: "string";
|
|
331
|
+
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";
|
|
332
|
+
readonly example: "custom.context.field";
|
|
333
|
+
};
|
|
334
|
+
readonly payload: {
|
|
335
|
+
readonly type: "object";
|
|
336
|
+
readonly required: readonly ["type", "value"];
|
|
337
|
+
readonly description: "Extra data configured for this variant";
|
|
338
|
+
readonly properties: {
|
|
339
|
+
readonly type: {
|
|
340
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
341
|
+
readonly type: "string";
|
|
342
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
343
|
+
};
|
|
344
|
+
readonly value: {
|
|
345
|
+
readonly description: "The actual value of payload";
|
|
346
|
+
readonly type: "string";
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
readonly example: {
|
|
350
|
+
readonly type: "json";
|
|
351
|
+
readonly value: "{\"color\": \"red\"}";
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
readonly components: {};
|
|
356
|
+
};
|
|
290
357
|
};
|
|
291
358
|
};
|
|
292
359
|
};
|
|
360
|
+
readonly createStrategyVariantSchema: {
|
|
361
|
+
readonly $id: "#/components/schemas/createStrategyVariantSchema";
|
|
362
|
+
readonly type: "object";
|
|
363
|
+
readonly additionalProperties: true;
|
|
364
|
+
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.";
|
|
365
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
366
|
+
readonly properties: {
|
|
367
|
+
readonly name: {
|
|
368
|
+
readonly type: "string";
|
|
369
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
370
|
+
readonly example: "blue_group";
|
|
371
|
+
};
|
|
372
|
+
readonly weight: {
|
|
373
|
+
readonly type: "integer";
|
|
374
|
+
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";
|
|
375
|
+
readonly minimum: 0;
|
|
376
|
+
readonly maximum: 1000;
|
|
377
|
+
};
|
|
378
|
+
readonly weightType: {
|
|
379
|
+
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).";
|
|
380
|
+
readonly type: "string";
|
|
381
|
+
readonly example: "fix";
|
|
382
|
+
readonly enum: readonly ["variable", "fix"];
|
|
383
|
+
};
|
|
384
|
+
readonly stickiness: {
|
|
385
|
+
readonly type: "string";
|
|
386
|
+
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";
|
|
387
|
+
readonly example: "custom.context.field";
|
|
388
|
+
};
|
|
389
|
+
readonly payload: {
|
|
390
|
+
readonly type: "object";
|
|
391
|
+
readonly required: readonly ["type", "value"];
|
|
392
|
+
readonly description: "Extra data configured for this variant";
|
|
393
|
+
readonly properties: {
|
|
394
|
+
readonly type: {
|
|
395
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
398
|
+
};
|
|
399
|
+
readonly value: {
|
|
400
|
+
readonly description: "The actual value of payload";
|
|
401
|
+
readonly type: "string";
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
readonly example: {
|
|
405
|
+
readonly type: "json";
|
|
406
|
+
readonly value: "{\"color\": \"red\"}";
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
readonly components: {};
|
|
411
|
+
};
|
|
293
412
|
};
|
|
294
413
|
};
|
|
295
414
|
};
|
|
@@ -297,10 +416,11 @@ export declare const projectOverviewSchema: {
|
|
|
297
416
|
readonly $id: "#/components/schemas/createFeatureStrategySchema";
|
|
298
417
|
readonly type: "object";
|
|
299
418
|
readonly required: readonly ["name"];
|
|
419
|
+
readonly description: "Create a strategy configuration in a feature";
|
|
300
420
|
readonly properties: {
|
|
301
421
|
readonly name: {
|
|
302
422
|
readonly type: "string";
|
|
303
|
-
readonly description: "The name
|
|
423
|
+
readonly description: "The name of the strategy type";
|
|
304
424
|
readonly example: "flexibleRollout";
|
|
305
425
|
};
|
|
306
426
|
readonly title: {
|
|
@@ -322,7 +442,7 @@ export declare const projectOverviewSchema: {
|
|
|
322
442
|
};
|
|
323
443
|
readonly constraints: {
|
|
324
444
|
readonly type: "array";
|
|
325
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
445
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
326
446
|
readonly example: readonly [{
|
|
327
447
|
readonly values: readonly ["1", "2"];
|
|
328
448
|
readonly inverted: false;
|
|
@@ -334,6 +454,13 @@ export declare const projectOverviewSchema: {
|
|
|
334
454
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
335
455
|
};
|
|
336
456
|
};
|
|
457
|
+
readonly variants: {
|
|
458
|
+
readonly type: "array";
|
|
459
|
+
readonly description: "Strategy level variants";
|
|
460
|
+
readonly items: {
|
|
461
|
+
readonly $ref: "#/components/schemas/createStrategyVariantSchema";
|
|
462
|
+
};
|
|
463
|
+
};
|
|
337
464
|
readonly parameters: {
|
|
338
465
|
readonly description: "An object containing the parameters for the strategy";
|
|
339
466
|
readonly example: {
|
|
@@ -401,14 +528,119 @@ export declare const projectOverviewSchema: {
|
|
|
401
528
|
readonly parametersSchema: {
|
|
402
529
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
403
530
|
readonly type: "object";
|
|
531
|
+
readonly description: "A list of parameters for a strategy";
|
|
404
532
|
readonly additionalProperties: {
|
|
405
533
|
readonly type: "string";
|
|
406
534
|
};
|
|
407
535
|
readonly components: {};
|
|
408
536
|
};
|
|
537
|
+
readonly createStrategyVariantSchema: {
|
|
538
|
+
readonly $id: "#/components/schemas/createStrategyVariantSchema";
|
|
539
|
+
readonly type: "object";
|
|
540
|
+
readonly additionalProperties: true;
|
|
541
|
+
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.";
|
|
542
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
543
|
+
readonly properties: {
|
|
544
|
+
readonly name: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
547
|
+
readonly example: "blue_group";
|
|
548
|
+
};
|
|
549
|
+
readonly weight: {
|
|
550
|
+
readonly type: "integer";
|
|
551
|
+
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";
|
|
552
|
+
readonly minimum: 0;
|
|
553
|
+
readonly maximum: 1000;
|
|
554
|
+
};
|
|
555
|
+
readonly weightType: {
|
|
556
|
+
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).";
|
|
557
|
+
readonly type: "string";
|
|
558
|
+
readonly example: "fix";
|
|
559
|
+
readonly enum: readonly ["variable", "fix"];
|
|
560
|
+
};
|
|
561
|
+
readonly stickiness: {
|
|
562
|
+
readonly type: "string";
|
|
563
|
+
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";
|
|
564
|
+
readonly example: "custom.context.field";
|
|
565
|
+
};
|
|
566
|
+
readonly payload: {
|
|
567
|
+
readonly type: "object";
|
|
568
|
+
readonly required: readonly ["type", "value"];
|
|
569
|
+
readonly description: "Extra data configured for this variant";
|
|
570
|
+
readonly properties: {
|
|
571
|
+
readonly type: {
|
|
572
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
573
|
+
readonly type: "string";
|
|
574
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
575
|
+
};
|
|
576
|
+
readonly value: {
|
|
577
|
+
readonly description: "The actual value of payload";
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
readonly example: {
|
|
582
|
+
readonly type: "json";
|
|
583
|
+
readonly value: "{\"color\": \"red\"}";
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
readonly components: {};
|
|
588
|
+
};
|
|
409
589
|
};
|
|
410
590
|
};
|
|
411
591
|
};
|
|
592
|
+
readonly createStrategyVariantSchema: {
|
|
593
|
+
readonly $id: "#/components/schemas/createStrategyVariantSchema";
|
|
594
|
+
readonly type: "object";
|
|
595
|
+
readonly additionalProperties: true;
|
|
596
|
+
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.";
|
|
597
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
598
|
+
readonly properties: {
|
|
599
|
+
readonly name: {
|
|
600
|
+
readonly type: "string";
|
|
601
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
602
|
+
readonly example: "blue_group";
|
|
603
|
+
};
|
|
604
|
+
readonly weight: {
|
|
605
|
+
readonly type: "integer";
|
|
606
|
+
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";
|
|
607
|
+
readonly minimum: 0;
|
|
608
|
+
readonly maximum: 1000;
|
|
609
|
+
};
|
|
610
|
+
readonly weightType: {
|
|
611
|
+
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).";
|
|
612
|
+
readonly type: "string";
|
|
613
|
+
readonly example: "fix";
|
|
614
|
+
readonly enum: readonly ["variable", "fix"];
|
|
615
|
+
};
|
|
616
|
+
readonly stickiness: {
|
|
617
|
+
readonly type: "string";
|
|
618
|
+
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";
|
|
619
|
+
readonly example: "custom.context.field";
|
|
620
|
+
};
|
|
621
|
+
readonly payload: {
|
|
622
|
+
readonly type: "object";
|
|
623
|
+
readonly required: readonly ["type", "value"];
|
|
624
|
+
readonly description: "Extra data configured for this variant";
|
|
625
|
+
readonly properties: {
|
|
626
|
+
readonly type: {
|
|
627
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
628
|
+
readonly type: "string";
|
|
629
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
630
|
+
};
|
|
631
|
+
readonly value: {
|
|
632
|
+
readonly description: "The actual value of payload";
|
|
633
|
+
readonly type: "string";
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
readonly example: {
|
|
637
|
+
readonly type: "json";
|
|
638
|
+
readonly value: "{\"color\": \"red\"}";
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
readonly components: {};
|
|
643
|
+
};
|
|
412
644
|
readonly constraintSchema: {
|
|
413
645
|
readonly type: "object";
|
|
414
646
|
readonly required: readonly ["contextName", "operator"];
|
|
@@ -458,6 +690,7 @@ export declare const projectOverviewSchema: {
|
|
|
458
690
|
readonly type: "object";
|
|
459
691
|
readonly additionalProperties: false;
|
|
460
692
|
readonly required: readonly ["name"];
|
|
693
|
+
readonly description: "A feature toggle definition";
|
|
461
694
|
readonly properties: {
|
|
462
695
|
readonly name: {
|
|
463
696
|
readonly type: "string";
|
|
@@ -488,6 +721,7 @@ export declare const projectOverviewSchema: {
|
|
|
488
721
|
readonly enabled: {
|
|
489
722
|
readonly type: "boolean";
|
|
490
723
|
readonly example: true;
|
|
724
|
+
readonly description: "`true` if the feature is enabled, otherwise `false`.";
|
|
491
725
|
};
|
|
492
726
|
readonly stale: {
|
|
493
727
|
readonly type: "boolean";
|
|
@@ -509,18 +743,21 @@ export declare const projectOverviewSchema: {
|
|
|
509
743
|
readonly format: "date-time";
|
|
510
744
|
readonly nullable: true;
|
|
511
745
|
readonly example: "2023-01-28T15:21:39.975Z";
|
|
746
|
+
readonly description: "The date the feature was created";
|
|
512
747
|
};
|
|
513
748
|
readonly archivedAt: {
|
|
514
749
|
readonly type: "string";
|
|
515
750
|
readonly format: "date-time";
|
|
516
751
|
readonly nullable: true;
|
|
517
752
|
readonly example: "2023-01-29T15:21:39.975Z";
|
|
753
|
+
readonly description: "The date the feature was archived";
|
|
518
754
|
};
|
|
519
755
|
readonly lastSeenAt: {
|
|
520
756
|
readonly type: "string";
|
|
521
757
|
readonly format: "date-time";
|
|
522
758
|
readonly nullable: true;
|
|
523
759
|
readonly example: "2023-01-28T16:21:39.975Z";
|
|
760
|
+
readonly description: "The date when metrics where last collected for the feature";
|
|
524
761
|
};
|
|
525
762
|
readonly environments: {
|
|
526
763
|
readonly type: "array";
|
|
@@ -615,9 +852,12 @@ export declare const projectOverviewSchema: {
|
|
|
615
852
|
readonly featureName: {
|
|
616
853
|
readonly type: "string";
|
|
617
854
|
readonly example: "disable-comments";
|
|
855
|
+
readonly description: "The name of the feature";
|
|
618
856
|
};
|
|
619
857
|
readonly environment: {
|
|
620
858
|
readonly type: "string";
|
|
859
|
+
readonly example: "development";
|
|
860
|
+
readonly description: "The name of the environment";
|
|
621
861
|
};
|
|
622
862
|
readonly type: {
|
|
623
863
|
readonly type: "string";
|
|
@@ -636,6 +876,7 @@ export declare const projectOverviewSchema: {
|
|
|
636
876
|
};
|
|
637
877
|
readonly variantCount: {
|
|
638
878
|
readonly type: "number";
|
|
879
|
+
readonly description: "The number of defined variants";
|
|
639
880
|
};
|
|
640
881
|
readonly strategies: {
|
|
641
882
|
readonly type: "array";
|
|
@@ -701,6 +942,7 @@ export declare const projectOverviewSchema: {
|
|
|
701
942
|
readonly parametersSchema: {
|
|
702
943
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
703
944
|
readonly type: "object";
|
|
945
|
+
readonly description: "A list of parameters for a strategy";
|
|
704
946
|
readonly additionalProperties: {
|
|
705
947
|
readonly type: "string";
|
|
706
948
|
};
|
|
@@ -755,11 +997,18 @@ export declare const projectOverviewSchema: {
|
|
|
755
997
|
};
|
|
756
998
|
readonly constraints: {
|
|
757
999
|
readonly type: "array";
|
|
758
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1000
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
759
1001
|
readonly items: {
|
|
760
1002
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
761
1003
|
};
|
|
762
1004
|
};
|
|
1005
|
+
readonly variants: {
|
|
1006
|
+
readonly type: "array";
|
|
1007
|
+
readonly description: "Strategy level variants";
|
|
1008
|
+
readonly items: {
|
|
1009
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
763
1012
|
readonly parameters: {
|
|
764
1013
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
765
1014
|
};
|
|
@@ -813,14 +1062,119 @@ export declare const projectOverviewSchema: {
|
|
|
813
1062
|
readonly parametersSchema: {
|
|
814
1063
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
815
1064
|
readonly type: "object";
|
|
1065
|
+
readonly description: "A list of parameters for a strategy";
|
|
816
1066
|
readonly additionalProperties: {
|
|
817
1067
|
readonly type: "string";
|
|
818
1068
|
};
|
|
819
1069
|
readonly components: {};
|
|
820
1070
|
};
|
|
1071
|
+
readonly strategyVariantSchema: {
|
|
1072
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1073
|
+
readonly type: "object";
|
|
1074
|
+
readonly additionalProperties: false;
|
|
1075
|
+
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.";
|
|
1076
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1077
|
+
readonly properties: {
|
|
1078
|
+
readonly name: {
|
|
1079
|
+
readonly type: "string";
|
|
1080
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1081
|
+
readonly example: "blue_group";
|
|
1082
|
+
};
|
|
1083
|
+
readonly weight: {
|
|
1084
|
+
readonly type: "integer";
|
|
1085
|
+
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";
|
|
1086
|
+
readonly minimum: 0;
|
|
1087
|
+
readonly maximum: 1000;
|
|
1088
|
+
};
|
|
1089
|
+
readonly weightType: {
|
|
1090
|
+
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).";
|
|
1091
|
+
readonly type: "string";
|
|
1092
|
+
readonly example: "fix";
|
|
1093
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1094
|
+
};
|
|
1095
|
+
readonly stickiness: {
|
|
1096
|
+
readonly type: "string";
|
|
1097
|
+
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";
|
|
1098
|
+
readonly example: "custom.context.field";
|
|
1099
|
+
};
|
|
1100
|
+
readonly payload: {
|
|
1101
|
+
readonly type: "object";
|
|
1102
|
+
readonly required: readonly ["type", "value"];
|
|
1103
|
+
readonly description: "Extra data configured for this variant";
|
|
1104
|
+
readonly properties: {
|
|
1105
|
+
readonly type: {
|
|
1106
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1107
|
+
readonly type: "string";
|
|
1108
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1109
|
+
};
|
|
1110
|
+
readonly value: {
|
|
1111
|
+
readonly description: "The actual value of payload";
|
|
1112
|
+
readonly type: "string";
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
readonly example: {
|
|
1116
|
+
readonly type: "json";
|
|
1117
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
readonly components: {};
|
|
1122
|
+
};
|
|
821
1123
|
};
|
|
822
1124
|
};
|
|
823
1125
|
};
|
|
1126
|
+
readonly strategyVariantSchema: {
|
|
1127
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1128
|
+
readonly type: "object";
|
|
1129
|
+
readonly additionalProperties: false;
|
|
1130
|
+
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.";
|
|
1131
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1132
|
+
readonly properties: {
|
|
1133
|
+
readonly name: {
|
|
1134
|
+
readonly type: "string";
|
|
1135
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1136
|
+
readonly example: "blue_group";
|
|
1137
|
+
};
|
|
1138
|
+
readonly weight: {
|
|
1139
|
+
readonly type: "integer";
|
|
1140
|
+
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";
|
|
1141
|
+
readonly minimum: 0;
|
|
1142
|
+
readonly maximum: 1000;
|
|
1143
|
+
};
|
|
1144
|
+
readonly weightType: {
|
|
1145
|
+
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).";
|
|
1146
|
+
readonly type: "string";
|
|
1147
|
+
readonly example: "fix";
|
|
1148
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1149
|
+
};
|
|
1150
|
+
readonly stickiness: {
|
|
1151
|
+
readonly type: "string";
|
|
1152
|
+
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";
|
|
1153
|
+
readonly example: "custom.context.field";
|
|
1154
|
+
};
|
|
1155
|
+
readonly payload: {
|
|
1156
|
+
readonly type: "object";
|
|
1157
|
+
readonly required: readonly ["type", "value"];
|
|
1158
|
+
readonly description: "Extra data configured for this variant";
|
|
1159
|
+
readonly properties: {
|
|
1160
|
+
readonly type: {
|
|
1161
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1162
|
+
readonly type: "string";
|
|
1163
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1164
|
+
};
|
|
1165
|
+
readonly value: {
|
|
1166
|
+
readonly description: "The actual value of payload";
|
|
1167
|
+
readonly type: "string";
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
readonly example: {
|
|
1171
|
+
readonly type: "json";
|
|
1172
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
readonly components: {};
|
|
1177
|
+
};
|
|
824
1178
|
readonly variantSchema: {
|
|
825
1179
|
readonly $id: "#/components/schemas/variantSchema";
|
|
826
1180
|
readonly type: "object";
|
|
@@ -842,7 +1196,8 @@ export declare const projectOverviewSchema: {
|
|
|
842
1196
|
readonly weightType: {
|
|
843
1197
|
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";
|
|
844
1198
|
readonly type: "string";
|
|
845
|
-
readonly example: "
|
|
1199
|
+
readonly example: "variable";
|
|
1200
|
+
readonly enum: readonly ["variable", "fix"];
|
|
846
1201
|
};
|
|
847
1202
|
readonly stickiness: {
|
|
848
1203
|
readonly type: "string";
|
|
@@ -853,17 +1208,21 @@ export declare const projectOverviewSchema: {
|
|
|
853
1208
|
readonly type: "object";
|
|
854
1209
|
readonly required: readonly ["type", "value"];
|
|
855
1210
|
readonly description: "Extra data configured for this variant";
|
|
1211
|
+
readonly additionalProperties: false;
|
|
856
1212
|
readonly properties: {
|
|
857
1213
|
readonly type: {
|
|
1214
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
858
1215
|
readonly type: "string";
|
|
1216
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
859
1217
|
};
|
|
860
1218
|
readonly value: {
|
|
1219
|
+
readonly description: "The actual value of payload";
|
|
861
1220
|
readonly type: "string";
|
|
862
1221
|
};
|
|
863
1222
|
};
|
|
864
1223
|
readonly example: {
|
|
865
1224
|
readonly type: "json";
|
|
866
|
-
readonly value: "{color: red}";
|
|
1225
|
+
readonly value: "{\"color\": \"red\"}";
|
|
867
1226
|
};
|
|
868
1227
|
};
|
|
869
1228
|
readonly overrides: {
|
|
@@ -954,11 +1313,18 @@ export declare const projectOverviewSchema: {
|
|
|
954
1313
|
};
|
|
955
1314
|
readonly constraints: {
|
|
956
1315
|
readonly type: "array";
|
|
957
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1316
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
958
1317
|
readonly items: {
|
|
959
1318
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
960
1319
|
};
|
|
961
1320
|
};
|
|
1321
|
+
readonly variants: {
|
|
1322
|
+
readonly type: "array";
|
|
1323
|
+
readonly description: "Strategy level variants";
|
|
1324
|
+
readonly items: {
|
|
1325
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
962
1328
|
readonly parameters: {
|
|
963
1329
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
964
1330
|
};
|
|
@@ -1012,14 +1378,119 @@ export declare const projectOverviewSchema: {
|
|
|
1012
1378
|
readonly parametersSchema: {
|
|
1013
1379
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1014
1380
|
readonly type: "object";
|
|
1381
|
+
readonly description: "A list of parameters for a strategy";
|
|
1015
1382
|
readonly additionalProperties: {
|
|
1016
1383
|
readonly type: "string";
|
|
1017
1384
|
};
|
|
1018
1385
|
readonly components: {};
|
|
1019
1386
|
};
|
|
1387
|
+
readonly strategyVariantSchema: {
|
|
1388
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1389
|
+
readonly type: "object";
|
|
1390
|
+
readonly additionalProperties: false;
|
|
1391
|
+
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.";
|
|
1392
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1393
|
+
readonly properties: {
|
|
1394
|
+
readonly name: {
|
|
1395
|
+
readonly type: "string";
|
|
1396
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1397
|
+
readonly example: "blue_group";
|
|
1398
|
+
};
|
|
1399
|
+
readonly weight: {
|
|
1400
|
+
readonly type: "integer";
|
|
1401
|
+
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";
|
|
1402
|
+
readonly minimum: 0;
|
|
1403
|
+
readonly maximum: 1000;
|
|
1404
|
+
};
|
|
1405
|
+
readonly weightType: {
|
|
1406
|
+
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).";
|
|
1407
|
+
readonly type: "string";
|
|
1408
|
+
readonly example: "fix";
|
|
1409
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1410
|
+
};
|
|
1411
|
+
readonly stickiness: {
|
|
1412
|
+
readonly type: "string";
|
|
1413
|
+
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";
|
|
1414
|
+
readonly example: "custom.context.field";
|
|
1415
|
+
};
|
|
1416
|
+
readonly payload: {
|
|
1417
|
+
readonly type: "object";
|
|
1418
|
+
readonly required: readonly ["type", "value"];
|
|
1419
|
+
readonly description: "Extra data configured for this variant";
|
|
1420
|
+
readonly properties: {
|
|
1421
|
+
readonly type: {
|
|
1422
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1423
|
+
readonly type: "string";
|
|
1424
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1425
|
+
};
|
|
1426
|
+
readonly value: {
|
|
1427
|
+
readonly description: "The actual value of payload";
|
|
1428
|
+
readonly type: "string";
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
readonly example: {
|
|
1432
|
+
readonly type: "json";
|
|
1433
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
readonly components: {};
|
|
1438
|
+
};
|
|
1020
1439
|
};
|
|
1021
1440
|
};
|
|
1022
1441
|
};
|
|
1442
|
+
readonly strategyVariantSchema: {
|
|
1443
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1444
|
+
readonly type: "object";
|
|
1445
|
+
readonly additionalProperties: false;
|
|
1446
|
+
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.";
|
|
1447
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1448
|
+
readonly properties: {
|
|
1449
|
+
readonly name: {
|
|
1450
|
+
readonly type: "string";
|
|
1451
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1452
|
+
readonly example: "blue_group";
|
|
1453
|
+
};
|
|
1454
|
+
readonly weight: {
|
|
1455
|
+
readonly type: "integer";
|
|
1456
|
+
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";
|
|
1457
|
+
readonly minimum: 0;
|
|
1458
|
+
readonly maximum: 1000;
|
|
1459
|
+
};
|
|
1460
|
+
readonly weightType: {
|
|
1461
|
+
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).";
|
|
1462
|
+
readonly type: "string";
|
|
1463
|
+
readonly example: "fix";
|
|
1464
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1465
|
+
};
|
|
1466
|
+
readonly stickiness: {
|
|
1467
|
+
readonly type: "string";
|
|
1468
|
+
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";
|
|
1469
|
+
readonly example: "custom.context.field";
|
|
1470
|
+
};
|
|
1471
|
+
readonly payload: {
|
|
1472
|
+
readonly type: "object";
|
|
1473
|
+
readonly required: readonly ["type", "value"];
|
|
1474
|
+
readonly description: "Extra data configured for this variant";
|
|
1475
|
+
readonly properties: {
|
|
1476
|
+
readonly type: {
|
|
1477
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1478
|
+
readonly type: "string";
|
|
1479
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1480
|
+
};
|
|
1481
|
+
readonly value: {
|
|
1482
|
+
readonly description: "The actual value of payload";
|
|
1483
|
+
readonly type: "string";
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
readonly example: {
|
|
1487
|
+
readonly type: "json";
|
|
1488
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
readonly components: {};
|
|
1493
|
+
};
|
|
1023
1494
|
readonly overrideSchema: {
|
|
1024
1495
|
readonly $id: "#/components/schemas/overrideSchema";
|
|
1025
1496
|
readonly type: "object";
|
|
@@ -1046,6 +1517,7 @@ export declare const projectOverviewSchema: {
|
|
|
1046
1517
|
readonly parametersSchema: {
|
|
1047
1518
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1048
1519
|
readonly type: "object";
|
|
1520
|
+
readonly description: "A list of parameters for a strategy";
|
|
1049
1521
|
readonly additionalProperties: {
|
|
1050
1522
|
readonly type: "string";
|
|
1051
1523
|
};
|
|
@@ -1072,7 +1544,8 @@ export declare const projectOverviewSchema: {
|
|
|
1072
1544
|
readonly weightType: {
|
|
1073
1545
|
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";
|
|
1074
1546
|
readonly type: "string";
|
|
1075
|
-
readonly example: "
|
|
1547
|
+
readonly example: "variable";
|
|
1548
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1076
1549
|
};
|
|
1077
1550
|
readonly stickiness: {
|
|
1078
1551
|
readonly type: "string";
|
|
@@ -1083,17 +1556,21 @@ export declare const projectOverviewSchema: {
|
|
|
1083
1556
|
readonly type: "object";
|
|
1084
1557
|
readonly required: readonly ["type", "value"];
|
|
1085
1558
|
readonly description: "Extra data configured for this variant";
|
|
1559
|
+
readonly additionalProperties: false;
|
|
1086
1560
|
readonly properties: {
|
|
1087
1561
|
readonly type: {
|
|
1562
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1088
1563
|
readonly type: "string";
|
|
1564
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1089
1565
|
};
|
|
1090
1566
|
readonly value: {
|
|
1567
|
+
readonly description: "The actual value of payload";
|
|
1091
1568
|
readonly type: "string";
|
|
1092
1569
|
};
|
|
1093
1570
|
};
|
|
1094
1571
|
readonly example: {
|
|
1095
1572
|
readonly type: "json";
|
|
1096
|
-
readonly value: "{color: red}";
|
|
1573
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1097
1574
|
};
|
|
1098
1575
|
};
|
|
1099
1576
|
readonly overrides: {
|
|
@@ -1175,9 +1652,12 @@ export declare const projectOverviewSchema: {
|
|
|
1175
1652
|
readonly featureName: {
|
|
1176
1653
|
readonly type: "string";
|
|
1177
1654
|
readonly example: "disable-comments";
|
|
1655
|
+
readonly description: "The name of the feature";
|
|
1178
1656
|
};
|
|
1179
1657
|
readonly environment: {
|
|
1180
1658
|
readonly type: "string";
|
|
1659
|
+
readonly example: "development";
|
|
1660
|
+
readonly description: "The name of the environment";
|
|
1181
1661
|
};
|
|
1182
1662
|
readonly type: {
|
|
1183
1663
|
readonly type: "string";
|
|
@@ -1196,6 +1676,7 @@ export declare const projectOverviewSchema: {
|
|
|
1196
1676
|
};
|
|
1197
1677
|
readonly variantCount: {
|
|
1198
1678
|
readonly type: "number";
|
|
1679
|
+
readonly description: "The number of defined variants";
|
|
1199
1680
|
};
|
|
1200
1681
|
readonly strategies: {
|
|
1201
1682
|
readonly type: "array";
|
|
@@ -1261,6 +1742,7 @@ export declare const projectOverviewSchema: {
|
|
|
1261
1742
|
readonly parametersSchema: {
|
|
1262
1743
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1263
1744
|
readonly type: "object";
|
|
1745
|
+
readonly description: "A list of parameters for a strategy";
|
|
1264
1746
|
readonly additionalProperties: {
|
|
1265
1747
|
readonly type: "string";
|
|
1266
1748
|
};
|
|
@@ -1315,11 +1797,18 @@ export declare const projectOverviewSchema: {
|
|
|
1315
1797
|
};
|
|
1316
1798
|
readonly constraints: {
|
|
1317
1799
|
readonly type: "array";
|
|
1318
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1800
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
1319
1801
|
readonly items: {
|
|
1320
1802
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
1321
1803
|
};
|
|
1322
1804
|
};
|
|
1805
|
+
readonly variants: {
|
|
1806
|
+
readonly type: "array";
|
|
1807
|
+
readonly description: "Strategy level variants";
|
|
1808
|
+
readonly items: {
|
|
1809
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1810
|
+
};
|
|
1811
|
+
};
|
|
1323
1812
|
readonly parameters: {
|
|
1324
1813
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
1325
1814
|
};
|
|
@@ -1373,14 +1862,119 @@ export declare const projectOverviewSchema: {
|
|
|
1373
1862
|
readonly parametersSchema: {
|
|
1374
1863
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1375
1864
|
readonly type: "object";
|
|
1865
|
+
readonly description: "A list of parameters for a strategy";
|
|
1376
1866
|
readonly additionalProperties: {
|
|
1377
1867
|
readonly type: "string";
|
|
1378
1868
|
};
|
|
1379
1869
|
readonly components: {};
|
|
1380
1870
|
};
|
|
1871
|
+
readonly strategyVariantSchema: {
|
|
1872
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1873
|
+
readonly type: "object";
|
|
1874
|
+
readonly additionalProperties: false;
|
|
1875
|
+
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.";
|
|
1876
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1877
|
+
readonly properties: {
|
|
1878
|
+
readonly name: {
|
|
1879
|
+
readonly type: "string";
|
|
1880
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1881
|
+
readonly example: "blue_group";
|
|
1882
|
+
};
|
|
1883
|
+
readonly weight: {
|
|
1884
|
+
readonly type: "integer";
|
|
1885
|
+
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";
|
|
1886
|
+
readonly minimum: 0;
|
|
1887
|
+
readonly maximum: 1000;
|
|
1888
|
+
};
|
|
1889
|
+
readonly weightType: {
|
|
1890
|
+
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).";
|
|
1891
|
+
readonly type: "string";
|
|
1892
|
+
readonly example: "fix";
|
|
1893
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1894
|
+
};
|
|
1895
|
+
readonly stickiness: {
|
|
1896
|
+
readonly type: "string";
|
|
1897
|
+
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";
|
|
1898
|
+
readonly example: "custom.context.field";
|
|
1899
|
+
};
|
|
1900
|
+
readonly payload: {
|
|
1901
|
+
readonly type: "object";
|
|
1902
|
+
readonly required: readonly ["type", "value"];
|
|
1903
|
+
readonly description: "Extra data configured for this variant";
|
|
1904
|
+
readonly properties: {
|
|
1905
|
+
readonly type: {
|
|
1906
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1907
|
+
readonly type: "string";
|
|
1908
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1909
|
+
};
|
|
1910
|
+
readonly value: {
|
|
1911
|
+
readonly description: "The actual value of payload";
|
|
1912
|
+
readonly type: "string";
|
|
1913
|
+
};
|
|
1914
|
+
};
|
|
1915
|
+
readonly example: {
|
|
1916
|
+
readonly type: "json";
|
|
1917
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
readonly components: {};
|
|
1922
|
+
};
|
|
1381
1923
|
};
|
|
1382
1924
|
};
|
|
1383
1925
|
};
|
|
1926
|
+
readonly strategyVariantSchema: {
|
|
1927
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1928
|
+
readonly type: "object";
|
|
1929
|
+
readonly additionalProperties: false;
|
|
1930
|
+
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.";
|
|
1931
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1932
|
+
readonly properties: {
|
|
1933
|
+
readonly name: {
|
|
1934
|
+
readonly type: "string";
|
|
1935
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1936
|
+
readonly example: "blue_group";
|
|
1937
|
+
};
|
|
1938
|
+
readonly weight: {
|
|
1939
|
+
readonly type: "integer";
|
|
1940
|
+
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";
|
|
1941
|
+
readonly minimum: 0;
|
|
1942
|
+
readonly maximum: 1000;
|
|
1943
|
+
};
|
|
1944
|
+
readonly weightType: {
|
|
1945
|
+
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).";
|
|
1946
|
+
readonly type: "string";
|
|
1947
|
+
readonly example: "fix";
|
|
1948
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1949
|
+
};
|
|
1950
|
+
readonly stickiness: {
|
|
1951
|
+
readonly type: "string";
|
|
1952
|
+
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";
|
|
1953
|
+
readonly example: "custom.context.field";
|
|
1954
|
+
};
|
|
1955
|
+
readonly payload: {
|
|
1956
|
+
readonly type: "object";
|
|
1957
|
+
readonly required: readonly ["type", "value"];
|
|
1958
|
+
readonly description: "Extra data configured for this variant";
|
|
1959
|
+
readonly properties: {
|
|
1960
|
+
readonly type: {
|
|
1961
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1962
|
+
readonly type: "string";
|
|
1963
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1964
|
+
};
|
|
1965
|
+
readonly value: {
|
|
1966
|
+
readonly description: "The actual value of payload";
|
|
1967
|
+
readonly type: "string";
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
readonly example: {
|
|
1971
|
+
readonly type: "json";
|
|
1972
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1973
|
+
};
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
readonly components: {};
|
|
1977
|
+
};
|
|
1384
1978
|
readonly variantSchema: {
|
|
1385
1979
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1386
1980
|
readonly type: "object";
|
|
@@ -1402,7 +1996,8 @@ export declare const projectOverviewSchema: {
|
|
|
1402
1996
|
readonly weightType: {
|
|
1403
1997
|
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";
|
|
1404
1998
|
readonly type: "string";
|
|
1405
|
-
readonly example: "
|
|
1999
|
+
readonly example: "variable";
|
|
2000
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1406
2001
|
};
|
|
1407
2002
|
readonly stickiness: {
|
|
1408
2003
|
readonly type: "string";
|
|
@@ -1413,17 +2008,21 @@ export declare const projectOverviewSchema: {
|
|
|
1413
2008
|
readonly type: "object";
|
|
1414
2009
|
readonly required: readonly ["type", "value"];
|
|
1415
2010
|
readonly description: "Extra data configured for this variant";
|
|
2011
|
+
readonly additionalProperties: false;
|
|
1416
2012
|
readonly properties: {
|
|
1417
2013
|
readonly type: {
|
|
2014
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1418
2015
|
readonly type: "string";
|
|
2016
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1419
2017
|
};
|
|
1420
2018
|
readonly value: {
|
|
2019
|
+
readonly description: "The actual value of payload";
|
|
1421
2020
|
readonly type: "string";
|
|
1422
2021
|
};
|
|
1423
2022
|
};
|
|
1424
2023
|
readonly example: {
|
|
1425
2024
|
readonly type: "json";
|
|
1426
|
-
readonly value: "{color: red}";
|
|
2025
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1427
2026
|
};
|
|
1428
2027
|
};
|
|
1429
2028
|
readonly overrides: {
|
|
@@ -1491,6 +2090,7 @@ export declare const projectOverviewSchema: {
|
|
|
1491
2090
|
readonly parametersSchema: {
|
|
1492
2091
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1493
2092
|
readonly type: "object";
|
|
2093
|
+
readonly description: "A list of parameters for a strategy";
|
|
1494
2094
|
readonly additionalProperties: {
|
|
1495
2095
|
readonly type: "string";
|
|
1496
2096
|
};
|
|
@@ -1545,11 +2145,18 @@ export declare const projectOverviewSchema: {
|
|
|
1545
2145
|
};
|
|
1546
2146
|
readonly constraints: {
|
|
1547
2147
|
readonly type: "array";
|
|
1548
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
2148
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
1549
2149
|
readonly items: {
|
|
1550
2150
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
1551
2151
|
};
|
|
1552
2152
|
};
|
|
2153
|
+
readonly variants: {
|
|
2154
|
+
readonly type: "array";
|
|
2155
|
+
readonly description: "Strategy level variants";
|
|
2156
|
+
readonly items: {
|
|
2157
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
1553
2160
|
readonly parameters: {
|
|
1554
2161
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
1555
2162
|
};
|
|
@@ -1603,14 +2210,119 @@ export declare const projectOverviewSchema: {
|
|
|
1603
2210
|
readonly parametersSchema: {
|
|
1604
2211
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1605
2212
|
readonly type: "object";
|
|
2213
|
+
readonly description: "A list of parameters for a strategy";
|
|
1606
2214
|
readonly additionalProperties: {
|
|
1607
2215
|
readonly type: "string";
|
|
1608
2216
|
};
|
|
1609
2217
|
readonly components: {};
|
|
1610
2218
|
};
|
|
2219
|
+
readonly strategyVariantSchema: {
|
|
2220
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
2221
|
+
readonly type: "object";
|
|
2222
|
+
readonly additionalProperties: false;
|
|
2223
|
+
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.";
|
|
2224
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
2225
|
+
readonly properties: {
|
|
2226
|
+
readonly name: {
|
|
2227
|
+
readonly type: "string";
|
|
2228
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
2229
|
+
readonly example: "blue_group";
|
|
2230
|
+
};
|
|
2231
|
+
readonly weight: {
|
|
2232
|
+
readonly type: "integer";
|
|
2233
|
+
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";
|
|
2234
|
+
readonly minimum: 0;
|
|
2235
|
+
readonly maximum: 1000;
|
|
2236
|
+
};
|
|
2237
|
+
readonly weightType: {
|
|
2238
|
+
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).";
|
|
2239
|
+
readonly type: "string";
|
|
2240
|
+
readonly example: "fix";
|
|
2241
|
+
readonly enum: readonly ["variable", "fix"];
|
|
2242
|
+
};
|
|
2243
|
+
readonly stickiness: {
|
|
2244
|
+
readonly type: "string";
|
|
2245
|
+
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";
|
|
2246
|
+
readonly example: "custom.context.field";
|
|
2247
|
+
};
|
|
2248
|
+
readonly payload: {
|
|
2249
|
+
readonly type: "object";
|
|
2250
|
+
readonly required: readonly ["type", "value"];
|
|
2251
|
+
readonly description: "Extra data configured for this variant";
|
|
2252
|
+
readonly properties: {
|
|
2253
|
+
readonly type: {
|
|
2254
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2255
|
+
readonly type: "string";
|
|
2256
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
2257
|
+
};
|
|
2258
|
+
readonly value: {
|
|
2259
|
+
readonly description: "The actual value of payload";
|
|
2260
|
+
readonly type: "string";
|
|
2261
|
+
};
|
|
2262
|
+
};
|
|
2263
|
+
readonly example: {
|
|
2264
|
+
readonly type: "json";
|
|
2265
|
+
readonly value: "{\"color\": \"red\"}";
|
|
2266
|
+
};
|
|
2267
|
+
};
|
|
2268
|
+
};
|
|
2269
|
+
readonly components: {};
|
|
2270
|
+
};
|
|
1611
2271
|
};
|
|
1612
2272
|
};
|
|
1613
2273
|
};
|
|
2274
|
+
readonly strategyVariantSchema: {
|
|
2275
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
2276
|
+
readonly type: "object";
|
|
2277
|
+
readonly additionalProperties: false;
|
|
2278
|
+
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.";
|
|
2279
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
2280
|
+
readonly properties: {
|
|
2281
|
+
readonly name: {
|
|
2282
|
+
readonly type: "string";
|
|
2283
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
2284
|
+
readonly example: "blue_group";
|
|
2285
|
+
};
|
|
2286
|
+
readonly weight: {
|
|
2287
|
+
readonly type: "integer";
|
|
2288
|
+
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";
|
|
2289
|
+
readonly minimum: 0;
|
|
2290
|
+
readonly maximum: 1000;
|
|
2291
|
+
};
|
|
2292
|
+
readonly weightType: {
|
|
2293
|
+
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).";
|
|
2294
|
+
readonly type: "string";
|
|
2295
|
+
readonly example: "fix";
|
|
2296
|
+
readonly enum: readonly ["variable", "fix"];
|
|
2297
|
+
};
|
|
2298
|
+
readonly stickiness: {
|
|
2299
|
+
readonly type: "string";
|
|
2300
|
+
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";
|
|
2301
|
+
readonly example: "custom.context.field";
|
|
2302
|
+
};
|
|
2303
|
+
readonly payload: {
|
|
2304
|
+
readonly type: "object";
|
|
2305
|
+
readonly required: readonly ["type", "value"];
|
|
2306
|
+
readonly description: "Extra data configured for this variant";
|
|
2307
|
+
readonly properties: {
|
|
2308
|
+
readonly type: {
|
|
2309
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
2310
|
+
readonly type: "string";
|
|
2311
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
2312
|
+
};
|
|
2313
|
+
readonly value: {
|
|
2314
|
+
readonly description: "The actual value of payload";
|
|
2315
|
+
readonly type: "string";
|
|
2316
|
+
};
|
|
2317
|
+
};
|
|
2318
|
+
readonly example: {
|
|
2319
|
+
readonly type: "json";
|
|
2320
|
+
readonly value: "{\"color\": \"red\"}";
|
|
2321
|
+
};
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
readonly components: {};
|
|
2325
|
+
};
|
|
1614
2326
|
readonly variantSchema: {
|
|
1615
2327
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1616
2328
|
readonly type: "object";
|
|
@@ -1632,7 +2344,8 @@ export declare const projectOverviewSchema: {
|
|
|
1632
2344
|
readonly weightType: {
|
|
1633
2345
|
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";
|
|
1634
2346
|
readonly type: "string";
|
|
1635
|
-
readonly example: "
|
|
2347
|
+
readonly example: "variable";
|
|
2348
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1636
2349
|
};
|
|
1637
2350
|
readonly stickiness: {
|
|
1638
2351
|
readonly type: "string";
|
|
@@ -1643,17 +2356,21 @@ export declare const projectOverviewSchema: {
|
|
|
1643
2356
|
readonly type: "object";
|
|
1644
2357
|
readonly required: readonly ["type", "value"];
|
|
1645
2358
|
readonly description: "Extra data configured for this variant";
|
|
2359
|
+
readonly additionalProperties: false;
|
|
1646
2360
|
readonly properties: {
|
|
1647
2361
|
readonly type: {
|
|
2362
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1648
2363
|
readonly type: "string";
|
|
2364
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1649
2365
|
};
|
|
1650
2366
|
readonly value: {
|
|
2367
|
+
readonly description: "The actual value of payload";
|
|
1651
2368
|
readonly type: "string";
|
|
1652
2369
|
};
|
|
1653
2370
|
};
|
|
1654
2371
|
readonly example: {
|
|
1655
2372
|
readonly type: "json";
|
|
1656
|
-
readonly value: "{color: red}";
|
|
2373
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1657
2374
|
};
|
|
1658
2375
|
};
|
|
1659
2376
|
readonly overrides: {
|