unleash-server 5.2.7 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/addons/addon-schema.js +10 -0
- package/dist/lib/addons/addon-schema.js.map +1 -1
- package/dist/lib/addons/addon.d.ts +1 -0
- package/dist/lib/addons/addon.js.map +1 -1
- package/dist/lib/addons/datadog-definition.js +21 -0
- package/dist/lib/addons/datadog-definition.js.map +1 -1
- package/dist/lib/addons/datadog.d.ts +8 -1
- package/dist/lib/addons/datadog.js +14 -2
- package/dist/lib/addons/datadog.js.map +1 -1
- package/dist/lib/addons/datadog.test.js +62 -0
- package/dist/lib/addons/datadog.test.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.d.ts +1 -0
- package/dist/lib/addons/feature-event-formatter-md.js +7 -0
- package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
- package/dist/lib/addons/index.d.ts +2 -1
- package/dist/lib/addons/index.js +12 -2
- package/dist/lib/addons/index.js.map +1 -1
- package/dist/lib/addons/installation-definition-schema.d.ts +2 -0
- package/dist/lib/addons/installation-definition-schema.js +13 -0
- package/dist/lib/addons/installation-definition-schema.js.map +1 -0
- package/dist/lib/addons/slack-app-definition.d.ts +3 -0
- package/dist/lib/addons/slack-app-definition.js +68 -0
- package/dist/lib/addons/slack-app-definition.js.map +1 -0
- package/dist/lib/addons/slack-app.d.ts +23 -0
- package/dist/lib/addons/slack-app.js +137 -0
- package/dist/lib/addons/slack-app.js.map +1 -0
- package/dist/lib/addons/slack-app.test.d.ts +1 -0
- package/dist/lib/addons/slack-app.test.js +191 -0
- package/dist/lib/addons/slack-app.test.js.map +1 -0
- package/dist/lib/addons/slack-definition.js +13 -0
- package/dist/lib/addons/slack-definition.js.map +1 -1
- package/dist/lib/addons/slack.d.ts +9 -1
- package/dist/lib/addons/slack.js +15 -3
- package/dist/lib/addons/slack.js.map +1 -1
- package/dist/lib/addons/slack.test.js +33 -0
- package/dist/lib/addons/slack.test.js.map +1 -1
- package/dist/lib/addons/teams-definition.js +13 -0
- package/dist/lib/addons/teams-definition.js.map +1 -1
- package/dist/lib/addons/teams.d.ts +6 -1
- package/dist/lib/addons/teams.js +11 -2
- package/dist/lib/addons/teams.js.map +1 -1
- package/dist/lib/addons/teams.test.js +28 -0
- package/dist/lib/addons/teams.test.js.map +1 -1
- package/dist/lib/addons/webhook-definition.js +13 -0
- package/dist/lib/addons/webhook-definition.js.map +1 -1
- package/dist/lib/addons/webhook.d.ts +1 -0
- package/dist/lib/addons/webhook.js +11 -1
- package/dist/lib/addons/webhook.js.map +1 -1
- package/dist/lib/addons/webhook.test.js +29 -0
- package/dist/lib/addons/webhook.test.js.map +1 -1
- package/dist/lib/create-config.js +2 -2
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +0 -1
- package/dist/lib/db/access-store.js +1 -14
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-metrics-store-v2.js +7 -2
- package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
- package/dist/lib/db/context-field-store.js +9 -18
- package/dist/lib/db/context-field-store.js.map +1 -1
- package/dist/lib/db/event-store.d.ts +2 -0
- package/dist/lib/db/event-store.js +19 -9
- package/dist/lib/db/event-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.js +5 -0
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +1 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
- package/dist/lib/db/feature-toggle-client-store.d.ts +7 -8
- package/dist/lib/db/feature-toggle-client-store.js +46 -24
- package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-store.d.ts +6 -0
- package/dist/lib/db/feature-toggle-store.js +35 -0
- package/dist/lib/db/feature-toggle-store.js.map +1 -1
- package/dist/lib/db/feature-type-store.d.ts +1 -0
- package/dist/lib/db/feature-type-store.js +12 -0
- package/dist/lib/db/feature-type-store.js.map +1 -1
- package/dist/lib/db/group-store.d.ts +5 -7
- package/dist/lib/db/group-store.js +51 -25
- package/dist/lib/db/group-store.js.map +1 -1
- package/dist/lib/db/index.js +1 -1
- package/dist/lib/db/index.js.map +1 -1
- package/dist/lib/db/project-store.d.ts +3 -5
- package/dist/lib/db/project-store.js +19 -19
- package/dist/lib/db/project-store.js.map +1 -1
- package/dist/lib/db/segment-store.d.ts +2 -1
- package/dist/lib/db/segment-store.js +23 -20
- package/dist/lib/db/segment-store.js.map +1 -1
- package/dist/lib/db/segment-store.test.d.ts +1 -0
- package/dist/lib/db/segment-store.test.js +32 -0
- package/dist/lib/db/segment-store.test.js.map +1 -0
- package/dist/lib/error/bad-data-error.d.ts +1 -0
- package/dist/lib/error/bad-data-error.js +18 -5
- package/dist/lib/error/bad-data-error.js.map +1 -1
- package/dist/lib/error/content-type-error.d.ts +1 -0
- package/dist/lib/error/content-type-error.js +1 -0
- package/dist/lib/error/content-type-error.js.map +1 -1
- package/dist/lib/error/disabled-error.d.ts +1 -0
- package/dist/lib/error/disabled-error.js +4 -0
- package/dist/lib/error/disabled-error.js.map +1 -1
- package/dist/lib/error/feature-has-tag-error.d.ts +1 -0
- package/dist/lib/error/feature-has-tag-error.js +4 -0
- package/dist/lib/error/feature-has-tag-error.js.map +1 -1
- package/dist/lib/error/forbidden-error.d.ts +5 -0
- package/dist/lib/error/forbidden-error.js +12 -0
- package/dist/lib/error/forbidden-error.js.map +1 -0
- package/dist/lib/error/from-legacy-error.js +68 -0
- package/dist/lib/error/from-legacy-error.js.map +1 -1
- package/dist/lib/error/incompatible-project-error.d.ts +1 -0
- package/dist/lib/error/incompatible-project-error.js +1 -0
- package/dist/lib/error/incompatible-project-error.js.map +1 -1
- package/dist/lib/error/index.d.ts +3 -2
- package/dist/lib/error/index.js +5 -3
- package/dist/lib/error/index.js.map +1 -1
- package/dist/lib/error/invalid-operation-error.d.ts +1 -0
- package/dist/lib/error/invalid-operation-error.js +4 -0
- package/dist/lib/error/invalid-operation-error.js.map +1 -1
- package/dist/lib/error/invalid-token-error.d.ts +1 -0
- package/dist/lib/error/invalid-token-error.js +1 -0
- package/dist/lib/error/invalid-token-error.js.map +1 -1
- package/dist/lib/error/minimum-one-environment-error.d.ts +1 -0
- package/dist/lib/error/minimum-one-environment-error.js +4 -0
- package/dist/lib/error/minimum-one-environment-error.js.map +1 -1
- package/dist/lib/error/name-exists-error.d.ts +1 -0
- package/dist/lib/error/name-exists-error.js +4 -0
- package/dist/lib/error/name-exists-error.js.map +1 -1
- package/dist/lib/error/not-implemented-error.d.ts +1 -0
- package/dist/lib/error/not-implemented-error.js +4 -0
- package/dist/lib/error/not-implemented-error.js.map +1 -1
- package/dist/lib/error/notfound-error.d.ts +1 -0
- package/dist/lib/error/notfound-error.js +1 -0
- package/dist/lib/error/notfound-error.js.map +1 -1
- package/dist/lib/error/operation-denied-error.d.ts +1 -0
- package/dist/lib/error/operation-denied-error.js +4 -0
- package/dist/lib/error/operation-denied-error.js.map +1 -1
- package/dist/lib/error/owasp-validation-error.d.ts +1 -0
- package/dist/lib/error/owasp-validation-error.js +1 -0
- package/dist/lib/error/owasp-validation-error.js.map +1 -1
- package/dist/lib/error/password-mismatch.d.ts +1 -0
- package/dist/lib/error/password-mismatch.js +1 -0
- package/dist/lib/error/password-mismatch.js.map +1 -1
- package/dist/lib/error/password-undefined.d.ts +1 -0
- package/dist/lib/error/password-undefined.js +1 -0
- package/dist/lib/error/password-undefined.js.map +1 -1
- package/dist/lib/error/{no-access-error.d.ts → permission-error.d.ts} +3 -2
- package/dist/lib/error/{no-access-error.js → permission-error.js} +10 -7
- package/dist/lib/error/permission-error.js.map +1 -0
- package/dist/lib/error/project-without-owner-error.d.ts +1 -0
- package/dist/lib/error/project-without-owner-error.js +1 -0
- package/dist/lib/error/project-without-owner-error.js.map +1 -1
- package/dist/lib/error/role-in-use-error.d.ts +1 -0
- package/dist/lib/error/role-in-use-error.js +4 -0
- package/dist/lib/error/role-in-use-error.js.map +1 -1
- package/dist/lib/error/unauthorized-error.d.ts +1 -0
- package/dist/lib/error/unauthorized-error.js +4 -0
- package/dist/lib/error/unauthorized-error.js.map +1 -1
- package/dist/lib/error/unleash-error.d.ts +5 -3
- package/dist/lib/error/unleash-error.js +4 -61
- package/dist/lib/error/unleash-error.js.map +1 -1
- package/dist/lib/error/unleash-error.test.js +67 -37
- package/dist/lib/error/unleash-error.test.js.map +1 -1
- package/dist/lib/error/used-token-error.d.ts +1 -0
- package/dist/lib/error/used-token-error.js +1 -0
- package/dist/lib/error/used-token-error.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-controller.js +12 -7
- package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/group/createGroupService.d.ts +4 -0
- package/dist/lib/features/group/createGroupService.js +20 -0
- package/dist/lib/features/group/createGroupService.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/client.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/client.js +33 -13
- package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js +14 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/variant.d.ts +4 -4
- package/dist/lib/features/playground/feature-evaluator/variant.js +14 -10
- package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.js +7 -0
- package/dist/lib/features/playground/offline-unleash-client.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.test.js +69 -0
- package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -1
- package/dist/lib/features/playground/playground-service.js +5 -3
- package/dist/lib/features/playground/playground-service.js.map +1 -1
- package/dist/lib/features/playground/playground.js +12 -15
- package/dist/lib/features/playground/playground.js.map +1 -1
- package/dist/lib/middleware/api-token-middleware.js +1 -1
- package/dist/lib/middleware/api-token-middleware.js.map +1 -1
- package/dist/lib/openapi/index.js +15 -3
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +0 -126
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/addon-type-schema.d.ts +57 -0
- package/dist/lib/openapi/spec/addon-type-schema.js +50 -0
- package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/addons-schema.d.ts +64 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +166 -4
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +1 -2
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +331 -6
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +662 -12
- package/dist/lib/openapi/spec/api-tokens-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-features-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-stale-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js.map +1 -1
- package/dist/lib/openapi/spec/change-password-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +121 -3
- package/dist/lib/openapi/spec/client-feature-schema.js +2 -0
- package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.d.ts +246 -16
- package/dist/lib/openapi/spec/client-features-schema.js +5 -3
- package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.test.js +1 -2
- package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/client-segment-schema.d.ts +75 -0
- package/dist/lib/openapi/spec/client-segment-schema.js +35 -0
- package/dist/lib/openapi/spec/client-segment-schema.js.map +1 -0
- package/dist/lib/openapi/spec/clone-feature-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-schema.d.ts +22 -3
- package/dist/lib/openapi/spec/context-field-schema.js +17 -3
- package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-fields-schema.d.ts +28 -3
- package/dist/lib/openapi/spec/context-fields-schema.js +1 -0
- package/dist/lib/openapi/spec/context-fields-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-api-token-schema.d.ts +130 -32
- package/dist/lib/openapi/spec/create-api-token-schema.js +71 -35
- package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +63 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js +12 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-group-schema.d.ts +61 -0
- package/dist/lib/openapi/spec/create-group-schema.js +43 -0
- package/dist/lib/openapi/spec/create-group-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-schema.d.ts +52 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js +60 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js +53 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-response-schema.d.ts +98 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js +31 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-schema.d.ts +21 -1
- package/dist/lib/openapi/spec/create-user-schema.js +24 -1
- package/dist/lib/openapi/spec/create-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/email-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/email-schema.js +3 -0
- package/dist/lib/openapi/spec/email-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/environment-project-schema.js +2 -0
- package/dist/lib/openapi/spec/environment-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +118 -2
- package/dist/lib/openapi/spec/environments-project-schema.js +3 -0
- package/dist/lib/openapi/spec/environments-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/environments-schema.js +4 -0
- package/dist/lib/openapi/spec/environments-schema.js.map +1 -1
- package/dist/lib/openapi/spec/event-schema.d.ts +130 -0
- package/dist/lib/openapi/spec/event-schema.js +42 -2
- package/dist/lib/openapi/spec/event-schema.js.map +1 -1
- package/dist/lib/openapi/spec/events-schema.d.ts +137 -0
- package/dist/lib/openapi/spec/events-schema.js +7 -0
- package/dist/lib/openapi/spec/events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-query-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +609 -17
- package/dist/lib/openapi/spec/export-result-schema.js +90 -0
- package/dist/lib/openapi/spec/export-result-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +125 -3
- package/dist/lib/openapi/spec/feature-environment-schema.js +6 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-events-schema.d.ts +141 -1
- package/dist/lib/openapi/spec/feature-events-schema.js +13 -1
- package/dist/lib/openapi/spec/feature-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.d.ts +251 -6
- package/dist/lib/openapi/spec/feature-schema.js +7 -0
- package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.test.js +2 -2
- package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +61 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js +10 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-type-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-types-schema.d.ts +42 -1
- package/dist/lib/openapi/spec/feature-types-schema.js +37 -0
- package/dist/lib/openapi/spec/feature-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-variants-schema.d.ts +11 -2
- package/dist/lib/openapi/spec/feature-variants-schema.js +4 -0
- package/dist/lib/openapi/spec/feature-variants-schema.js.map +1 -1
- package/dist/lib/openapi/spec/features-schema.d.ts +501 -12
- package/dist/lib/openapi/spec/features-schema.js +6 -0
- package/dist/lib/openapi/spec/features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feedback-create-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js +23 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-response-schema.d.ts +33 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js +35 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-update-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js +29 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js.map +1 -0
- package/dist/lib/openapi/spec/group-schema.d.ts +107 -9
- package/dist/lib/openapi/spec/group-schema.js +20 -3
- package/dist/lib/openapi/spec/group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/group-user-model-schema.d.ts +46 -3
- package/dist/lib/openapi/spec/group-user-model-schema.js +5 -0
- package/dist/lib/openapi/spec/group-user-model-schema.js.map +1 -1
- package/dist/lib/openapi/spec/groups-schema.d.ts +196 -15
- package/dist/lib/openapi/spec/groups-schema.js +2 -0
- package/dist/lib/openapi/spec/groups-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/health-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-report-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/id-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/id-schema.js +3 -0
- package/dist/lib/openapi/spec/id-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +1198 -63
- package/dist/lib/openapi/spec/import-toggles-schema.js +7 -0
- package/dist/lib/openapi/spec/import-toggles-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-schema.d.ts +18 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js +17 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js.map +1 -1
- package/dist/lib/openapi/spec/index.d.ts +15 -3
- package/dist/lib/openapi/spec/index.js +15 -3
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/legal-value-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js.map +1 -1
- package/dist/lib/openapi/spec/login-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/login-schema.js +5 -0
- package/dist/lib/openapi/spec/login-schema.js.map +1 -1
- package/dist/lib/openapi/spec/me-schema.d.ts +69 -11
- package/dist/lib/openapi/spec/me-schema.js +7 -3
- package/dist/lib/openapi/spec/me-schema.js.map +1 -1
- package/dist/lib/openapi/spec/name-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/name-schema.js +3 -0
- package/dist/lib/openapi/spec/name-schema.js.map +1 -1
- package/dist/lib/openapi/spec/parameters-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
- package/dist/lib/openapi/spec/password-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/password-schema.js +7 -0
- package/dist/lib/openapi/spec/password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/patches-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/patches-schema.js +1 -0
- package/dist/lib/openapi/spec/patches-schema.js.map +1 -1
- package/dist/lib/openapi/spec/permission-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/permission-schema.js +7 -0
- package/dist/lib/openapi/spec/permission-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +165 -3
- package/dist/lib/openapi/spec/playground-feature-schema.js +0 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +330 -5
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +204 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js +49 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +267 -7
- package/dist/lib/openapi/spec/profile-schema.js +5 -0
- package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/project-environment-schema.js +2 -0
- package/dist/lib/openapi/spec/project-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/project-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-client-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-feature-schema.d.ts +20 -2
- package/dist/lib/openapi/spec/proxy-feature-schema.js +20 -3
- package/dist/lib/openapi/spec/proxy-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-features-schema.d.ts +22 -1
- package/dist/lib/openapi/spec/proxy-features-schema.js +2 -0
- package/dist/lib/openapi/spec/proxy-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +52 -4
- package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +104 -8
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/requests-per-second-schema.js +22 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.js.map +1 -1
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.d.ts +17 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js +1 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js.map +1 -1
- package/dist/lib/openapi/spec/role-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/role-schema.js +11 -1
- package/dist/lib/openapi/spec/role-schema.js.map +1 -1
- package/dist/lib/openapi/spec/search-events-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/search-events-schema.js +10 -0
- package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/segment-schema.d.ts +23 -6
- package/dist/lib/openapi/spec/segment-schema.js +18 -15
- package/dist/lib/openapi/spec/segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-ui-config-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/splash-request-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/splash-request-schema.js +23 -0
- package/dist/lib/openapi/spec/splash-request-schema.js.map +1 -0
- package/dist/lib/openapi/spec/splash-response-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/splash-response-schema.js +21 -0
- package/dist/lib/openapi/spec/splash-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/state-schema.d.ts +523 -19
- package/dist/lib/openapi/spec/state-schema.js +2 -0
- package/dist/lib/openapi/spec/state-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategies-schema.d.ts +9 -3
- package/dist/lib/openapi/spec/strategies-schema.js +5 -0
- package/dist/lib/openapi/spec/strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.d.ts +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.test.js +5 -0
- package/dist/lib/openapi/spec/strategy-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js +16 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/tag-type-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-types-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/tag-types-schema.js +4 -0
- package/dist/lib/openapi/spec/tag-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-with-version-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js.map +1 -1
- package/dist/lib/openapi/spec/telemetry-settings-schema.d.ts +22 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js +24 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js.map +1 -0
- package/dist/lib/openapi/spec/token-user-schema.d.ts +23 -2
- package/dist/lib/openapi/spec/token-user-schema.js +12 -1
- package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/ui-config-schema.d.ts +77 -1
- package/dist/lib/openapi/spec/ui-config-schema.js +53 -0
- package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-api-token-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-schema.d.ts +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js +4 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.d.ts +19 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js +21 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-strategy-schema.d.ts +47 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js +55 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-user-schema.d.ts +15 -1
- package/dist/lib/openapi/spec/update-user-schema.js +18 -1
- package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/upsert-context-field-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/user-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/user-schema.js +41 -3
- package/dist/lib/openapi/spec/user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +194 -15
- package/dist/lib/openapi/spec/users-schema.d.ts +55 -4
- package/dist/lib/openapi/spec/users-schema.js +3 -0
- package/dist/lib/openapi/spec/users-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-search-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/validate-feature-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js +18 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/validate-password-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/validate-tag-type-schema.d.ts +10 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-flag-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/variant-schema.js +7 -2
- package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/version-schema.d.ts +16 -1
- package/dist/lib/openapi/spec/version-schema.js +16 -1
- package/dist/lib/openapi/spec/version-schema.js.map +1 -1
- package/dist/lib/openapi/util/openapi-tags.d.ts +14 -2
- package/dist/lib/openapi/util/openapi-tags.js +9 -1
- package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
- package/dist/lib/openapi/util/standard-responses.d.ts +1 -1
- package/dist/lib/openapi/util/standard-responses.js +1 -1
- package/dist/lib/openapi/util/standard-responses.js.map +1 -1
- package/dist/lib/openapi/validate.js +1 -1
- package/dist/lib/openapi/validate.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.js +12 -0
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/archive.d.ts +0 -1
- package/dist/lib/routes/admin-api/archive.js +20 -5
- package/dist/lib/routes/admin-api/archive.js.map +1 -1
- package/dist/lib/routes/admin-api/config.js +4 -0
- package/dist/lib/routes/admin-api/config.js.map +1 -1
- package/dist/lib/routes/admin-api/constraints.d.ts +2 -2
- package/dist/lib/routes/admin-api/constraints.js +5 -2
- package/dist/lib/routes/admin-api/constraints.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +2 -1
- package/dist/lib/routes/admin-api/context.js +16 -4
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/event.js +6 -3
- package/dist/lib/routes/admin-api/event.js.map +1 -1
- package/dist/lib/routes/admin-api/favorites.js +24 -4
- package/dist/lib/routes/admin-api/favorites.js.map +1 -1
- package/dist/lib/routes/admin-api/feature-type.d.ts +6 -0
- package/dist/lib/routes/admin-api/feature-type.js +37 -1
- package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
- package/dist/lib/routes/admin-api/feature.d.ts +2 -3
- package/dist/lib/routes/admin-api/feature.js +14 -3
- package/dist/lib/routes/admin-api/feature.js.map +1 -1
- package/dist/lib/routes/admin-api/index.js +2 -0
- package/dist/lib/routes/admin-api/index.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-archive.js +13 -4
- package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-features.d.ts +1 -1
- package/dist/lib/routes/admin-api/project/project-features.js +116 -27
- package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
- package/dist/lib/routes/admin-api/project/variants.js +26 -16
- package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.d.ts +6 -3
- package/dist/lib/routes/admin-api/strategy.js +40 -12
- package/dist/lib/routes/admin-api/strategy.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.test.js +5 -5
- package/dist/lib/routes/admin-api/strategy.test.js.map +1 -1
- package/dist/lib/routes/admin-api/tag-type.js +21 -1
- package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
- package/dist/lib/routes/admin-api/tag.js +17 -1
- package/dist/lib/routes/admin-api/tag.js.map +1 -1
- package/dist/lib/routes/admin-api/telemetry.d.ts +14 -0
- package/dist/lib/routes/admin-api/telemetry.js +41 -0
- package/dist/lib/routes/admin-api/telemetry.js.map +1 -0
- package/dist/lib/routes/admin-api/user/user.js +20 -4
- package/dist/lib/routes/admin-api/user/user.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.d.ts +3 -2
- package/dist/lib/routes/admin-api/user-admin.js +88 -14
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/user-feedback.js +17 -7
- package/dist/lib/routes/admin-api/user-feedback.js.map +1 -1
- package/dist/lib/routes/admin-api/user-splash.js +9 -3
- package/dist/lib/routes/admin-api/user-splash.js.map +1 -1
- package/dist/lib/routes/auth/reset-password-controller.js +24 -4
- package/dist/lib/routes/auth/reset-password-controller.js.map +1 -1
- package/dist/lib/routes/auth/simple-password-provider.js +4 -0
- package/dist/lib/routes/auth/simple-password-provider.js.map +1 -1
- package/dist/lib/routes/client-api/feature.js +1 -1
- package/dist/lib/routes/client-api/feature.js.map +1 -1
- package/dist/lib/routes/client-api/feature.test.js +8 -3
- package/dist/lib/routes/client-api/feature.test.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.js +3 -3
- package/dist/lib/routes/client-api/metrics.js.map +1 -1
- package/dist/lib/routes/controller.js +2 -2
- package/dist/lib/routes/controller.js.map +1 -1
- package/dist/lib/routes/index.js +1 -3
- package/dist/lib/routes/index.js.map +1 -1
- package/dist/lib/routes/proxy-api/index.d.ts +1 -1
- package/dist/lib/routes/proxy-api/index.js +27 -4
- package/dist/lib/routes/proxy-api/index.js.map +1 -1
- package/dist/lib/segments/segment-service-interface.d.ts +2 -1
- package/dist/lib/server-impl.js +1 -0
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/addon-service.d.ts +2 -1
- package/dist/lib/services/addon-service.js +6 -2
- package/dist/lib/services/addon-service.js.map +1 -1
- package/dist/lib/services/client-metrics/metrics-service-v2.js +24 -13
- package/dist/lib/services/client-metrics/metrics-service-v2.js.map +1 -1
- package/dist/lib/services/event-announcer-service.d.ts +8 -0
- package/dist/lib/services/event-announcer-service.js +13 -0
- package/dist/lib/services/event-announcer-service.js.map +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.d.ts +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js +44 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -0
- package/dist/lib/services/feature-toggle-service.d.ts +5 -2
- package/dist/lib/services/feature-toggle-service.js +95 -16
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/feature-type-service.d.ts +1 -0
- package/dist/lib/services/feature-type-service.js +14 -0
- package/dist/lib/services/feature-type-service.js.map +1 -1
- package/dist/lib/services/group-service.d.ts +4 -4
- package/dist/lib/services/group-service.js.map +1 -1
- package/dist/lib/services/index.js +9 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/project-schema.js +1 -0
- package/dist/lib/services/project-schema.js.map +1 -1
- package/dist/lib/services/project-service.d.ts +2 -4
- package/dist/lib/services/project-service.js +4 -9
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/segment-service.d.ts +2 -1
- package/dist/lib/services/segment-service.js +3 -0
- package/dist/lib/services/segment-service.js.map +1 -1
- package/dist/lib/services/tag-type-service.d.ts +2 -2
- package/dist/lib/services/tag-type-service.js +5 -3
- package/dist/lib/services/tag-type-service.js.map +1 -1
- package/dist/lib/services/user-service.js +13 -7
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +1 -2
- package/dist/lib/services/version-service.js +2 -4
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/services/version-service.test.js +0 -57
- package/dist/lib/services/version-service.test.js.map +1 -1
- package/dist/lib/types/authentication-required.d.ts +1 -0
- package/dist/lib/types/authentication-required.js +1 -0
- package/dist/lib/types/authentication-required.js.map +1 -1
- package/dist/lib/types/events.d.ts +138 -99
- package/dist/lib/types/events.js +136 -3
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +5 -5
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/group.d.ts +7 -0
- package/dist/lib/types/group.js.map +1 -1
- package/dist/lib/types/model.d.ts +24 -2
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/services.d.ts +3 -0
- package/dist/lib/types/stores/event-store.d.ts +1 -0
- package/dist/lib/types/stores/feature-toggle-client-store.d.ts +2 -1
- package/dist/lib/types/stores/feature-toggle-store.d.ts +6 -0
- package/dist/lib/types/stores/feature-type-store.d.ts +1 -0
- package/dist/lib/types/stores/group-store.d.ts +4 -4
- package/dist/lib/types/stores/project-store.d.ts +3 -6
- package/dist/lib/types/stores/segment-store.d.ts +2 -1
- package/dist/lib/util/is-email.d.ts +7 -0
- package/dist/lib/util/is-email.js +9 -0
- package/dist/lib/util/is-email.js.map +1 -1
- package/dist/lib/util/load-index-html.js +1 -1
- package/dist/lib/util/load-index-html.js.map +1 -1
- package/dist/migrations/20230630080126-delete-deprecated-permissions.d.ts +2 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js +15 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js.map +1 -0
- package/dist/migrations/20230706123907-events-announced-column.d.ts +2 -0
- package/dist/migrations/20230706123907-events-announced-column.js +15 -0
- package/dist/migrations/20230706123907-events-announced-column.js.map +1 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.d.ts +2 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js +18 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js.map +1 -0
- package/dist/migrations/20230711163311-project-feature-limit.d.ts +2 -0
- package/dist/migrations/20230711163311-project-feature-limit.js +13 -0
- package/dist/migrations/20230711163311-project-feature-limit.js.map +1 -0
- package/dist/migrations/20230712091834-strategy-variants.d.ts +2 -0
- package/dist/migrations/20230712091834-strategy-variants.js +81 -0
- package/dist/migrations/20230712091834-strategy-variants.js.map +1 -0
- package/dist/server-dev.js +5 -3
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.test.js +1 -1
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/archive.test.js +7 -1
- package/dist/test/e2e/api/admin/archive.test.js.map +1 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feature-type.test.js +41 -1
- package/dist/test/e2e/api/admin/feature-type.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +152 -0
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js +28 -12
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/state.e2e.test.js +6 -6
- package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js +9 -6
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +26 -4
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/group-service.e2e.test.js +16 -0
- package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/user-service.e2e.test.js +2 -2
- package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/event-store.e2e.test.js +3 -2
- package/dist/test/e2e/stores/event-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js +163 -0
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js +13 -0
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js.map +1 -1
- package/dist/test/fixtures/fake-event-store.d.ts +1 -0
- package/dist/test/fixtures/fake-event-store.js +3 -0
- package/dist/test/fixtures/fake-event-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-client-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js +10 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-store.d.ts +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-type-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-type-store.js +8 -0
- package/dist/test/fixtures/fake-feature-type-store.js.map +1 -1
- package/dist/test/fixtures/fake-group-store.d.ts +4 -4
- package/dist/test/fixtures/fake-group-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.d.ts +3 -4
- package/dist/test/fixtures/fake-project-store.js +4 -13
- package/dist/test/fixtures/fake-project-store.js.map +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts +2 -1
- package/dist/test/fixtures/fake-segment-store.js +3 -0
- package/dist/test/fixtures/fake-segment-store.js.map +1 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/AdvancedPlayground-4c9d02ea.js +13 -0
- package/frontend/build/static/CreateProject-16b35d57.js +4 -0
- package/frontend/build/static/{Error-2c3030da.js → Error-50364f10.js} +1 -1
- package/frontend/build/static/{FeatureArchiveDialog-a529848e.js → FeatureArchiveDialog-fda1aa0c.js} +3 -3
- package/frontend/build/static/{FeatureMetricsChart-e8ede36a.js → FeatureMetricsChart-839cdf1e.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-47bb7f13.js +7 -0
- package/frontend/build/static/LazyAdminExport-8ef0ca21.js +37 -0
- package/frontend/build/static/LazyProjectExport-49541c75.js +16 -0
- package/frontend/build/static/{NetworkOverview-e6f0a590.js → NetworkOverview-711050f3.js} +8 -8
- package/frontend/build/static/{NetworkTraffic-d1efc782.js → NetworkTraffic-e587c2c7.js} +1 -1
- package/frontend/build/static/RoleCell-9a62b4ed.js +1 -0
- package/frontend/build/static/StrategyItemContainer-4098c8ef.js +1 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-0d05c046.js → chartjs-adapter-date-fns.esm-d57aaddd.js} +1 -1
- package/frontend/build/static/demo-qr-c2ce85bd.png +0 -0
- package/frontend/build/static/{flowchart-elk-definition-170a3958-cc4ae597.js → flowchart-elk-definition-170a3958-4dece62b.js} +2 -2
- package/frontend/build/static/{index-a563ae6f.js → index-1c8194e0.js} +1 -1
- package/frontend/build/static/index-770afaee.css +1 -0
- package/frontend/build/static/{index-ade82986.js → index-9bb67f88.js} +1 -1
- package/frontend/build/static/index-9c528324.js +453 -0
- package/frontend/build/static/{is_dark-49e2e68f.js → is_dark-ba77f0b9.js} +1 -1
- package/frontend/build/static/{mindmap-definition-44684416-c6d3a96e.js → mindmap-definition-44684416-a4071c9f.js} +3 -3
- package/frontend/build/static/{timeline-definition-8e5a9bc6-920370f9.js → timeline-definition-8e5a9bc6-c996bf40.js} +2 -2
- package/frontend/build/static/{unknownify-30fed5e1.js → unknownify-db48ebae.js} +1 -1
- package/frontend/package.json +16 -16
- package/package.json +15 -13
- package/dist/lib/error/no-access-error.js.map +0 -1
- package/dist/lib/openapi/endpoint-descriptions.d.ts +0 -20
- package/dist/lib/openapi/endpoint-descriptions.js +0 -24
- package/dist/lib/openapi/endpoint-descriptions.js.map +0 -1
- package/dist/lib/openapi/spec/feedback-schema.d.ts +0 -24
- package/dist/lib/openapi/spec/feedback-schema.js +0 -26
- package/dist/lib/openapi/spec/feedback-schema.js.map +0 -1
- package/dist/lib/openapi/spec/splash-schema.d.ts +0 -20
- package/dist/lib/openapi/spec/splash-schema.js +0 -22
- package/dist/lib/openapi/spec/splash-schema.js.map +0 -1
- package/dist/lib/openapi/spec/upsert-strategy-schema.d.ts +0 -39
- package/dist/lib/openapi/spec/upsert-strategy-schema.js +0 -41
- package/dist/lib/openapi/spec/upsert-strategy-schema.js.map +0 -1
- package/frontend/build/static/AdvancedPlayground-bc3db7fd.js +0 -1
- package/frontend/build/static/CreateProject-4013b189.js +0 -4
- package/frontend/build/static/FeatureViewLazyExport-773303d1.js +0 -7
- package/frontend/build/static/LazyAdminExport-a9aeca56.js +0 -37
- package/frontend/build/static/LazyProjectExport-7c849a96.js +0 -13
- package/frontend/build/static/Playground-4fd4e26e.js +0 -1
- package/frontend/build/static/PlaygroundGuidancePopper-c761bfb7.js +0 -13
- package/frontend/build/static/RoleCell-cbb192fa.js +0 -1
- package/frontend/build/static/StrategyItemContainer-128fc163.js +0 -1
- package/frontend/build/static/demo-qr-1bebe2c9.png +0 -0
- package/frontend/build/static/index-66c635eb.css +0 -1
- package/frontend/build/static/index-bd571775.js +0 -450
- package/frontend/build/static/stringify-ec884b6d.js +0 -1
|
@@ -3,40 +3,105 @@ export declare const exportResultSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/exportResultSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
|
+
readonly description: "The result of the export operation, providing you with the feature toggle definitions, strategy definitions and the rest of the elements relevant to the features (tags, environments etc.)";
|
|
6
7
|
readonly required: readonly ["features", "featureStrategies", "tagTypes"];
|
|
7
8
|
readonly properties: {
|
|
8
9
|
readonly features: {
|
|
9
10
|
readonly type: "array";
|
|
11
|
+
readonly description: "All the exported features.";
|
|
12
|
+
readonly example: readonly [{
|
|
13
|
+
readonly name: "my-feature";
|
|
14
|
+
readonly description: "best feature ever";
|
|
15
|
+
readonly type: "release";
|
|
16
|
+
readonly project: "default";
|
|
17
|
+
readonly stale: false;
|
|
18
|
+
readonly impressionData: false;
|
|
19
|
+
readonly archived: false;
|
|
20
|
+
}];
|
|
10
21
|
readonly items: {
|
|
11
22
|
readonly $ref: "#/components/schemas/featureSchema";
|
|
12
23
|
};
|
|
13
24
|
};
|
|
14
25
|
readonly featureStrategies: {
|
|
15
26
|
readonly type: "array";
|
|
27
|
+
readonly description: "All strategy instances that are used by the exported features in the `features` list.";
|
|
28
|
+
readonly example: readonly [{
|
|
29
|
+
readonly name: "flexibleRollout";
|
|
30
|
+
readonly id: "924974d7-8003-43ee-87eb-c5f887c06fd1";
|
|
31
|
+
readonly featureName: "my-feature";
|
|
32
|
+
readonly title: "Rollout 50%";
|
|
33
|
+
readonly parameters: {
|
|
34
|
+
readonly groupId: "default";
|
|
35
|
+
readonly rollout: "50";
|
|
36
|
+
readonly stickiness: "random";
|
|
37
|
+
};
|
|
38
|
+
readonly constraints: readonly [];
|
|
39
|
+
readonly disabled: false;
|
|
40
|
+
readonly segments: readonly [1];
|
|
41
|
+
}];
|
|
16
42
|
readonly items: {
|
|
17
43
|
readonly $ref: "#/components/schemas/featureStrategySchema";
|
|
18
44
|
};
|
|
19
45
|
};
|
|
20
46
|
readonly featureEnvironments: {
|
|
21
47
|
readonly type: "array";
|
|
48
|
+
readonly description: "Environment-specific configuration for all the features in the `features` list. Includes data such as whether the feature is enabled in the selected export environment, whether there are any variants assigned, etc.";
|
|
49
|
+
readonly example: readonly [{
|
|
50
|
+
readonly enabled: true;
|
|
51
|
+
readonly featureName: "my-feature";
|
|
52
|
+
readonly environment: "development";
|
|
53
|
+
readonly variants: readonly [{
|
|
54
|
+
readonly name: "a";
|
|
55
|
+
readonly weight: 500;
|
|
56
|
+
readonly overrides: readonly [];
|
|
57
|
+
readonly stickiness: "random";
|
|
58
|
+
readonly weightType: "variable";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "b";
|
|
61
|
+
readonly weight: 500;
|
|
62
|
+
readonly overrides: readonly [];
|
|
63
|
+
readonly stickiness: "random";
|
|
64
|
+
readonly weightType: "variable";
|
|
65
|
+
}];
|
|
66
|
+
readonly name: "variant-testing";
|
|
67
|
+
}];
|
|
22
68
|
readonly items: {
|
|
23
69
|
readonly $ref: "#/components/schemas/featureEnvironmentSchema";
|
|
24
70
|
};
|
|
25
71
|
};
|
|
26
72
|
readonly contextFields: {
|
|
27
73
|
readonly type: "array";
|
|
74
|
+
readonly description: "A list of all the context fields that are in use by any of the strategies in the `featureStrategies` list.";
|
|
75
|
+
readonly example: readonly [{
|
|
76
|
+
readonly name: "appName";
|
|
77
|
+
readonly description: "Allows you to constrain on application name";
|
|
78
|
+
readonly stickiness: false;
|
|
79
|
+
readonly sortOrder: 2;
|
|
80
|
+
readonly legalValues: readonly [];
|
|
81
|
+
}];
|
|
28
82
|
readonly items: {
|
|
29
83
|
readonly $ref: "#/components/schemas/contextFieldSchema";
|
|
30
84
|
};
|
|
31
85
|
};
|
|
32
86
|
readonly featureTags: {
|
|
33
87
|
readonly type: "array";
|
|
88
|
+
readonly description: "A list of all the tags that have been applied to any of the features in the `features` list.";
|
|
89
|
+
readonly example: readonly [{
|
|
90
|
+
readonly featureName: "my-feature";
|
|
91
|
+
readonly tagType: "simple";
|
|
92
|
+
readonly tagValue: "user-facing";
|
|
93
|
+
}];
|
|
34
94
|
readonly items: {
|
|
35
95
|
readonly $ref: "#/components/schemas/featureTagSchema";
|
|
36
96
|
};
|
|
37
97
|
};
|
|
38
98
|
readonly segments: {
|
|
39
99
|
readonly type: "array";
|
|
100
|
+
readonly description: "A list of all the segments that are used by the strategies in the `featureStrategies` list.";
|
|
101
|
+
readonly example: readonly [{
|
|
102
|
+
readonly id: 1;
|
|
103
|
+
readonly name: "new-segment-name";
|
|
104
|
+
}];
|
|
40
105
|
readonly items: {
|
|
41
106
|
readonly type: "object";
|
|
42
107
|
readonly additionalProperties: false;
|
|
@@ -53,6 +118,12 @@ export declare const exportResultSchema: {
|
|
|
53
118
|
};
|
|
54
119
|
readonly tagTypes: {
|
|
55
120
|
readonly type: "array";
|
|
121
|
+
readonly description: "A list of all of the tag types that are used in the `featureTags` list.";
|
|
122
|
+
readonly example: readonly [{
|
|
123
|
+
readonly name: "simple";
|
|
124
|
+
readonly description: "Used to simplify filtering of features";
|
|
125
|
+
readonly icon: "#";
|
|
126
|
+
}];
|
|
56
127
|
readonly items: {
|
|
57
128
|
readonly $ref: "#/components/schemas/tagTypeSchema";
|
|
58
129
|
};
|
|
@@ -65,6 +136,7 @@ export declare const exportResultSchema: {
|
|
|
65
136
|
readonly type: "object";
|
|
66
137
|
readonly additionalProperties: false;
|
|
67
138
|
readonly required: readonly ["name"];
|
|
139
|
+
readonly description: "A feature toggle definition";
|
|
68
140
|
readonly properties: {
|
|
69
141
|
readonly name: {
|
|
70
142
|
readonly type: "string";
|
|
@@ -95,6 +167,7 @@ export declare const exportResultSchema: {
|
|
|
95
167
|
readonly enabled: {
|
|
96
168
|
readonly type: "boolean";
|
|
97
169
|
readonly example: true;
|
|
170
|
+
readonly description: "`true` if the feature is enabled, otherwise `false`.";
|
|
98
171
|
};
|
|
99
172
|
readonly stale: {
|
|
100
173
|
readonly type: "boolean";
|
|
@@ -116,18 +189,21 @@ export declare const exportResultSchema: {
|
|
|
116
189
|
readonly format: "date-time";
|
|
117
190
|
readonly nullable: true;
|
|
118
191
|
readonly example: "2023-01-28T15:21:39.975Z";
|
|
192
|
+
readonly description: "The date the feature was created";
|
|
119
193
|
};
|
|
120
194
|
readonly archivedAt: {
|
|
121
195
|
readonly type: "string";
|
|
122
196
|
readonly format: "date-time";
|
|
123
197
|
readonly nullable: true;
|
|
124
198
|
readonly example: "2023-01-29T15:21:39.975Z";
|
|
199
|
+
readonly description: "The date the feature was archived";
|
|
125
200
|
};
|
|
126
201
|
readonly lastSeenAt: {
|
|
127
202
|
readonly type: "string";
|
|
128
203
|
readonly format: "date-time";
|
|
129
204
|
readonly nullable: true;
|
|
130
205
|
readonly example: "2023-01-28T16:21:39.975Z";
|
|
206
|
+
readonly description: "The date when metrics where last collected for the feature";
|
|
131
207
|
};
|
|
132
208
|
readonly environments: {
|
|
133
209
|
readonly type: "array";
|
|
@@ -222,9 +298,12 @@ export declare const exportResultSchema: {
|
|
|
222
298
|
readonly featureName: {
|
|
223
299
|
readonly type: "string";
|
|
224
300
|
readonly example: "disable-comments";
|
|
301
|
+
readonly description: "The name of the feature";
|
|
225
302
|
};
|
|
226
303
|
readonly environment: {
|
|
227
304
|
readonly type: "string";
|
|
305
|
+
readonly example: "development";
|
|
306
|
+
readonly description: "The name of the environment";
|
|
228
307
|
};
|
|
229
308
|
readonly type: {
|
|
230
309
|
readonly type: "string";
|
|
@@ -243,6 +322,7 @@ export declare const exportResultSchema: {
|
|
|
243
322
|
};
|
|
244
323
|
readonly variantCount: {
|
|
245
324
|
readonly type: "number";
|
|
325
|
+
readonly description: "The number of defined variants";
|
|
246
326
|
};
|
|
247
327
|
readonly strategies: {
|
|
248
328
|
readonly type: "array";
|
|
@@ -308,6 +388,7 @@ export declare const exportResultSchema: {
|
|
|
308
388
|
readonly parametersSchema: {
|
|
309
389
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
310
390
|
readonly type: "object";
|
|
391
|
+
readonly description: "A list of parameters for a strategy";
|
|
311
392
|
readonly additionalProperties: {
|
|
312
393
|
readonly type: "string";
|
|
313
394
|
};
|
|
@@ -362,11 +443,18 @@ export declare const exportResultSchema: {
|
|
|
362
443
|
};
|
|
363
444
|
readonly constraints: {
|
|
364
445
|
readonly type: "array";
|
|
365
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
446
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
366
447
|
readonly items: {
|
|
367
448
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
368
449
|
};
|
|
369
450
|
};
|
|
451
|
+
readonly variants: {
|
|
452
|
+
readonly type: "array";
|
|
453
|
+
readonly description: "Strategy level variants";
|
|
454
|
+
readonly items: {
|
|
455
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
456
|
+
};
|
|
457
|
+
};
|
|
370
458
|
readonly parameters: {
|
|
371
459
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
372
460
|
};
|
|
@@ -420,13 +508,118 @@ export declare const exportResultSchema: {
|
|
|
420
508
|
readonly parametersSchema: {
|
|
421
509
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
422
510
|
readonly type: "object";
|
|
511
|
+
readonly description: "A list of parameters for a strategy";
|
|
423
512
|
readonly additionalProperties: {
|
|
424
513
|
readonly type: "string";
|
|
425
514
|
};
|
|
426
515
|
readonly components: {};
|
|
427
516
|
};
|
|
517
|
+
readonly strategyVariantSchema: {
|
|
518
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
519
|
+
readonly type: "object";
|
|
520
|
+
readonly additionalProperties: false;
|
|
521
|
+
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.";
|
|
522
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
523
|
+
readonly properties: {
|
|
524
|
+
readonly name: {
|
|
525
|
+
readonly type: "string";
|
|
526
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
527
|
+
readonly example: "blue_group";
|
|
528
|
+
};
|
|
529
|
+
readonly weight: {
|
|
530
|
+
readonly type: "integer";
|
|
531
|
+
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";
|
|
532
|
+
readonly minimum: 0;
|
|
533
|
+
readonly maximum: 1000;
|
|
534
|
+
};
|
|
535
|
+
readonly weightType: {
|
|
536
|
+
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).";
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
readonly example: "fix";
|
|
539
|
+
readonly enum: readonly ["variable", "fix"];
|
|
540
|
+
};
|
|
541
|
+
readonly stickiness: {
|
|
542
|
+
readonly type: "string";
|
|
543
|
+
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";
|
|
544
|
+
readonly example: "custom.context.field";
|
|
545
|
+
};
|
|
546
|
+
readonly payload: {
|
|
547
|
+
readonly type: "object";
|
|
548
|
+
readonly required: readonly ["type", "value"];
|
|
549
|
+
readonly description: "Extra data configured for this variant";
|
|
550
|
+
readonly properties: {
|
|
551
|
+
readonly type: {
|
|
552
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
553
|
+
readonly type: "string";
|
|
554
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
555
|
+
};
|
|
556
|
+
readonly value: {
|
|
557
|
+
readonly description: "The actual value of payload";
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
readonly example: {
|
|
562
|
+
readonly type: "json";
|
|
563
|
+
readonly value: "{\"color\": \"red\"}";
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
readonly components: {};
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
};
|
|
572
|
+
readonly strategyVariantSchema: {
|
|
573
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
574
|
+
readonly type: "object";
|
|
575
|
+
readonly additionalProperties: false;
|
|
576
|
+
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.";
|
|
577
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
578
|
+
readonly properties: {
|
|
579
|
+
readonly name: {
|
|
580
|
+
readonly type: "string";
|
|
581
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
582
|
+
readonly example: "blue_group";
|
|
583
|
+
};
|
|
584
|
+
readonly weight: {
|
|
585
|
+
readonly type: "integer";
|
|
586
|
+
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";
|
|
587
|
+
readonly minimum: 0;
|
|
588
|
+
readonly maximum: 1000;
|
|
589
|
+
};
|
|
590
|
+
readonly weightType: {
|
|
591
|
+
readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
readonly example: "fix";
|
|
594
|
+
readonly enum: readonly ["variable", "fix"];
|
|
595
|
+
};
|
|
596
|
+
readonly stickiness: {
|
|
597
|
+
readonly type: "string";
|
|
598
|
+
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";
|
|
599
|
+
readonly example: "custom.context.field";
|
|
600
|
+
};
|
|
601
|
+
readonly payload: {
|
|
602
|
+
readonly type: "object";
|
|
603
|
+
readonly required: readonly ["type", "value"];
|
|
604
|
+
readonly description: "Extra data configured for this variant";
|
|
605
|
+
readonly properties: {
|
|
606
|
+
readonly type: {
|
|
607
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
610
|
+
};
|
|
611
|
+
readonly value: {
|
|
612
|
+
readonly description: "The actual value of payload";
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
readonly example: {
|
|
617
|
+
readonly type: "json";
|
|
618
|
+
readonly value: "{\"color\": \"red\"}";
|
|
619
|
+
};
|
|
428
620
|
};
|
|
429
621
|
};
|
|
622
|
+
readonly components: {};
|
|
430
623
|
};
|
|
431
624
|
readonly variantSchema: {
|
|
432
625
|
readonly $id: "#/components/schemas/variantSchema";
|
|
@@ -449,7 +642,8 @@ export declare const exportResultSchema: {
|
|
|
449
642
|
readonly weightType: {
|
|
450
643
|
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";
|
|
451
644
|
readonly type: "string";
|
|
452
|
-
readonly example: "
|
|
645
|
+
readonly example: "variable";
|
|
646
|
+
readonly enum: readonly ["variable", "fix"];
|
|
453
647
|
};
|
|
454
648
|
readonly stickiness: {
|
|
455
649
|
readonly type: "string";
|
|
@@ -460,17 +654,21 @@ export declare const exportResultSchema: {
|
|
|
460
654
|
readonly type: "object";
|
|
461
655
|
readonly required: readonly ["type", "value"];
|
|
462
656
|
readonly description: "Extra data configured for this variant";
|
|
657
|
+
readonly additionalProperties: false;
|
|
463
658
|
readonly properties: {
|
|
464
659
|
readonly type: {
|
|
660
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
465
661
|
readonly type: "string";
|
|
662
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
466
663
|
};
|
|
467
664
|
readonly value: {
|
|
665
|
+
readonly description: "The actual value of payload";
|
|
468
666
|
readonly type: "string";
|
|
469
667
|
};
|
|
470
668
|
};
|
|
471
669
|
readonly example: {
|
|
472
670
|
readonly type: "json";
|
|
473
|
-
readonly value: "{color: red}";
|
|
671
|
+
readonly value: "{\"color\": \"red\"}";
|
|
474
672
|
};
|
|
475
673
|
};
|
|
476
674
|
readonly overrides: {
|
|
@@ -561,11 +759,18 @@ export declare const exportResultSchema: {
|
|
|
561
759
|
};
|
|
562
760
|
readonly constraints: {
|
|
563
761
|
readonly type: "array";
|
|
564
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
762
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
565
763
|
readonly items: {
|
|
566
764
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
567
765
|
};
|
|
568
766
|
};
|
|
767
|
+
readonly variants: {
|
|
768
|
+
readonly type: "array";
|
|
769
|
+
readonly description: "Strategy level variants";
|
|
770
|
+
readonly items: {
|
|
771
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
772
|
+
};
|
|
773
|
+
};
|
|
569
774
|
readonly parameters: {
|
|
570
775
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
571
776
|
};
|
|
@@ -619,14 +824,119 @@ export declare const exportResultSchema: {
|
|
|
619
824
|
readonly parametersSchema: {
|
|
620
825
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
621
826
|
readonly type: "object";
|
|
827
|
+
readonly description: "A list of parameters for a strategy";
|
|
622
828
|
readonly additionalProperties: {
|
|
623
829
|
readonly type: "string";
|
|
624
830
|
};
|
|
625
831
|
readonly components: {};
|
|
626
832
|
};
|
|
833
|
+
readonly strategyVariantSchema: {
|
|
834
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
835
|
+
readonly type: "object";
|
|
836
|
+
readonly additionalProperties: false;
|
|
837
|
+
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.";
|
|
838
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
839
|
+
readonly properties: {
|
|
840
|
+
readonly name: {
|
|
841
|
+
readonly type: "string";
|
|
842
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
843
|
+
readonly example: "blue_group";
|
|
844
|
+
};
|
|
845
|
+
readonly weight: {
|
|
846
|
+
readonly type: "integer";
|
|
847
|
+
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";
|
|
848
|
+
readonly minimum: 0;
|
|
849
|
+
readonly maximum: 1000;
|
|
850
|
+
};
|
|
851
|
+
readonly weightType: {
|
|
852
|
+
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).";
|
|
853
|
+
readonly type: "string";
|
|
854
|
+
readonly example: "fix";
|
|
855
|
+
readonly enum: readonly ["variable", "fix"];
|
|
856
|
+
};
|
|
857
|
+
readonly stickiness: {
|
|
858
|
+
readonly type: "string";
|
|
859
|
+
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";
|
|
860
|
+
readonly example: "custom.context.field";
|
|
861
|
+
};
|
|
862
|
+
readonly payload: {
|
|
863
|
+
readonly type: "object";
|
|
864
|
+
readonly required: readonly ["type", "value"];
|
|
865
|
+
readonly description: "Extra data configured for this variant";
|
|
866
|
+
readonly properties: {
|
|
867
|
+
readonly type: {
|
|
868
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
869
|
+
readonly type: "string";
|
|
870
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
871
|
+
};
|
|
872
|
+
readonly value: {
|
|
873
|
+
readonly description: "The actual value of payload";
|
|
874
|
+
readonly type: "string";
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
readonly example: {
|
|
878
|
+
readonly type: "json";
|
|
879
|
+
readonly value: "{\"color\": \"red\"}";
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
readonly components: {};
|
|
884
|
+
};
|
|
627
885
|
};
|
|
628
886
|
};
|
|
629
887
|
};
|
|
888
|
+
readonly strategyVariantSchema: {
|
|
889
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
890
|
+
readonly type: "object";
|
|
891
|
+
readonly additionalProperties: false;
|
|
892
|
+
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.";
|
|
893
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
894
|
+
readonly properties: {
|
|
895
|
+
readonly name: {
|
|
896
|
+
readonly type: "string";
|
|
897
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
898
|
+
readonly example: "blue_group";
|
|
899
|
+
};
|
|
900
|
+
readonly weight: {
|
|
901
|
+
readonly type: "integer";
|
|
902
|
+
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";
|
|
903
|
+
readonly minimum: 0;
|
|
904
|
+
readonly maximum: 1000;
|
|
905
|
+
};
|
|
906
|
+
readonly weightType: {
|
|
907
|
+
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).";
|
|
908
|
+
readonly type: "string";
|
|
909
|
+
readonly example: "fix";
|
|
910
|
+
readonly enum: readonly ["variable", "fix"];
|
|
911
|
+
};
|
|
912
|
+
readonly stickiness: {
|
|
913
|
+
readonly type: "string";
|
|
914
|
+
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";
|
|
915
|
+
readonly example: "custom.context.field";
|
|
916
|
+
};
|
|
917
|
+
readonly payload: {
|
|
918
|
+
readonly type: "object";
|
|
919
|
+
readonly required: readonly ["type", "value"];
|
|
920
|
+
readonly description: "Extra data configured for this variant";
|
|
921
|
+
readonly properties: {
|
|
922
|
+
readonly type: {
|
|
923
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
924
|
+
readonly type: "string";
|
|
925
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
926
|
+
};
|
|
927
|
+
readonly value: {
|
|
928
|
+
readonly description: "The actual value of payload";
|
|
929
|
+
readonly type: "string";
|
|
930
|
+
};
|
|
931
|
+
};
|
|
932
|
+
readonly example: {
|
|
933
|
+
readonly type: "json";
|
|
934
|
+
readonly value: "{\"color\": \"red\"}";
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
readonly components: {};
|
|
939
|
+
};
|
|
630
940
|
readonly overrideSchema: {
|
|
631
941
|
readonly $id: "#/components/schemas/overrideSchema";
|
|
632
942
|
readonly type: "object";
|
|
@@ -653,6 +963,7 @@ export declare const exportResultSchema: {
|
|
|
653
963
|
readonly parametersSchema: {
|
|
654
964
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
655
965
|
readonly type: "object";
|
|
966
|
+
readonly description: "A list of parameters for a strategy";
|
|
656
967
|
readonly additionalProperties: {
|
|
657
968
|
readonly type: "string";
|
|
658
969
|
};
|
|
@@ -679,7 +990,8 @@ export declare const exportResultSchema: {
|
|
|
679
990
|
readonly weightType: {
|
|
680
991
|
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";
|
|
681
992
|
readonly type: "string";
|
|
682
|
-
readonly example: "
|
|
993
|
+
readonly example: "variable";
|
|
994
|
+
readonly enum: readonly ["variable", "fix"];
|
|
683
995
|
};
|
|
684
996
|
readonly stickiness: {
|
|
685
997
|
readonly type: "string";
|
|
@@ -690,17 +1002,21 @@ export declare const exportResultSchema: {
|
|
|
690
1002
|
readonly type: "object";
|
|
691
1003
|
readonly required: readonly ["type", "value"];
|
|
692
1004
|
readonly description: "Extra data configured for this variant";
|
|
1005
|
+
readonly additionalProperties: false;
|
|
693
1006
|
readonly properties: {
|
|
694
1007
|
readonly type: {
|
|
1008
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
695
1009
|
readonly type: "string";
|
|
1010
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
696
1011
|
};
|
|
697
1012
|
readonly value: {
|
|
1013
|
+
readonly description: "The actual value of payload";
|
|
698
1014
|
readonly type: "string";
|
|
699
1015
|
};
|
|
700
1016
|
};
|
|
701
1017
|
readonly example: {
|
|
702
1018
|
readonly type: "json";
|
|
703
|
-
readonly value: "{color: red}";
|
|
1019
|
+
readonly value: "{\"color\": \"red\"}";
|
|
704
1020
|
};
|
|
705
1021
|
};
|
|
706
1022
|
readonly overrides: {
|
|
@@ -816,11 +1132,18 @@ export declare const exportResultSchema: {
|
|
|
816
1132
|
};
|
|
817
1133
|
readonly constraints: {
|
|
818
1134
|
readonly type: "array";
|
|
819
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1135
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
820
1136
|
readonly items: {
|
|
821
1137
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
822
1138
|
};
|
|
823
1139
|
};
|
|
1140
|
+
readonly variants: {
|
|
1141
|
+
readonly type: "array";
|
|
1142
|
+
readonly description: "Strategy level variants";
|
|
1143
|
+
readonly items: {
|
|
1144
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
824
1147
|
readonly parameters: {
|
|
825
1148
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
826
1149
|
};
|
|
@@ -874,13 +1197,118 @@ export declare const exportResultSchema: {
|
|
|
874
1197
|
readonly parametersSchema: {
|
|
875
1198
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
876
1199
|
readonly type: "object";
|
|
1200
|
+
readonly description: "A list of parameters for a strategy";
|
|
877
1201
|
readonly additionalProperties: {
|
|
878
1202
|
readonly type: "string";
|
|
879
1203
|
};
|
|
880
1204
|
readonly components: {};
|
|
881
1205
|
};
|
|
1206
|
+
readonly strategyVariantSchema: {
|
|
1207
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1208
|
+
readonly type: "object";
|
|
1209
|
+
readonly additionalProperties: false;
|
|
1210
|
+
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.";
|
|
1211
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1212
|
+
readonly properties: {
|
|
1213
|
+
readonly name: {
|
|
1214
|
+
readonly type: "string";
|
|
1215
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1216
|
+
readonly example: "blue_group";
|
|
1217
|
+
};
|
|
1218
|
+
readonly weight: {
|
|
1219
|
+
readonly type: "integer";
|
|
1220
|
+
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";
|
|
1221
|
+
readonly minimum: 0;
|
|
1222
|
+
readonly maximum: 1000;
|
|
1223
|
+
};
|
|
1224
|
+
readonly weightType: {
|
|
1225
|
+
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).";
|
|
1226
|
+
readonly type: "string";
|
|
1227
|
+
readonly example: "fix";
|
|
1228
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1229
|
+
};
|
|
1230
|
+
readonly stickiness: {
|
|
1231
|
+
readonly type: "string";
|
|
1232
|
+
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";
|
|
1233
|
+
readonly example: "custom.context.field";
|
|
1234
|
+
};
|
|
1235
|
+
readonly payload: {
|
|
1236
|
+
readonly type: "object";
|
|
1237
|
+
readonly required: readonly ["type", "value"];
|
|
1238
|
+
readonly description: "Extra data configured for this variant";
|
|
1239
|
+
readonly properties: {
|
|
1240
|
+
readonly type: {
|
|
1241
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1242
|
+
readonly type: "string";
|
|
1243
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1244
|
+
};
|
|
1245
|
+
readonly value: {
|
|
1246
|
+
readonly description: "The actual value of payload";
|
|
1247
|
+
readonly type: "string";
|
|
1248
|
+
};
|
|
1249
|
+
};
|
|
1250
|
+
readonly example: {
|
|
1251
|
+
readonly type: "json";
|
|
1252
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
readonly components: {};
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
readonly strategyVariantSchema: {
|
|
1262
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1263
|
+
readonly type: "object";
|
|
1264
|
+
readonly additionalProperties: false;
|
|
1265
|
+
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.";
|
|
1266
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1267
|
+
readonly properties: {
|
|
1268
|
+
readonly name: {
|
|
1269
|
+
readonly type: "string";
|
|
1270
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1271
|
+
readonly example: "blue_group";
|
|
1272
|
+
};
|
|
1273
|
+
readonly weight: {
|
|
1274
|
+
readonly type: "integer";
|
|
1275
|
+
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";
|
|
1276
|
+
readonly minimum: 0;
|
|
1277
|
+
readonly maximum: 1000;
|
|
1278
|
+
};
|
|
1279
|
+
readonly weightType: {
|
|
1280
|
+
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).";
|
|
1281
|
+
readonly type: "string";
|
|
1282
|
+
readonly example: "fix";
|
|
1283
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1284
|
+
};
|
|
1285
|
+
readonly stickiness: {
|
|
1286
|
+
readonly type: "string";
|
|
1287
|
+
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";
|
|
1288
|
+
readonly example: "custom.context.field";
|
|
1289
|
+
};
|
|
1290
|
+
readonly payload: {
|
|
1291
|
+
readonly type: "object";
|
|
1292
|
+
readonly required: readonly ["type", "value"];
|
|
1293
|
+
readonly description: "Extra data configured for this variant";
|
|
1294
|
+
readonly properties: {
|
|
1295
|
+
readonly type: {
|
|
1296
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1297
|
+
readonly type: "string";
|
|
1298
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1299
|
+
};
|
|
1300
|
+
readonly value: {
|
|
1301
|
+
readonly description: "The actual value of payload";
|
|
1302
|
+
readonly type: "string";
|
|
1303
|
+
};
|
|
1304
|
+
};
|
|
1305
|
+
readonly example: {
|
|
1306
|
+
readonly type: "json";
|
|
1307
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1308
|
+
};
|
|
882
1309
|
};
|
|
883
1310
|
};
|
|
1311
|
+
readonly components: {};
|
|
884
1312
|
};
|
|
885
1313
|
readonly featureEnvironmentSchema: {
|
|
886
1314
|
readonly $id: "#/components/schemas/featureEnvironmentSchema";
|
|
@@ -897,9 +1325,12 @@ export declare const exportResultSchema: {
|
|
|
897
1325
|
readonly featureName: {
|
|
898
1326
|
readonly type: "string";
|
|
899
1327
|
readonly example: "disable-comments";
|
|
1328
|
+
readonly description: "The name of the feature";
|
|
900
1329
|
};
|
|
901
1330
|
readonly environment: {
|
|
902
1331
|
readonly type: "string";
|
|
1332
|
+
readonly example: "development";
|
|
1333
|
+
readonly description: "The name of the environment";
|
|
903
1334
|
};
|
|
904
1335
|
readonly type: {
|
|
905
1336
|
readonly type: "string";
|
|
@@ -918,6 +1349,7 @@ export declare const exportResultSchema: {
|
|
|
918
1349
|
};
|
|
919
1350
|
readonly variantCount: {
|
|
920
1351
|
readonly type: "number";
|
|
1352
|
+
readonly description: "The number of defined variants";
|
|
921
1353
|
};
|
|
922
1354
|
readonly strategies: {
|
|
923
1355
|
readonly type: "array";
|
|
@@ -983,6 +1415,7 @@ export declare const exportResultSchema: {
|
|
|
983
1415
|
readonly parametersSchema: {
|
|
984
1416
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
985
1417
|
readonly type: "object";
|
|
1418
|
+
readonly description: "A list of parameters for a strategy";
|
|
986
1419
|
readonly additionalProperties: {
|
|
987
1420
|
readonly type: "string";
|
|
988
1421
|
};
|
|
@@ -1037,11 +1470,18 @@ export declare const exportResultSchema: {
|
|
|
1037
1470
|
};
|
|
1038
1471
|
readonly constraints: {
|
|
1039
1472
|
readonly type: "array";
|
|
1040
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
1473
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
1041
1474
|
readonly items: {
|
|
1042
1475
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
1043
1476
|
};
|
|
1044
1477
|
};
|
|
1478
|
+
readonly variants: {
|
|
1479
|
+
readonly type: "array";
|
|
1480
|
+
readonly description: "Strategy level variants";
|
|
1481
|
+
readonly items: {
|
|
1482
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
1483
|
+
};
|
|
1484
|
+
};
|
|
1045
1485
|
readonly parameters: {
|
|
1046
1486
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
1047
1487
|
};
|
|
@@ -1095,14 +1535,119 @@ export declare const exportResultSchema: {
|
|
|
1095
1535
|
readonly parametersSchema: {
|
|
1096
1536
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1097
1537
|
readonly type: "object";
|
|
1538
|
+
readonly description: "A list of parameters for a strategy";
|
|
1098
1539
|
readonly additionalProperties: {
|
|
1099
1540
|
readonly type: "string";
|
|
1100
1541
|
};
|
|
1101
1542
|
readonly components: {};
|
|
1102
1543
|
};
|
|
1544
|
+
readonly strategyVariantSchema: {
|
|
1545
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1546
|
+
readonly type: "object";
|
|
1547
|
+
readonly additionalProperties: false;
|
|
1548
|
+
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.";
|
|
1549
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1550
|
+
readonly properties: {
|
|
1551
|
+
readonly name: {
|
|
1552
|
+
readonly type: "string";
|
|
1553
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1554
|
+
readonly example: "blue_group";
|
|
1555
|
+
};
|
|
1556
|
+
readonly weight: {
|
|
1557
|
+
readonly type: "integer";
|
|
1558
|
+
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";
|
|
1559
|
+
readonly minimum: 0;
|
|
1560
|
+
readonly maximum: 1000;
|
|
1561
|
+
};
|
|
1562
|
+
readonly weightType: {
|
|
1563
|
+
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).";
|
|
1564
|
+
readonly type: "string";
|
|
1565
|
+
readonly example: "fix";
|
|
1566
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1567
|
+
};
|
|
1568
|
+
readonly stickiness: {
|
|
1569
|
+
readonly type: "string";
|
|
1570
|
+
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";
|
|
1571
|
+
readonly example: "custom.context.field";
|
|
1572
|
+
};
|
|
1573
|
+
readonly payload: {
|
|
1574
|
+
readonly type: "object";
|
|
1575
|
+
readonly required: readonly ["type", "value"];
|
|
1576
|
+
readonly description: "Extra data configured for this variant";
|
|
1577
|
+
readonly properties: {
|
|
1578
|
+
readonly type: {
|
|
1579
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1580
|
+
readonly type: "string";
|
|
1581
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1582
|
+
};
|
|
1583
|
+
readonly value: {
|
|
1584
|
+
readonly description: "The actual value of payload";
|
|
1585
|
+
readonly type: "string";
|
|
1586
|
+
};
|
|
1587
|
+
};
|
|
1588
|
+
readonly example: {
|
|
1589
|
+
readonly type: "json";
|
|
1590
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
readonly components: {};
|
|
1595
|
+
};
|
|
1103
1596
|
};
|
|
1104
1597
|
};
|
|
1105
1598
|
};
|
|
1599
|
+
readonly strategyVariantSchema: {
|
|
1600
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
1601
|
+
readonly type: "object";
|
|
1602
|
+
readonly additionalProperties: false;
|
|
1603
|
+
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.";
|
|
1604
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
1605
|
+
readonly properties: {
|
|
1606
|
+
readonly name: {
|
|
1607
|
+
readonly type: "string";
|
|
1608
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
1609
|
+
readonly example: "blue_group";
|
|
1610
|
+
};
|
|
1611
|
+
readonly weight: {
|
|
1612
|
+
readonly type: "integer";
|
|
1613
|
+
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";
|
|
1614
|
+
readonly minimum: 0;
|
|
1615
|
+
readonly maximum: 1000;
|
|
1616
|
+
};
|
|
1617
|
+
readonly weightType: {
|
|
1618
|
+
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).";
|
|
1619
|
+
readonly type: "string";
|
|
1620
|
+
readonly example: "fix";
|
|
1621
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1622
|
+
};
|
|
1623
|
+
readonly stickiness: {
|
|
1624
|
+
readonly type: "string";
|
|
1625
|
+
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";
|
|
1626
|
+
readonly example: "custom.context.field";
|
|
1627
|
+
};
|
|
1628
|
+
readonly payload: {
|
|
1629
|
+
readonly type: "object";
|
|
1630
|
+
readonly required: readonly ["type", "value"];
|
|
1631
|
+
readonly description: "Extra data configured for this variant";
|
|
1632
|
+
readonly properties: {
|
|
1633
|
+
readonly type: {
|
|
1634
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1635
|
+
readonly type: "string";
|
|
1636
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1637
|
+
};
|
|
1638
|
+
readonly value: {
|
|
1639
|
+
readonly description: "The actual value of payload";
|
|
1640
|
+
readonly type: "string";
|
|
1641
|
+
};
|
|
1642
|
+
};
|
|
1643
|
+
readonly example: {
|
|
1644
|
+
readonly type: "json";
|
|
1645
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1646
|
+
};
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
readonly components: {};
|
|
1650
|
+
};
|
|
1106
1651
|
readonly variantSchema: {
|
|
1107
1652
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1108
1653
|
readonly type: "object";
|
|
@@ -1124,7 +1669,8 @@ export declare const exportResultSchema: {
|
|
|
1124
1669
|
readonly weightType: {
|
|
1125
1670
|
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";
|
|
1126
1671
|
readonly type: "string";
|
|
1127
|
-
readonly example: "
|
|
1672
|
+
readonly example: "variable";
|
|
1673
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1128
1674
|
};
|
|
1129
1675
|
readonly stickiness: {
|
|
1130
1676
|
readonly type: "string";
|
|
@@ -1135,17 +1681,21 @@ export declare const exportResultSchema: {
|
|
|
1135
1681
|
readonly type: "object";
|
|
1136
1682
|
readonly required: readonly ["type", "value"];
|
|
1137
1683
|
readonly description: "Extra data configured for this variant";
|
|
1684
|
+
readonly additionalProperties: false;
|
|
1138
1685
|
readonly properties: {
|
|
1139
1686
|
readonly type: {
|
|
1687
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1140
1688
|
readonly type: "string";
|
|
1689
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1141
1690
|
};
|
|
1142
1691
|
readonly value: {
|
|
1692
|
+
readonly description: "The actual value of payload";
|
|
1143
1693
|
readonly type: "string";
|
|
1144
1694
|
};
|
|
1145
1695
|
};
|
|
1146
1696
|
readonly example: {
|
|
1147
1697
|
readonly type: "json";
|
|
1148
|
-
readonly value: "{color: red}";
|
|
1698
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1149
1699
|
};
|
|
1150
1700
|
};
|
|
1151
1701
|
readonly overrides: {
|
|
@@ -1191,39 +1741,53 @@ export declare const exportResultSchema: {
|
|
|
1191
1741
|
readonly $id: "#/components/schemas/contextFieldSchema";
|
|
1192
1742
|
readonly type: "object";
|
|
1193
1743
|
readonly additionalProperties: false;
|
|
1744
|
+
readonly description: "A representation of a [context field](https://docs.getunleash.io/reference/unleash-context).";
|
|
1194
1745
|
readonly required: readonly ["name"];
|
|
1195
1746
|
readonly properties: {
|
|
1196
1747
|
readonly name: {
|
|
1748
|
+
readonly description: "The name of the context field";
|
|
1197
1749
|
readonly type: "string";
|
|
1750
|
+
readonly example: "userId";
|
|
1198
1751
|
};
|
|
1199
1752
|
readonly description: {
|
|
1753
|
+
readonly description: "The description of the context field.";
|
|
1200
1754
|
readonly type: "string";
|
|
1201
1755
|
readonly nullable: true;
|
|
1756
|
+
readonly example: "Used to uniquely identify users";
|
|
1202
1757
|
};
|
|
1203
1758
|
readonly stickiness: {
|
|
1759
|
+
readonly description: "Does this context field support being used for [stickiness](https://docs.getunleash.io/reference/stickiness) calculations";
|
|
1204
1760
|
readonly type: "boolean";
|
|
1761
|
+
readonly example: true;
|
|
1205
1762
|
};
|
|
1206
1763
|
readonly sortOrder: {
|
|
1207
|
-
readonly
|
|
1764
|
+
readonly description: "Used when sorting a list of context fields. Is also used as a tiebreaker if a list of context fields is sorted alphabetically.";
|
|
1765
|
+
readonly type: "integer";
|
|
1766
|
+
readonly example: 900;
|
|
1208
1767
|
};
|
|
1209
1768
|
readonly createdAt: {
|
|
1769
|
+
readonly description: "When this context field was created";
|
|
1210
1770
|
readonly type: "string";
|
|
1211
1771
|
readonly format: "date-time";
|
|
1212
1772
|
readonly nullable: true;
|
|
1773
|
+
readonly example: "2023-06-29T10:19:00.000Z";
|
|
1213
1774
|
};
|
|
1214
1775
|
readonly usedInFeatures: {
|
|
1215
|
-
readonly type: "
|
|
1776
|
+
readonly type: "integer";
|
|
1216
1777
|
readonly description: "Number of projects where this context field is used in";
|
|
1217
1778
|
readonly example: 3;
|
|
1218
1779
|
readonly nullable: true;
|
|
1780
|
+
readonly minimum: 0;
|
|
1219
1781
|
};
|
|
1220
1782
|
readonly usedInProjects: {
|
|
1221
|
-
readonly type: "
|
|
1783
|
+
readonly type: "integer";
|
|
1222
1784
|
readonly description: "Number of projects where this context field is used in";
|
|
1223
1785
|
readonly example: 2;
|
|
1224
1786
|
readonly nullable: true;
|
|
1787
|
+
readonly minimum: 0;
|
|
1225
1788
|
};
|
|
1226
1789
|
readonly legalValues: {
|
|
1790
|
+
readonly description: "Allowed values for this context field schema. Can be used to narrow down accepted input";
|
|
1227
1791
|
readonly type: "array";
|
|
1228
1792
|
readonly items: {
|
|
1229
1793
|
readonly $ref: "#/components/schemas/legalValueSchema";
|
|
@@ -1236,13 +1800,18 @@ export declare const exportResultSchema: {
|
|
|
1236
1800
|
readonly $id: "#/components/schemas/legalValueSchema";
|
|
1237
1801
|
readonly type: "object";
|
|
1238
1802
|
readonly additionalProperties: false;
|
|
1803
|
+
readonly description: "Describes a legal value. Typically used to limit possible values for contextFields or strategy properties";
|
|
1239
1804
|
readonly required: readonly ["value"];
|
|
1240
1805
|
readonly properties: {
|
|
1241
1806
|
readonly value: {
|
|
1807
|
+
readonly description: "The valid value";
|
|
1242
1808
|
readonly type: "string";
|
|
1809
|
+
readonly example: "#c154c1";
|
|
1243
1810
|
};
|
|
1244
1811
|
readonly description: {
|
|
1812
|
+
readonly description: "Describes this specific legal value";
|
|
1245
1813
|
readonly type: "string";
|
|
1814
|
+
readonly example: "Deep fuchsia";
|
|
1246
1815
|
};
|
|
1247
1816
|
};
|
|
1248
1817
|
readonly components: {};
|
|
@@ -1314,7 +1883,8 @@ export declare const exportResultSchema: {
|
|
|
1314
1883
|
readonly weightType: {
|
|
1315
1884
|
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";
|
|
1316
1885
|
readonly type: "string";
|
|
1317
|
-
readonly example: "
|
|
1886
|
+
readonly example: "variable";
|
|
1887
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1318
1888
|
};
|
|
1319
1889
|
readonly stickiness: {
|
|
1320
1890
|
readonly type: "string";
|
|
@@ -1325,17 +1895,21 @@ export declare const exportResultSchema: {
|
|
|
1325
1895
|
readonly type: "object";
|
|
1326
1896
|
readonly required: readonly ["type", "value"];
|
|
1327
1897
|
readonly description: "Extra data configured for this variant";
|
|
1898
|
+
readonly additionalProperties: false;
|
|
1328
1899
|
readonly properties: {
|
|
1329
1900
|
readonly type: {
|
|
1901
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1330
1902
|
readonly type: "string";
|
|
1903
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1331
1904
|
};
|
|
1332
1905
|
readonly value: {
|
|
1906
|
+
readonly description: "The actual value of payload";
|
|
1333
1907
|
readonly type: "string";
|
|
1334
1908
|
};
|
|
1335
1909
|
};
|
|
1336
1910
|
readonly example: {
|
|
1337
1911
|
readonly type: "json";
|
|
1338
|
-
readonly value: "{color: red}";
|
|
1912
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1339
1913
|
};
|
|
1340
1914
|
};
|
|
1341
1915
|
readonly overrides: {
|
|
@@ -1421,7 +1995,8 @@ export declare const exportResultSchema: {
|
|
|
1421
1995
|
readonly weightType: {
|
|
1422
1996
|
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";
|
|
1423
1997
|
readonly type: "string";
|
|
1424
|
-
readonly example: "
|
|
1998
|
+
readonly example: "variable";
|
|
1999
|
+
readonly enum: readonly ["variable", "fix"];
|
|
1425
2000
|
};
|
|
1426
2001
|
readonly stickiness: {
|
|
1427
2002
|
readonly type: "string";
|
|
@@ -1432,17 +2007,21 @@ export declare const exportResultSchema: {
|
|
|
1432
2007
|
readonly type: "object";
|
|
1433
2008
|
readonly required: readonly ["type", "value"];
|
|
1434
2009
|
readonly description: "Extra data configured for this variant";
|
|
2010
|
+
readonly additionalProperties: false;
|
|
1435
2011
|
readonly properties: {
|
|
1436
2012
|
readonly type: {
|
|
2013
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
1437
2014
|
readonly type: "string";
|
|
2015
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
1438
2016
|
};
|
|
1439
2017
|
readonly value: {
|
|
2018
|
+
readonly description: "The actual value of payload";
|
|
1440
2019
|
readonly type: "string";
|
|
1441
2020
|
};
|
|
1442
2021
|
};
|
|
1443
2022
|
readonly example: {
|
|
1444
2023
|
readonly type: "json";
|
|
1445
|
-
readonly value: "{color: red}";
|
|
2024
|
+
readonly value: "{\"color\": \"red\"}";
|
|
1446
2025
|
};
|
|
1447
2026
|
};
|
|
1448
2027
|
readonly overrides: {
|
|
@@ -1551,6 +2130,7 @@ export declare const exportResultSchema: {
|
|
|
1551
2130
|
readonly parametersSchema: {
|
|
1552
2131
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
1553
2132
|
readonly type: "object";
|
|
2133
|
+
readonly description: "A list of parameters for a strategy";
|
|
1554
2134
|
readonly additionalProperties: {
|
|
1555
2135
|
readonly type: "string";
|
|
1556
2136
|
};
|
|
@@ -1560,13 +2140,18 @@ export declare const exportResultSchema: {
|
|
|
1560
2140
|
readonly $id: "#/components/schemas/legalValueSchema";
|
|
1561
2141
|
readonly type: "object";
|
|
1562
2142
|
readonly additionalProperties: false;
|
|
2143
|
+
readonly description: "Describes a legal value. Typically used to limit possible values for contextFields or strategy properties";
|
|
1563
2144
|
readonly required: readonly ["value"];
|
|
1564
2145
|
readonly properties: {
|
|
1565
2146
|
readonly value: {
|
|
2147
|
+
readonly description: "The valid value";
|
|
1566
2148
|
readonly type: "string";
|
|
2149
|
+
readonly example: "#c154c1";
|
|
1567
2150
|
};
|
|
1568
2151
|
readonly description: {
|
|
2152
|
+
readonly description: "Describes this specific legal value";
|
|
1569
2153
|
readonly type: "string";
|
|
2154
|
+
readonly example: "Deep fuchsia";
|
|
1570
2155
|
};
|
|
1571
2156
|
};
|
|
1572
2157
|
readonly components: {};
|
|
@@ -1575,17 +2160,24 @@ export declare const exportResultSchema: {
|
|
|
1575
2160
|
readonly $id: "#/components/schemas/tagTypeSchema";
|
|
1576
2161
|
readonly type: "object";
|
|
1577
2162
|
readonly additionalProperties: false;
|
|
2163
|
+
readonly description: "A tag type.";
|
|
1578
2164
|
readonly required: readonly ["name"];
|
|
1579
2165
|
readonly properties: {
|
|
1580
2166
|
readonly name: {
|
|
1581
2167
|
readonly type: "string";
|
|
2168
|
+
readonly description: "The name of the tag type.";
|
|
2169
|
+
readonly example: "color";
|
|
1582
2170
|
};
|
|
1583
2171
|
readonly description: {
|
|
1584
2172
|
readonly type: "string";
|
|
2173
|
+
readonly description: "The description of the tag type.";
|
|
2174
|
+
readonly example: "A tag type for describing the color of a tag.";
|
|
1585
2175
|
};
|
|
1586
2176
|
readonly icon: {
|
|
1587
2177
|
readonly type: "string";
|
|
1588
2178
|
readonly nullable: true;
|
|
2179
|
+
readonly description: "The icon of the tag type.";
|
|
2180
|
+
readonly example: "not-really-used";
|
|
1589
2181
|
};
|
|
1590
2182
|
};
|
|
1591
2183
|
readonly components: {};
|