unleash-server 5.3.4 → 5.4.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/slack-app-definition.js +8 -0
- package/dist/lib/addons/slack-app-definition.js.map +1 -1
- package/dist/lib/addons/slack-app.d.ts +1 -4
- package/dist/lib/addons/slack-app.js +46 -68
- package/dist/lib/addons/slack-app.js.map +1 -1
- package/dist/lib/addons/slack-app.test.js +12 -66
- package/dist/lib/addons/slack-app.test.js.map +1 -1
- package/dist/lib/create-config.js +1 -0
- package/dist/lib/create-config.js.map +1 -1
- package/dist/lib/db/access-store.d.ts +3 -1
- package/dist/lib/db/access-store.js +53 -0
- package/dist/lib/db/access-store.js.map +1 -1
- package/dist/lib/db/client-applications-store.d.ts +3 -1
- package/dist/lib/db/client-applications-store.js +73 -6
- package/dist/lib/db/client-applications-store.js.map +1 -1
- package/dist/lib/db/feature-environment-store.js +3 -0
- package/dist/lib/db/feature-environment-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.d.ts +1 -0
- package/dist/lib/db/feature-strategy-store.js +21 -3
- package/dist/lib/db/feature-strategy-store.js.map +1 -1
- package/dist/lib/db/feature-strategy-store.test.js +40 -0
- package/dist/lib/db/feature-strategy-store.test.js.map +1 -1
- package/dist/lib/db/feature-toggle-client-store.js +5 -3
- package/dist/lib/db/feature-toggle-client-store.js.map +1 -1
- package/dist/lib/db/feature-toggle-store.d.ts +6 -1
- package/dist/lib/db/feature-toggle-store.js +37 -9
- package/dist/lib/db/feature-toggle-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/role-store.d.ts +3 -0
- package/dist/lib/db/role-store.js +21 -4
- package/dist/lib/db/role-store.js.map +1 -1
- package/dist/lib/features/access/createAccessService.js +2 -2
- package/dist/lib/features/access/createAccessService.js.map +1 -1
- package/dist/lib/features/change-request-access-service/change-request-access-read-model.d.ts +1 -0
- package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.d.ts +1 -0
- package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.js +3 -0
- package/dist/lib/features/change-request-access-service/fake-change-request-access-read-model.js.map +1 -1
- package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.d.ts +1 -0
- package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.js +10 -1
- package/dist/lib/features/change-request-access-service/sql-change-request-access-read-model.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js +4 -0
- package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-service.d.ts +2 -1
- package/dist/lib/features/export-import-toggles/export-import-service.js +30 -16
- package/dist/lib/features/export-import-toggles/export-import-service.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import.e2e.test.js +24 -4
- package/dist/lib/features/export-import-toggles/export-import.e2e.test.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-context-validation.js +1 -1
- package/dist/lib/features/export-import-toggles/import-context-validation.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-toggles-store-type.d.ts +1 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.d.ts +1 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.js +8 -0
- package/dist/lib/features/export-import-toggles/import-toggles-store.js.map +1 -1
- package/dist/lib/features/export-import-toggles/import-validation-messages.d.ts +1 -1
- package/dist/lib/features/export-import-toggles/import-validation-messages.js +7 -1
- package/dist/lib/features/export-import-toggles/import-validation-messages.js.map +1 -1
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js +9 -12
- package/dist/lib/features/feature-toggle/createFeatureToggleService.js.map +1 -1
- package/dist/lib/features/index.d.ts +1 -0
- package/dist/lib/features/index.js +1 -0
- package/dist/lib/features/index.js.map +1 -1
- package/dist/lib/features/playground/advanced-playground.test.js +57 -6
- package/dist/lib/features/playground/advanced-playground.test.js.map +1 -1
- package/dist/lib/features/playground/generateObjectCombinations.d.ts +2 -2
- package/dist/lib/features/playground/generateObjectCombinations.js +4 -1
- package/dist/lib/features/playground/generateObjectCombinations.js.map +1 -1
- package/dist/lib/features/playground/generateObjectCombinations.test.js +7 -6
- package/dist/lib/features/playground/generateObjectCombinations.test.js.map +1 -1
- package/dist/lib/features/playground/playground.js +1 -1
- package/dist/lib/features/playground/playground.js.map +1 -1
- package/dist/lib/features/segment/createSegmentService.d.ts +5 -0
- package/dist/lib/features/segment/createSegmentService.js +32 -0
- package/dist/lib/features/segment/createSegmentService.js.map +1 -0
- package/dist/lib/metrics.js +12 -0
- package/dist/lib/metrics.js.map +1 -1
- package/dist/lib/metrics.test.js +1 -1
- package/dist/lib/metrics.test.js.map +1 -1
- package/dist/lib/middleware/response-time-metrics.js +1 -1
- package/dist/lib/middleware/response-time-metrics.js.map +1 -1
- package/dist/lib/openapi/index.js +3 -1
- package/dist/lib/openapi/index.js.map +1 -1
- package/dist/lib/openapi/meta-schema-rules.test.js +2 -41
- package/dist/lib/openapi/meta-schema-rules.test.js.map +1 -1
- package/dist/lib/openapi/spec/admin-features-query-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/admin-features-query-schema.js +1 -0
- package/dist/lib/openapi/spec/admin-features-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/advanced-playground-environment-feature-schema.d.ts +4 -1
- package/dist/lib/openapi/spec/advanced-playground-feature-schema.d.ts +8 -2
- package/dist/lib/openapi/spec/advanced-playground-request-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/advanced-playground-response-schema.d.ts +17 -5
- package/dist/lib/openapi/spec/application-schema.d.ts +33 -1
- package/dist/lib/openapi/spec/application-schema.js +12 -1
- package/dist/lib/openapi/spec/application-schema.js.map +1 -1
- package/dist/lib/openapi/spec/application-usage-schema.d.ts +25 -0
- package/dist/lib/openapi/spec/application-usage-schema.js +27 -0
- package/dist/lib/openapi/spec/application-usage-schema.js.map +1 -0
- package/dist/lib/openapi/spec/applications-schema.d.ts +57 -1
- package/dist/lib/openapi/spec/applications-schema.js +4 -1
- package/dist/lib/openapi/spec/applications-schema.js.map +1 -1
- package/dist/lib/openapi/spec/bulk-metrics-schema.d.ts +18 -4
- package/dist/lib/openapi/spec/bulk-registration-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/client-metrics-env-schema.d.ts +6 -2
- package/dist/lib/openapi/spec/client-metrics-env-schema.js +0 -1
- package/dist/lib/openapi/spec/client-metrics-env-schema.js.map +1 -1
- package/dist/lib/openapi/spec/client-metrics-schema.d.ts +6 -1
- 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/create-context-field-schema.d.ts +68 -0
- package/dist/lib/openapi/spec/create-context-field-schema.js +19 -0
- package/dist/lib/openapi/spec/create-context-field-schema.js.map +1 -0
- package/dist/lib/openapi/spec/create-feature-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/create-feature-schema.js +1 -0
- package/dist/lib/openapi/spec/create-feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-feature-strategy-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-group-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-group-schema.js +0 -1
- package/dist/lib/openapi/spec/create-group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-invited-user-schema.d.ts +9 -0
- package/dist/lib/openapi/spec/create-invited-user-schema.js +9 -0
- package/dist/lib/openapi/spec/create-invited-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-strategy-variant-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js +0 -1
- package/dist/lib/openapi/spec/create-strategy-variant-schema.js.map +1 -1
- package/dist/lib/openapi/spec/create-user-response-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/create-user-response-schema.js +1 -1
- package/dist/lib/openapi/spec/create-user-response-schema.js.map +1 -1
- package/dist/lib/openapi/spec/date-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/date-schema.js +14 -1
- package/dist/lib/openapi/spec/date-schema.js.map +1 -1
- package/dist/lib/openapi/spec/environment-project-schema.d.ts +0 -2
- package/dist/lib/openapi/spec/environments-project-schema.d.ts +0 -2
- package/dist/lib/openapi/spec/event-schema.d.ts +1 -3
- package/dist/lib/openapi/spec/event-schema.js +0 -1
- package/dist/lib/openapi/spec/event-schema.js.map +1 -1
- package/dist/lib/openapi/spec/events-schema.d.ts +1 -3
- package/dist/lib/openapi/spec/export-query-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/export-query-schema.js +0 -1
- package/dist/lib/openapi/spec/export-query-schema.js.map +1 -1
- package/dist/lib/openapi/spec/export-result-schema.d.ts +17 -1
- package/dist/lib/openapi/spec/feature-environment-metrics-schema.d.ts +6 -1
- package/dist/lib/openapi/spec/feature-environment-schema.d.ts +7 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js +7 -0
- package/dist/lib/openapi/spec/feature-environment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-events-schema.d.ts +1 -3
- package/dist/lib/openapi/spec/feature-metrics-schema.d.ts +12 -2
- package/dist/lib/openapi/spec/feature-schema.d.ts +9 -1
- package/dist/lib/openapi/spec/feature-schema.js +2 -1
- package/dist/lib/openapi/spec/feature-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-strategy-segment-schema.d.ts +5 -0
- package/dist/lib/openapi/spec/feature-strategy-segment-schema.js +5 -0
- package/dist/lib/openapi/spec/feature-strategy-segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/feature-usage-schema.d.ts +12 -2
- package/dist/lib/openapi/spec/features-schema.d.ts +16 -1
- package/dist/lib/openapi/spec/group-schema.d.ts +10 -2
- package/dist/lib/openapi/spec/group-schema.js +6 -0
- package/dist/lib/openapi/spec/group-schema.js.map +1 -1
- package/dist/lib/openapi/spec/group-user-model-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/groups-schema.d.ts +14 -4
- package/dist/lib/openapi/spec/health-overview-schema.d.ts +16 -5
- package/dist/lib/openapi/spec/health-report-schema.d.ts +16 -5
- package/dist/lib/openapi/spec/import-toggles-schema.d.ts +34 -2
- package/dist/lib/openapi/spec/index.d.ts +3 -1
- package/dist/lib/openapi/spec/index.js +3 -1
- package/dist/lib/openapi/spec/index.js.map +1 -1
- package/dist/lib/openapi/spec/maintenance-schema.d.ts +2 -0
- package/dist/lib/openapi/spec/maintenance-schema.js +2 -0
- package/dist/lib/openapi/spec/maintenance-schema.js.map +1 -1
- package/dist/lib/openapi/spec/me-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/patch-schema.d.ts +12 -1
- package/dist/lib/openapi/spec/patch-schema.js +12 -1
- package/dist/lib/openapi/spec/patch-schema.js.map +1 -1
- package/dist/lib/openapi/spec/patches-schema.d.ts +12 -1
- package/dist/lib/openapi/spec/playground-feature-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/playground-request-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/playground-response-schema.d.ts +8 -2
- package/dist/lib/openapi/spec/playground-segment-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/playground-segment-schema.js +1 -0
- package/dist/lib/openapi/spec/playground-segment-schema.js.map +1 -1
- package/dist/lib/openapi/spec/playground-strategy-schema.d.ts +2 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js +1 -0
- package/dist/lib/openapi/spec/playground-strategy-schema.js.map +1 -1
- package/dist/lib/openapi/spec/profile-schema.d.ts +9 -1
- package/dist/lib/openapi/spec/project-environment-schema.d.ts +0 -2
- package/dist/lib/openapi/spec/project-overview-schema.d.ts +20 -6
- package/dist/lib/openapi/spec/project-overview-schema.js +4 -1
- package/dist/lib/openapi/spec/project-overview-schema.js.map +1 -1
- package/dist/lib/openapi/spec/project-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/project-schema.js +4 -0
- package/dist/lib/openapi/spec/project-schema.js.map +1 -1
- package/dist/lib/openapi/spec/projects-schema.d.ts +6 -0
- package/dist/lib/openapi/spec/projects-schema.js +2 -0
- package/dist/lib/openapi/spec/projects-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.d.ts +3 -1
- package/dist/lib/openapi/spec/public-signup-token-schema.js +1 -0
- package/dist/lib/openapi/spec/public-signup-token-schema.js.map +1 -1
- package/dist/lib/openapi/spec/public-signup-tokens-schema.d.ts +5 -2
- package/dist/lib/openapi/spec/push-variants-schema.d.ts +3 -0
- package/dist/lib/openapi/spec/push-variants-schema.js +3 -0
- package/dist/lib/openapi/spec/push-variants-schema.js.map +1 -1
- package/dist/lib/openapi/spec/reset-password-schema.d.ts +4 -0
- package/dist/lib/openapi/spec/reset-password-schema.js +4 -0
- package/dist/lib/openapi/spec/reset-password-schema.js.map +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.js +1 -1
- package/dist/lib/openapi/spec/sdk-context-schema.js.map +1 -1
- package/dist/lib/openapi/spec/search-events-schema.d.ts +2 -2
- package/dist/lib/openapi/spec/search-events-schema.js +1 -6
- package/dist/lib/openapi/spec/search-events-schema.js.map +1 -1
- package/dist/lib/openapi/spec/sort-order-schema.d.ts +4 -1
- package/dist/lib/openapi/spec/sort-order-schema.js +4 -1
- package/dist/lib/openapi/spec/sort-order-schema.js.map +1 -1
- package/dist/lib/openapi/spec/state-schema.d.ts +39 -3
- package/dist/lib/openapi/spec/state-schema.js +14 -2
- package/dist/lib/openapi/spec/state-schema.js.map +1 -1
- package/dist/lib/openapi/spec/toggle-maintenance-schema.d.ts +2 -0
- package/dist/lib/openapi/spec/toggle-maintenance-schema.js +2 -0
- package/dist/lib/openapi/spec/toggle-maintenance-schema.js.map +1 -1
- package/dist/lib/openapi/spec/token-string-list-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/token-string-list-schema.js +0 -1
- package/dist/lib/openapi/spec/token-string-list-schema.js.map +1 -1
- package/dist/lib/openapi/spec/token-user-schema.d.ts +1 -1
- package/dist/lib/openapi/spec/token-user-schema.js +1 -1
- package/dist/lib/openapi/spec/token-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/{upsert-context-field-schema.d.ts → update-context-field-schema.d.ts} +19 -8
- package/dist/lib/openapi/spec/update-context-field-schema.js +44 -0
- package/dist/lib/openapi/spec/update-context-field-schema.js.map +1 -0
- package/dist/lib/openapi/spec/update-user-schema.d.ts +0 -1
- package/dist/lib/openapi/spec/update-user-schema.js +0 -1
- package/dist/lib/openapi/spec/update-user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/user-schema.d.ts +2 -1
- package/dist/lib/openapi/spec/user-schema.js +2 -1
- package/dist/lib/openapi/spec/user-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-groups-base-schema.d.ts +33 -4
- package/dist/lib/openapi/spec/users-groups-base-schema.js +24 -0
- package/dist/lib/openapi/spec/users-groups-base-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-schema.d.ts +3 -2
- package/dist/lib/openapi/spec/users-schema.js +1 -1
- package/dist/lib/openapi/spec/users-schema.js.map +1 -1
- package/dist/lib/openapi/spec/users-search-schema.d.ts +3 -1
- package/dist/lib/openapi/spec/users-search-schema.js +1 -0
- package/dist/lib/openapi/spec/users-search-schema.js.map +1 -1
- package/dist/lib/openapi/spec/variants-schema.d.ts +1 -0
- package/dist/lib/openapi/spec/variants-schema.js +1 -0
- package/dist/lib/openapi/spec/variants-schema.js.map +1 -1
- package/dist/lib/openapi/util/openapi-tags.d.ts +18 -0
- package/dist/lib/openapi/util/openapi-tags.js +12 -0
- package/dist/lib/openapi/util/openapi-tags.js.map +1 -1
- package/dist/lib/routes/admin-api/api-token.d.ts +5 -0
- package/dist/lib/routes/admin-api/api-token.js +28 -0
- package/dist/lib/routes/admin-api/api-token.js.map +1 -1
- package/dist/lib/routes/admin-api/archive.js +4 -0
- package/dist/lib/routes/admin-api/archive.js.map +1 -1
- package/dist/lib/routes/admin-api/client-metrics.js +2 -1
- package/dist/lib/routes/admin-api/client-metrics.js.map +1 -1
- package/dist/lib/routes/admin-api/context.d.ts +4 -3
- package/dist/lib/routes/admin-api/context.js +3 -4
- package/dist/lib/routes/admin-api/context.js.map +1 -1
- package/dist/lib/routes/admin-api/feature-type.js +2 -2
- package/dist/lib/routes/admin-api/feature-type.js.map +1 -1
- package/dist/lib/routes/admin-api/instance-admin.js +2 -0
- package/dist/lib/routes/admin-api/instance-admin.js.map +1 -1
- package/dist/lib/routes/admin-api/maintenance.d.ts +2 -1
- package/dist/lib/routes/admin-api/maintenance.js.map +1 -1
- package/dist/lib/routes/admin-api/project/environments.js +1 -0
- package/dist/lib/routes/admin-api/project/environments.js.map +1 -1
- package/dist/lib/routes/admin-api/project/project-features.js +2 -1
- package/dist/lib/routes/admin-api/project/project-features.js.map +1 -1
- package/dist/lib/routes/admin-api/public-signup.js +2 -1
- package/dist/lib/routes/admin-api/public-signup.js.map +1 -1
- package/dist/lib/routes/admin-api/strategy.d.ts +1 -1
- package/dist/lib/routes/admin-api/strategy.js +2 -2
- package/dist/lib/routes/admin-api/strategy.js.map +1 -1
- package/dist/lib/routes/admin-api/tag-type.js +2 -2
- package/dist/lib/routes/admin-api/tag-type.js.map +1 -1
- package/dist/lib/routes/admin-api/user-admin.js +2 -1
- package/dist/lib/routes/admin-api/user-admin.js.map +1 -1
- package/dist/lib/routes/client-api/register.d.ts +1 -0
- package/dist/lib/routes/client-api/register.js +8 -0
- package/dist/lib/routes/client-api/register.js.map +1 -1
- package/dist/lib/routes/index.js +1 -0
- package/dist/lib/routes/index.js.map +1 -1
- package/dist/lib/routes/public-invite.js +2 -1
- package/dist/lib/routes/public-invite.js.map +1 -1
- package/dist/lib/segments/segment-service-interface.d.ts +2 -0
- package/dist/lib/server-impl.js +3 -1
- package/dist/lib/server-impl.js.map +1 -1
- package/dist/lib/services/access-service.d.ts +6 -3
- package/dist/lib/services/access-service.js +17 -5
- package/dist/lib/services/access-service.js.map +1 -1
- package/dist/lib/services/access-service.test.js +49 -3
- package/dist/lib/services/access-service.test.js.map +1 -1
- package/dist/lib/services/client-metrics/instance-service.js +5 -7
- package/dist/lib/services/client-metrics/instance-service.js.map +1 -1
- package/dist/lib/services/client-metrics/last-seen-service.d.ts +4 -0
- package/dist/lib/services/client-metrics/last-seen-service.js +4 -1
- package/dist/lib/services/client-metrics/last-seen-service.js.map +1 -1
- package/dist/lib/services/client-metrics/models.d.ts +2 -0
- package/dist/lib/services/client-metrics/schema.js +1 -0
- package/dist/lib/services/client-metrics/schema.js.map +1 -1
- package/dist/lib/services/feature-service-potentially-stale.test.js +0 -1
- package/dist/lib/services/feature-service-potentially-stale.test.js.map +1 -1
- package/dist/lib/services/feature-toggle-service.js +20 -30
- package/dist/lib/services/feature-toggle-service.js.map +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 -0
- package/dist/lib/services/instance-stats-service.js +6 -1
- package/dist/lib/services/instance-stats-service.js.map +1 -1
- package/dist/lib/services/maintenance-service.js +1 -1
- package/dist/lib/services/maintenance-service.js.map +1 -1
- package/dist/lib/services/maintenance-service.test.js +1 -1
- package/dist/lib/services/maintenance-service.test.js.map +1 -1
- package/dist/lib/services/project-service.d.ts +2 -1
- package/dist/lib/services/project-service.js +3 -0
- package/dist/lib/services/project-service.js.map +1 -1
- package/dist/lib/services/segment-service.d.ts +8 -2
- package/dist/lib/services/segment-service.js +34 -3
- package/dist/lib/services/segment-service.js.map +1 -1
- package/dist/lib/services/user-service.js +3 -3
- package/dist/lib/services/user-service.js.map +1 -1
- package/dist/lib/services/version-service.d.ts +1 -0
- package/dist/lib/services/version-service.js +8 -1
- package/dist/lib/services/version-service.js.map +1 -1
- package/dist/lib/types/events.d.ts +2 -1
- package/dist/lib/types/events.js +4 -2
- package/dist/lib/types/events.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -1
- package/dist/lib/types/experimental.js +6 -5
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/lib/types/model.d.ts +2 -0
- package/dist/lib/types/model.js.map +1 -1
- package/dist/lib/types/option.d.ts +2 -0
- package/dist/lib/types/project.d.ts +7 -0
- package/dist/lib/types/stores/access-store.d.ts +9 -0
- package/dist/lib/types/stores/client-applications-store.d.ts +5 -0
- package/dist/lib/types/stores/context-field-store.d.ts +3 -3
- package/dist/lib/types/stores/feature-toggle-store.d.ts +2 -1
- package/dist/lib/types/stores/role-store.d.ts +3 -0
- package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.d.ts +2 -0
- package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.js +84 -0
- package/dist/migrations/20230802092725-add-last-seen-column-to-feature-environments.js.map +1 -0
- package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.d.ts +2 -0
- package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.js +83 -0
- package/dist/migrations/20230802141830-add-feature-and-environment-last-seen-at-to-features-view.js.map +1 -0
- package/dist/migrations/20230803061359-change-request-optional-feature.d.ts +2 -0
- package/dist/migrations/20230803061359-change-request-optional-feature.js +13 -0
- package/dist/migrations/20230803061359-change-request-optional-feature.js.map +1 -0
- package/dist/migrations/20230808104232-update-root-roles-descriptions.d.ts +2 -0
- package/dist/migrations/20230808104232-update-root-roles-descriptions.js +15 -0
- package/dist/migrations/20230808104232-update-root-roles-descriptions.js.map +1 -0
- package/dist/migrations/20230814095253-change-request-rejections.d.ts +2 -0
- package/dist/migrations/20230814095253-change-request-rejections.js +18 -0
- package/dist/migrations/20230814095253-change-request-rejections.js.map +1 -0
- package/dist/migrations/20230814115436-change-request-timzone-timestamps.d.ts +2 -0
- package/dist/migrations/20230814115436-change-request-timzone-timestamps.js +15 -0
- package/dist/migrations/20230814115436-change-request-timzone-timestamps.js.map +1 -0
- package/dist/migrations/20230815065908-change-request-approve-reject-permission.d.ts +2 -0
- package/dist/migrations/20230815065908-change-request-approve-reject-permission.js +12 -0
- package/dist/migrations/20230815065908-change-request-approve-reject-permission.js.map +1 -0
- package/dist/migrations/20230817095805-client-applications-usage-table.d.ts +2 -0
- package/dist/migrations/20230817095805-client-applications-usage-table.js +17 -0
- package/dist/migrations/20230817095805-client-applications-usage-table.js.map +1 -0
- package/dist/migrations/20230818124614-update-client-applications-usage-table.d.ts +2 -0
- package/dist/migrations/20230818124614-update-client-applications-usage-table.js +25 -0
- package/dist/migrations/20230818124614-update-client-applications-usage-table.js.map +1 -0
- package/dist/server-dev.js +3 -2
- package/dist/server-dev.js.map +1 -1
- package/dist/test/config/test-config.js +1 -0
- package/dist/test/config/test-config.js.map +1 -1
- package/dist/test/e2e/api/admin/api-token.auth.e2e.test.js +12 -84
- 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 +10 -2
- package/dist/test/e2e/api/admin/api-token.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/metrics.e2e.test.js +30 -4
- package/dist/test/e2e/api/admin/metrics.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/admin/project/features.e2e.test.js +14 -15
- package/dist/test/e2e/api/admin/project/features.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/client/metricsV2.e2e.test.js +19 -5
- package/dist/test/e2e/api/client/metricsV2.e2e.test.js.map +1 -1
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js +23 -0
- package/dist/test/e2e/api/openapi/openapi.e2e.test.js.map +1 -1
- package/dist/test/e2e/helpers/test-helper.js +11 -1
- package/dist/test/e2e/helpers/test-helper.js.map +1 -1
- package/dist/test/e2e/services/access-service.e2e.test.js +2 -2
- package/dist/test/e2e/services/access-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/api-token-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/api-token-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/environment-service.test.js +2 -0
- package/dist/test/e2e/services/environment-service.test.js.map +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js +1 -1
- package/dist/test/e2e/services/feature-toggle-service-v2.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/playground-service.test.js +1 -1
- package/dist/test/e2e/services/playground-service.test.js.map +1 -1
- package/dist/test/e2e/services/project-health-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/project-health-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/project-service.e2e.test.js +1 -1
- package/dist/test/e2e/services/project-service.e2e.test.js.map +1 -1
- package/dist/test/e2e/services/user-service.e2e.test.js +10 -0
- package/dist/test/e2e/services/user-service.e2e.test.js.map +1 -1
- package/dist/test/fixtures/access-service-mock.js +1 -0
- package/dist/test/fixtures/access-service-mock.js.map +1 -1
- package/dist/test/fixtures/fake-access-store.d.ts +3 -1
- package/dist/test/fixtures/fake-access-store.js +6 -0
- package/dist/test/fixtures/fake-access-store.js.map +1 -1
- package/dist/test/fixtures/fake-feature-toggle-store.d.ts +2 -1
- package/dist/test/fixtures/fake-feature-toggle-store.js +19 -6
- package/dist/test/fixtures/fake-feature-toggle-store.js.map +1 -1
- package/dist/test/fixtures/fake-project-store.d.ts +1 -1
- package/dist/test/fixtures/fake-role-store.d.ts +3 -0
- package/dist/test/fixtures/fake-role-store.js +6 -0
- package/dist/test/fixtures/fake-role-store.js.map +1 -1
- package/frontend/build/index.html +2 -2
- package/frontend/build/static/{AdvancedPlayground-48dddbf4.js → AdvancedPlayground-2d715a2c.js} +3 -3
- package/frontend/build/static/{CreateProject-c1b0f704.js → CreateProject-5b1090c2.js} +1 -1
- package/frontend/build/static/{Error-e6f7c2ee.js → Error-e44ea66b.js} +1 -1
- package/frontend/build/static/FeatureArchiveDialog-b47b18e8.js +10 -0
- package/frontend/build/static/{FeatureMetricsChart-81da0ce4.js → FeatureMetricsChart-36caeeb7.js} +2 -2
- package/frontend/build/static/FeatureViewLazyExport-49d56afd.js +7 -0
- package/frontend/build/static/LazyAdminExport-87c9ab51.js +35 -0
- package/frontend/build/static/LazyProjectExport-c4634b2a.js +17 -0
- package/frontend/build/static/{NetworkOverview-cd06e59f.js → NetworkOverview-c762698b.js} +64 -64
- package/frontend/build/static/{NetworkTraffic-ba933617.js → NetworkTraffic-c8d9eb9b.js} +1 -1
- package/frontend/build/static/RoleCell-d1aa8288.js +1 -0
- package/frontend/build/static/{StrategyItemContainer-88c18285.js → StrategyItemContainer-c7c352a4.js} +1 -1
- package/frontend/build/static/changeRequestProcess-f2469ef4.svg +61 -0
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-799be047.js → chartjs-adapter-date-fns.esm-9c67372b.js} +6 -6
- package/frontend/build/static/{flowchart-elk-definition-170a3958-543f0844.js → flowchart-elk-definition-170a3958-5ea9fc56.js} +1 -1
- package/frontend/build/static/{index-88f1c682.js → index-1aaa8c27.js} +1 -1
- package/frontend/build/static/{index-aa638b65.js → index-670c9345.js} +1 -1
- package/frontend/build/static/index-b7003840.js +454 -0
- package/frontend/build/static/{is_dark-735e3a95.js → is_dark-b445e102.js} +1 -1
- package/frontend/build/static/{mindmap-definition-44684416-ac92f950.js → mindmap-definition-44684416-254e936e.js} +1 -1
- package/frontend/build/static/pro-enterprise-feature-badge-8ac467c3.svg +7 -0
- package/frontend/build/static/pro-enterprise-feature-badge-light-81a18f9b.svg +6 -0
- package/frontend/build/static/{timeline-definition-8e5a9bc6-6c09f608.js → timeline-definition-8e5a9bc6-24fd1725.js} +1 -1
- package/frontend/build/static/{unknownify-0b176a78.js → unknownify-ea4585e8.js} +1 -1
- package/frontend/build/static/usage-line-00d00632.svg +3 -0
- package/frontend/build/static/usage-rate-cb18f02b.svg +3 -0
- package/frontend/package.json +13 -13
- package/package.json +12 -13
- package/dist/lib/openapi/spec/upsert-context-field-schema.js +0 -35
- package/dist/lib/openapi/spec/upsert-context-field-schema.js.map +0 -1
- package/frontend/build/static/FeatureArchiveDialog-9ad60db1.js +0 -10
- package/frontend/build/static/FeatureViewLazyExport-58a3e977.js +0 -7
- package/frontend/build/static/LazyAdminExport-c98b11d7.js +0 -37
- package/frontend/build/static/LazyProjectExport-14db2e37.js +0 -16
- package/frontend/build/static/RoleCell-c534790e.js +0 -1
- package/frontend/build/static/changeRequestProcess-a532ab60.svg +0 -1
- package/frontend/build/static/index-1c4c68c3.js +0 -453
- package/frontend/build/static/pro-enterprise-feature-badge-8fab99c5.svg +0 -5
- package/frontend/build/static/pro-enterprise-feature-badge-light-0227af08.svg +0 -1
- /package/frontend/build/static/{index-770afaee.css → style-770afaee.css} +0 -0
|
@@ -2,15 +2,18 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const pushVariantsSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/pushVariantsSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
+
readonly description: "Data used when copying variants into a new environment.";
|
|
5
6
|
readonly properties: {
|
|
6
7
|
readonly variants: {
|
|
7
8
|
readonly type: "array";
|
|
9
|
+
readonly description: "The variants to write to the provided environments";
|
|
8
10
|
readonly items: {
|
|
9
11
|
readonly $ref: "#/components/schemas/variantSchema";
|
|
10
12
|
};
|
|
11
13
|
};
|
|
12
14
|
readonly environments: {
|
|
13
15
|
readonly type: "array";
|
|
16
|
+
readonly description: "The enviromnents to write the provided variants to";
|
|
14
17
|
readonly items: {
|
|
15
18
|
readonly type: "string";
|
|
16
19
|
};
|
|
@@ -6,15 +6,18 @@ const override_schema_1 = require("./override-schema");
|
|
|
6
6
|
exports.pushVariantsSchema = {
|
|
7
7
|
$id: '#/components/schemas/pushVariantsSchema',
|
|
8
8
|
type: 'object',
|
|
9
|
+
description: 'Data used when copying variants into a new environment.',
|
|
9
10
|
properties: {
|
|
10
11
|
variants: {
|
|
11
12
|
type: 'array',
|
|
13
|
+
description: 'The variants to write to the provided environments',
|
|
12
14
|
items: {
|
|
13
15
|
$ref: '#/components/schemas/variantSchema',
|
|
14
16
|
},
|
|
15
17
|
},
|
|
16
18
|
environments: {
|
|
17
19
|
type: 'array',
|
|
20
|
+
description: 'The enviromnents to write the provided variants to',
|
|
18
21
|
items: {
|
|
19
22
|
type: 'string',
|
|
20
23
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-variants-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/push-variants-schema.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAEjD,uDAAmD;AAEtC,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,YAAY,EAAE;YACV,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
|
|
1
|
+
{"version":3,"file":"push-variants-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/push-variants-schema.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAEjD,uDAAmD;AAEtC,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,yDAAyD;IACtE,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,YAAY,EAAE;YACV,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oDAAoD;YACjE,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,aAAa,EAAb,8BAAa;YACb,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
|
|
@@ -2,11 +2,15 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const resetPasswordSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/resetPasswordSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
+
readonly description: "Data used to provide users a way to reset their passwords.";
|
|
5
6
|
readonly additionalProperties: false;
|
|
6
7
|
readonly required: readonly ["resetPasswordUrl"];
|
|
7
8
|
readonly properties: {
|
|
8
9
|
readonly resetPasswordUrl: {
|
|
10
|
+
readonly description: "A URL pointing to a location where the user can reset their password";
|
|
9
11
|
readonly type: "string";
|
|
12
|
+
readonly format: "uri";
|
|
13
|
+
readonly example: "https://reset.password.com";
|
|
10
14
|
};
|
|
11
15
|
};
|
|
12
16
|
readonly components: {};
|
|
@@ -4,11 +4,15 @@ exports.resetPasswordSchema = void 0;
|
|
|
4
4
|
exports.resetPasswordSchema = {
|
|
5
5
|
$id: '#/components/schemas/resetPasswordSchema',
|
|
6
6
|
type: 'object',
|
|
7
|
+
description: 'Data used to provide users a way to reset their passwords.',
|
|
7
8
|
additionalProperties: false,
|
|
8
9
|
required: ['resetPasswordUrl'],
|
|
9
10
|
properties: {
|
|
10
11
|
resetPasswordUrl: {
|
|
12
|
+
description: 'A URL pointing to a location where the user can reset their password',
|
|
11
13
|
type: 'string',
|
|
14
|
+
format: 'uri',
|
|
15
|
+
example: 'https://reset.password.com',
|
|
12
16
|
},
|
|
13
17
|
},
|
|
14
18
|
components: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/reset-password-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,kBAAkB,CAAC;IAC9B,UAAU,EAAE;QACR,gBAAgB,EAAE;YACd,IAAI,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"reset-password-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/reset-password-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,0CAA0C;IAC/C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,4DAA4D;IACzE,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,kBAAkB,CAAC;IAC9B,UAAU,EAAE;QACR,gBAAgB,EAAE;YACd,WAAW,EACP,sEAAsE;YAC1E,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,4BAA4B;SACxC;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -3,7 +3,6 @@ export declare const sdkContextSchema: {
|
|
|
3
3
|
readonly $id: "#/components/schemas/sdkContextSchema";
|
|
4
4
|
readonly description: "The Unleash context as modeled in client SDKs";
|
|
5
5
|
readonly type: "object";
|
|
6
|
-
readonly additionalProperties: true;
|
|
7
6
|
readonly required: readonly ["appName"];
|
|
8
7
|
readonly properties: {
|
|
9
8
|
readonly appName: {
|
|
@@ -28,6 +27,7 @@ export declare const sdkContextSchema: {
|
|
|
28
27
|
readonly additionalProperties: {
|
|
29
28
|
readonly type: "string";
|
|
30
29
|
};
|
|
30
|
+
readonly description: "Additional Unleash context properties";
|
|
31
31
|
readonly example: {
|
|
32
32
|
readonly customContextField: "this is one!";
|
|
33
33
|
readonly otherCustomField: "3";
|
|
@@ -5,7 +5,6 @@ exports.sdkContextSchema = {
|
|
|
5
5
|
$id: '#/components/schemas/sdkContextSchema',
|
|
6
6
|
description: 'The Unleash context as modeled in client SDKs',
|
|
7
7
|
type: 'object',
|
|
8
|
-
additionalProperties: true,
|
|
9
8
|
required: ['appName'],
|
|
10
9
|
properties: {
|
|
11
10
|
appName: {
|
|
@@ -28,6 +27,7 @@ exports.sdkContextSchema = {
|
|
|
28
27
|
properties: {
|
|
29
28
|
type: 'object',
|
|
30
29
|
additionalProperties: { type: 'string' },
|
|
30
|
+
description: 'Additional Unleash context properties',
|
|
31
31
|
example: {
|
|
32
32
|
customContextField: 'this is one!',
|
|
33
33
|
otherCustomField: '3',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-context-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/sdk-context-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAG;IAC5B,GAAG,EAAE,uCAAuC;IAC5C,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,QAAQ;IACd,
|
|
1
|
+
{"version":3,"file":"sdk-context-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/sdk-context-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAG;IAC5B,GAAG,EAAE,uCAAuC;IAC5C,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,OAAO,EAAE,sBAAsB;YAC/B,WAAW,EAAE,8BAA8B;SAC9C;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,WAAW;YACnB,OAAO,EAAE,2BAA2B;YACpC,WAAW,EACP,+IAA+I;SACtJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,IAAI;YAChB,WAAW,EAAE,wCAAwC;SACxD;QACD,UAAU,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxC,WAAW,EAAE,uCAAuC;YACpD,OAAO,EAAE;gBACL,kBAAkB,EAAE,cAAc;gBAClC,gBAAgB,EAAE,GAAG;aACxB;SACJ;QACD,aAAa,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;YACtB,WAAW,EAAE,sBAAsB;SACtC;QACD,SAAS,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,sCAAsC;YAC/C,WAAW,EAAE,uCAAuC;SACvD;QACD,MAAM,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,uBAAuB;YAChC,WAAW,EAAE,oCAAoC;SACpD;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const searchEventsSchema: {
|
|
|
7
7
|
readonly type: {
|
|
8
8
|
readonly type: "string";
|
|
9
9
|
readonly description: "Find events by event type (case-sensitive).";
|
|
10
|
-
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"];
|
|
10
|
+
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-rejected", "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"];
|
|
11
11
|
readonly example: "feature-created";
|
|
12
12
|
};
|
|
13
13
|
readonly project: {
|
|
@@ -22,7 +22,7 @@ export declare const searchEventsSchema: {
|
|
|
22
22
|
};
|
|
23
23
|
readonly query: {
|
|
24
24
|
readonly type: "string";
|
|
25
|
-
readonly description: "
|
|
25
|
+
readonly description: "Find events by a free-text search query. The query will be matched against the event type, the username or email that created the event (if any), and the event data payload (if any).";
|
|
26
26
|
readonly example: "admin@example.com";
|
|
27
27
|
};
|
|
28
28
|
readonly limit: {
|
|
@@ -28,12 +28,7 @@ exports.searchEventsSchema = {
|
|
|
28
28
|
},
|
|
29
29
|
query: {
|
|
30
30
|
type: 'string',
|
|
31
|
-
description: `
|
|
32
|
-
Find events by a free-text search query.
|
|
33
|
-
The query will be matched against the event type,
|
|
34
|
-
the username or email that created the event (if any),
|
|
35
|
-
and the event data payload (if any).
|
|
36
|
-
`,
|
|
31
|
+
description: `Find events by a free-text search query. The query will be matched against the event type, the username or email that created the event (if any), and the event data payload (if any).`,
|
|
37
32
|
example: 'admin@example.com',
|
|
38
33
|
},
|
|
39
34
|
limit: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-events-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/search-events-schema.ts"],"names":[],"mappings":";;;AACA,uCAA0C;AAE7B,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE;;;KAGZ;IACD,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,mBAAW;YACjB,OAAO,EAAE,iBAAiB;SAC7B;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6CAA6C;YAC1D,OAAO,EAAE,SAAS;SACrB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,iBAAiB;SAC7B;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"search-events-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/search-events-schema.ts"],"names":[],"mappings":";;;AACA,uCAA0C;AAE7B,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,yCAAyC;IAC9C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE;;;KAGZ;IACD,UAAU,EAAE;QACR,IAAI,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6CAA6C;YAC1D,IAAI,EAAE,mBAAW;YACjB,OAAO,EAAE,iBAAiB;SAC7B;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6CAA6C;YAC1D,OAAO,EAAE,SAAS;SACrB;QACD,OAAO,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,iBAAiB;SAC7B;QACD,KAAK,EAAE;YACH,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wLAAwL;YACrM,OAAO,EAAE,mBAAmB;SAC/B;QACD,KAAK,EAAE;YACH,IAAI,EAAE,SAAS;YACf,WAAW,EACP,6DAA6D;YACjE,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,GAAG;YACZ,OAAO,EAAE,EAAE;SACd;QACD,MAAM,EAAE;YACJ,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,GAAG;SACf;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -2,8 +2,11 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const sortOrderSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/sortOrderSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
+
readonly description: "A map of object IDs and their corresponding sort orders.";
|
|
5
6
|
readonly additionalProperties: {
|
|
6
|
-
readonly type: "
|
|
7
|
+
readonly type: "integer";
|
|
8
|
+
readonly description: "Sort order for the object whose ID is the key used for this property.";
|
|
9
|
+
readonly example: 6;
|
|
7
10
|
};
|
|
8
11
|
readonly components: {};
|
|
9
12
|
};
|
|
@@ -4,8 +4,11 @@ exports.sortOrderSchema = void 0;
|
|
|
4
4
|
exports.sortOrderSchema = {
|
|
5
5
|
$id: '#/components/schemas/sortOrderSchema',
|
|
6
6
|
type: 'object',
|
|
7
|
+
description: 'A map of object IDs and their corresponding sort orders.',
|
|
7
8
|
additionalProperties: {
|
|
8
|
-
type: '
|
|
9
|
+
type: 'integer',
|
|
10
|
+
description: 'Sort order for the object whose ID is the key used for this property.',
|
|
11
|
+
example: 6,
|
|
9
12
|
},
|
|
10
13
|
components: {},
|
|
11
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-order-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/sort-order-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG;IAC3B,GAAG,EAAE,sCAAsC;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QAClB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"sort-order-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/sort-order-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG;IAC3B,GAAG,EAAE,sCAAsC;IAC3C,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,0DAA0D;IACvE,oBAAoB,EAAE;QAClB,IAAI,EAAE,SAAS;QACf,WAAW,EACP,uEAAuE;QAC3E,OAAO,EAAE,CAAC;KACb;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -2,76 +2,88 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const stateSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/stateSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly additionalProperties: true;
|
|
6
5
|
readonly deprecated: true;
|
|
7
|
-
readonly description: "The state
|
|
6
|
+
readonly description: "The application state as used by the deprecated export/import APIs.";
|
|
8
7
|
readonly required: readonly ["version"];
|
|
9
8
|
readonly properties: {
|
|
10
9
|
readonly version: {
|
|
11
10
|
readonly type: "integer";
|
|
11
|
+
readonly description: "The version of the schema used to describe the state";
|
|
12
|
+
readonly example: 1;
|
|
12
13
|
};
|
|
13
14
|
readonly features: {
|
|
14
15
|
readonly type: "array";
|
|
16
|
+
readonly description: "A list of features";
|
|
15
17
|
readonly items: {
|
|
16
18
|
readonly $ref: "#/components/schemas/featureSchema";
|
|
17
19
|
};
|
|
18
20
|
};
|
|
19
21
|
readonly strategies: {
|
|
20
22
|
readonly type: "array";
|
|
23
|
+
readonly description: "A list of strategies";
|
|
21
24
|
readonly items: {
|
|
22
25
|
readonly $ref: "#/components/schemas/strategySchema";
|
|
23
26
|
};
|
|
24
27
|
};
|
|
25
28
|
readonly tags: {
|
|
26
29
|
readonly type: "array";
|
|
30
|
+
readonly description: "A list of tags";
|
|
27
31
|
readonly items: {
|
|
28
32
|
readonly $ref: "#/components/schemas/tagSchema";
|
|
29
33
|
};
|
|
30
34
|
};
|
|
31
35
|
readonly tagTypes: {
|
|
32
36
|
readonly type: "array";
|
|
37
|
+
readonly description: "A list of tag types";
|
|
33
38
|
readonly items: {
|
|
34
39
|
readonly $ref: "#/components/schemas/tagTypeSchema";
|
|
35
40
|
};
|
|
36
41
|
};
|
|
37
42
|
readonly featureTags: {
|
|
38
43
|
readonly type: "array";
|
|
44
|
+
readonly description: "A list of tags applied to features";
|
|
39
45
|
readonly items: {
|
|
40
46
|
readonly $ref: "#/components/schemas/featureTagSchema";
|
|
41
47
|
};
|
|
42
48
|
};
|
|
43
49
|
readonly projects: {
|
|
44
50
|
readonly type: "array";
|
|
51
|
+
readonly description: "A list of projects";
|
|
45
52
|
readonly items: {
|
|
46
53
|
readonly $ref: "#/components/schemas/projectSchema";
|
|
47
54
|
};
|
|
48
55
|
};
|
|
49
56
|
readonly featureStrategies: {
|
|
50
57
|
readonly type: "array";
|
|
58
|
+
readonly description: "A list of feature strategies as applied to features";
|
|
51
59
|
readonly items: {
|
|
52
60
|
readonly $ref: "#/components/schemas/featureStrategySchema";
|
|
53
61
|
};
|
|
54
62
|
};
|
|
55
63
|
readonly featureEnvironments: {
|
|
56
64
|
readonly type: "array";
|
|
65
|
+
readonly description: "A list of feature environment configurations";
|
|
57
66
|
readonly items: {
|
|
58
67
|
readonly $ref: "#/components/schemas/featureEnvironmentSchema";
|
|
59
68
|
};
|
|
60
69
|
};
|
|
61
70
|
readonly environments: {
|
|
62
71
|
readonly type: "array";
|
|
72
|
+
readonly description: "A list of environments";
|
|
63
73
|
readonly items: {
|
|
64
74
|
readonly $ref: "#/components/schemas/environmentSchema";
|
|
65
75
|
};
|
|
66
76
|
};
|
|
67
77
|
readonly segments: {
|
|
68
78
|
readonly type: "array";
|
|
79
|
+
readonly description: "A list of segments";
|
|
69
80
|
readonly items: {
|
|
70
81
|
readonly $ref: "#/components/schemas/segmentSchema";
|
|
71
82
|
};
|
|
72
83
|
};
|
|
73
84
|
readonly featureStrategySegments: {
|
|
74
85
|
readonly type: "array";
|
|
86
|
+
readonly description: "A list of segment/strategy pairings";
|
|
75
87
|
readonly items: {
|
|
76
88
|
readonly $ref: "#/components/schemas/featureStrategySegmentSchema";
|
|
77
89
|
};
|
|
@@ -150,8 +162,9 @@ export declare const stateSchema: {
|
|
|
150
162
|
readonly type: "string";
|
|
151
163
|
readonly format: "date-time";
|
|
152
164
|
readonly nullable: true;
|
|
165
|
+
readonly deprecated: true;
|
|
153
166
|
readonly example: "2023-01-28T16:21:39.975Z";
|
|
154
|
-
readonly description: "The date when metrics where last collected for the feature";
|
|
167
|
+
readonly description: "The date when metrics where last collected for the feature. This field is deprecated, use the one in featureEnvironmentSchema";
|
|
155
168
|
};
|
|
156
169
|
readonly environments: {
|
|
157
170
|
readonly type: "array";
|
|
@@ -286,6 +299,13 @@ export declare const stateSchema: {
|
|
|
286
299
|
};
|
|
287
300
|
readonly description: "A list of variants for the feature environment";
|
|
288
301
|
};
|
|
302
|
+
readonly lastSeenAt: {
|
|
303
|
+
readonly type: "string";
|
|
304
|
+
readonly format: "date-time";
|
|
305
|
+
readonly nullable: true;
|
|
306
|
+
readonly example: "2023-01-28T16:21:39.975Z";
|
|
307
|
+
readonly description: "The date when metrics where last collected for the feature environment";
|
|
308
|
+
};
|
|
289
309
|
};
|
|
290
310
|
readonly components: {
|
|
291
311
|
readonly schemas: {
|
|
@@ -1157,12 +1177,16 @@ export declare const stateSchema: {
|
|
|
1157
1177
|
};
|
|
1158
1178
|
readonly createdAt: {
|
|
1159
1179
|
readonly type: "string";
|
|
1180
|
+
readonly description: "When this project was created.";
|
|
1181
|
+
readonly example: "2023-07-27T12:12:28Z";
|
|
1160
1182
|
readonly format: "date-time";
|
|
1161
1183
|
};
|
|
1162
1184
|
readonly updatedAt: {
|
|
1163
1185
|
readonly type: "string";
|
|
1164
1186
|
readonly format: "date-time";
|
|
1165
1187
|
readonly nullable: true;
|
|
1188
|
+
readonly description: "When this project was last updated.";
|
|
1189
|
+
readonly example: "2023-07-28T12:12:28Z";
|
|
1166
1190
|
};
|
|
1167
1191
|
readonly favorite: {
|
|
1168
1192
|
readonly type: "boolean";
|
|
@@ -1465,6 +1489,13 @@ export declare const stateSchema: {
|
|
|
1465
1489
|
};
|
|
1466
1490
|
readonly description: "A list of variants for the feature environment";
|
|
1467
1491
|
};
|
|
1492
|
+
readonly lastSeenAt: {
|
|
1493
|
+
readonly type: "string";
|
|
1494
|
+
readonly format: "date-time";
|
|
1495
|
+
readonly nullable: true;
|
|
1496
|
+
readonly example: "2023-01-28T16:21:39.975Z";
|
|
1497
|
+
readonly description: "The date when metrics where last collected for the feature environment";
|
|
1498
|
+
};
|
|
1468
1499
|
};
|
|
1469
1500
|
readonly components: {
|
|
1470
1501
|
readonly schemas: {
|
|
@@ -1992,14 +2023,19 @@ export declare const stateSchema: {
|
|
|
1992
2023
|
readonly featureStrategySegmentSchema: {
|
|
1993
2024
|
readonly $id: "#/components/schemas/featureStrategySegmentSchema";
|
|
1994
2025
|
readonly type: "object";
|
|
2026
|
+
readonly description: "An object containing a segment identifier and a strategy identifier.";
|
|
1995
2027
|
readonly additionalProperties: false;
|
|
1996
2028
|
readonly required: readonly ["segmentId", "featureStrategyId"];
|
|
1997
2029
|
readonly properties: {
|
|
1998
2030
|
readonly segmentId: {
|
|
1999
2031
|
readonly type: "integer";
|
|
2032
|
+
readonly description: "The ID of the segment";
|
|
2033
|
+
readonly example: 2;
|
|
2000
2034
|
};
|
|
2001
2035
|
readonly featureStrategyId: {
|
|
2002
2036
|
readonly type: "string";
|
|
2037
|
+
readonly description: "The ID of the strategy";
|
|
2038
|
+
readonly example: "e2caa08f-30c4-4aa3-b955-54ca9e93dc13";
|
|
2003
2039
|
};
|
|
2004
2040
|
};
|
|
2005
2041
|
readonly components: {};
|
|
@@ -16,76 +16,88 @@ const strategy_variant_schema_1 = require("./strategy-variant-schema");
|
|
|
16
16
|
exports.stateSchema = {
|
|
17
17
|
$id: '#/components/schemas/stateSchema',
|
|
18
18
|
type: 'object',
|
|
19
|
-
additionalProperties: true,
|
|
20
19
|
deprecated: true,
|
|
21
|
-
description: 'The state
|
|
20
|
+
description: 'The application state as used by the deprecated export/import APIs.',
|
|
22
21
|
required: ['version'],
|
|
23
22
|
properties: {
|
|
24
23
|
version: {
|
|
25
24
|
type: 'integer',
|
|
25
|
+
description: 'The version of the schema used to describe the state',
|
|
26
|
+
example: 1,
|
|
26
27
|
},
|
|
27
28
|
features: {
|
|
28
29
|
type: 'array',
|
|
30
|
+
description: 'A list of features',
|
|
29
31
|
items: {
|
|
30
32
|
$ref: '#/components/schemas/featureSchema',
|
|
31
33
|
},
|
|
32
34
|
},
|
|
33
35
|
strategies: {
|
|
34
36
|
type: 'array',
|
|
37
|
+
description: 'A list of strategies',
|
|
35
38
|
items: {
|
|
36
39
|
$ref: '#/components/schemas/strategySchema',
|
|
37
40
|
},
|
|
38
41
|
},
|
|
39
42
|
tags: {
|
|
40
43
|
type: 'array',
|
|
44
|
+
description: 'A list of tags',
|
|
41
45
|
items: {
|
|
42
46
|
$ref: '#/components/schemas/tagSchema',
|
|
43
47
|
},
|
|
44
48
|
},
|
|
45
49
|
tagTypes: {
|
|
46
50
|
type: 'array',
|
|
51
|
+
description: 'A list of tag types',
|
|
47
52
|
items: {
|
|
48
53
|
$ref: '#/components/schemas/tagTypeSchema',
|
|
49
54
|
},
|
|
50
55
|
},
|
|
51
56
|
featureTags: {
|
|
52
57
|
type: 'array',
|
|
58
|
+
description: 'A list of tags applied to features',
|
|
53
59
|
items: {
|
|
54
60
|
$ref: '#/components/schemas/featureTagSchema',
|
|
55
61
|
},
|
|
56
62
|
},
|
|
57
63
|
projects: {
|
|
58
64
|
type: 'array',
|
|
65
|
+
description: 'A list of projects',
|
|
59
66
|
items: {
|
|
60
67
|
$ref: '#/components/schemas/projectSchema',
|
|
61
68
|
},
|
|
62
69
|
},
|
|
63
70
|
featureStrategies: {
|
|
64
71
|
type: 'array',
|
|
72
|
+
description: 'A list of feature strategies as applied to features',
|
|
65
73
|
items: {
|
|
66
74
|
$ref: '#/components/schemas/featureStrategySchema',
|
|
67
75
|
},
|
|
68
76
|
},
|
|
69
77
|
featureEnvironments: {
|
|
70
78
|
type: 'array',
|
|
79
|
+
description: 'A list of feature environment configurations',
|
|
71
80
|
items: {
|
|
72
81
|
$ref: '#/components/schemas/featureEnvironmentSchema',
|
|
73
82
|
},
|
|
74
83
|
},
|
|
75
84
|
environments: {
|
|
76
85
|
type: 'array',
|
|
86
|
+
description: 'A list of environments',
|
|
77
87
|
items: {
|
|
78
88
|
$ref: '#/components/schemas/environmentSchema',
|
|
79
89
|
},
|
|
80
90
|
},
|
|
81
91
|
segments: {
|
|
82
92
|
type: 'array',
|
|
93
|
+
description: 'A list of segments',
|
|
83
94
|
items: {
|
|
84
95
|
$ref: '#/components/schemas/segmentSchema',
|
|
85
96
|
},
|
|
86
97
|
},
|
|
87
98
|
featureStrategySegments: {
|
|
88
99
|
type: 'array',
|
|
100
|
+
description: 'A list of segment/strategy pairings',
|
|
89
101
|
items: {
|
|
90
102
|
$ref: '#/components/schemas/featureStrategySegmentSchema',
|
|
91
103
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/state-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,6CAAyC;AACzC,uDAAkD;AAClD,6DAAwD;AACxD,qDAAiD;AACjD,uEAAkE;AAClE,6EAAwE;AACxE,6DAAyD;AACzD,qDAAiD;AACjD,uFAAiF;AACjF,uDAAmD;AACnD,uEAAkE;AAErD,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,
|
|
1
|
+
{"version":3,"file":"state-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/state-schema.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,6CAAyC;AACzC,uDAAkD;AAClD,6DAAwD;AACxD,qDAAiD;AACjD,uEAAkE;AAClE,6EAAwE;AACxE,6DAAyD;AACzD,qDAAiD;AACjD,uFAAiF;AACjF,uDAAmD;AACnD,uEAAkE;AAErD,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,IAAI;IAChB,WAAW,EACP,qEAAqE;IACzE,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,CAAC;SACb;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,UAAU,EAAE;YACR,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,sBAAsB;YACnC,KAAK,EAAE;gBACH,IAAI,EAAE,qCAAqC;aAC9C;SACJ;QACD,IAAI,EAAE;YACF,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,gBAAgB;YAC7B,KAAK,EAAE;gBACH,IAAI,EAAE,gCAAgC;aACzC;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qBAAqB;YAClC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,WAAW,EAAE;YACT,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oCAAoC;YACjD,KAAK,EAAE;gBACH,IAAI,EAAE,uCAAuC;aAChD;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qDAAqD;YAClE,KAAK,EAAE;gBACH,IAAI,EAAE,4CAA4C;aACrD;SACJ;QACD,mBAAmB,EAAE;YACjB,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,8CAA8C;YAC3D,KAAK,EAAE;gBACH,IAAI,EAAE,+CAA+C;aACxD;SACJ;QACD,YAAY,EAAE;YACV,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,wBAAwB;YACrC,KAAK,EAAE;gBACH,IAAI,EAAE,wCAAwC;aACjD;SACJ;QACD,QAAQ,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACH,IAAI,EAAE,oCAAoC;aAC7C;SACJ;QACD,uBAAuB,EAAE;YACrB,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,qCAAqC;YAClD,KAAK,EAAE;gBACH,IAAI,EAAE,mDAAmD;aAC5D;SACJ;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,aAAa,EAAb,8BAAa;YACb,SAAS,EAAT,sBAAS;YACT,aAAa,EAAb,+BAAa;YACb,gBAAgB,EAAhB,qCAAgB;YAChB,aAAa,EAAb,8BAAa;YACb,qBAAqB,EAArB,+CAAqB;YACrB,qBAAqB,EAArB,+CAAqB;YACrB,wBAAwB,EAAxB,qDAAwB;YACxB,iBAAiB,EAAjB,sCAAiB;YACjB,aAAa,EAAb,8BAAa;YACb,4BAA4B,EAA5B,8DAA4B;YAC5B,cAAc,EAAd,gCAAc;SACjB;KACJ;CACK,CAAC"}
|
|
@@ -2,9 +2,11 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const toggleMaintenanceSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/toggleMaintenanceSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
+
readonly description: "Data used when to activate or deactivate maintenance mode for Unleash.";
|
|
5
6
|
readonly required: readonly ["enabled"];
|
|
6
7
|
readonly properties: {
|
|
7
8
|
readonly enabled: {
|
|
9
|
+
readonly description: "`true` if you want to activate maintenance mode, `false` if you want to deactivate it.";
|
|
8
10
|
readonly type: "boolean";
|
|
9
11
|
readonly example: true;
|
|
10
12
|
};
|
|
@@ -4,9 +4,11 @@ exports.toggleMaintenanceSchema = void 0;
|
|
|
4
4
|
exports.toggleMaintenanceSchema = {
|
|
5
5
|
$id: '#/components/schemas/toggleMaintenanceSchema',
|
|
6
6
|
type: 'object',
|
|
7
|
+
description: 'Data used when to activate or deactivate maintenance mode for Unleash.',
|
|
7
8
|
required: ['enabled'],
|
|
8
9
|
properties: {
|
|
9
10
|
enabled: {
|
|
11
|
+
description: '`true` if you want to activate maintenance mode, `false` if you want to deactivate it.',
|
|
10
12
|
type: 'boolean',
|
|
11
13
|
example: true,
|
|
12
14
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-maintenance-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/toggle-maintenance-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SAChB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"toggle-maintenance-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/toggle-maintenance-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG;IACnC,GAAG,EAAE,8CAA8C;IACnD,IAAI,EAAE,QAAQ;IACd,WAAW,EACP,wEAAwE;IAC5E,QAAQ,EAAE,CAAC,SAAS,CAAC;IACrB,UAAU,EAAE;QACR,OAAO,EAAE;YACL,WAAW,EACP,wFAAwF;YAC5F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SAChB;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { FromSchema } from 'json-schema-to-ts';
|
|
|
2
2
|
export declare const tokenStringListSchema: {
|
|
3
3
|
readonly $id: "#/components/schemas/tokenStringListSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly additionalProperties: true;
|
|
6
5
|
readonly description: "A list of unleash tokens to validate against known tokens";
|
|
7
6
|
readonly required: readonly ["tokens"];
|
|
8
7
|
readonly properties: {
|
|
@@ -4,7 +4,6 @@ exports.tokenStringListSchema = void 0;
|
|
|
4
4
|
exports.tokenStringListSchema = {
|
|
5
5
|
$id: '#/components/schemas/tokenStringListSchema',
|
|
6
6
|
type: 'object',
|
|
7
|
-
additionalProperties: true,
|
|
8
7
|
description: 'A list of unleash tokens to validate against known tokens',
|
|
9
8
|
required: ['tokens'],
|
|
10
9
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-string-list-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-string-list-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAG;IACjC,GAAG,EAAE,4CAA4C;IACjD,IAAI,EAAE,QAAQ;IACd,
|
|
1
|
+
{"version":3,"file":"token-string-list-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-string-list-schema.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAG;IACjC,GAAG,EAAE,4CAA4C;IACjD,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,CAAC,QAAQ,CAAC;IACpB,UAAU,EAAE;QACR,MAAM,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACzB,OAAO,EAAE;gBACL,mCAAmC;gBACnC,4BAA4B;aAC/B;SACJ;KACJ;IACD,UAAU,EAAE,EAAE;CACR,CAAC"}
|
|
@@ -4,7 +4,7 @@ export declare const tokenUserSchema: {
|
|
|
4
4
|
readonly type: "object";
|
|
5
5
|
readonly additionalProperties: false;
|
|
6
6
|
readonly description: "A user identified by a token";
|
|
7
|
-
readonly required: readonly ["id", "
|
|
7
|
+
readonly required: readonly ["id", "email", "token", "createdBy", "role"];
|
|
8
8
|
readonly properties: {
|
|
9
9
|
readonly id: {
|
|
10
10
|
readonly type: "integer";
|
|
@@ -7,7 +7,7 @@ exports.tokenUserSchema = {
|
|
|
7
7
|
type: 'object',
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
description: 'A user identified by a token',
|
|
10
|
-
required: ['id', '
|
|
10
|
+
required: ['id', 'email', 'token', 'createdBy', 'role'],
|
|
11
11
|
properties: {
|
|
12
12
|
id: {
|
|
13
13
|
type: 'integer',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-user-schema.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAE9B,QAAA,eAAe,GAAG;IAC3B,GAAG,EAAE,sCAAsC;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"token-user-schema.js","sourceRoot":"","sources":["../../../../src/lib/openapi/spec/token-user-schema.ts"],"names":[],"mappings":";;;AACA,+CAA2C;AAE9B,QAAA,eAAe,GAAG;IAC3B,GAAG,EAAE,sCAAsC;IAC3C,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC;IACvD,UAAU,EAAE;QACR,EAAE,EAAE;YACA,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,aAAa;YAC1B,OAAO,EAAE,CAAC;SACb;QACD,IAAI,EAAE;YACF,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa;SACzB;QACD,KAAK,EAAE;YACH,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,kBAAkB;SAC9B;QACD,KAAK,EAAE;YACH,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,sBAAsB;SAClC;QACD,SAAS,EAAE;YACP,WAAW,EACP,+DAA+D;YACnE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,mBAAmB;SAC/B;QACD,IAAI,EAAE;YACF,IAAI,EAAE,iCAAiC;SAC1C;KACJ;IACD,UAAU,EAAE;QACR,OAAO,EAAE;YACL,UAAU,EAAV,wBAAU;SACb;KACJ;CACK,CAAC"}
|
package/dist/lib/openapi/spec/{upsert-context-field-schema.d.ts → update-context-field-schema.d.ts}
RENAMED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
import { FromSchema } from 'json-schema-to-ts';
|
|
2
|
-
export declare const
|
|
3
|
-
readonly $id: "#/components/schemas/
|
|
2
|
+
export declare const updateContextFieldSchema: {
|
|
3
|
+
readonly $id: "#/components/schemas/updateContextFieldSchema";
|
|
4
4
|
readonly type: "object";
|
|
5
|
-
readonly
|
|
5
|
+
readonly description: "Data to update an existing context field configuration.";
|
|
6
6
|
readonly properties: {
|
|
7
|
-
readonly name: {
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
};
|
|
10
7
|
readonly description: {
|
|
11
8
|
readonly type: "string";
|
|
9
|
+
readonly description: "A description of the context field";
|
|
10
|
+
readonly example: "The user's subscription tier";
|
|
12
11
|
};
|
|
13
12
|
readonly stickiness: {
|
|
14
13
|
readonly type: "boolean";
|
|
14
|
+
readonly description: "`true` if this field should be available for use with [custom stickiness](https://docs.getunleash.io/reference/stickiness#custom-stickiness), otherwise `false`";
|
|
15
|
+
readonly example: false;
|
|
15
16
|
};
|
|
16
17
|
readonly sortOrder: {
|
|
17
|
-
readonly type: "
|
|
18
|
+
readonly type: "integer";
|
|
19
|
+
readonly description: "How this context field should be sorted if no other sort order is selected";
|
|
20
|
+
readonly example: 2;
|
|
18
21
|
};
|
|
19
22
|
readonly legalValues: {
|
|
20
23
|
readonly type: "array";
|
|
24
|
+
readonly description: "A list of allowed values for this context field";
|
|
25
|
+
readonly example: readonly [{
|
|
26
|
+
readonly value: "gold";
|
|
27
|
+
}, {
|
|
28
|
+
readonly value: "silver";
|
|
29
|
+
}, {
|
|
30
|
+
readonly value: "crystal";
|
|
31
|
+
}];
|
|
21
32
|
readonly items: {
|
|
22
33
|
readonly $ref: "#/components/schemas/legalValueSchema";
|
|
23
34
|
};
|
|
@@ -48,4 +59,4 @@ export declare const upsertContextFieldSchema: {
|
|
|
48
59
|
};
|
|
49
60
|
};
|
|
50
61
|
};
|
|
51
|
-
export declare type
|
|
62
|
+
export declare type UpdateContextFieldSchema = FromSchema<typeof updateContextFieldSchema>;
|