From 77a365e66783ee6a176bc7027a7f1676121723e9 Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 20 Jul 2023 12:59:55 +0200 Subject: [PATCH] chore: Update OpenAPI definitions generated for frontend (#4283) ## About the changes `frontend> yarn gen:api` after recent updates --- frontend/package.json | 2 +- ...History401.ts => addFavoriteFeature401.ts} | 2 +- .../openapi/models/addFavoriteFeature404.ts | 14 + .../openapi/models/addFavoriteProject401.ts | 14 + .../openapi/models/addFavoriteProject404.ts | 14 + .../openapi/models/addFeatureStrategy401.ts | 14 + .../openapi/models/addFeatureStrategy403.ts | 14 + .../openapi/models/addFeatureStrategy404.ts | 14 + ...oginEvent401.ts => addTagToFeatures401.ts} | 2 +- ...oginEvent404.ts => addTagToFeatures403.ts} | 2 +- ...oginEvent400.ts => addTagToFeatures404.ts} | 2 +- .../src/openapi/models/addTagToFeatures415.ts | 14 + .../src/openapi/models/addonTypeSchema.ts | 8 + .../models/addonTypeSchemaAlertsItem.ts | 13 + .../models/addonTypeSchemaAlertsItemType.ts | 19 + .../models/addonTypeSchemaInstallation.ts | 17 + .../openapi/models/adminPermissionSchema.ts | 8 + .../openapi/models/adminPermissionsSchema.ts | 8 +- .../adminPermissionsSchemaPermissions.ts | 6 + ...ssionsSchemaPermissionsEnvironmentsItem.ts | 2 + .../models/adminPermissionsSchemaVersion.ts | 17 + .../src/openapi/models/adminSegmentSchema.ts | 12 +- .../openapi/models/adminStrategiesSchema.ts | 14 + .../adminStrategiesSchemaStrategiesItem.ts | 18 + .../src/openapi/models/apiTokensSchema.ts | 4 +- .../src/openapi/models/archiveFeature403.ts | 14 + .../src/openapi/models/archiveFeatures400.ts | 14 + .../src/openapi/models/archiveFeatures401.ts | 14 + .../src/openapi/models/archiveFeatures403.ts | 14 + .../src/openapi/models/archiveFeatures415.ts | 14 + .../src/openapi/models/batchFeaturesSchema.ts | 4 + .../src/openapi/models/batchStaleSchema.ts | 5 + .../bulkToggleFeaturesEnvironmentOff400.ts | 14 + .../bulkToggleFeaturesEnvironmentOff401.ts | 14 + .../bulkToggleFeaturesEnvironmentOff403.ts | 14 + .../bulkToggleFeaturesEnvironmentOff404.ts | 14 + .../bulkToggleFeaturesEnvironmentOff413.ts | 14 + .../bulkToggleFeaturesEnvironmentOff415.ts | 14 + .../bulkToggleFeaturesEnvironmentOn400.ts | 14 + .../bulkToggleFeaturesEnvironmentOn401.ts | 14 + .../bulkToggleFeaturesEnvironmentOn403.ts | 14 + .../bulkToggleFeaturesEnvironmentOn404.ts | 14 + .../bulkToggleFeaturesEnvironmentOn413.ts | 14 + .../bulkToggleFeaturesEnvironmentOn415.ts | 14 + .../src/openapi/models/changePassword401.ts | 14 + .../src/openapi/models/changePassword403.ts | 14 + .../src/openapi/models/changePassword415.ts | 14 + .../openapi/models/changePasswordSchema.ts | 5 + .../src/openapi/models/changeProject403.ts | 14 + .../src/openapi/models/changeProject404.ts | 14 + .../src/openapi/models/changeProject415.ts | 14 + .../src/openapi/models/changeProjectSchema.ts | 4 + ...a.ts => changeRequestUpdateTitleSchema.ts} | 2 +- .../openapi/models/changeUserPassword400.ts | 14 + .../openapi/models/changeUserPassword401.ts | 14 + .../openapi/models/changeUserPassword403.ts | 14 + .../openapi/models/clientFeaturesSchema.ts | 4 +- .../src/openapi/models/clientSegmentSchema.ts | 18 + .../src/openapi/models/cloneFeature401.ts | 14 + .../src/openapi/models/cloneFeature403.ts | 14 + .../src/openapi/models/cloneFeature404.ts | 14 + .../src/openapi/models/cloneFeature415.ts | 14 + .../src/openapi/models/cloneFeatureSchema.ts | 5 + .../src/openapi/models/contextFieldSchema.ts | 9 + .../models/contextFieldStrategiesSchema.ts | 2 +- .../src/openapi/models/contextFieldsSchema.ts | 3 + .../src/openapi/models/createApiToken401.ts | 14 + .../src/openapi/models/createApiToken403.ts | 14 + .../src/openapi/models/createApiToken415.ts | 14 + .../openapi/models/createApiTokenSchema.ts | 39 +- .../models/createApiTokenSchemaAnyOf.ts | 9 - .../models/createApiTokenSchemaOneOf.ts | 10 + .../models/createApiTokenSchemaOneOfAllOf.ts | 10 + ...s => createApiTokenSchemaOneOfAllOfTwo.ts} | 3 +- .../models/createApiTokenSchemaOneOfFour.ts | 10 + .../createApiTokenSchemaOneOfFourAllOf.ts | 10 + .../createApiTokenSchemaOneOfFourAllOfTwo.ts | 13 + .../createApiTokenSchemaOneOfOnezero.ts | 11 + .../createApiTokenSchemaOneOfOnezeroAllOf.ts | 16 + ...reateApiTokenSchemaOneOfOnezeroAllOfTwo.ts | 13 + .../models/createApiTokenSchemaOneOfSeven.ts | 11 + .../createApiTokenSchemaOneOfSevenAllOf.ts | 16 + .../createApiTokenSchemaOneOfSevenAllOfTwo.ts | 10 + .../src/openapi/models/createFeature401.ts | 14 + .../src/openapi/models/createFeature403.ts | 14 + .../src/openapi/models/createFeature404.ts | 14 + .../src/openapi/models/createFeature415.ts | 14 + .../src/openapi/models/createFeatureSchema.ts | 6 +- .../models/createFeatureStrategySchema.ts | 10 +- .../src/openapi/models/createFeedback400.ts | 14 + .../src/openapi/models/createFeedback401.ts | 14 + .../src/openapi/models/createFeedback415.ts | 14 + .../src/openapi/models/createSegment415.ts | 14 + .../openapi/models/createServiceAccount400.ts | 14 + .../openapi/models/createServiceAccount401.ts | 14 + .../openapi/models/createServiceAccount403.ts | 14 + .../openapi/models/createServiceAccount409.ts | 14 + .../openapi/models/createServiceAccount415.ts | 14 + .../models/createServiceAccountSchema.ts | 6 + .../models/createServiceAccountToken401.ts | 14 + .../models/createServiceAccountToken403.ts | 14 + .../models/createServiceAccountToken404.ts | 14 + .../models/createServiceAccountToken409.ts | 14 + .../models/createServiceAccountToken415.ts | 14 + .../src/openapi/models/createStrategy401.ts | 14 + .../src/openapi/models/createStrategy403.ts | 14 + .../src/openapi/models/createStrategy409.ts | 14 + .../src/openapi/models/createStrategy415.ts | 14 + .../openapi/models/createStrategySchema.ts | 18 + .../createStrategySchemaParametersItem.ts | 17 + .../createStrategySchemaParametersItemType.ts | 20 + .../models/createStrategyVariantSchema.ts | 24 ++ .../createStrategyVariantSchemaPayload.ts | 15 + .../createStrategyVariantSchemaWeightType.ts | 17 + frontend/src/openapi/models/createTag400.ts | 14 + frontend/src/openapi/models/createTag401.ts | 14 + frontend/src/openapi/models/createTag403.ts | 14 + frontend/src/openapi/models/createTag409.ts | 14 + frontend/src/openapi/models/createTag415.ts | 14 + .../src/openapi/models/createTagType400.ts | 14 + .../src/openapi/models/createTagType401.ts | 14 + .../src/openapi/models/createTagType403.ts | 14 + .../src/openapi/models/createTagType409.ts | 14 + .../src/openapi/models/createTagType415.ts | 14 + frontend/src/openapi/models/createUser400.ts | 14 + frontend/src/openapi/models/createUser401.ts | 14 + frontend/src/openapi/models/createUser403.ts | 14 + .../models/createUserResponseSchema.ts | 43 ++ .../createUserResponseSchemaRootRole.ts | 16 + .../src/openapi/models/createUserSchema.ts | 12 +- .../models/createUserSchemaRootRole.ts | 16 + .../src/openapi/models/deleteApiToken401.ts | 14 + .../src/openapi/models/deleteApiToken403.ts | 14 + .../src/openapi/models/deleteFeature401.ts | 14 + .../src/openapi/models/deleteFeature403.ts | 14 + .../models/deleteFeatureStrategy401.ts | 14 + .../models/deleteFeatureStrategy403.ts | 14 + .../models/deleteFeatureStrategy404.ts | 14 + .../src/openapi/models/deleteFeatures400.ts | 14 + .../src/openapi/models/deleteFeatures401.ts | 14 + .../src/openapi/models/deleteFeatures403.ts | 14 + .../openapi/models/deleteLoginHistory404.ts | 14 - .../openapi/models/deleteServiceAccount401.ts | 14 + .../openapi/models/deleteServiceAccount403.ts | 14 + .../openapi/models/deleteServiceAccount404.ts | 14 + .../models/deleteServiceAccountToken401.ts | 14 + .../models/deleteServiceAccountToken403.ts | 14 + .../models/deleteServiceAccountToken404.ts | 14 + .../src/openapi/models/deleteTagType401.ts | 14 + .../src/openapi/models/deleteTagType403.ts | 14 + frontend/src/openapi/models/deleteUser401.ts | 14 + frontend/src/openapi/models/deleteUser403.ts | 14 + frontend/src/openapi/models/deleteUser404.ts | 14 + .../openapi/models/deprecateStrategy401.ts | 14 + .../openapi/models/deprecateStrategy403.ts | 14 + .../openapi/models/deprecateStrategy404.ts | 14 + frontend/src/openapi/models/emailSchema.ts | 4 + .../models/environmentsProjectSchema.ts | 2 + .../src/openapi/models/environmentsSchema.ts | 5 + frontend/src/openapi/models/eventSchema.ts | 16 +- .../src/openapi/models/eventSchemaData.ts | 5 +- .../src/openapi/models/eventSchemaPreData.ts | 5 +- .../src/openapi/models/eventSchemaType.ts | 118 ++++++ frontend/src/openapi/models/eventsSchema.ts | 9 +- .../src/openapi/models/eventsSchemaVersion.ts | 16 + .../src/openapi/models/exportFeatures404.ts | 14 + .../src/openapi/models/exportQuerySchema.ts | 7 + .../src/openapi/models/exportResultSchema.ts | 10 + .../models/featureEnvironmentSchema.ts | 3 + .../src/openapi/models/featureEventsSchema.ts | 10 +- .../models/featureEventsSchemaVersion.ts | 16 + frontend/src/openapi/models/featureSchema.ts | 7 + .../openapi/models/featureStrategySchema.ts | 5 +- .../src/openapi/models/featureTypeSchema.ts | 7 + .../src/openapi/models/featureTypesSchema.ts | 8 +- .../models/featureTypesSchemaVersion.ts | 16 + .../openapi/models/featureVariantsSchema.ts | 5 + frontend/src/openapi/models/featuresSchema.ts | 6 + .../openapi/models/feedbackCreateSchema.ts | 15 + .../openapi/models/feedbackResponseSchema.ts | 19 + frontend/src/openapi/models/feedbackSchema.ts | 12 - .../openapi/models/feedbackUpdateSchema.ts | 17 + .../src/openapi/models/getAdminCount401.ts | 14 + .../src/openapi/models/getAdminCount403.ts | 14 + .../src/openapi/models/getAllApiTokens401.ts | 14 + .../src/openapi/models/getAllApiTokens403.ts | 14 + .../openapi/models/getAllFeatureTypes401.ts | 14 + .../src/openapi/models/getAllStrategies401.ts | 14 + .../src/openapi/models/getAllToggles401.ts | 14 + .../src/openapi/models/getAllToggles403.ts | 14 + .../openapi/models/getArchivedFeatures401.ts | 14 + .../openapi/models/getArchivedFeatures403.ts | 14 + .../getArchivedFeaturesByProjectId401.ts | 14 + .../getArchivedFeaturesByProjectId403.ts | 14 + .../models/getBaseUsersAndGroups401.ts | 14 + .../getEnvironmentFeatureVariants401.ts | 14 + .../getEnvironmentFeatureVariants403.ts | 14 + .../getEnvironmentFeatureVariants404.ts | 14 + frontend/src/openapi/models/getFeature403.ts | 14 + .../models/getFeatureEnvironment401.ts | 14 + .../models/getFeatureEnvironment403.ts | 14 + .../models/getFeatureEnvironment404.ts | 14 + .../openapi/models/getFeatureStrategies401.ts | 14 + .../openapi/models/getFeatureStrategies403.ts | 14 + .../openapi/models/getFeatureStrategies404.ts | 14 + .../openapi/models/getFeatureStrategy401.ts | 14 + .../openapi/models/getFeatureStrategy403.ts | 14 + .../openapi/models/getFeatureStrategy404.ts | 14 + .../openapi/models/getFeatureVariants401.ts | 14 + .../openapi/models/getFeatureVariants403.ts | 14 + .../openapi/models/getFeatureVariants404.ts | 14 + frontend/src/openapi/models/getFeatures400.ts | 14 + frontend/src/openapi/models/getFeatures401.ts | 14 + frontend/src/openapi/models/getFeatures403.ts | 14 + .../openapi/models/getFrontendFeatures401.ts | 14 + .../openapi/models/getFrontendFeatures404.ts | 14 + .../openapi/models/getGoogleSettings403.ts | 14 + frontend/src/openapi/models/getMe401.ts | 14 + .../src/openapi/models/getOidcSettings403.ts | 14 + frontend/src/openapi/models/getProfile401.ts | 14 + .../src/openapi/models/getSamlSettings403.ts | 14 + .../models/getServiceAccountTokens401.ts | 14 + .../models/getServiceAccountTokens403.ts | 14 + .../models/getServiceAccountTokens404.ts | 14 + .../openapi/models/getServiceAccounts401.ts | 14 + .../openapi/models/getServiceAccounts403.ts | 14 + .../openapi/models/getSimpleSettings401.ts | 14 + .../openapi/models/getSimpleSettings403.ts | 14 + .../models/getStrategiesByContextField401.ts | 14 + frontend/src/openapi/models/getStrategy401.ts | 14 + frontend/src/openapi/models/getStrategy404.ts | 14 + frontend/src/openapi/models/getTag401.ts | 14 + frontend/src/openapi/models/getTag403.ts | 14 + frontend/src/openapi/models/getTag404.ts | 14 + frontend/src/openapi/models/getTagType401.ts | 14 + frontend/src/openapi/models/getTagType403.ts | 14 + frontend/src/openapi/models/getTagTypes401.ts | 14 + frontend/src/openapi/models/getTagTypes403.ts | 14 + frontend/src/openapi/models/getTags401.ts | 14 + frontend/src/openapi/models/getTags403.ts | 14 + .../src/openapi/models/getTagsByType401.ts | 14 + .../src/openapi/models/getTagsByType403.ts | 14 + frontend/src/openapi/models/getUser400.ts | 14 + frontend/src/openapi/models/getUser401.ts | 14 + frontend/src/openapi/models/getUser404.ts | 14 + frontend/src/openapi/models/getUsers401.ts | 14 + frontend/src/openapi/models/getUsers403.ts | 14 + .../openapi/models/googleSettingsSchema.ts | 9 + frontend/src/openapi/models/groupSchema.ts | 13 +- .../openapi/models/groupUserModelSchema.ts | 5 + frontend/src/openapi/models/groupsSchema.ts | 4 + .../openapi/models/healthOverviewSchema.ts | 2 + .../src/openapi/models/healthReportSchema.ts | 2 + frontend/src/openapi/models/idSchema.ts | 4 + .../src/openapi/models/importToggles404.ts | 14 + .../src/openapi/models/importTogglesSchema.ts | 5 + .../models/importTogglesValidateItemSchema.ts | 5 + .../models/importTogglesValidateSchema.ts | 6 + frontend/src/openapi/models/index.ts | 392 +++++++++++++++++- .../src/openapi/models/legalValueSchema.ts | 5 + frontend/src/openapi/models/login401.ts | 14 + frontend/src/openapi/models/loginSchema.ts | 5 + frontend/src/openapi/models/meSchema.ts | 10 +- frontend/src/openapi/models/meSchemaSplash.ts | 3 + frontend/src/openapi/models/nameSchema.ts | 4 + .../overwriteEnvironmentFeatureVariants400.ts | 14 + .../overwriteEnvironmentFeatureVariants401.ts | 14 + .../overwriteEnvironmentFeatureVariants403.ts | 14 + .../models/overwriteFeatureVariants400.ts | 14 + .../models/overwriteFeatureVariants401.ts | 14 + .../models/overwriteFeatureVariants403.ts | 14 + .../models/overwriteFeatureVariants404.ts | 14 + ...erwriteFeatureVariantsOnEnvironments400.ts | 14 + ...erwriteFeatureVariantsOnEnvironments401.ts | 14 + ...erwriteFeatureVariantsOnEnvironments403.ts | 14 + .../src/openapi/models/parametersSchema.ts | 3 + .../src/openapi/models/passwordAuthSchema.ts | 4 + frontend/src/openapi/models/passwordSchema.ts | 6 + .../patchEnvironmentsFeatureVariants400.ts | 14 + .../patchEnvironmentsFeatureVariants401.ts | 14 + .../patchEnvironmentsFeatureVariants403.ts | 14 + .../patchEnvironmentsFeatureVariants404.ts | 14 + .../src/openapi/models/patchFeature401.ts | 14 + .../src/openapi/models/patchFeature403.ts | 14 + .../src/openapi/models/patchFeature404.ts | 14 + .../src/openapi/models/patchFeature415.ts | 14 + .../openapi/models/patchFeatureStrategy400.ts | 14 + .../openapi/models/patchFeatureStrategy401.ts | 14 + .../openapi/models/patchFeatureStrategy403.ts | 14 + .../openapi/models/patchFeatureStrategy404.ts | 14 + .../openapi/models/patchFeatureStrategy415.ts | 14 + .../openapi/models/patchFeatureVariants400.ts | 14 + .../openapi/models/patchFeatureVariants401.ts | 14 + .../openapi/models/patchFeatureVariants403.ts | 14 + .../openapi/models/patchFeatureVariants404.ts | 14 + frontend/src/openapi/models/patchesSchema.ts | 3 + .../src/openapi/models/permissionSchema.ts | 6 + frontend/src/openapi/models/profileSchema.ts | 5 + .../openapi/models/projectOverviewSchema.ts | 36 +- .../models/projectOverviewSchemaMode.ts | 17 + ...{projectUsers.ts => projectUsersSchema.ts} | 2 +- .../openapi/models/projectsOverviewSchema.ts | 12 + .../src/openapi/models/proxyClientSchema.ts | 8 +- .../src/openapi/models/proxyFeatureSchema.ts | 7 + .../models/proxyFeatureSchemaVariant.ts | 6 + .../proxyFeatureSchemaVariantPayload.ts | 5 + .../proxyFeatureSchemaVariantPayloadType.ts | 3 + .../src/openapi/models/proxyFeaturesSchema.ts | 4 + .../openapi/models/reactivateStrategy401.ts | 14 + .../openapi/models/reactivateStrategy403.ts | 14 + .../openapi/models/reactivateStrategy404.ts | 14 + .../models/registerFrontendClient400.ts | 14 + .../models/registerFrontendClient401.ts | 14 + .../models/registerFrontendClient404.ts | 14 + .../models/registerFrontendMetrics400.ts | 14 + .../models/registerFrontendMetrics401.ts | 14 + .../models/registerFrontendMetrics404.ts | 14 + .../models/removeFavoriteFeature401.ts | 14 + .../models/removeFavoriteFeature404.ts | 14 + .../models/removeFavoriteProject401.ts | 14 + .../models/removeFavoriteProject404.ts | 14 + .../src/openapi/models/removeStrategy401.ts | 14 + .../src/openapi/models/removeStrategy403.ts | 14 + .../src/openapi/models/removeStrategy404.ts | 14 + frontend/src/openapi/models/removeTag401.ts | 14 + frontend/src/openapi/models/removeTag403.ts | 14 + .../openapi/models/requestsPerSecondSchema.ts | 8 +- .../models/requestsPerSecondSchemaData.ts | 7 +- .../requestsPerSecondSchemaDataResultItem.ts | 3 + ...estsPerSecondSchemaDataResultItemMetric.ts | 2 + .../requestsPerSecondSchemaDataResultType.ts | 19 + .../models/requestsPerSecondSchemaStatus.ts | 17 + .../requestsPerSecondSegmentedSchema.ts | 3 + .../openapi/models/resetUserPassword400.ts | 14 + .../openapi/models/resetUserPassword401.ts | 14 + .../openapi/models/resetUserPassword403.ts | 14 + .../openapi/models/resetUserPassword404.ts | 14 + .../src/openapi/models/reviveFeature400.ts | 14 + .../src/openapi/models/reviveFeature401.ts | 14 + .../src/openapi/models/reviveFeature403.ts | 14 + .../src/openapi/models/reviveFeatures400.ts | 14 + .../src/openapi/models/reviveFeatures401.ts | 14 + .../src/openapi/models/reviveFeatures403.ts | 14 + frontend/src/openapi/models/roleSchema.ts | 7 + .../src/openapi/models/samlSettingsSchema.ts | 14 +- .../samlSettingsSchemaDefaultRootRole.ts | 3 + .../src/openapi/models/searchEventsSchema.ts | 5 +- .../openapi/models/searchEventsSchemaType.ts | 118 ++++++ frontend/src/openapi/models/searchUsers401.ts | 14 + .../src/openapi/models/searchUsersParams.ts | 12 + frontend/src/openapi/models/segmentSchema.ts | 10 +- .../openapi/models/segmentStrategiesSchema.ts | 10 - .../segmentStrategiesSchemaStrategiesItem.ts | 13 - .../models/sendResetPasswordEmail401.ts | 14 + .../models/sendResetPasswordEmail404.ts | 14 + .../models/sendResetPasswordEmail415.ts | 14 + .../openapi/models/serviceAccountSchema.ts | 34 ++ .../openapi/models/serviceAccountsSchema.ts | 5 + .../openapi/models/setGoogleSettings403.ts | 14 + .../openapi/models/setGoogleSettings415.ts | 14 + .../src/openapi/models/setOidcSettings403.ts | 14 + .../src/openapi/models/setOidcSettings415.ts | 14 + .../src/openapi/models/setSamlSettings403.ts | 14 + .../src/openapi/models/setSamlSettings415.ts | 14 + .../openapi/models/setSimpleSettings403.ts | 14 + .../openapi/models/setSimpleSettings415.ts | 14 + .../openapi/models/setStrategySortOrder400.ts | 14 + .../openapi/models/setStrategySortOrder401.ts | 14 + .../openapi/models/setStrategySortOrder403.ts | 14 + .../models/setStrategySortOrderSchema.ts | 3 + .../models/setStrategySortOrderSchemaItem.ts | 5 + .../src/openapi/models/setUiConfigSchema.ts | 4 + .../setUiConfigSchemaFrontendSettings.ts | 4 + .../src/openapi/models/splashRequestSchema.ts | 15 + .../openapi/models/splashResponseSchema.ts | 17 + frontend/src/openapi/models/splashSchema.ts | 11 - .../src/openapi/models/staleFeatures401.ts | 14 + .../src/openapi/models/staleFeatures403.ts | 14 + .../src/openapi/models/staleFeatures415.ts | 14 + .../src/openapi/models/strategiesSchema.ts | 8 +- .../openapi/models/strategiesSchemaVersion.ts | 16 + frontend/src/openapi/models/strategySchema.ts | 8 +- .../openapi/models/strategyVariantSchema.ts | 23 + .../models/strategyVariantSchemaPayload.ts | 15 + .../models/strategyVariantSchemaWeightType.ts | 17 + frontend/src/openapi/models/tagTypeSchema.ts | 6 + frontend/src/openapi/models/tagTypesSchema.ts | 5 + .../openapi/models/tagWithVersionSchema.ts | 4 + .../openapi/models/telemetrySettingsSchema.ts | 15 + .../models/toggleFeatureEnvironmentOff400.ts | 14 + .../models/toggleFeatureEnvironmentOff401.ts | 14 + .../models/toggleFeatureEnvironmentOff403.ts | 14 + .../models/toggleFeatureEnvironmentOff404.ts | 14 + .../models/toggleFeatureEnvironmentOn400.ts | 14 + .../models/toggleFeatureEnvironmentOn401.ts | 14 + .../models/toggleFeatureEnvironmentOn403.ts | 14 + .../models/toggleFeatureEnvironmentOn404.ts | 14 + .../src/openapi/models/tokenUserSchema.ts | 8 + frontend/src/openapi/models/uiConfigSchema.ts | 19 + .../uiConfigSchemaAuthenticationType.ts | 3 + .../src/openapi/models/uiConfigSchemaFlags.ts | 3 + .../src/openapi/models/updateApiToken401.ts | 14 + .../src/openapi/models/updateApiToken403.ts | 14 + .../src/openapi/models/updateApiToken415.ts | 14 + .../openapi/models/updateApiTokenSchema.ts | 4 + .../src/openapi/models/updateFeature401.ts | 14 + .../src/openapi/models/updateFeature403.ts | 14 + .../src/openapi/models/updateFeature404.ts | 14 + .../src/openapi/models/updateFeature415.ts | 14 + .../src/openapi/models/updateFeatureSchema.ts | 12 +- .../models/updateFeatureStrategy400.ts | 14 + .../models/updateFeatureStrategy401.ts | 14 + .../models/updateFeatureStrategy403.ts | 14 + .../models/updateFeatureStrategy404.ts | 14 + .../models/updateFeatureStrategy415.ts | 14 + .../models/updateFeatureStrategySchema.ts | 6 + .../updateFeatureStrategySegments415.ts | 14 + .../updateFeatureStrategySegmentsSchema.ts | 7 + .../models/updateFeatureTypeLifetime400.ts | 14 + .../models/updateFeatureTypeLifetime401.ts | 14 + .../models/updateFeatureTypeLifetime403.ts | 14 + .../models/updateFeatureTypeLifetime404.ts | 14 + .../models/updateFeatureTypeLifetime409.ts | 14 + .../models/updateFeatureTypeLifetime415.ts | 14 + .../models/updateFeatureTypeLifetimeSchema.ts | 13 + .../src/openapi/models/updateFeedback400.ts | 14 + .../src/openapi/models/updateFeedback401.ts | 14 + .../src/openapi/models/updateFeedback415.ts | 14 + .../src/openapi/models/updateSegment415.ts | 14 + .../openapi/models/updateServiceAccount400.ts | 14 + .../openapi/models/updateServiceAccount401.ts | 14 + .../openapi/models/updateServiceAccount403.ts | 14 + .../openapi/models/updateServiceAccount404.ts | 14 + .../openapi/models/updateServiceAccount415.ts | 14 + .../models/updateServiceAccountSchema.ts | 5 + .../openapi/models/updateSplashSettings400.ts | 14 + .../openapi/models/updateSplashSettings401.ts | 14 + .../openapi/models/updateSplashSettings403.ts | 14 + .../openapi/models/updateSplashSettings415.ts | 14 + .../src/openapi/models/updateStrategy401.ts | 14 + .../src/openapi/models/updateStrategy403.ts | 14 + .../src/openapi/models/updateStrategy404.ts | 14 + .../src/openapi/models/updateStrategy415.ts | 14 + .../openapi/models/updateStrategySchema.ts | 16 + .../updateStrategySchemaParametersItem.ts | 17 + .../updateStrategySchemaParametersItemType.ts | 20 + .../src/openapi/models/updateTagType400.ts | 14 + .../src/openapi/models/updateTagType401.ts | 14 + .../src/openapi/models/updateTagType403.ts | 14 + .../src/openapi/models/updateTagType415.ts | 14 + .../src/openapi/models/updateTagTypeSchema.ts | 5 + frontend/src/openapi/models/updateUser400.ts | 14 + frontend/src/openapi/models/updateUser401.ts | 14 + frontend/src/openapi/models/updateUser403.ts | 14 + frontend/src/openapi/models/updateUser404.ts | 14 + .../src/openapi/models/updateUserSchema.ts | 9 +- .../models/updateUserSchemaRootRole.ts | 16 + .../openapi/models/upsertStrategySchema.ts | 13 - .../upsertStrategySchemaParametersItem.ts | 12 - frontend/src/openapi/models/userSchema.ts | 21 + frontend/src/openapi/models/usersSchema.ts | 5 + .../openapi/models/validateConstraint400.ts | 14 + .../openapi/models/validateConstraint401.ts | 14 + .../openapi/models/validateConstraint403.ts | 14 + .../openapi/models/validateConstraint415.ts | 14 + .../src/openapi/models/validateFeature400.ts | 14 + .../src/openapi/models/validateFeature401.ts | 14 + .../src/openapi/models/validateFeature409.ts | 14 + .../src/openapi/models/validateFeature415.ts | 14 + .../openapi/models/validateFeatureSchema.ts | 13 + .../src/openapi/models/validateImport404.ts | 14 + .../src/openapi/models/validatePassword400.ts | 14 + .../src/openapi/models/validatePassword415.ts | 14 + .../openapi/models/validatePasswordSchema.ts | 4 + .../src/openapi/models/validateSegment400.ts | 14 + .../src/openapi/models/validateSegment415.ts | 14 + .../src/openapi/models/validateTagType400.ts | 14 + .../src/openapi/models/validateTagType401.ts | 14 + .../src/openapi/models/validateTagType403.ts | 14 + .../src/openapi/models/validateTagType409.ts | 14 + .../src/openapi/models/validateTagType415.ts | 14 + .../openapi/models/validateTagTypeSchema.ts | 4 + .../src/openapi/models/validateToken401.ts | 14 + .../src/openapi/models/validateToken415.ts | 14 + .../openapi/models/validateUserPassword400.ts | 14 + .../openapi/models/validateUserPassword401.ts | 14 + .../openapi/models/validateUserPassword415.ts | 14 + .../src/openapi/models/variantFlagSchema.ts | 6 + .../models/variantFlagSchemaPayload.ts | 8 +- .../models/variantFlagSchemaPayloadType.ts | 18 + frontend/src/openapi/models/variantSchema.ts | 3 +- .../openapi/models/variantSchemaPayload.ts | 2 + .../openapi/models/variantSchemaWeightType.ts | 17 + frontend/src/openapi/models/versionSchema.ts | 9 +- .../openapi/models/versionSchemaCurrent.ts | 5 + .../src/openapi/models/versionSchemaLatest.ts | 5 + frontend/yarn.lock | 90 ++-- 497 files changed, 6620 insertions(+), 230 deletions(-) rename frontend/src/openapi/models/{deleteLoginHistory401.ts => addFavoriteFeature401.ts} (88%) create mode 100644 frontend/src/openapi/models/addFavoriteFeature404.ts create mode 100644 frontend/src/openapi/models/addFavoriteProject401.ts create mode 100644 frontend/src/openapi/models/addFavoriteProject404.ts create mode 100644 frontend/src/openapi/models/addFeatureStrategy401.ts create mode 100644 frontend/src/openapi/models/addFeatureStrategy403.ts create mode 100644 frontend/src/openapi/models/addFeatureStrategy404.ts rename frontend/src/openapi/models/{deleteLoginEvent401.ts => addTagToFeatures401.ts} (88%) rename frontend/src/openapi/models/{deleteLoginEvent404.ts => addTagToFeatures403.ts} (88%) rename frontend/src/openapi/models/{deleteLoginEvent400.ts => addTagToFeatures404.ts} (88%) create mode 100644 frontend/src/openapi/models/addTagToFeatures415.ts create mode 100644 frontend/src/openapi/models/addonTypeSchemaAlertsItem.ts create mode 100644 frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts create mode 100644 frontend/src/openapi/models/addonTypeSchemaInstallation.ts create mode 100644 frontend/src/openapi/models/adminPermissionsSchemaVersion.ts create mode 100644 frontend/src/openapi/models/adminStrategiesSchema.ts create mode 100644 frontend/src/openapi/models/adminStrategiesSchemaStrategiesItem.ts create mode 100644 frontend/src/openapi/models/archiveFeature403.ts create mode 100644 frontend/src/openapi/models/archiveFeatures400.ts create mode 100644 frontend/src/openapi/models/archiveFeatures401.ts create mode 100644 frontend/src/openapi/models/archiveFeatures403.ts create mode 100644 frontend/src/openapi/models/archiveFeatures415.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff400.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff401.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff403.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff404.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff413.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff415.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn400.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn401.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn403.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn404.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn413.ts create mode 100644 frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn415.ts create mode 100644 frontend/src/openapi/models/changePassword401.ts create mode 100644 frontend/src/openapi/models/changePassword403.ts create mode 100644 frontend/src/openapi/models/changePassword415.ts create mode 100644 frontend/src/openapi/models/changeProject403.ts create mode 100644 frontend/src/openapi/models/changeProject404.ts create mode 100644 frontend/src/openapi/models/changeProject415.ts rename frontend/src/openapi/models/{changeRequestEditTitleSchema.ts => changeRequestUpdateTitleSchema.ts} (70%) create mode 100644 frontend/src/openapi/models/changeUserPassword400.ts create mode 100644 frontend/src/openapi/models/changeUserPassword401.ts create mode 100644 frontend/src/openapi/models/changeUserPassword403.ts create mode 100644 frontend/src/openapi/models/clientSegmentSchema.ts create mode 100644 frontend/src/openapi/models/cloneFeature401.ts create mode 100644 frontend/src/openapi/models/cloneFeature403.ts create mode 100644 frontend/src/openapi/models/cloneFeature404.ts create mode 100644 frontend/src/openapi/models/cloneFeature415.ts create mode 100644 frontend/src/openapi/models/createApiToken401.ts create mode 100644 frontend/src/openapi/models/createApiToken403.ts create mode 100644 frontend/src/openapi/models/createApiToken415.ts delete mode 100644 frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOf.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfAllOf.ts rename frontend/src/openapi/models/{createApiTokenSchemaAnyOfTwo.ts => createApiTokenSchemaOneOfAllOfTwo.ts} (59%) create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfFour.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOf.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOfTwo.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfOnezero.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOf.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOfTwo.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfSeven.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOf.ts create mode 100644 frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOfTwo.ts create mode 100644 frontend/src/openapi/models/createFeature401.ts create mode 100644 frontend/src/openapi/models/createFeature403.ts create mode 100644 frontend/src/openapi/models/createFeature404.ts create mode 100644 frontend/src/openapi/models/createFeature415.ts create mode 100644 frontend/src/openapi/models/createFeedback400.ts create mode 100644 frontend/src/openapi/models/createFeedback401.ts create mode 100644 frontend/src/openapi/models/createFeedback415.ts create mode 100644 frontend/src/openapi/models/createSegment415.ts create mode 100644 frontend/src/openapi/models/createServiceAccount400.ts create mode 100644 frontend/src/openapi/models/createServiceAccount401.ts create mode 100644 frontend/src/openapi/models/createServiceAccount403.ts create mode 100644 frontend/src/openapi/models/createServiceAccount409.ts create mode 100644 frontend/src/openapi/models/createServiceAccount415.ts create mode 100644 frontend/src/openapi/models/createServiceAccountToken401.ts create mode 100644 frontend/src/openapi/models/createServiceAccountToken403.ts create mode 100644 frontend/src/openapi/models/createServiceAccountToken404.ts create mode 100644 frontend/src/openapi/models/createServiceAccountToken409.ts create mode 100644 frontend/src/openapi/models/createServiceAccountToken415.ts create mode 100644 frontend/src/openapi/models/createStrategy401.ts create mode 100644 frontend/src/openapi/models/createStrategy403.ts create mode 100644 frontend/src/openapi/models/createStrategy409.ts create mode 100644 frontend/src/openapi/models/createStrategy415.ts create mode 100644 frontend/src/openapi/models/createStrategySchema.ts create mode 100644 frontend/src/openapi/models/createStrategySchemaParametersItem.ts create mode 100644 frontend/src/openapi/models/createStrategySchemaParametersItemType.ts create mode 100644 frontend/src/openapi/models/createStrategyVariantSchema.ts create mode 100644 frontend/src/openapi/models/createStrategyVariantSchemaPayload.ts create mode 100644 frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts create mode 100644 frontend/src/openapi/models/createTag400.ts create mode 100644 frontend/src/openapi/models/createTag401.ts create mode 100644 frontend/src/openapi/models/createTag403.ts create mode 100644 frontend/src/openapi/models/createTag409.ts create mode 100644 frontend/src/openapi/models/createTag415.ts create mode 100644 frontend/src/openapi/models/createTagType400.ts create mode 100644 frontend/src/openapi/models/createTagType401.ts create mode 100644 frontend/src/openapi/models/createTagType403.ts create mode 100644 frontend/src/openapi/models/createTagType409.ts create mode 100644 frontend/src/openapi/models/createTagType415.ts create mode 100644 frontend/src/openapi/models/createUser400.ts create mode 100644 frontend/src/openapi/models/createUser401.ts create mode 100644 frontend/src/openapi/models/createUser403.ts create mode 100644 frontend/src/openapi/models/createUserResponseSchema.ts create mode 100644 frontend/src/openapi/models/createUserResponseSchemaRootRole.ts create mode 100644 frontend/src/openapi/models/createUserSchemaRootRole.ts create mode 100644 frontend/src/openapi/models/deleteApiToken401.ts create mode 100644 frontend/src/openapi/models/deleteApiToken403.ts create mode 100644 frontend/src/openapi/models/deleteFeature401.ts create mode 100644 frontend/src/openapi/models/deleteFeature403.ts create mode 100644 frontend/src/openapi/models/deleteFeatureStrategy401.ts create mode 100644 frontend/src/openapi/models/deleteFeatureStrategy403.ts create mode 100644 frontend/src/openapi/models/deleteFeatureStrategy404.ts create mode 100644 frontend/src/openapi/models/deleteFeatures400.ts create mode 100644 frontend/src/openapi/models/deleteFeatures401.ts create mode 100644 frontend/src/openapi/models/deleteFeatures403.ts delete mode 100644 frontend/src/openapi/models/deleteLoginHistory404.ts create mode 100644 frontend/src/openapi/models/deleteServiceAccount401.ts create mode 100644 frontend/src/openapi/models/deleteServiceAccount403.ts create mode 100644 frontend/src/openapi/models/deleteServiceAccount404.ts create mode 100644 frontend/src/openapi/models/deleteServiceAccountToken401.ts create mode 100644 frontend/src/openapi/models/deleteServiceAccountToken403.ts create mode 100644 frontend/src/openapi/models/deleteServiceAccountToken404.ts create mode 100644 frontend/src/openapi/models/deleteTagType401.ts create mode 100644 frontend/src/openapi/models/deleteTagType403.ts create mode 100644 frontend/src/openapi/models/deleteUser401.ts create mode 100644 frontend/src/openapi/models/deleteUser403.ts create mode 100644 frontend/src/openapi/models/deleteUser404.ts create mode 100644 frontend/src/openapi/models/deprecateStrategy401.ts create mode 100644 frontend/src/openapi/models/deprecateStrategy403.ts create mode 100644 frontend/src/openapi/models/deprecateStrategy404.ts create mode 100644 frontend/src/openapi/models/eventSchemaType.ts create mode 100644 frontend/src/openapi/models/eventsSchemaVersion.ts create mode 100644 frontend/src/openapi/models/exportFeatures404.ts create mode 100644 frontend/src/openapi/models/featureEventsSchemaVersion.ts create mode 100644 frontend/src/openapi/models/featureTypesSchemaVersion.ts create mode 100644 frontend/src/openapi/models/feedbackCreateSchema.ts create mode 100644 frontend/src/openapi/models/feedbackResponseSchema.ts delete mode 100644 frontend/src/openapi/models/feedbackSchema.ts create mode 100644 frontend/src/openapi/models/feedbackUpdateSchema.ts create mode 100644 frontend/src/openapi/models/getAdminCount401.ts create mode 100644 frontend/src/openapi/models/getAdminCount403.ts create mode 100644 frontend/src/openapi/models/getAllApiTokens401.ts create mode 100644 frontend/src/openapi/models/getAllApiTokens403.ts create mode 100644 frontend/src/openapi/models/getAllFeatureTypes401.ts create mode 100644 frontend/src/openapi/models/getAllStrategies401.ts create mode 100644 frontend/src/openapi/models/getAllToggles401.ts create mode 100644 frontend/src/openapi/models/getAllToggles403.ts create mode 100644 frontend/src/openapi/models/getArchivedFeatures401.ts create mode 100644 frontend/src/openapi/models/getArchivedFeatures403.ts create mode 100644 frontend/src/openapi/models/getArchivedFeaturesByProjectId401.ts create mode 100644 frontend/src/openapi/models/getArchivedFeaturesByProjectId403.ts create mode 100644 frontend/src/openapi/models/getBaseUsersAndGroups401.ts create mode 100644 frontend/src/openapi/models/getEnvironmentFeatureVariants401.ts create mode 100644 frontend/src/openapi/models/getEnvironmentFeatureVariants403.ts create mode 100644 frontend/src/openapi/models/getEnvironmentFeatureVariants404.ts create mode 100644 frontend/src/openapi/models/getFeature403.ts create mode 100644 frontend/src/openapi/models/getFeatureEnvironment401.ts create mode 100644 frontend/src/openapi/models/getFeatureEnvironment403.ts create mode 100644 frontend/src/openapi/models/getFeatureEnvironment404.ts create mode 100644 frontend/src/openapi/models/getFeatureStrategies401.ts create mode 100644 frontend/src/openapi/models/getFeatureStrategies403.ts create mode 100644 frontend/src/openapi/models/getFeatureStrategies404.ts create mode 100644 frontend/src/openapi/models/getFeatureStrategy401.ts create mode 100644 frontend/src/openapi/models/getFeatureStrategy403.ts create mode 100644 frontend/src/openapi/models/getFeatureStrategy404.ts create mode 100644 frontend/src/openapi/models/getFeatureVariants401.ts create mode 100644 frontend/src/openapi/models/getFeatureVariants403.ts create mode 100644 frontend/src/openapi/models/getFeatureVariants404.ts create mode 100644 frontend/src/openapi/models/getFeatures400.ts create mode 100644 frontend/src/openapi/models/getFeatures401.ts create mode 100644 frontend/src/openapi/models/getFeatures403.ts create mode 100644 frontend/src/openapi/models/getFrontendFeatures401.ts create mode 100644 frontend/src/openapi/models/getFrontendFeatures404.ts create mode 100644 frontend/src/openapi/models/getGoogleSettings403.ts create mode 100644 frontend/src/openapi/models/getMe401.ts create mode 100644 frontend/src/openapi/models/getOidcSettings403.ts create mode 100644 frontend/src/openapi/models/getProfile401.ts create mode 100644 frontend/src/openapi/models/getSamlSettings403.ts create mode 100644 frontend/src/openapi/models/getServiceAccountTokens401.ts create mode 100644 frontend/src/openapi/models/getServiceAccountTokens403.ts create mode 100644 frontend/src/openapi/models/getServiceAccountTokens404.ts create mode 100644 frontend/src/openapi/models/getServiceAccounts401.ts create mode 100644 frontend/src/openapi/models/getServiceAccounts403.ts create mode 100644 frontend/src/openapi/models/getSimpleSettings401.ts create mode 100644 frontend/src/openapi/models/getSimpleSettings403.ts create mode 100644 frontend/src/openapi/models/getStrategiesByContextField401.ts create mode 100644 frontend/src/openapi/models/getStrategy401.ts create mode 100644 frontend/src/openapi/models/getStrategy404.ts create mode 100644 frontend/src/openapi/models/getTag401.ts create mode 100644 frontend/src/openapi/models/getTag403.ts create mode 100644 frontend/src/openapi/models/getTag404.ts create mode 100644 frontend/src/openapi/models/getTagType401.ts create mode 100644 frontend/src/openapi/models/getTagType403.ts create mode 100644 frontend/src/openapi/models/getTagTypes401.ts create mode 100644 frontend/src/openapi/models/getTagTypes403.ts create mode 100644 frontend/src/openapi/models/getTags401.ts create mode 100644 frontend/src/openapi/models/getTags403.ts create mode 100644 frontend/src/openapi/models/getTagsByType401.ts create mode 100644 frontend/src/openapi/models/getTagsByType403.ts create mode 100644 frontend/src/openapi/models/getUser400.ts create mode 100644 frontend/src/openapi/models/getUser401.ts create mode 100644 frontend/src/openapi/models/getUser404.ts create mode 100644 frontend/src/openapi/models/getUsers401.ts create mode 100644 frontend/src/openapi/models/getUsers403.ts create mode 100644 frontend/src/openapi/models/importToggles404.ts create mode 100644 frontend/src/openapi/models/login401.ts create mode 100644 frontend/src/openapi/models/overwriteEnvironmentFeatureVariants400.ts create mode 100644 frontend/src/openapi/models/overwriteEnvironmentFeatureVariants401.ts create mode 100644 frontend/src/openapi/models/overwriteEnvironmentFeatureVariants403.ts create mode 100644 frontend/src/openapi/models/overwriteFeatureVariants400.ts create mode 100644 frontend/src/openapi/models/overwriteFeatureVariants401.ts create mode 100644 frontend/src/openapi/models/overwriteFeatureVariants403.ts create mode 100644 frontend/src/openapi/models/overwriteFeatureVariants404.ts create mode 100644 frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments400.ts create mode 100644 frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments401.ts create mode 100644 frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments403.ts create mode 100644 frontend/src/openapi/models/patchEnvironmentsFeatureVariants400.ts create mode 100644 frontend/src/openapi/models/patchEnvironmentsFeatureVariants401.ts create mode 100644 frontend/src/openapi/models/patchEnvironmentsFeatureVariants403.ts create mode 100644 frontend/src/openapi/models/patchEnvironmentsFeatureVariants404.ts create mode 100644 frontend/src/openapi/models/patchFeature401.ts create mode 100644 frontend/src/openapi/models/patchFeature403.ts create mode 100644 frontend/src/openapi/models/patchFeature404.ts create mode 100644 frontend/src/openapi/models/patchFeature415.ts create mode 100644 frontend/src/openapi/models/patchFeatureStrategy400.ts create mode 100644 frontend/src/openapi/models/patchFeatureStrategy401.ts create mode 100644 frontend/src/openapi/models/patchFeatureStrategy403.ts create mode 100644 frontend/src/openapi/models/patchFeatureStrategy404.ts create mode 100644 frontend/src/openapi/models/patchFeatureStrategy415.ts create mode 100644 frontend/src/openapi/models/patchFeatureVariants400.ts create mode 100644 frontend/src/openapi/models/patchFeatureVariants401.ts create mode 100644 frontend/src/openapi/models/patchFeatureVariants403.ts create mode 100644 frontend/src/openapi/models/patchFeatureVariants404.ts create mode 100644 frontend/src/openapi/models/projectOverviewSchemaMode.ts rename frontend/src/openapi/models/{projectUsers.ts => projectUsersSchema.ts} (88%) create mode 100644 frontend/src/openapi/models/projectsOverviewSchema.ts create mode 100644 frontend/src/openapi/models/reactivateStrategy401.ts create mode 100644 frontend/src/openapi/models/reactivateStrategy403.ts create mode 100644 frontend/src/openapi/models/reactivateStrategy404.ts create mode 100644 frontend/src/openapi/models/registerFrontendClient400.ts create mode 100644 frontend/src/openapi/models/registerFrontendClient401.ts create mode 100644 frontend/src/openapi/models/registerFrontendClient404.ts create mode 100644 frontend/src/openapi/models/registerFrontendMetrics400.ts create mode 100644 frontend/src/openapi/models/registerFrontendMetrics401.ts create mode 100644 frontend/src/openapi/models/registerFrontendMetrics404.ts create mode 100644 frontend/src/openapi/models/removeFavoriteFeature401.ts create mode 100644 frontend/src/openapi/models/removeFavoriteFeature404.ts create mode 100644 frontend/src/openapi/models/removeFavoriteProject401.ts create mode 100644 frontend/src/openapi/models/removeFavoriteProject404.ts create mode 100644 frontend/src/openapi/models/removeStrategy401.ts create mode 100644 frontend/src/openapi/models/removeStrategy403.ts create mode 100644 frontend/src/openapi/models/removeStrategy404.ts create mode 100644 frontend/src/openapi/models/removeTag401.ts create mode 100644 frontend/src/openapi/models/removeTag403.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts create mode 100644 frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts create mode 100644 frontend/src/openapi/models/resetUserPassword400.ts create mode 100644 frontend/src/openapi/models/resetUserPassword401.ts create mode 100644 frontend/src/openapi/models/resetUserPassword403.ts create mode 100644 frontend/src/openapi/models/resetUserPassword404.ts create mode 100644 frontend/src/openapi/models/reviveFeature400.ts create mode 100644 frontend/src/openapi/models/reviveFeature401.ts create mode 100644 frontend/src/openapi/models/reviveFeature403.ts create mode 100644 frontend/src/openapi/models/reviveFeatures400.ts create mode 100644 frontend/src/openapi/models/reviveFeatures401.ts create mode 100644 frontend/src/openapi/models/reviveFeatures403.ts create mode 100644 frontend/src/openapi/models/searchEventsSchemaType.ts create mode 100644 frontend/src/openapi/models/searchUsers401.ts create mode 100644 frontend/src/openapi/models/searchUsersParams.ts delete mode 100644 frontend/src/openapi/models/segmentStrategiesSchema.ts delete mode 100644 frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts create mode 100644 frontend/src/openapi/models/sendResetPasswordEmail401.ts create mode 100644 frontend/src/openapi/models/sendResetPasswordEmail404.ts create mode 100644 frontend/src/openapi/models/sendResetPasswordEmail415.ts create mode 100644 frontend/src/openapi/models/setGoogleSettings403.ts create mode 100644 frontend/src/openapi/models/setGoogleSettings415.ts create mode 100644 frontend/src/openapi/models/setOidcSettings403.ts create mode 100644 frontend/src/openapi/models/setOidcSettings415.ts create mode 100644 frontend/src/openapi/models/setSamlSettings403.ts create mode 100644 frontend/src/openapi/models/setSamlSettings415.ts create mode 100644 frontend/src/openapi/models/setSimpleSettings403.ts create mode 100644 frontend/src/openapi/models/setSimpleSettings415.ts create mode 100644 frontend/src/openapi/models/setStrategySortOrder400.ts create mode 100644 frontend/src/openapi/models/setStrategySortOrder401.ts create mode 100644 frontend/src/openapi/models/setStrategySortOrder403.ts create mode 100644 frontend/src/openapi/models/splashRequestSchema.ts create mode 100644 frontend/src/openapi/models/splashResponseSchema.ts delete mode 100644 frontend/src/openapi/models/splashSchema.ts create mode 100644 frontend/src/openapi/models/staleFeatures401.ts create mode 100644 frontend/src/openapi/models/staleFeatures403.ts create mode 100644 frontend/src/openapi/models/staleFeatures415.ts create mode 100644 frontend/src/openapi/models/strategiesSchemaVersion.ts create mode 100644 frontend/src/openapi/models/strategyVariantSchema.ts create mode 100644 frontend/src/openapi/models/strategyVariantSchemaPayload.ts create mode 100644 frontend/src/openapi/models/strategyVariantSchemaWeightType.ts create mode 100644 frontend/src/openapi/models/telemetrySettingsSchema.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOff400.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOff401.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOff403.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOff404.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOn400.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOn401.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOn403.ts create mode 100644 frontend/src/openapi/models/toggleFeatureEnvironmentOn404.ts create mode 100644 frontend/src/openapi/models/updateApiToken401.ts create mode 100644 frontend/src/openapi/models/updateApiToken403.ts create mode 100644 frontend/src/openapi/models/updateApiToken415.ts create mode 100644 frontend/src/openapi/models/updateFeature401.ts create mode 100644 frontend/src/openapi/models/updateFeature403.ts create mode 100644 frontend/src/openapi/models/updateFeature404.ts create mode 100644 frontend/src/openapi/models/updateFeature415.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategy400.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategy401.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategy403.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategy404.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategy415.ts create mode 100644 frontend/src/openapi/models/updateFeatureStrategySegments415.ts create mode 100644 frontend/src/openapi/models/updateFeatureTypeLifetime400.ts create mode 100644 frontend/src/openapi/models/updateFeatureTypeLifetime401.ts create mode 100644 frontend/src/openapi/models/updateFeatureTypeLifetime403.ts create mode 100644 frontend/src/openapi/models/updateFeatureTypeLifetime404.ts create mode 100644 frontend/src/openapi/models/updateFeatureTypeLifetime409.ts create mode 100644 frontend/src/openapi/models/updateFeatureTypeLifetime415.ts create mode 100644 frontend/src/openapi/models/updateFeatureTypeLifetimeSchema.ts create mode 100644 frontend/src/openapi/models/updateFeedback400.ts create mode 100644 frontend/src/openapi/models/updateFeedback401.ts create mode 100644 frontend/src/openapi/models/updateFeedback415.ts create mode 100644 frontend/src/openapi/models/updateSegment415.ts create mode 100644 frontend/src/openapi/models/updateServiceAccount400.ts create mode 100644 frontend/src/openapi/models/updateServiceAccount401.ts create mode 100644 frontend/src/openapi/models/updateServiceAccount403.ts create mode 100644 frontend/src/openapi/models/updateServiceAccount404.ts create mode 100644 frontend/src/openapi/models/updateServiceAccount415.ts create mode 100644 frontend/src/openapi/models/updateSplashSettings400.ts create mode 100644 frontend/src/openapi/models/updateSplashSettings401.ts create mode 100644 frontend/src/openapi/models/updateSplashSettings403.ts create mode 100644 frontend/src/openapi/models/updateSplashSettings415.ts create mode 100644 frontend/src/openapi/models/updateStrategy401.ts create mode 100644 frontend/src/openapi/models/updateStrategy403.ts create mode 100644 frontend/src/openapi/models/updateStrategy404.ts create mode 100644 frontend/src/openapi/models/updateStrategy415.ts create mode 100644 frontend/src/openapi/models/updateStrategySchema.ts create mode 100644 frontend/src/openapi/models/updateStrategySchemaParametersItem.ts create mode 100644 frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts create mode 100644 frontend/src/openapi/models/updateTagType400.ts create mode 100644 frontend/src/openapi/models/updateTagType401.ts create mode 100644 frontend/src/openapi/models/updateTagType403.ts create mode 100644 frontend/src/openapi/models/updateTagType415.ts create mode 100644 frontend/src/openapi/models/updateUser400.ts create mode 100644 frontend/src/openapi/models/updateUser401.ts create mode 100644 frontend/src/openapi/models/updateUser403.ts create mode 100644 frontend/src/openapi/models/updateUser404.ts create mode 100644 frontend/src/openapi/models/updateUserSchemaRootRole.ts delete mode 100644 frontend/src/openapi/models/upsertStrategySchema.ts delete mode 100644 frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts create mode 100644 frontend/src/openapi/models/validateConstraint400.ts create mode 100644 frontend/src/openapi/models/validateConstraint401.ts create mode 100644 frontend/src/openapi/models/validateConstraint403.ts create mode 100644 frontend/src/openapi/models/validateConstraint415.ts create mode 100644 frontend/src/openapi/models/validateFeature400.ts create mode 100644 frontend/src/openapi/models/validateFeature401.ts create mode 100644 frontend/src/openapi/models/validateFeature409.ts create mode 100644 frontend/src/openapi/models/validateFeature415.ts create mode 100644 frontend/src/openapi/models/validateFeatureSchema.ts create mode 100644 frontend/src/openapi/models/validateImport404.ts create mode 100644 frontend/src/openapi/models/validatePassword400.ts create mode 100644 frontend/src/openapi/models/validatePassword415.ts create mode 100644 frontend/src/openapi/models/validateSegment400.ts create mode 100644 frontend/src/openapi/models/validateSegment415.ts create mode 100644 frontend/src/openapi/models/validateTagType400.ts create mode 100644 frontend/src/openapi/models/validateTagType401.ts create mode 100644 frontend/src/openapi/models/validateTagType403.ts create mode 100644 frontend/src/openapi/models/validateTagType409.ts create mode 100644 frontend/src/openapi/models/validateTagType415.ts create mode 100644 frontend/src/openapi/models/validateToken401.ts create mode 100644 frontend/src/openapi/models/validateToken415.ts create mode 100644 frontend/src/openapi/models/validateUserPassword400.ts create mode 100644 frontend/src/openapi/models/validateUserPassword401.ts create mode 100644 frontend/src/openapi/models/validateUserPassword415.ts create mode 100644 frontend/src/openapi/models/variantFlagSchemaPayloadType.ts create mode 100644 frontend/src/openapi/models/variantSchemaWeightType.ts diff --git a/frontend/package.json b/frontend/package.json index 0434100c11..f658cff0c5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -117,7 +117,7 @@ "whatwg-fetch": "3.6.2" }, "optionalDependencies": { - "orval": "^6.10.3" + "orval": "^6.17.0" }, "resolutions": { "@codemirror/state": "6.2.1", diff --git a/frontend/src/openapi/models/deleteLoginHistory401.ts b/frontend/src/openapi/models/addFavoriteFeature401.ts similarity index 88% rename from frontend/src/openapi/models/deleteLoginHistory401.ts rename to frontend/src/openapi/models/addFavoriteFeature401.ts index 4b23e0ff9c..0ede014869 100644 --- a/frontend/src/openapi/models/deleteLoginHistory401.ts +++ b/frontend/src/openapi/models/addFavoriteFeature401.ts @@ -4,7 +4,7 @@ * See `gen:api` script in package.json */ -export type DeleteLoginHistory401 = { +export type AddFavoriteFeature401 = { /** The ID of the error instance */ id?: string; /** The name of the error kind */ diff --git a/frontend/src/openapi/models/addFavoriteFeature404.ts b/frontend/src/openapi/models/addFavoriteFeature404.ts new file mode 100644 index 0000000000..a964a776ef --- /dev/null +++ b/frontend/src/openapi/models/addFavoriteFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFavoriteFeature404 = { + /** 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/addFavoriteProject401.ts b/frontend/src/openapi/models/addFavoriteProject401.ts new file mode 100644 index 0000000000..403db5bc21 --- /dev/null +++ b/frontend/src/openapi/models/addFavoriteProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFavoriteProject401 = { + /** 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/addFavoriteProject404.ts b/frontend/src/openapi/models/addFavoriteProject404.ts new file mode 100644 index 0000000000..add74fa582 --- /dev/null +++ b/frontend/src/openapi/models/addFavoriteProject404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFavoriteProject404 = { + /** 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/addFeatureStrategy401.ts b/frontend/src/openapi/models/addFeatureStrategy401.ts new file mode 100644 index 0000000000..9ba79e9b77 --- /dev/null +++ b/frontend/src/openapi/models/addFeatureStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFeatureStrategy401 = { + /** 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/addFeatureStrategy403.ts b/frontend/src/openapi/models/addFeatureStrategy403.ts new file mode 100644 index 0000000000..7b027c8274 --- /dev/null +++ b/frontend/src/openapi/models/addFeatureStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFeatureStrategy403 = { + /** 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/addFeatureStrategy404.ts b/frontend/src/openapi/models/addFeatureStrategy404.ts new file mode 100644 index 0000000000..eccfde3c52 --- /dev/null +++ b/frontend/src/openapi/models/addFeatureStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddFeatureStrategy404 = { + /** 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/addTagToFeatures401.ts similarity index 88% rename from frontend/src/openapi/models/deleteLoginEvent401.ts rename to frontend/src/openapi/models/addTagToFeatures401.ts index fed9314547..a05f69e640 100644 --- a/frontend/src/openapi/models/deleteLoginEvent401.ts +++ b/frontend/src/openapi/models/addTagToFeatures401.ts @@ -4,7 +4,7 @@ * See `gen:api` script in package.json */ -export type DeleteLoginEvent401 = { +export type AddTagToFeatures401 = { /** The ID of the error instance */ id?: string; /** The name of the error kind */ diff --git a/frontend/src/openapi/models/deleteLoginEvent404.ts b/frontend/src/openapi/models/addTagToFeatures403.ts similarity index 88% rename from frontend/src/openapi/models/deleteLoginEvent404.ts rename to frontend/src/openapi/models/addTagToFeatures403.ts index 49290c0466..f9bba0d679 100644 --- a/frontend/src/openapi/models/deleteLoginEvent404.ts +++ b/frontend/src/openapi/models/addTagToFeatures403.ts @@ -4,7 +4,7 @@ * See `gen:api` script in package.json */ -export type DeleteLoginEvent404 = { +export type AddTagToFeatures403 = { /** The ID of the error instance */ id?: string; /** The name of the error kind */ diff --git a/frontend/src/openapi/models/deleteLoginEvent400.ts b/frontend/src/openapi/models/addTagToFeatures404.ts similarity index 88% rename from frontend/src/openapi/models/deleteLoginEvent400.ts rename to frontend/src/openapi/models/addTagToFeatures404.ts index 181aa3725f..95b39be5df 100644 --- a/frontend/src/openapi/models/deleteLoginEvent400.ts +++ b/frontend/src/openapi/models/addTagToFeatures404.ts @@ -4,7 +4,7 @@ * See `gen:api` script in package.json */ -export type DeleteLoginEvent400 = { +export type AddTagToFeatures404 = { /** The ID of the error instance */ id?: string; /** The name of the error kind */ diff --git a/frontend/src/openapi/models/addTagToFeatures415.ts b/frontend/src/openapi/models/addTagToFeatures415.ts new file mode 100644 index 0000000000..ccd2a5b762 --- /dev/null +++ b/frontend/src/openapi/models/addTagToFeatures415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AddTagToFeatures415 = { + /** 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/addonTypeSchema.ts b/frontend/src/openapi/models/addonTypeSchema.ts index d238d78a0b..01c401b1ba 100644 --- a/frontend/src/openapi/models/addonTypeSchema.ts +++ b/frontend/src/openapi/models/addonTypeSchema.ts @@ -5,6 +5,8 @@ */ import type { TagTypeSchema } from './tagTypeSchema'; import type { AddonParameterSchema } from './addonParameterSchema'; +import type { AddonTypeSchemaInstallation } from './addonTypeSchemaInstallation'; +import type { AddonTypeSchemaAlertsItem } from './addonTypeSchemaAlertsItem'; /** * An addon provider. Defines a specific addon type and what the end user must configure when creating a new addon of that type. @@ -24,4 +26,10 @@ export interface AddonTypeSchema { parameters?: AddonParameterSchema[]; /** All the [event types](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#feature-toggle-events) that are available for this addon provider. */ events?: string[]; + /** The installation configuration for this addon type. */ + installation?: AddonTypeSchemaInstallation; + /** A list of alerts to display to the user when installing addons of this type. */ + alerts?: AddonTypeSchemaAlertsItem[]; + /** This should be used to inform the user that this addon type is deprecated and should not be used. Deprecated addons will show a badge with this information on the UI. */ + deprecated?: string; } diff --git a/frontend/src/openapi/models/addonTypeSchemaAlertsItem.ts b/frontend/src/openapi/models/addonTypeSchemaAlertsItem.ts new file mode 100644 index 0000000000..8d81a649c4 --- /dev/null +++ b/frontend/src/openapi/models/addonTypeSchemaAlertsItem.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AddonTypeSchemaAlertsItemType } from './addonTypeSchemaAlertsItemType'; + +export type AddonTypeSchemaAlertsItem = { + /** The type of alert. This determines the color of the alert. */ + type: AddonTypeSchemaAlertsItemType; + /** The text of the alert. This is what will be displayed to the user. */ + text: string; +}; diff --git a/frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts b/frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts new file mode 100644 index 0000000000..04da497176 --- /dev/null +++ b/frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts @@ -0,0 +1,19 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The type of alert. This determines the color of the alert. + */ +export type AddonTypeSchemaAlertsItemType = + typeof AddonTypeSchemaAlertsItemType[keyof typeof AddonTypeSchemaAlertsItemType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AddonTypeSchemaAlertsItemType = { + success: 'success', + info: 'info', + warning: 'warning', + error: 'error', +} as const; diff --git a/frontend/src/openapi/models/addonTypeSchemaInstallation.ts b/frontend/src/openapi/models/addonTypeSchemaInstallation.ts new file mode 100644 index 0000000000..7b57a550c6 --- /dev/null +++ b/frontend/src/openapi/models/addonTypeSchemaInstallation.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The installation configuration for this addon type. + */ +export type AddonTypeSchemaInstallation = { + /** A URL to where the addon configuration should redirect to install addons of this type. */ + url: string; + /** The title of the installation configuration. This will be displayed to the user when installing addons of this type. */ + title?: string; + /** The help text of the installation configuration. This will be displayed to the user when installing addons of this type. */ + helpText?: string; +}; diff --git a/frontend/src/openapi/models/adminPermissionSchema.ts b/frontend/src/openapi/models/adminPermissionSchema.ts index 7f597289ab..86c11791d0 100644 --- a/frontend/src/openapi/models/adminPermissionSchema.ts +++ b/frontend/src/openapi/models/adminPermissionSchema.ts @@ -4,10 +4,18 @@ * See `gen:api` script in package.json */ +/** + * Describes a single permission + */ export interface AdminPermissionSchema { + /** The identifier for this permission */ id: number; + /** The name of this permission */ name: string; + /** The name to display in listings of permissions */ displayName: string; + /** What level this permission applies to. Either root, project or the name of the environment it applies to */ type: string; + /** Which environment this permission applies to */ environment?: string; } diff --git a/frontend/src/openapi/models/adminPermissionsSchema.ts b/frontend/src/openapi/models/adminPermissionsSchema.ts index 3a582ba8bb..6104650e9e 100644 --- a/frontend/src/openapi/models/adminPermissionsSchema.ts +++ b/frontend/src/openapi/models/adminPermissionsSchema.ts @@ -4,8 +4,14 @@ * See `gen:api` script in package.json */ import type { AdminPermissionsSchemaPermissions } from './adminPermissionsSchemaPermissions'; +import type { AdminPermissionsSchemaVersion } from './adminPermissionsSchemaVersion'; +/** + * What kind of permissions are available + */ export interface AdminPermissionsSchema { + /** Returns permissions available at all three levels (root|project|environment) */ permissions: AdminPermissionsSchemaPermissions; - version: number; + /** The api version of this response. A natural increasing number. Only increases if format changes */ + version: AdminPermissionsSchemaVersion; } diff --git a/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts b/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts index 04f48067c5..d0e779e41a 100644 --- a/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts +++ b/frontend/src/openapi/models/adminPermissionsSchemaPermissions.ts @@ -6,8 +6,14 @@ import type { AdminPermissionSchema } from './adminPermissionSchema'; import type { AdminPermissionsSchemaPermissionsEnvironmentsItem } from './adminPermissionsSchemaPermissionsEnvironmentsItem'; +/** + * Returns permissions available at all three levels (root|project|environment) + */ export type AdminPermissionsSchemaPermissions = { + /** Permissions available at the root level, i.e. not connected to any specific project or environment */ root?: AdminPermissionSchema[]; + /** Permissions available at the project level */ project: AdminPermissionSchema[]; + /** A list of environments with available permissions per environment */ environments: AdminPermissionsSchemaPermissionsEnvironmentsItem[]; }; diff --git a/frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts b/frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts index 48eb5e81d8..fe2762e226 100644 --- a/frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts +++ b/frontend/src/openapi/models/adminPermissionsSchemaPermissionsEnvironmentsItem.ts @@ -6,6 +6,8 @@ import type { AdminPermissionSchema } from './adminPermissionSchema'; export type AdminPermissionsSchemaPermissionsEnvironmentsItem = { + /** The name of the environment */ name: string; + /** Permissions available for this environment */ permissions: AdminPermissionSchema[]; }; diff --git a/frontend/src/openapi/models/adminPermissionsSchemaVersion.ts b/frontend/src/openapi/models/adminPermissionsSchemaVersion.ts new file mode 100644 index 0000000000..acdf6e47ff --- /dev/null +++ b/frontend/src/openapi/models/adminPermissionsSchemaVersion.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The api version of this response. A natural increasing number. Only increases if format changes + */ +export type AdminPermissionsSchemaVersion = + typeof AdminPermissionsSchemaVersion[keyof typeof AdminPermissionsSchemaVersion]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AdminPermissionsSchemaVersion = { + NUMBER_1: 1, + NUMBER_2: 2, +} as const; diff --git a/frontend/src/openapi/models/adminSegmentSchema.ts b/frontend/src/openapi/models/adminSegmentSchema.ts index bf70cdb18f..38419937e1 100644 --- a/frontend/src/openapi/models/adminSegmentSchema.ts +++ b/frontend/src/openapi/models/adminSegmentSchema.ts @@ -6,17 +6,17 @@ import type { ConstraintSchema } from './constraintSchema'; export interface AdminSegmentSchema { - /** The id of a segment */ + /** The ID of this segment */ id: number; - /** The name of a segment */ + /** The name of this segment */ name: string; - /** The description for a segment */ + /** The description for this segment */ description?: string | null; - /** List of constraints that are used in this segment */ + /** The list of constraints that are used in this segment */ constraints: ConstraintSchema[]; - /** Number of projects where this segment is used in */ + /** The number of projects that use this segment */ usedInFeatures?: number | null; - /** Number of projects where this segment is used in */ + /** The number of projects that use this segment */ usedInProjects?: number | null; project?: string | null; /** The creator's email or username */ diff --git a/frontend/src/openapi/models/adminStrategiesSchema.ts b/frontend/src/openapi/models/adminStrategiesSchema.ts new file mode 100644 index 0000000000..2d90eccd8f --- /dev/null +++ b/frontend/src/openapi/models/adminStrategiesSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { AdminStrategiesSchemaStrategiesItem } from './adminStrategiesSchemaStrategiesItem'; + +/** + * A collection of strategies belonging to a specified segment. + */ +export interface AdminStrategiesSchema { + /** The list of strategies */ + strategies: AdminStrategiesSchemaStrategiesItem[]; +} diff --git a/frontend/src/openapi/models/adminStrategiesSchemaStrategiesItem.ts b/frontend/src/openapi/models/adminStrategiesSchemaStrategiesItem.ts new file mode 100644 index 0000000000..3171df4951 --- /dev/null +++ b/frontend/src/openapi/models/adminStrategiesSchemaStrategiesItem.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type AdminStrategiesSchemaStrategiesItem = { + /** The ID of the strategy */ + id: string; + /** The ID of the strategy */ + featureName: string; + /** The ID of the project that the strategy belongs to. */ + projectId: string; + /** The ID of the environment that the strategy belongs to. */ + environment: string; + /** The name of the strategy's type. */ + strategyName: string; +}; diff --git a/frontend/src/openapi/models/apiTokensSchema.ts b/frontend/src/openapi/models/apiTokensSchema.ts index be185cba80..797e09a1be 100644 --- a/frontend/src/openapi/models/apiTokensSchema.ts +++ b/frontend/src/openapi/models/apiTokensSchema.ts @@ -6,9 +6,9 @@ import type { ApiTokenSchema } from './apiTokenSchema'; /** - * Contains a list of API tokens. + * An object with [Unleash API tokens](https://docs.getunleash.io/reference/api-tokens-and-client-keys) */ export interface ApiTokensSchema { - /** A list of API tokens. */ + /** A list of Unleash API tokens. */ tokens: ApiTokenSchema[]; } diff --git a/frontend/src/openapi/models/archiveFeature403.ts b/frontend/src/openapi/models/archiveFeature403.ts new file mode 100644 index 0000000000..5d9530de89 --- /dev/null +++ b/frontend/src/openapi/models/archiveFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveFeature403 = { + /** 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/archiveFeatures400.ts b/frontend/src/openapi/models/archiveFeatures400.ts new file mode 100644 index 0000000000..d4fe8a788c --- /dev/null +++ b/frontend/src/openapi/models/archiveFeatures400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveFeatures400 = { + /** 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/archiveFeatures401.ts b/frontend/src/openapi/models/archiveFeatures401.ts new file mode 100644 index 0000000000..623ff2a41e --- /dev/null +++ b/frontend/src/openapi/models/archiveFeatures401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveFeatures401 = { + /** 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/archiveFeatures403.ts b/frontend/src/openapi/models/archiveFeatures403.ts new file mode 100644 index 0000000000..df60678a64 --- /dev/null +++ b/frontend/src/openapi/models/archiveFeatures403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveFeatures403 = { + /** 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/archiveFeatures415.ts b/frontend/src/openapi/models/archiveFeatures415.ts new file mode 100644 index 0000000000..e22a36242e --- /dev/null +++ b/frontend/src/openapi/models/archiveFeatures415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ArchiveFeatures415 = { + /** 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/batchFeaturesSchema.ts b/frontend/src/openapi/models/batchFeaturesSchema.ts index 0f9b1e4d4e..9921842bda 100644 --- a/frontend/src/openapi/models/batchFeaturesSchema.ts +++ b/frontend/src/openapi/models/batchFeaturesSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * A list of feature toggle names for batch operations + */ export interface BatchFeaturesSchema { + /** List of feature toggle names */ features: string[]; } diff --git a/frontend/src/openapi/models/batchStaleSchema.ts b/frontend/src/openapi/models/batchStaleSchema.ts index f14ca60e64..590a3e47f9 100644 --- a/frontend/src/openapi/models/batchStaleSchema.ts +++ b/frontend/src/openapi/models/batchStaleSchema.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * A list of features to operate on and whether they should be marked as stale or as not stale. + */ export interface BatchStaleSchema { + /** A list of features to mark as (not) stale */ features: string[]; + /** Whether the list of features should be marked as stale or not stale. If `true`, the features will be marked as stale. If `false`, the features will be marked as not stale. */ stale: boolean; } diff --git a/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff400.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff400.ts new file mode 100644 index 0000000000..095d6899ec --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOff400 = { + /** 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/bulkToggleFeaturesEnvironmentOff401.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff401.ts new file mode 100644 index 0000000000..771560261c --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOff401 = { + /** 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/bulkToggleFeaturesEnvironmentOff403.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff403.ts new file mode 100644 index 0000000000..bb0728ab74 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOff403 = { + /** 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/bulkToggleFeaturesEnvironmentOff404.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff404.ts new file mode 100644 index 0000000000..7d713d48a0 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOff404 = { + /** 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/bulkToggleFeaturesEnvironmentOff413.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff413.ts new file mode 100644 index 0000000000..35f977e59a --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff413.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOff413 = { + /** 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/bulkToggleFeaturesEnvironmentOff415.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff415.ts new file mode 100644 index 0000000000..c3d75fd491 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOff415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOff415 = { + /** 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/bulkToggleFeaturesEnvironmentOn400.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn400.ts new file mode 100644 index 0000000000..30b6b2b2d3 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOn400 = { + /** 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/bulkToggleFeaturesEnvironmentOn401.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn401.ts new file mode 100644 index 0000000000..ee9f8ad969 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOn401 = { + /** 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/bulkToggleFeaturesEnvironmentOn403.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn403.ts new file mode 100644 index 0000000000..003e326c73 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOn403 = { + /** 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/bulkToggleFeaturesEnvironmentOn404.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn404.ts new file mode 100644 index 0000000000..bda3c1c091 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOn404 = { + /** 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/bulkToggleFeaturesEnvironmentOn413.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn413.ts new file mode 100644 index 0000000000..658232f903 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn413.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOn413 = { + /** 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/bulkToggleFeaturesEnvironmentOn415.ts b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn415.ts new file mode 100644 index 0000000000..c896d83b84 --- /dev/null +++ b/frontend/src/openapi/models/bulkToggleFeaturesEnvironmentOn415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type BulkToggleFeaturesEnvironmentOn415 = { + /** 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/changePassword401.ts b/frontend/src/openapi/models/changePassword401.ts new file mode 100644 index 0000000000..0a7972a5fb --- /dev/null +++ b/frontend/src/openapi/models/changePassword401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangePassword401 = { + /** 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/changePassword403.ts b/frontend/src/openapi/models/changePassword403.ts new file mode 100644 index 0000000000..95d4d214bf --- /dev/null +++ b/frontend/src/openapi/models/changePassword403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangePassword403 = { + /** 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/changePassword415.ts b/frontend/src/openapi/models/changePassword415.ts new file mode 100644 index 0000000000..d0278686ae --- /dev/null +++ b/frontend/src/openapi/models/changePassword415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangePassword415 = { + /** 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/changePasswordSchema.ts b/frontend/src/openapi/models/changePasswordSchema.ts index ebe3b2db64..a4bcb74aed 100644 --- a/frontend/src/openapi/models/changePasswordSchema.ts +++ b/frontend/src/openapi/models/changePasswordSchema.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * Change password as long as the token is a valid token + */ export interface ChangePasswordSchema { + /** A reset token used to validate that the user is allowed to change the password. */ token: string; + /** The new password for the user */ password: string; } diff --git a/frontend/src/openapi/models/changeProject403.ts b/frontend/src/openapi/models/changeProject403.ts new file mode 100644 index 0000000000..7b20bb9d50 --- /dev/null +++ b/frontend/src/openapi/models/changeProject403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeProject403 = { + /** 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/changeProject404.ts b/frontend/src/openapi/models/changeProject404.ts new file mode 100644 index 0000000000..6fde86df07 --- /dev/null +++ b/frontend/src/openapi/models/changeProject404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeProject404 = { + /** 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/changeProject415.ts b/frontend/src/openapi/models/changeProject415.ts new file mode 100644 index 0000000000..2b00d40749 --- /dev/null +++ b/frontend/src/openapi/models/changeProject415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeProject415 = { + /** 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/changeProjectSchema.ts b/frontend/src/openapi/models/changeProjectSchema.ts index c1e1c96c6c..986d70d459 100644 --- a/frontend/src/openapi/models/changeProjectSchema.ts +++ b/frontend/src/openapi/models/changeProjectSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * Data required to move a feature toggle to a project. + */ export interface ChangeProjectSchema { + /** The project to move the feature toggle to. */ newProjectId: string; } diff --git a/frontend/src/openapi/models/changeRequestEditTitleSchema.ts b/frontend/src/openapi/models/changeRequestUpdateTitleSchema.ts similarity index 70% rename from frontend/src/openapi/models/changeRequestEditTitleSchema.ts rename to frontend/src/openapi/models/changeRequestUpdateTitleSchema.ts index 65460d4fed..9300f1236c 100644 --- a/frontend/src/openapi/models/changeRequestEditTitleSchema.ts +++ b/frontend/src/openapi/models/changeRequestUpdateTitleSchema.ts @@ -4,6 +4,6 @@ * See `gen:api` script in package.json */ -export interface ChangeRequestEditTitleSchema { +export interface ChangeRequestUpdateTitleSchema { title: string; } diff --git a/frontend/src/openapi/models/changeUserPassword400.ts b/frontend/src/openapi/models/changeUserPassword400.ts new file mode 100644 index 0000000000..483e455108 --- /dev/null +++ b/frontend/src/openapi/models/changeUserPassword400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeUserPassword400 = { + /** 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/changeUserPassword401.ts b/frontend/src/openapi/models/changeUserPassword401.ts new file mode 100644 index 0000000000..951320e572 --- /dev/null +++ b/frontend/src/openapi/models/changeUserPassword401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeUserPassword401 = { + /** 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/changeUserPassword403.ts b/frontend/src/openapi/models/changeUserPassword403.ts new file mode 100644 index 0000000000..bc982be8c3 --- /dev/null +++ b/frontend/src/openapi/models/changeUserPassword403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ChangeUserPassword403 = { + /** 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/clientFeaturesSchema.ts b/frontend/src/openapi/models/clientFeaturesSchema.ts index b986324f3c..e843f85179 100644 --- a/frontend/src/openapi/models/clientFeaturesSchema.ts +++ b/frontend/src/openapi/models/clientFeaturesSchema.ts @@ -4,7 +4,7 @@ * See `gen:api` script in package.json */ import type { ClientFeatureSchema } from './clientFeatureSchema'; -import type { SegmentSchema } from './segmentSchema'; +import type { ClientSegmentSchema } from './clientSegmentSchema'; import type { ClientFeaturesQuerySchema } from './clientFeaturesQuerySchema'; /** @@ -16,7 +16,7 @@ export interface ClientFeaturesSchema { /** A list of feature toggles with their configuration */ features: ClientFeatureSchema[]; /** A list of [Segments](https://docs.getunleash.io/reference/segments) configured for this Unleash instance */ - segments?: SegmentSchema[]; + segments?: ClientSegmentSchema[]; /** A summary of filters and parameters sent to the endpoint. Used by the server to build the features and segments response */ query?: ClientFeaturesQuerySchema; } diff --git a/frontend/src/openapi/models/clientSegmentSchema.ts b/frontend/src/openapi/models/clientSegmentSchema.ts new file mode 100644 index 0000000000..610de0c3e3 --- /dev/null +++ b/frontend/src/openapi/models/clientSegmentSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ConstraintSchema } from './constraintSchema'; + +/** + * Represents a client API segment of users defined by a set of constraints. + */ +export interface ClientSegmentSchema { + /** The segment's id. */ + id: number; + /** The name of the segment. */ + name?: string; + /** List of constraints that determine which users are part of the segment */ + constraints: ConstraintSchema[]; +} diff --git a/frontend/src/openapi/models/cloneFeature401.ts b/frontend/src/openapi/models/cloneFeature401.ts new file mode 100644 index 0000000000..4cdf53827b --- /dev/null +++ b/frontend/src/openapi/models/cloneFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CloneFeature401 = { + /** 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/cloneFeature403.ts b/frontend/src/openapi/models/cloneFeature403.ts new file mode 100644 index 0000000000..3cc825c5e5 --- /dev/null +++ b/frontend/src/openapi/models/cloneFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CloneFeature403 = { + /** 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/cloneFeature404.ts b/frontend/src/openapi/models/cloneFeature404.ts new file mode 100644 index 0000000000..7dba2d1e60 --- /dev/null +++ b/frontend/src/openapi/models/cloneFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CloneFeature404 = { + /** 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/cloneFeature415.ts b/frontend/src/openapi/models/cloneFeature415.ts new file mode 100644 index 0000000000..cfad7b23c0 --- /dev/null +++ b/frontend/src/openapi/models/cloneFeature415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CloneFeature415 = { + /** 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/cloneFeatureSchema.ts b/frontend/src/openapi/models/cloneFeatureSchema.ts index df71b1b0ac..1c7b61c101 100644 --- a/frontend/src/openapi/models/cloneFeatureSchema.ts +++ b/frontend/src/openapi/models/cloneFeatureSchema.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * Copy of a feature with a new name + */ export interface CloneFeatureSchema { + /** The name of the new feature */ name: string; + /** Whether to use the new feature name as its group ID or not. Group ID is used for calculating [stickiness](https://docs.getunleash.io/reference/stickiness#calculation). Defaults to true. */ replaceGroupId?: boolean; } diff --git a/frontend/src/openapi/models/contextFieldSchema.ts b/frontend/src/openapi/models/contextFieldSchema.ts index 638cf53776..3f9c118019 100644 --- a/frontend/src/openapi/models/contextFieldSchema.ts +++ b/frontend/src/openapi/models/contextFieldSchema.ts @@ -5,15 +5,24 @@ */ import type { LegalValueSchema } from './legalValueSchema'; +/** + * A representation of a [context field](https://docs.getunleash.io/reference/unleash-context). + */ export interface ContextFieldSchema { + /** The name of the context field */ name: string; + /** The description of the context field. */ description?: string | null; + /** Does this context field support being used for [stickiness](https://docs.getunleash.io/reference/stickiness) calculations */ stickiness?: boolean; + /** Used when sorting a list of context fields. Is also used as a tiebreaker if a list of context fields is sorted alphabetically. */ sortOrder?: number; + /** When this context field was created */ 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; + /** Allowed values for this context field schema. Can be used to narrow down accepted input */ legalValues?: LegalValueSchema[]; } diff --git a/frontend/src/openapi/models/contextFieldStrategiesSchema.ts b/frontend/src/openapi/models/contextFieldStrategiesSchema.ts index c9d16d0785..8077bc3ceb 100644 --- a/frontend/src/openapi/models/contextFieldStrategiesSchema.ts +++ b/frontend/src/openapi/models/contextFieldStrategiesSchema.ts @@ -6,7 +6,7 @@ import type { ContextFieldStrategiesSchemaStrategiesItem } from './contextFieldStrategiesSchemaStrategiesItem'; /** - * A wrapper object containing all for strategies using a specific context field + * A wrapper object containing all strategies that use a specific context field */ export interface ContextFieldStrategiesSchema { /** List of strategies using the context field */ diff --git a/frontend/src/openapi/models/contextFieldsSchema.ts b/frontend/src/openapi/models/contextFieldsSchema.ts index d64021fae3..cd48c1d509 100644 --- a/frontend/src/openapi/models/contextFieldsSchema.ts +++ b/frontend/src/openapi/models/contextFieldsSchema.ts @@ -5,4 +5,7 @@ */ import type { ContextFieldSchema } from './contextFieldSchema'; +/** + * A list of context fields + */ export type ContextFieldsSchema = ContextFieldSchema[]; diff --git a/frontend/src/openapi/models/createApiToken401.ts b/frontend/src/openapi/models/createApiToken401.ts new file mode 100644 index 0000000000..0f6914ec05 --- /dev/null +++ b/frontend/src/openapi/models/createApiToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiToken401 = { + /** 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/createApiToken403.ts b/frontend/src/openapi/models/createApiToken403.ts new file mode 100644 index 0000000000..f57f67a484 --- /dev/null +++ b/frontend/src/openapi/models/createApiToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiToken403 = { + /** 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/createApiToken415.ts b/frontend/src/openapi/models/createApiToken415.ts new file mode 100644 index 0000000000..c1e373b692 --- /dev/null +++ b/frontend/src/openapi/models/createApiToken415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiToken415 = { + /** 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 dd4d84c2f9..196cea6323 100644 --- a/frontend/src/openapi/models/createApiTokenSchema.ts +++ b/frontend/src/openapi/models/createApiTokenSchema.ts @@ -3,25 +3,28 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { CreateApiTokenSchemaAnyOf } from './createApiTokenSchemaAnyOf'; -import type { CreateApiTokenSchemaAnyOfTwo } from './createApiTokenSchemaAnyOfTwo'; +import type { CreateApiTokenSchemaOneOf } from './createApiTokenSchemaOneOf'; +import type { CreateApiTokenSchemaOneOfFour } from './createApiTokenSchemaOneOfFour'; +import type { CreateApiTokenSchemaOneOfSeven } from './createApiTokenSchemaOneOfSeven'; +import type { CreateApiTokenSchemaOneOfOnezero } from './createApiTokenSchemaOneOfOnezero'; +/** + * The data required to create an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys). + */ export type CreateApiTokenSchema = - | (CreateApiTokenSchemaAnyOf & { - secret?: string; - /** One of client, admin, frontend */ - type: string; - environment?: string; - project?: string; - projects?: string[]; - expiresAt?: string | null; + | (CreateApiTokenSchemaOneOf & { + /** The time when this token should expire. */ + expiresAt?: string; }) - | (CreateApiTokenSchemaAnyOfTwo & { - secret?: string; - /** One of client, admin, frontend */ - type: string; - environment?: string; - project?: string; - projects?: string[]; - expiresAt?: string | null; + | (CreateApiTokenSchemaOneOfFour & { + /** The time when this token should expire. */ + expiresAt?: string; + }) + | (CreateApiTokenSchemaOneOfSeven & { + /** The time when this token should expire. */ + expiresAt?: string; + }) + | (CreateApiTokenSchemaOneOfOnezero & { + /** The time when this token should expire. */ + expiresAt?: string; }); diff --git a/frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts b/frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts deleted file mode 100644 index f513134e89..0000000000 --- a/frontend/src/openapi/models/createApiTokenSchemaAnyOf.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * 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/createApiTokenSchemaOneOf.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOf.ts new file mode 100644 index 0000000000..a444e0596a --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOf.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateApiTokenSchemaOneOfAllOf } from './createApiTokenSchemaOneOfAllOf'; +import type { CreateApiTokenSchemaOneOfAllOfTwo } from './createApiTokenSchemaOneOfAllOfTwo'; + +export type CreateApiTokenSchemaOneOf = CreateApiTokenSchemaOneOfAllOf & + CreateApiTokenSchemaOneOfAllOfTwo; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfAllOf.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfAllOf.ts new file mode 100644 index 0000000000..f303e1f901 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfAllOf.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaOneOfAllOf = { + /** An admin token. Must be the string "admin" (not case sensitive). */ + type: string; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchemaAnyOfTwo.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfAllOfTwo.ts similarity index 59% rename from frontend/src/openapi/models/createApiTokenSchemaAnyOfTwo.ts rename to frontend/src/openapi/models/createApiTokenSchemaOneOfAllOfTwo.ts index 002afff451..f0fd738e7a 100644 --- a/frontend/src/openapi/models/createApiTokenSchemaAnyOfTwo.ts +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfAllOfTwo.ts @@ -4,6 +4,7 @@ * See `gen:api` script in package.json */ -export type CreateApiTokenSchemaAnyOfTwo = { +export type CreateApiTokenSchemaOneOfAllOfTwo = { + /** The name of the token. */ tokenName: string; }; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfFour.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfFour.ts new file mode 100644 index 0000000000..93fb50a1a2 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfFour.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateApiTokenSchemaOneOfFourAllOf } from './createApiTokenSchemaOneOfFourAllOf'; +import type { CreateApiTokenSchemaOneOfFourAllOfTwo } from './createApiTokenSchemaOneOfFourAllOfTwo'; + +export type CreateApiTokenSchemaOneOfFour = CreateApiTokenSchemaOneOfFourAllOf & + CreateApiTokenSchemaOneOfFourAllOfTwo; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOf.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOf.ts new file mode 100644 index 0000000000..423c70d5d2 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOf.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaOneOfFourAllOf = { + /** An admin token. Must be the string "admin" (not case sensitive). */ + type: string; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOfTwo.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOfTwo.ts new file mode 100644 index 0000000000..103323ca1b --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfFourAllOfTwo.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaOneOfFourAllOfTwo = { + /** + * The name of the token. This property is deprecated. Use `tokenName` instead. + * @deprecated + */ + username: string; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezero.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezero.ts new file mode 100644 index 0000000000..a09930a82f --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezero.ts @@ -0,0 +1,11 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateApiTokenSchemaOneOfOnezeroAllOf } from './createApiTokenSchemaOneOfOnezeroAllOf'; +import type { CreateApiTokenSchemaOneOfOnezeroAllOfTwo } from './createApiTokenSchemaOneOfOnezeroAllOfTwo'; + +export type CreateApiTokenSchemaOneOfOnezero = + CreateApiTokenSchemaOneOfOnezeroAllOf & + CreateApiTokenSchemaOneOfOnezeroAllOfTwo; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOf.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOf.ts new file mode 100644 index 0000000000..d272b02686 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOf.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaOneOfOnezeroAllOf = { + /** A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive). */ + type: string; + /** The environment that the token should be valid for. Defaults to "default" */ + environment?: string; + /** The project that the token should be valid for. Defaults to "*" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other. */ + project?: string; + /** A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other. */ + projects?: string[]; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOfTwo.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOfTwo.ts new file mode 100644 index 0000000000..8a16bc50bb --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfOnezeroAllOfTwo.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaOneOfOnezeroAllOfTwo = { + /** + * The name of the token. This property is deprecated. Use `tokenName` instead. + * @deprecated + */ + username: string; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfSeven.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfSeven.ts new file mode 100644 index 0000000000..e21e9a826c --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfSeven.ts @@ -0,0 +1,11 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateApiTokenSchemaOneOfSevenAllOf } from './createApiTokenSchemaOneOfSevenAllOf'; +import type { CreateApiTokenSchemaOneOfSevenAllOfTwo } from './createApiTokenSchemaOneOfSevenAllOfTwo'; + +export type CreateApiTokenSchemaOneOfSeven = + CreateApiTokenSchemaOneOfSevenAllOf & + CreateApiTokenSchemaOneOfSevenAllOfTwo; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOf.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOf.ts new file mode 100644 index 0000000000..d33d7d2ef9 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOf.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaOneOfSevenAllOf = { + /** A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive). */ + type: string; + /** The environment that the token should be valid for. Defaults to "default" */ + environment?: string; + /** The project that the token should be valid for. Defaults to "*" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other. */ + project?: string; + /** A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other. */ + projects?: string[]; +}; diff --git a/frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOfTwo.ts b/frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOfTwo.ts new file mode 100644 index 0000000000..a14c02dbd2 --- /dev/null +++ b/frontend/src/openapi/models/createApiTokenSchemaOneOfSevenAllOfTwo.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateApiTokenSchemaOneOfSevenAllOfTwo = { + /** The name of the token. */ + tokenName: string; +}; diff --git a/frontend/src/openapi/models/createFeature401.ts b/frontend/src/openapi/models/createFeature401.ts new file mode 100644 index 0000000000..d6455796a6 --- /dev/null +++ b/frontend/src/openapi/models/createFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateFeature401 = { + /** 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/createFeature403.ts b/frontend/src/openapi/models/createFeature403.ts new file mode 100644 index 0000000000..17b1fcfedd --- /dev/null +++ b/frontend/src/openapi/models/createFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateFeature403 = { + /** 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/createFeature404.ts b/frontend/src/openapi/models/createFeature404.ts new file mode 100644 index 0000000000..f511647cf3 --- /dev/null +++ b/frontend/src/openapi/models/createFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateFeature404 = { + /** 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/createFeature415.ts b/frontend/src/openapi/models/createFeature415.ts new file mode 100644 index 0000000000..902e3fdea9 --- /dev/null +++ b/frontend/src/openapi/models/createFeature415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateFeature415 = { + /** 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/createFeatureSchema.ts b/frontend/src/openapi/models/createFeatureSchema.ts index b3359fbc77..293c2e5544 100644 --- a/frontend/src/openapi/models/createFeatureSchema.ts +++ b/frontend/src/openapi/models/createFeatureSchema.ts @@ -5,8 +5,12 @@ */ export interface CreateFeatureSchema { + /** Unique feature name */ name: string; + /** The feature toggle's [type](https://docs.getunleash.io/reference/feature-toggle-types). One of experiment, kill-switch, release, operational, or permission */ type?: string; - description?: string; + /** Detailed description of the feature */ + description?: string | null; + /** `true` if the impression data collection is enabled for the feature, otherwise `false`. */ impressionData?: boolean; } diff --git a/frontend/src/openapi/models/createFeatureStrategySchema.ts b/frontend/src/openapi/models/createFeatureStrategySchema.ts index 4eec944145..02fd43a431 100644 --- a/frontend/src/openapi/models/createFeatureStrategySchema.ts +++ b/frontend/src/openapi/models/createFeatureStrategySchema.ts @@ -4,10 +4,14 @@ * See `gen:api` script in package.json */ import type { ConstraintSchema } from './constraintSchema'; +import type { CreateStrategyVariantSchema } from './createStrategyVariantSchema'; import type { ParametersSchema } from './parametersSchema'; +/** + * Create a strategy configuration in a feature + */ export interface CreateFeatureStrategySchema { - /** The name or type of strategy */ + /** The name of the strategy type */ name: string; /** A descriptive title for the strategy */ title?: string | null; @@ -15,8 +19,10 @@ export interface CreateFeatureStrategySchema { disabled?: boolean | null; /** The order of the strategy in the list */ sortOrder?: number; - /** A list of the constraints attached to the strategy */ + /** A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints */ constraints?: ConstraintSchema[]; + /** Strategy level variants */ + variants?: CreateStrategyVariantSchema[]; /** An object containing the parameters for the strategy */ parameters?: ParametersSchema; /** Ids of segments to use for this strategy */ diff --git a/frontend/src/openapi/models/createFeedback400.ts b/frontend/src/openapi/models/createFeedback400.ts new file mode 100644 index 0000000000..7af9a5a353 --- /dev/null +++ b/frontend/src/openapi/models/createFeedback400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateFeedback400 = { + /** 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/createFeedback401.ts b/frontend/src/openapi/models/createFeedback401.ts new file mode 100644 index 0000000000..de35ac003d --- /dev/null +++ b/frontend/src/openapi/models/createFeedback401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateFeedback401 = { + /** 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/createFeedback415.ts b/frontend/src/openapi/models/createFeedback415.ts new file mode 100644 index 0000000000..f3439ebf19 --- /dev/null +++ b/frontend/src/openapi/models/createFeedback415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateFeedback415 = { + /** 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/createSegment415.ts b/frontend/src/openapi/models/createSegment415.ts new file mode 100644 index 0000000000..c70ff43bd6 --- /dev/null +++ b/frontend/src/openapi/models/createSegment415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateSegment415 = { + /** 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/createServiceAccount400.ts b/frontend/src/openapi/models/createServiceAccount400.ts new file mode 100644 index 0000000000..8b05e2c275 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccount400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccount400 = { + /** 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/createServiceAccount401.ts b/frontend/src/openapi/models/createServiceAccount401.ts new file mode 100644 index 0000000000..e8dae27070 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccount401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccount401 = { + /** 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/createServiceAccount403.ts b/frontend/src/openapi/models/createServiceAccount403.ts new file mode 100644 index 0000000000..c095a2fe4c --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccount403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccount403 = { + /** 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/createServiceAccount409.ts b/frontend/src/openapi/models/createServiceAccount409.ts new file mode 100644 index 0000000000..9e29df25d5 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccount409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccount409 = { + /** 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/createServiceAccount415.ts b/frontend/src/openapi/models/createServiceAccount415.ts new file mode 100644 index 0000000000..f389892787 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccount415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccount415 = { + /** 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/createServiceAccountSchema.ts b/frontend/src/openapi/models/createServiceAccountSchema.ts index 27dfe82db4..ac4cb66c4b 100644 --- a/frontend/src/openapi/models/createServiceAccountSchema.ts +++ b/frontend/src/openapi/models/createServiceAccountSchema.ts @@ -4,8 +4,14 @@ * See `gen:api` script in package.json */ +/** + * Describes the properties required to create a new service account + */ export interface CreateServiceAccountSchema { + /** The username of the service account */ username?: string; + /** The name of the service account */ name?: string; + /** The id of the root role for the service account */ rootRole: number; } diff --git a/frontend/src/openapi/models/createServiceAccountToken401.ts b/frontend/src/openapi/models/createServiceAccountToken401.ts new file mode 100644 index 0000000000..94d59bb790 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccountToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccountToken401 = { + /** 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/createServiceAccountToken403.ts b/frontend/src/openapi/models/createServiceAccountToken403.ts new file mode 100644 index 0000000000..793af56871 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccountToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccountToken403 = { + /** 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/createServiceAccountToken404.ts b/frontend/src/openapi/models/createServiceAccountToken404.ts new file mode 100644 index 0000000000..4a6bb5d65a --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccountToken404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccountToken404 = { + /** 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/createServiceAccountToken409.ts b/frontend/src/openapi/models/createServiceAccountToken409.ts new file mode 100644 index 0000000000..7f695a3634 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccountToken409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccountToken409 = { + /** 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/createServiceAccountToken415.ts b/frontend/src/openapi/models/createServiceAccountToken415.ts new file mode 100644 index 0000000000..aee03636b1 --- /dev/null +++ b/frontend/src/openapi/models/createServiceAccountToken415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateServiceAccountToken415 = { + /** 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/createStrategy401.ts b/frontend/src/openapi/models/createStrategy401.ts new file mode 100644 index 0000000000..a614554306 --- /dev/null +++ b/frontend/src/openapi/models/createStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateStrategy401 = { + /** 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/createStrategy403.ts b/frontend/src/openapi/models/createStrategy403.ts new file mode 100644 index 0000000000..c62d914d17 --- /dev/null +++ b/frontend/src/openapi/models/createStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateStrategy403 = { + /** 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/createStrategy409.ts b/frontend/src/openapi/models/createStrategy409.ts new file mode 100644 index 0000000000..f11515762c --- /dev/null +++ b/frontend/src/openapi/models/createStrategy409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateStrategy409 = { + /** 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/createStrategy415.ts b/frontend/src/openapi/models/createStrategy415.ts new file mode 100644 index 0000000000..1ab705ad72 --- /dev/null +++ b/frontend/src/openapi/models/createStrategy415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateStrategy415 = { + /** 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/createStrategySchema.ts b/frontend/src/openapi/models/createStrategySchema.ts new file mode 100644 index 0000000000..1945e0ed34 --- /dev/null +++ b/frontend/src/openapi/models/createStrategySchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateStrategySchemaParametersItem } from './createStrategySchemaParametersItem'; + +/** + * The data required to create a strategy type. Refer to the docs on [custom strategy types](https://docs.getunleash.io/reference/custom-activation-strategies) for more information. + */ +export interface CreateStrategySchema { + /** The name of the strategy type. Must be unique. */ + name: string; + /** A description of the strategy type. */ + description?: string; + /** The parameter list lets you pass arguments to your custom activation strategy. These will be made available to your custom strategy implementation. */ + parameters: CreateStrategySchemaParametersItem[]; +} diff --git a/frontend/src/openapi/models/createStrategySchemaParametersItem.ts b/frontend/src/openapi/models/createStrategySchemaParametersItem.ts new file mode 100644 index 0000000000..d2fb9b52db --- /dev/null +++ b/frontend/src/openapi/models/createStrategySchemaParametersItem.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateStrategySchemaParametersItemType } from './createStrategySchemaParametersItemType'; + +export type CreateStrategySchemaParametersItem = { + /** The name of the parameter */ + name: string; + /** The [type of the parameter](https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types) */ + type: CreateStrategySchemaParametersItemType; + /** A description of this strategy parameter. Use this to indicate to the users what the parameter does. */ + description?: string; + /** Whether this parameter must be configured when using the strategy. Defaults to `false` */ + required?: boolean; +}; diff --git a/frontend/src/openapi/models/createStrategySchemaParametersItemType.ts b/frontend/src/openapi/models/createStrategySchemaParametersItemType.ts new file mode 100644 index 0000000000..0c725cd31e --- /dev/null +++ b/frontend/src/openapi/models/createStrategySchemaParametersItemType.ts @@ -0,0 +1,20 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The [type of the parameter](https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types) + */ +export type CreateStrategySchemaParametersItemType = + typeof CreateStrategySchemaParametersItemType[keyof typeof CreateStrategySchemaParametersItemType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const CreateStrategySchemaParametersItemType = { + string: 'string', + percentage: 'percentage', + list: 'list', + number: 'number', + boolean: 'boolean', +} as const; diff --git a/frontend/src/openapi/models/createStrategyVariantSchema.ts b/frontend/src/openapi/models/createStrategyVariantSchema.ts new file mode 100644 index 0000000000..3392198d46 --- /dev/null +++ b/frontend/src/openapi/models/createStrategyVariantSchema.ts @@ -0,0 +1,24 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateStrategyVariantSchemaWeightType } from './createStrategyVariantSchemaWeightType'; +import type { CreateStrategyVariantSchemaPayload } from './createStrategyVariantSchemaPayload'; + +/** + * This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants. + */ +export interface CreateStrategyVariantSchema { + /** The variant name. Must be unique for this feature toggle */ + name: string; + /** The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information */ + weight: number; + /** Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight). */ + weightType: CreateStrategyVariantSchemaWeightType; + /** The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time */ + stickiness: string; + /** Extra data configured for this variant */ + payload?: CreateStrategyVariantSchemaPayload; + [key: string]: any; +} diff --git a/frontend/src/openapi/models/createStrategyVariantSchemaPayload.ts b/frontend/src/openapi/models/createStrategyVariantSchemaPayload.ts new file mode 100644 index 0000000000..8b474406e7 --- /dev/null +++ b/frontend/src/openapi/models/createStrategyVariantSchemaPayload.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Extra data configured for this variant + */ +export type CreateStrategyVariantSchemaPayload = { + /** The type of the value. Commonly used types are string, json and csv. */ + type: string; + /** The actual value of payload */ + value: string; +}; diff --git a/frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts b/frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts new file mode 100644 index 0000000000..93eb582d69 --- /dev/null +++ b/frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight). + */ +export type CreateStrategyVariantSchemaWeightType = + typeof CreateStrategyVariantSchemaWeightType[keyof typeof CreateStrategyVariantSchemaWeightType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const CreateStrategyVariantSchemaWeightType = { + variable: 'variable', + fix: 'fix', +} as const; diff --git a/frontend/src/openapi/models/createTag400.ts b/frontend/src/openapi/models/createTag400.ts new file mode 100644 index 0000000000..96224cd402 --- /dev/null +++ b/frontend/src/openapi/models/createTag400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTag400 = { + /** 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/createTag401.ts b/frontend/src/openapi/models/createTag401.ts new file mode 100644 index 0000000000..079678019d --- /dev/null +++ b/frontend/src/openapi/models/createTag401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTag401 = { + /** 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/createTag403.ts b/frontend/src/openapi/models/createTag403.ts new file mode 100644 index 0000000000..0219f83bb3 --- /dev/null +++ b/frontend/src/openapi/models/createTag403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTag403 = { + /** 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/createTag409.ts b/frontend/src/openapi/models/createTag409.ts new file mode 100644 index 0000000000..85d7d0c776 --- /dev/null +++ b/frontend/src/openapi/models/createTag409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTag409 = { + /** 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/createTag415.ts b/frontend/src/openapi/models/createTag415.ts new file mode 100644 index 0000000000..2bcd85a7f1 --- /dev/null +++ b/frontend/src/openapi/models/createTag415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTag415 = { + /** 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/createTagType400.ts b/frontend/src/openapi/models/createTagType400.ts new file mode 100644 index 0000000000..6f779f4998 --- /dev/null +++ b/frontend/src/openapi/models/createTagType400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTagType400 = { + /** 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/createTagType401.ts b/frontend/src/openapi/models/createTagType401.ts new file mode 100644 index 0000000000..1973edb889 --- /dev/null +++ b/frontend/src/openapi/models/createTagType401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTagType401 = { + /** 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/createTagType403.ts b/frontend/src/openapi/models/createTagType403.ts new file mode 100644 index 0000000000..9e0643115e --- /dev/null +++ b/frontend/src/openapi/models/createTagType403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTagType403 = { + /** 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/createTagType409.ts b/frontend/src/openapi/models/createTagType409.ts new file mode 100644 index 0000000000..1e069cf330 --- /dev/null +++ b/frontend/src/openapi/models/createTagType409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTagType409 = { + /** 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/createTagType415.ts b/frontend/src/openapi/models/createTagType415.ts new file mode 100644 index 0000000000..876da478f1 --- /dev/null +++ b/frontend/src/openapi/models/createTagType415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateTagType415 = { + /** 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/createUser400.ts b/frontend/src/openapi/models/createUser400.ts new file mode 100644 index 0000000000..41ebd39523 --- /dev/null +++ b/frontend/src/openapi/models/createUser400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateUser400 = { + /** 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/createUser401.ts b/frontend/src/openapi/models/createUser401.ts new file mode 100644 index 0000000000..1deab0a473 --- /dev/null +++ b/frontend/src/openapi/models/createUser401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateUser401 = { + /** 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/createUser403.ts b/frontend/src/openapi/models/createUser403.ts new file mode 100644 index 0000000000..15f6158567 --- /dev/null +++ b/frontend/src/openapi/models/createUser403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type CreateUser403 = { + /** 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/createUserResponseSchema.ts b/frontend/src/openapi/models/createUserResponseSchema.ts new file mode 100644 index 0000000000..a505efa508 --- /dev/null +++ b/frontend/src/openapi/models/createUserResponseSchema.ts @@ -0,0 +1,43 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { CreateUserResponseSchemaRootRole } from './createUserResponseSchemaRootRole'; + +/** + * An Unleash user after creation + */ +export interface CreateUserResponseSchema { + /** The user id */ + id: number; + /** + * (Deprecated): Used internally to know which operations the user should be allowed to perform + * @deprecated + */ + isAPI?: boolean; + /** Name of the user */ + name?: string; + /** Email of the user */ + email?: string; + /** A unique username for the user */ + username?: string; + /** URL used for the userprofile image */ + imageUrl?: string; + /** If the user is actively inviting other users, this is the link that can be shared with other users */ + inviteLink?: string; + /** How many unsuccessful attempts at logging in has the user made */ + loginAttempts?: number; + /** Is the welcome email sent to the user or not */ + emailSent?: boolean; + /** Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned. Usually a numeric role ID, but can be a string when returning newly created user with an explicit string role. */ + rootRole?: CreateUserResponseSchemaRootRole; + /** The last time this user logged in */ + seenAt?: string | null; + /** The user was created at this time */ + createdAt?: string; + /** A user is either an actual User or a Service Account */ + accountType?: string; + /** Deprecated */ + permissions?: string[]; +} diff --git a/frontend/src/openapi/models/createUserResponseSchemaRootRole.ts b/frontend/src/openapi/models/createUserResponseSchemaRootRole.ts new file mode 100644 index 0000000000..a6e0dd3b27 --- /dev/null +++ b/frontend/src/openapi/models/createUserResponseSchemaRootRole.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned. Usually a numeric role ID, but can be a string when returning newly created user with an explicit string role. + */ +export type CreateUserResponseSchemaRootRole = + | number + | 'Admin' + | 'Editor' + | 'Viewer' + | 'Owner' + | 'Member'; diff --git a/frontend/src/openapi/models/createUserSchema.ts b/frontend/src/openapi/models/createUserSchema.ts index 373f851443..f5ebd440d4 100644 --- a/frontend/src/openapi/models/createUserSchema.ts +++ b/frontend/src/openapi/models/createUserSchema.ts @@ -3,12 +3,22 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { CreateUserSchemaRootRole } from './createUserSchemaRootRole'; +/** + * The payload must contain at least one of the name and email properties, though which one is up to you. For the user to be able to log in to the system, the user must have an email. + */ export interface CreateUserSchema { + /** The user's username. Must be provided if email is not provided. */ username?: string; + /** The user's email address. Must be provided if username is not provided. */ email?: string; + /** The user's name (not the user's username). */ name?: string; + /** Password for the user */ password?: string; - rootRole: number; + /** The role to assign to the user. Can be either the role's ID or its unique name. */ + rootRole: CreateUserSchemaRootRole; + /** Whether to send a welcome email with a login link to the user or not. Defaults to `true`. */ sendEmail?: boolean; } diff --git a/frontend/src/openapi/models/createUserSchemaRootRole.ts b/frontend/src/openapi/models/createUserSchemaRootRole.ts new file mode 100644 index 0000000000..6834a2c5b2 --- /dev/null +++ b/frontend/src/openapi/models/createUserSchemaRootRole.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The role to assign to the user. Can be either the role's ID or its unique name. + */ +export type CreateUserSchemaRootRole = + | number + | 'Admin' + | 'Editor' + | 'Viewer' + | 'Owner' + | 'Member'; diff --git a/frontend/src/openapi/models/deleteApiToken401.ts b/frontend/src/openapi/models/deleteApiToken401.ts new file mode 100644 index 0000000000..21e492c96b --- /dev/null +++ b/frontend/src/openapi/models/deleteApiToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteApiToken401 = { + /** 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/deleteApiToken403.ts b/frontend/src/openapi/models/deleteApiToken403.ts new file mode 100644 index 0000000000..1feaa110d0 --- /dev/null +++ b/frontend/src/openapi/models/deleteApiToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteApiToken403 = { + /** 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/deleteFeature401.ts b/frontend/src/openapi/models/deleteFeature401.ts new file mode 100644 index 0000000000..86990d1f67 --- /dev/null +++ b/frontend/src/openapi/models/deleteFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeature401 = { + /** 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/deleteFeature403.ts b/frontend/src/openapi/models/deleteFeature403.ts new file mode 100644 index 0000000000..0b548321cb --- /dev/null +++ b/frontend/src/openapi/models/deleteFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeature403 = { + /** 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/deleteFeatureStrategy401.ts b/frontend/src/openapi/models/deleteFeatureStrategy401.ts new file mode 100644 index 0000000000..ecece939ab --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureStrategy401 = { + /** 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/deleteFeatureStrategy403.ts b/frontend/src/openapi/models/deleteFeatureStrategy403.ts new file mode 100644 index 0000000000..c0d6e23315 --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureStrategy403 = { + /** 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/deleteFeatureStrategy404.ts b/frontend/src/openapi/models/deleteFeatureStrategy404.ts new file mode 100644 index 0000000000..ce7b0c020b --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatureStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatureStrategy404 = { + /** 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/deleteFeatures400.ts b/frontend/src/openapi/models/deleteFeatures400.ts new file mode 100644 index 0000000000..42e4495dcc --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatures400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatures400 = { + /** 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/deleteFeatures401.ts b/frontend/src/openapi/models/deleteFeatures401.ts new file mode 100644 index 0000000000..8c19b273cf --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatures401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatures401 = { + /** 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/deleteFeatures403.ts b/frontend/src/openapi/models/deleteFeatures403.ts new file mode 100644 index 0000000000..77432aff81 --- /dev/null +++ b/frontend/src/openapi/models/deleteFeatures403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteFeatures403 = { + /** 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 deleted file mode 100644 index fc2498278e..0000000000 --- a/frontend/src/openapi/models/deleteLoginHistory404.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * 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/deleteServiceAccount401.ts b/frontend/src/openapi/models/deleteServiceAccount401.ts new file mode 100644 index 0000000000..0420e1263b --- /dev/null +++ b/frontend/src/openapi/models/deleteServiceAccount401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteServiceAccount401 = { + /** 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/deleteServiceAccount403.ts b/frontend/src/openapi/models/deleteServiceAccount403.ts new file mode 100644 index 0000000000..a70a3072f1 --- /dev/null +++ b/frontend/src/openapi/models/deleteServiceAccount403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteServiceAccount403 = { + /** 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/deleteServiceAccount404.ts b/frontend/src/openapi/models/deleteServiceAccount404.ts new file mode 100644 index 0000000000..67628d6691 --- /dev/null +++ b/frontend/src/openapi/models/deleteServiceAccount404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteServiceAccount404 = { + /** 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/deleteServiceAccountToken401.ts b/frontend/src/openapi/models/deleteServiceAccountToken401.ts new file mode 100644 index 0000000000..58cd460dc0 --- /dev/null +++ b/frontend/src/openapi/models/deleteServiceAccountToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteServiceAccountToken401 = { + /** 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/deleteServiceAccountToken403.ts b/frontend/src/openapi/models/deleteServiceAccountToken403.ts new file mode 100644 index 0000000000..b90263887b --- /dev/null +++ b/frontend/src/openapi/models/deleteServiceAccountToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteServiceAccountToken403 = { + /** 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/deleteServiceAccountToken404.ts b/frontend/src/openapi/models/deleteServiceAccountToken404.ts new file mode 100644 index 0000000000..7cd8f47ae0 --- /dev/null +++ b/frontend/src/openapi/models/deleteServiceAccountToken404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteServiceAccountToken404 = { + /** 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/deleteTagType401.ts b/frontend/src/openapi/models/deleteTagType401.ts new file mode 100644 index 0000000000..ded32d63b5 --- /dev/null +++ b/frontend/src/openapi/models/deleteTagType401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteTagType401 = { + /** 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/deleteTagType403.ts b/frontend/src/openapi/models/deleteTagType403.ts new file mode 100644 index 0000000000..b59847657c --- /dev/null +++ b/frontend/src/openapi/models/deleteTagType403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteTagType403 = { + /** 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/deleteUser401.ts b/frontend/src/openapi/models/deleteUser401.ts new file mode 100644 index 0000000000..1c195d4239 --- /dev/null +++ b/frontend/src/openapi/models/deleteUser401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteUser401 = { + /** 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/deleteUser403.ts b/frontend/src/openapi/models/deleteUser403.ts new file mode 100644 index 0000000000..8666d9cec7 --- /dev/null +++ b/frontend/src/openapi/models/deleteUser403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteUser403 = { + /** 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/deleteUser404.ts b/frontend/src/openapi/models/deleteUser404.ts new file mode 100644 index 0000000000..b5f4210408 --- /dev/null +++ b/frontend/src/openapi/models/deleteUser404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteUser404 = { + /** 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/deprecateStrategy401.ts b/frontend/src/openapi/models/deprecateStrategy401.ts new file mode 100644 index 0000000000..41ef2e844a --- /dev/null +++ b/frontend/src/openapi/models/deprecateStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeprecateStrategy401 = { + /** 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/deprecateStrategy403.ts b/frontend/src/openapi/models/deprecateStrategy403.ts new file mode 100644 index 0000000000..476125befc --- /dev/null +++ b/frontend/src/openapi/models/deprecateStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeprecateStrategy403 = { + /** 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/deprecateStrategy404.ts b/frontend/src/openapi/models/deprecateStrategy404.ts new file mode 100644 index 0000000000..982796b4ba --- /dev/null +++ b/frontend/src/openapi/models/deprecateStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeprecateStrategy404 = { + /** 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/emailSchema.ts b/frontend/src/openapi/models/emailSchema.ts index 12c1ac8173..184f99fb26 100644 --- a/frontend/src/openapi/models/emailSchema.ts +++ b/frontend/src/openapi/models/emailSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * Represents the email of a user. Used to send email communication (reset password, welcome mail etc) + */ export interface EmailSchema { + /** The email address */ email: string; } diff --git a/frontend/src/openapi/models/environmentsProjectSchema.ts b/frontend/src/openapi/models/environmentsProjectSchema.ts index 0e021b845e..18dbae2c8f 100644 --- a/frontend/src/openapi/models/environmentsProjectSchema.ts +++ b/frontend/src/openapi/models/environmentsProjectSchema.ts @@ -9,6 +9,8 @@ import type { EnvironmentProjectSchema } from './environmentProjectSchema'; * Environments defined for a given project */ export interface EnvironmentsProjectSchema { + /** Version of the environments schema */ version: number; + /** List of environments */ environments: EnvironmentProjectSchema[]; } diff --git a/frontend/src/openapi/models/environmentsSchema.ts b/frontend/src/openapi/models/environmentsSchema.ts index 7d156b1577..5e267b68a7 100644 --- a/frontend/src/openapi/models/environmentsSchema.ts +++ b/frontend/src/openapi/models/environmentsSchema.ts @@ -5,7 +5,12 @@ */ import type { EnvironmentSchema } from './environmentSchema'; +/** + * A versioned list of environments + */ export interface EnvironmentsSchema { + /** Version of the environments schema */ version: number; + /** List of environments */ environments: EnvironmentSchema[]; } diff --git a/frontend/src/openapi/models/eventSchema.ts b/frontend/src/openapi/models/eventSchema.ts index 7bf40a633f..09dd284340 100644 --- a/frontend/src/openapi/models/eventSchema.ts +++ b/frontend/src/openapi/models/eventSchema.ts @@ -3,19 +3,33 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { EventSchemaType } from './eventSchemaType'; import type { EventSchemaData } from './eventSchemaData'; import type { EventSchemaPreData } from './eventSchemaPreData'; import type { TagSchema } from './tagSchema'; +/** + * An event describing something happening in the system + */ export interface EventSchema { + /** The ID of the event. An increasing natural number. */ id: number; + /** The time the event happened as a RFC 3339-conformant timestamp. */ createdAt: string; - type: string; + /** What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is */ + type: EventSchemaType; + /** Which user created this event */ createdBy: string; + /** The feature toggle environment the event relates to, if applicable. */ environment?: string | null; + /** The project the event relates to, if applicable. */ project?: string | null; + /** The name of the feature toggle the event relates to, if applicable. */ featureName?: string | null; + /** Extra associated data related to the event, such as feature toggle state, segment configuration, etc., if applicable. */ data?: EventSchemaData; + /** Data relating to the previous state of the event's subject. */ preData?: EventSchemaPreData; + /** Any tags related to the event, if applicable. */ tags?: TagSchema[] | null; } diff --git a/frontend/src/openapi/models/eventSchemaData.ts b/frontend/src/openapi/models/eventSchemaData.ts index 5bad21156c..68f9997993 100644 --- a/frontend/src/openapi/models/eventSchemaData.ts +++ b/frontend/src/openapi/models/eventSchemaData.ts @@ -4,4 +4,7 @@ * See `gen:api` script in package.json */ -export type EventSchemaData = { [key: string]: any }; +/** + * Extra associated data related to the event, such as feature toggle state, segment configuration, etc., if applicable. + */ +export type EventSchemaData = { [key: string]: any } | null; diff --git a/frontend/src/openapi/models/eventSchemaPreData.ts b/frontend/src/openapi/models/eventSchemaPreData.ts index d7429a790c..81db3960a3 100644 --- a/frontend/src/openapi/models/eventSchemaPreData.ts +++ b/frontend/src/openapi/models/eventSchemaPreData.ts @@ -4,4 +4,7 @@ * See `gen:api` script in package.json */ -export type EventSchemaPreData = { [key: string]: any }; +/** + * Data relating to the previous state of the event's subject. + */ +export type EventSchemaPreData = { [key: string]: any } | null; diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts new file mode 100644 index 0000000000..dfc3848d3d --- /dev/null +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -0,0 +1,118 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is + */ +export type EventSchemaType = + typeof EventSchemaType[keyof typeof EventSchemaType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const EventSchemaType = { + 'application-created': 'application-created', + 'feature-created': 'feature-created', + 'feature-deleted': 'feature-deleted', + 'feature-updated': 'feature-updated', + 'feature-metadata-updated': 'feature-metadata-updated', + 'feature-variants-updated': 'feature-variants-updated', + 'feature-environment-variants-updated': + 'feature-environment-variants-updated', + 'feature-project-change': 'feature-project-change', + 'feature-archived': 'feature-archived', + 'feature-revived': 'feature-revived', + 'feature-import': 'feature-import', + 'feature-tagged': 'feature-tagged', + 'feature-tag-import': 'feature-tag-import', + 'feature-strategy-update': 'feature-strategy-update', + 'feature-strategy-add': 'feature-strategy-add', + 'feature-strategy-remove': 'feature-strategy-remove', + 'strategy-order-changed': 'strategy-order-changed', + 'drop-feature-tags': 'drop-feature-tags', + 'feature-untagged': 'feature-untagged', + 'feature-stale-on': 'feature-stale-on', + 'feature-stale-off': 'feature-stale-off', + 'drop-features': 'drop-features', + 'feature-environment-enabled': 'feature-environment-enabled', + 'feature-environment-disabled': 'feature-environment-disabled', + 'strategy-created': 'strategy-created', + 'strategy-deleted': 'strategy-deleted', + 'strategy-deprecated': 'strategy-deprecated', + 'strategy-reactivated': 'strategy-reactivated', + 'strategy-updated': 'strategy-updated', + 'strategy-import': 'strategy-import', + 'drop-strategies': 'drop-strategies', + 'context-field-created': 'context-field-created', + 'context-field-updated': 'context-field-updated', + 'context-field-deleted': 'context-field-deleted', + 'project-access-added': 'project-access-added', + 'project-created': 'project-created', + 'project-updated': 'project-updated', + 'project-deleted': 'project-deleted', + 'project-import': 'project-import', + 'project-user-added': 'project-user-added', + 'project-user-removed': 'project-user-removed', + 'project-user-role-changed': 'project-user-role-changed', + 'project-group-role-changed': 'project-group-role-changed', + 'project-group-added': 'project-group-added', + 'project-group-removed': 'project-group-removed', + 'drop-projects': 'drop-projects', + 'tag-created': 'tag-created', + 'tag-deleted': 'tag-deleted', + 'tag-import': 'tag-import', + 'drop-tags': 'drop-tags', + 'tag-type-created': 'tag-type-created', + 'tag-type-deleted': 'tag-type-deleted', + 'tag-type-updated': 'tag-type-updated', + 'tag-type-import': 'tag-type-import', + 'drop-tag-types': 'drop-tag-types', + 'addon-config-created': 'addon-config-created', + 'addon-config-updated': 'addon-config-updated', + 'addon-config-deleted': 'addon-config-deleted', + 'db-pool-update': 'db-pool-update', + 'user-created': 'user-created', + 'user-updated': 'user-updated', + 'user-deleted': 'user-deleted', + 'drop-environments': 'drop-environments', + 'environment-import': 'environment-import', + 'segment-created': 'segment-created', + 'segment-updated': 'segment-updated', + 'segment-deleted': 'segment-deleted', + 'group-created': 'group-created', + 'group-updated': 'group-updated', + 'setting-created': 'setting-created', + 'setting-updated': 'setting-updated', + 'setting-deleted': 'setting-deleted', + 'client-metrics': 'client-metrics', + 'client-register': 'client-register', + 'pat-created': 'pat-created', + 'pat-deleted': 'pat-deleted', + 'public-signup-token-created': 'public-signup-token-created', + 'public-signup-token-user-added': 'public-signup-token-user-added', + 'public-signup-token-updated': 'public-signup-token-updated', + 'change-request-created': 'change-request-created', + 'change-request-discarded': 'change-request-discarded', + 'change-added': 'change-added', + 'change-discarded': 'change-discarded', + 'change-edited': 'change-edited', + 'change-request-approved': 'change-request-approved', + 'change-request-approval-added': 'change-request-approval-added', + 'change-request-cancelled': 'change-request-cancelled', + 'change-request-sent-to-review': 'change-request-sent-to-review', + 'change-request-applied': 'change-request-applied', + 'api-token-created': 'api-token-created', + 'api-token-updated': 'api-token-updated', + 'api-token-deleted': 'api-token-deleted', + 'feature-favorited': 'feature-favorited', + 'feature-unfavorited': 'feature-unfavorited', + 'project-favorited': 'project-favorited', + 'project-unfavorited': 'project-unfavorited', + 'features-exported': 'features-exported', + 'features-imported': 'features-imported', + 'service-account-created': 'service-account-created', + 'service-account-deleted': 'service-account-deleted', + 'service-account-updated': 'service-account-updated', + 'feature-potentially-stale-on': 'feature-potentially-stale-on', +} as const; diff --git a/frontend/src/openapi/models/eventsSchema.ts b/frontend/src/openapi/models/eventsSchema.ts index b576613e82..f9c598c209 100644 --- a/frontend/src/openapi/models/eventsSchema.ts +++ b/frontend/src/openapi/models/eventsSchema.ts @@ -3,10 +3,17 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { EventsSchemaVersion } from './eventsSchemaVersion'; import type { EventSchema } from './eventSchema'; +/** + * A list of events that has happened in the system + */ export interface EventsSchema { - version: number; + /** The api version of this response. A natural increasing number. Only increases if format changes */ + version: EventsSchemaVersion; + /** The list of events */ events: EventSchema[]; + /** The total count of events */ totalEvents?: number; } diff --git a/frontend/src/openapi/models/eventsSchemaVersion.ts b/frontend/src/openapi/models/eventsSchemaVersion.ts new file mode 100644 index 0000000000..0b1f8abc6e --- /dev/null +++ b/frontend/src/openapi/models/eventsSchemaVersion.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The api version of this response. A natural increasing number. Only increases if format changes + */ +export type EventsSchemaVersion = + typeof EventsSchemaVersion[keyof typeof EventsSchemaVersion]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const EventsSchemaVersion = { + NUMBER_1: 1, +} as const; diff --git a/frontend/src/openapi/models/exportFeatures404.ts b/frontend/src/openapi/models/exportFeatures404.ts new file mode 100644 index 0000000000..20900f408d --- /dev/null +++ b/frontend/src/openapi/models/exportFeatures404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ExportFeatures404 = { + /** 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/exportQuerySchema.ts b/frontend/src/openapi/models/exportQuerySchema.ts index dee59205b1..09874e98fa 100644 --- a/frontend/src/openapi/models/exportQuerySchema.ts +++ b/frontend/src/openapi/models/exportQuerySchema.ts @@ -6,14 +6,21 @@ import type { ExportQuerySchemaOneOf } from './exportQuerySchemaOneOf'; import type { ExportQuerySchemaOneOfTwo } from './exportQuerySchemaOneOfTwo'; +/** + * Available query parameters for the [deprecated export/import](https://docs.getunleash.io/reference/deploy/import-export) functionality. + */ export type ExportQuerySchema = | (ExportQuerySchemaOneOf & { + /** The environment to export from */ environment: string; + /** Whether to return a downloadable file */ downloadFile?: boolean; [key: string]: any; }) | (ExportQuerySchemaOneOfTwo & { + /** The environment to export from */ environment: string; + /** Whether to return a downloadable file */ downloadFile?: boolean; [key: string]: any; }); diff --git a/frontend/src/openapi/models/exportResultSchema.ts b/frontend/src/openapi/models/exportResultSchema.ts index a63529dcf6..2c9492a3f0 100644 --- a/frontend/src/openapi/models/exportResultSchema.ts +++ b/frontend/src/openapi/models/exportResultSchema.ts @@ -11,12 +11,22 @@ import type { FeatureTagSchema } from './featureTagSchema'; import type { ExportResultSchemaSegmentsItem } from './exportResultSchemaSegmentsItem'; import type { TagTypeSchema } from './tagTypeSchema'; +/** + * The result of the export operation, providing you with the feature toggle definitions, strategy definitions and the rest of the elements relevant to the features (tags, environments etc.) + */ export interface ExportResultSchema { + /** All the exported features. */ features: FeatureSchema[]; + /** All strategy instances that are used by the exported features in the `features` list. */ featureStrategies: FeatureStrategySchema[]; + /** Environment-specific configuration for all the features in the `features` list. Includes data such as whether the feature is enabled in the selected export environment, whether there are any variants assigned, etc. */ featureEnvironments?: FeatureEnvironmentSchema[]; + /** A list of all the context fields that are in use by any of the strategies in the `featureStrategies` list. */ contextFields?: ContextFieldSchema[]; + /** A list of all the tags that have been applied to any of the features in the `features` list. */ featureTags?: FeatureTagSchema[]; + /** A list of all the segments that are used by the strategies in the `featureStrategies` list. */ segments?: ExportResultSchemaSegmentsItem[]; + /** A list of all of the tag types that are used in the `featureTags` list. */ tagTypes: TagTypeSchema[]; } diff --git a/frontend/src/openapi/models/featureEnvironmentSchema.ts b/frontend/src/openapi/models/featureEnvironmentSchema.ts index 60c51e8b37..f523e717f2 100644 --- a/frontend/src/openapi/models/featureEnvironmentSchema.ts +++ b/frontend/src/openapi/models/featureEnvironmentSchema.ts @@ -12,7 +12,9 @@ import type { VariantSchema } from './variantSchema'; export interface FeatureEnvironmentSchema { /** The name of the environment */ name: string; + /** The name of the feature */ featureName?: string; + /** The name of the environment */ environment?: string; /** The type of the environment */ type?: string; @@ -20,6 +22,7 @@ export interface FeatureEnvironmentSchema { enabled: boolean; /** The sort order of the feature environment in the feature environments list */ sortOrder?: number; + /** The number of defined variants */ variantCount?: number; /** A list of activation strategies for the feature environment */ strategies?: FeatureStrategySchema[]; diff --git a/frontend/src/openapi/models/featureEventsSchema.ts b/frontend/src/openapi/models/featureEventsSchema.ts index 44fb9291a0..aaf0475d66 100644 --- a/frontend/src/openapi/models/featureEventsSchema.ts +++ b/frontend/src/openapi/models/featureEventsSchema.ts @@ -3,11 +3,19 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { FeatureEventsSchemaVersion } from './featureEventsSchemaVersion'; import type { EventSchema } from './eventSchema'; +/** + * One or more events happening to a specific feature toggle + */ export interface FeatureEventsSchema { - version?: number; + /** An API versioning number */ + version?: FeatureEventsSchemaVersion; + /** The name of the feature toggle these events relate to */ toggleName?: string; + /** The list of events */ events: EventSchema[]; + /** How many events are there for this feature toggle */ totalEvents?: number; } diff --git a/frontend/src/openapi/models/featureEventsSchemaVersion.ts b/frontend/src/openapi/models/featureEventsSchemaVersion.ts new file mode 100644 index 0000000000..14fa1ccd30 --- /dev/null +++ b/frontend/src/openapi/models/featureEventsSchemaVersion.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * An API versioning number + */ +export type FeatureEventsSchemaVersion = + typeof FeatureEventsSchemaVersion[keyof typeof FeatureEventsSchemaVersion]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const FeatureEventsSchemaVersion = { + NUMBER_1: 1, +} as const; diff --git a/frontend/src/openapi/models/featureSchema.ts b/frontend/src/openapi/models/featureSchema.ts index 454d5361fa..d59a372203 100644 --- a/frontend/src/openapi/models/featureSchema.ts +++ b/frontend/src/openapi/models/featureSchema.ts @@ -8,6 +8,9 @@ import type { VariantSchema } from './variantSchema'; import type { FeatureSchemaStrategiesItem } from './featureSchemaStrategiesItem'; import type { TagSchema } from './tagSchema'; +/** + * A feature toggle definition + */ export interface FeatureSchema { /** Unique feature name */ name: string; @@ -19,6 +22,7 @@ export interface FeatureSchema { archived?: boolean; /** Name of the project the feature belongs to */ project?: string; + /** `true` if the feature is enabled, otherwise `false`. */ enabled?: boolean; /** `true` if the feature is stale based on the age and feature type, otherwise `false`. */ stale?: boolean; @@ -26,8 +30,11 @@ export interface FeatureSchema { favorite?: boolean; /** `true` if the impression data collection is enabled for the feature, otherwise `false`. */ impressionData?: boolean; + /** The date the feature was created */ createdAt?: string | null; + /** The date the feature was archived */ archivedAt?: string | null; + /** The date when metrics where last collected for the feature */ lastSeenAt?: string | null; /** The list of environments where the feature can be used */ environments?: FeatureEnvironmentSchema[]; diff --git a/frontend/src/openapi/models/featureStrategySchema.ts b/frontend/src/openapi/models/featureStrategySchema.ts index 9de1dc5f35..887e268fbe 100644 --- a/frontend/src/openapi/models/featureStrategySchema.ts +++ b/frontend/src/openapi/models/featureStrategySchema.ts @@ -4,6 +4,7 @@ * See `gen:api` script in package.json */ import type { ConstraintSchema } from './constraintSchema'; +import type { StrategyVariantSchema } from './strategyVariantSchema'; import type { ParametersSchema } from './parametersSchema'; /** @@ -24,7 +25,9 @@ export interface FeatureStrategySchema { sortOrder?: number; /** A list of segment ids attached to the strategy */ segments?: number[]; - /** A list of the constraints attached to the strategy */ + /** A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints */ constraints?: ConstraintSchema[]; + /** Strategy level variants */ + variants?: StrategyVariantSchema[]; parameters?: ParametersSchema; } diff --git a/frontend/src/openapi/models/featureTypeSchema.ts b/frontend/src/openapi/models/featureTypeSchema.ts index 4528e4181d..4a2f1ba5f8 100644 --- a/frontend/src/openapi/models/featureTypeSchema.ts +++ b/frontend/src/openapi/models/featureTypeSchema.ts @@ -4,9 +4,16 @@ * See `gen:api` script in package.json */ +/** + * A [feature toggle type](https://docs.getunleash.io/reference/feature-toggle-types). + */ export interface FeatureTypeSchema { + /** The identifier of this feature toggle type. */ id: string; + /** The display name of this feature toggle type. */ name: string; + /** A description of what this feature toggle type is intended to be used for. */ description: string; + /** How many days it takes before a feature toggle of this typed is flagged as [potentially stale](https://docs.getunleash.io/reference/technical-debt#stale-and-potentially-stale-toggles) by Unleash. If this value is `null`, Unleash will never mark it as potentially stale. */ lifetimeDays: number | null; } diff --git a/frontend/src/openapi/models/featureTypesSchema.ts b/frontend/src/openapi/models/featureTypesSchema.ts index e6c901d250..37ebcdd5a9 100644 --- a/frontend/src/openapi/models/featureTypesSchema.ts +++ b/frontend/src/openapi/models/featureTypesSchema.ts @@ -3,9 +3,15 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { FeatureTypesSchemaVersion } from './featureTypesSchemaVersion'; import type { FeatureTypeSchema } from './featureTypeSchema'; +/** + * A list of [feature toggle types](https://docs.getunleash.io/reference/feature-toggle-types) and the schema version used to represent those feature types. + */ export interface FeatureTypesSchema { - version: number; + /** The schema version used to describe the feature toggle types listed in the `types` property. */ + version: FeatureTypesSchemaVersion; + /** The list of feature toggle types. */ types: FeatureTypeSchema[]; } diff --git a/frontend/src/openapi/models/featureTypesSchemaVersion.ts b/frontend/src/openapi/models/featureTypesSchemaVersion.ts new file mode 100644 index 0000000000..14e1b4bf0f --- /dev/null +++ b/frontend/src/openapi/models/featureTypesSchemaVersion.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The schema version used to describe the feature toggle types listed in the `types` property. + */ +export type FeatureTypesSchemaVersion = + typeof FeatureTypesSchemaVersion[keyof typeof FeatureTypesSchemaVersion]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const FeatureTypesSchemaVersion = { + NUMBER_1: 1, +} as const; diff --git a/frontend/src/openapi/models/featureVariantsSchema.ts b/frontend/src/openapi/models/featureVariantsSchema.ts index 46581c2fc6..b9956a578b 100644 --- a/frontend/src/openapi/models/featureVariantsSchema.ts +++ b/frontend/src/openapi/models/featureVariantsSchema.ts @@ -5,7 +5,12 @@ */ import type { VariantSchema } from './variantSchema'; +/** + * A versioned collection of feature toggle variants. + */ export interface FeatureVariantsSchema { + /** The version of the feature variants schema. */ version: number; + /** All variants defined for a specific feature toggle. */ variants: VariantSchema[]; } diff --git a/frontend/src/openapi/models/featuresSchema.ts b/frontend/src/openapi/models/featuresSchema.ts index e2d50c6f88..55026a5dff 100644 --- a/frontend/src/openapi/models/featuresSchema.ts +++ b/frontend/src/openapi/models/featuresSchema.ts @@ -5,7 +5,13 @@ */ import type { FeatureSchema } from './featureSchema'; +/** + * A list of features + * @deprecated + */ export interface FeaturesSchema { + /** The version of the feature's schema */ version: number; + /** A list of features */ features: FeatureSchema[]; } diff --git a/frontend/src/openapi/models/feedbackCreateSchema.ts b/frontend/src/openapi/models/feedbackCreateSchema.ts new file mode 100644 index 0000000000..b182cef176 --- /dev/null +++ b/frontend/src/openapi/models/feedbackCreateSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * User feedback information to be created. + */ +export interface FeedbackCreateSchema { + /** `true` if the user has asked never to see this feedback questionnaire again. Defaults to `false`. */ + neverShow?: boolean; + /** The name of the feedback session */ + feedbackId: string; +} diff --git a/frontend/src/openapi/models/feedbackResponseSchema.ts b/frontend/src/openapi/models/feedbackResponseSchema.ts new file mode 100644 index 0000000000..4424094422 --- /dev/null +++ b/frontend/src/openapi/models/feedbackResponseSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * User feedback information about a particular feedback item. + */ +export interface FeedbackResponseSchema { + /** The ID of the user that gave the feedback. */ + userId?: number; + /** `true` if the user has asked never to see this feedback questionnaire again. */ + neverShow?: boolean; + /** When this feedback was given */ + given?: string | null; + /** The name of the feedback session */ + feedbackId?: string; +} diff --git a/frontend/src/openapi/models/feedbackSchema.ts b/frontend/src/openapi/models/feedbackSchema.ts deleted file mode 100644 index c85ef8a03c..0000000000 --- a/frontend/src/openapi/models/feedbackSchema.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -export interface FeedbackSchema { - userId?: number; - feedbackId?: string; - neverShow?: boolean; - given?: string | null; -} diff --git a/frontend/src/openapi/models/feedbackUpdateSchema.ts b/frontend/src/openapi/models/feedbackUpdateSchema.ts new file mode 100644 index 0000000000..d93fe61b9a --- /dev/null +++ b/frontend/src/openapi/models/feedbackUpdateSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * User feedback information to be updated. + */ +export interface FeedbackUpdateSchema { + /** The ID of the user that gave the feedback. */ + userId?: number; + /** `true` if the user has asked never to see this feedback questionnaire again. */ + neverShow?: boolean; + /** When this feedback was given */ + given?: string | null; +} diff --git a/frontend/src/openapi/models/getAdminCount401.ts b/frontend/src/openapi/models/getAdminCount401.ts new file mode 100644 index 0000000000..7191387774 --- /dev/null +++ b/frontend/src/openapi/models/getAdminCount401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAdminCount401 = { + /** 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/getAdminCount403.ts b/frontend/src/openapi/models/getAdminCount403.ts new file mode 100644 index 0000000000..0011be2d1a --- /dev/null +++ b/frontend/src/openapi/models/getAdminCount403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAdminCount403 = { + /** 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/getAllApiTokens401.ts b/frontend/src/openapi/models/getAllApiTokens401.ts new file mode 100644 index 0000000000..8fa8e95b1c --- /dev/null +++ b/frontend/src/openapi/models/getAllApiTokens401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllApiTokens401 = { + /** 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/getAllApiTokens403.ts b/frontend/src/openapi/models/getAllApiTokens403.ts new file mode 100644 index 0000000000..d9bf4630c7 --- /dev/null +++ b/frontend/src/openapi/models/getAllApiTokens403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllApiTokens403 = { + /** 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/getAllFeatureTypes401.ts b/frontend/src/openapi/models/getAllFeatureTypes401.ts new file mode 100644 index 0000000000..0528ef3590 --- /dev/null +++ b/frontend/src/openapi/models/getAllFeatureTypes401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllFeatureTypes401 = { + /** 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/getAllStrategies401.ts b/frontend/src/openapi/models/getAllStrategies401.ts new file mode 100644 index 0000000000..b53aa3c519 --- /dev/null +++ b/frontend/src/openapi/models/getAllStrategies401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllStrategies401 = { + /** 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/getAllToggles401.ts b/frontend/src/openapi/models/getAllToggles401.ts new file mode 100644 index 0000000000..fdd311de08 --- /dev/null +++ b/frontend/src/openapi/models/getAllToggles401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllToggles401 = { + /** 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/getAllToggles403.ts b/frontend/src/openapi/models/getAllToggles403.ts new file mode 100644 index 0000000000..e284f53cc4 --- /dev/null +++ b/frontend/src/openapi/models/getAllToggles403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetAllToggles403 = { + /** 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/getArchivedFeatures401.ts b/frontend/src/openapi/models/getArchivedFeatures401.ts new file mode 100644 index 0000000000..e6f8872ad5 --- /dev/null +++ b/frontend/src/openapi/models/getArchivedFeatures401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetArchivedFeatures401 = { + /** 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/getArchivedFeatures403.ts b/frontend/src/openapi/models/getArchivedFeatures403.ts new file mode 100644 index 0000000000..a2a5a1c30d --- /dev/null +++ b/frontend/src/openapi/models/getArchivedFeatures403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetArchivedFeatures403 = { + /** 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/getArchivedFeaturesByProjectId401.ts b/frontend/src/openapi/models/getArchivedFeaturesByProjectId401.ts new file mode 100644 index 0000000000..7ce3e64ecc --- /dev/null +++ b/frontend/src/openapi/models/getArchivedFeaturesByProjectId401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetArchivedFeaturesByProjectId401 = { + /** 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/getArchivedFeaturesByProjectId403.ts b/frontend/src/openapi/models/getArchivedFeaturesByProjectId403.ts new file mode 100644 index 0000000000..e8ff6c0e1c --- /dev/null +++ b/frontend/src/openapi/models/getArchivedFeaturesByProjectId403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetArchivedFeaturesByProjectId403 = { + /** 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/getBaseUsersAndGroups401.ts b/frontend/src/openapi/models/getBaseUsersAndGroups401.ts new file mode 100644 index 0000000000..051f15e9cc --- /dev/null +++ b/frontend/src/openapi/models/getBaseUsersAndGroups401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetBaseUsersAndGroups401 = { + /** 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/getEnvironmentFeatureVariants401.ts b/frontend/src/openapi/models/getEnvironmentFeatureVariants401.ts new file mode 100644 index 0000000000..18f02ff13d --- /dev/null +++ b/frontend/src/openapi/models/getEnvironmentFeatureVariants401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEnvironmentFeatureVariants401 = { + /** 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/getEnvironmentFeatureVariants403.ts b/frontend/src/openapi/models/getEnvironmentFeatureVariants403.ts new file mode 100644 index 0000000000..2e1715988e --- /dev/null +++ b/frontend/src/openapi/models/getEnvironmentFeatureVariants403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEnvironmentFeatureVariants403 = { + /** 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/getEnvironmentFeatureVariants404.ts b/frontend/src/openapi/models/getEnvironmentFeatureVariants404.ts new file mode 100644 index 0000000000..f5d8b94c93 --- /dev/null +++ b/frontend/src/openapi/models/getEnvironmentFeatureVariants404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetEnvironmentFeatureVariants404 = { + /** 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/getFeature403.ts b/frontend/src/openapi/models/getFeature403.ts new file mode 100644 index 0000000000..3f6999848e --- /dev/null +++ b/frontend/src/openapi/models/getFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeature403 = { + /** 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/getFeatureEnvironment401.ts b/frontend/src/openapi/models/getFeatureEnvironment401.ts new file mode 100644 index 0000000000..2cca9093f2 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureEnvironment401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureEnvironment401 = { + /** 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/getFeatureEnvironment403.ts b/frontend/src/openapi/models/getFeatureEnvironment403.ts new file mode 100644 index 0000000000..d3b73b3930 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureEnvironment403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureEnvironment403 = { + /** 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/getFeatureEnvironment404.ts b/frontend/src/openapi/models/getFeatureEnvironment404.ts new file mode 100644 index 0000000000..8f5be83727 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureEnvironment404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureEnvironment404 = { + /** 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/getFeatureStrategies401.ts b/frontend/src/openapi/models/getFeatureStrategies401.ts new file mode 100644 index 0000000000..14b4400d26 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureStrategies401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureStrategies401 = { + /** 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/getFeatureStrategies403.ts b/frontend/src/openapi/models/getFeatureStrategies403.ts new file mode 100644 index 0000000000..37b7a46d1b --- /dev/null +++ b/frontend/src/openapi/models/getFeatureStrategies403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureStrategies403 = { + /** 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/getFeatureStrategies404.ts b/frontend/src/openapi/models/getFeatureStrategies404.ts new file mode 100644 index 0000000000..73fe6e6f54 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureStrategies404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureStrategies404 = { + /** 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/getFeatureStrategy401.ts b/frontend/src/openapi/models/getFeatureStrategy401.ts new file mode 100644 index 0000000000..4d2a4df0a4 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureStrategy401 = { + /** 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/getFeatureStrategy403.ts b/frontend/src/openapi/models/getFeatureStrategy403.ts new file mode 100644 index 0000000000..4354f2112a --- /dev/null +++ b/frontend/src/openapi/models/getFeatureStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureStrategy403 = { + /** 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/getFeatureStrategy404.ts b/frontend/src/openapi/models/getFeatureStrategy404.ts new file mode 100644 index 0000000000..700e76a2c5 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureStrategy404 = { + /** 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/getFeatureVariants401.ts b/frontend/src/openapi/models/getFeatureVariants401.ts new file mode 100644 index 0000000000..a1abfdba71 --- /dev/null +++ b/frontend/src/openapi/models/getFeatureVariants401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureVariants401 = { + /** 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/getFeatureVariants403.ts b/frontend/src/openapi/models/getFeatureVariants403.ts new file mode 100644 index 0000000000..6ecc3e577d --- /dev/null +++ b/frontend/src/openapi/models/getFeatureVariants403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureVariants403 = { + /** 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/getFeatureVariants404.ts b/frontend/src/openapi/models/getFeatureVariants404.ts new file mode 100644 index 0000000000..26492fa3cf --- /dev/null +++ b/frontend/src/openapi/models/getFeatureVariants404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatureVariants404 = { + /** 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/getFeatures400.ts b/frontend/src/openapi/models/getFeatures400.ts new file mode 100644 index 0000000000..eebbb6ea22 --- /dev/null +++ b/frontend/src/openapi/models/getFeatures400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatures400 = { + /** 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/getFeatures401.ts b/frontend/src/openapi/models/getFeatures401.ts new file mode 100644 index 0000000000..3cbb2f71e3 --- /dev/null +++ b/frontend/src/openapi/models/getFeatures401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatures401 = { + /** 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/getFeatures403.ts b/frontend/src/openapi/models/getFeatures403.ts new file mode 100644 index 0000000000..3ab9bf3158 --- /dev/null +++ b/frontend/src/openapi/models/getFeatures403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFeatures403 = { + /** 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/getFrontendFeatures401.ts b/frontend/src/openapi/models/getFrontendFeatures401.ts new file mode 100644 index 0000000000..e3027f95b0 --- /dev/null +++ b/frontend/src/openapi/models/getFrontendFeatures401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFrontendFeatures401 = { + /** 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/getFrontendFeatures404.ts b/frontend/src/openapi/models/getFrontendFeatures404.ts new file mode 100644 index 0000000000..02d6845e20 --- /dev/null +++ b/frontend/src/openapi/models/getFrontendFeatures404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetFrontendFeatures404 = { + /** 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/getGoogleSettings403.ts b/frontend/src/openapi/models/getGoogleSettings403.ts new file mode 100644 index 0000000000..93632e0baa --- /dev/null +++ b/frontend/src/openapi/models/getGoogleSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetGoogleSettings403 = { + /** 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/getMe401.ts b/frontend/src/openapi/models/getMe401.ts new file mode 100644 index 0000000000..c49782d1e2 --- /dev/null +++ b/frontend/src/openapi/models/getMe401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetMe401 = { + /** 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/getOidcSettings403.ts b/frontend/src/openapi/models/getOidcSettings403.ts new file mode 100644 index 0000000000..8d8f3202f5 --- /dev/null +++ b/frontend/src/openapi/models/getOidcSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetOidcSettings403 = { + /** 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/getProfile401.ts b/frontend/src/openapi/models/getProfile401.ts new file mode 100644 index 0000000000..a8370bf50b --- /dev/null +++ b/frontend/src/openapi/models/getProfile401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProfile401 = { + /** 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/getSamlSettings403.ts b/frontend/src/openapi/models/getSamlSettings403.ts new file mode 100644 index 0000000000..68fe2a5213 --- /dev/null +++ b/frontend/src/openapi/models/getSamlSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetSamlSettings403 = { + /** 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/getServiceAccountTokens401.ts b/frontend/src/openapi/models/getServiceAccountTokens401.ts new file mode 100644 index 0000000000..b7b75b2813 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccountTokens401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccountTokens401 = { + /** 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/getServiceAccountTokens403.ts b/frontend/src/openapi/models/getServiceAccountTokens403.ts new file mode 100644 index 0000000000..f6b8041e35 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccountTokens403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccountTokens403 = { + /** 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/getServiceAccountTokens404.ts b/frontend/src/openapi/models/getServiceAccountTokens404.ts new file mode 100644 index 0000000000..00a7afb6b5 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccountTokens404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccountTokens404 = { + /** 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/getServiceAccounts401.ts b/frontend/src/openapi/models/getServiceAccounts401.ts new file mode 100644 index 0000000000..eaf87dcbc0 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccounts401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccounts401 = { + /** 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/getServiceAccounts403.ts b/frontend/src/openapi/models/getServiceAccounts403.ts new file mode 100644 index 0000000000..0d88ae72ed --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccounts403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccounts403 = { + /** 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/getSimpleSettings401.ts b/frontend/src/openapi/models/getSimpleSettings401.ts new file mode 100644 index 0000000000..34c59e12f9 --- /dev/null +++ b/frontend/src/openapi/models/getSimpleSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetSimpleSettings401 = { + /** 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/getSimpleSettings403.ts b/frontend/src/openapi/models/getSimpleSettings403.ts new file mode 100644 index 0000000000..6f7a74dc12 --- /dev/null +++ b/frontend/src/openapi/models/getSimpleSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetSimpleSettings403 = { + /** 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/getStrategiesByContextField401.ts b/frontend/src/openapi/models/getStrategiesByContextField401.ts new file mode 100644 index 0000000000..9b8001e3b7 --- /dev/null +++ b/frontend/src/openapi/models/getStrategiesByContextField401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetStrategiesByContextField401 = { + /** 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/getStrategy401.ts b/frontend/src/openapi/models/getStrategy401.ts new file mode 100644 index 0000000000..4c98917dde --- /dev/null +++ b/frontend/src/openapi/models/getStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetStrategy401 = { + /** 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/getStrategy404.ts b/frontend/src/openapi/models/getStrategy404.ts new file mode 100644 index 0000000000..7fbd09eaee --- /dev/null +++ b/frontend/src/openapi/models/getStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetStrategy404 = { + /** 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/getTag401.ts b/frontend/src/openapi/models/getTag401.ts new file mode 100644 index 0000000000..5907350626 --- /dev/null +++ b/frontend/src/openapi/models/getTag401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTag401 = { + /** 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/getTag403.ts b/frontend/src/openapi/models/getTag403.ts new file mode 100644 index 0000000000..59bde84be2 --- /dev/null +++ b/frontend/src/openapi/models/getTag403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTag403 = { + /** 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/getTag404.ts b/frontend/src/openapi/models/getTag404.ts new file mode 100644 index 0000000000..3c92a6a425 --- /dev/null +++ b/frontend/src/openapi/models/getTag404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTag404 = { + /** 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/getTagType401.ts b/frontend/src/openapi/models/getTagType401.ts new file mode 100644 index 0000000000..84e12fb50d --- /dev/null +++ b/frontend/src/openapi/models/getTagType401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTagType401 = { + /** 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/getTagType403.ts b/frontend/src/openapi/models/getTagType403.ts new file mode 100644 index 0000000000..edd9bb3372 --- /dev/null +++ b/frontend/src/openapi/models/getTagType403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTagType403 = { + /** 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/getTagTypes401.ts b/frontend/src/openapi/models/getTagTypes401.ts new file mode 100644 index 0000000000..f15156603b --- /dev/null +++ b/frontend/src/openapi/models/getTagTypes401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTagTypes401 = { + /** 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/getTagTypes403.ts b/frontend/src/openapi/models/getTagTypes403.ts new file mode 100644 index 0000000000..a69e1c85c2 --- /dev/null +++ b/frontend/src/openapi/models/getTagTypes403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTagTypes403 = { + /** 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/getTags401.ts b/frontend/src/openapi/models/getTags401.ts new file mode 100644 index 0000000000..dccf27ad55 --- /dev/null +++ b/frontend/src/openapi/models/getTags401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTags401 = { + /** 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/getTags403.ts b/frontend/src/openapi/models/getTags403.ts new file mode 100644 index 0000000000..67d6620ec6 --- /dev/null +++ b/frontend/src/openapi/models/getTags403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTags403 = { + /** 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/getTagsByType401.ts b/frontend/src/openapi/models/getTagsByType401.ts new file mode 100644 index 0000000000..20b121e6ee --- /dev/null +++ b/frontend/src/openapi/models/getTagsByType401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTagsByType401 = { + /** 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/getTagsByType403.ts b/frontend/src/openapi/models/getTagsByType403.ts new file mode 100644 index 0000000000..d20db74a0f --- /dev/null +++ b/frontend/src/openapi/models/getTagsByType403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetTagsByType403 = { + /** 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/getUser400.ts b/frontend/src/openapi/models/getUser400.ts new file mode 100644 index 0000000000..d30b6a8862 --- /dev/null +++ b/frontend/src/openapi/models/getUser400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetUser400 = { + /** 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/getUser401.ts b/frontend/src/openapi/models/getUser401.ts new file mode 100644 index 0000000000..c94727e54c --- /dev/null +++ b/frontend/src/openapi/models/getUser401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetUser401 = { + /** 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/getUser404.ts b/frontend/src/openapi/models/getUser404.ts new file mode 100644 index 0000000000..c612f490bd --- /dev/null +++ b/frontend/src/openapi/models/getUser404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetUser404 = { + /** 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/getUsers401.ts b/frontend/src/openapi/models/getUsers401.ts new file mode 100644 index 0000000000..58a765c27f --- /dev/null +++ b/frontend/src/openapi/models/getUsers401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetUsers401 = { + /** 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/getUsers403.ts b/frontend/src/openapi/models/getUsers403.ts new file mode 100644 index 0000000000..cfe4f5a98c --- /dev/null +++ b/frontend/src/openapi/models/getUsers403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetUsers403 = { + /** 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/googleSettingsSchema.ts b/frontend/src/openapi/models/googleSettingsSchema.ts index edbd0254cc..0e419d7005 100644 --- a/frontend/src/openapi/models/googleSettingsSchema.ts +++ b/frontend/src/openapi/models/googleSettingsSchema.ts @@ -4,11 +4,20 @@ * See `gen:api` script in package.json */ +/** + * Configuration for using Google Authentication + */ export interface GoogleSettingsSchema { + /** Is google OIDC enabled */ enabled?: boolean; + /** The google client id, used to authenticate against google */ clientId: string; + /** The client secret used to authenticate the OAuth session used to log the user in */ clientSecret: string; + /** Name of the host allowed to access the Google authentication flow */ unleashHostname: string; + /** Should Unleash create users based on the emails coming back in the authentication reply from Google */ autoCreate?: boolean; + /** A comma separated list of email domains that Unleash will auto create user accounts for. */ emailDomains?: string; } diff --git a/frontend/src/openapi/models/groupSchema.ts b/frontend/src/openapi/models/groupSchema.ts index af576ae26a..21874be6fb 100644 --- a/frontend/src/openapi/models/groupSchema.ts +++ b/frontend/src/openapi/models/groupSchema.ts @@ -5,16 +5,27 @@ */ import type { GroupUserModelSchema } from './groupUserModelSchema'; +/** + * A detailed information about a user group + */ export interface GroupSchema { + /** The group id */ id?: number; + /** The name of the group */ name: string; + /** A custom description of the group */ description?: string | null; + /** A list of SSO groups that should map to this Unleash group */ mappingsSSO?: string[]; - /** A role id that is used as the root role for all users in this group. This can be either the id of the Editor or Admin role. */ + /** A role id that is used as the root role for all users in this group. This can be either the id of the Viewer, Editor or Admin role. */ rootRole?: number | null; + /** A user who created this group */ createdBy?: string | null; + /** When was this group created */ createdAt?: string | null; + /** A list of users belonging to this group */ users?: GroupUserModelSchema[]; + /** A list of projects where this group is used */ projects?: string[]; [key: string]: any; } diff --git a/frontend/src/openapi/models/groupUserModelSchema.ts b/frontend/src/openapi/models/groupUserModelSchema.ts index 0ffad804b2..b7f6dfa01e 100644 --- a/frontend/src/openapi/models/groupUserModelSchema.ts +++ b/frontend/src/openapi/models/groupUserModelSchema.ts @@ -5,8 +5,13 @@ */ import type { UserSchema } from './userSchema'; +/** + * Details for a single user belonging to a group + */ export interface GroupUserModelSchema { + /** The date when the user joined the group */ joinedAt?: string; + /** The username of the user who added this user to this group */ createdBy?: string | null; user: UserSchema; } diff --git a/frontend/src/openapi/models/groupsSchema.ts b/frontend/src/openapi/models/groupsSchema.ts index c07097c456..ff539a0ddc 100644 --- a/frontend/src/openapi/models/groupsSchema.ts +++ b/frontend/src/openapi/models/groupsSchema.ts @@ -5,6 +5,10 @@ */ import type { GroupSchema } from './groupSchema'; +/** + * A list of [user groups](https://docs.getunleash.io/reference/rbac#user-groups) + */ export interface GroupsSchema { + /** A list of groups */ groups?: GroupSchema[]; } diff --git a/frontend/src/openapi/models/healthOverviewSchema.ts b/frontend/src/openapi/models/healthOverviewSchema.ts index 24606ee411..f91d796edf 100644 --- a/frontend/src/openapi/models/healthOverviewSchema.ts +++ b/frontend/src/openapi/models/healthOverviewSchema.ts @@ -22,6 +22,8 @@ export interface HealthOverviewSchema { 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; + /** A limit on the number of features allowed in the project. Null if no limit. */ + featureLimit?: number | null; /** 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. */ diff --git a/frontend/src/openapi/models/healthReportSchema.ts b/frontend/src/openapi/models/healthReportSchema.ts index cbea24648c..f7cb866c86 100644 --- a/frontend/src/openapi/models/healthReportSchema.ts +++ b/frontend/src/openapi/models/healthReportSchema.ts @@ -22,6 +22,8 @@ export interface HealthReportSchema { 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; + /** A limit on the number of features allowed in the project. Null if no limit. */ + featureLimit?: number | null; /** 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. */ diff --git a/frontend/src/openapi/models/idSchema.ts b/frontend/src/openapi/models/idSchema.ts index b9443b7544..89ef19c013 100644 --- a/frontend/src/openapi/models/idSchema.ts +++ b/frontend/src/openapi/models/idSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * Email id used for password reset + */ export interface IdSchema { + /** User email */ id: string; } diff --git a/frontend/src/openapi/models/importToggles404.ts b/frontend/src/openapi/models/importToggles404.ts new file mode 100644 index 0000000000..a5399fcd78 --- /dev/null +++ b/frontend/src/openapi/models/importToggles404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ImportToggles404 = { + /** 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/importTogglesSchema.ts b/frontend/src/openapi/models/importTogglesSchema.ts index ac9f6a36c6..749e2e8167 100644 --- a/frontend/src/openapi/models/importTogglesSchema.ts +++ b/frontend/src/openapi/models/importTogglesSchema.ts @@ -5,8 +5,13 @@ */ import type { ExportResultSchema } from './exportResultSchema'; +/** + * The result of the export operation for a project and environment, used at import + */ export interface ImportTogglesSchema { + /** The exported [project](https://docs.getunleash.io/reference/projects) */ project: string; + /** The exported [environment](https://docs.getunleash.io/reference/environments) */ environment: string; data: ExportResultSchema; } diff --git a/frontend/src/openapi/models/importTogglesValidateItemSchema.ts b/frontend/src/openapi/models/importTogglesValidateItemSchema.ts index 01ce14b9dc..01ac7e199d 100644 --- a/frontend/src/openapi/models/importTogglesValidateItemSchema.ts +++ b/frontend/src/openapi/models/importTogglesValidateItemSchema.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * A description of an error or warning pertaining to a feature toggle import job. + */ export interface ImportTogglesValidateItemSchema { + /** The validation error message */ message: string; + /** The items affected by this error message */ affectedItems: string[]; } diff --git a/frontend/src/openapi/models/importTogglesValidateSchema.ts b/frontend/src/openapi/models/importTogglesValidateSchema.ts index a25838b639..124eab86d0 100644 --- a/frontend/src/openapi/models/importTogglesValidateSchema.ts +++ b/frontend/src/openapi/models/importTogglesValidateSchema.ts @@ -5,8 +5,14 @@ */ import type { ImportTogglesValidateItemSchema } from './importTogglesValidateItemSchema'; +/** + * An object containing [feature import](https://docs.getunleash.io/reference/deploy/environment-import-export) validation results. + */ export interface ImportTogglesValidateSchema { + /** A list of errors that prevent the provided data from being successfully imported. */ errors: ImportTogglesValidateItemSchema[]; + /** A list of warnings related to the provided data. */ warnings: ImportTogglesValidateItemSchema[]; + /** Any additional permissions required to import the data. If the list is empty, you require no additional permissions beyond what your user already has. */ permissions?: ImportTogglesValidateItemSchema[]; } diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 9dbab96e04..8ddc9a1404 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -10,18 +10,32 @@ export * from './addDefaultStrategyToProjectEnvironment400'; export * from './addEnvironmentToProject401'; export * from './addEnvironmentToProject403'; export * from './addEnvironmentToProject409'; +export * from './addFavoriteFeature401'; +export * from './addFavoriteFeature404'; +export * from './addFavoriteProject401'; +export * from './addFavoriteProject404'; +export * from './addFeatureStrategy401'; +export * from './addFeatureStrategy403'; +export * from './addFeatureStrategy404'; export * from './addPublicSignupTokenUser400'; export * from './addPublicSignupTokenUser409'; export * from './addTag400'; export * from './addTag401'; export * from './addTag403'; export * from './addTag404'; +export * from './addTagToFeatures401'; +export * from './addTagToFeatures403'; +export * from './addTagToFeatures404'; +export * from './addTagToFeatures415'; export * from './addonCreateUpdateSchema'; export * from './addonCreateUpdateSchemaParameters'; export * from './addonParameterSchema'; export * from './addonSchema'; export * from './addonSchemaParameters'; export * from './addonTypeSchema'; +export * from './addonTypeSchemaAlertsItem'; +export * from './addonTypeSchemaAlertsItemType'; +export * from './addonTypeSchemaInstallation'; export * from './addonsSchema'; export * from './adminCountSchema'; export * from './adminFeaturesQuerySchema'; @@ -29,7 +43,10 @@ export * from './adminPermissionSchema'; export * from './adminPermissionsSchema'; export * from './adminPermissionsSchemaPermissions'; export * from './adminPermissionsSchemaPermissionsEnvironmentsItem'; +export * from './adminPermissionsSchemaVersion'; export * from './adminSegmentSchema'; +export * from './adminStrategiesSchema'; +export * from './adminStrategiesSchemaStrategiesItem'; export * from './advancedPlaygroundEnvironmentFeatureSchema'; export * from './advancedPlaygroundEnvironmentFeatureSchemaStrategies'; export * from './advancedPlaygroundEnvironmentFeatureSchemaStrategiesResult'; @@ -47,7 +64,12 @@ export * from './apiTokensSchema'; export * from './applicationSchema'; export * from './applicationsSchema'; export * from './archiveFeature401'; +export * from './archiveFeature403'; export * from './archiveFeature404'; +export * from './archiveFeatures400'; +export * from './archiveFeatures401'; +export * from './archiveFeatures403'; +export * from './archiveFeatures415'; export * from './batchFeaturesSchema'; export * from './batchStaleSchema'; export * from './bulkMetrics400'; @@ -56,10 +78,28 @@ export * from './bulkMetrics415'; export * from './bulkMetricsSchema'; export * from './bulkRegistrationSchema'; export * from './bulkRegistrationSchemaConnectViaItem'; +export * from './bulkToggleFeaturesEnvironmentOff400'; +export * from './bulkToggleFeaturesEnvironmentOff401'; +export * from './bulkToggleFeaturesEnvironmentOff403'; +export * from './bulkToggleFeaturesEnvironmentOff404'; +export * from './bulkToggleFeaturesEnvironmentOff413'; +export * from './bulkToggleFeaturesEnvironmentOff415'; +export * from './bulkToggleFeaturesEnvironmentOn400'; +export * from './bulkToggleFeaturesEnvironmentOn401'; +export * from './bulkToggleFeaturesEnvironmentOn403'; +export * from './bulkToggleFeaturesEnvironmentOn404'; +export * from './bulkToggleFeaturesEnvironmentOn413'; +export * from './bulkToggleFeaturesEnvironmentOn415'; export * from './bulkToggleFeaturesSchema'; +export * from './changePassword401'; +export * from './changePassword403'; +export * from './changePassword415'; export * from './changePasswordSchema'; export * from './changeProject400'; export * from './changeProject401'; +export * from './changeProject403'; +export * from './changeProject404'; +export * from './changeProject415'; export * from './changeProjectSchema'; export * from './changeRequestAddCommentSchema'; export * from './changeRequestApprovalSchema'; @@ -83,7 +123,6 @@ export * from './changeRequestCreateSchemaOneOfSix'; export * from './changeRequestCreateSchemaOneOfSixAction'; export * from './changeRequestDefaultEventSchema'; export * from './changeRequestDefaultEventSchemaPayload'; -export * from './changeRequestEditTitleSchema'; export * from './changeRequestEnvironmentConfigSchema'; export * from './changeRequestEventSchema'; export * from './changeRequestEventSchemaCreatedBy'; @@ -96,7 +135,11 @@ export * from './changeRequestSchemaCreatedBy'; export * from './changeRequestSchemaState'; export * from './changeRequestStateSchema'; export * from './changeRequestStateSchemaState'; +export * from './changeRequestUpdateTitleSchema'; export * from './changeRequestsSchema'; +export * from './changeUserPassword400'; +export * from './changeUserPassword401'; +export * from './changeUserPassword403'; export * from './clientApplicationSchema'; export * from './clientApplicationSchemaStarted'; export * from './clientFeatureSchema'; @@ -108,9 +151,14 @@ export * from './clientMetricsSchema'; export * from './clientMetricsSchemaBucket'; export * from './clientMetricsSchemaBucketToggles'; export * from './clientMetricsSchemaBucketTogglesVariants'; +export * from './clientSegmentSchema'; export * from './cloneEnvironment400'; export * from './cloneEnvironment401'; export * from './cloneEnvironmentSchema'; +export * from './cloneFeature401'; +export * from './cloneFeature403'; +export * from './cloneFeature404'; +export * from './cloneFeature415'; export * from './cloneFeatureSchema'; export * from './constraintSchema'; export * from './constraintSchemaOperator'; @@ -123,9 +171,22 @@ export * from './createAddon401'; export * from './createAddon403'; export * from './createAddon413'; export * from './createAddon415'; +export * from './createApiToken401'; +export * from './createApiToken403'; +export * from './createApiToken415'; export * from './createApiTokenSchema'; -export * from './createApiTokenSchemaAnyOf'; -export * from './createApiTokenSchemaAnyOfTwo'; +export * from './createApiTokenSchemaOneOf'; +export * from './createApiTokenSchemaOneOfAllOf'; +export * from './createApiTokenSchemaOneOfAllOfTwo'; +export * from './createApiTokenSchemaOneOfFour'; +export * from './createApiTokenSchemaOneOfFourAllOf'; +export * from './createApiTokenSchemaOneOfFourAllOfTwo'; +export * from './createApiTokenSchemaOneOfOnezero'; +export * from './createApiTokenSchemaOneOfOnezeroAllOf'; +export * from './createApiTokenSchemaOneOfOnezeroAllOfTwo'; +export * from './createApiTokenSchemaOneOfSeven'; +export * from './createApiTokenSchemaOneOfSevenAllOf'; +export * from './createApiTokenSchemaOneOfSevenAllOfTwo'; export * from './createApplication400'; export * from './createApplication401'; export * from './createApplication403'; @@ -133,8 +194,15 @@ export * from './createApplicationSchema'; export * from './createEnvironment400'; export * from './createEnvironment401'; export * from './createEnvironmentSchema'; +export * from './createFeature401'; +export * from './createFeature403'; +export * from './createFeature404'; +export * from './createFeature415'; export * from './createFeatureSchema'; export * from './createFeatureStrategySchema'; +export * from './createFeedback400'; +export * from './createFeedback401'; +export * from './createFeedback415'; export * from './createInvitedUserSchema'; export * from './createPat401'; export * from './createPat403'; @@ -157,25 +225,81 @@ export * from './createSegment400'; export * from './createSegment401'; export * from './createSegment403'; export * from './createSegment409'; +export * from './createSegment415'; +export * from './createServiceAccount400'; +export * from './createServiceAccount401'; +export * from './createServiceAccount403'; +export * from './createServiceAccount409'; +export * from './createServiceAccount415'; export * from './createServiceAccountSchema'; +export * from './createServiceAccountToken401'; +export * from './createServiceAccountToken403'; +export * from './createServiceAccountToken404'; +export * from './createServiceAccountToken409'; +export * from './createServiceAccountToken415'; +export * from './createStrategy401'; +export * from './createStrategy403'; +export * from './createStrategy409'; +export * from './createStrategy415'; +export * from './createStrategySchema'; +export * from './createStrategySchemaParametersItem'; +export * from './createStrategySchemaParametersItemType'; +export * from './createStrategyVariantSchema'; +export * from './createStrategyVariantSchemaPayload'; +export * from './createStrategyVariantSchemaWeightType'; +export * from './createTag400'; +export * from './createTag401'; +export * from './createTag403'; +export * from './createTag409'; +export * from './createTag415'; +export * from './createTagType400'; +export * from './createTagType401'; +export * from './createTagType403'; +export * from './createTagType409'; +export * from './createTagType415'; +export * from './createUser400'; +export * from './createUser401'; +export * from './createUser403'; +export * from './createUserResponseSchema'; +export * from './createUserResponseSchemaRootRole'; export * from './createUserSchema'; +export * from './createUserSchemaRootRole'; export * from './dateSchema'; export * from './deleteAddon401'; export * from './deleteAddon403'; export * from './deleteAddon404'; +export * from './deleteApiToken401'; +export * from './deleteApiToken403'; export * from './deleteApplication401'; export * from './deleteApplication403'; -export * from './deleteLoginEvent400'; -export * from './deleteLoginEvent401'; -export * from './deleteLoginEvent404'; -export * from './deleteLoginHistory401'; -export * from './deleteLoginHistory404'; +export * from './deleteFeature401'; +export * from './deleteFeature403'; +export * from './deleteFeatureStrategy401'; +export * from './deleteFeatureStrategy403'; +export * from './deleteFeatureStrategy404'; +export * from './deleteFeatures400'; +export * from './deleteFeatures401'; +export * from './deleteFeatures403'; export * from './deletePat401'; export * from './deletePat403'; export * from './deletePat404'; export * from './deleteProjectApiToken401'; export * from './deleteProjectApiToken403'; export * from './deleteRole409'; +export * from './deleteServiceAccount401'; +export * from './deleteServiceAccount403'; +export * from './deleteServiceAccount404'; +export * from './deleteServiceAccountToken401'; +export * from './deleteServiceAccountToken403'; +export * from './deleteServiceAccountToken404'; +export * from './deleteTagType401'; +export * from './deleteTagType403'; +export * from './deleteUser401'; +export * from './deleteUser403'; +export * from './deleteUser404'; +export * from './deprecateStrategy401'; +export * from './deprecateStrategy403'; +export * from './deprecateStrategy404'; export * from './edgeTokenSchema'; export * from './edgeTokenSchemaType'; export * from './editChange404'; @@ -187,7 +311,10 @@ export * from './environmentsSchema'; export * from './eventSchema'; export * from './eventSchemaData'; export * from './eventSchemaPreData'; +export * from './eventSchemaType'; export * from './eventsSchema'; +export * from './eventsSchemaVersion'; +export * from './exportFeatures404'; export * from './exportQuerySchema'; export * from './exportQuerySchemaOneOf'; export * from './exportQuerySchemaOneOfTwo'; @@ -197,6 +324,7 @@ export * from './featureEnvironmentMetricsSchema'; export * from './featureEnvironmentMetricsSchemaVariants'; export * from './featureEnvironmentSchema'; export * from './featureEventsSchema'; +export * from './featureEventsSchemaVersion'; export * from './featureMetricsSchema'; export * from './featureSchema'; export * from './featureSchemaStrategiesItem'; @@ -205,42 +333,83 @@ export * from './featureStrategySegmentSchema'; export * from './featureTagSchema'; export * from './featureTypeSchema'; export * from './featureTypesSchema'; +export * from './featureTypesSchemaVersion'; export * from './featureUsageSchema'; export * from './featureVariantsSchema'; export * from './featuresSchema'; -export * from './feedbackSchema'; +export * from './feedbackCreateSchema'; +export * from './feedbackResponseSchema'; +export * from './feedbackUpdateSchema'; export * from './getAddon401'; export * from './getAddons401'; +export * from './getAdminCount401'; +export * from './getAdminCount403'; export * from './getAdvancedPlayground400'; export * from './getAdvancedPlayground401'; +export * from './getAllApiTokens401'; +export * from './getAllApiTokens403'; export * from './getAllEnvironments401'; export * from './getAllEnvironments403'; +export * from './getAllFeatureTypes401'; +export * from './getAllStrategies401'; +export * from './getAllToggles401'; +export * from './getAllToggles403'; export * from './getApplication404'; +export * from './getArchivedFeatures401'; +export * from './getArchivedFeatures403'; +export * from './getArchivedFeaturesByProjectId401'; +export * from './getArchivedFeaturesByProjectId403'; +export * from './getBaseUsersAndGroups401'; export * from './getChangeRequest404'; export * from './getEnvironment401'; export * from './getEnvironment403'; export * from './getEnvironment404'; +export * from './getEnvironmentFeatureVariants401'; +export * from './getEnvironmentFeatureVariants403'; +export * from './getEnvironmentFeatureVariants404'; export * from './getEvents401'; export * from './getEventsForToggle401'; export * from './getEventsParams'; export * from './getFeature401'; +export * from './getFeature403'; export * from './getFeature404'; +export * from './getFeatureEnvironment401'; +export * from './getFeatureEnvironment403'; +export * from './getFeatureEnvironment404'; +export * from './getFeatureStrategies401'; +export * from './getFeatureStrategies403'; +export * from './getFeatureStrategies404'; +export * from './getFeatureStrategy401'; +export * from './getFeatureStrategy403'; +export * from './getFeatureStrategy404'; export * from './getFeatureUsageSummary401'; export * from './getFeatureUsageSummary403'; export * from './getFeatureUsageSummary404'; +export * from './getFeatureVariants401'; +export * from './getFeatureVariants403'; +export * from './getFeatureVariants404'; +export * from './getFeatures400'; +export * from './getFeatures401'; +export * from './getFeatures403'; +export * from './getFrontendFeatures401'; +export * from './getFrontendFeatures404'; export * from './getGoogleSettings400'; export * from './getGoogleSettings401'; +export * from './getGoogleSettings403'; export * from './getLoginHistory401'; export * from './getLoginHistory404'; export * from './getMaintenance401'; export * from './getMaintenance403'; +export * from './getMe401'; export * from './getOidcSettings400'; export * from './getOidcSettings401'; +export * from './getOidcSettings403'; export * from './getPats401'; export * from './getPats403'; export * from './getPats404'; export * from './getPlayground400'; export * from './getPlayground401'; +export * from './getProfile401'; export * from './getProjectApiTokens401'; export * from './getProjectApiTokens403'; export * from './getProjectApiTokens404'; @@ -262,7 +431,34 @@ export * from './getRawFeatureMetrics403'; export * from './getRawFeatureMetrics404'; export * from './getSamlSettings400'; export * from './getSamlSettings401'; +export * from './getSamlSettings403'; export * from './getSegment404'; +export * from './getServiceAccountTokens401'; +export * from './getServiceAccountTokens403'; +export * from './getServiceAccountTokens404'; +export * from './getServiceAccounts401'; +export * from './getServiceAccounts403'; +export * from './getSimpleSettings401'; +export * from './getSimpleSettings403'; +export * from './getStrategiesByContextField401'; +export * from './getStrategy401'; +export * from './getStrategy404'; +export * from './getTag401'; +export * from './getTag403'; +export * from './getTag404'; +export * from './getTagType401'; +export * from './getTagType403'; +export * from './getTagTypes401'; +export * from './getTagTypes403'; +export * from './getTags401'; +export * from './getTags403'; +export * from './getTagsByType401'; +export * from './getTagsByType403'; +export * from './getUser400'; +export * from './getUser401'; +export * from './getUser404'; +export * from './getUsers401'; +export * from './getUsers403'; export * from './getValidTokens400'; export * from './getValidTokens413'; export * from './getValidTokens415'; @@ -277,6 +473,7 @@ export * from './healthOverviewSchemaMode'; export * from './healthReportSchema'; export * from './healthReportSchemaMode'; export * from './idSchema'; +export * from './importToggles404'; export * from './importTogglesSchema'; export * from './importTogglesValidateItemSchema'; export * from './importTogglesValidateSchema'; @@ -289,6 +486,7 @@ export * from './legalValueSchema'; export * from './listTags401'; export * from './listTags403'; export * from './listTags404'; +export * from './login401'; export * from './loginEventSchema'; export * from './loginHistorySchema'; export * from './loginSchema'; @@ -305,10 +503,37 @@ export * from './oidcSettingsSchema'; export * from './oidcSettingsSchemaDefaultRootRole'; export * from './oidcSettingsSchemaIdTokenSigningAlgorithm'; export * from './overrideSchema'; +export * from './overwriteEnvironmentFeatureVariants400'; +export * from './overwriteEnvironmentFeatureVariants401'; +export * from './overwriteEnvironmentFeatureVariants403'; +export * from './overwriteFeatureVariants400'; +export * from './overwriteFeatureVariants401'; +export * from './overwriteFeatureVariants403'; +export * from './overwriteFeatureVariants404'; +export * from './overwriteFeatureVariantsOnEnvironments400'; +export * from './overwriteFeatureVariantsOnEnvironments401'; +export * from './overwriteFeatureVariantsOnEnvironments403'; export * from './parametersSchema'; export * from './passwordAuthSchema'; export * from './passwordSchema'; export * from './patSchema'; +export * from './patchEnvironmentsFeatureVariants400'; +export * from './patchEnvironmentsFeatureVariants401'; +export * from './patchEnvironmentsFeatureVariants403'; +export * from './patchEnvironmentsFeatureVariants404'; +export * from './patchFeature401'; +export * from './patchFeature403'; +export * from './patchFeature404'; +export * from './patchFeature415'; +export * from './patchFeatureStrategy400'; +export * from './patchFeatureStrategy401'; +export * from './patchFeatureStrategy403'; +export * from './patchFeatureStrategy404'; +export * from './patchFeatureStrategy415'; +export * from './patchFeatureVariants400'; +export * from './patchFeatureVariants401'; +export * from './patchFeatureVariants403'; +export * from './patchFeatureVariants404'; export * from './patchSchema'; export * from './patchSchemaOp'; export * from './patchesSchema'; @@ -340,13 +565,15 @@ export * from './projectCreatedSchema'; export * from './projectCreatedSchemaMode'; export * from './projectEnvironmentSchema'; export * from './projectOverviewSchema'; +export * from './projectOverviewSchemaMode'; export * from './projectSchema'; export * from './projectSchemaMode'; export * from './projectSettingsSchema'; export * from './projectSettingsSchemaDefaultStickiness'; export * from './projectSettingsSchemaMode'; export * from './projectStatsSchema'; -export * from './projectUsers'; +export * from './projectUsersSchema'; +export * from './projectsOverviewSchema'; export * from './projectsSchema'; export * from './proxyClientSchema'; export * from './proxyClientSchemaStarted'; @@ -360,23 +587,53 @@ export * from './publicSignupTokenSchema'; export * from './publicSignupTokenUpdateSchema'; export * from './publicSignupTokensSchema'; export * from './pushVariantsSchema'; +export * from './reactivateStrategy401'; +export * from './reactivateStrategy403'; +export * from './reactivateStrategy404'; export * from './registerClientMetrics400'; +export * from './registerFrontendClient400'; +export * from './registerFrontendClient401'; +export * from './registerFrontendClient404'; +export * from './registerFrontendMetrics400'; +export * from './registerFrontendMetrics401'; +export * from './registerFrontendMetrics404'; export * from './removeEnvironment400'; export * from './removeEnvironment401'; export * from './removeEnvironmentFromProject400'; export * from './removeEnvironmentFromProject401'; export * from './removeEnvironmentFromProject403'; +export * from './removeFavoriteFeature401'; +export * from './removeFavoriteFeature404'; +export * from './removeFavoriteProject401'; +export * from './removeFavoriteProject404'; export * from './removeSegment401'; export * from './removeSegment403'; export * from './removeSegment409'; +export * from './removeStrategy401'; +export * from './removeStrategy403'; +export * from './removeStrategy404'; +export * from './removeTag401'; +export * from './removeTag403'; export * from './removeTag404'; export * from './requestsPerSecondSchema'; export * from './requestsPerSecondSchemaData'; export * from './requestsPerSecondSchemaDataResultItem'; export * from './requestsPerSecondSchemaDataResultItemMetric'; export * from './requestsPerSecondSchemaDataResultItemValuesItemItem'; +export * from './requestsPerSecondSchemaDataResultType'; +export * from './requestsPerSecondSchemaStatus'; export * from './requestsPerSecondSegmentedSchema'; export * from './resetPasswordSchema'; +export * from './resetUserPassword400'; +export * from './resetUserPassword401'; +export * from './resetUserPassword403'; +export * from './resetUserPassword404'; +export * from './reviveFeature400'; +export * from './reviveFeature401'; +export * from './reviveFeature403'; +export * from './reviveFeatures400'; +export * from './reviveFeatures401'; +export * from './reviveFeatures403'; export * from './roleSchema'; export * from './roleWithPermissionsSchema'; export * from './roleWithVersionSchema'; @@ -386,42 +643,74 @@ export * from './samlSettingsSchemaDefaultRootRole'; export * from './sdkContextSchema'; export * from './sdkContextSchemaProperties'; export * from './searchEventsSchema'; +export * from './searchEventsSchemaType'; +export * from './searchUsers401'; +export * from './searchUsersParams'; export * from './segmentSchema'; -export * from './segmentStrategiesSchema'; -export * from './segmentStrategiesSchemaStrategiesItem'; export * from './segmentsSchema'; +export * from './sendResetPasswordEmail401'; +export * from './sendResetPasswordEmail404'; +export * from './sendResetPasswordEmail415'; export * from './serviceAccountSchema'; export * from './serviceAccountsSchema'; export * from './setGoogleSettings400'; export * from './setGoogleSettings401'; +export * from './setGoogleSettings403'; +export * from './setGoogleSettings415'; export * from './setOidcSettings400'; export * from './setOidcSettings401'; +export * from './setOidcSettings403'; +export * from './setOidcSettings415'; export * from './setSamlSettings400'; export * from './setSamlSettings401'; +export * from './setSamlSettings403'; +export * from './setSamlSettings415'; export * from './setSimpleSettings400'; export * from './setSimpleSettings401'; +export * from './setSimpleSettings403'; +export * from './setSimpleSettings415'; +export * from './setStrategySortOrder400'; +export * from './setStrategySortOrder401'; +export * from './setStrategySortOrder403'; export * from './setStrategySortOrderSchema'; export * from './setStrategySortOrderSchemaItem'; export * from './setUiConfigSchema'; export * from './setUiConfigSchemaFrontendSettings'; export * from './sortOrderSchema'; -export * from './splashSchema'; +export * from './splashRequestSchema'; +export * from './splashResponseSchema'; +export * from './staleFeatures401'; +export * from './staleFeatures403'; +export * from './staleFeatures415'; export * from './stateSchema'; export * from './strategiesSchema'; +export * from './strategiesSchemaVersion'; export * from './strategySchema'; export * from './strategySchemaParametersItem'; +export * from './strategyVariantSchema'; +export * from './strategyVariantSchemaPayload'; +export * from './strategyVariantSchemaWeightType'; export * from './tagSchema'; export * from './tagTypeSchema'; export * from './tagTypesSchema'; export * from './tagWithVersionSchema'; export * from './tagsBulkAddSchema'; export * from './tagsSchema'; +export * from './telemetrySettingsSchema'; export * from './toggleEnvironmentOff401'; export * from './toggleEnvironmentOff403'; export * from './toggleEnvironmentOff404'; export * from './toggleEnvironmentOn401'; export * from './toggleEnvironmentOn403'; export * from './toggleEnvironmentOn404'; +export * from './toggleFeatureEnvironmentOff400'; +export * from './toggleFeatureEnvironmentOff401'; +export * from './toggleFeatureEnvironmentOff403'; +export * from './toggleFeatureEnvironmentOff404'; +export * from './toggleFeatureEnvironmentOn400'; +export * from './toggleFeatureEnvironmentOn401'; +export * from './toggleFeatureEnvironmentOn403'; +export * from './toggleFeatureEnvironmentOn404'; export * from './toggleMaintenance400'; export * from './toggleMaintenance401'; export * from './toggleMaintenance403'; @@ -438,17 +727,40 @@ export * from './updateAddon403'; export * from './updateAddon404'; export * from './updateAddon413'; export * from './updateAddon415'; +export * from './updateApiToken401'; +export * from './updateApiToken403'; +export * from './updateApiToken415'; export * from './updateApiTokenSchema'; export * from './updateChangeRequestEnvironmentConfigSchema'; export * from './updateEnvironment400'; export * from './updateEnvironment401'; export * from './updateEnvironmentSchema'; +export * from './updateFeature401'; +export * from './updateFeature403'; +export * from './updateFeature404'; +export * from './updateFeature415'; export * from './updateFeatureSchema'; +export * from './updateFeatureStrategy400'; +export * from './updateFeatureStrategy401'; +export * from './updateFeatureStrategy403'; +export * from './updateFeatureStrategy404'; +export * from './updateFeatureStrategy415'; export * from './updateFeatureStrategySchema'; export * from './updateFeatureStrategySegments400'; export * from './updateFeatureStrategySegments401'; export * from './updateFeatureStrategySegments403'; +export * from './updateFeatureStrategySegments415'; export * from './updateFeatureStrategySegmentsSchema'; +export * from './updateFeatureTypeLifetime400'; +export * from './updateFeatureTypeLifetime401'; +export * from './updateFeatureTypeLifetime403'; +export * from './updateFeatureTypeLifetime404'; +export * from './updateFeatureTypeLifetime409'; +export * from './updateFeatureTypeLifetime415'; +export * from './updateFeatureTypeLifetimeSchema'; +export * from './updateFeedback400'; +export * from './updateFeedback401'; +export * from './updateFeedback415'; export * from './updateProjectSchema'; export * from './updatePublicSignupToken400'; export * from './updatePublicSignupToken401'; @@ -458,40 +770,90 @@ export * from './updateSegment400'; export * from './updateSegment401'; export * from './updateSegment403'; export * from './updateSegment409'; +export * from './updateSegment415'; +export * from './updateServiceAccount400'; +export * from './updateServiceAccount401'; +export * from './updateServiceAccount403'; +export * from './updateServiceAccount404'; +export * from './updateServiceAccount415'; export * from './updateServiceAccountSchema'; export * from './updateSortOrder401'; export * from './updateSortOrder403'; export * from './updateSortOrder404'; +export * from './updateSplashSettings400'; +export * from './updateSplashSettings401'; +export * from './updateSplashSettings403'; +export * from './updateSplashSettings415'; +export * from './updateStrategy401'; +export * from './updateStrategy403'; +export * from './updateStrategy404'; +export * from './updateStrategy415'; +export * from './updateStrategySchema'; +export * from './updateStrategySchemaParametersItem'; +export * from './updateStrategySchemaParametersItemType'; +export * from './updateTagType400'; +export * from './updateTagType401'; +export * from './updateTagType403'; +export * from './updateTagType415'; export * from './updateTagTypeSchema'; export * from './updateTags400'; export * from './updateTags401'; export * from './updateTags403'; export * from './updateTags404'; export * from './updateTagsSchema'; +export * from './updateUser400'; +export * from './updateUser401'; +export * from './updateUser403'; +export * from './updateUser404'; export * from './updateUserSchema'; +export * from './updateUserSchemaRootRole'; export * from './upsertContextFieldSchema'; export * from './upsertSegmentSchema'; -export * from './upsertStrategySchema'; -export * from './upsertStrategySchemaParametersItem'; export * from './userSchema'; export * from './userWithProjectRoleSchema'; export * from './usersGroupsBaseSchema'; export * from './usersSchema'; export * from './usersSearchSchema'; +export * from './validateConstraint400'; +export * from './validateConstraint401'; +export * from './validateConstraint403'; +export * from './validateConstraint415'; export * from './validateEnvironmentName400'; export * from './validateEnvironmentName401'; +export * from './validateFeature400'; +export * from './validateFeature401'; +export * from './validateFeature409'; +export * from './validateFeature415'; +export * from './validateFeatureSchema'; +export * from './validateImport404'; +export * from './validatePassword400'; +export * from './validatePassword415'; export * from './validatePasswordSchema'; export * from './validateProjectSchema'; export * from './validatePublicSignupToken400'; export * from './validateRole400'; +export * from './validateSegment400'; export * from './validateSegment401'; export * from './validateSegment409'; +export * from './validateSegment415'; +export * from './validateTagType400'; +export * from './validateTagType401'; +export * from './validateTagType403'; +export * from './validateTagType409'; +export * from './validateTagType415'; export * from './validateTagTypeSchema'; +export * from './validateToken401'; +export * from './validateToken415'; +export * from './validateUserPassword400'; +export * from './validateUserPassword401'; +export * from './validateUserPassword415'; export * from './validatedEdgeTokensSchema'; export * from './variantFlagSchema'; export * from './variantFlagSchemaPayload'; +export * from './variantFlagSchemaPayloadType'; export * from './variantSchema'; export * from './variantSchemaPayload'; +export * from './variantSchemaWeightType'; export * from './variantsSchema'; export * from './versionSchema'; export * from './versionSchemaCurrent'; diff --git a/frontend/src/openapi/models/legalValueSchema.ts b/frontend/src/openapi/models/legalValueSchema.ts index ebdd36cafa..5962e31570 100644 --- a/frontend/src/openapi/models/legalValueSchema.ts +++ b/frontend/src/openapi/models/legalValueSchema.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * Describes a legal value. Typically used to limit possible values for contextFields or strategy properties + */ export interface LegalValueSchema { + /** The valid value */ value: string; + /** Describes this specific legal value */ description?: string; } diff --git a/frontend/src/openapi/models/login401.ts b/frontend/src/openapi/models/login401.ts new file mode 100644 index 0000000000..29d8e24ab8 --- /dev/null +++ b/frontend/src/openapi/models/login401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type Login401 = { + /** 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/loginSchema.ts b/frontend/src/openapi/models/loginSchema.ts index 9c1a89772e..6235458cc7 100644 --- a/frontend/src/openapi/models/loginSchema.ts +++ b/frontend/src/openapi/models/loginSchema.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * A username/password login request + */ export interface LoginSchema { + /** The username trying to log in */ username: string; + /** The password of the user trying to log in */ password: string; } diff --git a/frontend/src/openapi/models/meSchema.ts b/frontend/src/openapi/models/meSchema.ts index 01820505fb..33b607ae5f 100644 --- a/frontend/src/openapi/models/meSchema.ts +++ b/frontend/src/openapi/models/meSchema.ts @@ -5,12 +5,18 @@ */ import type { UserSchema } from './userSchema'; import type { PermissionSchema } from './permissionSchema'; -import type { FeedbackSchema } from './feedbackSchema'; +import type { FeedbackResponseSchema } from './feedbackResponseSchema'; import type { MeSchemaSplash } from './meSchemaSplash'; +/** + * Detailed user information + */ export interface MeSchema { user: UserSchema; + /** User permissions for projects and environments */ permissions: PermissionSchema[]; - feedback: FeedbackSchema[]; + /** User feedback information */ + feedback: FeedbackResponseSchema[]; + /** Splash screen configuration */ splash: MeSchemaSplash; } diff --git a/frontend/src/openapi/models/meSchemaSplash.ts b/frontend/src/openapi/models/meSchemaSplash.ts index 395197d8a3..0612010cd5 100644 --- a/frontend/src/openapi/models/meSchemaSplash.ts +++ b/frontend/src/openapi/models/meSchemaSplash.ts @@ -4,4 +4,7 @@ * See `gen:api` script in package.json */ +/** + * Splash screen configuration + */ export type MeSchemaSplash = { [key: string]: boolean }; diff --git a/frontend/src/openapi/models/nameSchema.ts b/frontend/src/openapi/models/nameSchema.ts index 945f7443f1..af65b99db0 100644 --- a/frontend/src/openapi/models/nameSchema.ts +++ b/frontend/src/openapi/models/nameSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * An object with a name + */ export interface NameSchema { + /** The name of the represented object. */ name: string; } diff --git a/frontend/src/openapi/models/overwriteEnvironmentFeatureVariants400.ts b/frontend/src/openapi/models/overwriteEnvironmentFeatureVariants400.ts new file mode 100644 index 0000000000..d083dfc3b7 --- /dev/null +++ b/frontend/src/openapi/models/overwriteEnvironmentFeatureVariants400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteEnvironmentFeatureVariants400 = { + /** 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/overwriteEnvironmentFeatureVariants401.ts b/frontend/src/openapi/models/overwriteEnvironmentFeatureVariants401.ts new file mode 100644 index 0000000000..25aa477617 --- /dev/null +++ b/frontend/src/openapi/models/overwriteEnvironmentFeatureVariants401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteEnvironmentFeatureVariants401 = { + /** 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/overwriteEnvironmentFeatureVariants403.ts b/frontend/src/openapi/models/overwriteEnvironmentFeatureVariants403.ts new file mode 100644 index 0000000000..2e3c7615ec --- /dev/null +++ b/frontend/src/openapi/models/overwriteEnvironmentFeatureVariants403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteEnvironmentFeatureVariants403 = { + /** 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/overwriteFeatureVariants400.ts b/frontend/src/openapi/models/overwriteFeatureVariants400.ts new file mode 100644 index 0000000000..eabca038a4 --- /dev/null +++ b/frontend/src/openapi/models/overwriteFeatureVariants400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteFeatureVariants400 = { + /** 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/overwriteFeatureVariants401.ts b/frontend/src/openapi/models/overwriteFeatureVariants401.ts new file mode 100644 index 0000000000..abb90d264c --- /dev/null +++ b/frontend/src/openapi/models/overwriteFeatureVariants401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteFeatureVariants401 = { + /** 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/overwriteFeatureVariants403.ts b/frontend/src/openapi/models/overwriteFeatureVariants403.ts new file mode 100644 index 0000000000..70332d6a3c --- /dev/null +++ b/frontend/src/openapi/models/overwriteFeatureVariants403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteFeatureVariants403 = { + /** 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/overwriteFeatureVariants404.ts b/frontend/src/openapi/models/overwriteFeatureVariants404.ts new file mode 100644 index 0000000000..2c24dbf839 --- /dev/null +++ b/frontend/src/openapi/models/overwriteFeatureVariants404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteFeatureVariants404 = { + /** 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/overwriteFeatureVariantsOnEnvironments400.ts b/frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments400.ts new file mode 100644 index 0000000000..247c0504cf --- /dev/null +++ b/frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteFeatureVariantsOnEnvironments400 = { + /** 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/overwriteFeatureVariantsOnEnvironments401.ts b/frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments401.ts new file mode 100644 index 0000000000..606327beb3 --- /dev/null +++ b/frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteFeatureVariantsOnEnvironments401 = { + /** 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/overwriteFeatureVariantsOnEnvironments403.ts b/frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments403.ts new file mode 100644 index 0000000000..294b8c613d --- /dev/null +++ b/frontend/src/openapi/models/overwriteFeatureVariantsOnEnvironments403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type OverwriteFeatureVariantsOnEnvironments403 = { + /** 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/parametersSchema.ts b/frontend/src/openapi/models/parametersSchema.ts index aa04e04bb8..449228b15d 100644 --- a/frontend/src/openapi/models/parametersSchema.ts +++ b/frontend/src/openapi/models/parametersSchema.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * A list of parameters for a strategy + */ export interface ParametersSchema { [key: string]: string; } diff --git a/frontend/src/openapi/models/passwordAuthSchema.ts b/frontend/src/openapi/models/passwordAuthSchema.ts index 476c0e5adf..f5318d5fab 100644 --- a/frontend/src/openapi/models/passwordAuthSchema.ts +++ b/frontend/src/openapi/models/passwordAuthSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * Does the server allow username/password authentication + */ export interface PasswordAuthSchema { + /** Is username/password authentication enabled */ enabled?: boolean; } diff --git a/frontend/src/openapi/models/passwordSchema.ts b/frontend/src/openapi/models/passwordSchema.ts index 2cd30985b4..c45723bd87 100644 --- a/frontend/src/openapi/models/passwordSchema.ts +++ b/frontend/src/openapi/models/passwordSchema.ts @@ -4,8 +4,14 @@ * See `gen:api` script in package.json */ +/** + * Fields used to create new password or update old password + */ export interface PasswordSchema { + /** The new password to change or validate. */ password: string; + /** The old password the user is changing. This field is for the non-admin users changing their own password. */ oldPassword?: string; + /** The confirmation of the new password. This field is for the non-admin users changing their own password. */ confirmPassword?: string; } diff --git a/frontend/src/openapi/models/patchEnvironmentsFeatureVariants400.ts b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants400.ts new file mode 100644 index 0000000000..d8501617c2 --- /dev/null +++ b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchEnvironmentsFeatureVariants400 = { + /** 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/patchEnvironmentsFeatureVariants401.ts b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants401.ts new file mode 100644 index 0000000000..69e97dff46 --- /dev/null +++ b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchEnvironmentsFeatureVariants401 = { + /** 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/patchEnvironmentsFeatureVariants403.ts b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants403.ts new file mode 100644 index 0000000000..ffe8e60f91 --- /dev/null +++ b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchEnvironmentsFeatureVariants403 = { + /** 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/patchEnvironmentsFeatureVariants404.ts b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants404.ts new file mode 100644 index 0000000000..feefe45b72 --- /dev/null +++ b/frontend/src/openapi/models/patchEnvironmentsFeatureVariants404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchEnvironmentsFeatureVariants404 = { + /** 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/patchFeature401.ts b/frontend/src/openapi/models/patchFeature401.ts new file mode 100644 index 0000000000..f38807901c --- /dev/null +++ b/frontend/src/openapi/models/patchFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeature401 = { + /** 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/patchFeature403.ts b/frontend/src/openapi/models/patchFeature403.ts new file mode 100644 index 0000000000..6c250b6e5f --- /dev/null +++ b/frontend/src/openapi/models/patchFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeature403 = { + /** 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/patchFeature404.ts b/frontend/src/openapi/models/patchFeature404.ts new file mode 100644 index 0000000000..fb78bad79e --- /dev/null +++ b/frontend/src/openapi/models/patchFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeature404 = { + /** 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/patchFeature415.ts b/frontend/src/openapi/models/patchFeature415.ts new file mode 100644 index 0000000000..0e28bf2f2d --- /dev/null +++ b/frontend/src/openapi/models/patchFeature415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeature415 = { + /** 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/patchFeatureStrategy400.ts b/frontend/src/openapi/models/patchFeatureStrategy400.ts new file mode 100644 index 0000000000..18c0d464b7 --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureStrategy400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureStrategy400 = { + /** 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/patchFeatureStrategy401.ts b/frontend/src/openapi/models/patchFeatureStrategy401.ts new file mode 100644 index 0000000000..5deff24ea3 --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureStrategy401 = { + /** 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/patchFeatureStrategy403.ts b/frontend/src/openapi/models/patchFeatureStrategy403.ts new file mode 100644 index 0000000000..d5cceee2ac --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureStrategy403 = { + /** 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/patchFeatureStrategy404.ts b/frontend/src/openapi/models/patchFeatureStrategy404.ts new file mode 100644 index 0000000000..6b9093292f --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureStrategy404 = { + /** 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/patchFeatureStrategy415.ts b/frontend/src/openapi/models/patchFeatureStrategy415.ts new file mode 100644 index 0000000000..52ec681307 --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureStrategy415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureStrategy415 = { + /** 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/patchFeatureVariants400.ts b/frontend/src/openapi/models/patchFeatureVariants400.ts new file mode 100644 index 0000000000..8cc19065cc --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureVariants400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureVariants400 = { + /** 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/patchFeatureVariants401.ts b/frontend/src/openapi/models/patchFeatureVariants401.ts new file mode 100644 index 0000000000..0f52ee458b --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureVariants401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureVariants401 = { + /** 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/patchFeatureVariants403.ts b/frontend/src/openapi/models/patchFeatureVariants403.ts new file mode 100644 index 0000000000..727737b46b --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureVariants403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureVariants403 = { + /** 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/patchFeatureVariants404.ts b/frontend/src/openapi/models/patchFeatureVariants404.ts new file mode 100644 index 0000000000..01384c7d21 --- /dev/null +++ b/frontend/src/openapi/models/patchFeatureVariants404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type PatchFeatureVariants404 = { + /** 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/patchesSchema.ts b/frontend/src/openapi/models/patchesSchema.ts index d52fd0d847..d5723049b0 100644 --- a/frontend/src/openapi/models/patchesSchema.ts +++ b/frontend/src/openapi/models/patchesSchema.ts @@ -5,4 +5,7 @@ */ import type { PatchSchema } from './patchSchema'; +/** + * A list of patches + */ export type PatchesSchema = PatchSchema[]; diff --git a/frontend/src/openapi/models/permissionSchema.ts b/frontend/src/openapi/models/permissionSchema.ts index cf41dc8b1b..82657128e0 100644 --- a/frontend/src/openapi/models/permissionSchema.ts +++ b/frontend/src/openapi/models/permissionSchema.ts @@ -4,8 +4,14 @@ * See `gen:api` script in package.json */ +/** + * Project and environment permissions + */ export interface PermissionSchema { + /** [Project](https://docs.getunleash.io/reference/rbac#project-permissions) or [environment](https://docs.getunleash.io/reference/rbac#environment-permissions) permission name */ permission: string; + /** The project this permission applies to */ project?: string; + /** The environment this permission applies to */ environment?: string; } diff --git a/frontend/src/openapi/models/profileSchema.ts b/frontend/src/openapi/models/profileSchema.ts index e5c2ce790e..623a723830 100644 --- a/frontend/src/openapi/models/profileSchema.ts +++ b/frontend/src/openapi/models/profileSchema.ts @@ -6,8 +6,13 @@ import type { RoleSchema } from './roleSchema'; import type { FeatureSchema } from './featureSchema'; +/** + * User profile overview + */ export interface ProfileSchema { rootRole: RoleSchema; + /** Which projects this user is a member of */ projects: string[]; + /** Deprecated, always returns empty array */ features: FeatureSchema[]; } diff --git a/frontend/src/openapi/models/projectOverviewSchema.ts b/frontend/src/openapi/models/projectOverviewSchema.ts index c169228862..bde2018aef 100644 --- a/frontend/src/openapi/models/projectOverviewSchema.ts +++ b/frontend/src/openapi/models/projectOverviewSchema.ts @@ -3,10 +3,38 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ProjectSchema } from './projectSchema'; +import type { ProjectStatsSchema } from './projectStatsSchema'; +import type { ProjectOverviewSchemaMode } from './projectOverviewSchemaMode'; +import type { ProjectEnvironmentSchema } from './projectEnvironmentSchema'; +import type { FeatureSchema } from './featureSchema'; +/** + * A high-level overview of a project. It contains information such as project statistics, the name of the project, what members and what features it contains, etc. + */ export interface ProjectOverviewSchema { - featureCount: number; - memberCount: number; - projects: ProjectSchema[]; + /** Project statistics */ + stats?: ProjectStatsSchema; + version: number; + /** The name of this project */ + name: string; + /** Additional information about the project */ + description?: string | null; + /** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */ + 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?: ProjectOverviewSchemaMode; + /** A limit on the number of features allowed in the project. Null if no limit. */ + featureLimit?: number | null; + /** The number of members this project has */ + members?: number; + /** An indicator of the [project's health](https://docs.getunleash.io/reference/technical-debt#health-rating) on a scale from 0 to 100 */ + health?: number; + /** The environments that are enabled for this project */ + environments?: ProjectEnvironmentSchema[]; + /** The full list of features in this project (excluding archived features) */ + features?: FeatureSchema[]; + updatedAt?: string | null; + createdAt?: string | null; + /** `true` if the project was favorited, otherwise `false`. */ + favorite?: boolean; } diff --git a/frontend/src/openapi/models/projectOverviewSchemaMode.ts b/frontend/src/openapi/models/projectOverviewSchemaMode.ts new file mode 100644 index 0000000000..c378c7356a --- /dev/null +++ b/frontend/src/openapi/models/projectOverviewSchemaMode.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not. + */ +export type ProjectOverviewSchemaMode = + typeof ProjectOverviewSchemaMode[keyof typeof ProjectOverviewSchemaMode]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ProjectOverviewSchemaMode = { + open: 'open', + protected: 'protected', +} as const; diff --git a/frontend/src/openapi/models/projectUsers.ts b/frontend/src/openapi/models/projectUsersSchema.ts similarity index 88% rename from frontend/src/openapi/models/projectUsers.ts rename to frontend/src/openapi/models/projectUsersSchema.ts index 6e07d72449..5e8dcb1caf 100644 --- a/frontend/src/openapi/models/projectUsers.ts +++ b/frontend/src/openapi/models/projectUsersSchema.ts @@ -6,7 +6,7 @@ import type { UserWithProjectRoleSchema } from './userWithProjectRoleSchema'; import type { RoleSchema } from './roleSchema'; -export interface ProjectUsers { +export interface ProjectUsersSchema { users: UserWithProjectRoleSchema[]; roles: RoleSchema[]; } diff --git a/frontend/src/openapi/models/projectsOverviewSchema.ts b/frontend/src/openapi/models/projectsOverviewSchema.ts new file mode 100644 index 0000000000..4fcd1224a1 --- /dev/null +++ b/frontend/src/openapi/models/projectsOverviewSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ProjectSchema } from './projectSchema'; + +export interface ProjectsOverviewSchema { + featureCount: number; + memberCount: number; + projects: ProjectSchema[]; +} diff --git a/frontend/src/openapi/models/proxyClientSchema.ts b/frontend/src/openapi/models/proxyClientSchema.ts index 9b013006a3..34a33f5ec1 100644 --- a/frontend/src/openapi/models/proxyClientSchema.ts +++ b/frontend/src/openapi/models/proxyClientSchema.ts @@ -5,6 +5,9 @@ */ import type { ProxyClientSchemaStarted } from './proxyClientSchemaStarted'; +/** + * Frontend SDK client registration information + */ export interface ProxyClientSchema { /** Name of the application using Unleash */ appName: string; @@ -12,7 +15,10 @@ export interface ProxyClientSchema { instanceId?: string; /** Optional field that describes the sdk version (name:version) */ sdkVersion?: string; - /** @deprecated */ + /** + * deprecated + * @deprecated + */ environment?: string; /** At which interval, in milliseconds, will this client be expected to send metrics */ interval: number; diff --git a/frontend/src/openapi/models/proxyFeatureSchema.ts b/frontend/src/openapi/models/proxyFeatureSchema.ts index 6990e8b401..d836caf388 100644 --- a/frontend/src/openapi/models/proxyFeatureSchema.ts +++ b/frontend/src/openapi/models/proxyFeatureSchema.ts @@ -5,9 +5,16 @@ */ import type { ProxyFeatureSchemaVariant } from './proxyFeatureSchemaVariant'; +/** + * Frontend API feature + */ export interface ProxyFeatureSchema { + /** Unique feature name. */ name: string; + /** Always set to `true`. */ enabled: boolean; + /** `true` if the impression data collection is enabled for the feature, otherwise `false`. */ impressionData: boolean; + /** Variant details */ variant?: ProxyFeatureSchemaVariant; } diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts index 76df60a093..3c43d47246 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts @@ -5,8 +5,14 @@ */ import type { ProxyFeatureSchemaVariantPayload } from './proxyFeatureSchemaVariantPayload'; +/** + * Variant details + */ export type ProxyFeatureSchemaVariant = { + /** The variants name. Is unique for this feature toggle */ name: string; + /** Whether the variant is enabled or not. */ enabled: boolean; + /** Extra data configured for this variant */ payload?: ProxyFeatureSchemaVariantPayload; }; diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts index bc558b89eb..b8e7b6e4ef 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts @@ -5,7 +5,12 @@ */ import type { ProxyFeatureSchemaVariantPayloadType } from './proxyFeatureSchemaVariantPayloadType'; +/** + * Extra data configured for this variant + */ export type ProxyFeatureSchemaVariantPayload = { + /** The format of the payload. */ type: ProxyFeatureSchemaVariantPayloadType; + /** The payload value stringified. */ value: string; }; diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts index 511d22a3a4..963c92a4ea 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * The format of the payload. + */ export type ProxyFeatureSchemaVariantPayloadType = typeof ProxyFeatureSchemaVariantPayloadType[keyof typeof ProxyFeatureSchemaVariantPayloadType]; diff --git a/frontend/src/openapi/models/proxyFeaturesSchema.ts b/frontend/src/openapi/models/proxyFeaturesSchema.ts index 1fdb4f8c17..bbafacd11e 100644 --- a/frontend/src/openapi/models/proxyFeaturesSchema.ts +++ b/frontend/src/openapi/models/proxyFeaturesSchema.ts @@ -5,6 +5,10 @@ */ import type { ProxyFeatureSchema } from './proxyFeatureSchema'; +/** + * Frontend SDK features list + */ export interface ProxyFeaturesSchema { + /** The actual features returned to the Frontend SDK */ toggles: ProxyFeatureSchema[]; } diff --git a/frontend/src/openapi/models/reactivateStrategy401.ts b/frontend/src/openapi/models/reactivateStrategy401.ts new file mode 100644 index 0000000000..72978d8c61 --- /dev/null +++ b/frontend/src/openapi/models/reactivateStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReactivateStrategy401 = { + /** 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/reactivateStrategy403.ts b/frontend/src/openapi/models/reactivateStrategy403.ts new file mode 100644 index 0000000000..dc7c950c5e --- /dev/null +++ b/frontend/src/openapi/models/reactivateStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReactivateStrategy403 = { + /** 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/reactivateStrategy404.ts b/frontend/src/openapi/models/reactivateStrategy404.ts new file mode 100644 index 0000000000..87a3f2e9d1 --- /dev/null +++ b/frontend/src/openapi/models/reactivateStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReactivateStrategy404 = { + /** 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/registerFrontendClient400.ts b/frontend/src/openapi/models/registerFrontendClient400.ts new file mode 100644 index 0000000000..49644c1e7b --- /dev/null +++ b/frontend/src/openapi/models/registerFrontendClient400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RegisterFrontendClient400 = { + /** 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/registerFrontendClient401.ts b/frontend/src/openapi/models/registerFrontendClient401.ts new file mode 100644 index 0000000000..d6e8354d05 --- /dev/null +++ b/frontend/src/openapi/models/registerFrontendClient401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RegisterFrontendClient401 = { + /** 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/registerFrontendClient404.ts b/frontend/src/openapi/models/registerFrontendClient404.ts new file mode 100644 index 0000000000..5f6518127e --- /dev/null +++ b/frontend/src/openapi/models/registerFrontendClient404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RegisterFrontendClient404 = { + /** 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/registerFrontendMetrics400.ts b/frontend/src/openapi/models/registerFrontendMetrics400.ts new file mode 100644 index 0000000000..1870e6fd41 --- /dev/null +++ b/frontend/src/openapi/models/registerFrontendMetrics400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RegisterFrontendMetrics400 = { + /** 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/registerFrontendMetrics401.ts b/frontend/src/openapi/models/registerFrontendMetrics401.ts new file mode 100644 index 0000000000..a924e6dc00 --- /dev/null +++ b/frontend/src/openapi/models/registerFrontendMetrics401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RegisterFrontendMetrics401 = { + /** 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/registerFrontendMetrics404.ts b/frontend/src/openapi/models/registerFrontendMetrics404.ts new file mode 100644 index 0000000000..31e26ece41 --- /dev/null +++ b/frontend/src/openapi/models/registerFrontendMetrics404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RegisterFrontendMetrics404 = { + /** 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/removeFavoriteFeature401.ts b/frontend/src/openapi/models/removeFavoriteFeature401.ts new file mode 100644 index 0000000000..8760f7f6ab --- /dev/null +++ b/frontend/src/openapi/models/removeFavoriteFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveFavoriteFeature401 = { + /** 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/removeFavoriteFeature404.ts b/frontend/src/openapi/models/removeFavoriteFeature404.ts new file mode 100644 index 0000000000..bbe220fc96 --- /dev/null +++ b/frontend/src/openapi/models/removeFavoriteFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveFavoriteFeature404 = { + /** 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/removeFavoriteProject401.ts b/frontend/src/openapi/models/removeFavoriteProject401.ts new file mode 100644 index 0000000000..77313f0f37 --- /dev/null +++ b/frontend/src/openapi/models/removeFavoriteProject401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveFavoriteProject401 = { + /** 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/removeFavoriteProject404.ts b/frontend/src/openapi/models/removeFavoriteProject404.ts new file mode 100644 index 0000000000..209445cc22 --- /dev/null +++ b/frontend/src/openapi/models/removeFavoriteProject404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveFavoriteProject404 = { + /** 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/removeStrategy401.ts b/frontend/src/openapi/models/removeStrategy401.ts new file mode 100644 index 0000000000..a7a3022b8d --- /dev/null +++ b/frontend/src/openapi/models/removeStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveStrategy401 = { + /** 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/removeStrategy403.ts b/frontend/src/openapi/models/removeStrategy403.ts new file mode 100644 index 0000000000..205e50cc96 --- /dev/null +++ b/frontend/src/openapi/models/removeStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveStrategy403 = { + /** 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/removeStrategy404.ts b/frontend/src/openapi/models/removeStrategy404.ts new file mode 100644 index 0000000000..61401aebff --- /dev/null +++ b/frontend/src/openapi/models/removeStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveStrategy404 = { + /** 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/removeTag401.ts b/frontend/src/openapi/models/removeTag401.ts new file mode 100644 index 0000000000..6819d74a87 --- /dev/null +++ b/frontend/src/openapi/models/removeTag401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveTag401 = { + /** 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/removeTag403.ts b/frontend/src/openapi/models/removeTag403.ts new file mode 100644 index 0000000000..6c5f6b1855 --- /dev/null +++ b/frontend/src/openapi/models/removeTag403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type RemoveTag403 = { + /** 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/requestsPerSecondSchema.ts b/frontend/src/openapi/models/requestsPerSecondSchema.ts index bbac20e77f..af8055087e 100644 --- a/frontend/src/openapi/models/requestsPerSecondSchema.ts +++ b/frontend/src/openapi/models/requestsPerSecondSchema.ts @@ -3,9 +3,15 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { RequestsPerSecondSchemaStatus } from './requestsPerSecondSchemaStatus'; import type { RequestsPerSecondSchemaData } from './requestsPerSecondSchemaData'; +/** + * Statistics for usage of Unleash, formatted so it can easily be used in a graph + */ export interface RequestsPerSecondSchema { - status?: string; + /** Whether the query against prometheus succeeded or failed */ + status?: RequestsPerSecondSchemaStatus; + /** The query result from prometheus */ data?: RequestsPerSecondSchemaData; } diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaData.ts b/frontend/src/openapi/models/requestsPerSecondSchemaData.ts index 341143acbc..e3bd59153e 100644 --- a/frontend/src/openapi/models/requestsPerSecondSchemaData.ts +++ b/frontend/src/openapi/models/requestsPerSecondSchemaData.ts @@ -3,10 +3,15 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { RequestsPerSecondSchemaDataResultType } from './requestsPerSecondSchemaDataResultType'; import type { RequestsPerSecondSchemaDataResultItem } from './requestsPerSecondSchemaDataResultItem'; +/** + * The query result from prometheus + */ export type RequestsPerSecondSchemaData = { - resultType?: string; + /** Prometheus compatible result type. */ + resultType?: RequestsPerSecondSchemaDataResultType; /** An array of values per metric. Each one represents a line in the graph labeled by its metric name */ result?: RequestsPerSecondSchemaDataResultItem[]; }; diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts index f329b2bcd8..0968cf2370 100644 --- a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts +++ b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItem.ts @@ -6,6 +6,9 @@ import type { RequestsPerSecondSchemaDataResultItemMetric } from './requestsPerSecondSchemaDataResultItemMetric'; import type { RequestsPerSecondSchemaDataResultItemValuesItemItem } from './requestsPerSecondSchemaDataResultItemValuesItemItem'; +/** + * A representation of a single metric to build a line in a graph + */ export type RequestsPerSecondSchemaDataResultItem = { /** A key value set representing the metric */ metric?: RequestsPerSecondSchemaDataResultItemMetric; diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts index ad7bbc199f..b273ed8146 100644 --- a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts +++ b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultItemMetric.ts @@ -8,6 +8,8 @@ * A key value set representing the metric */ export type RequestsPerSecondSchemaDataResultItemMetric = { + /** Name of the application this metric relates to */ appName?: string; + /** Which endpoint has been accessed */ endpoint?: string; }; diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts new file mode 100644 index 0000000000..d8463ff012 --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts @@ -0,0 +1,19 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Prometheus compatible result type. + */ +export type RequestsPerSecondSchemaDataResultType = + typeof RequestsPerSecondSchemaDataResultType[keyof typeof RequestsPerSecondSchemaDataResultType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const RequestsPerSecondSchemaDataResultType = { + matrix: 'matrix', + vector: 'vector', + scalar: 'scalar', + string: 'string', +} as const; diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts b/frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts new file mode 100644 index 0000000000..602296c505 --- /dev/null +++ b/frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Whether the query against prometheus succeeded or failed + */ +export type RequestsPerSecondSchemaStatus = + typeof RequestsPerSecondSchemaStatus[keyof typeof RequestsPerSecondSchemaStatus]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const RequestsPerSecondSchemaStatus = { + success: 'success', + failure: 'failure', +} as const; diff --git a/frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts b/frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts index a38695743b..7a28b2480c 100644 --- a/frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts +++ b/frontend/src/openapi/models/requestsPerSecondSegmentedSchema.ts @@ -5,6 +5,9 @@ */ import type { RequestsPerSecondSchema } from './requestsPerSecondSchema'; +/** + * Get usage metrics separated by client and admin paths + */ export interface RequestsPerSecondSegmentedSchema { clientMetrics?: RequestsPerSecondSchema; adminMetrics?: RequestsPerSecondSchema; diff --git a/frontend/src/openapi/models/resetUserPassword400.ts b/frontend/src/openapi/models/resetUserPassword400.ts new file mode 100644 index 0000000000..e7853fbda3 --- /dev/null +++ b/frontend/src/openapi/models/resetUserPassword400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ResetUserPassword400 = { + /** 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/resetUserPassword401.ts b/frontend/src/openapi/models/resetUserPassword401.ts new file mode 100644 index 0000000000..3b3149f46a --- /dev/null +++ b/frontend/src/openapi/models/resetUserPassword401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ResetUserPassword401 = { + /** 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/resetUserPassword403.ts b/frontend/src/openapi/models/resetUserPassword403.ts new file mode 100644 index 0000000000..ecb6d74e80 --- /dev/null +++ b/frontend/src/openapi/models/resetUserPassword403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ResetUserPassword403 = { + /** 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/resetUserPassword404.ts b/frontend/src/openapi/models/resetUserPassword404.ts new file mode 100644 index 0000000000..f7f1ef0bf7 --- /dev/null +++ b/frontend/src/openapi/models/resetUserPassword404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ResetUserPassword404 = { + /** 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/reviveFeature400.ts b/frontend/src/openapi/models/reviveFeature400.ts new file mode 100644 index 0000000000..4074712b3a --- /dev/null +++ b/frontend/src/openapi/models/reviveFeature400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveFeature400 = { + /** 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/reviveFeature401.ts b/frontend/src/openapi/models/reviveFeature401.ts new file mode 100644 index 0000000000..35f611e8c9 --- /dev/null +++ b/frontend/src/openapi/models/reviveFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveFeature401 = { + /** 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/reviveFeature403.ts b/frontend/src/openapi/models/reviveFeature403.ts new file mode 100644 index 0000000000..5cca898ad3 --- /dev/null +++ b/frontend/src/openapi/models/reviveFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveFeature403 = { + /** 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/reviveFeatures400.ts b/frontend/src/openapi/models/reviveFeatures400.ts new file mode 100644 index 0000000000..f66411c624 --- /dev/null +++ b/frontend/src/openapi/models/reviveFeatures400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveFeatures400 = { + /** 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/reviveFeatures401.ts b/frontend/src/openapi/models/reviveFeatures401.ts new file mode 100644 index 0000000000..8dc384b562 --- /dev/null +++ b/frontend/src/openapi/models/reviveFeatures401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveFeatures401 = { + /** 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/reviveFeatures403.ts b/frontend/src/openapi/models/reviveFeatures403.ts new file mode 100644 index 0000000000..e285e8f17f --- /dev/null +++ b/frontend/src/openapi/models/reviveFeatures403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ReviveFeatures403 = { + /** 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/roleSchema.ts b/frontend/src/openapi/models/roleSchema.ts index f98d80bfc1..e0360655c4 100644 --- a/frontend/src/openapi/models/roleSchema.ts +++ b/frontend/src/openapi/models/roleSchema.ts @@ -4,9 +4,16 @@ * See `gen:api` script in package.json */ +/** + * A role holds permissions to allow Unleash to decide what actions a role holder is allowed to perform + */ export interface RoleSchema { + /** The role id */ id: number; + /** A role can either be a global role (applies to all projects) or a project role */ type: string; + /** The name of the role */ name: string; + /** A more detailed description of the role and what use it's intended for */ description?: string; } diff --git a/frontend/src/openapi/models/samlSettingsSchema.ts b/frontend/src/openapi/models/samlSettingsSchema.ts index c9d771095f..9ceb49dc7b 100644 --- a/frontend/src/openapi/models/samlSettingsSchema.ts +++ b/frontend/src/openapi/models/samlSettingsSchema.ts @@ -5,14 +5,26 @@ */ import type { SamlSettingsSchemaDefaultRootRole } from './samlSettingsSchemaDefaultRootRole'; +/** + * Settings used to authenticate via SAML + */ export interface SamlSettingsSchema { + /** Is SAML authentication enabled */ enabled?: boolean; + /** The SAML 2.0 entity ID */ entityId: string; + /** Which URL to use for Single Sign On */ signOnUrl: string; + /** The X509 certificate used to validate requests */ certificate: string; + /** Which URL to use for Single Sign Out */ signOutUrl?: string; + /** Signing certificate for sign out requests */ spCertificate?: string; + /** Should Unleash create users based on the emails coming back in the authentication reply from the SAML server */ autoCreate?: boolean; - defaultRootRole?: SamlSettingsSchemaDefaultRootRole; + /** A comma separated list of email domains that Unleash will auto create user accounts for. */ emailDomains?: string; + /** Assign this root role to auto created users */ + defaultRootRole?: SamlSettingsSchemaDefaultRootRole; } diff --git a/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts b/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts index 293f7b7f52..76fb4f4398 100644 --- a/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts +++ b/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * Assign this root role to auto created users + */ export type SamlSettingsSchemaDefaultRootRole = typeof SamlSettingsSchemaDefaultRootRole[keyof typeof SamlSettingsSchemaDefaultRootRole]; diff --git a/frontend/src/openapi/models/searchEventsSchema.ts b/frontend/src/openapi/models/searchEventsSchema.ts index 77979681b0..bb04f902b1 100644 --- a/frontend/src/openapi/models/searchEventsSchema.ts +++ b/frontend/src/openapi/models/searchEventsSchema.ts @@ -3,6 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { SearchEventsSchemaType } from './searchEventsSchemaType'; /** * @@ -12,7 +13,7 @@ */ export interface SearchEventsSchema { /** Find events by event type (case-sensitive). */ - type?: string; + type?: SearchEventsSchemaType; /** Find events by project ID (case-sensitive). */ project?: string; /** Find events by feature toggle name (case-sensitive). */ @@ -24,6 +25,8 @@ export interface SearchEventsSchema { and the event data payload (if any). */ query?: string; + /** The maximum amount of events to return in the search result */ limit?: number; + /** Which event id to start listing from */ offset?: number; } diff --git a/frontend/src/openapi/models/searchEventsSchemaType.ts b/frontend/src/openapi/models/searchEventsSchemaType.ts new file mode 100644 index 0000000000..e454c2da9a --- /dev/null +++ b/frontend/src/openapi/models/searchEventsSchemaType.ts @@ -0,0 +1,118 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Find events by event type (case-sensitive). + */ +export type SearchEventsSchemaType = + typeof SearchEventsSchemaType[keyof typeof SearchEventsSchemaType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const SearchEventsSchemaType = { + 'application-created': 'application-created', + 'feature-created': 'feature-created', + 'feature-deleted': 'feature-deleted', + 'feature-updated': 'feature-updated', + 'feature-metadata-updated': 'feature-metadata-updated', + 'feature-variants-updated': 'feature-variants-updated', + 'feature-environment-variants-updated': + 'feature-environment-variants-updated', + 'feature-project-change': 'feature-project-change', + 'feature-archived': 'feature-archived', + 'feature-revived': 'feature-revived', + 'feature-import': 'feature-import', + 'feature-tagged': 'feature-tagged', + 'feature-tag-import': 'feature-tag-import', + 'feature-strategy-update': 'feature-strategy-update', + 'feature-strategy-add': 'feature-strategy-add', + 'feature-strategy-remove': 'feature-strategy-remove', + 'strategy-order-changed': 'strategy-order-changed', + 'drop-feature-tags': 'drop-feature-tags', + 'feature-untagged': 'feature-untagged', + 'feature-stale-on': 'feature-stale-on', + 'feature-stale-off': 'feature-stale-off', + 'drop-features': 'drop-features', + 'feature-environment-enabled': 'feature-environment-enabled', + 'feature-environment-disabled': 'feature-environment-disabled', + 'strategy-created': 'strategy-created', + 'strategy-deleted': 'strategy-deleted', + 'strategy-deprecated': 'strategy-deprecated', + 'strategy-reactivated': 'strategy-reactivated', + 'strategy-updated': 'strategy-updated', + 'strategy-import': 'strategy-import', + 'drop-strategies': 'drop-strategies', + 'context-field-created': 'context-field-created', + 'context-field-updated': 'context-field-updated', + 'context-field-deleted': 'context-field-deleted', + 'project-access-added': 'project-access-added', + 'project-created': 'project-created', + 'project-updated': 'project-updated', + 'project-deleted': 'project-deleted', + 'project-import': 'project-import', + 'project-user-added': 'project-user-added', + 'project-user-removed': 'project-user-removed', + 'project-user-role-changed': 'project-user-role-changed', + 'project-group-role-changed': 'project-group-role-changed', + 'project-group-added': 'project-group-added', + 'project-group-removed': 'project-group-removed', + 'drop-projects': 'drop-projects', + 'tag-created': 'tag-created', + 'tag-deleted': 'tag-deleted', + 'tag-import': 'tag-import', + 'drop-tags': 'drop-tags', + 'tag-type-created': 'tag-type-created', + 'tag-type-deleted': 'tag-type-deleted', + 'tag-type-updated': 'tag-type-updated', + 'tag-type-import': 'tag-type-import', + 'drop-tag-types': 'drop-tag-types', + 'addon-config-created': 'addon-config-created', + 'addon-config-updated': 'addon-config-updated', + 'addon-config-deleted': 'addon-config-deleted', + 'db-pool-update': 'db-pool-update', + 'user-created': 'user-created', + 'user-updated': 'user-updated', + 'user-deleted': 'user-deleted', + 'drop-environments': 'drop-environments', + 'environment-import': 'environment-import', + 'segment-created': 'segment-created', + 'segment-updated': 'segment-updated', + 'segment-deleted': 'segment-deleted', + 'group-created': 'group-created', + 'group-updated': 'group-updated', + 'setting-created': 'setting-created', + 'setting-updated': 'setting-updated', + 'setting-deleted': 'setting-deleted', + 'client-metrics': 'client-metrics', + 'client-register': 'client-register', + 'pat-created': 'pat-created', + 'pat-deleted': 'pat-deleted', + 'public-signup-token-created': 'public-signup-token-created', + 'public-signup-token-user-added': 'public-signup-token-user-added', + 'public-signup-token-updated': 'public-signup-token-updated', + 'change-request-created': 'change-request-created', + 'change-request-discarded': 'change-request-discarded', + 'change-added': 'change-added', + 'change-discarded': 'change-discarded', + 'change-edited': 'change-edited', + 'change-request-approved': 'change-request-approved', + 'change-request-approval-added': 'change-request-approval-added', + 'change-request-cancelled': 'change-request-cancelled', + 'change-request-sent-to-review': 'change-request-sent-to-review', + 'change-request-applied': 'change-request-applied', + 'api-token-created': 'api-token-created', + 'api-token-updated': 'api-token-updated', + 'api-token-deleted': 'api-token-deleted', + 'feature-favorited': 'feature-favorited', + 'feature-unfavorited': 'feature-unfavorited', + 'project-favorited': 'project-favorited', + 'project-unfavorited': 'project-unfavorited', + 'features-exported': 'features-exported', + 'features-imported': 'features-imported', + 'service-account-created': 'service-account-created', + 'service-account-deleted': 'service-account-deleted', + 'service-account-updated': 'service-account-updated', + 'feature-potentially-stale-on': 'feature-potentially-stale-on', +} as const; diff --git a/frontend/src/openapi/models/searchUsers401.ts b/frontend/src/openapi/models/searchUsers401.ts new file mode 100644 index 0000000000..fc376453b5 --- /dev/null +++ b/frontend/src/openapi/models/searchUsers401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SearchUsers401 = { + /** 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/searchUsersParams.ts b/frontend/src/openapi/models/searchUsersParams.ts new file mode 100644 index 0000000000..d8b5cce345 --- /dev/null +++ b/frontend/src/openapi/models/searchUsersParams.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SearchUsersParams = { + /** + * The pattern to search in the username or email + */ + q?: string; +}; diff --git a/frontend/src/openapi/models/segmentSchema.ts b/frontend/src/openapi/models/segmentSchema.ts index 0f9cc743bd..72f4ccb445 100644 --- a/frontend/src/openapi/models/segmentSchema.ts +++ b/frontend/src/openapi/models/segmentSchema.ts @@ -13,8 +13,14 @@ export interface SegmentSchema { id: number; /** The name of the segment. */ name?: string; - /** The description of the segment. */ - description?: string | null; /** List of constraints that determine which users are part of the segment */ constraints: ConstraintSchema[]; + /** The description of the segment. */ + description?: string | null; + /** The time the segment was created as a RFC 3339-conformant timestamp. */ + createdAt?: string; + /** Which user created this segment */ + createdBy?: string; + /** The project the segment relates to, if applicable. */ + project?: string | null; } diff --git a/frontend/src/openapi/models/segmentStrategiesSchema.ts b/frontend/src/openapi/models/segmentStrategiesSchema.ts deleted file mode 100644 index 78a03e1aca..0000000000 --- a/frontend/src/openapi/models/segmentStrategiesSchema.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { SegmentStrategiesSchemaStrategiesItem } from './segmentStrategiesSchemaStrategiesItem'; - -export interface SegmentStrategiesSchema { - strategies: SegmentStrategiesSchemaStrategiesItem[]; -} diff --git a/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts b/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts deleted file mode 100644 index 2fcfd01bed..0000000000 --- a/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -export type SegmentStrategiesSchemaStrategiesItem = { - id: string; - featureName: string; - projectId: string; - environment: string; - strategyName: string; -}; diff --git a/frontend/src/openapi/models/sendResetPasswordEmail401.ts b/frontend/src/openapi/models/sendResetPasswordEmail401.ts new file mode 100644 index 0000000000..6a229e96f9 --- /dev/null +++ b/frontend/src/openapi/models/sendResetPasswordEmail401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SendResetPasswordEmail401 = { + /** 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/sendResetPasswordEmail404.ts b/frontend/src/openapi/models/sendResetPasswordEmail404.ts new file mode 100644 index 0000000000..744f70cd3e --- /dev/null +++ b/frontend/src/openapi/models/sendResetPasswordEmail404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SendResetPasswordEmail404 = { + /** 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/sendResetPasswordEmail415.ts b/frontend/src/openapi/models/sendResetPasswordEmail415.ts new file mode 100644 index 0000000000..e7db5da8b6 --- /dev/null +++ b/frontend/src/openapi/models/sendResetPasswordEmail415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SendResetPasswordEmail415 = { + /** 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/serviceAccountSchema.ts b/frontend/src/openapi/models/serviceAccountSchema.ts index 60f8977c7a..91f57591a2 100644 --- a/frontend/src/openapi/models/serviceAccountSchema.ts +++ b/frontend/src/openapi/models/serviceAccountSchema.ts @@ -5,18 +5,52 @@ */ import type { PatSchema } from './patSchema'; +/** + * Represents a [service account](https://docs.getunleash.io/reference/service-accounts). Service accounts are used to let systems interact with the Unleash API. + */ export interface ServiceAccountSchema { + /** The service account id */ id: number; + /** + * Deprecated: for internal use only, should not be exposed through the API + * @deprecated + */ isAPI?: boolean; + /** The name of the service account */ name?: string; + /** + * Deprecated: service accounts don't have emails associated with them + * @deprecated + */ email?: string; + /** The service account username */ username?: string; + /** The service account image url */ imageUrl?: string; + /** + * Deprecated: service accounts cannot be invited via an invitation link + * @deprecated + */ inviteLink?: string; + /** + * Deprecated: service accounts cannot log in to Unleash + * @deprecated + */ loginAttempts?: number; + /** + * Deprecated: internal use only + * @deprecated + */ emailSent?: boolean; + /** The root role id associated with the service account */ rootRole?: number; + /** + * Deprecated. This property is always `null`. To find out when a service account was last seen, check its `tokens` list and refer to each token's `lastSeen` property instead. + * @deprecated + */ seenAt?: string | null; + /** The service account creation date */ createdAt?: string; + /** The list of tokens associated with the service account */ tokens?: PatSchema[]; } diff --git a/frontend/src/openapi/models/serviceAccountsSchema.ts b/frontend/src/openapi/models/serviceAccountsSchema.ts index 021776bc9a..11662c307f 100644 --- a/frontend/src/openapi/models/serviceAccountsSchema.ts +++ b/frontend/src/openapi/models/serviceAccountsSchema.ts @@ -6,7 +6,12 @@ import type { ServiceAccountSchema } from './serviceAccountSchema'; import type { RoleSchema } from './roleSchema'; +/** + * Represents a list of service accounts, and includes a list of root roles they reference + */ export interface ServiceAccountsSchema { + /** A list of service accounts */ serviceAccounts: ServiceAccountSchema[]; + /** A list of root roles that are referenced from service account objects in the `serviceAccounts` list */ rootRoles?: RoleSchema[]; } diff --git a/frontend/src/openapi/models/setGoogleSettings403.ts b/frontend/src/openapi/models/setGoogleSettings403.ts new file mode 100644 index 0000000000..f7cd395550 --- /dev/null +++ b/frontend/src/openapi/models/setGoogleSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetGoogleSettings403 = { + /** 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/setGoogleSettings415.ts b/frontend/src/openapi/models/setGoogleSettings415.ts new file mode 100644 index 0000000000..903ab409dd --- /dev/null +++ b/frontend/src/openapi/models/setGoogleSettings415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetGoogleSettings415 = { + /** 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/setOidcSettings403.ts b/frontend/src/openapi/models/setOidcSettings403.ts new file mode 100644 index 0000000000..097f415dc7 --- /dev/null +++ b/frontend/src/openapi/models/setOidcSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetOidcSettings403 = { + /** 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/setOidcSettings415.ts b/frontend/src/openapi/models/setOidcSettings415.ts new file mode 100644 index 0000000000..f1aaf454bb --- /dev/null +++ b/frontend/src/openapi/models/setOidcSettings415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetOidcSettings415 = { + /** 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/setSamlSettings403.ts b/frontend/src/openapi/models/setSamlSettings403.ts new file mode 100644 index 0000000000..0a7d943cdd --- /dev/null +++ b/frontend/src/openapi/models/setSamlSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSamlSettings403 = { + /** 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/setSamlSettings415.ts b/frontend/src/openapi/models/setSamlSettings415.ts new file mode 100644 index 0000000000..e5973ee80f --- /dev/null +++ b/frontend/src/openapi/models/setSamlSettings415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSamlSettings415 = { + /** 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/setSimpleSettings403.ts b/frontend/src/openapi/models/setSimpleSettings403.ts new file mode 100644 index 0000000000..23b32afddd --- /dev/null +++ b/frontend/src/openapi/models/setSimpleSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSimpleSettings403 = { + /** 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/setSimpleSettings415.ts b/frontend/src/openapi/models/setSimpleSettings415.ts new file mode 100644 index 0000000000..cba16522e6 --- /dev/null +++ b/frontend/src/openapi/models/setSimpleSettings415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetSimpleSettings415 = { + /** 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/setStrategySortOrder400.ts b/frontend/src/openapi/models/setStrategySortOrder400.ts new file mode 100644 index 0000000000..e52ee05c73 --- /dev/null +++ b/frontend/src/openapi/models/setStrategySortOrder400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetStrategySortOrder400 = { + /** 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/setStrategySortOrder401.ts b/frontend/src/openapi/models/setStrategySortOrder401.ts new file mode 100644 index 0000000000..ef0d8d7615 --- /dev/null +++ b/frontend/src/openapi/models/setStrategySortOrder401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetStrategySortOrder401 = { + /** 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/setStrategySortOrder403.ts b/frontend/src/openapi/models/setStrategySortOrder403.ts new file mode 100644 index 0000000000..f7cbd53edb --- /dev/null +++ b/frontend/src/openapi/models/setStrategySortOrder403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SetStrategySortOrder403 = { + /** 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/setStrategySortOrderSchema.ts b/frontend/src/openapi/models/setStrategySortOrderSchema.ts index af782bda92..3a6082d9de 100644 --- a/frontend/src/openapi/models/setStrategySortOrderSchema.ts +++ b/frontend/src/openapi/models/setStrategySortOrderSchema.ts @@ -5,4 +5,7 @@ */ import type { SetStrategySortOrderSchemaItem } from './setStrategySortOrderSchemaItem'; +/** + * An array of strategies with their new sort order + */ export type SetStrategySortOrderSchema = SetStrategySortOrderSchemaItem[]; diff --git a/frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts b/frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts index 35dbb7fa87..0351e6df4d 100644 --- a/frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts +++ b/frontend/src/openapi/models/setStrategySortOrderSchemaItem.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * A strategy with its new sort order + */ export type SetStrategySortOrderSchemaItem = { + /** The ID of the strategy */ id: string; + /** The new sort order of the strategy */ sortOrder: number; }; diff --git a/frontend/src/openapi/models/setUiConfigSchema.ts b/frontend/src/openapi/models/setUiConfigSchema.ts index 4ce97311c4..860998a32d 100644 --- a/frontend/src/openapi/models/setUiConfigSchema.ts +++ b/frontend/src/openapi/models/setUiConfigSchema.ts @@ -5,6 +5,10 @@ */ import type { SetUiConfigSchemaFrontendSettings } from './setUiConfigSchemaFrontendSettings'; +/** + * Unleash configuration settings affect the admin UI. + */ export interface SetUiConfigSchema { + /** Settings related to the front-end API. */ frontendSettings?: SetUiConfigSchemaFrontendSettings; } diff --git a/frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts b/frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts index fc8a63eca8..f85db7e7f2 100644 --- a/frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts +++ b/frontend/src/openapi/models/setUiConfigSchemaFrontendSettings.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * Settings related to the front-end API. + */ export type SetUiConfigSchemaFrontendSettings = { + /** The list of origins that the front-end API should accept requests from. */ frontendApiOrigins: string[]; }; diff --git a/frontend/src/openapi/models/splashRequestSchema.ts b/frontend/src/openapi/models/splashRequestSchema.ts new file mode 100644 index 0000000000..22944066c0 --- /dev/null +++ b/frontend/src/openapi/models/splashRequestSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Data related to a user having seen a splash screen. + */ +export interface SplashRequestSchema { + /** The ID of the user that was shown the splash screen. */ + userId: number; + /** The ID of the splash screen that was shown. */ + splashId: string; +} diff --git a/frontend/src/openapi/models/splashResponseSchema.ts b/frontend/src/openapi/models/splashResponseSchema.ts new file mode 100644 index 0000000000..af498a097a --- /dev/null +++ b/frontend/src/openapi/models/splashResponseSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Data related to a user having seen a splash screen. + */ +export interface SplashResponseSchema { + /** The ID of the user that was shown the splash screen. */ + userId: number; + /** The ID of the splash screen that was shown. */ + splashId: string; + /** Indicates whether the user has seen the splash screen or not. */ + seen: boolean; +} diff --git a/frontend/src/openapi/models/splashSchema.ts b/frontend/src/openapi/models/splashSchema.ts deleted file mode 100644 index 01db711ff0..0000000000 --- a/frontend/src/openapi/models/splashSchema.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -export interface SplashSchema { - userId: number; - splashId: string; - seen: boolean; -} diff --git a/frontend/src/openapi/models/staleFeatures401.ts b/frontend/src/openapi/models/staleFeatures401.ts new file mode 100644 index 0000000000..2e8168163a --- /dev/null +++ b/frontend/src/openapi/models/staleFeatures401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type StaleFeatures401 = { + /** 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/staleFeatures403.ts b/frontend/src/openapi/models/staleFeatures403.ts new file mode 100644 index 0000000000..73fe2dfa85 --- /dev/null +++ b/frontend/src/openapi/models/staleFeatures403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type StaleFeatures403 = { + /** 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/staleFeatures415.ts b/frontend/src/openapi/models/staleFeatures415.ts new file mode 100644 index 0000000000..ca4090fae0 --- /dev/null +++ b/frontend/src/openapi/models/staleFeatures415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type StaleFeatures415 = { + /** 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/strategiesSchema.ts b/frontend/src/openapi/models/strategiesSchema.ts index 707505951c..58855c517a 100644 --- a/frontend/src/openapi/models/strategiesSchema.ts +++ b/frontend/src/openapi/models/strategiesSchema.ts @@ -3,9 +3,15 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { StrategiesSchemaVersion } from './strategiesSchemaVersion'; import type { StrategySchema } from './strategySchema'; +/** + * List of strategies + */ export interface StrategiesSchema { - version: number; + /** Version of the strategies schema */ + version: StrategiesSchemaVersion; + /** List of strategies */ strategies: StrategySchema[]; } diff --git a/frontend/src/openapi/models/strategiesSchemaVersion.ts b/frontend/src/openapi/models/strategiesSchemaVersion.ts new file mode 100644 index 0000000000..062ce565f9 --- /dev/null +++ b/frontend/src/openapi/models/strategiesSchemaVersion.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Version of the strategies schema + */ +export type StrategiesSchemaVersion = + typeof StrategiesSchemaVersion[keyof typeof StrategiesSchemaVersion]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const StrategiesSchemaVersion = { + NUMBER_1: 1, +} as const; diff --git a/frontend/src/openapi/models/strategySchema.ts b/frontend/src/openapi/models/strategySchema.ts index e5e108a18d..7e1c62786e 100644 --- a/frontend/src/openapi/models/strategySchema.ts +++ b/frontend/src/openapi/models/strategySchema.ts @@ -11,13 +11,13 @@ import type { StrategySchemaParametersItem } from './strategySchemaParametersIte export interface StrategySchema { /** An optional title for the strategy */ title?: string | null; - /** The name or type of the strategy */ + /** The name (type) of the strategy */ name: string; /** A human friendly name for the strategy */ displayName: string | null; - /** A short description for the strategy */ - description: string; - /** Determines whether the strategy allows for editing */ + /** A short description of the strategy */ + description: string | null; + /** Whether the strategy can be edited or not. Strategies bundled with Unleash cannot be edited. */ editable: boolean; deprecated: boolean; /** A list of relevant parameters for each strategy */ diff --git a/frontend/src/openapi/models/strategyVariantSchema.ts b/frontend/src/openapi/models/strategyVariantSchema.ts new file mode 100644 index 0000000000..04abb5908a --- /dev/null +++ b/frontend/src/openapi/models/strategyVariantSchema.ts @@ -0,0 +1,23 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { StrategyVariantSchemaWeightType } from './strategyVariantSchemaWeightType'; +import type { StrategyVariantSchemaPayload } from './strategyVariantSchemaPayload'; + +/** + * This is an experimental property. It may change or be removed as we work on it. Please don't depend on it yet. A strategy variant allows you to attach any data to strategies instead of only returning `true`/`false`. Strategy variants take precedence over feature variants. + */ +export interface StrategyVariantSchema { + /** The variant name. Must be unique for this feature toggle */ + name: string; + /** The weight is the likelihood of any one user getting this variant. It is an integer between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information */ + weight: number; + /** Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight). */ + weightType: StrategyVariantSchemaWeightType; + /** The [stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) to use for distribution of this variant. Stickiness is how Unleash guarantees that the same user gets the same variant every time */ + stickiness: string; + /** Extra data configured for this variant */ + payload?: StrategyVariantSchemaPayload; +} diff --git a/frontend/src/openapi/models/strategyVariantSchemaPayload.ts b/frontend/src/openapi/models/strategyVariantSchemaPayload.ts new file mode 100644 index 0000000000..ed112c2963 --- /dev/null +++ b/frontend/src/openapi/models/strategyVariantSchemaPayload.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Extra data configured for this variant + */ +export type StrategyVariantSchemaPayload = { + /** The type of the value. Commonly used types are string, json and csv. */ + type: string; + /** The actual value of payload */ + value: string; +}; diff --git a/frontend/src/openapi/models/strategyVariantSchemaWeightType.ts b/frontend/src/openapi/models/strategyVariantSchemaWeightType.ts new file mode 100644 index 0000000000..be2437f17e --- /dev/null +++ b/frontend/src/openapi/models/strategyVariantSchemaWeightType.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight). + */ +export type StrategyVariantSchemaWeightType = + typeof StrategyVariantSchemaWeightType[keyof typeof StrategyVariantSchemaWeightType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const StrategyVariantSchemaWeightType = { + variable: 'variable', + fix: 'fix', +} as const; diff --git a/frontend/src/openapi/models/tagTypeSchema.ts b/frontend/src/openapi/models/tagTypeSchema.ts index 1a1e96e68f..82f8c98e16 100644 --- a/frontend/src/openapi/models/tagTypeSchema.ts +++ b/frontend/src/openapi/models/tagTypeSchema.ts @@ -4,8 +4,14 @@ * See `gen:api` script in package.json */ +/** + * A tag type. + */ export interface TagTypeSchema { + /** The name of the tag type. */ name: string; + /** The description of the tag type. */ description?: string; + /** The icon of the tag type. */ icon?: string | null; } diff --git a/frontend/src/openapi/models/tagTypesSchema.ts b/frontend/src/openapi/models/tagTypesSchema.ts index 4d72c56e02..fd6d705211 100644 --- a/frontend/src/openapi/models/tagTypesSchema.ts +++ b/frontend/src/openapi/models/tagTypesSchema.ts @@ -5,7 +5,12 @@ */ import type { TagTypeSchema } from './tagTypeSchema'; +/** + * A list of tag types with a version number representing the schema used to model the tag types. + */ export interface TagTypesSchema { + /** The version of the schema used to model the tag types. */ version: number; + /** The list of tag types. */ tagTypes: TagTypeSchema[]; } diff --git a/frontend/src/openapi/models/tagWithVersionSchema.ts b/frontend/src/openapi/models/tagWithVersionSchema.ts index c8a4bf1391..00e3b0df14 100644 --- a/frontend/src/openapi/models/tagWithVersionSchema.ts +++ b/frontend/src/openapi/models/tagWithVersionSchema.ts @@ -5,7 +5,11 @@ */ import type { TagSchema } from './tagSchema'; +/** + * A tag with a version number representing the schema used to model the tag. + */ export interface TagWithVersionSchema { + /** The version of the schema used to model the tag. */ version: number; tag: TagSchema; } diff --git a/frontend/src/openapi/models/telemetrySettingsSchema.ts b/frontend/src/openapi/models/telemetrySettingsSchema.ts new file mode 100644 index 0000000000..02eae286d6 --- /dev/null +++ b/frontend/src/openapi/models/telemetrySettingsSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Contains information about which settings are configured for version info collection and feature usage collection. + */ +export interface TelemetrySettingsSchema { + /** Whether collection of version info is enabled/active. */ + versionInfoCollectionEnabled: boolean; + /** Whether collection of feature usage metrics is enabled/active. */ + featureInfoCollectionEnabled: boolean; +} diff --git a/frontend/src/openapi/models/toggleFeatureEnvironmentOff400.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOff400.ts new file mode 100644 index 0000000000..61c034ca2f --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOff400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOff400 = { + /** 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/toggleFeatureEnvironmentOff401.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOff401.ts new file mode 100644 index 0000000000..ffd7516cd1 --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOff401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOff401 = { + /** 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/toggleFeatureEnvironmentOff403.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOff403.ts new file mode 100644 index 0000000000..54affe95d7 --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOff403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOff403 = { + /** 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/toggleFeatureEnvironmentOff404.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOff404.ts new file mode 100644 index 0000000000..dae14a5b99 --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOff404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOff404 = { + /** 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/toggleFeatureEnvironmentOn400.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOn400.ts new file mode 100644 index 0000000000..23d41ed777 --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOn400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOn400 = { + /** 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/toggleFeatureEnvironmentOn401.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOn401.ts new file mode 100644 index 0000000000..433a02de65 --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOn401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOn401 = { + /** 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/toggleFeatureEnvironmentOn403.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOn403.ts new file mode 100644 index 0000000000..8add7d3d8e --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOn403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOn403 = { + /** 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/toggleFeatureEnvironmentOn404.ts b/frontend/src/openapi/models/toggleFeatureEnvironmentOn404.ts new file mode 100644 index 0000000000..ef5ea0d2ca --- /dev/null +++ b/frontend/src/openapi/models/toggleFeatureEnvironmentOn404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ToggleFeatureEnvironmentOn404 = { + /** 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/tokenUserSchema.ts b/frontend/src/openapi/models/tokenUserSchema.ts index 075a6ec1c8..fc53a97008 100644 --- a/frontend/src/openapi/models/tokenUserSchema.ts +++ b/frontend/src/openapi/models/tokenUserSchema.ts @@ -5,11 +5,19 @@ */ import type { RoleSchema } from './roleSchema'; +/** + * A user identified by a token + */ export interface TokenUserSchema { + /** The user id */ id: number; + /** The name of the user */ name: string; + /** The email of the user */ email: string; + /** A token uniquely identifying a user */ token: string; + /** A username or email identifying which user created this token */ createdBy: string | null; role: RoleSchema; } diff --git a/frontend/src/openapi/models/uiConfigSchema.ts b/frontend/src/openapi/models/uiConfigSchema.ts index 1fafaa69f1..abb135dbad 100644 --- a/frontend/src/openapi/models/uiConfigSchema.ts +++ b/frontend/src/openapi/models/uiConfigSchema.ts @@ -8,22 +8,41 @@ import type { UiConfigSchemaLinksItem } from './uiConfigSchemaLinksItem'; import type { UiConfigSchemaAuthenticationType } from './uiConfigSchemaAuthenticationType'; import type { VersionSchema } from './versionSchema'; +/** + * A collection of properties used to configure the Unleash Admin UI. + */ export interface UiConfigSchema { + /** The slogan to display in the UI footer. */ slogan?: string; + /** The name of this Unleash instance. Used to build the text in the footer. */ name?: string; + /** The current version of Unleash */ version: string; + /** What kind of Unleash instance it is: Enterprise, Pro, or Open source */ environment?: string; + /** The URL of the Unleash instance. */ unleashUrl: string; + /** The base URI path at which this Unleash instance is listening. */ baseUriPath: string; + /** Whether password authentication should be disabled or not. */ disablePasswordAuth?: boolean; + /** Whether this instance can send out emails or not. */ emailEnabled?: boolean; + /** Whether maintenance mode is currently active or not. */ maintenanceMode?: boolean; + /** The maximum number of values that can be used in a single segment. */ segmentValuesLimit?: number; + /** The maximum number of segments that can be applied to a single strategy. */ strategySegmentsLimit?: number; + /** Whether to enable the Unleash network view or not. */ networkViewEnabled?: boolean; + /** The list of origins that the front-end API should accept requests from. */ frontendApiOrigins?: string[]; + /** Additional (largely experimental) features that are enabled in this Unleash instance. */ flags?: UiConfigSchemaFlags; + /** Relevant links to use in the UI. */ links?: UiConfigSchemaLinksItem[]; + /** The type of authentication enabled for this Unleash instance */ authenticationType?: UiConfigSchemaAuthenticationType; versionInfo: VersionSchema; } diff --git a/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts b/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts index 8aaf43021c..a6a9b07ac3 100644 --- a/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts +++ b/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts @@ -4,6 +4,9 @@ * See `gen:api` script in package.json */ +/** + * The type of authentication enabled for this Unleash instance + */ export type UiConfigSchemaAuthenticationType = typeof UiConfigSchemaAuthenticationType[keyof typeof UiConfigSchemaAuthenticationType]; diff --git a/frontend/src/openapi/models/uiConfigSchemaFlags.ts b/frontend/src/openapi/models/uiConfigSchemaFlags.ts index 0ca46e1c0a..22cea6e12a 100644 --- a/frontend/src/openapi/models/uiConfigSchemaFlags.ts +++ b/frontend/src/openapi/models/uiConfigSchemaFlags.ts @@ -5,6 +5,9 @@ */ import type { VariantFlagSchema } from './variantFlagSchema'; +/** + * Additional (largely experimental) features that are enabled in this Unleash instance. + */ export type UiConfigSchemaFlags = { [key: string]: boolean | VariantFlagSchema; }; diff --git a/frontend/src/openapi/models/updateApiToken401.ts b/frontend/src/openapi/models/updateApiToken401.ts new file mode 100644 index 0000000000..85d8efeed4 --- /dev/null +++ b/frontend/src/openapi/models/updateApiToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateApiToken401 = { + /** 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/updateApiToken403.ts b/frontend/src/openapi/models/updateApiToken403.ts new file mode 100644 index 0000000000..b98bd75dfc --- /dev/null +++ b/frontend/src/openapi/models/updateApiToken403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateApiToken403 = { + /** 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/updateApiToken415.ts b/frontend/src/openapi/models/updateApiToken415.ts new file mode 100644 index 0000000000..4fdec7d34f --- /dev/null +++ b/frontend/src/openapi/models/updateApiToken415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateApiToken415 = { + /** 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/updateApiTokenSchema.ts b/frontend/src/openapi/models/updateApiTokenSchema.ts index 85ac2ffc43..a023a5fb8e 100644 --- a/frontend/src/openapi/models/updateApiTokenSchema.ts +++ b/frontend/src/openapi/models/updateApiTokenSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * An object with fields to updated for a given API token. + */ export interface UpdateApiTokenSchema { + /** The new time when this token should expire. */ expiresAt: string; } diff --git a/frontend/src/openapi/models/updateFeature401.ts b/frontend/src/openapi/models/updateFeature401.ts new file mode 100644 index 0000000000..ffb0b319ee --- /dev/null +++ b/frontend/src/openapi/models/updateFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeature401 = { + /** 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/updateFeature403.ts b/frontend/src/openapi/models/updateFeature403.ts new file mode 100644 index 0000000000..5b0504d21b --- /dev/null +++ b/frontend/src/openapi/models/updateFeature403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeature403 = { + /** 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/updateFeature404.ts b/frontend/src/openapi/models/updateFeature404.ts new file mode 100644 index 0000000000..86c8358a09 --- /dev/null +++ b/frontend/src/openapi/models/updateFeature404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeature404 = { + /** 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/updateFeature415.ts b/frontend/src/openapi/models/updateFeature415.ts new file mode 100644 index 0000000000..1be878226d --- /dev/null +++ b/frontend/src/openapi/models/updateFeature415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeature415 = { + /** 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/updateFeatureSchema.ts b/frontend/src/openapi/models/updateFeatureSchema.ts index 427bc99b8f..eadace70f5 100644 --- a/frontend/src/openapi/models/updateFeatureSchema.ts +++ b/frontend/src/openapi/models/updateFeatureSchema.ts @@ -3,15 +3,19 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ConstraintSchema } from './constraintSchema'; +/** + * Data used for updating a feature toggle + */ export interface UpdateFeatureSchema { - name: string; + /** Detailed description of the feature */ description?: string; + /** Type of the toggle e.g. experiment, kill-switch, release, operational, permission */ type?: string; + /** `true` if the feature is archived */ stale?: boolean; + /** If `true` the feature toggle will be moved to the [archive](https://docs.getunleash.io/reference/archived-toggles) with a property `archivedAt` set to current time */ archived?: boolean; - createdAt?: string; + /** `true` if the impression data collection is enabled for the feature */ impressionData?: boolean; - constraints?: ConstraintSchema[]; } diff --git a/frontend/src/openapi/models/updateFeatureStrategy400.ts b/frontend/src/openapi/models/updateFeatureStrategy400.ts new file mode 100644 index 0000000000..d43203168a --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategy400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategy400 = { + /** 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/updateFeatureStrategy401.ts b/frontend/src/openapi/models/updateFeatureStrategy401.ts new file mode 100644 index 0000000000..133be894e8 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategy401 = { + /** 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/updateFeatureStrategy403.ts b/frontend/src/openapi/models/updateFeatureStrategy403.ts new file mode 100644 index 0000000000..019d7aeb3a --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategy403 = { + /** 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/updateFeatureStrategy404.ts b/frontend/src/openapi/models/updateFeatureStrategy404.ts new file mode 100644 index 0000000000..15289b23ed --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategy404 = { + /** 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/updateFeatureStrategy415.ts b/frontend/src/openapi/models/updateFeatureStrategy415.ts new file mode 100644 index 0000000000..917f27989a --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategy415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategy415 = { + /** 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/updateFeatureStrategySchema.ts b/frontend/src/openapi/models/updateFeatureStrategySchema.ts index fb8a52c76c..8e4afa7428 100644 --- a/frontend/src/openapi/models/updateFeatureStrategySchema.ts +++ b/frontend/src/openapi/models/updateFeatureStrategySchema.ts @@ -6,9 +6,15 @@ import type { ConstraintSchema } from './constraintSchema'; import type { ParametersSchema } from './parametersSchema'; +/** + * Update a strategy configuration in a feature + */ export interface UpdateFeatureStrategySchema { + /** The name of the strategy type */ name?: string; + /** The order of the strategy in the list in feature environment configuration */ sortOrder?: number; + /** A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints */ constraints?: ConstraintSchema[]; /** A descriptive title for the strategy */ title?: string | null; diff --git a/frontend/src/openapi/models/updateFeatureStrategySegments415.ts b/frontend/src/openapi/models/updateFeatureStrategySegments415.ts new file mode 100644 index 0000000000..3ee0bb53a7 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureStrategySegments415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureStrategySegments415 = { + /** 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/updateFeatureStrategySegmentsSchema.ts b/frontend/src/openapi/models/updateFeatureStrategySegmentsSchema.ts index de76b3ba75..e6cb3c4944 100644 --- a/frontend/src/openapi/models/updateFeatureStrategySegmentsSchema.ts +++ b/frontend/src/openapi/models/updateFeatureStrategySegmentsSchema.ts @@ -4,9 +4,16 @@ * See `gen:api` script in package.json */ +/** + * Data required to update segments for a strategy. + */ export interface UpdateFeatureStrategySegmentsSchema { + /** The ID of the project that the strategy belongs to. */ projectId: string; + /** The ID of the strategy to update segments for. */ strategyId: string; + /** The ID of the strategy environment. */ environmentId: string; + /** The new list of segments (IDs) to use for this strategy. Any segments not in this list will be removed from the strategy. */ segmentIds: number[]; } diff --git a/frontend/src/openapi/models/updateFeatureTypeLifetime400.ts b/frontend/src/openapi/models/updateFeatureTypeLifetime400.ts new file mode 100644 index 0000000000..01584d215b --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureTypeLifetime400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureTypeLifetime400 = { + /** 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/updateFeatureTypeLifetime401.ts b/frontend/src/openapi/models/updateFeatureTypeLifetime401.ts new file mode 100644 index 0000000000..8f7159fbbb --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureTypeLifetime401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureTypeLifetime401 = { + /** 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/updateFeatureTypeLifetime403.ts b/frontend/src/openapi/models/updateFeatureTypeLifetime403.ts new file mode 100644 index 0000000000..f371679121 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureTypeLifetime403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureTypeLifetime403 = { + /** 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/updateFeatureTypeLifetime404.ts b/frontend/src/openapi/models/updateFeatureTypeLifetime404.ts new file mode 100644 index 0000000000..4ab65d845a --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureTypeLifetime404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureTypeLifetime404 = { + /** 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/updateFeatureTypeLifetime409.ts b/frontend/src/openapi/models/updateFeatureTypeLifetime409.ts new file mode 100644 index 0000000000..4f4d0cbd54 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureTypeLifetime409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureTypeLifetime409 = { + /** 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/updateFeatureTypeLifetime415.ts b/frontend/src/openapi/models/updateFeatureTypeLifetime415.ts new file mode 100644 index 0000000000..ee3f445d99 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureTypeLifetime415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeatureTypeLifetime415 = { + /** 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/updateFeatureTypeLifetimeSchema.ts b/frontend/src/openapi/models/updateFeatureTypeLifetimeSchema.ts new file mode 100644 index 0000000000..bc2a0aa3c7 --- /dev/null +++ b/frontend/src/openapi/models/updateFeatureTypeLifetimeSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Data used when updating the lifetime of a [feature toggle type](https://docs.getunleash.io/reference/feature-toggle-types). + */ +export interface UpdateFeatureTypeLifetimeSchema { + /** The new lifetime (in days) that you want to assign to the feature toggle type. If the value is `null` or `0`, then the feature toggles of that type will never be marked as potentially stale. Otherwise, they will be considered potentially stale after the number of days indicated by this property. */ + lifetimeDays: number | null; +} diff --git a/frontend/src/openapi/models/updateFeedback400.ts b/frontend/src/openapi/models/updateFeedback400.ts new file mode 100644 index 0000000000..6efc0b9767 --- /dev/null +++ b/frontend/src/openapi/models/updateFeedback400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeedback400 = { + /** 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/updateFeedback401.ts b/frontend/src/openapi/models/updateFeedback401.ts new file mode 100644 index 0000000000..a0d1c456ce --- /dev/null +++ b/frontend/src/openapi/models/updateFeedback401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeedback401 = { + /** 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/updateFeedback415.ts b/frontend/src/openapi/models/updateFeedback415.ts new file mode 100644 index 0000000000..103b7403a9 --- /dev/null +++ b/frontend/src/openapi/models/updateFeedback415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateFeedback415 = { + /** 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/updateSegment415.ts b/frontend/src/openapi/models/updateSegment415.ts new file mode 100644 index 0000000000..4e7495addc --- /dev/null +++ b/frontend/src/openapi/models/updateSegment415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSegment415 = { + /** 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/updateServiceAccount400.ts b/frontend/src/openapi/models/updateServiceAccount400.ts new file mode 100644 index 0000000000..4c4f09da43 --- /dev/null +++ b/frontend/src/openapi/models/updateServiceAccount400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateServiceAccount400 = { + /** 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/updateServiceAccount401.ts b/frontend/src/openapi/models/updateServiceAccount401.ts new file mode 100644 index 0000000000..c51c31ff0e --- /dev/null +++ b/frontend/src/openapi/models/updateServiceAccount401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateServiceAccount401 = { + /** 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/updateServiceAccount403.ts b/frontend/src/openapi/models/updateServiceAccount403.ts new file mode 100644 index 0000000000..c39cd15ff2 --- /dev/null +++ b/frontend/src/openapi/models/updateServiceAccount403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateServiceAccount403 = { + /** 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/updateServiceAccount404.ts b/frontend/src/openapi/models/updateServiceAccount404.ts new file mode 100644 index 0000000000..d9b72867d9 --- /dev/null +++ b/frontend/src/openapi/models/updateServiceAccount404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateServiceAccount404 = { + /** 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/updateServiceAccount415.ts b/frontend/src/openapi/models/updateServiceAccount415.ts new file mode 100644 index 0000000000..1d3a9b044b --- /dev/null +++ b/frontend/src/openapi/models/updateServiceAccount415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateServiceAccount415 = { + /** 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/updateServiceAccountSchema.ts b/frontend/src/openapi/models/updateServiceAccountSchema.ts index 22da95cf1f..98ebd7e873 100644 --- a/frontend/src/openapi/models/updateServiceAccountSchema.ts +++ b/frontend/src/openapi/models/updateServiceAccountSchema.ts @@ -4,8 +4,13 @@ * See `gen:api` script in package.json */ +/** + * Describes the properties required to update a service account + */ export interface UpdateServiceAccountSchema { + /** The name of the service account */ name?: string; + /** The id of the root role for the service account */ rootRole?: number; [key: string]: any; } diff --git a/frontend/src/openapi/models/updateSplashSettings400.ts b/frontend/src/openapi/models/updateSplashSettings400.ts new file mode 100644 index 0000000000..1adac93a80 --- /dev/null +++ b/frontend/src/openapi/models/updateSplashSettings400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSplashSettings400 = { + /** 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/updateSplashSettings401.ts b/frontend/src/openapi/models/updateSplashSettings401.ts new file mode 100644 index 0000000000..ff35396dbc --- /dev/null +++ b/frontend/src/openapi/models/updateSplashSettings401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSplashSettings401 = { + /** 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/updateSplashSettings403.ts b/frontend/src/openapi/models/updateSplashSettings403.ts new file mode 100644 index 0000000000..8df3f3d396 --- /dev/null +++ b/frontend/src/openapi/models/updateSplashSettings403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSplashSettings403 = { + /** 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/updateSplashSettings415.ts b/frontend/src/openapi/models/updateSplashSettings415.ts new file mode 100644 index 0000000000..6f03a27d8a --- /dev/null +++ b/frontend/src/openapi/models/updateSplashSettings415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateSplashSettings415 = { + /** 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/updateStrategy401.ts b/frontend/src/openapi/models/updateStrategy401.ts new file mode 100644 index 0000000000..446394de95 --- /dev/null +++ b/frontend/src/openapi/models/updateStrategy401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateStrategy401 = { + /** 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/updateStrategy403.ts b/frontend/src/openapi/models/updateStrategy403.ts new file mode 100644 index 0000000000..dcff2f3243 --- /dev/null +++ b/frontend/src/openapi/models/updateStrategy403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateStrategy403 = { + /** 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/updateStrategy404.ts b/frontend/src/openapi/models/updateStrategy404.ts new file mode 100644 index 0000000000..f162694f9f --- /dev/null +++ b/frontend/src/openapi/models/updateStrategy404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateStrategy404 = { + /** 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/updateStrategy415.ts b/frontend/src/openapi/models/updateStrategy415.ts new file mode 100644 index 0000000000..10682a1483 --- /dev/null +++ b/frontend/src/openapi/models/updateStrategy415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateStrategy415 = { + /** 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/updateStrategySchema.ts b/frontend/src/openapi/models/updateStrategySchema.ts new file mode 100644 index 0000000000..336b0048b0 --- /dev/null +++ b/frontend/src/openapi/models/updateStrategySchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { UpdateStrategySchemaParametersItem } from './updateStrategySchemaParametersItem'; + +/** + * The data required to update a strategy type. + */ +export interface UpdateStrategySchema { + /** A description of the strategy type. */ + description?: string; + /** The parameter list lets you pass arguments to your custom activation strategy. These will be made available to your custom strategy implementation. */ + parameters: UpdateStrategySchemaParametersItem[]; +} diff --git a/frontend/src/openapi/models/updateStrategySchemaParametersItem.ts b/frontend/src/openapi/models/updateStrategySchemaParametersItem.ts new file mode 100644 index 0000000000..84ba3fa687 --- /dev/null +++ b/frontend/src/openapi/models/updateStrategySchemaParametersItem.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { UpdateStrategySchemaParametersItemType } from './updateStrategySchemaParametersItemType'; + +export type UpdateStrategySchemaParametersItem = { + /** The name of the parameter */ + name: string; + /** The [type of the parameter](https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types) */ + type: UpdateStrategySchemaParametersItemType; + /** A description of this strategy parameter. Use this to indicate to the users what the parameter does. */ + description?: string; + /** Whether this parameter must be configured when using the strategy. Defaults to `false` */ + required?: boolean; +}; diff --git a/frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts b/frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts new file mode 100644 index 0000000000..1b34e8e13d --- /dev/null +++ b/frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts @@ -0,0 +1,20 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The [type of the parameter](https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types) + */ +export type UpdateStrategySchemaParametersItemType = + typeof UpdateStrategySchemaParametersItemType[keyof typeof UpdateStrategySchemaParametersItemType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const UpdateStrategySchemaParametersItemType = { + string: 'string', + percentage: 'percentage', + list: 'list', + number: 'number', + boolean: 'boolean', +} as const; diff --git a/frontend/src/openapi/models/updateTagType400.ts b/frontend/src/openapi/models/updateTagType400.ts new file mode 100644 index 0000000000..f3595377a4 --- /dev/null +++ b/frontend/src/openapi/models/updateTagType400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTagType400 = { + /** 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/updateTagType401.ts b/frontend/src/openapi/models/updateTagType401.ts new file mode 100644 index 0000000000..59df717947 --- /dev/null +++ b/frontend/src/openapi/models/updateTagType401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTagType401 = { + /** 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/updateTagType403.ts b/frontend/src/openapi/models/updateTagType403.ts new file mode 100644 index 0000000000..99d5bf8885 --- /dev/null +++ b/frontend/src/openapi/models/updateTagType403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTagType403 = { + /** 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/updateTagType415.ts b/frontend/src/openapi/models/updateTagType415.ts new file mode 100644 index 0000000000..2c75635495 --- /dev/null +++ b/frontend/src/openapi/models/updateTagType415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateTagType415 = { + /** 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/updateTagTypeSchema.ts b/frontend/src/openapi/models/updateTagTypeSchema.ts index 1501484fab..9f27a204c8 100644 --- a/frontend/src/openapi/models/updateTagTypeSchema.ts +++ b/frontend/src/openapi/models/updateTagTypeSchema.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * The request body for updating a tag type. + */ export interface UpdateTagTypeSchema { + /** The description of the tag type. */ description?: string; + /** The icon of the tag type. */ icon?: string; } diff --git a/frontend/src/openapi/models/updateUser400.ts b/frontend/src/openapi/models/updateUser400.ts new file mode 100644 index 0000000000..efd48b4cf9 --- /dev/null +++ b/frontend/src/openapi/models/updateUser400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateUser400 = { + /** 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/updateUser401.ts b/frontend/src/openapi/models/updateUser401.ts new file mode 100644 index 0000000000..03a37e7202 --- /dev/null +++ b/frontend/src/openapi/models/updateUser401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateUser401 = { + /** 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/updateUser403.ts b/frontend/src/openapi/models/updateUser403.ts new file mode 100644 index 0000000000..64e3afb9e0 --- /dev/null +++ b/frontend/src/openapi/models/updateUser403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateUser403 = { + /** 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/updateUser404.ts b/frontend/src/openapi/models/updateUser404.ts new file mode 100644 index 0000000000..0b52196033 --- /dev/null +++ b/frontend/src/openapi/models/updateUser404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UpdateUser404 = { + /** 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/updateUserSchema.ts b/frontend/src/openapi/models/updateUserSchema.ts index d8c2c8abab..33ec2f0383 100644 --- a/frontend/src/openapi/models/updateUserSchema.ts +++ b/frontend/src/openapi/models/updateUserSchema.ts @@ -3,10 +3,17 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { UpdateUserSchemaRootRole } from './updateUserSchemaRootRole'; +/** + * All fields that can be directly changed for the user + */ export interface UpdateUserSchema { + /** The user's email address. Must be provided if username is not provided. */ email?: string; + /** The user's name (not the user's username). */ name?: string; - rootRole?: number; + /** The role to assign to the user. Can be either the role's ID or its unique name. */ + rootRole?: UpdateUserSchemaRootRole; [key: string]: any; } diff --git a/frontend/src/openapi/models/updateUserSchemaRootRole.ts b/frontend/src/openapi/models/updateUserSchemaRootRole.ts new file mode 100644 index 0000000000..e16bd4a85b --- /dev/null +++ b/frontend/src/openapi/models/updateUserSchemaRootRole.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The role to assign to the user. Can be either the role's ID or its unique name. + */ +export type UpdateUserSchemaRootRole = + | number + | 'Admin' + | 'Editor' + | 'Viewer' + | 'Owner' + | 'Member'; diff --git a/frontend/src/openapi/models/upsertStrategySchema.ts b/frontend/src/openapi/models/upsertStrategySchema.ts deleted file mode 100644 index 29b21954b4..0000000000 --- a/frontend/src/openapi/models/upsertStrategySchema.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { UpsertStrategySchemaParametersItem } from './upsertStrategySchemaParametersItem'; - -export interface UpsertStrategySchema { - name: string; - description?: string; - editable?: boolean; - parameters?: UpsertStrategySchemaParametersItem[]; -} diff --git a/frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts b/frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts deleted file mode 100644 index 46e241774b..0000000000 --- a/frontend/src/openapi/models/upsertStrategySchemaParametersItem.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -export type UpsertStrategySchemaParametersItem = { - name?: string; - type?: string; - description?: string; - required?: boolean; -}; diff --git a/frontend/src/openapi/models/userSchema.ts b/frontend/src/openapi/models/userSchema.ts index f87b88b9de..28edeedb69 100644 --- a/frontend/src/openapi/models/userSchema.ts +++ b/frontend/src/openapi/models/userSchema.ts @@ -4,18 +4,39 @@ * See `gen:api` script in package.json */ +/** + * An Unleash user + */ export interface UserSchema { + /** The user id */ id: number; + /** + * (Deprecated): Used internally to know which operations the user should be allowed to perform + * @deprecated + */ isAPI?: boolean; + /** Name of the user */ name?: string; + /** Email of the user */ email?: string; + /** A unique username for the user */ username?: string; + /** URL used for the userprofile image */ imageUrl?: string; + /** If the user is actively inviting other users, this is the link that can be shared with other users */ inviteLink?: string; + /** How many unsuccessful attempts at logging in has the user made */ loginAttempts?: number; + /** Is the welcome email sent to the user or not */ emailSent?: boolean; + /** Which [root role](https://docs.getunleash.io/reference/rbac#standard-roles) this user is assigned */ rootRole?: number; + /** The last time this user logged in */ seenAt?: string | null; + /** The user was created at this time */ createdAt?: string; + /** A user is either an actual User or a Service Account */ accountType?: string; + /** Deprecated */ + permissions?: string[]; } diff --git a/frontend/src/openapi/models/usersSchema.ts b/frontend/src/openapi/models/usersSchema.ts index e948b55377..037002236e 100644 --- a/frontend/src/openapi/models/usersSchema.ts +++ b/frontend/src/openapi/models/usersSchema.ts @@ -6,7 +6,12 @@ import type { UserSchema } from './userSchema'; import type { RoleSchema } from './roleSchema'; +/** + * Users and root roles + */ export interface UsersSchema { + /** A list of users in the Unleash instance. */ users: UserSchema[]; + /** A list of [root roles](https://docs.getunleash.io/reference/rbac#standard-roles) in the Unleash instance. */ rootRoles?: RoleSchema[]; } diff --git a/frontend/src/openapi/models/validateConstraint400.ts b/frontend/src/openapi/models/validateConstraint400.ts new file mode 100644 index 0000000000..b89de39b1b --- /dev/null +++ b/frontend/src/openapi/models/validateConstraint400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateConstraint400 = { + /** 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/validateConstraint401.ts b/frontend/src/openapi/models/validateConstraint401.ts new file mode 100644 index 0000000000..8f8b23f070 --- /dev/null +++ b/frontend/src/openapi/models/validateConstraint401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateConstraint401 = { + /** 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/validateConstraint403.ts b/frontend/src/openapi/models/validateConstraint403.ts new file mode 100644 index 0000000000..372756b2aa --- /dev/null +++ b/frontend/src/openapi/models/validateConstraint403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateConstraint403 = { + /** 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/validateConstraint415.ts b/frontend/src/openapi/models/validateConstraint415.ts new file mode 100644 index 0000000000..6dd0688f0f --- /dev/null +++ b/frontend/src/openapi/models/validateConstraint415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateConstraint415 = { + /** 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/validateFeature400.ts b/frontend/src/openapi/models/validateFeature400.ts new file mode 100644 index 0000000000..93bc15601e --- /dev/null +++ b/frontend/src/openapi/models/validateFeature400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateFeature400 = { + /** 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/validateFeature401.ts b/frontend/src/openapi/models/validateFeature401.ts new file mode 100644 index 0000000000..a8e84cdaca --- /dev/null +++ b/frontend/src/openapi/models/validateFeature401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateFeature401 = { + /** 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/validateFeature409.ts b/frontend/src/openapi/models/validateFeature409.ts new file mode 100644 index 0000000000..1cb7bcd1f9 --- /dev/null +++ b/frontend/src/openapi/models/validateFeature409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateFeature409 = { + /** 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/validateFeature415.ts b/frontend/src/openapi/models/validateFeature415.ts new file mode 100644 index 0000000000..ea03a6758d --- /dev/null +++ b/frontend/src/openapi/models/validateFeature415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateFeature415 = { + /** 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/validateFeatureSchema.ts b/frontend/src/openapi/models/validateFeatureSchema.ts new file mode 100644 index 0000000000..73323935d7 --- /dev/null +++ b/frontend/src/openapi/models/validateFeatureSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Data used to validate a feature toggle's name. + */ +export interface ValidateFeatureSchema { + /** The feature name to validate. */ + name: string; +} diff --git a/frontend/src/openapi/models/validateImport404.ts b/frontend/src/openapi/models/validateImport404.ts new file mode 100644 index 0000000000..114dbbd321 --- /dev/null +++ b/frontend/src/openapi/models/validateImport404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateImport404 = { + /** 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/validatePassword400.ts b/frontend/src/openapi/models/validatePassword400.ts new file mode 100644 index 0000000000..636695d47d --- /dev/null +++ b/frontend/src/openapi/models/validatePassword400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidatePassword400 = { + /** 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/validatePassword415.ts b/frontend/src/openapi/models/validatePassword415.ts new file mode 100644 index 0000000000..5e2c591433 --- /dev/null +++ b/frontend/src/openapi/models/validatePassword415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidatePassword415 = { + /** 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/validatePasswordSchema.ts b/frontend/src/openapi/models/validatePasswordSchema.ts index ce8246caa3..d32de1669c 100644 --- a/frontend/src/openapi/models/validatePasswordSchema.ts +++ b/frontend/src/openapi/models/validatePasswordSchema.ts @@ -4,6 +4,10 @@ * See `gen:api` script in package.json */ +/** + * Used to validate passwords obeying [Unleash password guidelines](https://docs.getunleash.io/reference/deploy/securing-unleash#password-requirements) + */ export interface ValidatePasswordSchema { + /** The password to validate */ password: string; } diff --git a/frontend/src/openapi/models/validateSegment400.ts b/frontend/src/openapi/models/validateSegment400.ts new file mode 100644 index 0000000000..b81307b553 --- /dev/null +++ b/frontend/src/openapi/models/validateSegment400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateSegment400 = { + /** 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/validateSegment415.ts b/frontend/src/openapi/models/validateSegment415.ts new file mode 100644 index 0000000000..9759073604 --- /dev/null +++ b/frontend/src/openapi/models/validateSegment415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateSegment415 = { + /** 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/validateTagType400.ts b/frontend/src/openapi/models/validateTagType400.ts new file mode 100644 index 0000000000..7267c864b4 --- /dev/null +++ b/frontend/src/openapi/models/validateTagType400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateTagType400 = { + /** 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/validateTagType401.ts b/frontend/src/openapi/models/validateTagType401.ts new file mode 100644 index 0000000000..b4ab2a2573 --- /dev/null +++ b/frontend/src/openapi/models/validateTagType401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateTagType401 = { + /** 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/validateTagType403.ts b/frontend/src/openapi/models/validateTagType403.ts new file mode 100644 index 0000000000..73e8388a45 --- /dev/null +++ b/frontend/src/openapi/models/validateTagType403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateTagType403 = { + /** 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/validateTagType409.ts b/frontend/src/openapi/models/validateTagType409.ts new file mode 100644 index 0000000000..40b575306d --- /dev/null +++ b/frontend/src/openapi/models/validateTagType409.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateTagType409 = { + /** 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/validateTagType415.ts b/frontend/src/openapi/models/validateTagType415.ts new file mode 100644 index 0000000000..16a2e21c73 --- /dev/null +++ b/frontend/src/openapi/models/validateTagType415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateTagType415 = { + /** 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/validateTagTypeSchema.ts b/frontend/src/openapi/models/validateTagTypeSchema.ts index 75af130846..08ac473108 100644 --- a/frontend/src/openapi/models/validateTagTypeSchema.ts +++ b/frontend/src/openapi/models/validateTagTypeSchema.ts @@ -5,7 +5,11 @@ */ import type { TagTypeSchema } from './tagTypeSchema'; +/** + * The result of validating a tag type. + */ export interface ValidateTagTypeSchema { + /** Whether or not the tag type is valid. */ valid: boolean; tagType: TagTypeSchema; } diff --git a/frontend/src/openapi/models/validateToken401.ts b/frontend/src/openapi/models/validateToken401.ts new file mode 100644 index 0000000000..9ebdd649a1 --- /dev/null +++ b/frontend/src/openapi/models/validateToken401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateToken401 = { + /** 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/validateToken415.ts b/frontend/src/openapi/models/validateToken415.ts new file mode 100644 index 0000000000..f391bd76e6 --- /dev/null +++ b/frontend/src/openapi/models/validateToken415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateToken415 = { + /** 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/validateUserPassword400.ts b/frontend/src/openapi/models/validateUserPassword400.ts new file mode 100644 index 0000000000..eeed7b4a23 --- /dev/null +++ b/frontend/src/openapi/models/validateUserPassword400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateUserPassword400 = { + /** 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/validateUserPassword401.ts b/frontend/src/openapi/models/validateUserPassword401.ts new file mode 100644 index 0000000000..9d0985c1b3 --- /dev/null +++ b/frontend/src/openapi/models/validateUserPassword401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateUserPassword401 = { + /** 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/validateUserPassword415.ts b/frontend/src/openapi/models/validateUserPassword415.ts new file mode 100644 index 0000000000..7d1dc435f8 --- /dev/null +++ b/frontend/src/openapi/models/validateUserPassword415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ValidateUserPassword415 = { + /** 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 index b4a68f29ad..71e597a51b 100644 --- a/frontend/src/openapi/models/variantFlagSchema.ts +++ b/frontend/src/openapi/models/variantFlagSchema.ts @@ -5,8 +5,14 @@ */ import type { VariantFlagSchemaPayload } from './variantFlagSchemaPayload'; +/** + * A representation of an evaluated Unleash feature variant. + */ export interface VariantFlagSchema { + /** The name of the variant. Will always be disabled if `enabled` is false. */ name?: string; + /** Whether the variant is enabled or not. */ enabled?: boolean; + /** Additional data associated with this variant. */ payload?: VariantFlagSchemaPayload; } diff --git a/frontend/src/openapi/models/variantFlagSchemaPayload.ts b/frontend/src/openapi/models/variantFlagSchemaPayload.ts index 6aa33b009a..8e59abca2b 100644 --- a/frontend/src/openapi/models/variantFlagSchemaPayload.ts +++ b/frontend/src/openapi/models/variantFlagSchemaPayload.ts @@ -3,8 +3,14 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { VariantFlagSchemaPayloadType } from './variantFlagSchemaPayloadType'; +/** + * Additional data associated with this variant. + */ export type VariantFlagSchemaPayload = { - type?: string; + /** The type of data contained. */ + type?: VariantFlagSchemaPayloadType; + /** The actual associated data */ value?: string; }; diff --git a/frontend/src/openapi/models/variantFlagSchemaPayloadType.ts b/frontend/src/openapi/models/variantFlagSchemaPayloadType.ts new file mode 100644 index 0000000000..08caa52993 --- /dev/null +++ b/frontend/src/openapi/models/variantFlagSchemaPayloadType.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The type of data contained. + */ +export type VariantFlagSchemaPayloadType = + typeof VariantFlagSchemaPayloadType[keyof typeof VariantFlagSchemaPayloadType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const VariantFlagSchemaPayloadType = { + string: 'string', + json: 'json', + csv: 'csv', +} as const; diff --git a/frontend/src/openapi/models/variantSchema.ts b/frontend/src/openapi/models/variantSchema.ts index bde412d5a5..5fa92a88e5 100644 --- a/frontend/src/openapi/models/variantSchema.ts +++ b/frontend/src/openapi/models/variantSchema.ts @@ -3,6 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { VariantSchemaWeightType } from './variantSchemaWeightType'; import type { VariantSchemaPayload } from './variantSchemaPayload'; import type { OverrideSchema } from './overrideSchema'; @@ -15,7 +16,7 @@ export interface VariantSchema { /** The weight is the likelihood of any one user getting this variant. It is a number between 0 and 1000. See the section on [variant weights](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight) for more information */ weight: number; /** Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000 */ - weightType?: string; + weightType?: VariantSchemaWeightType; /** [Stickiness](https://docs.getunleash.io/reference/feature-toggle-variants#variant-stickiness) is how Unleash guarantees that the same user gets the same variant every time */ stickiness?: string; /** Extra data configured for this variant */ diff --git a/frontend/src/openapi/models/variantSchemaPayload.ts b/frontend/src/openapi/models/variantSchemaPayload.ts index 6a636ff534..7506f69ff4 100644 --- a/frontend/src/openapi/models/variantSchemaPayload.ts +++ b/frontend/src/openapi/models/variantSchemaPayload.ts @@ -8,6 +8,8 @@ * Extra data configured for this variant */ export type VariantSchemaPayload = { + /** The type of the value. Commonly used types are string, json and csv. */ type: string; + /** The actual value of payload */ value: string; }; diff --git a/frontend/src/openapi/models/variantSchemaWeightType.ts b/frontend/src/openapi/models/variantSchemaWeightType.ts new file mode 100644 index 0000000000..d515e58ae7 --- /dev/null +++ b/frontend/src/openapi/models/variantSchemaWeightType.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000 + */ +export type VariantSchemaWeightType = + typeof VariantSchemaWeightType[keyof typeof VariantSchemaWeightType]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const VariantSchemaWeightType = { + variable: 'variable', + fix: 'fix', +} as const; diff --git a/frontend/src/openapi/models/versionSchema.ts b/frontend/src/openapi/models/versionSchema.ts index 939dc37921..89dba4a460 100644 --- a/frontend/src/openapi/models/versionSchema.ts +++ b/frontend/src/openapi/models/versionSchema.ts @@ -6,9 +6,16 @@ import type { VersionSchemaCurrent } from './versionSchemaCurrent'; import type { VersionSchemaLatest } from './versionSchemaLatest'; +/** + * Detailed information about an Unleash version + */ export interface VersionSchema { + /** The current version of Unleash. */ current: VersionSchemaCurrent; + /** Information about the latest available Unleash releases. Will be an empty object if no data is available. */ latest: VersionSchemaLatest; + /** Whether the Unleash server is running the latest release (`true`) or if there are updates available (`false`) */ isLatest: boolean; - instanceId: string; + /** The instance identifier of the Unleash instance */ + instanceId?: string; } diff --git a/frontend/src/openapi/models/versionSchemaCurrent.ts b/frontend/src/openapi/models/versionSchemaCurrent.ts index 6cc34f2acf..083e29c271 100644 --- a/frontend/src/openapi/models/versionSchemaCurrent.ts +++ b/frontend/src/openapi/models/versionSchemaCurrent.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * The current version of Unleash. + */ export type VersionSchemaCurrent = { + /** The OSS version used when building this Unleash instance, represented as a git revision belonging to the [main Unleash git repo](https://github.com/Unleash/unleash/) */ oss?: string; + /** The Enterpris version of Unleash used to build this instance, represented as a git revision belonging to the [Unleash Enterprise](https://github.com/ivarconr/unleash-enterprise) repository. Will be an empty string if no enterprise version was used, */ enterprise?: string; }; diff --git a/frontend/src/openapi/models/versionSchemaLatest.ts b/frontend/src/openapi/models/versionSchemaLatest.ts index 623a7075b8..5b2cffbb12 100644 --- a/frontend/src/openapi/models/versionSchemaLatest.ts +++ b/frontend/src/openapi/models/versionSchemaLatest.ts @@ -4,7 +4,12 @@ * See `gen:api` script in package.json */ +/** + * Information about the latest available Unleash releases. Will be an empty object if no data is available. + */ export type VersionSchemaLatest = { + /** The latest available OSS version of Unleash */ oss?: string; + /** The latest available Enterprise version of Unleash */ enterprise?: string; }; diff --git a/frontend/yarn.lock b/frontend/yarn.lock index e1285555e1..2be3abbdcf 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -1975,24 +1975,24 @@ resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-1.0.3.tgz#db9cc719191a62e7d9200f6e7bab21c5b848adca" integrity sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q== -"@orval/angular@6.16.0": - version "6.16.0" - resolved "https://registry.yarnpkg.com/@orval/angular/-/angular-6.16.0.tgz#65bdf9edac4dfe57c9c21dfe7d7ceebd861693b8" - integrity sha512-pdKQkmHG0YRZF1Vkh1kvuIVGseec4mArXW0BV8LzrtP7F2Wg51cDcYys/gh3w/rq6uE2FGa4ildl+wvPq6pLJg== +"@orval/angular@6.17.0": + version "6.17.0" + resolved "https://registry.yarnpkg.com/@orval/angular/-/angular-6.17.0.tgz#d3d4aec65c82495ee32685972d58b4e9e4b80b34" + integrity sha512-MW1tySUMXGqLNrImjdQ7ezy2tpOowkTwWgh71n0N8mm/wAr3h3AUqTkXs8ZIdI/rlG9aCV5tRbm/NQSC1KaPjA== dependencies: - "@orval/core" "6.16.0" + "@orval/core" "6.17.0" -"@orval/axios@6.16.0": - version "6.16.0" - resolved "https://registry.yarnpkg.com/@orval/axios/-/axios-6.16.0.tgz#4929e9aae8f7bee303994fc943ac0d7d01010f13" - integrity sha512-RL/inKaJg5ivFcI0JrJPqlcR1MqFl2pv/j1GM79D4fKdTHFbXSD7/AVav6IQHnkQlrfuJxIca4flUphEXDc0kw== +"@orval/axios@6.17.0": + version "6.17.0" + resolved "https://registry.yarnpkg.com/@orval/axios/-/axios-6.17.0.tgz#f893b31091098a7b1fcde21b293f10c6204f12a7" + integrity sha512-S40tnHRAhXBnDqAIfLCjgJuhUrFrPCCi9ARVIjhiM8R1EkVwI/ApWNuwZj48eqbzICTojaC+jVWY54TDkZ02hg== dependencies: - "@orval/core" "6.16.0" + "@orval/core" "6.17.0" -"@orval/core@6.16.0": - version "6.16.0" - resolved "https://registry.yarnpkg.com/@orval/core/-/core-6.16.0.tgz#afbe64df438d1f19ee5d06e9c47527201a9c0ab4" - integrity sha512-9OgVvRZSaZecV2srixw+eCANSvXiKOiLPBSi9LjSyzU7HMPh1eVvYEE/ZzV7l/n0XIErE/DFcuvQTNAidsrIaw== +"@orval/core@6.17.0": + version "6.17.0" + resolved "https://registry.yarnpkg.com/@orval/core/-/core-6.17.0.tgz#971a3bea0619aaaefaa09de693c55ff49d618a49" + integrity sha512-WrGaG4Ri+AW7oiDNErlVLNs/SdMI/TQGz5VObOP3Q7gek2IsVqE4mr/X7zrMZxbZhrUuIl207mltFdqc4zCgNA== dependencies: "@apidevtools/swagger-parser" "^10.1.0" acorn "^8.8.0" @@ -2016,38 +2016,38 @@ swagger2openapi "^7.0.8" validator "^13.7.0" -"@orval/msw@6.16.0": - version "6.16.0" - resolved "https://registry.yarnpkg.com/@orval/msw/-/msw-6.16.0.tgz#3eba19237fb29ee0b525d824e24b45a1b8bec513" - integrity sha512-/SVDOHBDoYEUUbIbA4fKAmm+0gwbf/TjJTBU2he3Cu6LNAaxKjbiLKR9jSMsPU1haJczoIfq1LxctwRi1iW+mg== +"@orval/msw@6.17.0": + version "6.17.0" + resolved "https://registry.yarnpkg.com/@orval/msw/-/msw-6.17.0.tgz#5933b6ae651edc8151a0b448ca3ad9a76aa5d293" + integrity sha512-/awk0JBOg5oO7bw9ZlVguvJAngFKi9roTV35XpCUtcGG4Sw9KtujLZ2T3lMvEy5wxWoMFD2UAoH7Ob1uAJpZJQ== dependencies: - "@orval/core" "6.16.0" + "@orval/core" "6.17.0" cuid "^2.1.8" lodash.get "^4.4.2" lodash.omit "^4.5.0" openapi3-ts "^3.0.0" -"@orval/query@6.16.0": - version "6.16.0" - resolved "https://registry.yarnpkg.com/@orval/query/-/query-6.16.0.tgz#b04f6c5ce9b274dfb446991ac8cfa093fc59d4fe" - integrity sha512-X0d51at/6X5w3wWuyLTSjQ95oZHL4CqhWDgeDlgzYLRGORjX6YRvMODT/SM70rEDNvd+WwwZ+PHYgPL6tJhvNA== +"@orval/query@6.17.0": + version "6.17.0" + resolved "https://registry.yarnpkg.com/@orval/query/-/query-6.17.0.tgz#3d98200ff1f2991d2e7ee675f06a1b513cf5804a" + integrity sha512-YXvHjz2PcRd7faw9PYsqyRx+0ES5G0IS1JjYFWGoOYy6saSaRLVAYte8ABJJ8Sju8fxzba/BzQBgTZfe3BP8Zw== dependencies: - "@orval/core" "6.16.0" + "@orval/core" "6.17.0" lodash.omitby "^4.6.0" -"@orval/swr@6.16.0": - version "6.16.0" - resolved "https://registry.yarnpkg.com/@orval/swr/-/swr-6.16.0.tgz#f3244303fc82a6225409f2720da54227330c6e35" - integrity sha512-pbicl6Ado/fyorY1GZzQSzUIm0NwARo5mmPCqiSR5TrS0mBx+UXj65xV+T8vKI5Cs2atoch9Nz9BCb0hr0XpTw== +"@orval/swr@6.17.0": + version "6.17.0" + resolved "https://registry.yarnpkg.com/@orval/swr/-/swr-6.17.0.tgz#204d5d5f206ccacf5f54b198b3dc88de298a3261" + integrity sha512-entOSyODgDCXwOwE+aBAlg+LdmwhFNCg/0y/v5tuIfVTP5vhwTcqJFYGIZvMT9xittxTss7bAbiDQ9zOReU/Qg== dependencies: - "@orval/core" "6.16.0" + "@orval/core" "6.17.0" -"@orval/zod@6.16.0": - version "6.16.0" - resolved "https://registry.yarnpkg.com/@orval/zod/-/zod-6.16.0.tgz#d7865efa0bf8b988837de5cdf8f0f8b98291b087" - integrity sha512-ptwVvuFYRdGHiLLdxk/afcYE92jAwtRELe1XWwakKUbKU5s4rXr/81zJumqLwVrdR2fUfnUiJCpqp5sgVLaECw== +"@orval/zod@6.17.0": + version "6.17.0" + resolved "https://registry.yarnpkg.com/@orval/zod/-/zod-6.17.0.tgz#681a57fca314392e6301fb2cee5b494015aa4df0" + integrity sha512-ff0HSMC9LUVNreulsdx5hKy6lkoayZBcFn9bbk9BmFpbMCynjPOLXOpXwjHhWgny0HP66gjZtp5uOEtvVkWoMg== dependencies: - "@orval/core" "6.16.0" + "@orval/core" "6.17.0" lodash.uniq "^4.5.0" "@popperjs/core@^2.11.6": @@ -7511,19 +7511,19 @@ ora@^5.4.1: strip-ansi "^6.0.0" wcwidth "^1.0.1" -orval@^6.10.3: - version "6.16.0" - resolved "https://registry.yarnpkg.com/orval/-/orval-6.16.0.tgz#8ab8782004c936f5ed9b39053756a7821701e1ea" - integrity sha512-T04wzQr/pQaxpJoLvAnDeWlZCAnGuPteds/5bgGfN3qkx96k4QmmYHonO4N9xyUfxRVBdjWWc+LDxmO/jj/Apw== +orval@^6.17.0: + version "6.17.0" + resolved "https://registry.yarnpkg.com/orval/-/orval-6.17.0.tgz#2e26a2059f3f13acf5314920df38015dad6b2c78" + integrity sha512-QeK/Zxk9ZnoL//br/2oe5HnB53safd5eKtncCc0/3HjQS2BRtJpAyH8q7sQRFPTV4ToG9duYSQrTjgTvTsLTnQ== dependencies: "@apidevtools/swagger-parser" "^10.1.0" - "@orval/angular" "6.16.0" - "@orval/axios" "6.16.0" - "@orval/core" "6.16.0" - "@orval/msw" "6.16.0" - "@orval/query" "6.16.0" - "@orval/swr" "6.16.0" - "@orval/zod" "6.16.0" + "@orval/angular" "6.17.0" + "@orval/axios" "6.17.0" + "@orval/core" "6.17.0" + "@orval/msw" "6.17.0" + "@orval/query" "6.17.0" + "@orval/swr" "6.17.0" + "@orval/zod" "6.17.0" ajv "^8.11.0" cac "^6.7.12" chalk "^4.1.2"