From 1bd182d02a90288694adfb475fe498297e9a7ced Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 14 Jun 2023 14:40:24 +0200 Subject: [PATCH] chore: upgrade orval types (#3981) --- frontend/src/openapi/models/_exportParams.ts | 21 ++ ...dDefaultStrategyToProjectEnvironment400.ts | 14 ++ .../models/addEnvironmentToProject401.ts | 14 ++ .../models/addEnvironmentToProject403.ts | 14 ++ .../models/addEnvironmentToProject409.ts | 14 ++ .../models/addPublicSignupTokenUser400.ts | 14 ++ .../models/addPublicSignupTokenUser409.ts | 14 ++ frontend/src/openapi/models/addTag400.ts | 14 ++ frontend/src/openapi/models/addTag401.ts | 14 ++ frontend/src/openapi/models/addTag403.ts | 14 ++ frontend/src/openapi/models/addTag404.ts | 14 ++ .../src/openapi/models/adminCountSchema.ts | 17 ++ .../adminPermissionsSchemaPermissions.ts | 1 + .../src/openapi/models/adminSegmentSchema.ts | 11 + ...ancedPlaygroundEnvironmentFeatureSchema.ts | 38 ++++ ...roundEnvironmentFeatureSchemaStrategies.ts | 21 ++ ...nvironmentFeatureSchemaStrategiesResult.ts | 16 ++ ...aygroundEnvironmentFeatureSchemaVariant.ts | 21 ++ ...dEnvironmentFeatureSchemaVariantPayload.ts | 16 ++ ...ironmentFeatureSchemaVariantPayloadType.ts | 18 ++ .../models/advancedPlaygroundFeatureSchema.ts | 18 ++ ...ncedPlaygroundFeatureSchemaEnvironments.ts | 13 ++ .../models/advancedPlaygroundRequestSchema.ts | 18 ++ ...advancedPlaygroundRequestSchemaProjects.ts | 10 + .../advancedPlaygroundResponseSchema.ts | 17 ++ frontend/src/openapi/models/apiTokenSchema.ts | 28 ++- .../src/openapi/models/apiTokenSchemaType.ts | 3 + .../src/openapi/models/apiTokensSchema.ts | 4 + .../src/openapi/models/applicationSchema.ts | 8 +- .../src/openapi/models/applicationsSchema.ts | 1 + .../src/openapi/models/archiveFeature401.ts | 14 ++ .../src/openapi/models/archiveFeature404.ts | 14 ++ frontend/src/openapi/models/bulkMetrics400.ts | 14 ++ frontend/src/openapi/models/bulkMetrics413.ts | 14 ++ frontend/src/openapi/models/bulkMetrics415.ts | 14 ++ .../src/openapi/models/bulkMetricsSchema.ts | 2 + .../models/bulkToggleFeaturesSchema.ts | 13 ++ .../src/openapi/models/changeProject400.ts | 14 ++ .../src/openapi/models/changeProject401.ts | 14 ++ .../models/changeRequestFeatureSchema.ts | 1 + .../changeRequestOneOrManyCreateSchema.ts | 10 + .../src/openapi/models/clientMetricsSchema.ts | 7 + .../models/clientMetricsSchemaBucket.ts | 6 + .../clientMetricsSchemaBucketToggles.ts | 6 + ...lientMetricsSchemaBucketTogglesVariants.ts | 3 + .../src/openapi/models/cloneEnvironment400.ts | 14 ++ .../src/openapi/models/cloneEnvironment401.ts | 14 ++ .../src/openapi/models/contextFieldSchema.ts | 6 +- .../models/contextFieldStrategiesSchema.ts | 14 ++ ...textFieldStrategiesSchemaStrategiesItem.ts | 18 ++ frontend/src/openapi/models/createAddon400.ts | 14 ++ frontend/src/openapi/models/createAddon401.ts | 14 ++ frontend/src/openapi/models/createAddon403.ts | 14 ++ frontend/src/openapi/models/createAddon413.ts | 14 ++ frontend/src/openapi/models/createAddon415.ts | 14 ++ .../openapi/models/createApiTokenSchema.ts | 31 ++- .../models/createApiTokenSchemaAnyOf.ts | 9 + .../models/createApiTokenSchemaAnyOfTwo.ts | 9 + .../openapi/models/createApplication400.ts | 14 ++ .../openapi/models/createApplication401.ts | 14 ++ .../openapi/models/createApplication403.ts | 14 ++ .../openapi/models/createApplicationSchema.ts | 24 ++ .../openapi/models/createEnvironment400.ts | 14 ++ .../openapi/models/createEnvironment401.ts | 14 ++ frontend/src/openapi/models/createPat401.ts | 14 ++ frontend/src/openapi/models/createPat403.ts | 14 ++ frontend/src/openapi/models/createPat404.ts | 14 ++ .../src/openapi/models/createProject400.ts | 14 ++ .../src/openapi/models/createProject401.ts | 14 ++ .../models/createProjectApiToken400.ts | 14 ++ .../models/createProjectApiToken401.ts | 14 ++ .../models/createProjectApiToken403.ts | 14 ++ .../models/createPublicSignupToken400.ts | 14 ++ .../models/createPublicSignupToken401.ts | 14 ++ .../models/createPublicSignupToken403.ts | 14 ++ frontend/src/openapi/models/createRole400.ts | 14 ++ .../models/createRoleWithPermissionsSchema.ts | 2 + .../createRoleWithPermissionsSchemaType.ts | 14 ++ .../src/openapi/models/createSegment400.ts | 14 ++ .../src/openapi/models/createSegment401.ts | 14 ++ .../src/openapi/models/createSegment403.ts | 14 ++ .../src/openapi/models/createSegment409.ts | 14 ++ frontend/src/openapi/models/deleteAddon401.ts | 14 ++ frontend/src/openapi/models/deleteAddon403.ts | 14 ++ frontend/src/openapi/models/deleteAddon404.ts | 14 ++ .../openapi/models/deleteApplication401.ts | 14 ++ .../openapi/models/deleteApplication403.ts | 14 ++ .../src/openapi/models/deleteLoginEvent400.ts | 14 ++ .../src/openapi/models/deleteLoginEvent401.ts | 14 ++ .../src/openapi/models/deleteLoginEvent404.ts | 14 ++ .../openapi/models/deleteLoginHistory401.ts | 14 ++ .../openapi/models/deleteLoginHistory404.ts | 14 ++ frontend/src/openapi/models/deletePat401.ts | 14 ++ frontend/src/openapi/models/deletePat403.ts | 14 ++ frontend/src/openapi/models/deletePat404.ts | 14 ++ .../models/deleteProjectApiToken401.ts | 14 ++ .../models/deleteProjectApiToken403.ts | 14 ++ frontend/src/openapi/models/deleteRole409.ts | 14 ++ frontend/src/openapi/models/editChange404.ts | 14 ++ .../models/environmentProjectSchema.ts | 3 + .../src/openapi/models/exportQuerySchema.ts | 18 +- .../openapi/models/exportQuerySchemaOneOf.ts | 10 + .../models/exportQuerySchemaOneOfTwo.ts | 10 + .../models/featureEnvironmentMetricsSchema.ts | 15 +- ...featureEnvironmentMetricsSchemaVariants.ts | 10 + .../openapi/models/featureMetricsSchema.ts | 6 + .../src/openapi/models/featureUsageSchema.ts | 8 + frontend/src/openapi/models/getAddon401.ts | 14 ++ frontend/src/openapi/models/getAddons401.ts | 14 ++ .../models/getAdvancedPlayground400.ts | 14 ++ .../models/getAdvancedPlayground401.ts | 14 ++ .../openapi/models/getAllEnvironments401.ts | 14 ++ .../openapi/models/getAllEnvironments403.ts | 14 ++ .../src/openapi/models/getApplication404.ts | 14 ++ .../src/openapi/models/getChangeRequest404.ts | 14 ++ .../src/openapi/models/getEnvironment401.ts | 14 ++ .../src/openapi/models/getEnvironment403.ts | 14 ++ .../src/openapi/models/getEnvironment404.ts | 14 ++ frontend/src/openapi/models/getEvents401.ts | 14 ++ .../openapi/models/getEventsForToggle401.ts | 14 ++ .../src/openapi/models/getEventsParams.ts | 7 +- frontend/src/openapi/models/getFeature401.ts | 14 ++ frontend/src/openapi/models/getFeature404.ts | 14 ++ .../models/getFeatureUsageSummary401.ts | 14 ++ .../models/getFeatureUsageSummary403.ts | 14 ++ .../models/getFeatureUsageSummary404.ts | 14 ++ .../openapi/models/getGoogleSettings400.ts | 14 ++ .../openapi/models/getGoogleSettings401.ts | 14 ++ .../src/openapi/models/getLoginHistory401.ts | 14 ++ .../src/openapi/models/getLoginHistory404.ts | 14 ++ .../src/openapi/models/getMaintenance401.ts | 14 ++ .../src/openapi/models/getMaintenance403.ts | 14 ++ .../src/openapi/models/getOidcSettings400.ts | 14 ++ .../src/openapi/models/getOidcSettings401.ts | 14 ++ frontend/src/openapi/models/getPats401.ts | 14 ++ frontend/src/openapi/models/getPats403.ts | 14 ++ frontend/src/openapi/models/getPats404.ts | 14 ++ .../src/openapi/models/getPlayground400.ts | 14 ++ .../src/openapi/models/getPlayground401.ts | 14 ++ .../openapi/models/getProjectApiTokens401.ts | 14 ++ .../openapi/models/getProjectApiTokens403.ts | 14 ++ .../openapi/models/getProjectApiTokens404.ts | 14 ++ .../models/getProjectEnvironments401.ts | 14 ++ .../models/getProjectEnvironments403.ts | 14 ++ .../models/getProjectEnvironments404.ts | 14 ++ .../models/getProjectHealthReport401.ts | 14 ++ .../models/getProjectHealthReport403.ts | 14 ++ .../models/getProjectHealthReport404.ts | 14 ++ .../openapi/models/getProjectOverview401.ts | 14 ++ .../openapi/models/getProjectOverview403.ts | 14 ++ .../openapi/models/getProjectOverview404.ts | 14 ++ frontend/src/openapi/models/getProjects401.ts | 14 ++ frontend/src/openapi/models/getProjects403.ts | 14 ++ .../openapi/models/getPublicSignupToken401.ts | 14 ++ .../openapi/models/getPublicSignupToken403.ts | 14 ++ .../openapi/models/getRawFeatureMetrics401.ts | 14 ++ .../openapi/models/getRawFeatureMetrics403.ts | 14 ++ .../openapi/models/getRawFeatureMetrics404.ts | 14 ++ .../src/openapi/models/getSamlSettings400.ts | 14 ++ .../src/openapi/models/getSamlSettings401.ts | 14 ++ frontend/src/openapi/models/getSegment404.ts | 14 ++ .../src/openapi/models/getValidTokens400.ts | 14 ++ .../src/openapi/models/getValidTokens413.ts | 14 ++ .../src/openapi/models/getValidTokens415.ts | 14 ++ .../src/openapi/models/healthCheckSchema.ts | 4 + .../openapi/models/healthCheckSchemaHealth.ts | 3 + .../openapi/models/healthOverviewSchema.ts | 27 ++- .../src/openapi/models/healthReportSchema.ts | 30 ++- frontend/src/openapi/models/index.ts | 213 ++++++++++++++++++ .../models/instanceAdminStatsSchema.ts | 26 ++- .../instanceAdminStatsSchemaClientAppsItem.ts | 16 ++ ...anceAdminStatsSchemaClientAppsItemRange.ts | 18 ++ frontend/src/openapi/models/listTags401.ts | 14 ++ frontend/src/openapi/models/listTags403.ts | 14 ++ frontend/src/openapi/models/listTags404.ts | 14 ++ frontend/src/openapi/models/passwordSchema.ts | 1 + frontend/src/openapi/models/patSchema.ts | 12 +- frontend/src/openapi/models/patsSchema.ts | 4 + .../openapi/models/playgroundFeatureSchema.ts | 2 + .../playgroundFeatureSchemaStrategies.ts | 3 + .../openapi/models/playgroundRequestSchema.ts | 2 +- .../models/playgroundRequestSchemaProjects.ts | 3 + .../models/projectEnvironmentSchema.ts | 8 + .../proxyFeatureSchemaVariantPayloadType.ts | 2 + .../models/publicSignupTokenCreateSchema.ts | 3 + .../openapi/models/publicSignupTokenSchema.ts | 9 + .../models/publicSignupTokenUpdateSchema.ts | 4 + .../models/publicSignupTokensSchema.ts | 4 + .../models/registerClientMetrics400.ts | 14 ++ .../openapi/models/removeEnvironment400.ts | 14 ++ .../openapi/models/removeEnvironment401.ts | 14 ++ .../models/removeEnvironmentFromProject400.ts | 14 ++ .../models/removeEnvironmentFromProject401.ts | 14 ++ .../models/removeEnvironmentFromProject403.ts | 14 ++ .../src/openapi/models/removeSegment401.ts | 14 ++ .../src/openapi/models/removeSegment403.ts | 14 ++ .../src/openapi/models/removeSegment409.ts | 14 ++ frontend/src/openapi/models/removeTag404.ts | 14 ++ .../src/openapi/models/sdkContextSchema.ts | 10 +- .../openapi/models/setGoogleSettings400.ts | 14 ++ .../openapi/models/setGoogleSettings401.ts | 14 ++ .../src/openapi/models/setOidcSettings400.ts | 14 ++ .../src/openapi/models/setOidcSettings401.ts | 14 ++ .../src/openapi/models/setSamlSettings400.ts | 14 ++ .../src/openapi/models/setSamlSettings401.ts | 14 ++ .../openapi/models/setSimpleSettings400.ts | 14 ++ .../openapi/models/setSimpleSettings401.ts | 14 ++ .../openapi/models/toggleEnvironmentOff401.ts | 14 ++ .../openapi/models/toggleEnvironmentOff403.ts | 14 ++ .../openapi/models/toggleEnvironmentOff404.ts | 14 ++ .../openapi/models/toggleEnvironmentOn401.ts | 14 ++ .../openapi/models/toggleEnvironmentOn403.ts | 14 ++ .../openapi/models/toggleEnvironmentOn404.ts | 14 ++ .../openapi/models/toggleMaintenance400.ts | 14 ++ .../openapi/models/toggleMaintenance401.ts | 14 ++ .../openapi/models/toggleMaintenance403.ts | 14 ++ .../src/openapi/models/uiConfigSchemaFlags.ts | 5 +- frontend/src/openapi/models/updateAddon400.ts | 14 ++ frontend/src/openapi/models/updateAddon401.ts | 14 ++ frontend/src/openapi/models/updateAddon403.ts | 14 ++ frontend/src/openapi/models/updateAddon404.ts | 14 ++ frontend/src/openapi/models/updateAddon413.ts | 14 ++ frontend/src/openapi/models/updateAddon415.ts | 14 ++ .../openapi/models/updateEnvironment400.ts | 14 ++ .../openapi/models/updateEnvironment401.ts | 14 ++ .../updateFeatureStrategySegments400.ts | 14 ++ .../updateFeatureStrategySegments401.ts | 14 ++ .../updateFeatureStrategySegments403.ts | 14 ++ .../models/updatePublicSignupToken400.ts | 14 ++ .../models/updatePublicSignupToken401.ts | 14 ++ .../models/updatePublicSignupToken403.ts | 14 ++ frontend/src/openapi/models/updateRole400.ts | 14 ++ .../src/openapi/models/updateSegment400.ts | 14 ++ .../src/openapi/models/updateSegment401.ts | 14 ++ .../src/openapi/models/updateSegment403.ts | 14 ++ .../src/openapi/models/updateSegment409.ts | 14 ++ .../src/openapi/models/updateSortOrder401.ts | 14 ++ .../src/openapi/models/updateSortOrder403.ts | 14 ++ .../src/openapi/models/updateSortOrder404.ts | 14 ++ frontend/src/openapi/models/updateTags400.ts | 14 ++ frontend/src/openapi/models/updateTags401.ts | 14 ++ frontend/src/openapi/models/updateTags403.ts | 14 ++ frontend/src/openapi/models/updateTags404.ts | 14 ++ .../models/validateEnvironmentName400.ts | 14 ++ .../models/validateEnvironmentName401.ts | 14 ++ .../models/validatePublicSignupToken400.ts | 14 ++ .../src/openapi/models/validateRole400.ts | 14 ++ .../src/openapi/models/validateSegment401.ts | 14 ++ .../src/openapi/models/validateSegment409.ts | 14 ++ .../src/openapi/models/variantFlagSchema.ts | 12 + .../models/variantFlagSchemaPayload.ts | 10 + 251 files changed, 3470 insertions(+), 43 deletions(-) create mode 100644 frontend/src/openapi/models/addDefaultStrategyToProjectEnvironment400.ts create mode 100644 frontend/src/openapi/models/addEnvironmentToProject401.ts create mode 100644 frontend/src/openapi/models/addEnvironmentToProject403.ts create mode 100644 frontend/src/openapi/models/addEnvironmentToProject409.ts create mode 100644 frontend/src/openapi/models/addPublicSignupTokenUser400.ts create mode 100644 frontend/src/openapi/models/addPublicSignupTokenUser409.ts create mode 100644 frontend/src/openapi/models/addTag400.ts create mode 100644 frontend/src/openapi/models/addTag401.ts create mode 100644 frontend/src/openapi/models/addTag403.ts create mode 100644 frontend/src/openapi/models/addTag404.ts create mode 100644 frontend/src/openapi/models/adminCountSchema.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategies.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategiesResult.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariant.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayload.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundFeatureSchema.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundFeatureSchemaEnvironments.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundRequestSchema.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundRequestSchemaProjects.ts create mode 100644 frontend/src/openapi/models/advancedPlaygroundResponseSchema.ts create mode 100644 frontend/src/openapi/models/archiveFeature401.ts create mode 100644 frontend/src/openapi/models/archiveFeature404.ts create mode 100644 frontend/src/openapi/models/bulkMetrics400.ts create mode 100644 frontend/src/openapi/models/bulkMetrics413.ts create mode 100644 frontend/src/openapi/models/bulkMetrics415.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesSchema.ts create mode 100644 frontend/src/openapi/models/changeProject400.ts create mode 100644 frontend/src/openapi/models/changeProject401.ts create mode 100644 frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts create mode 100644 frontend/src/openapi/models/cloneEnvironment400.ts create mode 100644 frontend/src/openapi/models/cloneEnvironment401.ts create mode 100644 frontend/src/openapi/models/contextFieldStrategiesSchema.ts create mode 100644 frontend/src/openapi/models/contextFieldStrategiesSchemaStrategiesItem.ts create mode 100644 frontend/src/openapi/models/createAddon400.ts create mode 100644 frontend/src/openapi/models/createAddon401.ts create mode 100644 frontend/src/openapi/models/createAddon403.ts create mode 100644 frontend/src/openapi/models/createAddon413.ts create mode 100644 frontend/src/openapi/models/createAddon415.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaAnyOfTwo.ts create mode 100644 frontend/src/openapi/models/createApplication400.ts create mode 100644 frontend/src/openapi/models/createApplication401.ts create mode 100644 frontend/src/openapi/models/createApplication403.ts create mode 100644 frontend/src/openapi/models/createApplicationSchema.ts create mode 100644 frontend/src/openapi/models/createEnvironment400.ts create mode 100644 frontend/src/openapi/models/createEnvironment401.ts create mode 100644 frontend/src/openapi/models/createPat401.ts create mode 100644 frontend/src/openapi/models/createPat403.ts create mode 100644 frontend/src/openapi/models/createPat404.ts create mode 100644 frontend/src/openapi/models/createProject400.ts create mode 100644 frontend/src/openapi/models/createProject401.ts create mode 100644 frontend/src/openapi/models/createProjectApiToken400.ts create mode 100644 frontend/src/openapi/models/createProjectApiToken401.ts create mode 100644 frontend/src/openapi/models/createProjectApiToken403.ts create mode 100644 frontend/src/openapi/models/createPublicSignupToken400.ts create mode 100644 frontend/src/openapi/models/createPublicSignupToken401.ts create mode 100644 frontend/src/openapi/models/createPublicSignupToken403.ts create mode 100644 frontend/src/openapi/models/createRole400.ts create mode 100644 frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts create mode 100644 frontend/src/openapi/models/createSegment400.ts create mode 100644 frontend/src/openapi/models/createSegment401.ts create mode 100644 frontend/src/openapi/models/createSegment403.ts create mode 100644 frontend/src/openapi/models/createSegment409.ts create mode 100644 frontend/src/openapi/models/deleteAddon401.ts create mode 100644 frontend/src/openapi/models/deleteAddon403.ts create mode 100644 frontend/src/openapi/models/deleteAddon404.ts create mode 100644 frontend/src/openapi/models/deleteApplication401.ts create mode 100644 frontend/src/openapi/models/deleteApplication403.ts create mode 100644 frontend/src/openapi/models/deleteLoginEvent400.ts create mode 100644 frontend/src/openapi/models/deleteLoginEvent401.ts create mode 100644 frontend/src/openapi/models/deleteLoginEvent404.ts create mode 100644 frontend/src/openapi/models/deleteLoginHistory401.ts create mode 100644 frontend/src/openapi/models/deleteLoginHistory404.ts create mode 100644 frontend/src/openapi/models/deletePat401.ts create mode 100644 frontend/src/openapi/models/deletePat403.ts create mode 100644 frontend/src/openapi/models/deletePat404.ts create mode 100644 frontend/src/openapi/models/deleteProjectApiToken401.ts create mode 100644 frontend/src/openapi/models/deleteProjectApiToken403.ts create mode 100644 frontend/src/openapi/models/deleteRole409.ts create mode 100644 frontend/src/openapi/models/editChange404.ts create mode 100644 frontend/src/openapi/models/exportQuerySchemaOneOf.ts create mode 100644 frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts create mode 100644 frontend/src/openapi/models/featureEnvironmentMetricsSchemaVariants.ts create mode 100644 frontend/src/openapi/models/getAddon401.ts create mode 100644 frontend/src/openapi/models/getAddons401.ts create mode 100644 frontend/src/openapi/models/getAdvancedPlayground400.ts create mode 100644 frontend/src/openapi/models/getAdvancedPlayground401.ts create mode 100644 frontend/src/openapi/models/getAllEnvironments401.ts create mode 100644 frontend/src/openapi/models/getAllEnvironments403.ts create mode 100644 frontend/src/openapi/models/getApplication404.ts create mode 100644 frontend/src/openapi/models/getChangeRequest404.ts create mode 100644 frontend/src/openapi/models/getEnvironment401.ts create mode 100644 frontend/src/openapi/models/getEnvironment403.ts create mode 100644 frontend/src/openapi/models/getEnvironment404.ts create mode 100644 frontend/src/openapi/models/getEvents401.ts create mode 100644 frontend/src/openapi/models/getEventsForToggle401.ts create mode 100644 frontend/src/openapi/models/getFeature401.ts create mode 100644 frontend/src/openapi/models/getFeature404.ts create mode 100644 frontend/src/openapi/models/getFeatureUsageSummary401.ts create mode 100644 frontend/src/openapi/models/getFeatureUsageSummary403.ts create mode 100644 frontend/src/openapi/models/getFeatureUsageSummary404.ts create mode 100644 frontend/src/openapi/models/getGoogleSettings400.ts create mode 100644 frontend/src/openapi/models/getGoogleSettings401.ts create mode 100644 frontend/src/openapi/models/getLoginHistory401.ts create mode 100644 frontend/src/openapi/models/getLoginHistory404.ts create mode 100644 frontend/src/openapi/models/getMaintenance401.ts create mode 100644 frontend/src/openapi/models/getMaintenance403.ts create mode 100644 frontend/src/openapi/models/getOidcSettings400.ts create mode 100644 frontend/src/openapi/models/getOidcSettings401.ts create mode 100644 frontend/src/openapi/models/getPats401.ts create mode 100644 frontend/src/openapi/models/getPats403.ts create mode 100644 frontend/src/openapi/models/getPats404.ts create mode 100644 frontend/src/openapi/models/getPlayground400.ts create mode 100644 frontend/src/openapi/models/getPlayground401.ts create mode 100644 frontend/src/openapi/models/getProjectApiTokens401.ts create mode 100644 frontend/src/openapi/models/getProjectApiTokens403.ts create mode 100644 frontend/src/openapi/models/getProjectApiTokens404.ts create mode 100644 frontend/src/openapi/models/getProjectEnvironments401.ts create mode 100644 frontend/src/openapi/models/getProjectEnvironments403.ts create mode 100644 frontend/src/openapi/models/getProjectEnvironments404.ts create mode 100644 frontend/src/openapi/models/getProjectHealthReport401.ts create mode 100644 frontend/src/openapi/models/getProjectHealthReport403.ts create mode 100644 frontend/src/openapi/models/getProjectHealthReport404.ts create mode 100644 frontend/src/openapi/models/getProjectOverview401.ts create mode 100644 frontend/src/openapi/models/getProjectOverview403.ts create mode 100644 frontend/src/openapi/models/getProjectOverview404.ts create mode 100644 frontend/src/openapi/models/getProjects401.ts create mode 100644 frontend/src/openapi/models/getProjects403.ts create mode 100644 frontend/src/openapi/models/getPublicSignupToken401.ts create mode 100644 frontend/src/openapi/models/getPublicSignupToken403.ts create mode 100644 frontend/src/openapi/models/getRawFeatureMetrics401.ts create mode 100644 frontend/src/openapi/models/getRawFeatureMetrics403.ts create mode 100644 frontend/src/openapi/models/getRawFeatureMetrics404.ts create mode 100644 frontend/src/openapi/models/getSamlSettings400.ts create mode 100644 frontend/src/openapi/models/getSamlSettings401.ts create mode 100644 frontend/src/openapi/models/getSegment404.ts create mode 100644 frontend/src/openapi/models/getValidTokens400.ts create mode 100644 frontend/src/openapi/models/getValidTokens413.ts create mode 100644 frontend/src/openapi/models/getValidTokens415.ts create mode 100644 frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItem.ts create mode 100644 frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts create mode 100644 frontend/src/openapi/models/listTags401.ts create mode 100644 frontend/src/openapi/models/listTags403.ts create mode 100644 frontend/src/openapi/models/listTags404.ts create mode 100644 frontend/src/openapi/models/registerClientMetrics400.ts create mode 100644 frontend/src/openapi/models/removeEnvironment400.ts create mode 100644 frontend/src/openapi/models/removeEnvironment401.ts create mode 100644 frontend/src/openapi/models/removeEnvironmentFromProject400.ts create mode 100644 frontend/src/openapi/models/removeEnvironmentFromProject401.ts create mode 100644 frontend/src/openapi/models/removeEnvironmentFromProject403.ts create mode 100644 frontend/src/openapi/models/removeSegment401.ts create mode 100644 frontend/src/openapi/models/removeSegment403.ts create mode 100644 frontend/src/openapi/models/removeSegment409.ts create mode 100644 frontend/src/openapi/models/removeTag404.ts create mode 100644 frontend/src/openapi/models/setGoogleSettings400.ts create mode 100644 frontend/src/openapi/models/setGoogleSettings401.ts create mode 100644 frontend/src/openapi/models/setOidcSettings400.ts create mode 100644 frontend/src/openapi/models/setOidcSettings401.ts create mode 100644 frontend/src/openapi/models/setSamlSettings400.ts create mode 100644 frontend/src/openapi/models/setSamlSettings401.ts create mode 100644 frontend/src/openapi/models/setSimpleSettings400.ts create mode 100644 frontend/src/openapi/models/setSimpleSettings401.ts create mode 100644 frontend/src/openapi/models/toggleEnvironmentOff401.ts create mode 100644 frontend/src/openapi/models/toggleEnvironmentOff403.ts create mode 100644 frontend/src/openapi/models/toggleEnvironmentOff404.ts create mode 100644 frontend/src/openapi/models/toggleEnvironmentOn401.ts create mode 100644 frontend/src/openapi/models/toggleEnvironmentOn403.ts create mode 100644 frontend/src/openapi/models/toggleEnvironmentOn404.ts create mode 100644 frontend/src/openapi/models/toggleMaintenance400.ts create mode 100644 frontend/src/openapi/models/toggleMaintenance401.ts create mode 100644 frontend/src/openapi/models/toggleMaintenance403.ts create mode 100644 frontend/src/openapi/models/updateAddon400.ts create mode 100644 frontend/src/openapi/models/updateAddon401.ts create mode 100644 frontend/src/openapi/models/updateAddon403.ts create mode 100644 frontend/src/openapi/models/updateAddon404.ts create mode 100644 frontend/src/openapi/models/updateAddon413.ts create mode 100644 frontend/src/openapi/models/updateAddon415.ts create mode 100644 frontend/src/openapi/models/updateEnvironment400.ts create mode 100644 frontend/src/openapi/models/updateEnvironment401.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategySegments400.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategySegments401.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategySegments403.ts create mode 100644 frontend/src/openapi/models/updatePublicSignupToken400.ts create mode 100644 frontend/src/openapi/models/updatePublicSignupToken401.ts create mode 100644 frontend/src/openapi/models/updatePublicSignupToken403.ts create mode 100644 frontend/src/openapi/models/updateRole400.ts create mode 100644 frontend/src/openapi/models/updateSegment400.ts create mode 100644 frontend/src/openapi/models/updateSegment401.ts create mode 100644 frontend/src/openapi/models/updateSegment403.ts create mode 100644 frontend/src/openapi/models/updateSegment409.ts create mode 100644 frontend/src/openapi/models/updateSortOrder401.ts create mode 100644 frontend/src/openapi/models/updateSortOrder403.ts create mode 100644 frontend/src/openapi/models/updateSortOrder404.ts create mode 100644 frontend/src/openapi/models/updateTags400.ts create mode 100644 frontend/src/openapi/models/updateTags401.ts create mode 100644 frontend/src/openapi/models/updateTags403.ts create mode 100644 frontend/src/openapi/models/updateTags404.ts create mode 100644 frontend/src/openapi/models/validateEnvironmentName400.ts create mode 100644 frontend/src/openapi/models/validateEnvironmentName401.ts create mode 100644 frontend/src/openapi/models/validatePublicSignupToken400.ts create mode 100644 frontend/src/openapi/models/validateRole400.ts create mode 100644 frontend/src/openapi/models/validateSegment401.ts create mode 100644 frontend/src/openapi/models/validateSegment409.ts create mode 100644 frontend/src/openapi/models/variantFlagSchema.ts create mode 100644 frontend/src/openapi/models/variantFlagSchemaPayload.ts diff --git a/frontend/src/openapi/models/_exportParams.ts b/frontend/src/openapi/models/_exportParams.ts index 1027979bdb..bce91c4df2 100644 --- a/frontend/src/openapi/models/_exportParams.ts +++ b/frontend/src/openapi/models/_exportParams.ts @@ -6,11 +6,32 @@ import type { _ExportFormat } from './_exportFormat'; export type _ExportParams = { + /** + * Desired export format. Must be either `json` or `yaml`. + */ format?: _ExportFormat; + /** + * Whether exported data should be downloaded as a file. + */ download?: boolean | string | number; + /** + * Whether strategies should be included in the exported data. + */ strategies?: boolean | string | number; + /** + * Whether feature toggles should be included in the exported data. + */ featureToggles?: boolean | string | number; + /** + * Whether projects should be included in the exported data. + */ projects?: boolean | string | number; + /** + * Whether tag types, tags, and feature_tags should be included in the exported data. + */ tags?: boolean | string | number; + /** + * Whether environments should be included in the exported data. + */ environments?: boolean | string | number; }; diff --git a/frontend/src/openapi/models/addDefaultStrategyToProjectEnvironment400.ts b/frontend/src/openapi/models/addDefaultStrategyToProjectEnvironment400.ts new file mode 100644 index 0000000000..942dbf50dc --- /dev/null +++ b/frontend/src/openapi/models/addDefaultStrategyToProjectEnvironment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddDefaultStrategyToProjectEnvironment400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addEnvironmentToProject401.ts b/frontend/src/openapi/models/addEnvironmentToProject401.ts new file mode 100644 index 0000000000..558167b414 --- /dev/null +++ b/frontend/src/openapi/models/addEnvironmentToProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddEnvironmentToProject401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addEnvironmentToProject403.ts b/frontend/src/openapi/models/addEnvironmentToProject403.ts new file mode 100644 index 0000000000..c869db70f0 --- /dev/null +++ b/frontend/src/openapi/models/addEnvironmentToProject403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddEnvironmentToProject403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addEnvironmentToProject409.ts b/frontend/src/openapi/models/addEnvironmentToProject409.ts new file mode 100644 index 0000000000..02a2f40ad8 --- /dev/null +++ b/frontend/src/openapi/models/addEnvironmentToProject409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddEnvironmentToProject409 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addPublicSignupTokenUser400.ts b/frontend/src/openapi/models/addPublicSignupTokenUser400.ts new file mode 100644 index 0000000000..2812569813 --- /dev/null +++ b/frontend/src/openapi/models/addPublicSignupTokenUser400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddPublicSignupTokenUser400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addPublicSignupTokenUser409.ts b/frontend/src/openapi/models/addPublicSignupTokenUser409.ts new file mode 100644 index 0000000000..0996333e06 --- /dev/null +++ b/frontend/src/openapi/models/addPublicSignupTokenUser409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddPublicSignupTokenUser409 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addTag400.ts b/frontend/src/openapi/models/addTag400.ts new file mode 100644 index 0000000000..902bfb86b5 --- /dev/null +++ b/frontend/src/openapi/models/addTag400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddTag400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addTag401.ts b/frontend/src/openapi/models/addTag401.ts new file mode 100644 index 0000000000..d4c4f359ce --- /dev/null +++ b/frontend/src/openapi/models/addTag401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddTag401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addTag403.ts b/frontend/src/openapi/models/addTag403.ts new file mode 100644 index 0000000000..b89ce211e5 --- /dev/null +++ b/frontend/src/openapi/models/addTag403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddTag403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/addTag404.ts b/frontend/src/openapi/models/addTag404.ts new file mode 100644 index 0000000000..7914806745 --- /dev/null +++ b/frontend/src/openapi/models/addTag404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddTag404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/adminCountSchema.ts b/frontend/src/openapi/models/adminCountSchema.ts new file mode 100644 index 0000000000..fc9eaff03f --- /dev/null +++ b/frontend/src/openapi/models/adminCountSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Contains total admin counts for an Unleash instance. + */ +export interface AdminCountSchema { + /** Total number of admins that have a password set. */ + password: number; + /** Total number of admins that do not have a password set. May be SSO, but may also be users that did not set a password yet. */ + noPassword: number; + /** Total number of service accounts that have the admin root role. */ + service: number; +} diff --git a/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts b/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts index 92cfd866c8..04f48067c5 100644 --- a/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts +++ b/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts @@ -7,6 +7,7 @@ import type { AdminPermissionSchema } from './adminPermissionSchema'; import type { AdminPermissionsSchemaPermissionsEnvironmentsItem } from './adminPermissionsSchemaPermissionsEnvironmentsItem'; export type AdminPermissionsSchemaPermissions = { + root?: AdminPermissionSchema[]; project: AdminPermissionSchema[]; environments: AdminPermissionsSchemaPermissionsEnvironmentsItem[]; }; diff --git a/frontend/src/openapi/models/adminSegmentSchema.ts b/frontend/src/openapi/models/adminSegmentSchema.ts index 41ff7647dc..bf70cdb18f 100644 --- a/frontend/src/openapi/models/adminSegmentSchema.ts +++ b/frontend/src/openapi/models/adminSegmentSchema.ts @@ -6,10 +6,21 @@ import type { ConstraintSchema } from './constraintSchema'; export interface AdminSegmentSchema { + /** The id of a segment */ id: number; + /** The name of a segment */ name: string; + /** The description for a segment */ description?: string | null; + /** List of constraints that are used in this segment */ constraints: ConstraintSchema[]; + /** Number of projects where this segment is used in */ + usedInFeatures?: number | null; + /** Number of projects where this segment is used in */ + usedInProjects?: number | null; + project?: string | null; + /** The creator's email or username */ createdBy?: string; + /** When the segment was created */ createdAt: string; } diff --git a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts new file mode 100644 index 0000000000..9b0fc9a785 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchema.ts @@ -0,0 +1,38 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SdkContextSchema } from './sdkContextSchema'; +import type { AdvancedPlaygroundEnvironmentFeatureSchemaStrategies } from './advancedPlaygroundEnvironmentFeatureSchemaStrategies'; +import type { AdvancedPlaygroundEnvironmentFeatureSchemaVariant } from './advancedPlaygroundEnvironmentFeatureSchemaVariant'; +import type { VariantSchema } from './variantSchema'; + +/** + * A simplified feature toggle model intended for the Unleash playground. + */ +export interface AdvancedPlaygroundEnvironmentFeatureSchema { + /** The feature's name. */ + name: string; + /** The feature's environment. */ + environment: string; + /** The context to use when evaluating toggles */ + context: SdkContextSchema; + /** The ID of the project that contains this feature. */ + projectId: string; + /** Feature's applicable strategies and cumulative results of the strategies */ + strategies: AdvancedPlaygroundEnvironmentFeatureSchemaStrategies; + /** Whether the feature is active and would be evaluated in the provided environment in a normal SDK context. */ + isEnabledInCurrentEnvironment: boolean; + /** Whether this feature is enabled or not in the current environment. + If a feature can't be fully evaluated (that is, `strategies.result` is `unknown`), + this will be `false` to align with how client SDKs treat unresolved feature states. */ + isEnabled: boolean; + /** The feature variant you receive based on the provided context or the _disabled + variant_. If a feature is disabled or doesn't have any + variants, you would get the _disabled variant_. + Otherwise, you'll get one of thefeature's defined variants. */ + variant: AdvancedPlaygroundEnvironmentFeatureSchemaVariant; + /** The feature variants. */ + variants: VariantSchema[]; +} diff --git a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategies.ts b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategies.ts new file mode 100644 index 0000000000..17079d6dac --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategies.ts @@ -0,0 +1,21 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdvancedPlaygroundEnvironmentFeatureSchemaStrategiesResult } from './advancedPlaygroundEnvironmentFeatureSchemaStrategiesResult'; +import type { PlaygroundStrategySchema } from './playgroundStrategySchema'; + +/** + * Feature's applicable strategies and cumulative results of the strategies + */ +export type AdvancedPlaygroundEnvironmentFeatureSchemaStrategies = { + /** The cumulative results of all the feature's strategies. Can be `true`, + `false`, or `unknown`. + This property will only be `unknown` + if one or more of the strategies can't be fully evaluated and the rest of the strategies + all resolve to `false`. */ + result: AdvancedPlaygroundEnvironmentFeatureSchemaStrategiesResult; + /** The strategies that apply to this feature. */ + data: PlaygroundStrategySchema[]; +}; diff --git a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategiesResult.ts b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategiesResult.ts new file mode 100644 index 0000000000..22c46d8d1a --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaStrategiesResult.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The cumulative results of all the feature's strategies. Can be `true`, + `false`, or `unknown`. + This property will only be `unknown` + if one or more of the strategies can't be fully evaluated and the rest of the strategies + all resolve to `false`. + */ +export type AdvancedPlaygroundEnvironmentFeatureSchemaStrategiesResult = + | boolean + | 'unknown'; diff --git a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariant.ts b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariant.ts new file mode 100644 index 0000000000..dc745d08bf --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariant.ts @@ -0,0 +1,21 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayload } from './advancedPlaygroundEnvironmentFeatureSchemaVariantPayload'; + +/** + * The feature variant you receive based on the provided context or the _disabled + variant_. If a feature is disabled or doesn't have any + variants, you would get the _disabled variant_. + Otherwise, you'll get one of thefeature's defined variants. + */ +export type AdvancedPlaygroundEnvironmentFeatureSchemaVariant = { + /** The variant's name. If there is no variant or if the toggle is disabled, this will be `disabled` */ + name: string; + /** Whether the variant is enabled or not. If the feature is disabled or if it doesn't have variants, this property will be `false` */ + enabled: boolean; + /** An optional payload attached to the variant. */ + payload?: AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayload; +} | null; diff --git a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayload.ts b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayload.ts new file mode 100644 index 0000000000..ab7af2f716 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayload.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType } from './advancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType'; + +/** + * An optional payload attached to the variant. + */ +export type AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayload = { + /** The format of the payload. */ + type: AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType; + /** The payload value stringified. */ + value: string; +}; diff --git a/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType.ts b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType.ts new file mode 100644 index 0000000000..3ade762411 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The format of the payload. + */ +export type AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType = + typeof AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType[keyof typeof AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AdvancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType = { + json: 'json', + csv: 'csv', + string: 'string', +} as const; diff --git a/frontend/src/openapi/models/advancedPlaygroundFeatureSchema.ts b/frontend/src/openapi/models/advancedPlaygroundFeatureSchema.ts new file mode 100644 index 0000000000..4dc4b3b401 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundFeatureSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdvancedPlaygroundFeatureSchemaEnvironments } from './advancedPlaygroundFeatureSchemaEnvironments'; + +/** + * A simplified feature toggle model intended for the Unleash playground. + */ +export interface AdvancedPlaygroundFeatureSchema { + /** The feature's name. */ + name: string; + /** The ID of the project that contains this feature. */ + projectId: string; + /** The lists of features that have been evaluated grouped by environment. */ + environments: AdvancedPlaygroundFeatureSchemaEnvironments; +} diff --git a/frontend/src/openapi/models/advancedPlaygroundFeatureSchemaEnvironments.ts b/frontend/src/openapi/models/advancedPlaygroundFeatureSchemaEnvironments.ts new file mode 100644 index 0000000000..e902aa27d2 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundFeatureSchemaEnvironments.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdvancedPlaygroundEnvironmentFeatureSchema } from './advancedPlaygroundEnvironmentFeatureSchema'; + +/** + * The lists of features that have been evaluated grouped by environment. + */ +export type AdvancedPlaygroundFeatureSchemaEnvironments = { + [key: string]: AdvancedPlaygroundEnvironmentFeatureSchema[]; +}; diff --git a/frontend/src/openapi/models/advancedPlaygroundRequestSchema.ts b/frontend/src/openapi/models/advancedPlaygroundRequestSchema.ts new file mode 100644 index 0000000000..d09b031d77 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundRequestSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdvancedPlaygroundRequestSchemaProjects } from './advancedPlaygroundRequestSchemaProjects'; +import type { SdkContextSchema } from './sdkContextSchema'; + +/** + * Data for the playground API to evaluate toggles in advanced mode with environment and context multi selection + */ +export interface AdvancedPlaygroundRequestSchema { + /** The environments to evaluate toggles in. */ + environments: string[]; + /** A list of projects to check for toggles in. */ + projects?: AdvancedPlaygroundRequestSchemaProjects; + context: SdkContextSchema; +} diff --git a/frontend/src/openapi/models/advancedPlaygroundRequestSchemaProjects.ts b/frontend/src/openapi/models/advancedPlaygroundRequestSchemaProjects.ts new file mode 100644 index 0000000000..3d8325cde3 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundRequestSchemaProjects.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A list of projects to check for toggles in. + */ +export type AdvancedPlaygroundRequestSchemaProjects = string[] | '*'; diff --git a/frontend/src/openapi/models/advancedPlaygroundResponseSchema.ts b/frontend/src/openapi/models/advancedPlaygroundResponseSchema.ts new file mode 100644 index 0000000000..dd652f9859 --- /dev/null +++ b/frontend/src/openapi/models/advancedPlaygroundResponseSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdvancedPlaygroundRequestSchema } from './advancedPlaygroundRequestSchema'; +import type { AdvancedPlaygroundFeatureSchema } from './advancedPlaygroundFeatureSchema'; + +/** + * The state of all features given the provided input. + */ +export interface AdvancedPlaygroundResponseSchema { + /** The given input used to evaluate the features. */ + input: AdvancedPlaygroundRequestSchema; + /** The list of features that have been evaluated. */ + features: AdvancedPlaygroundFeatureSchema[]; +} diff --git a/frontend/src/openapi/models/apiTokenSchema.ts b/frontend/src/openapi/models/apiTokenSchema.ts index 85a9560d2c..73ef506633 100644 --- a/frontend/src/openapi/models/apiTokenSchema.ts +++ b/frontend/src/openapi/models/apiTokenSchema.ts @@ -5,15 +5,33 @@ */ import type { ApiTokenSchemaType } from './apiTokenSchemaType'; +/** + * An overview of an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys). + */ export interface ApiTokenSchema { - secret?: string; - username: string; + /** The token used for authentication. */ + secret: string; + /** + * This property was deprecated in Unleash v5. Prefer the `tokenName` property instead. + * @deprecated + */ + username?: string; + /** A unique name for this particular token */ + tokenName: string; + /** The type of API token */ type: ApiTokenSchemaType; + /** The environment the token has access to. `*` if it has access to all environments. */ environment?: string; - project?: string; - projects?: string[]; + /** The project this token belongs to. */ + project: string; + /** The list of projects this token has access to. If the token has access to specific projects they will be listed here. If the token has access to all projects it will be represented as `[*]` */ + projects: string[]; + /** The token's expiration date. NULL if the token doesn't have an expiration set. */ expiresAt?: string | null; - createdAt?: string | null; + /** When the token was created. */ + createdAt: string; + /** When the token was last seen/used to authenticate with. NULL if the token has not yet been used for authentication. */ seenAt?: string | null; + /** Alias is no longer in active use and will often be NULL. It's kept around as a way of allowing old proxy tokens created with the old metadata format to keep working. */ alias?: string | null; } diff --git a/frontend/src/openapi/models/apiTokenSchemaType.ts b/frontend/src/openapi/models/apiTokenSchemaType.ts index 7fa2469b6d..0dbb6da19f 100644 --- a/frontend/src/openapi/models/apiTokenSchemaType.ts +++ b/frontend/src/openapi/models/apiTokenSchemaType.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * The type of API token + */ export type ApiTokenSchemaType = typeof ApiTokenSchemaType[keyof typeof ApiTokenSchemaType]; diff --git a/frontend/src/openapi/models/apiTokensSchema.ts b/frontend/src/openapi/models/apiTokensSchema.ts index 6401a56f62..be185cba80 100644 --- a/frontend/src/openapi/models/apiTokensSchema.ts +++ b/frontend/src/openapi/models/apiTokensSchema.ts @@ -5,6 +5,10 @@ */ import type { ApiTokenSchema } from './apiTokenSchema'; +/** + * Contains a list of API tokens. + */ export interface ApiTokensSchema { + /** A list of API tokens. */ tokens: ApiTokenSchema[]; } diff --git a/frontend/src/openapi/models/applicationSchema.ts b/frontend/src/openapi/models/applicationSchema.ts index 988f333374..65133275b8 100644 --- a/frontend/src/openapi/models/applicationSchema.ts +++ b/frontend/src/openapi/models/applicationSchema.ts @@ -5,12 +5,18 @@ */ export interface ApplicationSchema { + /** Name of the application */ appName: string; + /** Which SDK and version the application reporting uses. Typically represented as `:` */ sdkVersion?: string; + /** Which [strategies](https://docs.getunleash.io/topics/the-anatomy-of-unleash#activation-strategies) the application has loaded. Useful when trying to figure out if your [custom strategy](https://docs.getunleash.io/reference/custom-activation-strategies) has been loaded in the SDK */ strategies?: string[]; + /** Extra information added about the application reporting the metrics. Only present if added via the Unleash Admin interface */ description?: string; + /** A link to reference the application reporting the metrics. Could for instance be a GitHub link to the repository of the application */ url?: string; + /** The CSS color that is used to color the application's entry in the application list */ color?: string; + /** An URL to an icon file to be used for the applications's entry in the application list */ icon?: string; - announced?: boolean; } diff --git a/frontend/src/openapi/models/applicationsSchema.ts b/frontend/src/openapi/models/applicationsSchema.ts index 64cf5629b7..5cf928c43d 100644 --- a/frontend/src/openapi/models/applicationsSchema.ts +++ b/frontend/src/openapi/models/applicationsSchema.ts @@ -6,5 +6,6 @@ import type { ApplicationSchema } from './applicationSchema'; export interface ApplicationsSchema { + /** Contains a list of applications that have connected via an SDK */ applications?: ApplicationSchema[]; } diff --git a/frontend/src/openapi/models/archiveFeature401.ts b/frontend/src/openapi/models/archiveFeature401.ts new file mode 100644 index 0000000000..967737032a --- /dev/null +++ b/frontend/src/openapi/models/archiveFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveFeature401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/archiveFeature404.ts b/frontend/src/openapi/models/archiveFeature404.ts new file mode 100644 index 0000000000..b413f37aa0 --- /dev/null +++ b/frontend/src/openapi/models/archiveFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveFeature404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/bulkMetrics400.ts b/frontend/src/openapi/models/bulkMetrics400.ts new file mode 100644 index 0000000000..cd190ba84d --- /dev/null +++ b/frontend/src/openapi/models/bulkMetrics400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkMetrics400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/bulkMetrics413.ts b/frontend/src/openapi/models/bulkMetrics413.ts new file mode 100644 index 0000000000..c70f1795cb --- /dev/null +++ b/frontend/src/openapi/models/bulkMetrics413.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkMetrics413 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/bulkMetrics415.ts b/frontend/src/openapi/models/bulkMetrics415.ts new file mode 100644 index 0000000000..f983814135 --- /dev/null +++ b/frontend/src/openapi/models/bulkMetrics415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkMetrics415 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/bulkMetricsSchema.ts b/frontend/src/openapi/models/bulkMetricsSchema.ts index 4e87e86490..9251b52664 100644 --- a/frontend/src/openapi/models/bulkMetricsSchema.ts +++ b/frontend/src/openapi/models/bulkMetricsSchema.ts @@ -10,6 +10,8 @@ import type { ClientMetricsEnvSchema } from './clientMetricsEnvSchema'; * A batch of metrics accumulated by Edge (or other compatible applications). Includes both application registrations as well usage metrics from clients */ export interface BulkMetricsSchema { + /** A list of applications registered by an Unleash SDK */ applications: BulkRegistrationSchema[]; + /** a list of client usage metrics registered by downstream providers. (Typically Unleash Edge) */ metrics: ClientMetricsEnvSchema[]; } diff --git a/frontend/src/openapi/models/bulkToggleFeaturesSchema.ts b/frontend/src/openapi/models/bulkToggleFeaturesSchema.ts new file mode 100644 index 0000000000..f5038d9f6c --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The feature list used for bulk toggle operations + */ +export interface BulkToggleFeaturesSchema { + /** The features that we want to bulk toggle */ + features: string[]; +} diff --git a/frontend/src/openapi/models/changeProject400.ts b/frontend/src/openapi/models/changeProject400.ts new file mode 100644 index 0000000000..061253f78b --- /dev/null +++ b/frontend/src/openapi/models/changeProject400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeProject400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/changeProject401.ts b/frontend/src/openapi/models/changeProject401.ts new file mode 100644 index 0000000000..add327cd28 --- /dev/null +++ b/frontend/src/openapi/models/changeProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeProject401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/changeRequestFeatureSchema.ts b/frontend/src/openapi/models/changeRequestFeatureSchema.ts index ef34b2f12a..6ce5eac715 100644 --- a/frontend/src/openapi/models/changeRequestFeatureSchema.ts +++ b/frontend/src/openapi/models/changeRequestFeatureSchema.ts @@ -9,6 +9,7 @@ import type { ChangeRequestDefaultEventSchema } from './changeRequestDefaultEven export interface ChangeRequestFeatureSchema { name: string; conflict?: string; + /** List of changes inside change request. This list may be empty when listing all change requests for a project. */ changes: ChangeRequestEventSchema[]; defaultChange?: ChangeRequestDefaultEventSchema; } diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts new file mode 100644 index 0000000000..2d4c9d3b79 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchema.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestCreateSchema } from './changeRequestCreateSchema'; + +export type ChangeRequestOneOrManyCreateSchema = + | ChangeRequestCreateSchema + | ChangeRequestCreateSchema[]; diff --git a/frontend/src/openapi/models/clientMetricsSchema.ts b/frontend/src/openapi/models/clientMetricsSchema.ts index 4a39d09b57..508b469cd9 100644 --- a/frontend/src/openapi/models/clientMetricsSchema.ts +++ b/frontend/src/openapi/models/clientMetricsSchema.ts @@ -5,9 +5,16 @@ */ import type { ClientMetricsSchemaBucket } from './clientMetricsSchemaBucket'; +/** + * Client usage metrics, accumulated in buckets of hour by hour by default + */ export interface ClientMetricsSchema { + /** The name of the application that is evaluating toggles */ appName: string; + /** A [(somewhat) unique identifier](https://docs.getunleash.io/reference/sdks/node#advanced-usage) for the application */ instanceId?: string; + /** Which environment the application is running in */ environment?: string; + /** Holds all metrics gathered over a window of time. Typically 1 hour wide */ bucket: ClientMetricsSchemaBucket; } diff --git a/frontend/src/openapi/models/clientMetricsSchemaBucket.ts b/frontend/src/openapi/models/clientMetricsSchemaBucket.ts index 6595eddc55..6906ce86cc 100644 --- a/frontend/src/openapi/models/clientMetricsSchemaBucket.ts +++ b/frontend/src/openapi/models/clientMetricsSchemaBucket.ts @@ -6,8 +6,14 @@ import type { DateSchema } from './dateSchema'; import type { ClientMetricsSchemaBucketToggles } from './clientMetricsSchemaBucketToggles'; +/** + * Holds all metrics gathered over a window of time. Typically 1 hour wide + */ export type ClientMetricsSchemaBucket = { + /** The start of the time window these metrics are valid for. The window is usually 1 hour wide */ start: DateSchema; + /** The end of the time window these metrics are valid for. The window is 1 hour wide */ stop: DateSchema; + /** an object containing feature names with yes/no plus variant usage */ toggles: ClientMetricsSchemaBucketToggles; }; diff --git a/frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts b/frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts index 5e9321914f..105a326af4 100644 --- a/frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts +++ b/frontend/src/openapi/models/clientMetricsSchemaBucketToggles.ts @@ -5,10 +5,16 @@ */ import type { ClientMetricsSchemaBucketTogglesVariants } from './clientMetricsSchemaBucketTogglesVariants'; +/** + * an object containing feature names with yes/no plus variant usage + */ export type ClientMetricsSchemaBucketToggles = { [key: string]: { + /** How many times the toggle evaluated to true */ yes?: number; + /** How many times the toggle evaluated to false */ no?: number; + /** How many times each variant was returned */ variants?: ClientMetricsSchemaBucketTogglesVariants; }; }; diff --git a/frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts b/frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts index d6c749d7c4..ba8224f5f9 100644 --- a/frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts +++ b/frontend/src/openapi/models/clientMetricsSchemaBucketTogglesVariants.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * How many times each variant was returned + */ export type ClientMetricsSchemaBucketTogglesVariants = { [key: string]: number; }; diff --git a/frontend/src/openapi/models/cloneEnvironment400.ts b/frontend/src/openapi/models/cloneEnvironment400.ts new file mode 100644 index 0000000000..9e888b8ee4 --- /dev/null +++ b/frontend/src/openapi/models/cloneEnvironment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CloneEnvironment400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/cloneEnvironment401.ts b/frontend/src/openapi/models/cloneEnvironment401.ts new file mode 100644 index 0000000000..e389538c5c --- /dev/null +++ b/frontend/src/openapi/models/cloneEnvironment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CloneEnvironment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/contextFieldSchema.ts b/frontend/src/openapi/models/contextFieldSchema.ts index e41a2423e2..638cf53776 100644 --- a/frontend/src/openapi/models/contextFieldSchema.ts +++ b/frontend/src/openapi/models/contextFieldSchema.ts @@ -7,9 +7,13 @@ import type { LegalValueSchema } from './legalValueSchema'; export interface ContextFieldSchema { name: string; - description?: string; + description?: string | null; stickiness?: boolean; sortOrder?: number; createdAt?: string | null; + /** Number of projects where this context field is used in */ + usedInFeatures?: number | null; + /** Number of projects where this context field is used in */ + usedInProjects?: number | null; legalValues?: LegalValueSchema[]; } diff --git a/frontend/src/openapi/models/contextFieldStrategiesSchema.ts b/frontend/src/openapi/models/contextFieldStrategiesSchema.ts new file mode 100644 index 0000000000..c9d16d0785 --- /dev/null +++ b/frontend/src/openapi/models/contextFieldStrategiesSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ContextFieldStrategiesSchemaStrategiesItem } from './contextFieldStrategiesSchemaStrategiesItem'; + +/** + * A wrapper object containing all for strategies using a specific context field + */ +export interface ContextFieldStrategiesSchema { + /** List of strategies using the context field */ + strategies: ContextFieldStrategiesSchemaStrategiesItem[]; +} diff --git a/frontend/src/openapi/models/contextFieldStrategiesSchemaStrategiesItem.ts b/frontend/src/openapi/models/contextFieldStrategiesSchemaStrategiesItem.ts new file mode 100644 index 0000000000..4f89781dbb --- /dev/null +++ b/frontend/src/openapi/models/contextFieldStrategiesSchemaStrategiesItem.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ContextFieldStrategiesSchemaStrategiesItem = { + /** The ID of the strategy. */ + id: string; + /** The name of the feature that contains this strategy. */ + featureName: string; + /** The ID of the project that contains this feature. */ + projectId: string; + /** The ID of the environment where this strategy is in. */ + environment: string; + /** The name of the strategy. */ + strategyName: string; +}; diff --git a/frontend/src/openapi/models/createAddon400.ts b/frontend/src/openapi/models/createAddon400.ts new file mode 100644 index 0000000000..a9780a07bb --- /dev/null +++ b/frontend/src/openapi/models/createAddon400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateAddon400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createAddon401.ts b/frontend/src/openapi/models/createAddon401.ts new file mode 100644 index 0000000000..71f482e976 --- /dev/null +++ b/frontend/src/openapi/models/createAddon401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateAddon401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createAddon403.ts b/frontend/src/openapi/models/createAddon403.ts new file mode 100644 index 0000000000..af13d131a9 --- /dev/null +++ b/frontend/src/openapi/models/createAddon403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateAddon403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createAddon413.ts b/frontend/src/openapi/models/createAddon413.ts new file mode 100644 index 0000000000..9445ded15e --- /dev/null +++ b/frontend/src/openapi/models/createAddon413.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateAddon413 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createAddon415.ts b/frontend/src/openapi/models/createAddon415.ts new file mode 100644 index 0000000000..e25960cad0 --- /dev/null +++ b/frontend/src/openapi/models/createAddon415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateAddon415 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchema.ts b/frontend/src/openapi/models/createApiTokenSchema.ts index fbd8e70fff..dd4d84c2f9 100644 --- a/frontend/src/openapi/models/createApiTokenSchema.ts +++ b/frontend/src/openapi/models/createApiTokenSchema.ts @@ -3,14 +3,25 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { CreateApiTokenSchemaAnyOf } from './createApiTokenSchemaAnyOf'; +import type { CreateApiTokenSchemaAnyOfTwo } from './createApiTokenSchemaAnyOfTwo'; -export interface CreateApiTokenSchema { - secret?: string; - username: string; - /** One of client, admin, frontend */ - type: string; - environment?: string; - project?: string; - projects?: string[]; - expiresAt?: string | null; -} +export type CreateApiTokenSchema = + | (CreateApiTokenSchemaAnyOf & { + secret?: string; + /** One of client, admin, frontend */ + type: string; + environment?: string; + project?: string; + projects?: string[]; + expiresAt?: string | null; + }) + | (CreateApiTokenSchemaAnyOfTwo & { + secret?: string; + /** One of client, admin, frontend */ + type: string; + environment?: string; + project?: string; + projects?: string[]; + expiresAt?: string | null; + }); diff --git a/frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts b/frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts new file mode 100644 index 0000000000..f513134e89 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts @@ -0,0 +1,9 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaAnyOf = { + username: string; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchemaAnyOfTwo.ts b/frontend/src/openapi/models/createApiTokenSchemaAnyOfTwo.ts new file mode 100644 index 0000000000..002afff451 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaAnyOfTwo.ts @@ -0,0 +1,9 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaAnyOfTwo = { + tokenName: string; +}; diff --git a/frontend/src/openapi/models/createApplication400.ts b/frontend/src/openapi/models/createApplication400.ts new file mode 100644 index 0000000000..e312d01476 --- /dev/null +++ b/frontend/src/openapi/models/createApplication400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApplication400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createApplication401.ts b/frontend/src/openapi/models/createApplication401.ts new file mode 100644 index 0000000000..c9646590ea --- /dev/null +++ b/frontend/src/openapi/models/createApplication401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApplication401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createApplication403.ts b/frontend/src/openapi/models/createApplication403.ts new file mode 100644 index 0000000000..42d03ba3d8 --- /dev/null +++ b/frontend/src/openapi/models/createApplication403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApplication403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createApplicationSchema.ts b/frontend/src/openapi/models/createApplicationSchema.ts new file mode 100644 index 0000000000..b46065fb0e --- /dev/null +++ b/frontend/src/openapi/models/createApplicationSchema.ts @@ -0,0 +1,24 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Reported application information from Unleash SDKs + */ +export interface CreateApplicationSchema { + /** Name of the application */ + appName?: string; + /** Which SDK and version the application reporting uses. Typically represented as `:` */ + sdkVersion?: string; + /** Which [strategies](https://docs.getunleash.io/topics/the-anatomy-of-unleash#activation-strategies) the application has loaded. Useful when trying to figure out if your [custom strategy](https://docs.getunleash.io/reference/custom-activation-strategies) has been loaded in the SDK */ + strategies?: string[]; + /** A link to reference the application reporting the metrics. Could for instance be a GitHub link to the repository of the application */ + url?: string; + /** Css color to be used to color the application's entry in the application list */ + color?: string; + /** An URL to an icon file to be used for the applications's entry in the application list */ + icon?: string; + [key: string]: any; +} diff --git a/frontend/src/openapi/models/createEnvironment400.ts b/frontend/src/openapi/models/createEnvironment400.ts new file mode 100644 index 0000000000..093f302a5f --- /dev/null +++ b/frontend/src/openapi/models/createEnvironment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateEnvironment400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createEnvironment401.ts b/frontend/src/openapi/models/createEnvironment401.ts new file mode 100644 index 0000000000..005742b5ab --- /dev/null +++ b/frontend/src/openapi/models/createEnvironment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateEnvironment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createPat401.ts b/frontend/src/openapi/models/createPat401.ts new file mode 100644 index 0000000000..77040a5403 --- /dev/null +++ b/frontend/src/openapi/models/createPat401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreatePat401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createPat403.ts b/frontend/src/openapi/models/createPat403.ts new file mode 100644 index 0000000000..cfbd19bf56 --- /dev/null +++ b/frontend/src/openapi/models/createPat403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreatePat403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createPat404.ts b/frontend/src/openapi/models/createPat404.ts new file mode 100644 index 0000000000..d652400ef3 --- /dev/null +++ b/frontend/src/openapi/models/createPat404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreatePat404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createProject400.ts b/frontend/src/openapi/models/createProject400.ts new file mode 100644 index 0000000000..2ba2a9ea07 --- /dev/null +++ b/frontend/src/openapi/models/createProject400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateProject400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createProject401.ts b/frontend/src/openapi/models/createProject401.ts new file mode 100644 index 0000000000..1e14423432 --- /dev/null +++ b/frontend/src/openapi/models/createProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateProject401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createProjectApiToken400.ts b/frontend/src/openapi/models/createProjectApiToken400.ts new file mode 100644 index 0000000000..54590d407e --- /dev/null +++ b/frontend/src/openapi/models/createProjectApiToken400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateProjectApiToken400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createProjectApiToken401.ts b/frontend/src/openapi/models/createProjectApiToken401.ts new file mode 100644 index 0000000000..e618976446 --- /dev/null +++ b/frontend/src/openapi/models/createProjectApiToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateProjectApiToken401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createProjectApiToken403.ts b/frontend/src/openapi/models/createProjectApiToken403.ts new file mode 100644 index 0000000000..99b7ec4889 --- /dev/null +++ b/frontend/src/openapi/models/createProjectApiToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateProjectApiToken403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createPublicSignupToken400.ts b/frontend/src/openapi/models/createPublicSignupToken400.ts new file mode 100644 index 0000000000..bfb1ca4c5f --- /dev/null +++ b/frontend/src/openapi/models/createPublicSignupToken400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreatePublicSignupToken400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createPublicSignupToken401.ts b/frontend/src/openapi/models/createPublicSignupToken401.ts new file mode 100644 index 0000000000..7900a31b1c --- /dev/null +++ b/frontend/src/openapi/models/createPublicSignupToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreatePublicSignupToken401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createPublicSignupToken403.ts b/frontend/src/openapi/models/createPublicSignupToken403.ts new file mode 100644 index 0000000000..a647659ab1 --- /dev/null +++ b/frontend/src/openapi/models/createPublicSignupToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreatePublicSignupToken403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createRole400.ts b/frontend/src/openapi/models/createRole400.ts new file mode 100644 index 0000000000..bdc361a91b --- /dev/null +++ b/frontend/src/openapi/models/createRole400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateRole400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts index e47a13297c..18afb5b00c 100644 --- a/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchema.ts @@ -3,10 +3,12 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { CreateRoleWithPermissionsSchemaType } from './createRoleWithPermissionsSchemaType'; import type { CreateRoleWithPermissionsSchemaPermissionsItem } from './createRoleWithPermissionsSchemaPermissionsItem'; export interface CreateRoleWithPermissionsSchema { name: string; description?: string; + type?: CreateRoleWithPermissionsSchemaType; permissions?: CreateRoleWithPermissionsSchemaPermissionsItem[]; } diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts new file mode 100644 index 0000000000..6f5f471081 --- /dev/null +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaType.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateRoleWithPermissionsSchemaType = + typeof CreateRoleWithPermissionsSchemaType[keyof typeof CreateRoleWithPermissionsSchemaType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const CreateRoleWithPermissionsSchemaType = { + 'root-custom': 'root-custom', + custom: 'custom', +} as const; diff --git a/frontend/src/openapi/models/createSegment400.ts b/frontend/src/openapi/models/createSegment400.ts new file mode 100644 index 0000000000..e80b79d52c --- /dev/null +++ b/frontend/src/openapi/models/createSegment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateSegment400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createSegment401.ts b/frontend/src/openapi/models/createSegment401.ts new file mode 100644 index 0000000000..7b907cf359 --- /dev/null +++ b/frontend/src/openapi/models/createSegment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateSegment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createSegment403.ts b/frontend/src/openapi/models/createSegment403.ts new file mode 100644 index 0000000000..aa2288a88c --- /dev/null +++ b/frontend/src/openapi/models/createSegment403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateSegment403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/createSegment409.ts b/frontend/src/openapi/models/createSegment409.ts new file mode 100644 index 0000000000..0f5e901a54 --- /dev/null +++ b/frontend/src/openapi/models/createSegment409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateSegment409 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteAddon401.ts b/frontend/src/openapi/models/deleteAddon401.ts new file mode 100644 index 0000000000..7541c714f8 --- /dev/null +++ b/frontend/src/openapi/models/deleteAddon401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteAddon401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteAddon403.ts b/frontend/src/openapi/models/deleteAddon403.ts new file mode 100644 index 0000000000..88b733666e --- /dev/null +++ b/frontend/src/openapi/models/deleteAddon403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteAddon403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteAddon404.ts b/frontend/src/openapi/models/deleteAddon404.ts new file mode 100644 index 0000000000..5e60e902f0 --- /dev/null +++ b/frontend/src/openapi/models/deleteAddon404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteAddon404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteApplication401.ts b/frontend/src/openapi/models/deleteApplication401.ts new file mode 100644 index 0000000000..ade25da24a --- /dev/null +++ b/frontend/src/openapi/models/deleteApplication401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteApplication401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteApplication403.ts b/frontend/src/openapi/models/deleteApplication403.ts new file mode 100644 index 0000000000..c973fa4494 --- /dev/null +++ b/frontend/src/openapi/models/deleteApplication403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteApplication403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteLoginEvent400.ts b/frontend/src/openapi/models/deleteLoginEvent400.ts new file mode 100644 index 0000000000..181aa3725f --- /dev/null +++ b/frontend/src/openapi/models/deleteLoginEvent400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteLoginEvent400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteLoginEvent401.ts b/frontend/src/openapi/models/deleteLoginEvent401.ts new file mode 100644 index 0000000000..fed9314547 --- /dev/null +++ b/frontend/src/openapi/models/deleteLoginEvent401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteLoginEvent401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteLoginEvent404.ts b/frontend/src/openapi/models/deleteLoginEvent404.ts new file mode 100644 index 0000000000..49290c0466 --- /dev/null +++ b/frontend/src/openapi/models/deleteLoginEvent404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteLoginEvent404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteLoginHistory401.ts b/frontend/src/openapi/models/deleteLoginHistory401.ts new file mode 100644 index 0000000000..4b23e0ff9c --- /dev/null +++ b/frontend/src/openapi/models/deleteLoginHistory401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteLoginHistory401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteLoginHistory404.ts b/frontend/src/openapi/models/deleteLoginHistory404.ts new file mode 100644 index 0000000000..fc2498278e --- /dev/null +++ b/frontend/src/openapi/models/deleteLoginHistory404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteLoginHistory404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deletePat401.ts b/frontend/src/openapi/models/deletePat401.ts new file mode 100644 index 0000000000..955368ac8e --- /dev/null +++ b/frontend/src/openapi/models/deletePat401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeletePat401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deletePat403.ts b/frontend/src/openapi/models/deletePat403.ts new file mode 100644 index 0000000000..5077a70552 --- /dev/null +++ b/frontend/src/openapi/models/deletePat403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeletePat403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deletePat404.ts b/frontend/src/openapi/models/deletePat404.ts new file mode 100644 index 0000000000..fe4c629a35 --- /dev/null +++ b/frontend/src/openapi/models/deletePat404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeletePat404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteProjectApiToken401.ts b/frontend/src/openapi/models/deleteProjectApiToken401.ts new file mode 100644 index 0000000000..4e945a4b3b --- /dev/null +++ b/frontend/src/openapi/models/deleteProjectApiToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteProjectApiToken401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteProjectApiToken403.ts b/frontend/src/openapi/models/deleteProjectApiToken403.ts new file mode 100644 index 0000000000..0d91c7b5a6 --- /dev/null +++ b/frontend/src/openapi/models/deleteProjectApiToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteProjectApiToken403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/deleteRole409.ts b/frontend/src/openapi/models/deleteRole409.ts new file mode 100644 index 0000000000..ae84058699 --- /dev/null +++ b/frontend/src/openapi/models/deleteRole409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteRole409 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/editChange404.ts b/frontend/src/openapi/models/editChange404.ts new file mode 100644 index 0000000000..94fd7cbeef --- /dev/null +++ b/frontend/src/openapi/models/editChange404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type EditChange404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/environmentProjectSchema.ts b/frontend/src/openapi/models/environmentProjectSchema.ts index 180e6ae78a..ebc5e34999 100644 --- a/frontend/src/openapi/models/environmentProjectSchema.ts +++ b/frontend/src/openapi/models/environmentProjectSchema.ts @@ -3,6 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema'; /** * Describes a project's configuration in a given environment. @@ -22,4 +23,6 @@ export interface EnvironmentProjectSchema { projectApiTokenCount?: number; /** The number of features enabled in this environment for this project */ projectEnabledToggleCount?: number; + /** The strategy configuration to add when enabling a feature environment by default */ + defaultStrategy?: CreateFeatureStrategySchema; } diff --git a/frontend/src/openapi/models/exportQuerySchema.ts b/frontend/src/openapi/models/exportQuerySchema.ts index f2947a990b..dee59205b1 100644 --- a/frontend/src/openapi/models/exportQuerySchema.ts +++ b/frontend/src/openapi/models/exportQuerySchema.ts @@ -3,9 +3,17 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { ExportQuerySchemaOneOf } from './exportQuerySchemaOneOf'; +import type { ExportQuerySchemaOneOfTwo } from './exportQuerySchemaOneOfTwo'; -export interface ExportQuerySchema { - features: string[]; - environment: string; - downloadFile?: boolean; -} +export type ExportQuerySchema = + | (ExportQuerySchemaOneOf & { + environment: string; + downloadFile?: boolean; + [key: string]: any; + }) + | (ExportQuerySchemaOneOfTwo & { + environment: string; + downloadFile?: boolean; + [key: string]: any; + }); diff --git a/frontend/src/openapi/models/exportQuerySchemaOneOf.ts b/frontend/src/openapi/models/exportQuerySchemaOneOf.ts new file mode 100644 index 0000000000..e86200e94b --- /dev/null +++ b/frontend/src/openapi/models/exportQuerySchemaOneOf.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ExportQuerySchemaOneOf = { + /** Selects features to export by name. */ + features: string[]; +}; diff --git a/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts b/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts new file mode 100644 index 0000000000..21fc9d6ca0 --- /dev/null +++ b/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ExportQuerySchemaOneOfTwo = { + /** Selects features to export by tag. Takes precedence over the features field. */ + tag: string; +}; diff --git a/frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts b/frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts index 791bf1ba64..3e47007aef 100644 --- a/frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts +++ b/frontend/src/openapi/models/featureEnvironmentMetricsSchema.ts @@ -3,12 +3,25 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { DateSchema } from './dateSchema'; +import type { FeatureEnvironmentMetricsSchemaVariants } from './featureEnvironmentMetricsSchemaVariants'; +/** + * How many times `feautreName` was evaluated to `true` (yes) and `false` (no) for `appName` in `environmnet` + */ export interface FeatureEnvironmentMetricsSchema { + /** The name of the feature */ featureName?: string; + /** The name of the application the SDK is being used in */ appName?: string; + /** Which environment the SDK is being used in */ environment: string; - timestamp: string; + /** The start of the time window these metrics are valid for. The window is usually 1 hour wide */ + timestamp: DateSchema; + /** How many times the toggle evaluated to true */ yes: number; + /** How many times the toggle evaluated to false */ no: number; + /** How many times each variant was returned */ + variants?: FeatureEnvironmentMetricsSchemaVariants; } diff --git a/frontend/src/openapi/models/featureEnvironmentMetricsSchemaVariants.ts b/frontend/src/openapi/models/featureEnvironmentMetricsSchemaVariants.ts new file mode 100644 index 0000000000..57c48f253c --- /dev/null +++ b/frontend/src/openapi/models/featureEnvironmentMetricsSchemaVariants.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * How many times each variant was returned + */ +export type FeatureEnvironmentMetricsSchemaVariants = { [key: string]: number }; diff --git a/frontend/src/openapi/models/featureMetricsSchema.ts b/frontend/src/openapi/models/featureMetricsSchema.ts index 9770ea7708..6bc9b41048 100644 --- a/frontend/src/openapi/models/featureMetricsSchema.ts +++ b/frontend/src/openapi/models/featureMetricsSchema.ts @@ -5,8 +5,14 @@ */ import type { FeatureEnvironmentMetricsSchema } from './featureEnvironmentMetricsSchema'; +/** + * A batch of feature metrics + */ export interface FeatureMetricsSchema { + /** The version of this schema */ version: number; + /** The maturity level of this API (alpha, beta, stable, deprecated) */ maturity: string; + /** Metrics gathered per environment */ data: FeatureEnvironmentMetricsSchema[]; } diff --git a/frontend/src/openapi/models/featureUsageSchema.ts b/frontend/src/openapi/models/featureUsageSchema.ts index 63996df3e6..ceec1f509c 100644 --- a/frontend/src/openapi/models/featureUsageSchema.ts +++ b/frontend/src/openapi/models/featureUsageSchema.ts @@ -5,10 +5,18 @@ */ import type { FeatureEnvironmentMetricsSchema } from './featureEnvironmentMetricsSchema'; +/** + * How many applications have seen this feature toggle, as well as how this feature was evaluated the last hour + */ export interface FeatureUsageSchema { + /** The version of this schema */ version: number; + /** The maturity level of this API (alpha, beta, stable, deprecated) */ maturity: string; + /** The name of the feature */ featureName: string; + /** Last hour statistics. Accumulated per feature per environment. Contains counts for evaluations to true (yes) and to false (no) */ lastHourUsage: FeatureEnvironmentMetricsSchema[]; + /** A list of applications seen using this feature */ seenApplications: string[]; } diff --git a/frontend/src/openapi/models/getAddon401.ts b/frontend/src/openapi/models/getAddon401.ts new file mode 100644 index 0000000000..75f67d57a8 --- /dev/null +++ b/frontend/src/openapi/models/getAddon401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAddon401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getAddons401.ts b/frontend/src/openapi/models/getAddons401.ts new file mode 100644 index 0000000000..1147da18e3 --- /dev/null +++ b/frontend/src/openapi/models/getAddons401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAddons401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getAdvancedPlayground400.ts b/frontend/src/openapi/models/getAdvancedPlayground400.ts new file mode 100644 index 0000000000..c4908590e3 --- /dev/null +++ b/frontend/src/openapi/models/getAdvancedPlayground400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAdvancedPlayground400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getAdvancedPlayground401.ts b/frontend/src/openapi/models/getAdvancedPlayground401.ts new file mode 100644 index 0000000000..b065b63952 --- /dev/null +++ b/frontend/src/openapi/models/getAdvancedPlayground401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAdvancedPlayground401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getAllEnvironments401.ts b/frontend/src/openapi/models/getAllEnvironments401.ts new file mode 100644 index 0000000000..46e3857996 --- /dev/null +++ b/frontend/src/openapi/models/getAllEnvironments401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllEnvironments401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getAllEnvironments403.ts b/frontend/src/openapi/models/getAllEnvironments403.ts new file mode 100644 index 0000000000..5003b33498 --- /dev/null +++ b/frontend/src/openapi/models/getAllEnvironments403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllEnvironments403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getApplication404.ts b/frontend/src/openapi/models/getApplication404.ts new file mode 100644 index 0000000000..6539616d95 --- /dev/null +++ b/frontend/src/openapi/models/getApplication404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetApplication404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getChangeRequest404.ts b/frontend/src/openapi/models/getChangeRequest404.ts new file mode 100644 index 0000000000..362aa06122 --- /dev/null +++ b/frontend/src/openapi/models/getChangeRequest404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetChangeRequest404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getEnvironment401.ts b/frontend/src/openapi/models/getEnvironment401.ts new file mode 100644 index 0000000000..a849a8bfc3 --- /dev/null +++ b/frontend/src/openapi/models/getEnvironment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEnvironment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getEnvironment403.ts b/frontend/src/openapi/models/getEnvironment403.ts new file mode 100644 index 0000000000..0ca1adada6 --- /dev/null +++ b/frontend/src/openapi/models/getEnvironment403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEnvironment403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getEnvironment404.ts b/frontend/src/openapi/models/getEnvironment404.ts new file mode 100644 index 0000000000..945dd87c01 --- /dev/null +++ b/frontend/src/openapi/models/getEnvironment404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEnvironment404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getEvents401.ts b/frontend/src/openapi/models/getEvents401.ts new file mode 100644 index 0000000000..fb04636938 --- /dev/null +++ b/frontend/src/openapi/models/getEvents401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEvents401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getEventsForToggle401.ts b/frontend/src/openapi/models/getEventsForToggle401.ts new file mode 100644 index 0000000000..47ecaa08e6 --- /dev/null +++ b/frontend/src/openapi/models/getEventsForToggle401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEventsForToggle401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getEventsParams.ts b/frontend/src/openapi/models/getEventsParams.ts index acfd3765d0..fc7fffc5e1 100644 --- a/frontend/src/openapi/models/getEventsParams.ts +++ b/frontend/src/openapi/models/getEventsParams.ts @@ -4,4 +4,9 @@ * See `gen:api` script in package.json */ -export type GetEventsParams = { project?: string }; +export type GetEventsParams = { + /** + * The name of the project whose events you want to retrieve + */ + project?: string; +}; diff --git a/frontend/src/openapi/models/getFeature401.ts b/frontend/src/openapi/models/getFeature401.ts new file mode 100644 index 0000000000..80b1c77302 --- /dev/null +++ b/frontend/src/openapi/models/getFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeature401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getFeature404.ts b/frontend/src/openapi/models/getFeature404.ts new file mode 100644 index 0000000000..afaca36f59 --- /dev/null +++ b/frontend/src/openapi/models/getFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeature404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getFeatureUsageSummary401.ts b/frontend/src/openapi/models/getFeatureUsageSummary401.ts new file mode 100644 index 0000000000..970930d28f --- /dev/null +++ b/frontend/src/openapi/models/getFeatureUsageSummary401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureUsageSummary401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getFeatureUsageSummary403.ts b/frontend/src/openapi/models/getFeatureUsageSummary403.ts new file mode 100644 index 0000000000..894a8cabde --- /dev/null +++ b/frontend/src/openapi/models/getFeatureUsageSummary403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureUsageSummary403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getFeatureUsageSummary404.ts b/frontend/src/openapi/models/getFeatureUsageSummary404.ts new file mode 100644 index 0000000000..48ab3e6973 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureUsageSummary404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureUsageSummary404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getGoogleSettings400.ts b/frontend/src/openapi/models/getGoogleSettings400.ts new file mode 100644 index 0000000000..3f834b2cd6 --- /dev/null +++ b/frontend/src/openapi/models/getGoogleSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetGoogleSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getGoogleSettings401.ts b/frontend/src/openapi/models/getGoogleSettings401.ts new file mode 100644 index 0000000000..c675f5f2ab --- /dev/null +++ b/frontend/src/openapi/models/getGoogleSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetGoogleSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getLoginHistory401.ts b/frontend/src/openapi/models/getLoginHistory401.ts new file mode 100644 index 0000000000..17f30e6adf --- /dev/null +++ b/frontend/src/openapi/models/getLoginHistory401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetLoginHistory401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getLoginHistory404.ts b/frontend/src/openapi/models/getLoginHistory404.ts new file mode 100644 index 0000000000..dc91441cf1 --- /dev/null +++ b/frontend/src/openapi/models/getLoginHistory404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetLoginHistory404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getMaintenance401.ts b/frontend/src/openapi/models/getMaintenance401.ts new file mode 100644 index 0000000000..8c30bee276 --- /dev/null +++ b/frontend/src/openapi/models/getMaintenance401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetMaintenance401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getMaintenance403.ts b/frontend/src/openapi/models/getMaintenance403.ts new file mode 100644 index 0000000000..910113ad4a --- /dev/null +++ b/frontend/src/openapi/models/getMaintenance403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetMaintenance403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getOidcSettings400.ts b/frontend/src/openapi/models/getOidcSettings400.ts new file mode 100644 index 0000000000..506bb8c056 --- /dev/null +++ b/frontend/src/openapi/models/getOidcSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetOidcSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getOidcSettings401.ts b/frontend/src/openapi/models/getOidcSettings401.ts new file mode 100644 index 0000000000..fbd2ddc0b5 --- /dev/null +++ b/frontend/src/openapi/models/getOidcSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetOidcSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getPats401.ts b/frontend/src/openapi/models/getPats401.ts new file mode 100644 index 0000000000..22925a3ffb --- /dev/null +++ b/frontend/src/openapi/models/getPats401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetPats401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getPats403.ts b/frontend/src/openapi/models/getPats403.ts new file mode 100644 index 0000000000..9476002c33 --- /dev/null +++ b/frontend/src/openapi/models/getPats403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetPats403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getPats404.ts b/frontend/src/openapi/models/getPats404.ts new file mode 100644 index 0000000000..559b548bfb --- /dev/null +++ b/frontend/src/openapi/models/getPats404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetPats404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getPlayground400.ts b/frontend/src/openapi/models/getPlayground400.ts new file mode 100644 index 0000000000..bebc663feb --- /dev/null +++ b/frontend/src/openapi/models/getPlayground400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetPlayground400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getPlayground401.ts b/frontend/src/openapi/models/getPlayground401.ts new file mode 100644 index 0000000000..6dbf6f992c --- /dev/null +++ b/frontend/src/openapi/models/getPlayground401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetPlayground401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectApiTokens401.ts b/frontend/src/openapi/models/getProjectApiTokens401.ts new file mode 100644 index 0000000000..7ee262eb46 --- /dev/null +++ b/frontend/src/openapi/models/getProjectApiTokens401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectApiTokens401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectApiTokens403.ts b/frontend/src/openapi/models/getProjectApiTokens403.ts new file mode 100644 index 0000000000..2dce463b40 --- /dev/null +++ b/frontend/src/openapi/models/getProjectApiTokens403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectApiTokens403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectApiTokens404.ts b/frontend/src/openapi/models/getProjectApiTokens404.ts new file mode 100644 index 0000000000..f5c8633da8 --- /dev/null +++ b/frontend/src/openapi/models/getProjectApiTokens404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectApiTokens404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectEnvironments401.ts b/frontend/src/openapi/models/getProjectEnvironments401.ts new file mode 100644 index 0000000000..8d9c72aeb7 --- /dev/null +++ b/frontend/src/openapi/models/getProjectEnvironments401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectEnvironments401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectEnvironments403.ts b/frontend/src/openapi/models/getProjectEnvironments403.ts new file mode 100644 index 0000000000..bcc41c8d6f --- /dev/null +++ b/frontend/src/openapi/models/getProjectEnvironments403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectEnvironments403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectEnvironments404.ts b/frontend/src/openapi/models/getProjectEnvironments404.ts new file mode 100644 index 0000000000..a07ee4c685 --- /dev/null +++ b/frontend/src/openapi/models/getProjectEnvironments404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectEnvironments404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectHealthReport401.ts b/frontend/src/openapi/models/getProjectHealthReport401.ts new file mode 100644 index 0000000000..debbe149f3 --- /dev/null +++ b/frontend/src/openapi/models/getProjectHealthReport401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectHealthReport401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectHealthReport403.ts b/frontend/src/openapi/models/getProjectHealthReport403.ts new file mode 100644 index 0000000000..f5501f409c --- /dev/null +++ b/frontend/src/openapi/models/getProjectHealthReport403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectHealthReport403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectHealthReport404.ts b/frontend/src/openapi/models/getProjectHealthReport404.ts new file mode 100644 index 0000000000..8314ab3941 --- /dev/null +++ b/frontend/src/openapi/models/getProjectHealthReport404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectHealthReport404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectOverview401.ts b/frontend/src/openapi/models/getProjectOverview401.ts new file mode 100644 index 0000000000..200eea6607 --- /dev/null +++ b/frontend/src/openapi/models/getProjectOverview401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectOverview401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectOverview403.ts b/frontend/src/openapi/models/getProjectOverview403.ts new file mode 100644 index 0000000000..cec2afb933 --- /dev/null +++ b/frontend/src/openapi/models/getProjectOverview403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectOverview403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjectOverview404.ts b/frontend/src/openapi/models/getProjectOverview404.ts new file mode 100644 index 0000000000..c69425e134 --- /dev/null +++ b/frontend/src/openapi/models/getProjectOverview404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectOverview404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjects401.ts b/frontend/src/openapi/models/getProjects401.ts new file mode 100644 index 0000000000..b6a5836287 --- /dev/null +++ b/frontend/src/openapi/models/getProjects401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjects401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getProjects403.ts b/frontend/src/openapi/models/getProjects403.ts new file mode 100644 index 0000000000..4ca629b142 --- /dev/null +++ b/frontend/src/openapi/models/getProjects403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjects403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getPublicSignupToken401.ts b/frontend/src/openapi/models/getPublicSignupToken401.ts new file mode 100644 index 0000000000..08049e9f11 --- /dev/null +++ b/frontend/src/openapi/models/getPublicSignupToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetPublicSignupToken401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getPublicSignupToken403.ts b/frontend/src/openapi/models/getPublicSignupToken403.ts new file mode 100644 index 0000000000..59aa977299 --- /dev/null +++ b/frontend/src/openapi/models/getPublicSignupToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetPublicSignupToken403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getRawFeatureMetrics401.ts b/frontend/src/openapi/models/getRawFeatureMetrics401.ts new file mode 100644 index 0000000000..27d2d26219 --- /dev/null +++ b/frontend/src/openapi/models/getRawFeatureMetrics401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetRawFeatureMetrics401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getRawFeatureMetrics403.ts b/frontend/src/openapi/models/getRawFeatureMetrics403.ts new file mode 100644 index 0000000000..802cd363e3 --- /dev/null +++ b/frontend/src/openapi/models/getRawFeatureMetrics403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetRawFeatureMetrics403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getRawFeatureMetrics404.ts b/frontend/src/openapi/models/getRawFeatureMetrics404.ts new file mode 100644 index 0000000000..dd1a7e48fa --- /dev/null +++ b/frontend/src/openapi/models/getRawFeatureMetrics404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetRawFeatureMetrics404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getSamlSettings400.ts b/frontend/src/openapi/models/getSamlSettings400.ts new file mode 100644 index 0000000000..b094d50f8a --- /dev/null +++ b/frontend/src/openapi/models/getSamlSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetSamlSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getSamlSettings401.ts b/frontend/src/openapi/models/getSamlSettings401.ts new file mode 100644 index 0000000000..a06704a1b8 --- /dev/null +++ b/frontend/src/openapi/models/getSamlSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetSamlSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getSegment404.ts b/frontend/src/openapi/models/getSegment404.ts new file mode 100644 index 0000000000..72e2991638 --- /dev/null +++ b/frontend/src/openapi/models/getSegment404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetSegment404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getValidTokens400.ts b/frontend/src/openapi/models/getValidTokens400.ts new file mode 100644 index 0000000000..fdde61c910 --- /dev/null +++ b/frontend/src/openapi/models/getValidTokens400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetValidTokens400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getValidTokens413.ts b/frontend/src/openapi/models/getValidTokens413.ts new file mode 100644 index 0000000000..2a8c13006b --- /dev/null +++ b/frontend/src/openapi/models/getValidTokens413.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetValidTokens413 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/getValidTokens415.ts b/frontend/src/openapi/models/getValidTokens415.ts new file mode 100644 index 0000000000..27254ecbbd --- /dev/null +++ b/frontend/src/openapi/models/getValidTokens415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetValidTokens415 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/healthCheckSchema.ts b/frontend/src/openapi/models/healthCheckSchema.ts index 54cd2c7de0..a18d4ef22a 100644 --- a/frontend/src/openapi/models/healthCheckSchema.ts +++ b/frontend/src/openapi/models/healthCheckSchema.ts @@ -5,6 +5,10 @@ */ import type { HealthCheckSchemaHealth } from './healthCheckSchemaHealth'; +/** + * Used by service orchestrators to decide whether this Unleash instance should be marked as healthy or unhealthy + */ export interface HealthCheckSchema { + /** The state this Unleash instance is in. GOOD if everything is ok, BAD if the instance should be restarted */ health: HealthCheckSchemaHealth; } diff --git a/frontend/src/openapi/models/healthCheckSchemaHealth.ts b/frontend/src/openapi/models/healthCheckSchemaHealth.ts index 2bb82b5acb..cf58d71975 100644 --- a/frontend/src/openapi/models/healthCheckSchemaHealth.ts +++ b/frontend/src/openapi/models/healthCheckSchemaHealth.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * The state this Unleash instance is in. GOOD if everything is ok, BAD if the instance should be restarted + */ export type HealthCheckSchemaHealth = typeof HealthCheckSchemaHealth[keyof typeof HealthCheckSchemaHealth]; diff --git a/frontend/src/openapi/models/healthOverviewSchema.ts b/frontend/src/openapi/models/healthOverviewSchema.ts index 06075b7c94..24606ee411 100644 --- a/frontend/src/openapi/models/healthOverviewSchema.ts +++ b/frontend/src/openapi/models/healthOverviewSchema.ts @@ -4,22 +4,37 @@ * See `gen:api` script in package.json */ import type { HealthOverviewSchemaMode } from './healthOverviewSchemaMode'; +import type { ProjectEnvironmentSchema } from './projectEnvironmentSchema'; import type { FeatureSchema } from './featureSchema'; import type { ProjectStatsSchema } from './projectStatsSchema'; +/** + * An overview of a project's stats and its health as described in the documentation on [technical debt](https://docs.getunleash.io/reference/technical-debt) + */ export interface HealthOverviewSchema { + /** The project overview version. */ version: number; + /** The project's name */ name: string; + /** The project's description */ description?: string | null; /** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */ - defaultStickiness?: string; + defaultStickiness: string; /** The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not. */ - mode?: HealthOverviewSchemaMode; - members?: number; - health?: number; - environments?: string[]; - features?: FeatureSchema[]; + mode: HealthOverviewSchemaMode; + /** The number of users/members in the project. */ + members: number; + /** The overall [health rating](https://docs.getunleash.io/reference/technical-debt#health-rating) of the project. */ + health: number; + /** An array containing the names of all the environments configured for the project. */ + environments: ProjectEnvironmentSchema[]; + /** An array containing an overview of all the features of the project and their individual status */ + features: FeatureSchema[]; + /** When the project was last updated. */ updatedAt?: string | null; + /** When the project was last updated. */ + createdAt?: string | null; + /** Indicates if the project has been marked as a favorite by the current user requesting the project health overview. */ favorite?: boolean; /** Project statistics */ stats?: ProjectStatsSchema; diff --git a/frontend/src/openapi/models/healthReportSchema.ts b/frontend/src/openapi/models/healthReportSchema.ts index fe4c16b715..cbea24648c 100644 --- a/frontend/src/openapi/models/healthReportSchema.ts +++ b/frontend/src/openapi/models/healthReportSchema.ts @@ -4,26 +4,44 @@ * See `gen:api` script in package.json */ import type { HealthReportSchemaMode } from './healthReportSchemaMode'; +import type { ProjectEnvironmentSchema } from './projectEnvironmentSchema'; import type { FeatureSchema } from './featureSchema'; import type { ProjectStatsSchema } from './projectStatsSchema'; +/** + * A report of the current health of the requested project, with datapoints like counters of currently active, stale, and potentially stale feature toggles. + */ export interface HealthReportSchema { + /** The project overview version. */ version: number; + /** The project's name */ name: string; + /** The project's description */ description?: string | null; /** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */ - defaultStickiness?: string; + defaultStickiness: string; /** The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not. */ - mode?: HealthReportSchemaMode; - members?: number; - health?: number; - environments?: string[]; - features?: FeatureSchema[]; + mode: HealthReportSchemaMode; + /** The number of users/members in the project. */ + members: number; + /** The overall [health rating](https://docs.getunleash.io/reference/technical-debt#health-rating) of the project. */ + health: number; + /** An array containing the names of all the environments configured for the project. */ + environments: ProjectEnvironmentSchema[]; + /** An array containing an overview of all the features of the project and their individual status */ + features: FeatureSchema[]; + /** When the project was last updated. */ updatedAt?: string | null; + /** When the project was last updated. */ + createdAt?: string | null; + /** Indicates if the project has been marked as a favorite by the current user requesting the project health overview. */ favorite?: boolean; /** Project statistics */ stats?: ProjectStatsSchema; + /** The number of potentially stale feature toggles. */ potentiallyStaleCount: number; + /** The number of active feature toggles. */ activeCount: number; + /** The number of stale feature toggles. */ staleCount: number; } diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index e46c503777..b5783005d9 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -1,5 +1,21 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + export * from './_exportFormat'; export * from './_exportParams'; +export * from './addDefaultStrategyToProjectEnvironment400'; +export * from './addEnvironmentToProject401'; +export * from './addEnvironmentToProject403'; +export * from './addEnvironmentToProject409'; +export * from './addPublicSignupTokenUser400'; +export * from './addPublicSignupTokenUser409'; +export * from './addTag400'; +export * from './addTag401'; +export * from './addTag403'; +export * from './addTag404'; export * from './addonCreateUpdateSchema'; export * from './addonCreateUpdateSchemaParameters'; export * from './addonParameterSchema'; @@ -7,23 +23,43 @@ export * from './addonSchema'; export * from './addonSchemaParameters'; export * from './addonTypeSchema'; export * from './addonsSchema'; +export * from './adminCountSchema'; export * from './adminFeaturesQuerySchema'; export * from './adminPermissionSchema'; export * from './adminPermissionsSchema'; export * from './adminPermissionsSchemaPermissions'; export * from './adminPermissionsSchemaPermissionsEnvironmentsItem'; export * from './adminSegmentSchema'; +export * from './advancedPlaygroundEnvironmentFeatureSchema'; +export * from './advancedPlaygroundEnvironmentFeatureSchemaStrategies'; +export * from './advancedPlaygroundEnvironmentFeatureSchemaStrategiesResult'; +export * from './advancedPlaygroundEnvironmentFeatureSchemaVariant'; +export * from './advancedPlaygroundEnvironmentFeatureSchemaVariantPayload'; +export * from './advancedPlaygroundEnvironmentFeatureSchemaVariantPayloadType'; +export * from './advancedPlaygroundFeatureSchema'; +export * from './advancedPlaygroundFeatureSchemaEnvironments'; +export * from './advancedPlaygroundRequestSchema'; +export * from './advancedPlaygroundRequestSchemaProjects'; +export * from './advancedPlaygroundResponseSchema'; export * from './apiTokenSchema'; export * from './apiTokenSchemaType'; export * from './apiTokensSchema'; export * from './applicationSchema'; export * from './applicationsSchema'; +export * from './archiveFeature401'; +export * from './archiveFeature404'; export * from './batchFeaturesSchema'; export * from './batchStaleSchema'; +export * from './bulkMetrics400'; +export * from './bulkMetrics413'; +export * from './bulkMetrics415'; export * from './bulkMetricsSchema'; export * from './bulkRegistrationSchema'; export * from './bulkRegistrationSchemaConnectViaItem'; +export * from './bulkToggleFeaturesSchema'; export * from './changePasswordSchema'; +export * from './changeProject400'; +export * from './changeProject401'; export * from './changeProjectSchema'; export * from './changeRequestAddCommentSchema'; export * from './changeRequestApprovalSchema'; @@ -54,6 +90,7 @@ export * from './changeRequestEventSchemaCreatedBy'; export * from './changeRequestEventSchemaPayload'; export * from './changeRequestEventSchemaPayloadOneOf'; export * from './changeRequestFeatureSchema'; +export * from './changeRequestOneOrManyCreateSchema'; export * from './changeRequestSchema'; export * from './changeRequestSchemaCreatedBy'; export * from './changeRequestSchemaState'; @@ -71,26 +108,77 @@ export * from './clientMetricsSchema'; export * from './clientMetricsSchemaBucket'; export * from './clientMetricsSchemaBucketToggles'; export * from './clientMetricsSchemaBucketTogglesVariants'; +export * from './cloneEnvironment400'; +export * from './cloneEnvironment401'; export * from './cloneEnvironmentSchema'; export * from './cloneFeatureSchema'; export * from './constraintSchema'; export * from './constraintSchemaOperator'; export * from './contextFieldSchema'; +export * from './contextFieldStrategiesSchema'; +export * from './contextFieldStrategiesSchemaStrategiesItem'; export * from './contextFieldsSchema'; +export * from './createAddon400'; +export * from './createAddon401'; +export * from './createAddon403'; +export * from './createAddon413'; +export * from './createAddon415'; export * from './createApiTokenSchema'; +export * from './createApiTokenSchemaAnyOf'; +export * from './createApiTokenSchemaAnyOfTwo'; +export * from './createApplication400'; +export * from './createApplication401'; +export * from './createApplication403'; +export * from './createApplicationSchema'; +export * from './createEnvironment400'; +export * from './createEnvironment401'; export * from './createEnvironmentSchema'; export * from './createFeatureSchema'; export * from './createFeatureStrategySchema'; export * from './createInvitedUserSchema'; +export * from './createPat401'; +export * from './createPat403'; +export * from './createPat404'; +export * from './createProject400'; +export * from './createProject401'; +export * from './createProjectApiToken400'; +export * from './createProjectApiToken401'; +export * from './createProjectApiToken403'; export * from './createProjectSchema'; export * from './createProjectSchemaMode'; +export * from './createPublicSignupToken400'; +export * from './createPublicSignupToken401'; +export * from './createPublicSignupToken403'; +export * from './createRole400'; export * from './createRoleWithPermissionsSchema'; export * from './createRoleWithPermissionsSchemaPermissionsItem'; +export * from './createRoleWithPermissionsSchemaType'; +export * from './createSegment400'; +export * from './createSegment401'; +export * from './createSegment403'; +export * from './createSegment409'; export * from './createServiceAccountSchema'; export * from './createUserSchema'; export * from './dateSchema'; +export * from './deleteAddon401'; +export * from './deleteAddon403'; +export * from './deleteAddon404'; +export * from './deleteApplication401'; +export * from './deleteApplication403'; +export * from './deleteLoginEvent400'; +export * from './deleteLoginEvent401'; +export * from './deleteLoginEvent404'; +export * from './deleteLoginHistory401'; +export * from './deleteLoginHistory404'; +export * from './deletePat401'; +export * from './deletePat403'; +export * from './deletePat404'; +export * from './deleteProjectApiToken401'; +export * from './deleteProjectApiToken403'; +export * from './deleteRole409'; export * from './edgeTokenSchema'; export * from './edgeTokenSchemaType'; +export * from './editChange404'; export * from './emailSchema'; export * from './environmentProjectSchema'; export * from './environmentSchema'; @@ -101,9 +189,12 @@ export * from './eventSchemaData'; export * from './eventSchemaPreData'; export * from './eventsSchema'; export * from './exportQuerySchema'; +export * from './exportQuerySchemaOneOf'; +export * from './exportQuerySchemaOneOfTwo'; export * from './exportResultSchema'; export * from './exportResultSchemaSegmentsItem'; export * from './featureEnvironmentMetricsSchema'; +export * from './featureEnvironmentMetricsSchemaVariants'; export * from './featureEnvironmentSchema'; export * from './featureEventsSchema'; export * from './featureMetricsSchema'; @@ -118,7 +209,63 @@ export * from './featureUsageSchema'; export * from './featureVariantsSchema'; export * from './featuresSchema'; export * from './feedbackSchema'; +export * from './getAddon401'; +export * from './getAddons401'; +export * from './getAdvancedPlayground400'; +export * from './getAdvancedPlayground401'; +export * from './getAllEnvironments401'; +export * from './getAllEnvironments403'; +export * from './getApplication404'; +export * from './getChangeRequest404'; +export * from './getEnvironment401'; +export * from './getEnvironment403'; +export * from './getEnvironment404'; +export * from './getEvents401'; +export * from './getEventsForToggle401'; export * from './getEventsParams'; +export * from './getFeature401'; +export * from './getFeature404'; +export * from './getFeatureUsageSummary401'; +export * from './getFeatureUsageSummary403'; +export * from './getFeatureUsageSummary404'; +export * from './getGoogleSettings400'; +export * from './getGoogleSettings401'; +export * from './getLoginHistory401'; +export * from './getLoginHistory404'; +export * from './getMaintenance401'; +export * from './getMaintenance403'; +export * from './getOidcSettings400'; +export * from './getOidcSettings401'; +export * from './getPats401'; +export * from './getPats403'; +export * from './getPats404'; +export * from './getPlayground400'; +export * from './getPlayground401'; +export * from './getProjectApiTokens401'; +export * from './getProjectApiTokens403'; +export * from './getProjectApiTokens404'; +export * from './getProjectEnvironments401'; +export * from './getProjectEnvironments403'; +export * from './getProjectEnvironments404'; +export * from './getProjectHealthReport401'; +export * from './getProjectHealthReport403'; +export * from './getProjectHealthReport404'; +export * from './getProjectOverview401'; +export * from './getProjectOverview403'; +export * from './getProjectOverview404'; +export * from './getProjects401'; +export * from './getProjects403'; +export * from './getPublicSignupToken401'; +export * from './getPublicSignupToken403'; +export * from './getRawFeatureMetrics401'; +export * from './getRawFeatureMetrics403'; +export * from './getRawFeatureMetrics404'; +export * from './getSamlSettings400'; +export * from './getSamlSettings401'; +export * from './getSegment404'; +export * from './getValidTokens400'; +export * from './getValidTokens413'; +export * from './getValidTokens415'; export * from './googleSettingsSchema'; export * from './groupSchema'; export * from './groupUserModelSchema'; @@ -134,9 +281,14 @@ export * from './importTogglesSchema'; export * from './importTogglesValidateItemSchema'; export * from './importTogglesValidateSchema'; export * from './instanceAdminStatsSchema'; +export * from './instanceAdminStatsSchemaClientAppsItem'; +export * from './instanceAdminStatsSchemaClientAppsItemRange'; export * from './invoicesSchema'; export * from './invoicesSchemaItem'; export * from './legalValueSchema'; +export * from './listTags401'; +export * from './listTags403'; +export * from './listTags404'; export * from './loginEventSchema'; export * from './loginHistorySchema'; export * from './loginSchema'; @@ -207,6 +359,16 @@ export * from './publicSignupTokenSchema'; export * from './publicSignupTokenUpdateSchema'; export * from './publicSignupTokensSchema'; export * from './pushVariantsSchema'; +export * from './registerClientMetrics400'; +export * from './removeEnvironment400'; +export * from './removeEnvironment401'; +export * from './removeEnvironmentFromProject400'; +export * from './removeEnvironmentFromProject401'; +export * from './removeEnvironmentFromProject403'; +export * from './removeSegment401'; +export * from './removeSegment403'; +export * from './removeSegment409'; +export * from './removeTag404'; export * from './requestsPerSecondSchema'; export * from './requestsPerSecondSchemaData'; export * from './requestsPerSecondSchemaDataResultItem'; @@ -229,6 +391,14 @@ export * from './segmentStrategiesSchemaStrategiesItem'; export * from './segmentsSchema'; export * from './serviceAccountSchema'; export * from './serviceAccountsSchema'; +export * from './setGoogleSettings400'; +export * from './setGoogleSettings401'; +export * from './setOidcSettings400'; +export * from './setOidcSettings401'; +export * from './setSamlSettings400'; +export * from './setSamlSettings401'; +export * from './setSimpleSettings400'; +export * from './setSimpleSettings401'; export * from './setStrategySortOrderSchema'; export * from './setStrategySortOrderSchemaItem'; export * from './setUiConfigSchema'; @@ -245,6 +415,15 @@ export * from './tagTypesSchema'; export * from './tagWithVersionSchema'; export * from './tagsBulkAddSchema'; export * from './tagsSchema'; +export * from './toggleEnvironmentOff401'; +export * from './toggleEnvironmentOff403'; +export * from './toggleEnvironmentOff404'; +export * from './toggleEnvironmentOn401'; +export * from './toggleEnvironmentOn403'; +export * from './toggleEnvironmentOn404'; +export * from './toggleMaintenance400'; +export * from './toggleMaintenance401'; +export * from './toggleMaintenance403'; export * from './toggleMaintenanceSchema'; export * from './tokenStringListSchema'; export * from './tokenUserSchema'; @@ -252,15 +431,41 @@ export * from './uiConfigSchema'; export * from './uiConfigSchemaAuthenticationType'; export * from './uiConfigSchemaFlags'; export * from './uiConfigSchemaLinksItem'; +export * from './updateAddon400'; +export * from './updateAddon401'; +export * from './updateAddon403'; +export * from './updateAddon404'; +export * from './updateAddon413'; +export * from './updateAddon415'; export * from './updateApiTokenSchema'; export * from './updateChangeRequestEnvironmentConfigSchema'; +export * from './updateEnvironment400'; +export * from './updateEnvironment401'; export * from './updateEnvironmentSchema'; export * from './updateFeatureSchema'; export * from './updateFeatureStrategySchema'; +export * from './updateFeatureStrategySegments400'; +export * from './updateFeatureStrategySegments401'; +export * from './updateFeatureStrategySegments403'; export * from './updateFeatureStrategySegmentsSchema'; export * from './updateProjectSchema'; +export * from './updatePublicSignupToken400'; +export * from './updatePublicSignupToken401'; +export * from './updatePublicSignupToken403'; +export * from './updateRole400'; +export * from './updateSegment400'; +export * from './updateSegment401'; +export * from './updateSegment403'; +export * from './updateSegment409'; export * from './updateServiceAccountSchema'; +export * from './updateSortOrder401'; +export * from './updateSortOrder403'; +export * from './updateSortOrder404'; export * from './updateTagTypeSchema'; +export * from './updateTags400'; +export * from './updateTags401'; +export * from './updateTags403'; +export * from './updateTags404'; export * from './updateTagsSchema'; export * from './updateUserSchema'; export * from './upsertContextFieldSchema'; @@ -272,10 +477,18 @@ export * from './userWithProjectRoleSchema'; export * from './usersGroupsBaseSchema'; export * from './usersSchema'; export * from './usersSearchSchema'; +export * from './validateEnvironmentName400'; +export * from './validateEnvironmentName401'; export * from './validatePasswordSchema'; export * from './validateProjectSchema'; +export * from './validatePublicSignupToken400'; +export * from './validateRole400'; +export * from './validateSegment401'; +export * from './validateSegment409'; export * from './validateTagTypeSchema'; export * from './validatedEdgeTokensSchema'; +export * from './variantFlagSchema'; +export * from './variantFlagSchemaPayload'; export * from './variantSchema'; export * from './variantSchemaPayload'; export * from './variantsSchema'; diff --git a/frontend/src/openapi/models/instanceAdminStatsSchema.ts b/frontend/src/openapi/models/instanceAdminStatsSchema.ts index b6b5e84bcf..54dfe2e16a 100644 --- a/frontend/src/openapi/models/instanceAdminStatsSchema.ts +++ b/frontend/src/openapi/models/instanceAdminStatsSchema.ts @@ -3,22 +3,44 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { InstanceAdminStatsSchemaClientAppsItem } from './instanceAdminStatsSchemaClientAppsItem'; +/** + * Information about an instance and statistics about usage of various features of Unleash + */ export interface InstanceAdminStatsSchema { + /** A unique identifier for this instance. Generated by the database migration scripts at first run. Typically a UUID. */ instanceId: string; + /** When these statistics were produced */ timestamp?: string | null; + /** The version of Unleash OSS that is bundled in this instance */ versionOSS?: string; + /** The version of Unleash Enterprise that is bundled in this instance */ versionEnterprise?: string; + /** The number of users this instance has */ users?: number; + /** The number of feature-toggles this instance has */ featureToggles?: number; + /** The number of projects defined in this instance. */ projects?: number; + /** The number of context fields defined in this instance. */ contextFields?: number; + /** The number of roles defined in this instance */ roles?: number; + /** The number of groups defined in this instance */ groups?: number; + /** The number of environments defined in this instance */ environments?: number; + /** The number of segments defined in this instance */ segments?: number; + /** The number of strategies defined in this instance */ strategies?: number; - SAMLenabled?: number; - OIDCenabled?: number; + /** Whether or not SAML authentication is enabled for this instance */ + SAMLenabled?: boolean; + /** Whether or not OIDC authentication is enabled for this instance */ + OIDCenabled?: boolean; + /** A count of connected applications in the last week, last month and all time since last restart */ + clientApps?: InstanceAdminStatsSchemaClientAppsItem[]; + /** A SHA-256 checksum of the instance statistics to be used to verify that the data in this object has not been tampered with */ sum?: string; } diff --git a/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItem.ts b/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItem.ts new file mode 100644 index 0000000000..7e0840e4de --- /dev/null +++ b/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItem.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { InstanceAdminStatsSchemaClientAppsItemRange } from './instanceAdminStatsSchemaClientAppsItemRange'; + +/** + * An entry describing how many client applications has been observed over the defined range + */ +export type InstanceAdminStatsSchemaClientAppsItem = { + /** A description of a time range */ + range?: InstanceAdminStatsSchemaClientAppsItemRange; + /** The number of client applications that have been observed in this period */ + count?: number; +}; diff --git a/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts b/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts new file mode 100644 index 0000000000..6e3065ca32 --- /dev/null +++ b/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A description of a time range + */ +export type InstanceAdminStatsSchemaClientAppsItemRange = + typeof InstanceAdminStatsSchemaClientAppsItemRange[keyof typeof InstanceAdminStatsSchemaClientAppsItemRange]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const InstanceAdminStatsSchemaClientAppsItemRange = { + allTime: 'allTime', + '30d': '30d', + '7d': '7d', +} as const; diff --git a/frontend/src/openapi/models/listTags401.ts b/frontend/src/openapi/models/listTags401.ts new file mode 100644 index 0000000000..3f13acaef9 --- /dev/null +++ b/frontend/src/openapi/models/listTags401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ListTags401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/listTags403.ts b/frontend/src/openapi/models/listTags403.ts new file mode 100644 index 0000000000..592f25b091 --- /dev/null +++ b/frontend/src/openapi/models/listTags403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ListTags403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/listTags404.ts b/frontend/src/openapi/models/listTags404.ts new file mode 100644 index 0000000000..f45123569f --- /dev/null +++ b/frontend/src/openapi/models/listTags404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ListTags404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/passwordSchema.ts b/frontend/src/openapi/models/passwordSchema.ts index b1787f9f8a..2cd30985b4 100644 --- a/frontend/src/openapi/models/passwordSchema.ts +++ b/frontend/src/openapi/models/passwordSchema.ts @@ -6,5 +6,6 @@ export interface PasswordSchema { password: string; + oldPassword?: string; confirmPassword?: string; } diff --git a/frontend/src/openapi/models/patSchema.ts b/frontend/src/openapi/models/patSchema.ts index 33d4d4c169..e83ebb18bb 100644 --- a/frontend/src/openapi/models/patSchema.ts +++ b/frontend/src/openapi/models/patSchema.ts @@ -4,10 +4,18 @@ * See `gen:api` script in package.json */ +/** + * An overview of a [Personal Access Token](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens). + */ export interface PatSchema { + /** The unique identification number for this Personal Access Token. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ id?: number; + /** The token used for authentication. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ secret?: string; - expiresAt?: string | null; - createdAt?: string | null; + /** The token's expiration date. */ + expiresAt?: string; + /** When the token was created. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ + createdAt?: string; + /** When the token was last seen/used to authenticate with. `null` if it has not been used yet. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ seenAt?: string | null; } diff --git a/frontend/src/openapi/models/patsSchema.ts b/frontend/src/openapi/models/patsSchema.ts index bf24006790..54e7588a03 100644 --- a/frontend/src/openapi/models/patsSchema.ts +++ b/frontend/src/openapi/models/patsSchema.ts @@ -5,6 +5,10 @@ */ import type { PatSchema } from './patSchema'; +/** + * Contains a collection of [Personal Access Tokens](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens). + */ export interface PatsSchema { + /** A collection of Personal Access Tokens */ pats?: PatSchema[]; } diff --git a/frontend/src/openapi/models/playgroundFeatureSchema.ts b/frontend/src/openapi/models/playgroundFeatureSchema.ts index 4f6da01cc9..86cb3b084b 100644 --- a/frontend/src/openapi/models/playgroundFeatureSchema.ts +++ b/frontend/src/openapi/models/playgroundFeatureSchema.ts @@ -15,6 +15,7 @@ export interface PlaygroundFeatureSchema { name: string; /** The ID of the project that contains this feature. */ projectId: string; + /** The feature's applicable strategies and cumulative results of the strategies */ strategies: PlaygroundFeatureSchemaStrategies; /** Whether the feature is active and would be evaluated in the provided environment in a normal SDK context. */ isEnabledInCurrentEnvironment: boolean; @@ -27,5 +28,6 @@ export interface PlaygroundFeatureSchema { variants, you would get the _disabled variant_. Otherwise, you'll get one of thefeature's defined variants. */ variant: PlaygroundFeatureSchemaVariant; + /** The feature variants. */ variants: VariantSchema[]; } diff --git a/frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts b/frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts index 4b4502d835..15e03ec66c 100644 --- a/frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts +++ b/frontend/src/openapi/models/playgroundFeatureSchemaStrategies.ts @@ -6,6 +6,9 @@ import type { PlaygroundFeatureSchemaStrategiesResult } from './playgroundFeatureSchemaStrategiesResult'; import type { PlaygroundStrategySchema } from './playgroundStrategySchema'; +/** + * The feature's applicable strategies and cumulative results of the strategies + */ export type PlaygroundFeatureSchemaStrategies = { /** The cumulative results of all the feature's strategies. Can be `true`, `false`, or `unknown`. diff --git a/frontend/src/openapi/models/playgroundRequestSchema.ts b/frontend/src/openapi/models/playgroundRequestSchema.ts index 0027a85f12..2aaa8ff411 100644 --- a/frontend/src/openapi/models/playgroundRequestSchema.ts +++ b/frontend/src/openapi/models/playgroundRequestSchema.ts @@ -12,7 +12,7 @@ import type { SdkContextSchema } from './sdkContextSchema'; export interface PlaygroundRequestSchema { /** The environment to evaluate toggles in. */ environment: string; + /** A list of projects to check for toggles in. */ projects?: PlaygroundRequestSchemaProjects; - /** The context to use when evaluating toggles */ context: SdkContextSchema; } diff --git a/frontend/src/openapi/models/playgroundRequestSchemaProjects.ts b/frontend/src/openapi/models/playgroundRequestSchemaProjects.ts index f341877401..58158f51c3 100644 --- a/frontend/src/openapi/models/playgroundRequestSchemaProjects.ts +++ b/frontend/src/openapi/models/playgroundRequestSchemaProjects.ts @@ -4,4 +4,7 @@ * See `gen:api` script in package.json */ +/** + * A list of projects to check for toggles in. + */ export type PlaygroundRequestSchemaProjects = string[] | '*'; diff --git a/frontend/src/openapi/models/projectEnvironmentSchema.ts b/frontend/src/openapi/models/projectEnvironmentSchema.ts index 6d9c56b7fc..6ee609b750 100644 --- a/frontend/src/openapi/models/projectEnvironmentSchema.ts +++ b/frontend/src/openapi/models/projectEnvironmentSchema.ts @@ -3,8 +3,16 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema'; +/** + * Add an environment to a project, optionally also sets if change requests are enabled for this environment on the project + */ export interface ProjectEnvironmentSchema { + /** The environment to add to the project */ environment: string; + /** Whether change requests should be enabled or for this environment on the project or not */ changeRequestsEnabled?: boolean; + /** A default strategy to create for this environment on the project. */ + defaultStrategy?: CreateFeatureStrategySchema; } diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts index 09f8311c12..511d22a3a4 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts @@ -10,4 +10,6 @@ export type ProxyFeatureSchemaVariantPayloadType = // eslint-disable-next-line @typescript-eslint/no-redeclare export const ProxyFeatureSchemaVariantPayloadType = { string: 'string', + json: 'json', + csv: 'csv', } as const; diff --git a/frontend/src/openapi/models/publicSignupTokenCreateSchema.ts b/frontend/src/openapi/models/publicSignupTokenCreateSchema.ts index c81bb07e74..d88032e0d9 100644 --- a/frontend/src/openapi/models/publicSignupTokenCreateSchema.ts +++ b/frontend/src/openapi/models/publicSignupTokenCreateSchema.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * Used for creating a [public invite link](https://docs.getunleash.io/reference/public-signup#public-sign-up-tokens) + */ export interface PublicSignupTokenCreateSchema { /** The token's name. */ name: string; diff --git a/frontend/src/openapi/models/publicSignupTokenSchema.ts b/frontend/src/openapi/models/publicSignupTokenSchema.ts index 1039e799a5..ae80468ba8 100644 --- a/frontend/src/openapi/models/publicSignupTokenSchema.ts +++ b/frontend/src/openapi/models/publicSignupTokenSchema.ts @@ -6,14 +6,23 @@ import type { UserSchema } from './userSchema'; import type { RoleSchema } from './roleSchema'; +/** + * Used for transporting a [public invite link](https://docs.getunleash.io/reference/public-signup#public-sign-up-tokens) + */ export interface PublicSignupTokenSchema { + /** The actual value of the token. This is the part that is used by Unleash to create an invite link */ secret: string; /** The public signup link for the token. Users who follow this link will be taken to a signup page where they can create an Unleash user. */ url: string; + /** The token's name. Only for displaying in the UI */ name: string; + /** Whether the token is active. This property will always be `false` for a token that has expired. */ enabled: boolean; + /** The time when the token will expire. */ expiresAt: string; + /** When the token was created. */ createdAt: string; + /** The creator's email or username */ createdBy: string | null; /** Array of users that have signed up using the token. */ users?: UserSchema[] | null; diff --git a/frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts b/frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts index 91d9138c41..34356ee01f 100644 --- a/frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts +++ b/frontend/src/openapi/models/publicSignupTokenUpdateSchema.ts @@ -4,8 +4,12 @@ * See `gen:api` script in package.json */ +/** + * Used by Unleash for updating a token's expiration date or, when deleting the invite link, it's status + */ export interface PublicSignupTokenUpdateSchema { /** The token's expiration date. */ expiresAt?: string; + /** Whether the token is active or not. */ enabled?: boolean; } diff --git a/frontend/src/openapi/models/publicSignupTokensSchema.ts b/frontend/src/openapi/models/publicSignupTokensSchema.ts index a06ef52968..0747e05a6d 100644 --- a/frontend/src/openapi/models/publicSignupTokensSchema.ts +++ b/frontend/src/openapi/models/publicSignupTokensSchema.ts @@ -5,6 +5,10 @@ */ import type { PublicSignupTokenSchema } from './publicSignupTokenSchema'; +/** + * A wrapper object containing all the public signup tokens + */ export interface PublicSignupTokensSchema { + /** An array of all the public signup tokens */ tokens: PublicSignupTokenSchema[]; } diff --git a/frontend/src/openapi/models/registerClientMetrics400.ts b/frontend/src/openapi/models/registerClientMetrics400.ts new file mode 100644 index 0000000000..6dcae0fb45 --- /dev/null +++ b/frontend/src/openapi/models/registerClientMetrics400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RegisterClientMetrics400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeEnvironment400.ts b/frontend/src/openapi/models/removeEnvironment400.ts new file mode 100644 index 0000000000..7ff29894d1 --- /dev/null +++ b/frontend/src/openapi/models/removeEnvironment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveEnvironment400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeEnvironment401.ts b/frontend/src/openapi/models/removeEnvironment401.ts new file mode 100644 index 0000000000..53ff2ef80f --- /dev/null +++ b/frontend/src/openapi/models/removeEnvironment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveEnvironment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeEnvironmentFromProject400.ts b/frontend/src/openapi/models/removeEnvironmentFromProject400.ts new file mode 100644 index 0000000000..2a20ec9af2 --- /dev/null +++ b/frontend/src/openapi/models/removeEnvironmentFromProject400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveEnvironmentFromProject400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeEnvironmentFromProject401.ts b/frontend/src/openapi/models/removeEnvironmentFromProject401.ts new file mode 100644 index 0000000000..699822e30b --- /dev/null +++ b/frontend/src/openapi/models/removeEnvironmentFromProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveEnvironmentFromProject401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeEnvironmentFromProject403.ts b/frontend/src/openapi/models/removeEnvironmentFromProject403.ts new file mode 100644 index 0000000000..729998b21a --- /dev/null +++ b/frontend/src/openapi/models/removeEnvironmentFromProject403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveEnvironmentFromProject403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeSegment401.ts b/frontend/src/openapi/models/removeSegment401.ts new file mode 100644 index 0000000000..87f8365e5a --- /dev/null +++ b/frontend/src/openapi/models/removeSegment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveSegment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeSegment403.ts b/frontend/src/openapi/models/removeSegment403.ts new file mode 100644 index 0000000000..fc2192fff3 --- /dev/null +++ b/frontend/src/openapi/models/removeSegment403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveSegment403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeSegment409.ts b/frontend/src/openapi/models/removeSegment409.ts new file mode 100644 index 0000000000..b0faf098c2 --- /dev/null +++ b/frontend/src/openapi/models/removeSegment409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveSegment409 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/removeTag404.ts b/frontend/src/openapi/models/removeTag404.ts new file mode 100644 index 0000000000..c65cc1c93f --- /dev/null +++ b/frontend/src/openapi/models/removeTag404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveTag404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/sdkContextSchema.ts b/frontend/src/openapi/models/sdkContextSchema.ts index e184dd74bd..242c5de612 100644 --- a/frontend/src/openapi/models/sdkContextSchema.ts +++ b/frontend/src/openapi/models/sdkContextSchema.ts @@ -9,13 +9,21 @@ import type { SdkContextSchemaProperties } from './sdkContextSchemaProperties'; * The Unleash context as modeled in client SDKs */ export interface SdkContextSchema { + /** The name of the application. */ appName: string; + /** A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user. */ currentTime?: string; - /** @deprecated */ + /** + * The environment the app is running in. + * @deprecated + */ environment?: string; properties?: SdkContextSchemaProperties; + /** The app's IP address */ remoteAddress?: string; + /** An identifier for the current session */ sessionId?: string; + /** An identifier for the current user */ userId?: string; [key: string]: any; } diff --git a/frontend/src/openapi/models/setGoogleSettings400.ts b/frontend/src/openapi/models/setGoogleSettings400.ts new file mode 100644 index 0000000000..5057f02714 --- /dev/null +++ b/frontend/src/openapi/models/setGoogleSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetGoogleSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/setGoogleSettings401.ts b/frontend/src/openapi/models/setGoogleSettings401.ts new file mode 100644 index 0000000000..3afa9974be --- /dev/null +++ b/frontend/src/openapi/models/setGoogleSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetGoogleSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/setOidcSettings400.ts b/frontend/src/openapi/models/setOidcSettings400.ts new file mode 100644 index 0000000000..b94ee58c51 --- /dev/null +++ b/frontend/src/openapi/models/setOidcSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetOidcSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/setOidcSettings401.ts b/frontend/src/openapi/models/setOidcSettings401.ts new file mode 100644 index 0000000000..3d25907b7a --- /dev/null +++ b/frontend/src/openapi/models/setOidcSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetOidcSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/setSamlSettings400.ts b/frontend/src/openapi/models/setSamlSettings400.ts new file mode 100644 index 0000000000..6ef973ce73 --- /dev/null +++ b/frontend/src/openapi/models/setSamlSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSamlSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/setSamlSettings401.ts b/frontend/src/openapi/models/setSamlSettings401.ts new file mode 100644 index 0000000000..4dd4cd2b19 --- /dev/null +++ b/frontend/src/openapi/models/setSamlSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSamlSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/setSimpleSettings400.ts b/frontend/src/openapi/models/setSimpleSettings400.ts new file mode 100644 index 0000000000..6cbfccba0f --- /dev/null +++ b/frontend/src/openapi/models/setSimpleSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSimpleSettings400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/setSimpleSettings401.ts b/frontend/src/openapi/models/setSimpleSettings401.ts new file mode 100644 index 0000000000..8cae3729f3 --- /dev/null +++ b/frontend/src/openapi/models/setSimpleSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSimpleSettings401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleEnvironmentOff401.ts b/frontend/src/openapi/models/toggleEnvironmentOff401.ts new file mode 100644 index 0000000000..4abe43c299 --- /dev/null +++ b/frontend/src/openapi/models/toggleEnvironmentOff401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleEnvironmentOff401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleEnvironmentOff403.ts b/frontend/src/openapi/models/toggleEnvironmentOff403.ts new file mode 100644 index 0000000000..2a8b0f1d8b --- /dev/null +++ b/frontend/src/openapi/models/toggleEnvironmentOff403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleEnvironmentOff403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleEnvironmentOff404.ts b/frontend/src/openapi/models/toggleEnvironmentOff404.ts new file mode 100644 index 0000000000..d178c61e2f --- /dev/null +++ b/frontend/src/openapi/models/toggleEnvironmentOff404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleEnvironmentOff404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleEnvironmentOn401.ts b/frontend/src/openapi/models/toggleEnvironmentOn401.ts new file mode 100644 index 0000000000..0739240cae --- /dev/null +++ b/frontend/src/openapi/models/toggleEnvironmentOn401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleEnvironmentOn401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleEnvironmentOn403.ts b/frontend/src/openapi/models/toggleEnvironmentOn403.ts new file mode 100644 index 0000000000..4133d9ee2a --- /dev/null +++ b/frontend/src/openapi/models/toggleEnvironmentOn403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleEnvironmentOn403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleEnvironmentOn404.ts b/frontend/src/openapi/models/toggleEnvironmentOn404.ts new file mode 100644 index 0000000000..8a2aa4de4f --- /dev/null +++ b/frontend/src/openapi/models/toggleEnvironmentOn404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleEnvironmentOn404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleMaintenance400.ts b/frontend/src/openapi/models/toggleMaintenance400.ts new file mode 100644 index 0000000000..220555741a --- /dev/null +++ b/frontend/src/openapi/models/toggleMaintenance400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleMaintenance400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleMaintenance401.ts b/frontend/src/openapi/models/toggleMaintenance401.ts new file mode 100644 index 0000000000..f374faed57 --- /dev/null +++ b/frontend/src/openapi/models/toggleMaintenance401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleMaintenance401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/toggleMaintenance403.ts b/frontend/src/openapi/models/toggleMaintenance403.ts new file mode 100644 index 0000000000..974aeed878 --- /dev/null +++ b/frontend/src/openapi/models/toggleMaintenance403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleMaintenance403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/uiConfigSchemaFlags.ts b/frontend/src/openapi/models/uiConfigSchemaFlags.ts index 576ff53ba0..0ca46e1c0a 100644 --- a/frontend/src/openapi/models/uiConfigSchemaFlags.ts +++ b/frontend/src/openapi/models/uiConfigSchemaFlags.ts @@ -3,5 +3,8 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { VariantFlagSchema } from './variantFlagSchema'; -export type UiConfigSchemaFlags = { [key: string]: boolean }; +export type UiConfigSchemaFlags = { + [key: string]: boolean | VariantFlagSchema; +}; diff --git a/frontend/src/openapi/models/updateAddon400.ts b/frontend/src/openapi/models/updateAddon400.ts new file mode 100644 index 0000000000..0206541ce1 --- /dev/null +++ b/frontend/src/openapi/models/updateAddon400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateAddon400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateAddon401.ts b/frontend/src/openapi/models/updateAddon401.ts new file mode 100644 index 0000000000..743db13ccc --- /dev/null +++ b/frontend/src/openapi/models/updateAddon401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateAddon401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateAddon403.ts b/frontend/src/openapi/models/updateAddon403.ts new file mode 100644 index 0000000000..b084991190 --- /dev/null +++ b/frontend/src/openapi/models/updateAddon403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateAddon403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateAddon404.ts b/frontend/src/openapi/models/updateAddon404.ts new file mode 100644 index 0000000000..f13fcc03f3 --- /dev/null +++ b/frontend/src/openapi/models/updateAddon404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateAddon404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateAddon413.ts b/frontend/src/openapi/models/updateAddon413.ts new file mode 100644 index 0000000000..a1cfe2964d --- /dev/null +++ b/frontend/src/openapi/models/updateAddon413.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateAddon413 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateAddon415.ts b/frontend/src/openapi/models/updateAddon415.ts new file mode 100644 index 0000000000..c63e98555f --- /dev/null +++ b/frontend/src/openapi/models/updateAddon415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateAddon415 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateEnvironment400.ts b/frontend/src/openapi/models/updateEnvironment400.ts new file mode 100644 index 0000000000..3892454dbc --- /dev/null +++ b/frontend/src/openapi/models/updateEnvironment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateEnvironment400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateEnvironment401.ts b/frontend/src/openapi/models/updateEnvironment401.ts new file mode 100644 index 0000000000..d01e46e14a --- /dev/null +++ b/frontend/src/openapi/models/updateEnvironment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateEnvironment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateFeatureStrategySegments400.ts b/frontend/src/openapi/models/updateFeatureStrategySegments400.ts new file mode 100644 index 0000000000..12ceac1b9c --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategySegments400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategySegments400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateFeatureStrategySegments401.ts b/frontend/src/openapi/models/updateFeatureStrategySegments401.ts new file mode 100644 index 0000000000..0ed3ab55fe --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategySegments401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategySegments401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateFeatureStrategySegments403.ts b/frontend/src/openapi/models/updateFeatureStrategySegments403.ts new file mode 100644 index 0000000000..08a06145bc --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategySegments403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategySegments403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updatePublicSignupToken400.ts b/frontend/src/openapi/models/updatePublicSignupToken400.ts new file mode 100644 index 0000000000..e86dc90466 --- /dev/null +++ b/frontend/src/openapi/models/updatePublicSignupToken400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdatePublicSignupToken400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updatePublicSignupToken401.ts b/frontend/src/openapi/models/updatePublicSignupToken401.ts new file mode 100644 index 0000000000..0698eaf159 --- /dev/null +++ b/frontend/src/openapi/models/updatePublicSignupToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdatePublicSignupToken401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updatePublicSignupToken403.ts b/frontend/src/openapi/models/updatePublicSignupToken403.ts new file mode 100644 index 0000000000..a24badeac8 --- /dev/null +++ b/frontend/src/openapi/models/updatePublicSignupToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdatePublicSignupToken403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateRole400.ts b/frontend/src/openapi/models/updateRole400.ts new file mode 100644 index 0000000000..c7b09e7c96 --- /dev/null +++ b/frontend/src/openapi/models/updateRole400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateRole400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateSegment400.ts b/frontend/src/openapi/models/updateSegment400.ts new file mode 100644 index 0000000000..0c047832ea --- /dev/null +++ b/frontend/src/openapi/models/updateSegment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSegment400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateSegment401.ts b/frontend/src/openapi/models/updateSegment401.ts new file mode 100644 index 0000000000..fce7b629e3 --- /dev/null +++ b/frontend/src/openapi/models/updateSegment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSegment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateSegment403.ts b/frontend/src/openapi/models/updateSegment403.ts new file mode 100644 index 0000000000..8ce5661c65 --- /dev/null +++ b/frontend/src/openapi/models/updateSegment403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSegment403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateSegment409.ts b/frontend/src/openapi/models/updateSegment409.ts new file mode 100644 index 0000000000..6fa3398480 --- /dev/null +++ b/frontend/src/openapi/models/updateSegment409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSegment409 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateSortOrder401.ts b/frontend/src/openapi/models/updateSortOrder401.ts new file mode 100644 index 0000000000..339f400ea2 --- /dev/null +++ b/frontend/src/openapi/models/updateSortOrder401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSortOrder401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateSortOrder403.ts b/frontend/src/openapi/models/updateSortOrder403.ts new file mode 100644 index 0000000000..a827289fd0 --- /dev/null +++ b/frontend/src/openapi/models/updateSortOrder403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSortOrder403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateSortOrder404.ts b/frontend/src/openapi/models/updateSortOrder404.ts new file mode 100644 index 0000000000..7c3b72ccd2 --- /dev/null +++ b/frontend/src/openapi/models/updateSortOrder404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSortOrder404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateTags400.ts b/frontend/src/openapi/models/updateTags400.ts new file mode 100644 index 0000000000..223e1ac788 --- /dev/null +++ b/frontend/src/openapi/models/updateTags400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTags400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateTags401.ts b/frontend/src/openapi/models/updateTags401.ts new file mode 100644 index 0000000000..20c42a7778 --- /dev/null +++ b/frontend/src/openapi/models/updateTags401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTags401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateTags403.ts b/frontend/src/openapi/models/updateTags403.ts new file mode 100644 index 0000000000..98862bb38c --- /dev/null +++ b/frontend/src/openapi/models/updateTags403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTags403 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/updateTags404.ts b/frontend/src/openapi/models/updateTags404.ts new file mode 100644 index 0000000000..701de19e94 --- /dev/null +++ b/frontend/src/openapi/models/updateTags404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTags404 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/validateEnvironmentName400.ts b/frontend/src/openapi/models/validateEnvironmentName400.ts new file mode 100644 index 0000000000..91682215e0 --- /dev/null +++ b/frontend/src/openapi/models/validateEnvironmentName400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateEnvironmentName400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/validateEnvironmentName401.ts b/frontend/src/openapi/models/validateEnvironmentName401.ts new file mode 100644 index 0000000000..c4d8893b4f --- /dev/null +++ b/frontend/src/openapi/models/validateEnvironmentName401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateEnvironmentName401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/validatePublicSignupToken400.ts b/frontend/src/openapi/models/validatePublicSignupToken400.ts new file mode 100644 index 0000000000..e0ed893499 --- /dev/null +++ b/frontend/src/openapi/models/validatePublicSignupToken400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidatePublicSignupToken400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/validateRole400.ts b/frontend/src/openapi/models/validateRole400.ts new file mode 100644 index 0000000000..9ff6f52fac --- /dev/null +++ b/frontend/src/openapi/models/validateRole400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateRole400 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/validateSegment401.ts b/frontend/src/openapi/models/validateSegment401.ts new file mode 100644 index 0000000000..853ebb1ec6 --- /dev/null +++ b/frontend/src/openapi/models/validateSegment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateSegment401 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/validateSegment409.ts b/frontend/src/openapi/models/validateSegment409.ts new file mode 100644 index 0000000000..eece090277 --- /dev/null +++ b/frontend/src/openapi/models/validateSegment409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateSegment409 = { + /** The ID of the error instance */ + id?: string; + /** The name of the error kind */ + name?: string; + /** A description of what went wrong. */ + message?: string; +}; diff --git a/frontend/src/openapi/models/variantFlagSchema.ts b/frontend/src/openapi/models/variantFlagSchema.ts new file mode 100644 index 0000000000..b4a68f29ad --- /dev/null +++ b/frontend/src/openapi/models/variantFlagSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { VariantFlagSchemaPayload } from './variantFlagSchemaPayload'; + +export interface VariantFlagSchema { + name?: string; + enabled?: boolean; + payload?: VariantFlagSchemaPayload; +} diff --git a/frontend/src/openapi/models/variantFlagSchemaPayload.ts b/frontend/src/openapi/models/variantFlagSchemaPayload.ts new file mode 100644 index 0000000000..6aa33b009a --- /dev/null +++ b/frontend/src/openapi/models/variantFlagSchemaPayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type VariantFlagSchemaPayload = { + type?: string; + value?: string; +};