diff --git a/frontend/src/openapi/models/adminStrategiesSchema.ts b/frontend/src/openapi/models/adminStrategiesSchema.ts deleted file mode 100644 index 2d90eccd8f52..000000000000 --- a/frontend/src/openapi/models/adminStrategiesSchema.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * 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/changeRequestScheduleSchema.ts b/frontend/src/openapi/models/changeRequestScheduleSchema.ts index 3cdf245a460e..f55207c66e91 100644 --- a/frontend/src/openapi/models/changeRequestScheduleSchema.ts +++ b/frontend/src/openapi/models/changeRequestScheduleSchema.ts @@ -9,6 +9,8 @@ import type { ChangeRequestScheduleSchemaStatus } from './changeRequestScheduleS * A schedule for a change request. */ export interface ChangeRequestScheduleSchema { + /** The reason the scheduled failed to apply. */ + failureReason?: string | null; /** When this change request is to be applied. */ scheduledAt: string; /** The status of the schedule. */ diff --git a/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchema.ts b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchema.ts new file mode 100644 index 000000000000..21b05e14fded --- /dev/null +++ b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchema.ts @@ -0,0 +1,20 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ChangeRequestScheduledQueryParamsSchemaFeature } from './changeRequestScheduledQueryParamsSchemaFeature'; +import type { ChangeRequestScheduledQueryParamsSchemaStrategyId } from './changeRequestScheduledQueryParamsSchemaStrategyId'; +import type { ChangeRequestScheduledQueryParamsSchemaVariantForFlag } from './changeRequestScheduledQueryParamsSchemaVariantForFlag'; + +/** + * Query parameters used to modify the list of scheduled change requests returned. For each parameter you add, the list will add any scheduled change requests matching that parameter. + */ +export interface ChangeRequestScheduledQueryParamsSchema { + /** The name of one or more feature flags. */ + feature?: ChangeRequestScheduledQueryParamsSchemaFeature; + /** One or more strategy IDs. */ + strategyId?: ChangeRequestScheduledQueryParamsSchemaStrategyId; + /** One or more features whose variants have been changed in a scheduled change request. This applies to flag-level variants. For changes to strategy variants, use the `strategyId` query parameter with the relevant strategy's ID. */ + variantForFlag?: ChangeRequestScheduledQueryParamsSchemaVariantForFlag; +} diff --git a/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaFeature.ts b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaFeature.ts new file mode 100644 index 000000000000..8c71ee3b847b --- /dev/null +++ b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaFeature.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The name of one or more feature flags. + */ +export type ChangeRequestScheduledQueryParamsSchemaFeature = string[] | string; diff --git a/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaStrategyId.ts b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaStrategyId.ts new file mode 100644 index 000000000000..920ba976fe96 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaStrategyId.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * One or more strategy IDs. + */ +export type ChangeRequestScheduledQueryParamsSchemaStrategyId = + | string[] + | string; diff --git a/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaVariantForFlag.ts b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaVariantForFlag.ts new file mode 100644 index 000000000000..10f5dab71a41 --- /dev/null +++ b/frontend/src/openapi/models/changeRequestScheduledQueryParamsSchemaVariantForFlag.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * One or more features whose variants have been changed in a scheduled change request. This applies to flag-level variants. For changes to strategy variants, use the `strategyId` query parameter with the relevant strategy's ID. + */ +export type ChangeRequestScheduledQueryParamsSchemaVariantForFlag = + | string[] + | string; diff --git a/frontend/src/openapi/models/changeRequestScheduledResultSchema.ts b/frontend/src/openapi/models/changeRequestScheduledResultSchema.ts new file mode 100644 index 000000000000..4d8427f3b6ea --- /dev/null +++ b/frontend/src/openapi/models/changeRequestScheduledResultSchema.ts @@ -0,0 +1,12 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ScheduledChangeRequestViewModelSchema } from './scheduledChangeRequestViewModelSchema'; + +/** + * A list of scheduled change request view models + */ +export type ChangeRequestScheduledResultSchema = + ScheduledChangeRequestViewModelSchema[]; diff --git a/frontend/src/openapi/models/createIncomingWebhookSchema.ts b/frontend/src/openapi/models/createIncomingWebhookSchema.ts new file mode 100644 index 000000000000..c5bd55a09a89 --- /dev/null +++ b/frontend/src/openapi/models/createIncomingWebhookSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Describes the properties required to create or update an incoming webhook. + */ +export interface CreateIncomingWebhookSchema { + /** Whether the incoming webhook is currently enabled. If not specified, defaults to true. */ + enabled?: boolean; + /** The incoming webhook name. Must be URL-safe. */ + name: string; +} diff --git a/frontend/src/openapi/models/createIncomingWebhookTokenSchema.ts b/frontend/src/openapi/models/createIncomingWebhookTokenSchema.ts new file mode 100644 index 000000000000..3914618a4913 --- /dev/null +++ b/frontend/src/openapi/models/createIncomingWebhookTokenSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Describes the properties required to create or update an incoming webhook token. + */ +export interface CreateIncomingWebhookTokenSchema { + /** The incoming webhook token name. */ + name: string; +} diff --git a/frontend/src/openapi/models/createUserResponseSchema.ts b/frontend/src/openapi/models/createUserResponseSchema.ts index 180b58df9a02..101c2593c035 100644 --- a/frontend/src/openapi/models/createUserResponseSchema.ts +++ b/frontend/src/openapi/models/createUserResponseSchema.ts @@ -39,5 +39,5 @@ export interface CreateUserResponseSchema { /** The last time this user logged in */ seenAt?: string | null; /** A unique username for the user */ - username?: string; + username?: string | null; } diff --git a/frontend/src/openapi/models/eventSchema.ts b/frontend/src/openapi/models/eventSchema.ts index 5bb047556077..8ea2010abfd2 100644 --- a/frontend/src/openapi/models/eventSchema.ts +++ b/frontend/src/openapi/models/eventSchema.ts @@ -16,6 +16,8 @@ export interface EventSchema { createdAt: string; /** Which user created this event */ createdBy: string; + /** The is of the user that created this event */ + createdByUserId?: number | null; /** Extra associated data related to the event, such as feature toggle state, segment configuration, etc., if applicable. */ data?: EventSchemaData; /** The feature toggle environment the event relates to, if applicable. */ diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts index 46c404c5b211..2a0fa03c1aa9 100644 --- a/frontend/src/openapi/models/eventSchemaType.ts +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -148,4 +148,11 @@ export const EventSchemaType = { 'project-environment-added': 'project-environment-added', 'project-environment-removed': 'project-environment-removed', 'default-strategy-updated': 'default-strategy-updated', + 'segment-import': 'segment-import', + 'incoming-webhook-created': 'incoming-webhook-created', + 'incoming-webhook-updated': 'incoming-webhook-updated', + 'incoming-webhook-deleted': 'incoming-webhook-deleted', + 'incoming-webhook-token-created': 'incoming-webhook-token-created', + 'incoming-webhook-token-updated': 'incoming-webhook-token-updated', + 'incoming-webhook-token-deleted': 'incoming-webhook-token-deleted', } as const; diff --git a/frontend/src/openapi/models/exportQuerySchema.ts b/frontend/src/openapi/models/exportQuerySchema.ts index a0ded6d07083..ef9a1feb5718 100644 --- a/frontend/src/openapi/models/exportQuerySchema.ts +++ b/frontend/src/openapi/models/exportQuerySchema.ts @@ -3,12 +3,14 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ExportQuerySchemaOneOf } from './exportQuerySchemaOneOf'; -import type { ExportQuerySchemaOneOfTwo } from './exportQuerySchemaOneOfTwo'; +import type { ExportQuerySchemaAnyOf } from './exportQuerySchemaAnyOf'; +import type { ExportQuerySchemaAnyOfTwo } from './exportQuerySchemaAnyOfTwo'; +import type { ExportQuerySchemaAnyOfThree } from './exportQuerySchemaAnyOfThree'; /** * Available query parameters for the [deprecated export/import](https://docs.getunleash.io/reference/deploy/import-export) functionality. */ export type ExportQuerySchema = - | ExportQuerySchemaOneOf - | ExportQuerySchemaOneOfTwo; + | ExportQuerySchemaAnyOf + | ExportQuerySchemaAnyOfTwo + | ExportQuerySchemaAnyOfThree; diff --git a/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts b/frontend/src/openapi/models/exportQuerySchemaAnyOf.ts similarity index 60% rename from frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts rename to frontend/src/openapi/models/exportQuerySchemaAnyOf.ts index 35e6db3ccd60..43a4ed13eb00 100644 --- a/frontend/src/openapi/models/exportQuerySchemaOneOfTwo.ts +++ b/frontend/src/openapi/models/exportQuerySchemaAnyOf.ts @@ -4,11 +4,11 @@ * See `gen:api` script in package.json */ -export type ExportQuerySchemaOneOfTwo = { +export type ExportQuerySchemaAnyOf = { /** Whether to return a downloadable file */ downloadFile?: boolean; /** The environment to export from */ environment: string; - /** Selects features to export by tag. Takes precedence over the features field. */ - tag: string; + /** Selects features to export by name. If the list is empty all features are returned. */ + features: string[]; }; diff --git a/frontend/src/openapi/models/exportQuerySchemaAnyOfThree.ts b/frontend/src/openapi/models/exportQuerySchemaAnyOfThree.ts new file mode 100644 index 000000000000..d511ab38abb9 --- /dev/null +++ b/frontend/src/openapi/models/exportQuerySchemaAnyOfThree.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ExportQuerySchemaAnyOfThree = { + /** Whether to return a downloadable file */ + downloadFile?: boolean; + /** The environment to export from */ + environment: string; + /** Selects project to export the features from. Used when no tags or features are provided. */ + project: string; +}; diff --git a/frontend/src/openapi/models/exportQuerySchemaOneOf.ts b/frontend/src/openapi/models/exportQuerySchemaAnyOfTwo.ts similarity index 68% rename from frontend/src/openapi/models/exportQuerySchemaOneOf.ts rename to frontend/src/openapi/models/exportQuerySchemaAnyOfTwo.ts index 0df7f9f367b9..2fe630e52394 100644 --- a/frontend/src/openapi/models/exportQuerySchemaOneOf.ts +++ b/frontend/src/openapi/models/exportQuerySchemaAnyOfTwo.ts @@ -4,11 +4,11 @@ * See `gen:api` script in package.json */ -export type ExportQuerySchemaOneOf = { +export type ExportQuerySchemaAnyOfTwo = { /** Whether to return a downloadable file */ downloadFile?: boolean; /** The environment to export from */ environment: string; - /** Selects features to export by name. */ - features: string[]; + /** Selects features to export by tag. */ + tag: string; }; diff --git a/frontend/src/openapi/models/featureTagSchema.ts b/frontend/src/openapi/models/featureTagSchema.ts index bed907cf3d19..b5e2fc81da6f 100644 --- a/frontend/src/openapi/models/featureTagSchema.ts +++ b/frontend/src/openapi/models/featureTagSchema.ts @@ -8,6 +8,8 @@ * Describes a tag applied to a feature */ export interface FeatureTagSchema { + /** The id of the user who created this tag */ + createdByUserId?: number | null; /** The name of the feature this tag is applied to */ featureName: string; /** The [type](https://docs.getunleash.io/reference/tags#tag-types tag types) of the tag */ @@ -24,6 +26,4 @@ export interface FeatureTagSchema { * @deprecated */ value?: string; - /** The id of the user who created this tag */ - createdByUserId?: number; } diff --git a/frontend/src/openapi/models/feedbackListSchema.ts b/frontend/src/openapi/models/feedbackListSchema.ts new file mode 100644 index 000000000000..db3086996089 --- /dev/null +++ b/frontend/src/openapi/models/feedbackListSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { FeedbackSchema } from './feedbackSchema'; + +/** + * A list of feedback items. + */ +export type FeedbackListSchema = FeedbackSchema[]; diff --git a/frontend/src/openapi/models/feedbackSchema.ts b/frontend/src/openapi/models/feedbackSchema.ts new file mode 100644 index 000000000000..168bff6aeb61 --- /dev/null +++ b/frontend/src/openapi/models/feedbackSchema.ts @@ -0,0 +1,25 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Schema representing feedback information. + */ +export interface FeedbackSchema { + /** Details aspects of the service or product that could benefit from enhancements or modifications. Aids in pinpointing areas needing attention for improvement. */ + areasForImprovement: string; + /** The category of the feedback. */ + category: string; + /** The date and time when the feedback was provided. */ + createdAt: string; + /** A score indicating the difficulty experienced by the user. */ + difficultyScore: number; + /** The unique identifier of the feedback. */ + id: number; + /** This field is for users to mention what they liked. */ + positive: string; + /** The type of user providing the feedback. */ + userType: string; +} diff --git a/frontend/src/openapi/models/getScheduledChangeRequests404.ts b/frontend/src/openapi/models/getScheduledChangeRequests404.ts new file mode 100644 index 000000000000..b17d706708a8 --- /dev/null +++ b/frontend/src/openapi/models/getScheduledChangeRequests404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetScheduledChangeRequests404 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +}; diff --git a/frontend/src/openapi/models/incomingWebhookSchema.ts b/frontend/src/openapi/models/incomingWebhookSchema.ts new file mode 100644 index 000000000000..255077470fda --- /dev/null +++ b/frontend/src/openapi/models/incomingWebhookSchema.ts @@ -0,0 +1,21 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * An object describing an incoming webhook. + */ +export interface IncomingWebhookSchema { + /** The date and time of when the incoming webhook was created. */ + createdAt: string; + /** The ID of the user that created this incoming webhook. */ + createdByUserId: number; + /** Whether the incoming webhook is currently enabled. If not specified, defaults to true. */ + enabled: boolean; + /** The incoming webhook's ID. Incoming webhook IDs are incrementing integers. In other words, a more recently created incoming webhook will always have a higher ID than an older one. */ + id: number; + /** The incoming webhook name. Must be URL-safe. */ + name: string; +} diff --git a/frontend/src/openapi/models/incomingWebhookTokenSchema.ts b/frontend/src/openapi/models/incomingWebhookTokenSchema.ts new file mode 100644 index 000000000000..a7a7b8d9cc36 --- /dev/null +++ b/frontend/src/openapi/models/incomingWebhookTokenSchema.ts @@ -0,0 +1,23 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * An object describing an incoming webhook token. + */ +export interface IncomingWebhookTokenSchema { + /** The date and time of when the incoming webhook token was created. */ + createdAt: string; + /** The ID of the user that created this incoming webhook token. */ + createdByUserId: number; + /** The incoming webhook token's ID. Incoming webhook token IDs are incrementing integers. In other words, a more recently created incoming webhook token will always have a higher ID than an older one. */ + id: number; + /** The incoming webhook ID that this token belongs to. */ + incomingWebhookId: number; + /** The incoming webhook token name. */ + name: string; + /** The token used for authentication. It is automatically generated by Unleash when the token is created and that is the only time this property is returned. */ + token?: string; +} diff --git a/frontend/src/openapi/models/incomingWebhookTokensSchema.ts b/frontend/src/openapi/models/incomingWebhookTokensSchema.ts new file mode 100644 index 000000000000..398a284d4b53 --- /dev/null +++ b/frontend/src/openapi/models/incomingWebhookTokensSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { IncomingWebhookTokenSchema } from './incomingWebhookTokenSchema'; + +/** + * A response model with a list of incoming webhook tokens. + */ +export interface IncomingWebhookTokensSchema { + /** A list of incoming webhook tokens. */ + incoming_webhook_tokens: IncomingWebhookTokenSchema[]; +} diff --git a/frontend/src/openapi/models/incomingWebhooksSchema.ts b/frontend/src/openapi/models/incomingWebhooksSchema.ts new file mode 100644 index 000000000000..a975ad756599 --- /dev/null +++ b/frontend/src/openapi/models/incomingWebhooksSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { IncomingWebhookSchema } from './incomingWebhookSchema'; + +/** + * A response model with a list of incoming webhooks. + */ +export interface IncomingWebhooksSchema { + /** A list of incoming webhooks. */ + incoming_webhooks: IncomingWebhookSchema[]; +} diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 0c15dd279209..2ad3a5684e11 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -62,8 +62,6 @@ 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'; @@ -218,6 +216,11 @@ export * from './changeRequestOneOrManyCreateSchemaOneOfTwothree'; export * from './changeRequestOneOrManyCreateSchemaOneOfTwothreeAction'; export * from './changeRequestScheduleSchema'; export * from './changeRequestScheduleSchemaStatus'; +export * from './changeRequestScheduledQueryParamsSchema'; +export * from './changeRequestScheduledQueryParamsSchemaFeature'; +export * from './changeRequestScheduledQueryParamsSchemaStrategyId'; +export * from './changeRequestScheduledQueryParamsSchemaVariantForFlag'; +export * from './changeRequestScheduledResultSchema'; export * from './changeRequestSchema'; export * from './changeRequestSchemaOneOf'; export * from './changeRequestSchemaOneOfCreatedBy'; @@ -317,6 +320,8 @@ export * from './createGroup409'; export * from './createGroupSchema'; export * from './createGroupSchemaUsersItem'; export * from './createGroupSchemaUsersItemUser'; +export * from './createIncomingWebhookSchema'; +export * from './createIncomingWebhookTokenSchema'; export * from './createInvitedUserSchema'; export * from './createPat401'; export * from './createPat403'; @@ -472,8 +477,9 @@ export * from './eventsSchema'; export * from './eventsSchemaVersion'; export * from './exportFeatures404'; export * from './exportQuerySchema'; -export * from './exportQuerySchemaOneOf'; -export * from './exportQuerySchemaOneOfTwo'; +export * from './exportQuerySchemaAnyOf'; +export * from './exportQuerySchemaAnyOfThree'; +export * from './exportQuerySchemaAnyOfTwo'; export * from './exportResultSchema'; export * from './exportResultSchemaSegmentsItem'; export * from './featureDependenciesSchema'; @@ -500,7 +506,9 @@ export * from './featureUsageSchema'; export * from './featureVariantsSchema'; export * from './featuresSchema'; export * from './feedbackCreateSchema'; +export * from './feedbackListSchema'; export * from './feedbackResponseSchema'; +export * from './feedbackSchema'; export * from './feedbackUpdateSchema'; export * from './getAccessOverview401'; export * from './getAccessOverview403'; @@ -623,6 +631,7 @@ export * from './getRoles403'; export * from './getSamlSettings400'; export * from './getSamlSettings401'; export * from './getSamlSettings403'; +export * from './getScheduledChangeRequests404'; export * from './getSegment404'; export * from './getServiceAccountTokens401'; export * from './getServiceAccountTokens403'; @@ -669,6 +678,10 @@ export * from './importToggles404'; export * from './importTogglesSchema'; export * from './importTogglesValidateItemSchema'; export * from './importTogglesValidateSchema'; +export * from './incomingWebhookSchema'; +export * from './incomingWebhookTokenSchema'; +export * from './incomingWebhookTokensSchema'; +export * from './incomingWebhooksSchema'; export * from './instanceAdminStatsSchema'; export * from './instanceAdminStatsSchemaActiveUsers'; export * from './instanceAdminStatsSchemaClientAppsItem'; @@ -783,6 +796,7 @@ export * from './projectSettingsSchemaMode'; export * from './projectStatsSchema'; export * from './projectUsersSchema'; export * from './projectsSchema'; +export * from './provideFeedbackSchema'; export * from './proxyClientSchema'; export * from './proxyClientSchemaStarted'; export * from './proxyFeatureSchema'; @@ -860,6 +874,7 @@ export * from './roleWithVersionSchema'; export * from './rolesWithVersionSchema'; export * from './samlSettingsSchema'; export * from './samlSettingsSchemaDefaultRootRole'; +export * from './scheduledChangeRequestViewModelSchema'; export * from './sdkContextSchema'; export * from './sdkContextSchemaProperties'; export * from './sdkFlatContextSchema'; @@ -873,6 +888,9 @@ export * from './searchFeaturesSchema'; export * from './searchUsers401'; export * from './searchUsersParams'; export * from './segmentSchema'; +export * from './segmentStrategiesSchema'; +export * from './segmentStrategiesSchemaChangeRequestStrategiesItem'; +export * from './segmentStrategiesSchemaStrategiesItem'; export * from './segmentsSchema'; export * from './sendResetPasswordEmail401'; export * from './sendResetPasswordEmail404'; diff --git a/frontend/src/openapi/models/provideFeedbackSchema.ts b/frontend/src/openapi/models/provideFeedbackSchema.ts new file mode 100644 index 000000000000..5106f05b39c7 --- /dev/null +++ b/frontend/src/openapi/models/provideFeedbackSchema.ts @@ -0,0 +1,21 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Schema representing the creation of feedback information. + */ +export interface ProvideFeedbackSchema { + /** Details aspects of the service or product that could benefit from enhancements or modifications. Aids in pinpointing areas needing attention for improvement. */ + areasForImprovement?: string; + /** The category of the feedback. */ + category: string; + /** A score indicating the difficulty experienced by the user. */ + difficultyScore?: number; + /** This field is for users to mention what they liked. */ + positive?: string; + /** The type of user providing the feedback. */ + userType?: string; +} diff --git a/frontend/src/openapi/models/scheduledChangeRequestViewModelSchema.ts b/frontend/src/openapi/models/scheduledChangeRequestViewModelSchema.ts new file mode 100644 index 000000000000..65975d25ebb9 --- /dev/null +++ b/frontend/src/openapi/models/scheduledChangeRequestViewModelSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A change request view model, used in the UI to identify change requests in conflict + */ +export interface ScheduledChangeRequestViewModelSchema { + /** The environment of the change request */ + environment: string; + /** The change request id */ + id: number; + /** The change request title */ + title?: string; +} diff --git a/frontend/src/openapi/models/searchEventsSchemaType.ts b/frontend/src/openapi/models/searchEventsSchemaType.ts index 93f121a35cbe..185e2282ea82 100644 --- a/frontend/src/openapi/models/searchEventsSchemaType.ts +++ b/frontend/src/openapi/models/searchEventsSchemaType.ts @@ -148,4 +148,11 @@ export const SearchEventsSchemaType = { 'project-environment-added': 'project-environment-added', 'project-environment-removed': 'project-environment-removed', 'default-strategy-updated': 'default-strategy-updated', + 'segment-import': 'segment-import', + 'incoming-webhook-created': 'incoming-webhook-created', + 'incoming-webhook-updated': 'incoming-webhook-updated', + 'incoming-webhook-deleted': 'incoming-webhook-deleted', + 'incoming-webhook-token-created': 'incoming-webhook-token-created', + 'incoming-webhook-token-updated': 'incoming-webhook-token-updated', + 'incoming-webhook-token-deleted': 'incoming-webhook-token-deleted', } as const; diff --git a/frontend/src/openapi/models/segmentStrategiesSchema.ts b/frontend/src/openapi/models/segmentStrategiesSchema.ts new file mode 100644 index 000000000000..aae9d051b590 --- /dev/null +++ b/frontend/src/openapi/models/segmentStrategiesSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SegmentStrategiesSchemaChangeRequestStrategiesItem } from './segmentStrategiesSchemaChangeRequestStrategiesItem'; +import type { SegmentStrategiesSchemaStrategiesItem } from './segmentStrategiesSchemaStrategiesItem'; + +/** + * A collection of strategies belonging to a specified segment. + */ +export interface SegmentStrategiesSchema { + /** A list of strategies that use this segment in active change requests. */ + changeRequestStrategies?: SegmentStrategiesSchemaChangeRequestStrategiesItem[]; + /** The list of strategies */ + strategies: SegmentStrategiesSchemaStrategiesItem[]; +} diff --git a/frontend/src/openapi/models/segmentStrategiesSchemaChangeRequestStrategiesItem.ts b/frontend/src/openapi/models/segmentStrategiesSchemaChangeRequestStrategiesItem.ts new file mode 100644 index 000000000000..ea156ff15ac8 --- /dev/null +++ b/frontend/src/openapi/models/segmentStrategiesSchemaChangeRequestStrategiesItem.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type SegmentStrategiesSchemaChangeRequestStrategiesItem = { + /** The ID of the environment that the strategy belongs to. */ + environment: string; + /** The name of the feature flag that this strategy belongs to. */ + featureName: string; + /** The ID of the strategy. Not present on new strategies that haven't been added to the feature flag yet. */ + id?: string; + /** The ID of the project that the strategy belongs to. */ + projectId: string; + /** The name of the strategy's type. */ + strategyName: string; +}; diff --git a/frontend/src/openapi/models/adminStrategiesSchemaStrategiesItem.ts b/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts similarity index 90% rename from frontend/src/openapi/models/adminStrategiesSchemaStrategiesItem.ts rename to frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts index d32044d6a720..f5bf9296bc6f 100644 --- a/frontend/src/openapi/models/adminStrategiesSchemaStrategiesItem.ts +++ b/frontend/src/openapi/models/segmentStrategiesSchemaStrategiesItem.ts @@ -4,7 +4,7 @@ * See `gen:api` script in package.json */ -export type AdminStrategiesSchemaStrategiesItem = { +export type SegmentStrategiesSchemaStrategiesItem = { /** The ID of the environment that the strategy belongs to. */ environment: string; /** The name of the feature flag that this strategy belongs to. */ diff --git a/frontend/src/openapi/models/userSchema.ts b/frontend/src/openapi/models/userSchema.ts index 408030dd0cae..257a3cf1a2cc 100644 --- a/frontend/src/openapi/models/userSchema.ts +++ b/frontend/src/openapi/models/userSchema.ts @@ -38,5 +38,5 @@ export interface UserSchema { /** The last time this user logged in */ seenAt?: string | null; /** A unique username for the user */ - username?: string; + username?: string | null; }