diff --git a/frontend/src/openapi/models/actionsSchema.ts b/frontend/src/openapi/models/actionsSchema.ts index b5c9de16a5..f9ed62a633 100644 --- a/frontend/src/openapi/models/actionsSchema.ts +++ b/frontend/src/openapi/models/actionsSchema.ts @@ -10,22 +10,22 @@ import type { ActionsSchemaMatch } from './actionsSchemaMatch'; * A response model with an identifiable action set. */ export interface ActionsSchema { - /** The list of actions to execute in sequential order when the action set is triggered */ + /** The list of actions to execute in sequential order when the action set is triggered. */ actions: ActionSchema[]; /** The id of the service account that will execute the action */ actorId: number; - /** The date and time of when the action was created. */ - createdAt?: string; - /** The id of user that created this action set */ - createdByUserId?: number; + /** The date and time of when the action set was created. */ + createdAt: string; + /** The ID of the user that created this action set. */ + createdByUserId: number; /** Whether this action set is enabled or not */ enabled?: boolean; - /** The id of the action set */ + /** The ID of the action set. */ id: number; /** Defines a matching rule for the observable event that will trigger the action set */ match: ActionsSchemaMatch; /** The name of the action set */ name: string; - /** The project of the action set is added to */ + /** The project that this action set belongs to. */ project: string; } diff --git a/frontend/src/openapi/models/createActionsSchema.ts b/frontend/src/openapi/models/createActionsSchema.ts index e2829c9250..6c0432a28c 100644 --- a/frontend/src/openapi/models/createActionsSchema.ts +++ b/frontend/src/openapi/models/createActionsSchema.ts @@ -20,6 +20,4 @@ export interface CreateActionsSchema { match: CreateActionsSchemaMatch; /** The name of the action set */ name: string; - /** The project of the action set is added to */ - project: string; } diff --git a/frontend/src/openapi/models/createPatSchema.ts b/frontend/src/openapi/models/createPatSchema.ts new file mode 100644 index 0000000000..fb9df4d918 --- /dev/null +++ b/frontend/src/openapi/models/createPatSchema.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 a [personal access token](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens), or PAT. PATs are automatically scoped to the authenticated user. + */ +export interface CreatePatSchema { + /** The PAT's description. */ + description: string; + /** The PAT's expiration date. */ + expiresAt: string; +} diff --git a/frontend/src/openapi/models/deleteInactiveUsers400.ts b/frontend/src/openapi/models/deleteInactiveUsers400.ts new file mode 100644 index 0000000000..d08d6d8a98 --- /dev/null +++ b/frontend/src/openapi/models/deleteInactiveUsers400.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteInactiveUsers400 = { + /** 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/deleteInactiveUsers401.ts b/frontend/src/openapi/models/deleteInactiveUsers401.ts new file mode 100644 index 0000000000..d98728988c --- /dev/null +++ b/frontend/src/openapi/models/deleteInactiveUsers401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteInactiveUsers401 = { + /** 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/deleteInactiveUsers403.ts b/frontend/src/openapi/models/deleteInactiveUsers403.ts new file mode 100644 index 0000000000..173e9eafdc --- /dev/null +++ b/frontend/src/openapi/models/deleteInactiveUsers403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type DeleteInactiveUsers403 = { + /** 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/executiveSummarySchemaProjectFlagTrendsItem.ts b/frontend/src/openapi/models/executiveSummarySchemaProjectFlagTrendsItem.ts index 75fde6c2fe..8a8e0016c3 100644 --- a/frontend/src/openapi/models/executiveSummarySchemaProjectFlagTrendsItem.ts +++ b/frontend/src/openapi/models/executiveSummarySchemaProjectFlagTrendsItem.ts @@ -21,4 +21,6 @@ export type ExecutiveSummarySchemaProjectFlagTrendsItem = { timeToProduction?: number; /** The number of all flags on a particular day */ total: number; + /** Year and week in a given year for which the stats were calculated */ + week: string; }; diff --git a/frontend/src/openapi/models/getProjectApplications401.ts b/frontend/src/openapi/models/getProjectApplications401.ts new file mode 100644 index 0000000000..73b4d270ee --- /dev/null +++ b/frontend/src/openapi/models/getProjectApplications401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectApplications401 = { + /** 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/getProjectApplications403.ts b/frontend/src/openapi/models/getProjectApplications403.ts new file mode 100644 index 0000000000..1e471f3efd --- /dev/null +++ b/frontend/src/openapi/models/getProjectApplications403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectApplications403 = { + /** 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/getProjectApplications404.ts b/frontend/src/openapi/models/getProjectApplications404.ts new file mode 100644 index 0000000000..ac8af415aa --- /dev/null +++ b/frontend/src/openapi/models/getProjectApplications404.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetProjectApplications404 = { + /** 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/idsSchema.ts b/frontend/src/openapi/models/idsSchema.ts new file mode 100644 index 0000000000..71a31028f6 --- /dev/null +++ b/frontend/src/openapi/models/idsSchema.ts @@ -0,0 +1,13 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Used for bulk deleting multiple ids + */ +export interface IdsSchema { + /** Ids, for instance userid */ + ids: number[]; +} diff --git a/frontend/src/openapi/models/inactiveUserSchema.ts b/frontend/src/openapi/models/inactiveUserSchema.ts new file mode 100644 index 0000000000..4fc1a6db9e --- /dev/null +++ b/frontend/src/openapi/models/inactiveUserSchema.ts @@ -0,0 +1,25 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A Unleash user that has been flagged as inactive + */ +export interface InactiveUserSchema { + /** The user was created at this time */ + createdAt?: string; + /** Email of the user */ + email?: string; + /** The user id */ + id: number; + /** Name of the user */ + name?: string | null; + /** The last time this user's PAT token (if any) was used */ + patSeenAt?: string | null; + /** The last time this user logged in */ + seenAt?: string | null; + /** A unique username for the user */ + username?: string | null; +} diff --git a/frontend/src/openapi/models/inactiveUsersSchema.ts b/frontend/src/openapi/models/inactiveUsersSchema.ts new file mode 100644 index 0000000000..8576429a3c --- /dev/null +++ b/frontend/src/openapi/models/inactiveUsersSchema.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { InactiveUserSchema } from './inactiveUserSchema'; + +/** + * A list of users that has been flagged as inactive + */ +export interface InactiveUsersSchema { + /** The list of users that are flagged as inactive */ + inactiveUsers: InactiveUserSchema[]; + /** The version of this schema. Used to keep track of compatibility */ + version: number; +} diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 55b9ed1edf..2651db6b59 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -345,6 +345,7 @@ export * from './createInvitedUserSchema'; export * from './createPat401'; export * from './createPat403'; export * from './createPat404'; +export * from './createPatSchema'; export * from './createProject400'; export * from './createProject401'; export * from './createProject403'; @@ -441,6 +442,9 @@ export * from './deleteFeatures403'; export * from './deleteGroup400'; export * from './deleteGroup401'; export * from './deleteGroup403'; +export * from './deleteInactiveUsers400'; +export * from './deleteInactiveUsers401'; +export * from './deleteInactiveUsers403'; export * from './deletePat401'; export * from './deletePat403'; export * from './deletePat404'; @@ -625,6 +629,9 @@ export * from './getProjectAccess403'; export * from './getProjectApiTokens401'; export * from './getProjectApiTokens403'; export * from './getProjectApiTokens404'; +export * from './getProjectApplications401'; +export * from './getProjectApplications403'; +export * from './getProjectApplications404'; export * from './getProjectDora401'; export * from './getProjectDora403'; export * from './getProjectDora404'; @@ -699,10 +706,13 @@ export * from './healthOverviewSchemaMode'; export * from './healthReportSchema'; export * from './healthReportSchemaMode'; export * from './idSchema'; +export * from './idsSchema'; export * from './importToggles404'; export * from './importTogglesSchema'; export * from './importTogglesValidateItemSchema'; export * from './importTogglesValidateSchema'; +export * from './inactiveUserSchema'; +export * from './inactiveUsersSchema'; export * from './incomingWebhookSchema'; export * from './incomingWebhookTokenSchema'; export * from './incomingWebhookTokensSchema'; @@ -813,6 +823,9 @@ export * from './projectAddAccessSchema'; export * from './projectAddRoleAccessSchema'; export * from './projectAddRoleAccessSchemaGroupsItem'; export * from './projectAddRoleAccessSchemaUsersItem'; +export * from './projectApplicationSchema'; +export * from './projectApplicationSdkSchema'; +export * from './projectApplicationsSchema'; export * from './projectCreatedSchema'; export * from './projectCreatedSchemaMode'; export * from './projectDoraMetricsSchema'; @@ -845,6 +858,7 @@ export * from './pushVariantsSchema'; export * from './reactivateStrategy401'; export * from './reactivateStrategy403'; export * from './reactivateStrategy404'; +export * from './recordUiErrorSchema'; export * from './registerClientMetrics400'; export * from './registerFrontendClient400'; export * from './registerFrontendClient401'; @@ -1007,6 +1021,8 @@ export * from './uiConfigSchema'; export * from './uiConfigSchemaAuthenticationType'; export * from './uiConfigSchemaFlags'; export * from './uiConfigSchemaLinksItem'; +export * from './uiObservability401'; +export * from './uiObservability403'; export * from './updateAddon400'; export * from './updateAddon401'; export * from './updateAddon403'; diff --git a/frontend/src/openapi/models/patSchema.ts b/frontend/src/openapi/models/patSchema.ts index ab99389f57..9f0df19e97 100644 --- a/frontend/src/openapi/models/patSchema.ts +++ b/frontend/src/openapi/models/patSchema.ts @@ -5,17 +5,21 @@ */ /** - * An overview of a [Personal Access Token](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens). + * Describes a [personal access token](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens), or PAT. PATs are automatically scoped to the authenticated user. */ export interface PatSchema { - /** When the token was created. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ - createdAt?: string; - /** The token's expiration date. */ - expiresAt?: string; - /** The unique identification number for this Personal Access Token. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ - id?: number; - /** The token used for authentication. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ + /** The date and time of when the PAT was created. */ + createdAt: string; + /** The PAT's description. */ + description: string; + /** The PAT's expiration date. */ + expiresAt: string; + /** The PAT's ID. PAT IDs are incrementing integers. In other words, a more recently created PAT will always have a higher ID than an older one. */ + id: number; + /** The token used for authentication. It is automatically generated by Unleash when the PAT is created and that is the only time this property is returned. */ secret?: string; - /** When the token was last seen/used to authenticate with. `null` if it has not been used yet. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ + /** When the PAT was last seen/used to authenticate with. `null` if it has not been used yet. */ seenAt?: string | null; + /** The ID of the user this PAT belongs to. */ + userId?: number; } diff --git a/frontend/src/openapi/models/patsSchema.ts b/frontend/src/openapi/models/patsSchema.ts index 54e7588a03..d5d5b03b70 100644 --- a/frontend/src/openapi/models/patsSchema.ts +++ b/frontend/src/openapi/models/patsSchema.ts @@ -6,9 +6,9 @@ import type { PatSchema } from './patSchema'; /** - * Contains a collection of [Personal Access Tokens](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens). + * Contains a collection of [personal access tokens](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens), or PATs. PATs are automatically scoped to the authenticated user. */ export interface PatsSchema { - /** A collection of Personal Access Tokens */ + /** A collection of PATs. */ pats?: PatSchema[]; } diff --git a/frontend/src/openapi/models/projectApplicationSchema.ts b/frontend/src/openapi/models/projectApplicationSchema.ts new file mode 100644 index 0000000000..6d06e5e273 --- /dev/null +++ b/frontend/src/openapi/models/projectApplicationSchema.ts @@ -0,0 +1,20 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ProjectApplicationSdkSchema } from './projectApplicationSdkSchema'; + +/** + * A project application instance. + */ +export interface ProjectApplicationSchema { + /** The environments that the application is using. This is the same as the environment in the SDK configuration. */ + environments: string[]; + /** The instances of the application that are using the SDK. */ + instances: string[]; + /** Name of the application that is using the SDK. This is the same as the appName in the SDK configuration. */ + name: string; + /** The SDKs that the application is using. */ + sdks: ProjectApplicationSdkSchema[]; +} diff --git a/frontend/src/openapi/models/projectApplicationSdkSchema.ts b/frontend/src/openapi/models/projectApplicationSdkSchema.ts new file mode 100644 index 0000000000..b54008c282 --- /dev/null +++ b/frontend/src/openapi/models/projectApplicationSdkSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A project application instance SDK. + */ +export interface ProjectApplicationSdkSchema { + /** Name of the SDK package that the application is using. */ + name: string; + /** The versions of the SDK that the application is using. */ + versions: string[]; +} diff --git a/frontend/src/openapi/models/projectApplicationsSchema.ts b/frontend/src/openapi/models/projectApplicationsSchema.ts new file mode 100644 index 0000000000..673c4ed4e7 --- /dev/null +++ b/frontend/src/openapi/models/projectApplicationsSchema.ts @@ -0,0 +1,11 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ProjectApplicationSchema } from './projectApplicationSchema'; + +/** + * A list of project applications + */ +export type ProjectApplicationsSchema = ProjectApplicationSchema[]; diff --git a/frontend/src/openapi/models/projectSchema.ts b/frontend/src/openapi/models/projectSchema.ts index 86fe979673..dc69385c3c 100644 --- a/frontend/src/openapi/models/projectSchema.ts +++ b/frontend/src/openapi/models/projectSchema.ts @@ -9,6 +9,8 @@ import type { ProjectSchemaMode } from './projectSchemaMode'; * A definition of the project used for projects listing purposes */ export interface ProjectSchema { + /** The average time from when a feature was created to when it was enabled in the "production" environment during the current window */ + avgTimeToProduction?: number; /** When this project was created. */ createdAt?: string; /** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */ diff --git a/frontend/src/openapi/models/recordUiErrorSchema.ts b/frontend/src/openapi/models/recordUiErrorSchema.ts new file mode 100644 index 0000000000..9ad942af36 --- /dev/null +++ b/frontend/src/openapi/models/recordUiErrorSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * An object representing an error from the UI + */ +export interface RecordUiErrorSchema { + /** The error message */ + errorMessage: string; + /** The stack trace of the error */ + errorStack?: string; +} diff --git a/frontend/src/openapi/models/uiObservability401.ts b/frontend/src/openapi/models/uiObservability401.ts new file mode 100644 index 0000000000..c655c634e0 --- /dev/null +++ b/frontend/src/openapi/models/uiObservability401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UiObservability401 = { + /** 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/uiObservability403.ts b/frontend/src/openapi/models/uiObservability403.ts new file mode 100644 index 0000000000..4f9f2f7991 --- /dev/null +++ b/frontend/src/openapi/models/uiObservability403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type UiObservability403 = { + /** The ID of the error instance */ + id?: string; + /** A description of what went wrong. */ + message?: string; + /** The name of the error kind */ + name?: string; +};