unleash-server 5.2.7 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/addons/addon-schema.js +10 -0
- package/dist/lib/addons/addon-schema.js.map +1 -1
- package/dist/lib/addons/addon.d.ts +1 -0
- package/dist/lib/addons/addon.js.map +1 -1
- package/dist/lib/addons/datadog-definition.js +21 -0
- package/dist/lib/addons/datadog-definition.js.map +1 -1
- package/dist/lib/addons/datadog.d.ts +8 -1
- package/dist/lib/addons/datadog.js +14 -2
- package/dist/lib/addons/datadog.js.map +1 -1
- package/dist/lib/addons/datadog.test.js +62 -0
- package/dist/lib/addons/datadog.test.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.d.ts +1 -0
- package/dist/lib/addons/feature-event-formatter-md.js +7 -0
- package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
- package/dist/lib/addons/index.d.ts +2 -1
- package/dist/lib/addons/index.js +12 -2
- package/dist/lib/addons/index.js.map +1 -1
- package/dist/lib/addons/installation-definition-schema.d.ts +2 -0
- package/dist/lib/addons/installation-definition-schema.js +13 -0
- package/dist/lib/addons/installation-definition-schema.js.map +1 -0
- package/dist/lib/addons/slack-app-definition.d.ts +3 -0
- package/dist/lib/addons/slack-app-definition.js +68 -0
- package/dist/lib/addons/slack-app-definition.js.map +1 -0
- package/dist/lib/addons/slack-app.d.ts +23 -0
- package/dist/lib/addons/slack-app.js +137 -0
- package/dist/lib/addons/slack-app.js.map +1 -0
- package/dist/lib/addons/slack-app.test.d.ts +1 -0
- package/dist/lib/addons/slack-app.test.js +191 -0
- package/dist/lib/addons/slack-app.test.js.map +1 -0
- package/dist/lib/addons/slack-definition.js +13 -0
- package/dist/lib/addons/slack-definition.js.map +1 -1
- package/dist/lib/addons/slack.d.ts +9 -1
- package/dist/lib/addons/slack.js +15 -3
- package/dist/lib/addons/slack.js.map +1 -1
- package/dist/lib/addons/slack.test.js +33 -0
- package/dist/lib/addons/slack.test.js.map +1 -1
- package/dist/lib/addons/teams-definition.js +13 -0
- package/dist/lib/addons/teams-definition.js.map +1 -1
- package/dist/lib/addons/teams.d.ts +6 -1
- package/dist/lib/addons/teams.js +11 -2
- package/dist/lib/addons/teams.js.map +1 -1
- package/dist/lib/addons/teams.test.js +28 -0
- package/dist/lib/addons/teams.test.js.map +1 -1
- package/dist/lib/addons/webhook-definition.js +13 -0
- package/dist/lib/addons/webhook-definition.js.map +1 -1
- package/dist/lib/addons/webhook.d.ts +1 -0
- package/dist/lib/addons/webhook.js +11 -1
- package/dist/lib/addons/webhook.js.map +1 -1
- package/dist/lib/addons/webhook.test.js +29 -0
- package/dist/lib/addons/webhook.test.js.map +1 -1
- package/dist/lib/create-config.js +2 -2
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +0 -1
- package/dist/lib/db/access-store.js +1 -14
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-metrics-store-v2.js +7 -2
- package/dist/lib/db/client-metrics-store-v2.js.map +1 -1
- package/dist/lib/db/context-field-store.js +9 -18
- package/dist/lib/db/context-field-store.js.map +1 -1
- package/dist/lib/db/event-store.d.ts +2 -0
- package/dist/lib/db/event-store.js +19 -9
- package/dist/lib/db/event-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.js +5 -0
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +1 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
- package/dist/lib/db/feature-toggle-client-store.d.ts +7 -8
- package/dist/lib/db/feature-toggle-client-store.js +46 -24
- package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-store.d.ts +6 -0
- package/dist/lib/db/feature-toggle-store.js +35 -0
- package/dist/lib/db/feature-toggle-store.js.map +1 -1
- package/dist/lib/db/feature-type-store.d.ts +1 -0
- package/dist/lib/db/feature-type-store.js +12 -0
- package/dist/lib/db/feature-type-store.js.map +1 -1
- package/dist/lib/db/group-store.d.ts +5 -7
- package/dist/lib/db/group-store.js +51 -25
- package/dist/lib/db/group-store.js.map +1 -1
- package/dist/lib/db/index.js +1 -1
- package/dist/lib/db/index.js.map +1 -1
- package/dist/lib/db/project-store.d.ts +3 -5
- package/dist/lib/db/project-store.js +19 -19
- package/dist/lib/db/project-store.js.map +1 -1
- package/dist/lib/db/segment-store.d.ts +2 -1
- package/dist/lib/db/segment-store.js +23 -20
- package/dist/lib/db/segment-store.js.map +1 -1
- package/dist/lib/db/segment-store.test.d.ts +1 -0
- package/dist/lib/db/segment-store.test.js +32 -0
- package/dist/lib/db/segment-store.test.js.map +1 -0
- package/dist/lib/error/bad-data-error.d.ts +1 -0
- package/dist/lib/error/bad-data-error.js +18 -5
- package/dist/lib/error/bad-data-error.js.map +1 -1
- package/dist/lib/error/content-type-error.d.ts +1 -0
- package/dist/lib/error/content-type-error.js +1 -0
- package/dist/lib/error/content-type-error.js.map +1 -1
- package/dist/lib/error/disabled-error.d.ts +1 -0
- package/dist/lib/error/disabled-error.js +4 -0
- package/dist/lib/error/disabled-error.js.map +1 -1
- package/dist/lib/error/feature-has-tag-error.d.ts +1 -0
- package/dist/lib/error/feature-has-tag-error.js +4 -0
- package/dist/lib/error/feature-has-tag-error.js.map +1 -1
- package/dist/lib/error/forbidden-error.d.ts +5 -0
- package/dist/lib/error/forbidden-error.js +12 -0
- package/dist/lib/error/forbidden-error.js.map +1 -0
- package/dist/lib/error/from-legacy-error.js +68 -0
- package/dist/lib/error/from-legacy-error.js.map +1 -1
- package/dist/lib/error/incompatible-project-error.d.ts +1 -0
- package/dist/lib/error/incompatible-project-error.js +1 -0
- package/dist/lib/error/incompatible-project-error.js.map +1 -1
- package/dist/lib/error/index.d.ts +3 -2
- package/dist/lib/error/index.js +5 -3
- package/dist/lib/error/index.js.map +1 -1
- package/dist/lib/error/invalid-operation-error.d.ts +1 -0
- package/dist/lib/error/invalid-operation-error.js +4 -0
- package/dist/lib/error/invalid-operation-error.js.map +1 -1
- package/dist/lib/error/invalid-token-error.d.ts +1 -0
- package/dist/lib/error/invalid-token-error.js +1 -0
- package/dist/lib/error/invalid-token-error.js.map +1 -1
- package/dist/lib/error/minimum-one-environment-error.d.ts +1 -0
- package/dist/lib/error/minimum-one-environment-error.js +4 -0
- package/dist/lib/error/minimum-one-environment-error.js.map +1 -1
- package/dist/lib/error/name-exists-error.d.ts +1 -0
- package/dist/lib/error/name-exists-error.js +4 -0
- package/dist/lib/error/name-exists-error.js.map +1 -1
- package/dist/lib/error/not-implemented-error.d.ts +1 -0
- package/dist/lib/error/not-implemented-error.js +4 -0
- package/dist/lib/error/not-implemented-error.js.map +1 -1
- package/dist/lib/error/notfound-error.d.ts +1 -0
- package/dist/lib/error/notfound-error.js +1 -0
- package/dist/lib/error/notfound-error.js.map +1 -1
- package/dist/lib/error/operation-denied-error.d.ts +1 -0
- package/dist/lib/error/operation-denied-error.js +4 -0
- package/dist/lib/error/operation-denied-error.js.map +1 -1
- package/dist/lib/error/owasp-validation-error.d.ts +1 -0
- package/dist/lib/error/owasp-validation-error.js +1 -0
- package/dist/lib/error/owasp-validation-error.js.map +1 -1
- package/dist/lib/error/password-mismatch.d.ts +1 -0
- package/dist/lib/error/password-mismatch.js +1 -0
- package/dist/lib/error/password-mismatch.js.map +1 -1
- package/dist/lib/error/password-undefined.d.ts +1 -0
- package/dist/lib/error/password-undefined.js +1 -0
- package/dist/lib/error/password-undefined.js.map +1 -1
- package/dist/lib/error/{no-access-error.d.ts → permission-error.d.ts} +3 -2
- package/dist/lib/error/{no-access-error.js → permission-error.js} +10 -7
- package/dist/lib/error/permission-error.js.map +1 -0
- package/dist/lib/error/project-without-owner-error.d.ts +1 -0
- package/dist/lib/error/project-without-owner-error.js +1 -0
- package/dist/lib/error/project-without-owner-error.js.map +1 -1
- package/dist/lib/error/role-in-use-error.d.ts +1 -0
- package/dist/lib/error/role-in-use-error.js +4 -0
- package/dist/lib/error/role-in-use-error.js.map +1 -1
- package/dist/lib/error/unauthorized-error.d.ts +1 -0
- package/dist/lib/error/unauthorized-error.js +4 -0
- package/dist/lib/error/unauthorized-error.js.map +1 -1
- package/dist/lib/error/unleash-error.d.ts +5 -3
- package/dist/lib/error/unleash-error.js +4 -61
- package/dist/lib/error/unleash-error.js.map +1 -1
- package/dist/lib/error/unleash-error.test.js +67 -37
- package/dist/lib/error/unleash-error.test.js.map +1 -1
- package/dist/lib/error/used-token-error.d.ts +1 -0
- package/dist/lib/error/used-token-error.js +1 -0
- package/dist/lib/error/used-token-error.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-controller.js +12 -7
- package/dist/lib/features/export-import-toggles/export-import-controller.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js +1 -1
- package/dist/lib/features/export-import-toggles/import-permissions-service.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/group/createGroupService.d.ts +4 -0
- package/dist/lib/features/group/createGroupService.js +20 -0
- package/dist/lib/features/group/createGroupService.js.map +1 -0
- package/dist/lib/features/playground/feature-evaluator/client.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/client.js +33 -13
- package/dist/lib/features/playground/feature-evaluator/client.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.d.ts +3 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js +14 -1
- package/dist/lib/features/playground/feature-evaluator/strategy/strategy.js.map +1 -1
- package/dist/lib/features/playground/feature-evaluator/variant.d.ts +4 -4
- package/dist/lib/features/playground/feature-evaluator/variant.js +14 -10
- package/dist/lib/features/playground/feature-evaluator/variant.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.js +7 -0
- package/dist/lib/features/playground/offline-unleash-client.js.map +1 -1
- package/dist/lib/features/playground/offline-unleash-client.test.js +69 -0
- package/dist/lib/features/playground/offline-unleash-client.test.js.map +1 -1
- package/dist/lib/features/playground/playground-service.js +5 -3
- package/dist/lib/features/playground/playground-service.js.map +1 -1
- package/dist/lib/features/playground/playground.js +12 -15
- package/dist/lib/features/playground/playground.js.map +1 -1
- package/dist/lib/middleware/api-token-middleware.js +1 -1
- package/dist/lib/middleware/api-token-middleware.js.map +1 -1
- package/dist/lib/openapi/index.js +15 -3
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +0 -126
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/addon-type-schema.d.ts +57 -0
- package/dist/lib/openapi/spec/addon-type-schema.js +50 -0
- package/dist/lib/openapi/spec/addon-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/addons-schema.d.ts +64 -0
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +166 -4
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js +1 -2
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +331 -6
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +662 -12
- package/dist/lib/openapi/spec/api-tokens-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js +2 -2
- package/dist/lib/openapi/spec/api-tokens-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-features-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js +3 -0
- package/dist/lib/openapi/spec/batch-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/batch-stale-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js +7 -0
- package/dist/lib/openapi/spec/batch-stale-schema.js.map +1 -1
- package/dist/lib/openapi/spec/change-password-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js +5 -0
- package/dist/lib/openapi/spec/change-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-feature-schema.d.ts +121 -3
- package/dist/lib/openapi/spec/client-feature-schema.js +2 -0
- package/dist/lib/openapi/spec/client-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.d.ts +246 -16
- package/dist/lib/openapi/spec/client-features-schema.js +5 -3
- package/dist/lib/openapi/spec/client-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-features-schema.test.js +1 -2
- package/dist/lib/openapi/spec/client-features-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/client-segment-schema.d.ts +75 -0
- package/dist/lib/openapi/spec/client-segment-schema.js +35 -0
- package/dist/lib/openapi/spec/client-segment-schema.js.map +1 -0
- package/dist/lib/openapi/spec/clone-feature-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js +5 -0
- package/dist/lib/openapi/spec/clone-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-schema.d.ts +22 -3
- package/dist/lib/openapi/spec/context-field-schema.js +17 -3
- package/dist/lib/openapi/spec/context-field-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js +1 -1
- package/dist/lib/openapi/spec/context-field-strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/context-fields-schema.d.ts +28 -3
- package/dist/lib/openapi/spec/context-fields-schema.js +1 -0
- package/dist/lib/openapi/spec/context-fields-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-api-token-schema.d.ts +130 -32
- package/dist/lib/openapi/spec/create-api-token-schema.js +71 -35
- package/dist/lib/openapi/spec/create-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js +9 -0
- package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +63 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js +12 -2
- package/dist/lib/openapi/spec/create-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-group-schema.d.ts +61 -0
- package/dist/lib/openapi/spec/create-group-schema.js +43 -0
- package/dist/lib/openapi/spec/create-group-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-schema.d.ts +52 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js +60 -0
- package/dist/lib/openapi/spec/create-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js +53 -0
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-response-schema.d.ts +98 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js +31 -0
- package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-user-schema.d.ts +21 -1
- package/dist/lib/openapi/spec/create-user-schema.js +24 -1
- package/dist/lib/openapi/spec/create-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/email-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/email-schema.js +3 -0
- package/dist/lib/openapi/spec/email-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/environment-project-schema.js +2 -0
- package/dist/lib/openapi/spec/environment-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +118 -2
- package/dist/lib/openapi/spec/environments-project-schema.js +3 -0
- package/dist/lib/openapi/spec/environments-project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environments-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/environments-schema.js +4 -0
- package/dist/lib/openapi/spec/environments-schema.js.map +1 -1
- package/dist/lib/openapi/spec/event-schema.d.ts +130 -0
- package/dist/lib/openapi/spec/event-schema.js +42 -2
- package/dist/lib/openapi/spec/event-schema.js.map +1 -1
- package/dist/lib/openapi/spec/events-schema.d.ts +137 -0
- package/dist/lib/openapi/spec/events-schema.js +7 -0
- package/dist/lib/openapi/spec/events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-query-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js +7 -0
- package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +609 -17
- package/dist/lib/openapi/spec/export-result-schema.js +90 -0
- package/dist/lib/openapi/spec/export-result-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +125 -3
- package/dist/lib/openapi/spec/feature-environment-schema.js +6 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-events-schema.d.ts +141 -1
- package/dist/lib/openapi/spec/feature-events-schema.js +13 -1
- package/dist/lib/openapi/spec/feature-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.d.ts +251 -6
- package/dist/lib/openapi/spec/feature-schema.js +7 -0
- package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-schema.test.js +2 -2
- package/dist/lib/openapi/spec/feature-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.d.ts +61 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js +10 -1
- package/dist/lib/openapi/spec/feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-type-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js +11 -1
- package/dist/lib/openapi/spec/feature-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-types-schema.d.ts +42 -1
- package/dist/lib/openapi/spec/feature-types-schema.js +37 -0
- package/dist/lib/openapi/spec/feature-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-variants-schema.d.ts +11 -2
- package/dist/lib/openapi/spec/feature-variants-schema.js +4 -0
- package/dist/lib/openapi/spec/feature-variants-schema.js.map +1 -1
- package/dist/lib/openapi/spec/features-schema.d.ts +501 -12
- package/dist/lib/openapi/spec/features-schema.js +6 -0
- package/dist/lib/openapi/spec/features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feedback-create-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js +23 -0
- package/dist/lib/openapi/spec/feedback-create-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-response-schema.d.ts +33 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js +35 -0
- package/dist/lib/openapi/spec/feedback-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/feedback-update-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js +29 -0
- package/dist/lib/openapi/spec/feedback-update-schema.js.map +1 -0
- package/dist/lib/openapi/spec/group-schema.d.ts +107 -9
- package/dist/lib/openapi/spec/group-schema.js +20 -3
- package/dist/lib/openapi/spec/group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/group-user-model-schema.d.ts +46 -3
- package/dist/lib/openapi/spec/group-user-model-schema.js +5 -0
- package/dist/lib/openapi/spec/group-user-model-schema.js.map +1 -1
- package/dist/lib/openapi/spec/groups-schema.d.ts +196 -15
- package/dist/lib/openapi/spec/groups-schema.js +2 -0
- package/dist/lib/openapi/spec/groups-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/health-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/health-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/health-report-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/id-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/id-schema.js +3 -0
- package/dist/lib/openapi/spec/id-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +1198 -63
- package/dist/lib/openapi/spec/import-toggles-schema.js +7 -0
- package/dist/lib/openapi/spec/import-toggles-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js +5 -0
- package/dist/lib/openapi/spec/import-toggles-validate-item-schema.js.map +1 -1
- package/dist/lib/openapi/spec/import-toggles-validate-schema.d.ts +18 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js +17 -0
- package/dist/lib/openapi/spec/import-toggles-validate-schema.js.map +1 -1
- package/dist/lib/openapi/spec/index.d.ts +15 -3
- package/dist/lib/openapi/spec/index.js +15 -3
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/legal-value-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js +5 -0
- package/dist/lib/openapi/spec/legal-value-schema.js.map +1 -1
- package/dist/lib/openapi/spec/login-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/login-schema.js +5 -0
- package/dist/lib/openapi/spec/login-schema.js.map +1 -1
- package/dist/lib/openapi/spec/me-schema.d.ts +69 -11
- package/dist/lib/openapi/spec/me-schema.js +7 -3
- package/dist/lib/openapi/spec/me-schema.js.map +1 -1
- package/dist/lib/openapi/spec/name-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/name-schema.js +3 -0
- package/dist/lib/openapi/spec/name-schema.js.map +1 -1
- package/dist/lib/openapi/spec/parameters-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js +1 -0
- package/dist/lib/openapi/spec/parameters-schema.js.map +1 -1
- package/dist/lib/openapi/spec/password-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/password-schema.js +7 -0
- package/dist/lib/openapi/spec/password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/patches-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/patches-schema.js +1 -0
- package/dist/lib/openapi/spec/patches-schema.js.map +1 -1
- package/dist/lib/openapi/spec/permission-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/permission-schema.js +7 -0
- package/dist/lib/openapi/spec/permission-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +165 -3
- package/dist/lib/openapi/spec/playground-feature-schema.js +0 -1
- package/dist/lib/openapi/spec/playground-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +330 -5
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +204 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js +49 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +267 -7
- package/dist/lib/openapi/spec/profile-schema.js +5 -0
- package/dist/lib/openapi/spec/profile-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +115 -2
- package/dist/lib/openapi/spec/project-environment-schema.js +2 -0
- package/dist/lib/openapi/spec/project-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +733 -16
- package/dist/lib/openapi/spec/project-overview-schema.js +10 -0
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-client-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js +3 -0
- package/dist/lib/openapi/spec/proxy-client-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-feature-schema.d.ts +20 -2
- package/dist/lib/openapi/spec/proxy-feature-schema.js +20 -3
- package/dist/lib/openapi/spec/proxy-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/proxy-features-schema.d.ts +22 -1
- package/dist/lib/openapi/spec/proxy-features-schema.js +2 -0
- package/dist/lib/openapi/spec/proxy-features-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +52 -4
- package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +104 -8
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/requests-per-second-schema.js +22 -2
- package/dist/lib/openapi/spec/requests-per-second-schema.js.map +1 -1
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.d.ts +17 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js +1 -0
- package/dist/lib/openapi/spec/requests-per-second-segmented-schema.js.map +1 -1
- package/dist/lib/openapi/spec/role-schema.d.ts +11 -1
- package/dist/lib/openapi/spec/role-schema.js +11 -1
- package/dist/lib/openapi/spec/role-schema.js.map +1 -1
- package/dist/lib/openapi/spec/search-events-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/search-events-schema.js +10 -0
- package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/segment-schema.d.ts +23 -6
- package/dist/lib/openapi/spec/segment-schema.js +18 -15
- package/dist/lib/openapi/spec/segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js +6 -0
- package/dist/lib/openapi/spec/set-strategy-sort-order-schema.js.map +1 -1
- package/dist/lib/openapi/spec/set-ui-config-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js +4 -0
- package/dist/lib/openapi/spec/set-ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/splash-request-schema.d.ts +21 -0
- package/dist/lib/openapi/spec/splash-request-schema.js +23 -0
- package/dist/lib/openapi/spec/splash-request-schema.js.map +1 -0
- package/dist/lib/openapi/spec/splash-response-schema.d.ts +27 -0
- package/dist/lib/openapi/spec/splash-response-schema.js +21 -0
- package/dist/lib/openapi/spec/splash-response-schema.js.map +1 -0
- package/dist/lib/openapi/spec/state-schema.d.ts +523 -19
- package/dist/lib/openapi/spec/state-schema.js +2 -0
- package/dist/lib/openapi/spec/state-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategies-schema.d.ts +9 -3
- package/dist/lib/openapi/spec/strategies-schema.js +5 -0
- package/dist/lib/openapi/spec/strategies-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.d.ts +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js +4 -3
- package/dist/lib/openapi/spec/strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-schema.test.js +5 -0
- package/dist/lib/openapi/spec/strategy-schema.test.js.map +1 -1
- package/dist/lib/openapi/spec/strategy-variant-schema.d.ts +54 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js +16 -0
- package/dist/lib/openapi/spec/strategy-variant-schema.js.map +1 -0
- package/dist/lib/openapi/spec/tag-type-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js +7 -0
- package/dist/lib/openapi/spec/tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-types-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/tag-types-schema.js +4 -0
- package/dist/lib/openapi/spec/tag-types-schema.js.map +1 -1
- package/dist/lib/openapi/spec/tag-with-version-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js +3 -0
- package/dist/lib/openapi/spec/tag-with-version-schema.js.map +1 -1
- package/dist/lib/openapi/spec/telemetry-settings-schema.d.ts +22 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js +24 -0
- package/dist/lib/openapi/spec/telemetry-settings-schema.js.map +1 -0
- package/dist/lib/openapi/spec/token-user-schema.d.ts +23 -2
- package/dist/lib/openapi/spec/token-user-schema.js +12 -1
- package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/ui-config-schema.d.ts +77 -1
- package/dist/lib/openapi/spec/ui-config-schema.js +53 -0
- package/dist/lib/openapi/spec/ui-config-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-api-token-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js +3 -0
- package/dist/lib/openapi/spec/update-api-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-schema.d.ts +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js +11 -14
- package/dist/lib/openapi/spec/update-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-strategy-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js +4 -0
- package/dist/lib/openapi/spec/update-feature-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.d.ts +19 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js +21 -0
- package/dist/lib/openapi/spec/update-feature-type-lifetime-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-strategy-schema.d.ts +47 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js +55 -0
- package/dist/lib/openapi/spec/update-strategy-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js +5 -0
- package/dist/lib/openapi/spec/update-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/update-user-schema.d.ts +15 -1
- package/dist/lib/openapi/spec/update-user-schema.js +18 -1
- package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/upsert-context-field-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/user-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/user-schema.js +41 -3
- package/dist/lib/openapi/spec/user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +194 -15
- package/dist/lib/openapi/spec/users-schema.d.ts +55 -4
- package/dist/lib/openapi/spec/users-schema.js +3 -0
- package/dist/lib/openapi/spec/users-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-search-schema.d.ts +41 -3
- package/dist/lib/openapi/spec/validate-feature-schema.d.ts +16 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js +18 -0
- package/dist/lib/openapi/spec/validate-feature-schema.js.map +1 -0
- package/dist/lib/openapi/spec/validate-password-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/validate-tag-type-schema.d.ts +10 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js +3 -0
- package/dist/lib/openapi/spec/validate-tag-type-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-flag-schema.d.ts +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js +11 -0
- package/dist/lib/openapi/spec/variant-flag-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variant-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/variant-schema.js +7 -2
- package/dist/lib/openapi/spec/variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +7 -2
- package/dist/lib/openapi/spec/version-schema.d.ts +16 -1
- package/dist/lib/openapi/spec/version-schema.js +16 -1
- package/dist/lib/openapi/spec/version-schema.js.map +1 -1
- package/dist/lib/openapi/util/openapi-tags.d.ts +14 -2
- package/dist/lib/openapi/util/openapi-tags.js +9 -1
- package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
- package/dist/lib/openapi/util/standard-responses.d.ts +1 -1
- package/dist/lib/openapi/util/standard-responses.js +1 -1
- package/dist/lib/openapi/util/standard-responses.js.map +1 -1
- package/dist/lib/openapi/validate.js +1 -1
- package/dist/lib/openapi/validate.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.js +12 -0
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/archive.d.ts +0 -1
- package/dist/lib/routes/admin-api/archive.js +20 -5
- package/dist/lib/routes/admin-api/archive.js.map +1 -1
- package/dist/lib/routes/admin-api/config.js +4 -0
- package/dist/lib/routes/admin-api/config.js.map +1 -1
- package/dist/lib/routes/admin-api/constraints.d.ts +2 -2
- package/dist/lib/routes/admin-api/constraints.js +5 -2
- package/dist/lib/routes/admin-api/constraints.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +2 -1
- package/dist/lib/routes/admin-api/context.js +16 -4
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/event.js +6 -3
- package/dist/lib/routes/admin-api/event.js.map +1 -1
- package/dist/lib/routes/admin-api/favorites.js +24 -4
- package/dist/lib/routes/admin-api/favorites.js.map +1 -1
- package/dist/lib/routes/admin-api/feature-type.d.ts +6 -0
- package/dist/lib/routes/admin-api/feature-type.js +37 -1
- package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
- package/dist/lib/routes/admin-api/feature.d.ts +2 -3
- package/dist/lib/routes/admin-api/feature.js +14 -3
- package/dist/lib/routes/admin-api/feature.js.map +1 -1
- package/dist/lib/routes/admin-api/index.js +2 -0
- package/dist/lib/routes/admin-api/index.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-archive.js +13 -4
- package/dist/lib/routes/admin-api/project/project-archive.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-features.d.ts +1 -1
- package/dist/lib/routes/admin-api/project/project-features.js +116 -27
- package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
- package/dist/lib/routes/admin-api/project/variants.js +26 -16
- package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.d.ts +6 -3
- package/dist/lib/routes/admin-api/strategy.js +40 -12
- package/dist/lib/routes/admin-api/strategy.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.test.js +5 -5
- package/dist/lib/routes/admin-api/strategy.test.js.map +1 -1
- package/dist/lib/routes/admin-api/tag-type.js +21 -1
- package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
- package/dist/lib/routes/admin-api/tag.js +17 -1
- package/dist/lib/routes/admin-api/tag.js.map +1 -1
- package/dist/lib/routes/admin-api/telemetry.d.ts +14 -0
- package/dist/lib/routes/admin-api/telemetry.js +41 -0
- package/dist/lib/routes/admin-api/telemetry.js.map +1 -0
- package/dist/lib/routes/admin-api/user/user.js +20 -4
- package/dist/lib/routes/admin-api/user/user.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.d.ts +3 -2
- package/dist/lib/routes/admin-api/user-admin.js +88 -14
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/user-feedback.js +17 -7
- package/dist/lib/routes/admin-api/user-feedback.js.map +1 -1
- package/dist/lib/routes/admin-api/user-splash.js +9 -3
- package/dist/lib/routes/admin-api/user-splash.js.map +1 -1
- package/dist/lib/routes/auth/reset-password-controller.js +24 -4
- package/dist/lib/routes/auth/reset-password-controller.js.map +1 -1
- package/dist/lib/routes/auth/simple-password-provider.js +4 -0
- package/dist/lib/routes/auth/simple-password-provider.js.map +1 -1
- package/dist/lib/routes/client-api/feature.js +1 -1
- package/dist/lib/routes/client-api/feature.js.map +1 -1
- package/dist/lib/routes/client-api/feature.test.js +8 -3
- package/dist/lib/routes/client-api/feature.test.js.map +1 -1
- package/dist/lib/routes/client-api/metrics.js +3 -3
- package/dist/lib/routes/client-api/metrics.js.map +1 -1
- package/dist/lib/routes/controller.js +2 -2
- package/dist/lib/routes/controller.js.map +1 -1
- package/dist/lib/routes/index.js +1 -3
- package/dist/lib/routes/index.js.map +1 -1
- package/dist/lib/routes/proxy-api/index.d.ts +1 -1
- package/dist/lib/routes/proxy-api/index.js +27 -4
- package/dist/lib/routes/proxy-api/index.js.map +1 -1
- package/dist/lib/segments/segment-service-interface.d.ts +2 -1
- package/dist/lib/server-impl.js +1 -0
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/addon-service.d.ts +2 -1
- package/dist/lib/services/addon-service.js +6 -2
- package/dist/lib/services/addon-service.js.map +1 -1
- package/dist/lib/services/client-metrics/metrics-service-v2.js +24 -13
- package/dist/lib/services/client-metrics/metrics-service-v2.js.map +1 -1
- package/dist/lib/services/event-announcer-service.d.ts +8 -0
- package/dist/lib/services/event-announcer-service.js +13 -0
- package/dist/lib/services/event-announcer-service.js.map +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.d.ts +1 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js +44 -0
- package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -0
- package/dist/lib/services/feature-toggle-service.d.ts +5 -2
- package/dist/lib/services/feature-toggle-service.js +95 -16
- package/dist/lib/services/feature-toggle-service.js.map +1 -1
- package/dist/lib/services/feature-type-service.d.ts +1 -0
- package/dist/lib/services/feature-type-service.js +14 -0
- package/dist/lib/services/feature-type-service.js.map +1 -1
- package/dist/lib/services/group-service.d.ts +4 -4
- package/dist/lib/services/group-service.js.map +1 -1
- package/dist/lib/services/index.js +9 -1
- package/dist/lib/services/index.js.map +1 -1
- package/dist/lib/services/project-schema.js +1 -0
- package/dist/lib/services/project-schema.js.map +1 -1
- package/dist/lib/services/project-service.d.ts +2 -4
- package/dist/lib/services/project-service.js +4 -9
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/segment-service.d.ts +2 -1
- package/dist/lib/services/segment-service.js +3 -0
- package/dist/lib/services/segment-service.js.map +1 -1
- package/dist/lib/services/tag-type-service.d.ts +2 -2
- package/dist/lib/services/tag-type-service.js +5 -3
- package/dist/lib/services/tag-type-service.js.map +1 -1
- package/dist/lib/services/user-service.js +13 -7
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +1 -2
- package/dist/lib/services/version-service.js +2 -4
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/services/version-service.test.js +0 -57
- package/dist/lib/services/version-service.test.js.map +1 -1
- package/dist/lib/types/authentication-required.d.ts +1 -0
- package/dist/lib/types/authentication-required.js +1 -0
- package/dist/lib/types/authentication-required.js.map +1 -1
- package/dist/lib/types/events.d.ts +138 -99
- package/dist/lib/types/events.js +136 -3
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +5 -5
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/group.d.ts +7 -0
- package/dist/lib/types/group.js.map +1 -1
- package/dist/lib/types/model.d.ts +24 -2
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/services.d.ts +3 -0
- package/dist/lib/types/stores/event-store.d.ts +1 -0
- package/dist/lib/types/stores/feature-toggle-client-store.d.ts +2 -1
- package/dist/lib/types/stores/feature-toggle-store.d.ts +6 -0
- package/dist/lib/types/stores/feature-type-store.d.ts +1 -0
- package/dist/lib/types/stores/group-store.d.ts +4 -4
- package/dist/lib/types/stores/project-store.d.ts +3 -6
- package/dist/lib/types/stores/segment-store.d.ts +2 -1
- package/dist/lib/util/is-email.d.ts +7 -0
- package/dist/lib/util/is-email.js +9 -0
- package/dist/lib/util/is-email.js.map +1 -1
- package/dist/lib/util/load-index-html.js +1 -1
- package/dist/lib/util/load-index-html.js.map +1 -1
- package/dist/migrations/20230630080126-delete-deprecated-permissions.d.ts +2 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js +15 -0
- package/dist/migrations/20230630080126-delete-deprecated-permissions.js.map +1 -0
- package/dist/migrations/20230706123907-events-announced-column.d.ts +2 -0
- package/dist/migrations/20230706123907-events-announced-column.js +15 -0
- package/dist/migrations/20230706123907-events-announced-column.js.map +1 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.d.ts +2 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js +18 -0
- package/dist/migrations/20230711094214-add-potentially-stale-flag.js.map +1 -0
- package/dist/migrations/20230711163311-project-feature-limit.d.ts +2 -0
- package/dist/migrations/20230711163311-project-feature-limit.js +13 -0
- package/dist/migrations/20230711163311-project-feature-limit.js.map +1 -0
- package/dist/migrations/20230712091834-strategy-variants.d.ts +2 -0
- package/dist/migrations/20230712091834-strategy-variants.js +81 -0
- package/dist/migrations/20230712091834-strategy-variants.js.map +1 -0
- package/dist/server-dev.js +5 -3
- package/dist/server-dev.js.map +1 -1
- package/dist/test/arbitraries.test.js +1 -1
- package/dist/test/arbitraries.test.js.map +1 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js +2 -1
- package/dist/test/e2e/api/admin/addon.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/archive.test.js +7 -1
- package/dist/test/e2e/api/admin/archive.test.js.map +1 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/config.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/favorites.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feature-type.test.js +41 -1
- package/dist/test/e2e/api/admin/feature-type.test.js.map +1 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/feedback.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/playground.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +152 -0
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js +28 -12
- package/dist/test/e2e/api/admin/project/variants.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/splash.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/state.e2e.test.js +6 -6
- package/dist/test/e2e/api/admin/state.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js +7 -1
- package/dist/test/e2e/api/admin/user-admin.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js +9 -6
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +26 -4
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/group-service.e2e.test.js +16 -0
- package/dist/test/e2e/services/group-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/user-service.e2e.test.js +2 -2
- package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/event-store.e2e.test.js +3 -2
- package/dist/test/e2e/stores/event-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js +163 -0
- package/dist/test/e2e/stores/feature-toggle-store.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js +13 -0
- package/dist/test/e2e/stores/feature-type-store.e2e.test.js.map +1 -1
- package/dist/test/fixtures/fake-event-store.d.ts +1 -0
- package/dist/test/fixtures/fake-event-store.js +3 -0
- package/dist/test/fixtures/fake-event-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-client-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js +10 -0
- package/dist/test/fixtures/fake-feature-toggle-client-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-store.d.ts +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js +6 -0
- package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-type-store.d.ts +1 -0
- package/dist/test/fixtures/fake-feature-type-store.js +8 -0
- package/dist/test/fixtures/fake-feature-type-store.js.map +1 -1
- package/dist/test/fixtures/fake-group-store.d.ts +4 -4
- package/dist/test/fixtures/fake-group-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.d.ts +3 -4
- package/dist/test/fixtures/fake-project-store.js +4 -13
- package/dist/test/fixtures/fake-project-store.js.map +1 -1
- package/dist/test/fixtures/fake-segment-store.d.ts +2 -1
- package/dist/test/fixtures/fake-segment-store.js +3 -0
- package/dist/test/fixtures/fake-segment-store.js.map +1 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/AdvancedPlayground-4c9d02ea.js +13 -0
- package/frontend/build/static/CreateProject-16b35d57.js +4 -0
- package/frontend/build/static/{Error-2c3030da.js → Error-50364f10.js} +1 -1
- package/frontend/build/static/{FeatureArchiveDialog-a529848e.js → FeatureArchiveDialog-fda1aa0c.js} +3 -3
- package/frontend/build/static/{FeatureMetricsChart-e8ede36a.js → FeatureMetricsChart-839cdf1e.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-47bb7f13.js +7 -0
- package/frontend/build/static/LazyAdminExport-8ef0ca21.js +37 -0
- package/frontend/build/static/LazyProjectExport-49541c75.js +16 -0
- package/frontend/build/static/{NetworkOverview-e6f0a590.js → NetworkOverview-711050f3.js} +8 -8
- package/frontend/build/static/{NetworkTraffic-d1efc782.js → NetworkTraffic-e587c2c7.js} +1 -1
- package/frontend/build/static/RoleCell-9a62b4ed.js +1 -0
- package/frontend/build/static/StrategyItemContainer-4098c8ef.js +1 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-0d05c046.js → chartjs-adapter-date-fns.esm-d57aaddd.js} +1 -1
- package/frontend/build/static/demo-qr-c2ce85bd.png +0 -0
- package/frontend/build/static/{flowchart-elk-definition-170a3958-cc4ae597.js → flowchart-elk-definition-170a3958-4dece62b.js} +2 -2
- package/frontend/build/static/{index-a563ae6f.js → index-1c8194e0.js} +1 -1
- package/frontend/build/static/index-770afaee.css +1 -0
- package/frontend/build/static/{index-ade82986.js → index-9bb67f88.js} +1 -1
- package/frontend/build/static/index-9c528324.js +453 -0
- package/frontend/build/static/{is_dark-49e2e68f.js → is_dark-ba77f0b9.js} +1 -1
- package/frontend/build/static/{mindmap-definition-44684416-c6d3a96e.js → mindmap-definition-44684416-a4071c9f.js} +3 -3
- package/frontend/build/static/{timeline-definition-8e5a9bc6-920370f9.js → timeline-definition-8e5a9bc6-c996bf40.js} +2 -2
- package/frontend/build/static/{unknownify-30fed5e1.js → unknownify-db48ebae.js} +1 -1
- package/frontend/package.json +16 -16
- package/package.json +15 -13
- package/dist/lib/error/no-access-error.js.map +0 -1
- package/dist/lib/openapi/endpoint-descriptions.d.ts +0 -20
- package/dist/lib/openapi/endpoint-descriptions.js +0 -24
- package/dist/lib/openapi/endpoint-descriptions.js.map +0 -1
- package/dist/lib/openapi/spec/feedback-schema.d.ts +0 -24
- package/dist/lib/openapi/spec/feedback-schema.js +0 -26
- package/dist/lib/openapi/spec/feedback-schema.js.map +0 -1
- package/dist/lib/openapi/spec/splash-schema.d.ts +0 -20
- package/dist/lib/openapi/spec/splash-schema.js +0 -22
- package/dist/lib/openapi/spec/splash-schema.js.map +0 -1
- package/dist/lib/openapi/spec/upsert-strategy-schema.d.ts +0 -39
- package/dist/lib/openapi/spec/upsert-strategy-schema.js +0 -41
- package/dist/lib/openapi/spec/upsert-strategy-schema.js.map +0 -1
- package/frontend/build/static/AdvancedPlayground-bc3db7fd.js +0 -1
- package/frontend/build/static/CreateProject-4013b189.js +0 -4
- package/frontend/build/static/FeatureViewLazyExport-773303d1.js +0 -7
- package/frontend/build/static/LazyAdminExport-a9aeca56.js +0 -37
- package/frontend/build/static/LazyProjectExport-7c849a96.js +0 -13
- package/frontend/build/static/Playground-4fd4e26e.js +0 -1
- package/frontend/build/static/PlaygroundGuidancePopper-c761bfb7.js +0 -13
- package/frontend/build/static/RoleCell-cbb192fa.js +0 -1
- package/frontend/build/static/StrategyItemContainer-128fc163.js +0 -1
- package/frontend/build/static/demo-qr-1bebe2c9.png +0 -0
- package/frontend/build/static/index-66c635eb.css +0 -1
- package/frontend/build/static/index-bd571775.js +0 -450
- package/frontend/build/static/stringify-ec884b6d.js +0 -1
|
@@ -13,44 +13,125 @@ const override_schema_1 = require("./override-schema");
|
|
|
13
13
|
const variants_schema_1 = require("./variants-schema");
|
|
14
14
|
const constraint_schema_1 = require("./constraint-schema");
|
|
15
15
|
const tag_type_schema_1 = require("./tag-type-schema");
|
|
16
|
+
const strategy_variant_schema_1 = require("./strategy-variant-schema");
|
|
16
17
|
exports.exportResultSchema = {
|
|
17
18
|
$id: '#/components/schemas/exportResultSchema',
|
|
18
19
|
type: 'object',
|
|
19
20
|
additionalProperties: false,
|
|
21
|
+
description: 'The result of the export operation, providing you with the feature toggle definitions, strategy definitions and the rest of the elements relevant to the features (tags, environments etc.)',
|
|
20
22
|
required: ['features', 'featureStrategies', 'tagTypes'],
|
|
21
23
|
properties: {
|
|
22
24
|
features: {
|
|
23
25
|
type: 'array',
|
|
26
|
+
description: 'All the exported features.',
|
|
27
|
+
example: [
|
|
28
|
+
{
|
|
29
|
+
name: 'my-feature',
|
|
30
|
+
description: 'best feature ever',
|
|
31
|
+
type: 'release',
|
|
32
|
+
project: 'default',
|
|
33
|
+
stale: false,
|
|
34
|
+
impressionData: false,
|
|
35
|
+
archived: false,
|
|
36
|
+
},
|
|
37
|
+
],
|
|
24
38
|
items: {
|
|
25
39
|
$ref: '#/components/schemas/featureSchema',
|
|
26
40
|
},
|
|
27
41
|
},
|
|
28
42
|
featureStrategies: {
|
|
29
43
|
type: 'array',
|
|
44
|
+
description: 'All strategy instances that are used by the exported features in the `features` list.',
|
|
45
|
+
example: [
|
|
46
|
+
{
|
|
47
|
+
name: 'flexibleRollout',
|
|
48
|
+
id: '924974d7-8003-43ee-87eb-c5f887c06fd1',
|
|
49
|
+
featureName: 'my-feature',
|
|
50
|
+
title: 'Rollout 50%',
|
|
51
|
+
parameters: {
|
|
52
|
+
groupId: 'default',
|
|
53
|
+
rollout: '50',
|
|
54
|
+
stickiness: 'random',
|
|
55
|
+
},
|
|
56
|
+
constraints: [],
|
|
57
|
+
disabled: false,
|
|
58
|
+
segments: [1],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
30
61
|
items: {
|
|
31
62
|
$ref: '#/components/schemas/featureStrategySchema',
|
|
32
63
|
},
|
|
33
64
|
},
|
|
34
65
|
featureEnvironments: {
|
|
35
66
|
type: 'array',
|
|
67
|
+
description: 'Environment-specific configuration for all the features in the `features` list. Includes data such as whether the feature is enabled in the selected export environment, whether there are any variants assigned, etc.',
|
|
68
|
+
example: [
|
|
69
|
+
{
|
|
70
|
+
enabled: true,
|
|
71
|
+
featureName: 'my-feature',
|
|
72
|
+
environment: 'development',
|
|
73
|
+
variants: [
|
|
74
|
+
{
|
|
75
|
+
name: 'a',
|
|
76
|
+
weight: 500,
|
|
77
|
+
overrides: [],
|
|
78
|
+
stickiness: 'random',
|
|
79
|
+
weightType: 'variable',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'b',
|
|
83
|
+
weight: 500,
|
|
84
|
+
overrides: [],
|
|
85
|
+
stickiness: 'random',
|
|
86
|
+
weightType: 'variable',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: 'variant-testing',
|
|
90
|
+
},
|
|
91
|
+
],
|
|
36
92
|
items: {
|
|
37
93
|
$ref: '#/components/schemas/featureEnvironmentSchema',
|
|
38
94
|
},
|
|
39
95
|
},
|
|
40
96
|
contextFields: {
|
|
41
97
|
type: 'array',
|
|
98
|
+
description: 'A list of all the context fields that are in use by any of the strategies in the `featureStrategies` list.',
|
|
99
|
+
example: [
|
|
100
|
+
{
|
|
101
|
+
name: 'appName',
|
|
102
|
+
description: 'Allows you to constrain on application name',
|
|
103
|
+
stickiness: false,
|
|
104
|
+
sortOrder: 2,
|
|
105
|
+
legalValues: [],
|
|
106
|
+
},
|
|
107
|
+
],
|
|
42
108
|
items: {
|
|
43
109
|
$ref: '#/components/schemas/contextFieldSchema',
|
|
44
110
|
},
|
|
45
111
|
},
|
|
46
112
|
featureTags: {
|
|
47
113
|
type: 'array',
|
|
114
|
+
description: 'A list of all the tags that have been applied to any of the features in the `features` list.',
|
|
115
|
+
example: [
|
|
116
|
+
{
|
|
117
|
+
featureName: 'my-feature',
|
|
118
|
+
tagType: 'simple',
|
|
119
|
+
tagValue: 'user-facing',
|
|
120
|
+
},
|
|
121
|
+
],
|
|
48
122
|
items: {
|
|
49
123
|
$ref: '#/components/schemas/featureTagSchema',
|
|
50
124
|
},
|
|
51
125
|
},
|
|
52
126
|
segments: {
|
|
53
127
|
type: 'array',
|
|
128
|
+
description: 'A list of all the segments that are used by the strategies in the `featureStrategies` list.',
|
|
129
|
+
example: [
|
|
130
|
+
{
|
|
131
|
+
id: 1,
|
|
132
|
+
name: 'new-segment-name',
|
|
133
|
+
},
|
|
134
|
+
],
|
|
54
135
|
items: {
|
|
55
136
|
type: 'object',
|
|
56
137
|
additionalProperties: false,
|
|
@@ -67,6 +148,14 @@ exports.exportResultSchema = {
|
|
|
67
148
|
},
|
|
68
149
|
tagTypes: {
|
|
69
150
|
type: 'array',
|
|
151
|
+
description: 'A list of all of the tag types that are used in the `featureTags` list.',
|
|
152
|
+
example: [
|
|
153
|
+
{
|
|
154
|
+
name: 'simple',
|
|
155
|
+
description: 'Used to simplify filtering of features',
|
|
156
|
+
icon: '#',
|
|
157
|
+
},
|
|
158
|
+
],
|
|
70
159
|
items: {
|
|
71
160
|
$ref: '#/components/schemas/tagTypeSchema',
|
|
72
161
|
},
|
|
@@ -76,6 +165,7 @@ exports.exportResultSchema = {
|
|
|
76
165
|
schemas: {
|
|
77
166
|
featureSchema: feature_schema_1.featureSchema,
|
|
78
167
|
featureStrategySchema: feature_strategy_schema_1.featureStrategySchema,
|
|
168
|
+
strategyVariantSchema: strategy_variant_schema_1.strategyVariantSchema,
|
|
79
169
|
featureEnvironmentSchema: feature_environment_schema_1.featureEnvironmentSchema,
|
|
80
170
|
contextFieldSchema: context_field_schema_1.contextFieldSchema,
|
|
81
171
|
featureTagSchema: feature_tag_schema_1.featureTagSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export-result-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/export-result-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,uEAAkE;AAClE,6EAAwE;AACxE,iEAA4D;AAC5D,6DAAwD;AACxD,2DAAuD;AACvD,6DAAwD;AACxD,qDAAiD;AACjD,uDAAmD;AACnD,uDAAmD;AACnD,2DAAuD;AACvD,uDAAkD;
|
|
1
|
+
{"version":3,"file":"export-result-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/export-result-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,uEAAkE;AAClE,6EAAwE;AACxE,iEAA4D;AAC5D,6DAAwD;AACxD,2DAAuD;AACvD,6DAAwD;AACxD,qDAAiD;AACjD,uDAAmD;AACnD,uDAAmD;AACnD,2DAAuD;AACvD,uDAAkD;AAClD,uEAAkE;AAErD,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EACP,6LAA6L;IACjM,QAAQ,EAAE,CAAC,UAAU,EAAE,mBAAmB,EAAE,UAAU,CAAC;IACvD,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4BAA4B;YACzC,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,YAAY;oBAClB,WAAW,EAAE,mBAAmB;oBAChC,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,SAAS;oBAClB,KAAK,EAAE,KAAK;oBACZ,cAAc,EAAE,KAAK;oBACrB,QAAQ,EAAE,KAAK;iBAClB;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,OAAO;YACb,WAAW,EACP,uFAAuF;YAC3F,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,iBAAiB;oBACvB,EAAE,EAAE,sCAAsC;oBAC1C,WAAW,EAAE,YAAY;oBACzB,KAAK,EAAE,aAAa;oBACpB,UAAU,EAAE;wBACR,OAAO,EAAE,SAAS;wBAClB,OAAO,EAAE,IAAI;wBACb,UAAU,EAAE,QAAQ;qBACvB;oBACD,WAAW,EAAE,EAAE;oBACf,QAAQ,EAAE,KAAK;oBACf,QAAQ,EAAE,CAAC,CAAC,CAAC;iBAChB;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,4CAA4C;aACrD;SACJ;QACD,mBAAmB,EAAE;YACjB,IAAI,EAAE,OAAO;YACb,WAAW,EACP,wNAAwN;YAC5N,OAAO,EAAE;gBACL;oBACI,OAAO,EAAE,IAAI;oBACb,WAAW,EAAE,YAAY;oBACzB,WAAW,EAAE,aAAa;oBAC1B,QAAQ,EAAE;wBACN;4BACI,IAAI,EAAE,GAAG;4BACT,MAAM,EAAE,GAAG;4BACX,SAAS,EAAE,EAAE;4BACb,UAAU,EAAE,QAAQ;4BACpB,UAAU,EAAE,UAAU;yBACzB;wBACD;4BACI,IAAI,EAAE,GAAG;4BACT,MAAM,EAAE,GAAG;4BACX,SAAS,EAAE,EAAE;4BACb,UAAU,EAAE,QAAQ;4BACpB,UAAU,EAAE,UAAU;yBACzB;qBACJ;oBACD,IAAI,EAAE,iBAAiB;iBAC1B;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,+CAA+C;aACxD;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,OAAO;YACb,WAAW,EACP,4GAA4G;YAChH,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,6CAA6C;oBAC1D,UAAU,EAAE,KAAK;oBACjB,SAAS,EAAE,CAAC;oBACZ,WAAW,EAAE,EAAE;iBAClB;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,yCAAyC;aAClD;SACJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EACP,8FAA8F;YAClG,OAAO,EAAE;gBACL;oBACI,WAAW,EAAE,YAAY;oBACzB,OAAO,EAAE,QAAQ;oBACjB,QAAQ,EAAE,aAAa;iBAC1B;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,6FAA6F;YACjG,OAAO,EAAE;gBACL;oBACI,EAAE,EAAE,CAAC;oBACL,IAAI,EAAE,kBAAkB;iBAC3B;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,IAAI,CAAC;gBAChB,UAAU,EAAE;oBACR,EAAE,EAAE;wBACA,IAAI,EAAE,QAAQ;qBACjB;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;qBACjB;iBACJ;aACJ;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EACP,yEAAyE;YAC7E,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,wCAAwC;oBACrD,IAAI,EAAE,GAAG;iBACZ;aACJ;YACD,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,aAAa,EAAb,8BAAa;YACb,qBAAqB,EAArB,+CAAqB;YACrB,qBAAqB,EAArB,+CAAqB;YACrB,wBAAwB,EAAxB,qDAAwB;YACxB,kBAAkB,EAAlB,yCAAkB;YAClB,gBAAgB,EAAhB,qCAAgB;YAChB,cAAc,EAAd,gCAAc;YACd,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;YACd,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,qCAAgB;YAChB,aAAa,EAAb,+BAAa;SAChB;KACJ;CACK,CAAC"}
|
|
@@ -14,9 +14,12 @@ export declare const featureEnvironmentSchema: {
|
|
|
14
14
|
readonly featureName: {
|
|
15
15
|
readonly type: "string";
|
|
16
16
|
readonly example: "disable-comments";
|
|
17
|
+
readonly description: "The name of the feature";
|
|
17
18
|
};
|
|
18
19
|
readonly environment: {
|
|
19
20
|
readonly type: "string";
|
|
21
|
+
readonly example: "development";
|
|
22
|
+
readonly description: "The name of the environment";
|
|
20
23
|
};
|
|
21
24
|
readonly type: {
|
|
22
25
|
readonly type: "string";
|
|
@@ -35,6 +38,7 @@ export declare const featureEnvironmentSchema: {
|
|
|
35
38
|
};
|
|
36
39
|
readonly variantCount: {
|
|
37
40
|
readonly type: "number";
|
|
41
|
+
readonly description: "The number of defined variants";
|
|
38
42
|
};
|
|
39
43
|
readonly strategies: {
|
|
40
44
|
readonly type: "array";
|
|
@@ -100,6 +104,7 @@ export declare const featureEnvironmentSchema: {
|
|
|
100
104
|
readonly parametersSchema: {
|
|
101
105
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
102
106
|
readonly type: "object";
|
|
107
|
+
readonly description: "A list of parameters for a strategy";
|
|
103
108
|
readonly additionalProperties: {
|
|
104
109
|
readonly type: "string";
|
|
105
110
|
};
|
|
@@ -154,11 +159,18 @@ export declare const featureEnvironmentSchema: {
|
|
|
154
159
|
};
|
|
155
160
|
readonly constraints: {
|
|
156
161
|
readonly type: "array";
|
|
157
|
-
readonly description: "A list of the constraints attached to the strategy";
|
|
162
|
+
readonly description: "A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints";
|
|
158
163
|
readonly items: {
|
|
159
164
|
readonly $ref: "#/components/schemas/constraintSchema";
|
|
160
165
|
};
|
|
161
166
|
};
|
|
167
|
+
readonly variants: {
|
|
168
|
+
readonly type: "array";
|
|
169
|
+
readonly description: "Strategy level variants";
|
|
170
|
+
readonly items: {
|
|
171
|
+
readonly $ref: "#/components/schemas/strategyVariantSchema";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
162
174
|
readonly parameters: {
|
|
163
175
|
readonly $ref: "#/components/schemas/parametersSchema";
|
|
164
176
|
};
|
|
@@ -212,14 +224,119 @@ export declare const featureEnvironmentSchema: {
|
|
|
212
224
|
readonly parametersSchema: {
|
|
213
225
|
readonly $id: "#/components/schemas/parametersSchema";
|
|
214
226
|
readonly type: "object";
|
|
227
|
+
readonly description: "A list of parameters for a strategy";
|
|
215
228
|
readonly additionalProperties: {
|
|
216
229
|
readonly type: "string";
|
|
217
230
|
};
|
|
218
231
|
readonly components: {};
|
|
219
232
|
};
|
|
233
|
+
readonly strategyVariantSchema: {
|
|
234
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
235
|
+
readonly type: "object";
|
|
236
|
+
readonly additionalProperties: false;
|
|
237
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
238
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
239
|
+
readonly properties: {
|
|
240
|
+
readonly name: {
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
243
|
+
readonly example: "blue_group";
|
|
244
|
+
};
|
|
245
|
+
readonly weight: {
|
|
246
|
+
readonly type: "integer";
|
|
247
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
248
|
+
readonly minimum: 0;
|
|
249
|
+
readonly maximum: 1000;
|
|
250
|
+
};
|
|
251
|
+
readonly weightType: {
|
|
252
|
+
readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
253
|
+
readonly type: "string";
|
|
254
|
+
readonly example: "fix";
|
|
255
|
+
readonly enum: readonly ["variable", "fix"];
|
|
256
|
+
};
|
|
257
|
+
readonly stickiness: {
|
|
258
|
+
readonly type: "string";
|
|
259
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
260
|
+
readonly example: "custom.context.field";
|
|
261
|
+
};
|
|
262
|
+
readonly payload: {
|
|
263
|
+
readonly type: "object";
|
|
264
|
+
readonly required: readonly ["type", "value"];
|
|
265
|
+
readonly description: "Extra data configured for this variant";
|
|
266
|
+
readonly properties: {
|
|
267
|
+
readonly type: {
|
|
268
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
269
|
+
readonly type: "string";
|
|
270
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
271
|
+
};
|
|
272
|
+
readonly value: {
|
|
273
|
+
readonly description: "The actual value of payload";
|
|
274
|
+
readonly type: "string";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly example: {
|
|
278
|
+
readonly type: "json";
|
|
279
|
+
readonly value: "{\"color\": \"red\"}";
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
readonly components: {};
|
|
284
|
+
};
|
|
220
285
|
};
|
|
221
286
|
};
|
|
222
287
|
};
|
|
288
|
+
readonly strategyVariantSchema: {
|
|
289
|
+
readonly $id: "#/components/schemas/strategyVariantSchema";
|
|
290
|
+
readonly type: "object";
|
|
291
|
+
readonly additionalProperties: false;
|
|
292
|
+
readonly description: "This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants.";
|
|
293
|
+
readonly required: readonly ["name", "weight", "weightType", "stickiness"];
|
|
294
|
+
readonly properties: {
|
|
295
|
+
readonly name: {
|
|
296
|
+
readonly type: "string";
|
|
297
|
+
readonly description: "The variant name. Must be unique for this feature toggle";
|
|
298
|
+
readonly example: "blue_group";
|
|
299
|
+
};
|
|
300
|
+
readonly weight: {
|
|
301
|
+
readonly type: "integer";
|
|
302
|
+
readonly description: "The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information";
|
|
303
|
+
readonly minimum: 0;
|
|
304
|
+
readonly maximum: 1000;
|
|
305
|
+
};
|
|
306
|
+
readonly weightType: {
|
|
307
|
+
readonly description: "Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).";
|
|
308
|
+
readonly type: "string";
|
|
309
|
+
readonly example: "fix";
|
|
310
|
+
readonly enum: readonly ["variable", "fix"];
|
|
311
|
+
};
|
|
312
|
+
readonly stickiness: {
|
|
313
|
+
readonly type: "string";
|
|
314
|
+
readonly description: "The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time";
|
|
315
|
+
readonly example: "custom.context.field";
|
|
316
|
+
};
|
|
317
|
+
readonly payload: {
|
|
318
|
+
readonly type: "object";
|
|
319
|
+
readonly required: readonly ["type", "value"];
|
|
320
|
+
readonly description: "Extra data configured for this variant";
|
|
321
|
+
readonly properties: {
|
|
322
|
+
readonly type: {
|
|
323
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
324
|
+
readonly type: "string";
|
|
325
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
326
|
+
};
|
|
327
|
+
readonly value: {
|
|
328
|
+
readonly description: "The actual value of payload";
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
readonly example: {
|
|
333
|
+
readonly type: "json";
|
|
334
|
+
readonly value: "{\"color\": \"red\"}";
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
readonly components: {};
|
|
339
|
+
};
|
|
223
340
|
readonly variantSchema: {
|
|
224
341
|
readonly $id: "#/components/schemas/variantSchema";
|
|
225
342
|
readonly type: "object";
|
|
@@ -241,7 +358,8 @@ export declare const featureEnvironmentSchema: {
|
|
|
241
358
|
readonly weightType: {
|
|
242
359
|
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";
|
|
243
360
|
readonly type: "string";
|
|
244
|
-
readonly example: "
|
|
361
|
+
readonly example: "variable";
|
|
362
|
+
readonly enum: readonly ["variable", "fix"];
|
|
245
363
|
};
|
|
246
364
|
readonly stickiness: {
|
|
247
365
|
readonly type: "string";
|
|
@@ -252,17 +370,21 @@ export declare const featureEnvironmentSchema: {
|
|
|
252
370
|
readonly type: "object";
|
|
253
371
|
readonly required: readonly ["type", "value"];
|
|
254
372
|
readonly description: "Extra data configured for this variant";
|
|
373
|
+
readonly additionalProperties: false;
|
|
255
374
|
readonly properties: {
|
|
256
375
|
readonly type: {
|
|
376
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
257
377
|
readonly type: "string";
|
|
378
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
258
379
|
};
|
|
259
380
|
readonly value: {
|
|
381
|
+
readonly description: "The actual value of payload";
|
|
260
382
|
readonly type: "string";
|
|
261
383
|
};
|
|
262
384
|
};
|
|
263
385
|
readonly example: {
|
|
264
386
|
readonly type: "json";
|
|
265
|
-
readonly value: "{color: red}";
|
|
387
|
+
readonly value: "{\"color\": \"red\"}";
|
|
266
388
|
};
|
|
267
389
|
};
|
|
268
390
|
readonly overrides: {
|
|
@@ -5,6 +5,7 @@ const constraint_schema_1 = require("./constraint-schema");
|
|
|
5
5
|
const parameters_schema_1 = require("./parameters-schema");
|
|
6
6
|
const feature_strategy_schema_1 = require("./feature-strategy-schema");
|
|
7
7
|
const variant_schema_1 = require("./variant-schema");
|
|
8
|
+
const strategy_variant_schema_1 = require("./strategy-variant-schema");
|
|
8
9
|
exports.featureEnvironmentSchema = {
|
|
9
10
|
$id: '#/components/schemas/featureEnvironmentSchema',
|
|
10
11
|
type: 'object',
|
|
@@ -20,9 +21,12 @@ exports.featureEnvironmentSchema = {
|
|
|
20
21
|
featureName: {
|
|
21
22
|
type: 'string',
|
|
22
23
|
example: 'disable-comments',
|
|
24
|
+
description: 'The name of the feature',
|
|
23
25
|
},
|
|
24
26
|
environment: {
|
|
25
27
|
type: 'string',
|
|
28
|
+
example: 'development',
|
|
29
|
+
description: 'The name of the environment',
|
|
26
30
|
},
|
|
27
31
|
type: {
|
|
28
32
|
type: 'string',
|
|
@@ -41,6 +45,7 @@ exports.featureEnvironmentSchema = {
|
|
|
41
45
|
},
|
|
42
46
|
variantCount: {
|
|
43
47
|
type: 'number',
|
|
48
|
+
description: 'The number of defined variants',
|
|
44
49
|
},
|
|
45
50
|
strategies: {
|
|
46
51
|
type: 'array',
|
|
@@ -62,6 +67,7 @@ exports.featureEnvironmentSchema = {
|
|
|
62
67
|
constraintSchema: constraint_schema_1.constraintSchema,
|
|
63
68
|
parametersSchema: parameters_schema_1.parametersSchema,
|
|
64
69
|
featureStrategySchema: feature_strategy_schema_1.featureStrategySchema,
|
|
70
|
+
strategyVariantSchema: strategy_variant_schema_1.strategyVariantSchema,
|
|
65
71
|
variantSchema: variant_schema_1.variantSchema,
|
|
66
72
|
},
|
|
67
73
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-environment-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/feature-environment-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AACvD,uEAAkE;AAClE,qDAAiD;
|
|
1
|
+
{"version":3,"file":"feature-environment-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/feature-environment-schema.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,2DAAuD;AACvD,uEAAkE;AAClE,qDAAiD;AACjD,uEAAkE;AAErD,QAAA,wBAAwB,GAAG;IACpC,GAAG,EAAE,+CAA+C;IACpD,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;IAC7B,WAAW,EAAE,mDAAmD;IAChE,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;YACrB,WAAW,EAAE,6BAA6B;SAC7C;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;YAC3B,WAAW,EAAE,yBAAyB;SACzC;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;YACtB,WAAW,EAAE,6BAA6B;SAC7C;QACD,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;YACtB,WAAW,EAAE,6BAA6B;SAC7C;QACD,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;YACb,WAAW,EACP,0EAA0E;SACjF;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC;YACV,WAAW,EACP,4EAA4E;SACnF;QACD,YAAY,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;SAChD;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,4CAA4C;aACrD;YACD,WAAW,EACP,6DAA6D;SACpE;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;YACD,WAAW,EAAE,gDAAgD;SAChE;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,gBAAgB,EAAhB,oCAAgB;YAChB,gBAAgB,EAAhB,oCAAgB;YAChB,qBAAqB,EAArB,+CAAqB;YACrB,qBAAqB,EAArB,+CAAqB;YACrB,aAAa,EAAb,8BAAa;SAChB;KACJ;CACK,CAAC"}
|
|
@@ -4,22 +4,32 @@ export declare const featureEventsSchema: {
|
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
6
|
readonly required: readonly ["events"];
|
|
7
|
+
readonly description: "One or more events happening to a specific feature toggle";
|
|
7
8
|
readonly properties: {
|
|
8
9
|
readonly version: {
|
|
9
|
-
readonly type: "
|
|
10
|
+
readonly type: "integer";
|
|
11
|
+
readonly description: "An API versioning number";
|
|
12
|
+
readonly minimum: 1;
|
|
13
|
+
readonly enum: readonly [1];
|
|
14
|
+
readonly example: 1;
|
|
10
15
|
};
|
|
11
16
|
readonly toggleName: {
|
|
17
|
+
readonly description: "The name of the feature toggle these events relate to";
|
|
12
18
|
readonly type: "string";
|
|
19
|
+
readonly example: "my.first.feature.toggle";
|
|
13
20
|
};
|
|
14
21
|
readonly events: {
|
|
22
|
+
readonly description: "The list of events";
|
|
15
23
|
readonly type: "array";
|
|
16
24
|
readonly items: {
|
|
17
25
|
readonly $ref: "#/components/schemas/eventSchema";
|
|
18
26
|
};
|
|
19
27
|
};
|
|
20
28
|
readonly totalEvents: {
|
|
29
|
+
readonly description: "How many events are there for this feature toggle";
|
|
21
30
|
readonly type: "integer";
|
|
22
31
|
readonly minimum: 0;
|
|
32
|
+
readonly example: 13;
|
|
23
33
|
};
|
|
24
34
|
};
|
|
25
35
|
readonly components: {
|
|
@@ -29,40 +39,83 @@ export declare const featureEventsSchema: {
|
|
|
29
39
|
readonly type: "object";
|
|
30
40
|
readonly additionalProperties: false;
|
|
31
41
|
readonly required: readonly ["id", "createdAt", "type", "createdBy"];
|
|
42
|
+
readonly description: "An event describing something happening in the system";
|
|
32
43
|
readonly properties: {
|
|
33
44
|
readonly id: {
|
|
34
45
|
readonly type: "integer";
|
|
35
46
|
readonly minimum: 1;
|
|
47
|
+
readonly description: "The ID of the event. An increasing natural number.";
|
|
36
48
|
};
|
|
37
49
|
readonly createdAt: {
|
|
38
50
|
readonly type: "string";
|
|
39
51
|
readonly format: "date-time";
|
|
52
|
+
readonly description: "The time the event happened as a RFC 3339-conformant timestamp.";
|
|
53
|
+
readonly example: "2023-07-05T12:56:00.000Z";
|
|
40
54
|
};
|
|
41
55
|
readonly type: {
|
|
42
56
|
readonly type: "string";
|
|
57
|
+
readonly description: "What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is";
|
|
58
|
+
readonly enum: readonly ["application-created", "feature-created", "feature-deleted", "feature-updated", "feature-metadata-updated", "feature-variants-updated", "feature-environment-variants-updated", "feature-project-change", "feature-archived", "feature-revived", "feature-import", "feature-tagged", "feature-tag-import", "feature-strategy-update", "feature-strategy-add", "feature-strategy-remove", "strategy-order-changed", "drop-feature-tags", "feature-untagged", "feature-stale-on", "feature-stale-off", "drop-features", "feature-environment-enabled", "feature-environment-disabled", "strategy-created", "strategy-deleted", "strategy-deprecated", "strategy-reactivated", "strategy-updated", "strategy-import", "drop-strategies", "context-field-created", "context-field-updated", "context-field-deleted", "project-access-added", "project-created", "project-updated", "project-deleted", "project-import", "project-user-added", "project-user-removed", "project-user-role-changed", "project-group-role-changed", "project-group-added", "project-group-removed", "drop-projects", "tag-created", "tag-deleted", "tag-import", "drop-tags", "tag-type-created", "tag-type-deleted", "tag-type-updated", "tag-type-import", "drop-tag-types", "addon-config-created", "addon-config-updated", "addon-config-deleted", "db-pool-update", "user-created", "user-updated", "user-deleted", "drop-environments", "environment-import", "segment-created", "segment-updated", "segment-deleted", "group-created", "group-updated", "setting-created", "setting-updated", "setting-deleted", "client-metrics", "client-register", "pat-created", "pat-deleted", "public-signup-token-created", "public-signup-token-user-added", "public-signup-token-updated", "change-request-created", "change-request-discarded", "change-added", "change-discarded", "change-edited", "change-request-approved", "change-request-approval-added", "change-request-cancelled", "change-request-sent-to-review", "change-request-applied", "api-token-created", "api-token-updated", "api-token-deleted", "feature-favorited", "feature-unfavorited", "project-favorited", "project-unfavorited", "features-exported", "features-imported", "service-account-created", "service-account-deleted", "service-account-updated", "feature-potentially-stale-on"];
|
|
59
|
+
readonly example: "feature-created";
|
|
43
60
|
};
|
|
44
61
|
readonly createdBy: {
|
|
45
62
|
readonly type: "string";
|
|
63
|
+
readonly description: "Which user created this event";
|
|
64
|
+
readonly example: "johndoe";
|
|
46
65
|
};
|
|
47
66
|
readonly environment: {
|
|
48
67
|
readonly type: "string";
|
|
68
|
+
readonly description: "The feature toggle environment the event relates to, if applicable.";
|
|
49
69
|
readonly nullable: true;
|
|
70
|
+
readonly example: "development";
|
|
50
71
|
};
|
|
51
72
|
readonly project: {
|
|
52
73
|
readonly type: "string";
|
|
53
74
|
readonly nullable: true;
|
|
75
|
+
readonly description: "The project the event relates to, if applicable.";
|
|
76
|
+
readonly example: "default";
|
|
54
77
|
};
|
|
55
78
|
readonly featureName: {
|
|
56
79
|
readonly type: "string";
|
|
57
80
|
readonly nullable: true;
|
|
81
|
+
readonly description: "The name of the feature toggle the event relates to, if applicable.";
|
|
82
|
+
readonly example: "my.first.feature";
|
|
58
83
|
};
|
|
59
84
|
readonly data: {
|
|
60
85
|
readonly type: "object";
|
|
61
86
|
readonly nullable: true;
|
|
87
|
+
readonly 'x-enforcer-exception-skip-codes': "WSCH006";
|
|
88
|
+
readonly additionalProperties: true;
|
|
89
|
+
readonly description: "Extra associated data related to the event, such as feature toggle state, segment configuration, etc., if applicable.";
|
|
90
|
+
readonly example: {
|
|
91
|
+
readonly name: "new-feature";
|
|
92
|
+
readonly description: "Toggle description";
|
|
93
|
+
readonly type: "release";
|
|
94
|
+
readonly project: "my-project";
|
|
95
|
+
readonly stale: false;
|
|
96
|
+
readonly variants: readonly [];
|
|
97
|
+
readonly createdAt: "2022-05-31T13:32:20.547Z";
|
|
98
|
+
readonly lastSeenAt: any;
|
|
99
|
+
readonly impressionData: true;
|
|
100
|
+
};
|
|
62
101
|
};
|
|
63
102
|
readonly preData: {
|
|
103
|
+
readonly description: "Data relating to the previous state of the event's subject.";
|
|
64
104
|
readonly type: "object";
|
|
65
105
|
readonly nullable: true;
|
|
106
|
+
readonly 'x-enforcer-exception-skip-codes': "WSCH006";
|
|
107
|
+
readonly additionalProperties: true;
|
|
108
|
+
readonly example: {
|
|
109
|
+
readonly name: "new-feature";
|
|
110
|
+
readonly description: "Toggle description";
|
|
111
|
+
readonly type: "release";
|
|
112
|
+
readonly project: "my-project";
|
|
113
|
+
readonly stale: false;
|
|
114
|
+
readonly variants: readonly [];
|
|
115
|
+
readonly createdAt: "2022-05-31T13:32:20.547Z";
|
|
116
|
+
readonly lastSeenAt: any;
|
|
117
|
+
readonly impressionData: true;
|
|
118
|
+
};
|
|
66
119
|
};
|
|
67
120
|
readonly tags: {
|
|
68
121
|
readonly type: "array";
|
|
@@ -70,6 +123,7 @@ export declare const featureEventsSchema: {
|
|
|
70
123
|
readonly $ref: "#/components/schemas/tagSchema";
|
|
71
124
|
};
|
|
72
125
|
readonly nullable: true;
|
|
126
|
+
readonly description: "Any tags related to the event, if applicable.";
|
|
73
127
|
};
|
|
74
128
|
};
|
|
75
129
|
readonly components: {
|
|
@@ -99,6 +153,92 @@ export declare const featureEventsSchema: {
|
|
|
99
153
|
};
|
|
100
154
|
readonly components: {};
|
|
101
155
|
};
|
|
156
|
+
readonly variantSchema: {
|
|
157
|
+
readonly $id: "#/components/schemas/variantSchema";
|
|
158
|
+
readonly type: "object";
|
|
159
|
+
readonly additionalProperties: false;
|
|
160
|
+
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";
|
|
161
|
+
readonly required: readonly ["name", "weight"];
|
|
162
|
+
readonly properties: {
|
|
163
|
+
readonly name: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly description: "The variants name. Is unique for this feature toggle";
|
|
166
|
+
readonly example: "blue_group";
|
|
167
|
+
};
|
|
168
|
+
readonly weight: {
|
|
169
|
+
readonly type: "number";
|
|
170
|
+
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";
|
|
171
|
+
readonly minimum: 0;
|
|
172
|
+
readonly maximum: 1000;
|
|
173
|
+
};
|
|
174
|
+
readonly weightType: {
|
|
175
|
+
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";
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly example: "variable";
|
|
178
|
+
readonly enum: readonly ["variable", "fix"];
|
|
179
|
+
};
|
|
180
|
+
readonly stickiness: {
|
|
181
|
+
readonly type: "string";
|
|
182
|
+
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";
|
|
183
|
+
readonly example: "custom.context.field";
|
|
184
|
+
};
|
|
185
|
+
readonly payload: {
|
|
186
|
+
readonly type: "object";
|
|
187
|
+
readonly required: readonly ["type", "value"];
|
|
188
|
+
readonly description: "Extra data configured for this variant";
|
|
189
|
+
readonly additionalProperties: false;
|
|
190
|
+
readonly properties: {
|
|
191
|
+
readonly type: {
|
|
192
|
+
readonly description: "The type of the value. Commonly used types are string, json and csv.";
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
readonly enum: readonly ["json", "csv", "string"];
|
|
195
|
+
};
|
|
196
|
+
readonly value: {
|
|
197
|
+
readonly description: "The actual value of payload";
|
|
198
|
+
readonly type: "string";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly example: {
|
|
202
|
+
readonly type: "json";
|
|
203
|
+
readonly value: "{\"color\": \"red\"}";
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly overrides: {
|
|
207
|
+
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.";
|
|
208
|
+
readonly type: "array";
|
|
209
|
+
readonly items: {
|
|
210
|
+
readonly $ref: "#/components/schemas/overrideSchema";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
readonly components: {
|
|
215
|
+
readonly schemas: {
|
|
216
|
+
readonly overrideSchema: {
|
|
217
|
+
readonly $id: "#/components/schemas/overrideSchema";
|
|
218
|
+
readonly type: "object";
|
|
219
|
+
readonly additionalProperties: false;
|
|
220
|
+
readonly required: readonly ["contextName", "values"];
|
|
221
|
+
readonly description: "An override for deciding which variant should be assigned to a user based on the context name";
|
|
222
|
+
readonly properties: {
|
|
223
|
+
readonly contextName: {
|
|
224
|
+
readonly description: "The name of the context field used to determine overrides";
|
|
225
|
+
readonly type: "string";
|
|
226
|
+
readonly example: "userId";
|
|
227
|
+
};
|
|
228
|
+
readonly values: {
|
|
229
|
+
readonly description: "Which values that should be overriden";
|
|
230
|
+
readonly type: "array";
|
|
231
|
+
readonly items: {
|
|
232
|
+
readonly type: "string";
|
|
233
|
+
};
|
|
234
|
+
readonly example: readonly ["red", "blue"];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
readonly components: {};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
102
242
|
};
|
|
103
243
|
};
|
|
104
244
|
};
|