unleash-server 5.1.8 → 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/project-store.js +2 -1
- package/dist/lib/db/project-store.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 +105 -4
- package/dist/lib/openapi/spec/health-overview-schema.js +7 -0
- package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-report-schema.d.ts +105 -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 +104 -4
- package/dist/lib/openapi/spec/project-overview-schema.js +6 -0
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- 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/project-service.js +1 -0
- package/dist/lib/services/project-service.js.map +1 -1
- 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 +9 -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/api/admin/project/projects.e2e.test.js +14 -0
- package/dist/test/e2e/api/admin/project/projects.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-5606eccd.js → Error-492e8b38.js} +1 -1
- package/frontend/build/static/FeatureArchiveDialog-70daa567.js +10 -0
- package/frontend/build/static/{FeatureMetricsChart-1c6bb078.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-6602cb1a.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-c75aa905.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-b3def5eb.js → index-d362ae7a.js} +1 -1
- package/frontend/build/static/{index-f8439975.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-6683037a.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-217f67b6.js +0 -4
- package/frontend/build/static/FeatureArchiveDialog-c311c641.js +0 -4
- package/frontend/build/static/FeatureViewLazyExport-06cf4baa.js +0 -7
- package/frontend/build/static/LazyAdminExport-04c8032d.js +0 -43
- package/frontend/build/static/LazyProjectExport-d9663a8c.js +0 -19
- package/frontend/build/static/NetworkOverview-2bce4916.js +0 -1296
- package/frontend/build/static/NetworkTraffic-7db94d86.js +0 -1
- package/frontend/build/static/StrategyItemContainer-0140b94f.js +0 -1
- package/frontend/build/static/index-1f392976.js +0 -450
- package/frontend/build/static/useProjectRole-122ac4bb.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
|
@@ -333,7 +333,7 @@ export declare const importTogglesSchema: {
|
|
|
333
333
|
};
|
|
334
334
|
readonly featureStrategySchema: {
|
|
335
335
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
336
|
-
readonly description: "A
|
|
336
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
337
337
|
readonly type: "object";
|
|
338
338
|
readonly additionalProperties: false;
|
|
339
339
|
readonly required: readonly ["name"];
|
|
@@ -450,23 +450,34 @@ export declare const importTogglesSchema: {
|
|
|
450
450
|
readonly $id: "#/components/schemas/variantSchema";
|
|
451
451
|
readonly type: "object";
|
|
452
452
|
readonly additionalProperties: false;
|
|
453
|
+
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";
|
|
453
454
|
readonly required: readonly ["name", "weight"];
|
|
454
455
|
readonly properties: {
|
|
455
456
|
readonly name: {
|
|
456
457
|
readonly type: "string";
|
|
458
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
459
|
+
readonly example: "blue_group";
|
|
457
460
|
};
|
|
458
461
|
readonly weight: {
|
|
459
462
|
readonly type: "number";
|
|
463
|
+
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";
|
|
464
|
+
readonly minimum: 0;
|
|
465
|
+
readonly maximum: 1000;
|
|
460
466
|
};
|
|
461
467
|
readonly weightType: {
|
|
468
|
+
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";
|
|
462
469
|
readonly type: "string";
|
|
470
|
+
readonly example: "fix";
|
|
463
471
|
};
|
|
464
472
|
readonly stickiness: {
|
|
465
473
|
readonly type: "string";
|
|
474
|
+
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";
|
|
475
|
+
readonly example: "custom.context.field";
|
|
466
476
|
};
|
|
467
477
|
readonly payload: {
|
|
468
478
|
readonly type: "object";
|
|
469
479
|
readonly required: readonly ["type", "value"];
|
|
480
|
+
readonly description: "Extra data configured for this variant";
|
|
470
481
|
readonly properties: {
|
|
471
482
|
readonly type: {
|
|
472
483
|
readonly type: "string";
|
|
@@ -475,8 +486,13 @@ export declare const importTogglesSchema: {
|
|
|
475
486
|
readonly type: "string";
|
|
476
487
|
};
|
|
477
488
|
};
|
|
489
|
+
readonly example: {
|
|
490
|
+
readonly type: "json";
|
|
491
|
+
readonly value: "{color: red}";
|
|
492
|
+
};
|
|
478
493
|
};
|
|
479
494
|
readonly overrides: {
|
|
495
|
+
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.";
|
|
480
496
|
readonly type: "array";
|
|
481
497
|
readonly items: {
|
|
482
498
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -490,15 +506,20 @@ export declare const importTogglesSchema: {
|
|
|
490
506
|
readonly type: "object";
|
|
491
507
|
readonly additionalProperties: false;
|
|
492
508
|
readonly required: readonly ["contextName", "values"];
|
|
509
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
493
510
|
readonly properties: {
|
|
494
511
|
readonly contextName: {
|
|
512
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
495
513
|
readonly type: "string";
|
|
514
|
+
readonly example: "userId";
|
|
496
515
|
};
|
|
497
516
|
readonly values: {
|
|
517
|
+
readonly description: "Which values that should be overriden";
|
|
498
518
|
readonly type: "array";
|
|
499
519
|
readonly items: {
|
|
500
520
|
readonly type: "string";
|
|
501
521
|
};
|
|
522
|
+
readonly example: readonly ["red", "blue"];
|
|
502
523
|
};
|
|
503
524
|
};
|
|
504
525
|
readonly components: {};
|
|
@@ -511,7 +532,7 @@ export declare const importTogglesSchema: {
|
|
|
511
532
|
};
|
|
512
533
|
readonly featureStrategySchema: {
|
|
513
534
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
514
|
-
readonly description: "A
|
|
535
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
515
536
|
readonly type: "object";
|
|
516
537
|
readonly additionalProperties: false;
|
|
517
538
|
readonly required: readonly ["name"];
|
|
@@ -629,15 +650,20 @@ export declare const importTogglesSchema: {
|
|
|
629
650
|
readonly type: "object";
|
|
630
651
|
readonly additionalProperties: false;
|
|
631
652
|
readonly required: readonly ["contextName", "values"];
|
|
653
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
632
654
|
readonly properties: {
|
|
633
655
|
readonly contextName: {
|
|
656
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
634
657
|
readonly type: "string";
|
|
658
|
+
readonly example: "userId";
|
|
635
659
|
};
|
|
636
660
|
readonly values: {
|
|
661
|
+
readonly description: "Which values that should be overriden";
|
|
637
662
|
readonly type: "array";
|
|
638
663
|
readonly items: {
|
|
639
664
|
readonly type: "string";
|
|
640
665
|
};
|
|
666
|
+
readonly example: readonly ["red", "blue"];
|
|
641
667
|
};
|
|
642
668
|
};
|
|
643
669
|
readonly components: {};
|
|
@@ -654,23 +680,34 @@ export declare const importTogglesSchema: {
|
|
|
654
680
|
readonly $id: "#/components/schemas/variantSchema";
|
|
655
681
|
readonly type: "object";
|
|
656
682
|
readonly additionalProperties: false;
|
|
683
|
+
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";
|
|
657
684
|
readonly required: readonly ["name", "weight"];
|
|
658
685
|
readonly properties: {
|
|
659
686
|
readonly name: {
|
|
660
687
|
readonly type: "string";
|
|
688
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
689
|
+
readonly example: "blue_group";
|
|
661
690
|
};
|
|
662
691
|
readonly weight: {
|
|
663
692
|
readonly type: "number";
|
|
693
|
+
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";
|
|
694
|
+
readonly minimum: 0;
|
|
695
|
+
readonly maximum: 1000;
|
|
664
696
|
};
|
|
665
697
|
readonly weightType: {
|
|
698
|
+
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";
|
|
666
699
|
readonly type: "string";
|
|
700
|
+
readonly example: "fix";
|
|
667
701
|
};
|
|
668
702
|
readonly stickiness: {
|
|
669
703
|
readonly type: "string";
|
|
704
|
+
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";
|
|
705
|
+
readonly example: "custom.context.field";
|
|
670
706
|
};
|
|
671
707
|
readonly payload: {
|
|
672
708
|
readonly type: "object";
|
|
673
709
|
readonly required: readonly ["type", "value"];
|
|
710
|
+
readonly description: "Extra data configured for this variant";
|
|
674
711
|
readonly properties: {
|
|
675
712
|
readonly type: {
|
|
676
713
|
readonly type: "string";
|
|
@@ -679,8 +716,13 @@ export declare const importTogglesSchema: {
|
|
|
679
716
|
readonly type: "string";
|
|
680
717
|
};
|
|
681
718
|
};
|
|
719
|
+
readonly example: {
|
|
720
|
+
readonly type: "json";
|
|
721
|
+
readonly value: "{color: red}";
|
|
722
|
+
};
|
|
682
723
|
};
|
|
683
724
|
readonly overrides: {
|
|
725
|
+
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.";
|
|
684
726
|
readonly type: "array";
|
|
685
727
|
readonly items: {
|
|
686
728
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -694,15 +736,20 @@ export declare const importTogglesSchema: {
|
|
|
694
736
|
readonly type: "object";
|
|
695
737
|
readonly additionalProperties: false;
|
|
696
738
|
readonly required: readonly ["contextName", "values"];
|
|
739
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
697
740
|
readonly properties: {
|
|
698
741
|
readonly contextName: {
|
|
742
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
699
743
|
readonly type: "string";
|
|
744
|
+
readonly example: "userId";
|
|
700
745
|
};
|
|
701
746
|
readonly values: {
|
|
747
|
+
readonly description: "Which values that should be overriden";
|
|
702
748
|
readonly type: "array";
|
|
703
749
|
readonly items: {
|
|
704
750
|
readonly type: "string";
|
|
705
751
|
};
|
|
752
|
+
readonly example: readonly ["red", "blue"];
|
|
706
753
|
};
|
|
707
754
|
};
|
|
708
755
|
readonly components: {};
|
|
@@ -740,7 +787,7 @@ export declare const importTogglesSchema: {
|
|
|
740
787
|
};
|
|
741
788
|
readonly featureStrategySchema: {
|
|
742
789
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
743
|
-
readonly description: "A
|
|
790
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
744
791
|
readonly type: "object";
|
|
745
792
|
readonly additionalProperties: false;
|
|
746
793
|
readonly required: readonly ["name"];
|
|
@@ -961,7 +1008,7 @@ export declare const importTogglesSchema: {
|
|
|
961
1008
|
};
|
|
962
1009
|
readonly featureStrategySchema: {
|
|
963
1010
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
964
|
-
readonly description: "A
|
|
1011
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
965
1012
|
readonly type: "object";
|
|
966
1013
|
readonly additionalProperties: false;
|
|
967
1014
|
readonly required: readonly ["name"];
|
|
@@ -1078,23 +1125,34 @@ export declare const importTogglesSchema: {
|
|
|
1078
1125
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1079
1126
|
readonly type: "object";
|
|
1080
1127
|
readonly additionalProperties: false;
|
|
1128
|
+
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";
|
|
1081
1129
|
readonly required: readonly ["name", "weight"];
|
|
1082
1130
|
readonly properties: {
|
|
1083
1131
|
readonly name: {
|
|
1084
1132
|
readonly type: "string";
|
|
1133
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1134
|
+
readonly example: "blue_group";
|
|
1085
1135
|
};
|
|
1086
1136
|
readonly weight: {
|
|
1087
1137
|
readonly type: "number";
|
|
1138
|
+
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";
|
|
1139
|
+
readonly minimum: 0;
|
|
1140
|
+
readonly maximum: 1000;
|
|
1088
1141
|
};
|
|
1089
1142
|
readonly weightType: {
|
|
1143
|
+
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";
|
|
1090
1144
|
readonly type: "string";
|
|
1145
|
+
readonly example: "fix";
|
|
1091
1146
|
};
|
|
1092
1147
|
readonly stickiness: {
|
|
1093
1148
|
readonly type: "string";
|
|
1149
|
+
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";
|
|
1150
|
+
readonly example: "custom.context.field";
|
|
1094
1151
|
};
|
|
1095
1152
|
readonly payload: {
|
|
1096
1153
|
readonly type: "object";
|
|
1097
1154
|
readonly required: readonly ["type", "value"];
|
|
1155
|
+
readonly description: "Extra data configured for this variant";
|
|
1098
1156
|
readonly properties: {
|
|
1099
1157
|
readonly type: {
|
|
1100
1158
|
readonly type: "string";
|
|
@@ -1103,8 +1161,13 @@ export declare const importTogglesSchema: {
|
|
|
1103
1161
|
readonly type: "string";
|
|
1104
1162
|
};
|
|
1105
1163
|
};
|
|
1164
|
+
readonly example: {
|
|
1165
|
+
readonly type: "json";
|
|
1166
|
+
readonly value: "{color: red}";
|
|
1167
|
+
};
|
|
1106
1168
|
};
|
|
1107
1169
|
readonly overrides: {
|
|
1170
|
+
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.";
|
|
1108
1171
|
readonly type: "array";
|
|
1109
1172
|
readonly items: {
|
|
1110
1173
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -1118,15 +1181,20 @@ export declare const importTogglesSchema: {
|
|
|
1118
1181
|
readonly type: "object";
|
|
1119
1182
|
readonly additionalProperties: false;
|
|
1120
1183
|
readonly required: readonly ["contextName", "values"];
|
|
1184
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1121
1185
|
readonly properties: {
|
|
1122
1186
|
readonly contextName: {
|
|
1187
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1123
1188
|
readonly type: "string";
|
|
1189
|
+
readonly example: "userId";
|
|
1124
1190
|
};
|
|
1125
1191
|
readonly values: {
|
|
1192
|
+
readonly description: "Which values that should be overriden";
|
|
1126
1193
|
readonly type: "array";
|
|
1127
1194
|
readonly items: {
|
|
1128
1195
|
readonly type: "string";
|
|
1129
1196
|
};
|
|
1197
|
+
readonly example: readonly ["red", "blue"];
|
|
1130
1198
|
};
|
|
1131
1199
|
};
|
|
1132
1200
|
readonly components: {};
|
|
@@ -1148,6 +1216,7 @@ export declare const importTogglesSchema: {
|
|
|
1148
1216
|
};
|
|
1149
1217
|
readonly description: {
|
|
1150
1218
|
readonly type: "string";
|
|
1219
|
+
readonly nullable: true;
|
|
1151
1220
|
};
|
|
1152
1221
|
readonly stickiness: {
|
|
1153
1222
|
readonly type: "boolean";
|
|
@@ -1160,6 +1229,18 @@ export declare const importTogglesSchema: {
|
|
|
1160
1229
|
readonly format: "date-time";
|
|
1161
1230
|
readonly nullable: true;
|
|
1162
1231
|
};
|
|
1232
|
+
readonly usedInFeatures: {
|
|
1233
|
+
readonly type: "number";
|
|
1234
|
+
readonly description: "Number of projects where this context field is used in";
|
|
1235
|
+
readonly example: 3;
|
|
1236
|
+
readonly nullable: true;
|
|
1237
|
+
};
|
|
1238
|
+
readonly usedInProjects: {
|
|
1239
|
+
readonly type: "number";
|
|
1240
|
+
readonly description: "Number of projects where this context field is used in";
|
|
1241
|
+
readonly example: 2;
|
|
1242
|
+
readonly nullable: true;
|
|
1243
|
+
};
|
|
1163
1244
|
readonly legalValues: {
|
|
1164
1245
|
readonly type: "array";
|
|
1165
1246
|
readonly items: {
|
|
@@ -1234,23 +1315,34 @@ export declare const importTogglesSchema: {
|
|
|
1234
1315
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1235
1316
|
readonly type: "object";
|
|
1236
1317
|
readonly additionalProperties: false;
|
|
1318
|
+
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";
|
|
1237
1319
|
readonly required: readonly ["name", "weight"];
|
|
1238
1320
|
readonly properties: {
|
|
1239
1321
|
readonly name: {
|
|
1240
1322
|
readonly type: "string";
|
|
1323
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1324
|
+
readonly example: "blue_group";
|
|
1241
1325
|
};
|
|
1242
1326
|
readonly weight: {
|
|
1243
1327
|
readonly type: "number";
|
|
1328
|
+
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";
|
|
1329
|
+
readonly minimum: 0;
|
|
1330
|
+
readonly maximum: 1000;
|
|
1244
1331
|
};
|
|
1245
1332
|
readonly weightType: {
|
|
1333
|
+
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";
|
|
1246
1334
|
readonly type: "string";
|
|
1335
|
+
readonly example: "fix";
|
|
1247
1336
|
};
|
|
1248
1337
|
readonly stickiness: {
|
|
1249
1338
|
readonly type: "string";
|
|
1339
|
+
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";
|
|
1340
|
+
readonly example: "custom.context.field";
|
|
1250
1341
|
};
|
|
1251
1342
|
readonly payload: {
|
|
1252
1343
|
readonly type: "object";
|
|
1253
1344
|
readonly required: readonly ["type", "value"];
|
|
1345
|
+
readonly description: "Extra data configured for this variant";
|
|
1254
1346
|
readonly properties: {
|
|
1255
1347
|
readonly type: {
|
|
1256
1348
|
readonly type: "string";
|
|
@@ -1259,8 +1351,13 @@ export declare const importTogglesSchema: {
|
|
|
1259
1351
|
readonly type: "string";
|
|
1260
1352
|
};
|
|
1261
1353
|
};
|
|
1354
|
+
readonly example: {
|
|
1355
|
+
readonly type: "json";
|
|
1356
|
+
readonly value: "{color: red}";
|
|
1357
|
+
};
|
|
1262
1358
|
};
|
|
1263
1359
|
readonly overrides: {
|
|
1360
|
+
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.";
|
|
1264
1361
|
readonly type: "array";
|
|
1265
1362
|
readonly items: {
|
|
1266
1363
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -1274,15 +1371,20 @@ export declare const importTogglesSchema: {
|
|
|
1274
1371
|
readonly type: "object";
|
|
1275
1372
|
readonly additionalProperties: false;
|
|
1276
1373
|
readonly required: readonly ["contextName", "values"];
|
|
1374
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1277
1375
|
readonly properties: {
|
|
1278
1376
|
readonly contextName: {
|
|
1377
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1279
1378
|
readonly type: "string";
|
|
1379
|
+
readonly example: "userId";
|
|
1280
1380
|
};
|
|
1281
1381
|
readonly values: {
|
|
1382
|
+
readonly description: "Which values that should be overriden";
|
|
1282
1383
|
readonly type: "array";
|
|
1283
1384
|
readonly items: {
|
|
1284
1385
|
readonly type: "string";
|
|
1285
1386
|
};
|
|
1387
|
+
readonly example: readonly ["red", "blue"];
|
|
1286
1388
|
};
|
|
1287
1389
|
};
|
|
1288
1390
|
readonly components: {};
|
|
@@ -1295,15 +1397,20 @@ export declare const importTogglesSchema: {
|
|
|
1295
1397
|
readonly type: "object";
|
|
1296
1398
|
readonly additionalProperties: false;
|
|
1297
1399
|
readonly required: readonly ["contextName", "values"];
|
|
1400
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1298
1401
|
readonly properties: {
|
|
1299
1402
|
readonly contextName: {
|
|
1403
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1300
1404
|
readonly type: "string";
|
|
1405
|
+
readonly example: "userId";
|
|
1301
1406
|
};
|
|
1302
1407
|
readonly values: {
|
|
1408
|
+
readonly description: "Which values that should be overriden";
|
|
1303
1409
|
readonly type: "array";
|
|
1304
1410
|
readonly items: {
|
|
1305
1411
|
readonly type: "string";
|
|
1306
1412
|
};
|
|
1413
|
+
readonly example: readonly ["red", "blue"];
|
|
1307
1414
|
};
|
|
1308
1415
|
};
|
|
1309
1416
|
readonly components: {};
|
|
@@ -1315,23 +1422,34 @@ export declare const importTogglesSchema: {
|
|
|
1315
1422
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1316
1423
|
readonly type: "object";
|
|
1317
1424
|
readonly additionalProperties: false;
|
|
1425
|
+
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";
|
|
1318
1426
|
readonly required: readonly ["name", "weight"];
|
|
1319
1427
|
readonly properties: {
|
|
1320
1428
|
readonly name: {
|
|
1321
1429
|
readonly type: "string";
|
|
1430
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1431
|
+
readonly example: "blue_group";
|
|
1322
1432
|
};
|
|
1323
1433
|
readonly weight: {
|
|
1324
1434
|
readonly type: "number";
|
|
1435
|
+
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";
|
|
1436
|
+
readonly minimum: 0;
|
|
1437
|
+
readonly maximum: 1000;
|
|
1325
1438
|
};
|
|
1326
1439
|
readonly weightType: {
|
|
1440
|
+
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";
|
|
1327
1441
|
readonly type: "string";
|
|
1442
|
+
readonly example: "fix";
|
|
1328
1443
|
};
|
|
1329
1444
|
readonly stickiness: {
|
|
1330
1445
|
readonly type: "string";
|
|
1446
|
+
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";
|
|
1447
|
+
readonly example: "custom.context.field";
|
|
1331
1448
|
};
|
|
1332
1449
|
readonly payload: {
|
|
1333
1450
|
readonly type: "object";
|
|
1334
1451
|
readonly required: readonly ["type", "value"];
|
|
1452
|
+
readonly description: "Extra data configured for this variant";
|
|
1335
1453
|
readonly properties: {
|
|
1336
1454
|
readonly type: {
|
|
1337
1455
|
readonly type: "string";
|
|
@@ -1340,8 +1458,13 @@ export declare const importTogglesSchema: {
|
|
|
1340
1458
|
readonly type: "string";
|
|
1341
1459
|
};
|
|
1342
1460
|
};
|
|
1461
|
+
readonly example: {
|
|
1462
|
+
readonly type: "json";
|
|
1463
|
+
readonly value: "{color: red}";
|
|
1464
|
+
};
|
|
1343
1465
|
};
|
|
1344
1466
|
readonly overrides: {
|
|
1467
|
+
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.";
|
|
1345
1468
|
readonly type: "array";
|
|
1346
1469
|
readonly items: {
|
|
1347
1470
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -1355,15 +1478,20 @@ export declare const importTogglesSchema: {
|
|
|
1355
1478
|
readonly type: "object";
|
|
1356
1479
|
readonly additionalProperties: false;
|
|
1357
1480
|
readonly required: readonly ["contextName", "values"];
|
|
1481
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1358
1482
|
readonly properties: {
|
|
1359
1483
|
readonly contextName: {
|
|
1484
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1360
1485
|
readonly type: "string";
|
|
1486
|
+
readonly example: "userId";
|
|
1361
1487
|
};
|
|
1362
1488
|
readonly values: {
|
|
1489
|
+
readonly description: "Which values that should be overriden";
|
|
1363
1490
|
readonly type: "array";
|
|
1364
1491
|
readonly items: {
|
|
1365
1492
|
readonly type: "string";
|
|
1366
1493
|
};
|
|
1494
|
+
readonly example: readonly ["red", "blue"];
|
|
1367
1495
|
};
|
|
1368
1496
|
};
|
|
1369
1497
|
readonly components: {};
|
|
@@ -1376,15 +1504,20 @@ export declare const importTogglesSchema: {
|
|
|
1376
1504
|
readonly type: "object";
|
|
1377
1505
|
readonly additionalProperties: false;
|
|
1378
1506
|
readonly required: readonly ["contextName", "values"];
|
|
1507
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1379
1508
|
readonly properties: {
|
|
1380
1509
|
readonly contextName: {
|
|
1510
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1381
1511
|
readonly type: "string";
|
|
1512
|
+
readonly example: "userId";
|
|
1382
1513
|
};
|
|
1383
1514
|
readonly values: {
|
|
1515
|
+
readonly description: "Which values that should be overriden";
|
|
1384
1516
|
readonly type: "array";
|
|
1385
1517
|
readonly items: {
|
|
1386
1518
|
readonly type: "string";
|
|
1387
1519
|
};
|
|
1520
|
+
readonly example: readonly ["red", "blue"];
|
|
1388
1521
|
};
|
|
1389
1522
|
};
|
|
1390
1523
|
readonly components: {};
|
|
@@ -1733,7 +1866,7 @@ export declare const importTogglesSchema: {
|
|
|
1733
1866
|
};
|
|
1734
1867
|
readonly featureStrategySchema: {
|
|
1735
1868
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
1736
|
-
readonly description: "A
|
|
1869
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
1737
1870
|
readonly type: "object";
|
|
1738
1871
|
readonly additionalProperties: false;
|
|
1739
1872
|
readonly required: readonly ["name"];
|
|
@@ -1850,23 +1983,34 @@ export declare const importTogglesSchema: {
|
|
|
1850
1983
|
readonly $id: "#/components/schemas/variantSchema";
|
|
1851
1984
|
readonly type: "object";
|
|
1852
1985
|
readonly additionalProperties: false;
|
|
1986
|
+
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";
|
|
1853
1987
|
readonly required: readonly ["name", "weight"];
|
|
1854
1988
|
readonly properties: {
|
|
1855
1989
|
readonly name: {
|
|
1856
1990
|
readonly type: "string";
|
|
1991
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
1992
|
+
readonly example: "blue_group";
|
|
1857
1993
|
};
|
|
1858
1994
|
readonly weight: {
|
|
1859
1995
|
readonly type: "number";
|
|
1996
|
+
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";
|
|
1997
|
+
readonly minimum: 0;
|
|
1998
|
+
readonly maximum: 1000;
|
|
1860
1999
|
};
|
|
1861
2000
|
readonly weightType: {
|
|
2001
|
+
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";
|
|
1862
2002
|
readonly type: "string";
|
|
2003
|
+
readonly example: "fix";
|
|
1863
2004
|
};
|
|
1864
2005
|
readonly stickiness: {
|
|
1865
2006
|
readonly type: "string";
|
|
2007
|
+
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";
|
|
2008
|
+
readonly example: "custom.context.field";
|
|
1866
2009
|
};
|
|
1867
2010
|
readonly payload: {
|
|
1868
2011
|
readonly type: "object";
|
|
1869
2012
|
readonly required: readonly ["type", "value"];
|
|
2013
|
+
readonly description: "Extra data configured for this variant";
|
|
1870
2014
|
readonly properties: {
|
|
1871
2015
|
readonly type: {
|
|
1872
2016
|
readonly type: "string";
|
|
@@ -1875,8 +2019,13 @@ export declare const importTogglesSchema: {
|
|
|
1875
2019
|
readonly type: "string";
|
|
1876
2020
|
};
|
|
1877
2021
|
};
|
|
2022
|
+
readonly example: {
|
|
2023
|
+
readonly type: "json";
|
|
2024
|
+
readonly value: "{color: red}";
|
|
2025
|
+
};
|
|
1878
2026
|
};
|
|
1879
2027
|
readonly overrides: {
|
|
2028
|
+
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.";
|
|
1880
2029
|
readonly type: "array";
|
|
1881
2030
|
readonly items: {
|
|
1882
2031
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -1890,15 +2039,20 @@ export declare const importTogglesSchema: {
|
|
|
1890
2039
|
readonly type: "object";
|
|
1891
2040
|
readonly additionalProperties: false;
|
|
1892
2041
|
readonly required: readonly ["contextName", "values"];
|
|
2042
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
1893
2043
|
readonly properties: {
|
|
1894
2044
|
readonly contextName: {
|
|
2045
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
1895
2046
|
readonly type: "string";
|
|
2047
|
+
readonly example: "userId";
|
|
1896
2048
|
};
|
|
1897
2049
|
readonly values: {
|
|
2050
|
+
readonly description: "Which values that should be overriden";
|
|
1898
2051
|
readonly type: "array";
|
|
1899
2052
|
readonly items: {
|
|
1900
2053
|
readonly type: "string";
|
|
1901
2054
|
};
|
|
2055
|
+
readonly example: readonly ["red", "blue"];
|
|
1902
2056
|
};
|
|
1903
2057
|
};
|
|
1904
2058
|
readonly components: {};
|
|
@@ -1911,7 +2065,7 @@ export declare const importTogglesSchema: {
|
|
|
1911
2065
|
};
|
|
1912
2066
|
readonly featureStrategySchema: {
|
|
1913
2067
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
1914
|
-
readonly description: "A
|
|
2068
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
1915
2069
|
readonly type: "object";
|
|
1916
2070
|
readonly additionalProperties: false;
|
|
1917
2071
|
readonly required: readonly ["name"];
|
|
@@ -2029,15 +2183,20 @@ export declare const importTogglesSchema: {
|
|
|
2029
2183
|
readonly type: "object";
|
|
2030
2184
|
readonly additionalProperties: false;
|
|
2031
2185
|
readonly required: readonly ["contextName", "values"];
|
|
2186
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2032
2187
|
readonly properties: {
|
|
2033
2188
|
readonly contextName: {
|
|
2189
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2034
2190
|
readonly type: "string";
|
|
2191
|
+
readonly example: "userId";
|
|
2035
2192
|
};
|
|
2036
2193
|
readonly values: {
|
|
2194
|
+
readonly description: "Which values that should be overriden";
|
|
2037
2195
|
readonly type: "array";
|
|
2038
2196
|
readonly items: {
|
|
2039
2197
|
readonly type: "string";
|
|
2040
2198
|
};
|
|
2199
|
+
readonly example: readonly ["red", "blue"];
|
|
2041
2200
|
};
|
|
2042
2201
|
};
|
|
2043
2202
|
readonly components: {};
|
|
@@ -2054,23 +2213,34 @@ export declare const importTogglesSchema: {
|
|
|
2054
2213
|
readonly $id: "#/components/schemas/variantSchema";
|
|
2055
2214
|
readonly type: "object";
|
|
2056
2215
|
readonly additionalProperties: false;
|
|
2216
|
+
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";
|
|
2057
2217
|
readonly required: readonly ["name", "weight"];
|
|
2058
2218
|
readonly properties: {
|
|
2059
2219
|
readonly name: {
|
|
2060
2220
|
readonly type: "string";
|
|
2221
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
2222
|
+
readonly example: "blue_group";
|
|
2061
2223
|
};
|
|
2062
2224
|
readonly weight: {
|
|
2063
2225
|
readonly type: "number";
|
|
2226
|
+
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";
|
|
2227
|
+
readonly minimum: 0;
|
|
2228
|
+
readonly maximum: 1000;
|
|
2064
2229
|
};
|
|
2065
2230
|
readonly weightType: {
|
|
2231
|
+
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";
|
|
2066
2232
|
readonly type: "string";
|
|
2233
|
+
readonly example: "fix";
|
|
2067
2234
|
};
|
|
2068
2235
|
readonly stickiness: {
|
|
2069
2236
|
readonly type: "string";
|
|
2237
|
+
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";
|
|
2238
|
+
readonly example: "custom.context.field";
|
|
2070
2239
|
};
|
|
2071
2240
|
readonly payload: {
|
|
2072
2241
|
readonly type: "object";
|
|
2073
2242
|
readonly required: readonly ["type", "value"];
|
|
2243
|
+
readonly description: "Extra data configured for this variant";
|
|
2074
2244
|
readonly properties: {
|
|
2075
2245
|
readonly type: {
|
|
2076
2246
|
readonly type: "string";
|
|
@@ -2079,8 +2249,13 @@ export declare const importTogglesSchema: {
|
|
|
2079
2249
|
readonly type: "string";
|
|
2080
2250
|
};
|
|
2081
2251
|
};
|
|
2252
|
+
readonly example: {
|
|
2253
|
+
readonly type: "json";
|
|
2254
|
+
readonly value: "{color: red}";
|
|
2255
|
+
};
|
|
2082
2256
|
};
|
|
2083
2257
|
readonly overrides: {
|
|
2258
|
+
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.";
|
|
2084
2259
|
readonly type: "array";
|
|
2085
2260
|
readonly items: {
|
|
2086
2261
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -2094,15 +2269,20 @@ export declare const importTogglesSchema: {
|
|
|
2094
2269
|
readonly type: "object";
|
|
2095
2270
|
readonly additionalProperties: false;
|
|
2096
2271
|
readonly required: readonly ["contextName", "values"];
|
|
2272
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2097
2273
|
readonly properties: {
|
|
2098
2274
|
readonly contextName: {
|
|
2275
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2099
2276
|
readonly type: "string";
|
|
2277
|
+
readonly example: "userId";
|
|
2100
2278
|
};
|
|
2101
2279
|
readonly values: {
|
|
2280
|
+
readonly description: "Which values that should be overriden";
|
|
2102
2281
|
readonly type: "array";
|
|
2103
2282
|
readonly items: {
|
|
2104
2283
|
readonly type: "string";
|
|
2105
2284
|
};
|
|
2285
|
+
readonly example: readonly ["red", "blue"];
|
|
2106
2286
|
};
|
|
2107
2287
|
};
|
|
2108
2288
|
readonly components: {};
|
|
@@ -2140,7 +2320,7 @@ export declare const importTogglesSchema: {
|
|
|
2140
2320
|
};
|
|
2141
2321
|
readonly featureStrategySchema: {
|
|
2142
2322
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
2143
|
-
readonly description: "A
|
|
2323
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
2144
2324
|
readonly type: "object";
|
|
2145
2325
|
readonly additionalProperties: false;
|
|
2146
2326
|
readonly required: readonly ["name"];
|
|
@@ -2361,7 +2541,7 @@ export declare const importTogglesSchema: {
|
|
|
2361
2541
|
};
|
|
2362
2542
|
readonly featureStrategySchema: {
|
|
2363
2543
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
2364
|
-
readonly description: "A
|
|
2544
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
2365
2545
|
readonly type: "object";
|
|
2366
2546
|
readonly additionalProperties: false;
|
|
2367
2547
|
readonly required: readonly ["name"];
|
|
@@ -2478,23 +2658,34 @@ export declare const importTogglesSchema: {
|
|
|
2478
2658
|
readonly $id: "#/components/schemas/variantSchema";
|
|
2479
2659
|
readonly type: "object";
|
|
2480
2660
|
readonly additionalProperties: false;
|
|
2661
|
+
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";
|
|
2481
2662
|
readonly required: readonly ["name", "weight"];
|
|
2482
2663
|
readonly properties: {
|
|
2483
2664
|
readonly name: {
|
|
2484
2665
|
readonly type: "string";
|
|
2666
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
2667
|
+
readonly example: "blue_group";
|
|
2485
2668
|
};
|
|
2486
2669
|
readonly weight: {
|
|
2487
2670
|
readonly type: "number";
|
|
2671
|
+
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";
|
|
2672
|
+
readonly minimum: 0;
|
|
2673
|
+
readonly maximum: 1000;
|
|
2488
2674
|
};
|
|
2489
2675
|
readonly weightType: {
|
|
2676
|
+
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";
|
|
2490
2677
|
readonly type: "string";
|
|
2678
|
+
readonly example: "fix";
|
|
2491
2679
|
};
|
|
2492
2680
|
readonly stickiness: {
|
|
2493
2681
|
readonly type: "string";
|
|
2682
|
+
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";
|
|
2683
|
+
readonly example: "custom.context.field";
|
|
2494
2684
|
};
|
|
2495
2685
|
readonly payload: {
|
|
2496
2686
|
readonly type: "object";
|
|
2497
2687
|
readonly required: readonly ["type", "value"];
|
|
2688
|
+
readonly description: "Extra data configured for this variant";
|
|
2498
2689
|
readonly properties: {
|
|
2499
2690
|
readonly type: {
|
|
2500
2691
|
readonly type: "string";
|
|
@@ -2503,8 +2694,13 @@ export declare const importTogglesSchema: {
|
|
|
2503
2694
|
readonly type: "string";
|
|
2504
2695
|
};
|
|
2505
2696
|
};
|
|
2697
|
+
readonly example: {
|
|
2698
|
+
readonly type: "json";
|
|
2699
|
+
readonly value: "{color: red}";
|
|
2700
|
+
};
|
|
2506
2701
|
};
|
|
2507
2702
|
readonly overrides: {
|
|
2703
|
+
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.";
|
|
2508
2704
|
readonly type: "array";
|
|
2509
2705
|
readonly items: {
|
|
2510
2706
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -2518,15 +2714,20 @@ export declare const importTogglesSchema: {
|
|
|
2518
2714
|
readonly type: "object";
|
|
2519
2715
|
readonly additionalProperties: false;
|
|
2520
2716
|
readonly required: readonly ["contextName", "values"];
|
|
2717
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2521
2718
|
readonly properties: {
|
|
2522
2719
|
readonly contextName: {
|
|
2720
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2523
2721
|
readonly type: "string";
|
|
2722
|
+
readonly example: "userId";
|
|
2524
2723
|
};
|
|
2525
2724
|
readonly values: {
|
|
2725
|
+
readonly description: "Which values that should be overriden";
|
|
2526
2726
|
readonly type: "array";
|
|
2527
2727
|
readonly items: {
|
|
2528
2728
|
readonly type: "string";
|
|
2529
2729
|
};
|
|
2730
|
+
readonly example: readonly ["red", "blue"];
|
|
2530
2731
|
};
|
|
2531
2732
|
};
|
|
2532
2733
|
readonly components: {};
|
|
@@ -2548,6 +2749,7 @@ export declare const importTogglesSchema: {
|
|
|
2548
2749
|
};
|
|
2549
2750
|
readonly description: {
|
|
2550
2751
|
readonly type: "string";
|
|
2752
|
+
readonly nullable: true;
|
|
2551
2753
|
};
|
|
2552
2754
|
readonly stickiness: {
|
|
2553
2755
|
readonly type: "boolean";
|
|
@@ -2560,6 +2762,18 @@ export declare const importTogglesSchema: {
|
|
|
2560
2762
|
readonly format: "date-time";
|
|
2561
2763
|
readonly nullable: true;
|
|
2562
2764
|
};
|
|
2765
|
+
readonly usedInFeatures: {
|
|
2766
|
+
readonly type: "number";
|
|
2767
|
+
readonly description: "Number of projects where this context field is used in";
|
|
2768
|
+
readonly example: 3;
|
|
2769
|
+
readonly nullable: true;
|
|
2770
|
+
};
|
|
2771
|
+
readonly usedInProjects: {
|
|
2772
|
+
readonly type: "number";
|
|
2773
|
+
readonly description: "Number of projects where this context field is used in";
|
|
2774
|
+
readonly example: 2;
|
|
2775
|
+
readonly nullable: true;
|
|
2776
|
+
};
|
|
2563
2777
|
readonly legalValues: {
|
|
2564
2778
|
readonly type: "array";
|
|
2565
2779
|
readonly items: {
|
|
@@ -2713,23 +2927,34 @@ export declare const importTogglesSchema: {
|
|
|
2713
2927
|
readonly $id: "#/components/schemas/variantSchema";
|
|
2714
2928
|
readonly type: "object";
|
|
2715
2929
|
readonly additionalProperties: false;
|
|
2930
|
+
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";
|
|
2716
2931
|
readonly required: readonly ["name", "weight"];
|
|
2717
2932
|
readonly properties: {
|
|
2718
2933
|
readonly name: {
|
|
2719
2934
|
readonly type: "string";
|
|
2935
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
2936
|
+
readonly example: "blue_group";
|
|
2720
2937
|
};
|
|
2721
2938
|
readonly weight: {
|
|
2722
2939
|
readonly type: "number";
|
|
2940
|
+
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";
|
|
2941
|
+
readonly minimum: 0;
|
|
2942
|
+
readonly maximum: 1000;
|
|
2723
2943
|
};
|
|
2724
2944
|
readonly weightType: {
|
|
2945
|
+
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";
|
|
2725
2946
|
readonly type: "string";
|
|
2947
|
+
readonly example: "fix";
|
|
2726
2948
|
};
|
|
2727
2949
|
readonly stickiness: {
|
|
2728
2950
|
readonly type: "string";
|
|
2951
|
+
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";
|
|
2952
|
+
readonly example: "custom.context.field";
|
|
2729
2953
|
};
|
|
2730
2954
|
readonly payload: {
|
|
2731
2955
|
readonly type: "object";
|
|
2732
2956
|
readonly required: readonly ["type", "value"];
|
|
2957
|
+
readonly description: "Extra data configured for this variant";
|
|
2733
2958
|
readonly properties: {
|
|
2734
2959
|
readonly type: {
|
|
2735
2960
|
readonly type: "string";
|
|
@@ -2738,8 +2963,13 @@ export declare const importTogglesSchema: {
|
|
|
2738
2963
|
readonly type: "string";
|
|
2739
2964
|
};
|
|
2740
2965
|
};
|
|
2966
|
+
readonly example: {
|
|
2967
|
+
readonly type: "json";
|
|
2968
|
+
readonly value: "{color: red}";
|
|
2969
|
+
};
|
|
2741
2970
|
};
|
|
2742
2971
|
readonly overrides: {
|
|
2972
|
+
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.";
|
|
2743
2973
|
readonly type: "array";
|
|
2744
2974
|
readonly items: {
|
|
2745
2975
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -2753,15 +2983,20 @@ export declare const importTogglesSchema: {
|
|
|
2753
2983
|
readonly type: "object";
|
|
2754
2984
|
readonly additionalProperties: false;
|
|
2755
2985
|
readonly required: readonly ["contextName", "values"];
|
|
2986
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2756
2987
|
readonly properties: {
|
|
2757
2988
|
readonly contextName: {
|
|
2989
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2758
2990
|
readonly type: "string";
|
|
2991
|
+
readonly example: "userId";
|
|
2759
2992
|
};
|
|
2760
2993
|
readonly values: {
|
|
2994
|
+
readonly description: "Which values that should be overriden";
|
|
2761
2995
|
readonly type: "array";
|
|
2762
2996
|
readonly items: {
|
|
2763
2997
|
readonly type: "string";
|
|
2764
2998
|
};
|
|
2999
|
+
readonly example: readonly ["red", "blue"];
|
|
2765
3000
|
};
|
|
2766
3001
|
};
|
|
2767
3002
|
readonly components: {};
|
|
@@ -2774,15 +3009,20 @@ export declare const importTogglesSchema: {
|
|
|
2774
3009
|
readonly type: "object";
|
|
2775
3010
|
readonly additionalProperties: false;
|
|
2776
3011
|
readonly required: readonly ["contextName", "values"];
|
|
3012
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2777
3013
|
readonly properties: {
|
|
2778
3014
|
readonly contextName: {
|
|
3015
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2779
3016
|
readonly type: "string";
|
|
3017
|
+
readonly example: "userId";
|
|
2780
3018
|
};
|
|
2781
3019
|
readonly values: {
|
|
3020
|
+
readonly description: "Which values that should be overriden";
|
|
2782
3021
|
readonly type: "array";
|
|
2783
3022
|
readonly items: {
|
|
2784
3023
|
readonly type: "string";
|
|
2785
3024
|
};
|
|
3025
|
+
readonly example: readonly ["red", "blue"];
|
|
2786
3026
|
};
|
|
2787
3027
|
};
|
|
2788
3028
|
readonly components: {};
|
|
@@ -2794,23 +3034,34 @@ export declare const importTogglesSchema: {
|
|
|
2794
3034
|
readonly $id: "#/components/schemas/variantSchema";
|
|
2795
3035
|
readonly type: "object";
|
|
2796
3036
|
readonly additionalProperties: false;
|
|
3037
|
+
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";
|
|
2797
3038
|
readonly required: readonly ["name", "weight"];
|
|
2798
3039
|
readonly properties: {
|
|
2799
3040
|
readonly name: {
|
|
2800
3041
|
readonly type: "string";
|
|
3042
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
3043
|
+
readonly example: "blue_group";
|
|
2801
3044
|
};
|
|
2802
3045
|
readonly weight: {
|
|
2803
3046
|
readonly type: "number";
|
|
3047
|
+
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";
|
|
3048
|
+
readonly minimum: 0;
|
|
3049
|
+
readonly maximum: 1000;
|
|
2804
3050
|
};
|
|
2805
3051
|
readonly weightType: {
|
|
3052
|
+
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";
|
|
2806
3053
|
readonly type: "string";
|
|
3054
|
+
readonly example: "fix";
|
|
2807
3055
|
};
|
|
2808
3056
|
readonly stickiness: {
|
|
2809
3057
|
readonly type: "string";
|
|
3058
|
+
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";
|
|
3059
|
+
readonly example: "custom.context.field";
|
|
2810
3060
|
};
|
|
2811
3061
|
readonly payload: {
|
|
2812
3062
|
readonly type: "object";
|
|
2813
3063
|
readonly required: readonly ["type", "value"];
|
|
3064
|
+
readonly description: "Extra data configured for this variant";
|
|
2814
3065
|
readonly properties: {
|
|
2815
3066
|
readonly type: {
|
|
2816
3067
|
readonly type: "string";
|
|
@@ -2819,8 +3070,13 @@ export declare const importTogglesSchema: {
|
|
|
2819
3070
|
readonly type: "string";
|
|
2820
3071
|
};
|
|
2821
3072
|
};
|
|
3073
|
+
readonly example: {
|
|
3074
|
+
readonly type: "json";
|
|
3075
|
+
readonly value: "{color: red}";
|
|
3076
|
+
};
|
|
2822
3077
|
};
|
|
2823
3078
|
readonly overrides: {
|
|
3079
|
+
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.";
|
|
2824
3080
|
readonly type: "array";
|
|
2825
3081
|
readonly items: {
|
|
2826
3082
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -2834,15 +3090,20 @@ export declare const importTogglesSchema: {
|
|
|
2834
3090
|
readonly type: "object";
|
|
2835
3091
|
readonly additionalProperties: false;
|
|
2836
3092
|
readonly required: readonly ["contextName", "values"];
|
|
3093
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2837
3094
|
readonly properties: {
|
|
2838
3095
|
readonly contextName: {
|
|
3096
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2839
3097
|
readonly type: "string";
|
|
3098
|
+
readonly example: "userId";
|
|
2840
3099
|
};
|
|
2841
3100
|
readonly values: {
|
|
3101
|
+
readonly description: "Which values that should be overriden";
|
|
2842
3102
|
readonly type: "array";
|
|
2843
3103
|
readonly items: {
|
|
2844
3104
|
readonly type: "string";
|
|
2845
3105
|
};
|
|
3106
|
+
readonly example: readonly ["red", "blue"];
|
|
2846
3107
|
};
|
|
2847
3108
|
};
|
|
2848
3109
|
readonly components: {};
|
|
@@ -2855,15 +3116,20 @@ export declare const importTogglesSchema: {
|
|
|
2855
3116
|
readonly type: "object";
|
|
2856
3117
|
readonly additionalProperties: false;
|
|
2857
3118
|
readonly required: readonly ["contextName", "values"];
|
|
3119
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
2858
3120
|
readonly properties: {
|
|
2859
3121
|
readonly contextName: {
|
|
3122
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
2860
3123
|
readonly type: "string";
|
|
3124
|
+
readonly example: "userId";
|
|
2861
3125
|
};
|
|
2862
3126
|
readonly values: {
|
|
3127
|
+
readonly description: "Which values that should be overriden";
|
|
2863
3128
|
readonly type: "array";
|
|
2864
3129
|
readonly items: {
|
|
2865
3130
|
readonly type: "string";
|
|
2866
3131
|
};
|
|
3132
|
+
readonly example: readonly ["red", "blue"];
|
|
2867
3133
|
};
|
|
2868
3134
|
};
|
|
2869
3135
|
readonly components: {};
|