unleash-server 5.1.9 → 5.2.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/create-config.js +5 -2
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +2 -1
- package/dist/lib/db/access-store.js +17 -3
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-metrics-store-v2.js +19 -30
- package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
- package/dist/lib/db/context-field-store.d.ts +4 -1
- package/dist/lib/db/context-field-store.js +44 -14
- package/dist/lib/db/context-field-store.js.map +1 -1
- package/dist/lib/db/environment-store.d.ts +1 -0
- package/dist/lib/db/environment-store.js +6 -0
- package/dist/lib/db/environment-store.js.map +1 -1
- package/dist/lib/db/event-store.js +2 -1
- package/dist/lib/db/event-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.d.ts +2 -0
- package/dist/lib/db/feature-strategy-store.js +25 -0
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +75 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -0
- package/dist/lib/db/group-store.d.ts +1 -1
- package/dist/lib/db/group-store.js +2 -2
- package/dist/lib/db/group-store.js.map +1 -1
- package/dist/lib/db/index.js +2 -2
- package/dist/lib/db/index.js.map +1 -1
- package/dist/lib/db/role-store.js +2 -2
- package/dist/lib/db/role-store.js.map +1 -1
- package/dist/lib/db/segment-store.d.ts +6 -2
- package/dist/lib/db/segment-store.js +27 -6
- package/dist/lib/db/segment-store.js.map +1 -1
- package/dist/lib/error/no-access-error.d.ts +3 -2
- package/dist/lib/error/no-access-error.js +10 -4
- package/dist/lib/error/no-access-error.js.map +1 -1
- package/dist/lib/error/unleash-error.test.js +8 -2
- package/dist/lib/error/unleash-error.test.js.map +1 -1
- package/dist/lib/features/access/createAccessService.js +5 -5
- package/dist/lib/features/access/createAccessService.js.map +1 -1
- package/dist/lib/features/export-import-toggles/createExportImportService.js +4 -2
- package/dist/lib/features/export-import-toggles/createExportImportService.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-api-usage.test.d.ts +1 -0
- package/dist/lib/features/export-import-toggles/export-import-api-usage.test.js +69 -0
- package/dist/lib/features/export-import-toggles/export-import-api-usage.test.js.map +1 -0
- package/dist/lib/features/export-import-toggles/export-import-controller.js +5 -1
- package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-service.js +7 -2
- package/dist/lib/features/export-import-toggles/export-import-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +4 -4
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/playground/advanced-playground.test.d.ts +1 -0
- package/dist/lib/features/playground/advanced-playground.test.js +238 -0
- package/dist/lib/features/playground/advanced-playground.test.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/client.d.ts +3 -2
- package/dist/lib/{util → features/playground}/feature-evaluator/client.js +1 -1
- package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/constraint.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/context.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/feature-evaluator.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/feature.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/helpers.d.ts +1 -1
- package/dist/lib/features/playground/feature-evaluator/helpers.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/index.d.ts +1 -1
- package/dist/lib/{util → features/playground}/feature-evaluator/index.js +2 -2
- package/dist/lib/features/playground/feature-evaluator/index.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/bootstrap-provider.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/index.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/storage-provider-in-mem.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/repository/storage-provider.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/application-hostname-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/default-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/flexible-rollout-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-random.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-session-id.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/gradual-rollout-user-id.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/index.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/remote-address-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -0
- package/dist/lib/{util → features/playground}/feature-evaluator/strategy/unknown-strategy.js +1 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/unknown-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/user-with-id-strategy.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/strategy/util.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -0
- package/dist/lib/features/playground/generateObjectCombinations.d.ts +7 -0
- package/dist/lib/features/playground/generateObjectCombinations.js +16 -0
- package/dist/lib/features/playground/generateObjectCombinations.js.map +1 -0
- package/dist/lib/features/playground/generateObjectCombinations.test.d.ts +1 -0
- package/dist/lib/features/playground/generateObjectCombinations.test.js +33 -0
- package/dist/lib/features/playground/generateObjectCombinations.test.js.map +1 -0
- package/dist/lib/{util → features/playground}/offline-unleash-client.js +2 -2
- package/dist/lib/features/playground/offline-unleash-client.js.map +1 -0
- package/dist/lib/{util → features/playground}/offline-unleash-client.test.js +1 -1
- package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -0
- package/dist/lib/features/playground/playground-service.d.ts +34 -0
- package/dist/lib/features/playground/playground-service.js +114 -0
- package/dist/lib/features/playground/playground-service.js.map +1 -0
- package/dist/lib/features/playground/playground-view-model.d.ts +4 -0
- package/dist/lib/features/playground/playground-view-model.js +49 -0
- package/dist/lib/features/playground/playground-view-model.js.map +1 -0
- package/dist/lib/features/playground/playground-view-model.test.d.ts +1 -0
- package/dist/lib/features/playground/playground-view-model.test.js +122 -0
- package/dist/lib/features/playground/playground-view-model.test.js.map +1 -0
- package/dist/lib/features/playground/playground.d.ts +16 -0
- package/dist/lib/features/playground/playground.js +78 -0
- package/dist/lib/features/playground/playground.js.map +1 -0
- package/dist/lib/features/playground/playground.test.d.ts +1 -0
- package/dist/lib/{routes/admin-api → features/playground}/playground.test.js +3 -2
- package/dist/lib/features/playground/playground.test.js.map +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.d.ts +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.js +15 -0
- package/dist/lib/features/playground/validateQueryComplexity.js.map +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.test.d.ts +1 -0
- package/dist/lib/features/playground/validateQueryComplexity.test.js +19 -0
- package/dist/lib/features/playground/validateQueryComplexity.test.js.map +1 -0
- package/dist/lib/middleware/rbac-middleware.d.ts +1 -1
- package/dist/lib/middleware/rbac-middleware.js +7 -4
- package/dist/lib/middleware/rbac-middleware.js.map +1 -1
- package/dist/lib/middleware/rbac-middleware.test.js +8 -8
- package/dist/lib/middleware/rbac-middleware.test.js.map +1 -1
- package/dist/lib/openapi/endpoint-descriptions.d.ts +4 -0
- package/dist/lib/openapi/endpoint-descriptions.js +4 -0
- package/dist/lib/openapi/endpoint-descriptions.js.map +1 -1
- package/dist/lib/openapi/index.js +7 -0
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +16 -25
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +652 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +146 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +1217 -0
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.js +51 -0
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/advanced-playground-request-schema.d.ts +95 -0
- package/dist/lib/openapi/spec/advanced-playground-request-schema.js +49 -0
- package/dist/lib/openapi/spec/advanced-playground-request-schema.js.map +1 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +2560 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.js +50 -0
- package/dist/lib/openapi/spec/advanced-playground-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/client-application-schema.d.ts +17 -0
- package/dist/lib/openapi/spec/client-application-schema.js +17 -0
- package/dist/lib/openapi/spec/client-application-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +44 -13
- package/dist/lib/openapi/spec/client-feature-schema.js +17 -12
- package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-query-schema.d.ts +12 -0
- package/dist/lib/openapi/spec/client-features-query-schema.js +12 -0
- package/dist/lib/openapi/spec/client-features-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.d.ts +90 -14
- package/dist/lib/openapi/spec/client-features-schema.js +7 -0
- package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.test.js +5 -12
- package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.js +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-schema.d.ts +13 -0
- package/dist/lib/openapi/spec/context-field-schema.js +13 -0
- package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +43 -0
- package/dist/lib/openapi/spec/context-field-strategies-schema.js +51 -0
- package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -0
- package/dist/lib/openapi/spec/context-fields-schema.d.ts +13 -0
- package/dist/lib/openapi/spec/create-application-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-application-schema.js +0 -1
- package/dist/lib/openapi/spec/create-application-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +137 -4
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +22 -1
- package/dist/lib/openapi/spec/feature-schema.d.ts +49 -2
- package/dist/lib/openapi/spec/feature-schema.test.js +1 -1
- package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-variants-schema.d.ts +26 -0
- package/dist/lib/openapi/spec/features-schema.d.ts +98 -4
- package/dist/lib/openapi/spec/health-check-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/health-check-schema.js +3 -0
- package/dist/lib/openapi/spec/health-check-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +98 -4
- package/dist/lib/openapi/spec/health-report-schema.d.ts +98 -4
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +274 -8
- package/dist/lib/openapi/spec/index.d.ts +3 -0
- package/dist/lib/openapi/spec/index.js +3 -0
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/instance-admin-stats-schema.d.ts +65 -2
- package/dist/lib/openapi/spec/instance-admin-stats-schema.js +65 -2
- package/dist/lib/openapi/spec/instance-admin-stats-schema.js.map +1 -1
- package/dist/lib/openapi/spec/override-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/override-schema.js +5 -0
- package/dist/lib/openapi/spec/override-schema.js.map +1 -1
- package/dist/lib/openapi/spec/password-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/password-schema.js +3 -0
- package/dist/lib/openapi/spec/password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +41 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js +6 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.test.js +3 -0
- package/dist/lib/openapi/spec/playground-feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.d.ts +7 -1
- package/dist/lib/openapi/spec/playground-request-schema.js +1 -1
- package/dist/lib/openapi/spec/playground-request-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +93 -3
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +13 -1
- package/dist/lib/openapi/spec/playground-strategy-schema.js +13 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +49 -2
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +98 -4
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +26 -0
- package/dist/lib/openapi/spec/sdk-context-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/sdk-context-schema.js +14 -2
- package/dist/lib/openapi/spec/sdk-context-schema.js.map +1 -1
- package/dist/lib/openapi/spec/state-schema.d.ts +72 -4
- package/dist/lib/openapi/spec/variant-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/variant-schema.js +13 -0
- package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +26 -0
- package/dist/lib/openapi/util/create-response-schema.d.ts +1 -0
- package/dist/lib/openapi/util/create-response-schema.js +7 -1
- package/dist/lib/openapi/util/create-response-schema.js.map +1 -1
- package/dist/lib/proxy/proxy-repository.js +1 -1
- package/dist/lib/proxy/proxy-repository.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.d.ts +2 -0
- package/dist/lib/routes/admin-api/api-token.js +120 -11
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +3 -0
- package/dist/lib/routes/admin-api/context.js +21 -0
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/index.js +1 -1
- package/dist/lib/routes/admin-api/index.js.map +1 -1
- package/dist/lib/routes/admin-api/instance-admin.d.ts +3 -1
- package/dist/lib/routes/admin-api/instance-admin.js +41 -0
- package/dist/lib/routes/admin-api/instance-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/metrics.test.js +12 -0
- package/dist/lib/routes/admin-api/metrics.test.js.map +1 -1
- package/dist/lib/routes/admin-api/project/api-token.js +7 -0
- package/dist/lib/routes/admin-api/project/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/user/user.js +5 -4
- package/dist/lib/routes/admin-api/user/user.js.map +1 -1
- package/dist/lib/routes/admin-api/user/user.test.js +30 -5
- package/dist/lib/routes/admin-api/user/user.test.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.js +0 -1
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/client-api/feature.js +4 -0
- package/dist/lib/routes/client-api/feature.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.js +2 -0
- package/dist/lib/routes/client-api/metrics.js.map +1 -1
- package/dist/lib/routes/client-api/register.js +2 -0
- package/dist/lib/routes/client-api/register.js.map +1 -1
- package/dist/lib/routes/controller.d.ts +8 -7
- package/dist/lib/routes/controller.js +11 -10
- package/dist/lib/routes/controller.js.map +1 -1
- package/dist/lib/routes/health-check.js +2 -0
- package/dist/lib/routes/health-check.js.map +1 -1
- package/dist/lib/server-impl.js +1 -1
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/access-service.d.ts +6 -4
- package/dist/lib/services/access-service.js +47 -11
- package/dist/lib/services/access-service.js.map +1 -1
- package/dist/lib/services/access-service.test.js +39 -22
- package/dist/lib/services/access-service.test.js.map +1 -1
- package/dist/lib/services/api-token-service.d.ts +1 -0
- package/dist/lib/services/api-token-service.js +3 -0
- package/dist/lib/services/api-token-service.js.map +1 -1
- package/dist/lib/services/context-service.d.ts +4 -1
- package/dist/lib/services/context-service.js +14 -1
- package/dist/lib/services/context-service.js.map +1 -1
- package/dist/lib/services/feature-toggle-service.d.ts +1 -1
- package/dist/lib/services/feature-toggle-service.js +6 -7
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/group-service.js +1 -3
- package/dist/lib/services/group-service.js.map +1 -1
- package/dist/lib/services/index.d.ts +1 -1
- package/dist/lib/services/index.js +1 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/instance-stats-service.d.ts +2 -3
- package/dist/lib/services/user-service.d.ts +1 -0
- package/dist/lib/services/user-service.js +8 -0
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +37 -1
- package/dist/lib/services/version-service.js +76 -5
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/services/version-service.test.js +196 -9
- package/dist/lib/services/version-service.test.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +6 -2
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/model.d.ts +8 -4
- package/dist/lib/types/model.js +1 -0
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/option.d.ts +2 -0
- package/dist/lib/types/permissions.d.ts +34 -27
- package/dist/lib/types/permissions.js +85 -29
- package/dist/lib/types/permissions.js.map +1 -1
- package/dist/lib/types/services.d.ts +1 -1
- package/dist/lib/types/stores/access-store.d.ts +1 -1
- package/dist/lib/types/stores/context-field-store.d.ts +2 -0
- package/dist/lib/types/stores/environment-store.d.ts +1 -0
- package/dist/lib/types/stores/feature-strategies-store.d.ts +2 -0
- package/dist/lib/types/stores/feature-toggle-store.d.ts +1 -1
- package/dist/lib/types/stores/group-store.d.ts +1 -1
- package/dist/lib/util/constants.d.ts +7 -1
- package/dist/lib/util/constants.js +8 -2
- package/dist/lib/util/constants.js.map +1 -1
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +8 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/index.d.ts +1 -1
- package/dist/lib/util/index.js +1 -1
- package/dist/lib/util/index.js.map +1 -1
- package/dist/migrations/20230615122909-fix-env-sort-order.d.ts +2 -0
- package/dist/migrations/20230615122909-fix-env-sort-order.js +28 -0
- package/dist/migrations/20230615122909-fix-env-sort-order.js.map +1 -0
- package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.d.ts +2 -0
- package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.js +26 -0
- package/dist/migrations/20230619105029-new-fine-grained-api-token-permissions.js.map +1 -0
- package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.d.ts +2 -0
- package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.js +23 -0
- package/dist/migrations/20230619110243-assign-apitoken-permissions-to-rootroles.js.map +1 -0
- package/dist/migrations/20230621141239-refactor-api-token-permissions.d.ts +2 -0
- package/dist/migrations/20230621141239-refactor-api-token-permissions.js +19 -0
- package/dist/migrations/20230621141239-refactor-api-token-permissions.js.map +1 -0
- package/dist/server-dev.js +3 -3
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.test.js +3 -1
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/config/test-config.js +0 -1
- package/dist/test/config/test-config.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js +542 -3
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js +14 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/client-metrics.e2e.test.js +1 -8
- package/dist/test/e2e/api/admin/client-metrics.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/context.e2e.test.js +47 -1
- package/dist/test/e2e/api/admin/context.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +14 -14
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/helpers/test-helper.d.ts +1 -1
- package/dist/test/e2e/helpers/test-helper.js +4 -2
- package/dist/test/e2e/helpers/test-helper.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/playground-service.test.js +2 -2
- package/dist/test/e2e/services/playground-service.test.js.map +1 -1
- package/dist/test/fixtures/access-service-mock.js +1 -1
- package/dist/test/fixtures/access-service-mock.js.map +1 -1
- package/dist/test/fixtures/fake-access-store.d.ts +5 -3
- package/dist/test/fixtures/fake-access-store.js +24 -9
- package/dist/test/fixtures/fake-access-store.js.map +1 -1
- package/dist/test/fixtures/fake-environment-store.d.ts +1 -0
- package/dist/test/fixtures/fake-environment-store.js +3 -0
- package/dist/test/fixtures/fake-environment-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-strategies-store.d.ts +2 -0
- package/dist/test/fixtures/fake-feature-strategies-store.js +7 -0
- package/dist/test/fixtures/fake-feature-strategies-store.js.map +1 -1
- package/dist/test/fixtures/fake-group-store.d.ts +1 -1
- package/dist/test/fixtures/fake-group-store.js +1 -1
- package/dist/test/fixtures/fake-group-store.js.map +1 -1
- package/dist/test/fixtures/fake-role-store.d.ts +1 -1
- package/dist/test/fixtures/fake-role-store.js +9 -4
- package/dist/test/fixtures/fake-role-store.js.map +1 -1
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/AdvancedPlayground-520a25e1.js +1 -0
- package/frontend/build/static/CreateProject-c430691b.js +4 -0
- package/frontend/build/static/{Error-fa3099b2.js → Error-492e8b38.js} +1 -1
- package/frontend/build/static/FeatureArchiveDialog-70daa567.js +10 -0
- package/frontend/build/static/{FeatureMetricsChart-caa58088.js → FeatureMetricsChart-bc99b364.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-01d70575.js +7 -0
- package/frontend/build/static/LazyAdminExport-e2c90193.js +37 -0
- package/frontend/build/static/LazyProjectExport-fa62d2fe.js +13 -0
- package/frontend/build/static/NetworkOverview-3b72e4ea.js +1298 -0
- package/frontend/build/static/NetworkTraffic-365db744.js +1 -0
- package/frontend/build/static/Playground-b473b399.js +1 -0
- package/frontend/build/static/{Playground-3eeb2ce7.js → PlaygroundGuidancePopper-8e3e97db.js} +12 -12
- package/frontend/build/static/RoleCell-9bb513a8.js +1 -0
- package/frontend/build/static/StrategyItemContainer-1f7503c7.js +1 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-d0669d39.js → chartjs-adapter-date-fns.esm-db338d44.js} +1 -1
- package/frontend/build/static/flowchart-elk-definition-170a3958-a428dd25.js +134 -0
- package/frontend/build/static/index-0a56292a.js +450 -0
- package/frontend/build/static/{index-70a530dd.js → index-d362ae7a.js} +1 -1
- package/frontend/build/static/{index-5ae801ef.js → index-dc5debe9.js} +1 -1
- package/frontend/build/static/is_dark-884249e0.js +1 -0
- package/frontend/build/static/mindmap-definition-44684416-3c9425ff.js +101 -0
- package/frontend/build/static/stringify-ec884b6d.js +1 -0
- package/frontend/build/static/timeline-definition-8e5a9bc6-d289cd6d.js +62 -0
- package/frontend/build/static/{unknownify-d86d026c.js → unknownify-5b23bf29.js} +1 -1
- package/frontend/package.json +18 -17
- package/package.json +16 -13
- package/dist/lib/routes/admin-api/playground.d.ts +0 -12
- package/dist/lib/routes/admin-api/playground.js +0 -46
- package/dist/lib/routes/admin-api/playground.js.map +0 -1
- package/dist/lib/routes/admin-api/playground.test.js.map +0 -1
- package/dist/lib/services/playground-service.d.ts +0 -12
- package/dist/lib/services/playground-service.js +0 -65
- package/dist/lib/services/playground-service.js.map +0 -1
- package/dist/lib/util/feature-evaluator/client.js.map +0 -1
- package/dist/lib/util/feature-evaluator/constraint.js.map +0 -1
- package/dist/lib/util/feature-evaluator/context.js.map +0 -1
- package/dist/lib/util/feature-evaluator/feature-evaluator.js.map +0 -1
- package/dist/lib/util/feature-evaluator/feature.js.map +0 -1
- package/dist/lib/util/feature-evaluator/helpers.js.map +0 -1
- package/dist/lib/util/feature-evaluator/index.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/bootstrap-provider.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/index.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/storage-provider-in-mem.js.map +0 -1
- package/dist/lib/util/feature-evaluator/repository/storage-provider.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/application-hostname-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/default-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/flexible-rollout-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-random.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-session-id.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/gradual-rollout-user-id.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/index.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/remote-address-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/unknown-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/user-with-id-strategy.js.map +0 -1
- package/dist/lib/util/feature-evaluator/strategy/util.js.map +0 -1
- package/dist/lib/util/feature-evaluator/variant.js.map +0 -1
- package/dist/lib/util/offline-unleash-client.js.map +0 -1
- package/dist/lib/util/offline-unleash-client.test.js.map +0 -1
- package/frontend/build/static/CreateProject-0e1caafd.js +0 -4
- package/frontend/build/static/FeatureArchiveDialog-ec9e5524.js +0 -4
- package/frontend/build/static/FeatureViewLazyExport-4da2d0f1.js +0 -7
- package/frontend/build/static/LazyAdminExport-b294bdfc.js +0 -43
- package/frontend/build/static/LazyProjectExport-fc25f20d.js +0 -19
- package/frontend/build/static/NetworkOverview-9038e532.js +0 -1296
- package/frontend/build/static/NetworkTraffic-de75c58b.js +0 -1
- package/frontend/build/static/StrategyItemContainer-4f8afe80.js +0 -1
- package/frontend/build/static/index-e59cfb08.js +0 -450
- package/frontend/build/static/useProjectRole-cddab9e6.js +0 -1
- package/frontend/build/static/v4-a960c1f4.js +0 -1
- /package/dist/lib/{routes/admin-api/playground.test.d.ts → db/feature-strategy-store.test.d.ts} +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/constraint.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/constraint.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/context.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/context.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature-evaluator.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature-evaluator.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/feature.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/helpers.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/bootstrap-provider.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/bootstrap-provider.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/index.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/index.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider-in-mem.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider-in-mem.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/repository/storage-provider.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/application-hostname-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/application-hostname-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/default-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/default-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/flexible-rollout-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/flexible-rollout-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-random.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-random.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-session-id.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-session-id.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-user-id.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/gradual-rollout-user-id.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/index.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/index.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/remote-address-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/remote-address-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/unknown-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/user-with-id-strategy.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/user-with-id-strategy.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/util.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/strategy/util.js +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/variant.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/feature-evaluator/variant.js +0 -0
- /package/dist/lib/{util → features/playground}/offline-unleash-client.d.ts +0 -0
- /package/dist/lib/{util → features/playground}/offline-unleash-client.test.d.ts +0 -0
|
@@ -713,7 +713,7 @@ export declare const healthReportSchema: {
|
|
|
713
713
|
};
|
|
714
714
|
readonly featureStrategySchema: {
|
|
715
715
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
716
|
-
readonly description: "A
|
|
716
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
717
717
|
readonly type: "object";
|
|
718
718
|
readonly additionalProperties: false;
|
|
719
719
|
readonly required: readonly ["name"];
|
|
@@ -830,23 +830,34 @@ export declare const healthReportSchema: {
|
|
|
830
830
|
readonly $id: "#/components/schemas/variantSchema";
|
|
831
831
|
readonly type: "object";
|
|
832
832
|
readonly additionalProperties: false;
|
|
833
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
833
834
|
readonly required: readonly ["name", "weight"];
|
|
834
835
|
readonly properties: {
|
|
835
836
|
readonly name: {
|
|
836
837
|
readonly type: "string";
|
|
838
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
839
|
+
readonly example: "blue_group";
|
|
837
840
|
};
|
|
838
841
|
readonly weight: {
|
|
839
842
|
readonly type: "number";
|
|
843
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
844
|
+
readonly minimum: 0;
|
|
845
|
+
readonly maximum: 1000;
|
|
840
846
|
};
|
|
841
847
|
readonly weightType: {
|
|
848
|
+
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";
|
|
842
849
|
readonly type: "string";
|
|
850
|
+
readonly example: "fix";
|
|
843
851
|
};
|
|
844
852
|
readonly stickiness: {
|
|
845
853
|
readonly type: "string";
|
|
854
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
855
|
+
readonly example: "custom.context.field";
|
|
846
856
|
};
|
|
847
857
|
readonly payload: {
|
|
848
858
|
readonly type: "object";
|
|
849
859
|
readonly required: readonly ["type", "value"];
|
|
860
|
+
readonly description: "Extra data configured for this variant";
|
|
850
861
|
readonly properties: {
|
|
851
862
|
readonly type: {
|
|
852
863
|
readonly type: "string";
|
|
@@ -855,8 +866,13 @@ export declare const healthReportSchema: {
|
|
|
855
866
|
readonly type: "string";
|
|
856
867
|
};
|
|
857
868
|
};
|
|
869
|
+
readonly example: {
|
|
870
|
+
readonly type: "json";
|
|
871
|
+
readonly value: "{color: red}";
|
|
872
|
+
};
|
|
858
873
|
};
|
|
859
874
|
readonly overrides: {
|
|
875
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
860
876
|
readonly type: "array";
|
|
861
877
|
readonly items: {
|
|
862
878
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -870,15 +886,20 @@ export declare const healthReportSchema: {
|
|
|
870
886
|
readonly type: "object";
|
|
871
887
|
readonly additionalProperties: false;
|
|
872
888
|
readonly required: readonly ["contextName", "values"];
|
|
889
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
873
890
|
readonly properties: {
|
|
874
891
|
readonly contextName: {
|
|
892
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
875
893
|
readonly type: "string";
|
|
894
|
+
readonly example: "userId";
|
|
876
895
|
};
|
|
877
896
|
readonly values: {
|
|
897
|
+
readonly description: "Which values that should be overriden";
|
|
878
898
|
readonly type: "array";
|
|
879
899
|
readonly items: {
|
|
880
900
|
readonly type: "string";
|
|
881
901
|
};
|
|
902
|
+
readonly example: readonly ["red", "blue"];
|
|
882
903
|
};
|
|
883
904
|
};
|
|
884
905
|
readonly components: {};
|
|
@@ -891,7 +912,7 @@ export declare const healthReportSchema: {
|
|
|
891
912
|
};
|
|
892
913
|
readonly featureStrategySchema: {
|
|
893
914
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
894
|
-
readonly description: "A
|
|
915
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
895
916
|
readonly type: "object";
|
|
896
917
|
readonly additionalProperties: false;
|
|
897
918
|
readonly required: readonly ["name"];
|
|
@@ -1009,15 +1030,20 @@ export declare const healthReportSchema: {
|
|
|
1009
1030
|
readonly type: "object";
|
|
1010
1031
|
readonly additionalProperties: false;
|
|
1011
1032
|
readonly required: readonly ["contextName", "values"];
|
|
1033
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1012
1034
|
readonly properties: {
|
|
1013
1035
|
readonly contextName: {
|
|
1036
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1014
1037
|
readonly type: "string";
|
|
1038
|
+
readonly example: "userId";
|
|
1015
1039
|
};
|
|
1016
1040
|
readonly values: {
|
|
1041
|
+
readonly description: "Which values that should be overriden";
|
|
1017
1042
|
readonly type: "array";
|
|
1018
1043
|
readonly items: {
|
|
1019
1044
|
readonly type: "string";
|
|
1020
1045
|
};
|
|
1046
|
+
readonly example: readonly ["red", "blue"];
|
|
1021
1047
|
};
|
|
1022
1048
|
};
|
|
1023
1049
|
readonly components: {};
|
|
@@ -1034,23 +1060,34 @@ export declare const healthReportSchema: {
|
|
|
1034
1060
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1035
1061
|
readonly type: "object";
|
|
1036
1062
|
readonly additionalProperties: false;
|
|
1063
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
1037
1064
|
readonly required: readonly ["name", "weight"];
|
|
1038
1065
|
readonly properties: {
|
|
1039
1066
|
readonly name: {
|
|
1040
1067
|
readonly type: "string";
|
|
1068
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1069
|
+
readonly example: "blue_group";
|
|
1041
1070
|
};
|
|
1042
1071
|
readonly weight: {
|
|
1043
1072
|
readonly type: "number";
|
|
1073
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1074
|
+
readonly minimum: 0;
|
|
1075
|
+
readonly maximum: 1000;
|
|
1044
1076
|
};
|
|
1045
1077
|
readonly weightType: {
|
|
1078
|
+
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";
|
|
1046
1079
|
readonly type: "string";
|
|
1080
|
+
readonly example: "fix";
|
|
1047
1081
|
};
|
|
1048
1082
|
readonly stickiness: {
|
|
1049
1083
|
readonly type: "string";
|
|
1084
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
1085
|
+
readonly example: "custom.context.field";
|
|
1050
1086
|
};
|
|
1051
1087
|
readonly payload: {
|
|
1052
1088
|
readonly type: "object";
|
|
1053
1089
|
readonly required: readonly ["type", "value"];
|
|
1090
|
+
readonly description: "Extra data configured for this variant";
|
|
1054
1091
|
readonly properties: {
|
|
1055
1092
|
readonly type: {
|
|
1056
1093
|
readonly type: "string";
|
|
@@ -1059,8 +1096,13 @@ export declare const healthReportSchema: {
|
|
|
1059
1096
|
readonly type: "string";
|
|
1060
1097
|
};
|
|
1061
1098
|
};
|
|
1099
|
+
readonly example: {
|
|
1100
|
+
readonly type: "json";
|
|
1101
|
+
readonly value: "{color: red}";
|
|
1102
|
+
};
|
|
1062
1103
|
};
|
|
1063
1104
|
readonly overrides: {
|
|
1105
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
1064
1106
|
readonly type: "array";
|
|
1065
1107
|
readonly items: {
|
|
1066
1108
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -1074,15 +1116,20 @@ export declare const healthReportSchema: {
|
|
|
1074
1116
|
readonly type: "object";
|
|
1075
1117
|
readonly additionalProperties: false;
|
|
1076
1118
|
readonly required: readonly ["contextName", "values"];
|
|
1119
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1077
1120
|
readonly properties: {
|
|
1078
1121
|
readonly contextName: {
|
|
1122
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1079
1123
|
readonly type: "string";
|
|
1124
|
+
readonly example: "userId";
|
|
1080
1125
|
};
|
|
1081
1126
|
readonly values: {
|
|
1127
|
+
readonly description: "Which values that should be overriden";
|
|
1082
1128
|
readonly type: "array";
|
|
1083
1129
|
readonly items: {
|
|
1084
1130
|
readonly type: "string";
|
|
1085
1131
|
};
|
|
1132
|
+
readonly example: readonly ["red", "blue"];
|
|
1086
1133
|
};
|
|
1087
1134
|
};
|
|
1088
1135
|
readonly components: {};
|
|
@@ -1226,7 +1273,7 @@ export declare const healthReportSchema: {
|
|
|
1226
1273
|
};
|
|
1227
1274
|
readonly featureStrategySchema: {
|
|
1228
1275
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
1229
|
-
readonly description: "A
|
|
1276
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
1230
1277
|
readonly type: "object";
|
|
1231
1278
|
readonly additionalProperties: false;
|
|
1232
1279
|
readonly required: readonly ["name"];
|
|
@@ -1343,23 +1390,34 @@ export declare const healthReportSchema: {
|
|
|
1343
1390
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1344
1391
|
readonly type: "object";
|
|
1345
1392
|
readonly additionalProperties: false;
|
|
1393
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
1346
1394
|
readonly required: readonly ["name", "weight"];
|
|
1347
1395
|
readonly properties: {
|
|
1348
1396
|
readonly name: {
|
|
1349
1397
|
readonly type: "string";
|
|
1398
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1399
|
+
readonly example: "blue_group";
|
|
1350
1400
|
};
|
|
1351
1401
|
readonly weight: {
|
|
1352
1402
|
readonly type: "number";
|
|
1403
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1404
|
+
readonly minimum: 0;
|
|
1405
|
+
readonly maximum: 1000;
|
|
1353
1406
|
};
|
|
1354
1407
|
readonly weightType: {
|
|
1408
|
+
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";
|
|
1355
1409
|
readonly type: "string";
|
|
1410
|
+
readonly example: "fix";
|
|
1356
1411
|
};
|
|
1357
1412
|
readonly stickiness: {
|
|
1358
1413
|
readonly type: "string";
|
|
1414
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
1415
|
+
readonly example: "custom.context.field";
|
|
1359
1416
|
};
|
|
1360
1417
|
readonly payload: {
|
|
1361
1418
|
readonly type: "object";
|
|
1362
1419
|
readonly required: readonly ["type", "value"];
|
|
1420
|
+
readonly description: "Extra data configured for this variant";
|
|
1363
1421
|
readonly properties: {
|
|
1364
1422
|
readonly type: {
|
|
1365
1423
|
readonly type: "string";
|
|
@@ -1368,8 +1426,13 @@ export declare const healthReportSchema: {
|
|
|
1368
1426
|
readonly type: "string";
|
|
1369
1427
|
};
|
|
1370
1428
|
};
|
|
1429
|
+
readonly example: {
|
|
1430
|
+
readonly type: "json";
|
|
1431
|
+
readonly value: "{color: red}";
|
|
1432
|
+
};
|
|
1371
1433
|
};
|
|
1372
1434
|
readonly overrides: {
|
|
1435
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
1373
1436
|
readonly type: "array";
|
|
1374
1437
|
readonly items: {
|
|
1375
1438
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -1383,15 +1446,20 @@ export declare const healthReportSchema: {
|
|
|
1383
1446
|
readonly type: "object";
|
|
1384
1447
|
readonly additionalProperties: false;
|
|
1385
1448
|
readonly required: readonly ["contextName", "values"];
|
|
1449
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1386
1450
|
readonly properties: {
|
|
1387
1451
|
readonly contextName: {
|
|
1452
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1388
1453
|
readonly type: "string";
|
|
1454
|
+
readonly example: "userId";
|
|
1389
1455
|
};
|
|
1390
1456
|
readonly values: {
|
|
1457
|
+
readonly description: "Which values that should be overriden";
|
|
1391
1458
|
readonly type: "array";
|
|
1392
1459
|
readonly items: {
|
|
1393
1460
|
readonly type: "string";
|
|
1394
1461
|
};
|
|
1462
|
+
readonly example: readonly ["red", "blue"];
|
|
1395
1463
|
};
|
|
1396
1464
|
};
|
|
1397
1465
|
readonly components: {};
|
|
@@ -1407,15 +1475,20 @@ export declare const healthReportSchema: {
|
|
|
1407
1475
|
readonly type: "object";
|
|
1408
1476
|
readonly additionalProperties: false;
|
|
1409
1477
|
readonly required: readonly ["contextName", "values"];
|
|
1478
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1410
1479
|
readonly properties: {
|
|
1411
1480
|
readonly contextName: {
|
|
1481
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1412
1482
|
readonly type: "string";
|
|
1483
|
+
readonly example: "userId";
|
|
1413
1484
|
};
|
|
1414
1485
|
readonly values: {
|
|
1486
|
+
readonly description: "Which values that should be overriden";
|
|
1415
1487
|
readonly type: "array";
|
|
1416
1488
|
readonly items: {
|
|
1417
1489
|
readonly type: "string";
|
|
1418
1490
|
};
|
|
1491
|
+
readonly example: readonly ["red", "blue"];
|
|
1419
1492
|
};
|
|
1420
1493
|
};
|
|
1421
1494
|
readonly components: {};
|
|
@@ -1430,7 +1503,7 @@ export declare const healthReportSchema: {
|
|
|
1430
1503
|
};
|
|
1431
1504
|
readonly featureStrategySchema: {
|
|
1432
1505
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
1433
|
-
readonly description: "A
|
|
1506
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
1434
1507
|
readonly type: "object";
|
|
1435
1508
|
readonly additionalProperties: false;
|
|
1436
1509
|
readonly required: readonly ["name"];
|
|
@@ -1547,23 +1620,34 @@ export declare const healthReportSchema: {
|
|
|
1547
1620
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1548
1621
|
readonly type: "object";
|
|
1549
1622
|
readonly additionalProperties: false;
|
|
1623
|
+
readonly description: "A variant allows for further separation of users into segments. See [our excellent documentation](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) for a more detailed description";
|
|
1550
1624
|
readonly required: readonly ["name", "weight"];
|
|
1551
1625
|
readonly properties: {
|
|
1552
1626
|
readonly name: {
|
|
1553
1627
|
readonly type: "string";
|
|
1628
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1629
|
+
readonly example: "blue_group";
|
|
1554
1630
|
};
|
|
1555
1631
|
readonly weight: {
|
|
1556
1632
|
readonly type: "number";
|
|
1633
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
1634
|
+
readonly minimum: 0;
|
|
1635
|
+
readonly maximum: 1000;
|
|
1557
1636
|
};
|
|
1558
1637
|
readonly weightType: {
|
|
1638
|
+
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";
|
|
1559
1639
|
readonly type: "string";
|
|
1640
|
+
readonly example: "fix";
|
|
1560
1641
|
};
|
|
1561
1642
|
readonly stickiness: {
|
|
1562
1643
|
readonly type: "string";
|
|
1644
|
+
readonly description: "[Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time";
|
|
1645
|
+
readonly example: "custom.context.field";
|
|
1563
1646
|
};
|
|
1564
1647
|
readonly payload: {
|
|
1565
1648
|
readonly type: "object";
|
|
1566
1649
|
readonly required: readonly ["type", "value"];
|
|
1650
|
+
readonly description: "Extra data configured for this variant";
|
|
1567
1651
|
readonly properties: {
|
|
1568
1652
|
readonly type: {
|
|
1569
1653
|
readonly type: "string";
|
|
@@ -1572,8 +1656,13 @@ export declare const healthReportSchema: {
|
|
|
1572
1656
|
readonly type: "string";
|
|
1573
1657
|
};
|
|
1574
1658
|
};
|
|
1659
|
+
readonly example: {
|
|
1660
|
+
readonly type: "json";
|
|
1661
|
+
readonly value: "{color: red}";
|
|
1662
|
+
};
|
|
1575
1663
|
};
|
|
1576
1664
|
readonly overrides: {
|
|
1665
|
+
readonly description: "Overrides assigning specific variants to specific users. The weighting system automatically assigns users to specific groups for you, but any overrides in this list will take precedence.";
|
|
1577
1666
|
readonly type: "array";
|
|
1578
1667
|
readonly items: {
|
|
1579
1668
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -1587,15 +1676,20 @@ export declare const healthReportSchema: {
|
|
|
1587
1676
|
readonly type: "object";
|
|
1588
1677
|
readonly additionalProperties: false;
|
|
1589
1678
|
readonly required: readonly ["contextName", "values"];
|
|
1679
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1590
1680
|
readonly properties: {
|
|
1591
1681
|
readonly contextName: {
|
|
1682
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1592
1683
|
readonly type: "string";
|
|
1684
|
+
readonly example: "userId";
|
|
1593
1685
|
};
|
|
1594
1686
|
readonly values: {
|
|
1687
|
+
readonly description: "Which values that should be overriden";
|
|
1595
1688
|
readonly type: "array";
|
|
1596
1689
|
readonly items: {
|
|
1597
1690
|
readonly type: "string";
|
|
1598
1691
|
};
|
|
1692
|
+
readonly example: readonly ["red", "blue"];
|
|
1599
1693
|
};
|
|
1600
1694
|
};
|
|
1601
1695
|
readonly components: {};
|