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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.advancedPlaygroundResponseSchema = void 0;
|
|
4
|
+
const sdk_context_schema_1 = require("./sdk-context-schema");
|
|
5
|
+
const constraint_schema_1 = require("./constraint-schema");
|
|
6
|
+
const parameters_schema_1 = require("./parameters-schema");
|
|
7
|
+
const variant_schema_1 = require("./variant-schema");
|
|
8
|
+
const override_schema_1 = require("./override-schema");
|
|
9
|
+
const playground_constraint_schema_1 = require("./playground-constraint-schema");
|
|
10
|
+
const playground_segment_schema_1 = require("./playground-segment-schema");
|
|
11
|
+
const playground_strategy_schema_1 = require("./playground-strategy-schema");
|
|
12
|
+
const advanced_playground_request_schema_1 = require("./advanced-playground-request-schema");
|
|
13
|
+
const advanced_playground_feature_schema_1 = require("./advanced-playground-feature-schema");
|
|
14
|
+
const advanced_playground_environment_feature_schema_1 = require("./advanced-playground-environment-feature-schema");
|
|
15
|
+
exports.advancedPlaygroundResponseSchema = {
|
|
16
|
+
$id: '#/components/schemas/advancedPlaygroundResponseSchema',
|
|
17
|
+
description: 'The state of all features given the provided input.',
|
|
18
|
+
type: 'object',
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
required: ['features', 'input'],
|
|
21
|
+
properties: {
|
|
22
|
+
input: {
|
|
23
|
+
description: 'The given input used to evaluate the features.',
|
|
24
|
+
$ref: advanced_playground_request_schema_1.advancedPlaygroundRequestSchema.$id,
|
|
25
|
+
},
|
|
26
|
+
features: {
|
|
27
|
+
type: 'array',
|
|
28
|
+
description: 'The list of features that have been evaluated.',
|
|
29
|
+
items: {
|
|
30
|
+
$ref: advanced_playground_feature_schema_1.advancedPlaygroundFeatureSchema.$id,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
components: {
|
|
35
|
+
schemas: {
|
|
36
|
+
constraintSchema: constraint_schema_1.constraintSchema,
|
|
37
|
+
parametersSchema: parameters_schema_1.parametersSchema,
|
|
38
|
+
playgroundConstraintSchema: playground_constraint_schema_1.playgroundConstraintSchema,
|
|
39
|
+
advancedPlaygroundFeatureSchema: advanced_playground_feature_schema_1.advancedPlaygroundFeatureSchema,
|
|
40
|
+
advancedPlaygroundEnvironmentFeatureSchema: advanced_playground_environment_feature_schema_1.advancedPlaygroundEnvironmentFeatureSchema,
|
|
41
|
+
advancedPlaygroundRequestSchema: advanced_playground_request_schema_1.advancedPlaygroundRequestSchema,
|
|
42
|
+
playgroundSegmentSchema: playground_segment_schema_1.playgroundSegmentSchema,
|
|
43
|
+
playgroundStrategySchema: playground_strategy_schema_1.playgroundStrategySchema,
|
|
44
|
+
sdkContextSchema: sdk_context_schema_1.sdkContextSchema,
|
|
45
|
+
variantSchema: variant_schema_1.variantSchema,
|
|
46
|
+
overrideSchema: override_schema_1.overrideSchema,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=advanced-playground-response-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced-playground-response-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/advanced-playground-response-schema.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AACxD,2DAAuD;AACvD,2DAAuD;AACvD,qDAAiD;AACjD,uDAAmD;AACnD,iFAA4E;AAC5E,2EAAsE;AACtE,6EAAwE;AACxE,6FAAuF;AACvF,6FAAuF;AACvF,qHAA8G;AAEjG,QAAA,gCAAgC,GAAG;IAC5C,GAAG,EAAE,uDAAuD;IAC5D,WAAW,EAAE,qDAAqD;IAClE,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,UAAU,EAAE;QACR,KAAK,EAAE;YACH,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,oEAA+B,CAAC,GAAG;SAC5C;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gDAAgD;YAC7D,KAAK,EAAE;gBACH,IAAI,EAAE,oEAA+B,CAAC,GAAG;aAC5C;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,oCAAgB;YAChB,0BAA0B,EAA1B,yDAA0B;YAC1B,+BAA+B,EAA/B,oEAA+B;YAC/B,0CAA0C,EAA1C,2FAA0C;YAC1C,+BAA+B,EAA/B,oEAA+B;YAC/B,uBAAuB,EAAvB,mDAAuB;YACvB,wBAAwB,EAAxB,qDAAwB;YACxB,gBAAgB,EAAhB,qCAAgB;YAChB,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
|
|
@@ -3,35 +3,52 @@ export declare const clientApplicationSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/clientApplicationSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly required: readonly ["appName", "interval", "started", "strategies"];
|
|
6
|
+
readonly description: "A client application is an instance of one of our SDKs";
|
|
6
7
|
readonly properties: {
|
|
7
8
|
readonly appName: {
|
|
9
|
+
readonly description: "An identifier for the app that uses the sdk, should be static across SDK restarts";
|
|
8
10
|
readonly type: "string";
|
|
11
|
+
readonly example: "example-app";
|
|
9
12
|
};
|
|
10
13
|
readonly instanceId: {
|
|
14
|
+
readonly description: "A unique identifier identifying the instance of the application running the SDK. Often changes based on execution environment. For instance: two pods in Kubernetes will have two different instanceIds";
|
|
11
15
|
readonly type: "string";
|
|
16
|
+
readonly example: "b77f3d13-5f48-4a7b-a3f4-a449b97ce43a";
|
|
12
17
|
};
|
|
13
18
|
readonly sdkVersion: {
|
|
14
19
|
readonly type: "string";
|
|
20
|
+
readonly description: "An SDK version identifier. Usually formatted as \"unleash-client-<language>:<version>\"";
|
|
21
|
+
readonly example: "unleash-client-java:7.0.0";
|
|
15
22
|
};
|
|
16
23
|
readonly environment: {
|
|
24
|
+
readonly description: "The SDK's configured 'environment' property. Deprecated. This property does **not** control which Unleash environment the SDK gets toggles for. To control Unleash environments, use the SDKs API key.";
|
|
25
|
+
readonly deprecated: true;
|
|
17
26
|
readonly type: "string";
|
|
27
|
+
readonly example: "development";
|
|
18
28
|
};
|
|
19
29
|
readonly interval: {
|
|
20
30
|
readonly type: "number";
|
|
31
|
+
readonly description: "How often (in seconds) does the client refresh its toggles";
|
|
32
|
+
readonly example: 10;
|
|
33
|
+
readonly minimum: 0;
|
|
21
34
|
};
|
|
22
35
|
readonly started: {
|
|
36
|
+
readonly description: "Either an RFC-3339 timestamp or a unix timestamp in seconds";
|
|
23
37
|
readonly oneOf: readonly [{
|
|
24
38
|
readonly type: "string";
|
|
25
39
|
readonly format: "date-time";
|
|
26
40
|
}, {
|
|
27
41
|
readonly type: "number";
|
|
28
42
|
}];
|
|
43
|
+
readonly example: "2023-06-13T16:35:00.000Z";
|
|
29
44
|
};
|
|
30
45
|
readonly strategies: {
|
|
46
|
+
readonly description: "Which strategies the SDKs runtime knows about";
|
|
31
47
|
readonly type: "array";
|
|
32
48
|
readonly items: {
|
|
33
49
|
readonly type: "string";
|
|
34
50
|
};
|
|
51
|
+
readonly example: readonly ["default", "gradualRollout", "remoteAddress"];
|
|
35
52
|
};
|
|
36
53
|
};
|
|
37
54
|
readonly components: {};
|
|
@@ -5,33 +5,50 @@ exports.clientApplicationSchema = {
|
|
|
5
5
|
$id: '#/components/schemas/clientApplicationSchema',
|
|
6
6
|
type: 'object',
|
|
7
7
|
required: ['appName', 'interval', 'started', 'strategies'],
|
|
8
|
+
description: 'A client application is an instance of one of our SDKs',
|
|
8
9
|
properties: {
|
|
9
10
|
appName: {
|
|
11
|
+
description: 'An identifier for the app that uses the sdk, should be static across SDK restarts',
|
|
10
12
|
type: 'string',
|
|
13
|
+
example: 'example-app',
|
|
11
14
|
},
|
|
12
15
|
instanceId: {
|
|
16
|
+
description: 'A unique identifier identifying the instance of the application running the SDK. Often changes based on execution environment. For instance: two pods in Kubernetes will have two different instanceIds',
|
|
13
17
|
type: 'string',
|
|
18
|
+
example: 'b77f3d13-5f48-4a7b-a3f4-a449b97ce43a',
|
|
14
19
|
},
|
|
15
20
|
sdkVersion: {
|
|
16
21
|
type: 'string',
|
|
22
|
+
description: 'An SDK version identifier. Usually formatted as "unleash-client-<language>:<version>"',
|
|
23
|
+
example: 'unleash-client-java:7.0.0',
|
|
17
24
|
},
|
|
18
25
|
environment: {
|
|
26
|
+
description: `The SDK's configured 'environment' property. Deprecated. This property does **not** control which Unleash environment the SDK gets toggles for. To control Unleash environments, use the SDKs API key.`,
|
|
27
|
+
deprecated: true,
|
|
19
28
|
type: 'string',
|
|
29
|
+
example: 'development',
|
|
20
30
|
},
|
|
21
31
|
interval: {
|
|
22
32
|
type: 'number',
|
|
33
|
+
description: 'How often (in seconds) does the client refresh its toggles',
|
|
34
|
+
example: 10,
|
|
35
|
+
minimum: 0,
|
|
23
36
|
},
|
|
24
37
|
started: {
|
|
38
|
+
description: 'Either an RFC-3339 timestamp or a unix timestamp in seconds',
|
|
25
39
|
oneOf: [
|
|
26
40
|
{ type: 'string', format: 'date-time' },
|
|
27
41
|
{ type: 'number' },
|
|
28
42
|
],
|
|
43
|
+
example: '2023-06-13T16:35:00.000Z',
|
|
29
44
|
},
|
|
30
45
|
strategies: {
|
|
46
|
+
description: 'Which strategies the SDKs runtime knows about',
|
|
31
47
|
type: 'array',
|
|
32
48
|
items: {
|
|
33
49
|
type: 'string',
|
|
34
50
|
},
|
|
51
|
+
example: ['default', 'gradualRollout', 'remoteAddress'],
|
|
35
52
|
},
|
|
36
53
|
},
|
|
37
54
|
components: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-application-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-application-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;IAC1D,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"client-application-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-application-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;IAC1D,WAAW,EAAE,wDAAwD;IACrE,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EACP,mFAAmF;YACvF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;SACzB;QACD,UAAU,EAAE;YACR,WAAW,EACP,yMAAyM;YAC7M,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,sCAAsC;SAClD;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,uFAAuF;YAC3F,OAAO,EAAE,2BAA2B;SACvC;QACD,WAAW,EAAE;YACT,WAAW,EAAE,yMAAyM;YACtN,UAAU,EAAE,IAAI;YAChB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;SACzB;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,4DAA4D;YAChE,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,CAAC;SACb;QACD,OAAO,EAAE;YACL,WAAW,EACP,6DAA6D;YACjE,KAAK,EAAE;gBACH,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;gBACvC,EAAE,IAAI,EAAE,QAAQ,EAAE;aACrB;YACD,OAAO,EAAE,0BAA0B;SACtC;QACD,UAAU,EAAE;YACR,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,SAAS,EAAE,gBAAgB,EAAE,eAAe,CAAC;SAC1D;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -3,55 +3,60 @@ export declare const clientFeatureSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/clientFeatureSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly required: readonly ["name", "enabled"];
|
|
6
|
+
readonly description: "Feature toggle configuration used by SDKs to evaluate state of a toggle";
|
|
6
7
|
readonly additionalProperties: false;
|
|
7
8
|
readonly properties: {
|
|
8
9
|
readonly name: {
|
|
9
10
|
readonly type: "string";
|
|
11
|
+
readonly description: "The unique name of a feature toggle. Is validated to be URL safe on creation";
|
|
12
|
+
readonly example: "new.payment.flow.stripe";
|
|
10
13
|
};
|
|
11
14
|
readonly type: {
|
|
12
15
|
readonly type: "string";
|
|
16
|
+
readonly description: "What kind of feature flag is this. Refer to the documentation on [feature toggle types](https://docs.getunleash.io/reference/feature-toggle-types) for more information";
|
|
17
|
+
readonly example: "release";
|
|
13
18
|
};
|
|
14
19
|
readonly description: {
|
|
15
20
|
readonly type: "string";
|
|
21
|
+
readonly description: "A description of the toggle";
|
|
16
22
|
readonly nullable: true;
|
|
17
|
-
|
|
18
|
-
readonly createdAt: {
|
|
19
|
-
readonly type: "string";
|
|
20
|
-
readonly format: "date-time";
|
|
21
|
-
readonly nullable: true;
|
|
22
|
-
};
|
|
23
|
-
readonly lastSeenAt: {
|
|
24
|
-
readonly type: "string";
|
|
25
|
-
readonly format: "date-time";
|
|
26
|
-
readonly nullable: true;
|
|
23
|
+
readonly example: "No variants here";
|
|
27
24
|
};
|
|
28
25
|
readonly enabled: {
|
|
29
26
|
readonly type: "boolean";
|
|
27
|
+
readonly description: "Whether the feature flag is enabled for the current API key or not. This is ANDed with the evaluation results of the strategies list, so if this is false, the evaluation result will always be false";
|
|
28
|
+
readonly example: true;
|
|
30
29
|
};
|
|
31
30
|
readonly stale: {
|
|
31
|
+
readonly description: "If this is true Unleash believes this feature toggle has been active longer than Unleash expects a toggle of this type to be active";
|
|
32
32
|
readonly type: "boolean";
|
|
33
|
+
readonly example: false;
|
|
33
34
|
};
|
|
34
35
|
readonly impressionData: {
|
|
36
|
+
readonly description: "Set to true if SDKs should trigger [impression events](https://docs.getunleash.io/reference/impression-data) when this toggle is evaluated";
|
|
35
37
|
readonly type: "boolean";
|
|
36
38
|
readonly nullable: true;
|
|
39
|
+
readonly example: false;
|
|
37
40
|
};
|
|
38
41
|
readonly project: {
|
|
42
|
+
readonly description: "Which project this feature toggle belongs to";
|
|
39
43
|
readonly type: "string";
|
|
44
|
+
readonly example: "new.payment.flow";
|
|
40
45
|
};
|
|
41
46
|
readonly strategies: {
|
|
42
47
|
readonly type: "array";
|
|
48
|
+
readonly description: "Evaluation strategies for this toggle. Each entry in this list will be evaluated and ORed together";
|
|
43
49
|
readonly items: {
|
|
44
50
|
readonly $ref: "#/components/schemas/featureStrategySchema";
|
|
45
51
|
};
|
|
46
|
-
readonly deprecated: true;
|
|
47
52
|
};
|
|
48
53
|
readonly variants: {
|
|
49
54
|
readonly type: "array";
|
|
55
|
+
readonly description: "[Variants](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) configured for this toggle";
|
|
50
56
|
readonly items: {
|
|
51
57
|
readonly $ref: "#/components/schemas/variantSchema";
|
|
52
58
|
};
|
|
53
59
|
readonly nullable: true;
|
|
54
|
-
readonly deprecated: true;
|
|
55
60
|
};
|
|
56
61
|
};
|
|
57
62
|
readonly components: {
|
|
@@ -110,7 +115,7 @@ export declare const clientFeatureSchema: {
|
|
|
110
115
|
};
|
|
111
116
|
readonly featureStrategySchema: {
|
|
112
117
|
readonly $id: "#/components/schemas/featureStrategySchema";
|
|
113
|
-
readonly description: "A
|
|
118
|
+
readonly description: "A single activation strategy configuration schema for a feature";
|
|
114
119
|
readonly type: "object";
|
|
115
120
|
readonly additionalProperties: false;
|
|
116
121
|
readonly required: readonly ["name"];
|
|
@@ -227,23 +232,34 @@ export declare const clientFeatureSchema: {
|
|
|
227
232
|
readonly $id: "#/components/schemas/variantSchema";
|
|
228
233
|
readonly type: "object";
|
|
229
234
|
readonly additionalProperties: false;
|
|
235
|
+
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";
|
|
230
236
|
readonly required: readonly ["name", "weight"];
|
|
231
237
|
readonly properties: {
|
|
232
238
|
readonly name: {
|
|
233
239
|
readonly type: "string";
|
|
240
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
241
|
+
readonly example: "blue_group";
|
|
234
242
|
};
|
|
235
243
|
readonly weight: {
|
|
236
244
|
readonly type: "number";
|
|
245
|
+
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";
|
|
246
|
+
readonly minimum: 0;
|
|
247
|
+
readonly maximum: 1000;
|
|
237
248
|
};
|
|
238
249
|
readonly weightType: {
|
|
250
|
+
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";
|
|
239
251
|
readonly type: "string";
|
|
252
|
+
readonly example: "fix";
|
|
240
253
|
};
|
|
241
254
|
readonly stickiness: {
|
|
242
255
|
readonly type: "string";
|
|
256
|
+
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";
|
|
257
|
+
readonly example: "custom.context.field";
|
|
243
258
|
};
|
|
244
259
|
readonly payload: {
|
|
245
260
|
readonly type: "object";
|
|
246
261
|
readonly required: readonly ["type", "value"];
|
|
262
|
+
readonly description: "Extra data configured for this variant";
|
|
247
263
|
readonly properties: {
|
|
248
264
|
readonly type: {
|
|
249
265
|
readonly type: "string";
|
|
@@ -252,8 +268,13 @@ export declare const clientFeatureSchema: {
|
|
|
252
268
|
readonly type: "string";
|
|
253
269
|
};
|
|
254
270
|
};
|
|
271
|
+
readonly example: {
|
|
272
|
+
readonly type: "json";
|
|
273
|
+
readonly value: "{color: red}";
|
|
274
|
+
};
|
|
255
275
|
};
|
|
256
276
|
readonly overrides: {
|
|
277
|
+
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.";
|
|
257
278
|
readonly type: "array";
|
|
258
279
|
readonly items: {
|
|
259
280
|
readonly $ref: "#/components/schemas/overrideSchema";
|
|
@@ -267,15 +288,20 @@ export declare const clientFeatureSchema: {
|
|
|
267
288
|
readonly type: "object";
|
|
268
289
|
readonly additionalProperties: false;
|
|
269
290
|
readonly required: readonly ["contextName", "values"];
|
|
291
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
270
292
|
readonly properties: {
|
|
271
293
|
readonly contextName: {
|
|
294
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
272
295
|
readonly type: "string";
|
|
296
|
+
readonly example: "userId";
|
|
273
297
|
};
|
|
274
298
|
readonly values: {
|
|
299
|
+
readonly description: "Which values that should be overriden";
|
|
275
300
|
readonly type: "array";
|
|
276
301
|
readonly items: {
|
|
277
302
|
readonly type: "string";
|
|
278
303
|
};
|
|
304
|
+
readonly example: readonly ["red", "blue"];
|
|
279
305
|
};
|
|
280
306
|
};
|
|
281
307
|
readonly components: {};
|
|
@@ -288,15 +314,20 @@ export declare const clientFeatureSchema: {
|
|
|
288
314
|
readonly type: "object";
|
|
289
315
|
readonly additionalProperties: false;
|
|
290
316
|
readonly required: readonly ["contextName", "values"];
|
|
317
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
291
318
|
readonly properties: {
|
|
292
319
|
readonly contextName: {
|
|
320
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
293
321
|
readonly type: "string";
|
|
322
|
+
readonly example: "userId";
|
|
294
323
|
};
|
|
295
324
|
readonly values: {
|
|
325
|
+
readonly description: "Which values that should be overriden";
|
|
296
326
|
readonly type: "array";
|
|
297
327
|
readonly items: {
|
|
298
328
|
readonly type: "string";
|
|
299
329
|
};
|
|
330
|
+
readonly example: readonly ["red", "blue"];
|
|
300
331
|
};
|
|
301
332
|
};
|
|
302
333
|
readonly components: {};
|
|
@@ -10,55 +10,60 @@ exports.clientFeatureSchema = {
|
|
|
10
10
|
$id: '#/components/schemas/clientFeatureSchema',
|
|
11
11
|
type: 'object',
|
|
12
12
|
required: ['name', 'enabled'],
|
|
13
|
+
description: 'Feature toggle configuration used by SDKs to evaluate state of a toggle',
|
|
13
14
|
additionalProperties: false,
|
|
14
15
|
properties: {
|
|
15
16
|
name: {
|
|
16
17
|
type: 'string',
|
|
18
|
+
description: 'The unique name of a feature toggle. Is validated to be URL safe on creation',
|
|
19
|
+
example: 'new.payment.flow.stripe',
|
|
17
20
|
},
|
|
18
21
|
type: {
|
|
19
22
|
type: 'string',
|
|
23
|
+
description: 'What kind of feature flag is this. Refer to the documentation on [feature toggle types](https://docs.getunleash.io/reference/feature-toggle-types) for more information',
|
|
24
|
+
example: 'release',
|
|
20
25
|
},
|
|
21
26
|
description: {
|
|
22
27
|
type: 'string',
|
|
28
|
+
description: 'A description of the toggle',
|
|
23
29
|
nullable: true,
|
|
24
|
-
|
|
25
|
-
createdAt: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
format: 'date-time',
|
|
28
|
-
nullable: true,
|
|
29
|
-
},
|
|
30
|
-
lastSeenAt: {
|
|
31
|
-
type: 'string',
|
|
32
|
-
format: 'date-time',
|
|
33
|
-
nullable: true,
|
|
30
|
+
example: 'No variants here',
|
|
34
31
|
},
|
|
35
32
|
enabled: {
|
|
36
33
|
type: 'boolean',
|
|
34
|
+
description: 'Whether the feature flag is enabled for the current API key or not. This is ANDed with the evaluation results of the strategies list, so if this is false, the evaluation result will always be false',
|
|
35
|
+
example: true,
|
|
37
36
|
},
|
|
38
37
|
stale: {
|
|
38
|
+
description: 'If this is true Unleash believes this feature toggle has been active longer than Unleash expects a toggle of this type to be active',
|
|
39
39
|
type: 'boolean',
|
|
40
|
+
example: false,
|
|
40
41
|
},
|
|
41
42
|
impressionData: {
|
|
43
|
+
description: 'Set to true if SDKs should trigger [impression events](https://docs.getunleash.io/reference/impression-data) when this toggle is evaluated',
|
|
42
44
|
type: 'boolean',
|
|
43
45
|
nullable: true,
|
|
46
|
+
example: false,
|
|
44
47
|
},
|
|
45
48
|
project: {
|
|
49
|
+
description: 'Which project this feature toggle belongs to',
|
|
46
50
|
type: 'string',
|
|
51
|
+
example: 'new.payment.flow',
|
|
47
52
|
},
|
|
48
53
|
strategies: {
|
|
49
54
|
type: 'array',
|
|
55
|
+
description: 'Evaluation strategies for this toggle. Each entry in this list will be evaluated and ORed together',
|
|
50
56
|
items: {
|
|
51
57
|
$ref: '#/components/schemas/featureStrategySchema',
|
|
52
58
|
},
|
|
53
|
-
deprecated: true,
|
|
54
59
|
},
|
|
55
60
|
variants: {
|
|
56
61
|
type: 'array',
|
|
62
|
+
description: '[Variants](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) configured for this toggle',
|
|
57
63
|
items: {
|
|
58
64
|
$ref: '#/components/schemas/variantSchema',
|
|
59
65
|
},
|
|
60
66
|
nullable: true,
|
|
61
|
-
deprecated: true,
|
|
62
67
|
},
|
|
63
68
|
},
|
|
64
69
|
components: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-feature-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AACvD,uEAAkE;AAClE,qDAAiD;AACjD,uDAAmD;AAEtC,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC7B,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"client-feature-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-feature-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AACvD,uEAAkE;AAClE,qDAAiD;AACjD,uDAAmD;AAEtC,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC7B,WAAW,EACP,yEAAyE;IAC7E,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,8EAA8E;YAClF,OAAO,EAAE,yBAAyB;SACrC;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,yKAAyK;YAC7K,OAAO,EAAE,SAAS;SACrB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EACP,uMAAuM;YAC3M,OAAO,EAAE,IAAI;SAChB;QACD,KAAK,EAAE;YACH,WAAW,EACP,qIAAqI;YACzI,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB;QACD,cAAc,EAAE;YACZ,WAAW,EACP,4IAA4I;YAChJ,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACjB;QACD,OAAO,EAAE;YACL,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EACP,oGAAoG;YACxG,KAAK,EAAE;gBACH,IAAI,EAAE,4CAA4C;aACrD;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,uHAAuH;YAC3H,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;YACD,QAAQ,EAAE,IAAI;SACjB;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,oCAAgB;YAChB,qBAAqB,EAArB,+CAAqB;YACrB,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
|
|
@@ -3,30 +3,42 @@ export declare const clientFeaturesQuerySchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/clientFeaturesQuerySchema";
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
|
+
readonly description: "Query parameters active for a client features request";
|
|
6
7
|
readonly properties: {
|
|
7
8
|
readonly tag: {
|
|
8
9
|
readonly type: "array";
|
|
10
|
+
readonly description: "Features tagged with one of these tags are included";
|
|
9
11
|
readonly items: {
|
|
10
12
|
readonly type: "array";
|
|
11
13
|
readonly items: {
|
|
12
14
|
readonly type: "string";
|
|
13
15
|
};
|
|
14
16
|
};
|
|
17
|
+
readonly example: readonly [readonly ["simple:payment", "simple:stripejourney"]];
|
|
15
18
|
};
|
|
16
19
|
readonly project: {
|
|
17
20
|
readonly type: "array";
|
|
18
21
|
readonly items: {
|
|
19
22
|
readonly type: "string";
|
|
20
23
|
};
|
|
24
|
+
readonly description: "Features that are part of these projects are included in this response. (DEPRECATED) - Handled by API tokens";
|
|
25
|
+
readonly example: readonly ["new.payment.flow"];
|
|
26
|
+
readonly deprecated: true;
|
|
21
27
|
};
|
|
22
28
|
readonly namePrefix: {
|
|
29
|
+
readonly description: "Features are filtered to only include features whose name starts with this prefix";
|
|
23
30
|
readonly type: "string";
|
|
31
|
+
readonly example: "payment";
|
|
24
32
|
};
|
|
25
33
|
readonly environment: {
|
|
26
34
|
readonly type: "string";
|
|
35
|
+
readonly description: "Strategies for the feature toggle configured for this environment are included. (DEPRECATED) - Handled by API tokens";
|
|
36
|
+
readonly deprecated: true;
|
|
27
37
|
};
|
|
28
38
|
readonly inlineSegmentConstraints: {
|
|
39
|
+
readonly description: "Set to true if requesting client does not support Unleash-Client-Specification 4.2.2 or newer. Modern SDKs will have this set to false, since they will be able to merge constraints and segments themselves";
|
|
29
40
|
readonly type: "boolean";
|
|
41
|
+
readonly example: true;
|
|
30
42
|
};
|
|
31
43
|
};
|
|
32
44
|
readonly components: {};
|
|
@@ -5,30 +5,42 @@ exports.clientFeaturesQuerySchema = {
|
|
|
5
5
|
$id: '#/components/schemas/clientFeaturesQuerySchema',
|
|
6
6
|
type: 'object',
|
|
7
7
|
additionalProperties: false,
|
|
8
|
+
description: 'Query parameters active for a client features request',
|
|
8
9
|
properties: {
|
|
9
10
|
tag: {
|
|
10
11
|
type: 'array',
|
|
12
|
+
description: 'Features tagged with one of these tags are included',
|
|
11
13
|
items: {
|
|
12
14
|
type: 'array',
|
|
13
15
|
items: {
|
|
14
16
|
type: 'string',
|
|
15
17
|
},
|
|
16
18
|
},
|
|
19
|
+
example: [['simple:payment', 'simple:stripejourney']],
|
|
17
20
|
},
|
|
18
21
|
project: {
|
|
19
22
|
type: 'array',
|
|
20
23
|
items: {
|
|
21
24
|
type: 'string',
|
|
22
25
|
},
|
|
26
|
+
description: 'Features that are part of these projects are included in this response. (DEPRECATED) - Handled by API tokens',
|
|
27
|
+
example: ['new.payment.flow'],
|
|
28
|
+
deprecated: true,
|
|
23
29
|
},
|
|
24
30
|
namePrefix: {
|
|
31
|
+
description: 'Features are filtered to only include features whose name starts with this prefix',
|
|
25
32
|
type: 'string',
|
|
33
|
+
example: 'payment',
|
|
26
34
|
},
|
|
27
35
|
environment: {
|
|
28
36
|
type: 'string',
|
|
37
|
+
description: 'Strategies for the feature toggle configured for this environment are included. (DEPRECATED) - Handled by API tokens',
|
|
38
|
+
deprecated: true,
|
|
29
39
|
},
|
|
30
40
|
inlineSegmentConstraints: {
|
|
41
|
+
description: 'Set to true if requesting client does not support Unleash-Client-Specification 4.2.2 or newer. Modern SDKs will have this set to false, since they will be able to merge constraints and segments themselves',
|
|
31
42
|
type: 'boolean',
|
|
43
|
+
example: true,
|
|
32
44
|
},
|
|
33
45
|
},
|
|
34
46
|
components: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-features-query-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-features-query-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAG;IACrC,GAAG,EAAE,gDAAgD;IACrD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACR,GAAG,EAAE;YACD,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACH,IAAI,EAAE,QAAQ;iBACjB;aACJ;
|
|
1
|
+
{"version":3,"file":"client-features-query-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/client-features-query-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAG;IACrC,GAAG,EAAE,gDAAgD;IACrD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,uDAAuD;IACpE,UAAU,EAAE;QACR,GAAG,EAAE;YACD,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qDAAqD;YAClE,KAAK,EAAE;gBACH,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACH,IAAI,EAAE,QAAQ;iBACjB;aACJ;YACD,OAAO,EAAE,CAAC,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAAC;SACxD;QACD,OAAO,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,WAAW,EACP,8GAA8G;YAClH,OAAO,EAAE,CAAC,kBAAkB,CAAC;YAC7B,UAAU,EAAE,IAAI;SACnB;QACD,UAAU,EAAE;YACR,WAAW,EACP,mFAAmF;YACvF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,SAAS;SACrB;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,WAAW,EACP,sHAAsH;YAC1H,UAAU,EAAE,IAAI;SACnB;QACD,wBAAwB,EAAE;YACtB,WAAW,EACP,8MAA8M;YAClN,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SAChB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|