diff --git a/frontend/src/openapi/models/createReleasePlanMilestoneStrategySchema.ts b/frontend/src/openapi/models/createReleasePlanMilestoneStrategySchema.ts index 71518cfe3c..d57d2157ed 100644 --- a/frontend/src/openapi/models/createReleasePlanMilestoneStrategySchema.ts +++ b/frontend/src/openapi/models/createReleasePlanMilestoneStrategySchema.ts @@ -25,7 +25,7 @@ export interface CreateReleasePlanMilestoneStrategySchema { * A descriptive title for the strategy * @nullable */ - title: string | null; + title?: string | null; /** Strategy level variants */ variants?: CreateStrategyVariantSchema[]; } diff --git a/frontend/src/openapi/models/createUserResponseSchema.ts b/frontend/src/openapi/models/createUserResponseSchema.ts index 97b3651524..404413d4b3 100644 --- a/frontend/src/openapi/models/createUserResponseSchema.ts +++ b/frontend/src/openapi/models/createUserResponseSchema.ts @@ -11,8 +11,15 @@ import type { CreateUserResponseSchemaRootRole } from './createUserResponseSchem export interface CreateUserResponseSchema { /** A user is either an actual User or a Service Account */ accountType?: string; + /** + * Count of active browser sessions for this user + * @nullable + */ + activeSessions?: number | null; /** The user was created at this time */ createdAt?: string; + /** Experimental. The number of deleted browser sessions after last login */ + deletedSessions?: number; /** Email of the user */ email?: string; /** Is the welcome email sent to the user or not */ diff --git a/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts b/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts index a146c92ddb..362c5fc907 100644 --- a/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts +++ b/frontend/src/openapi/models/deprecatedSearchEventsSchemaType.ts @@ -165,5 +165,8 @@ export const DeprecatedSearchEventsSchemaType = { 'release-plan-template-created': 'release-plan-template-created', 'release-plan-template-updated': 'release-plan-template-updated', 'release-plan-template-deleted': 'release-plan-template-deleted', + 'release-plan-added': 'release-plan-added', + 'release-plan-removed': 'release-plan-removed', + 'release-plan-milestone-started': 'release-plan-milestone-started', 'user-preference-updated': 'user-preference-updated', } as const; diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts index 2bd61fc107..f796e8e728 100644 --- a/frontend/src/openapi/models/eventSchemaType.ts +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -165,5 +165,8 @@ export const EventSchemaType = { 'release-plan-template-created': 'release-plan-template-created', 'release-plan-template-updated': 'release-plan-template-updated', 'release-plan-template-deleted': 'release-plan-template-deleted', + 'release-plan-added': 'release-plan-added', + 'release-plan-removed': 'release-plan-removed', + 'release-plan-milestone-started': 'release-plan-milestone-started', 'user-preference-updated': 'user-preference-updated', } as const; diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 72d56823bb..6568c52edb 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -859,6 +859,9 @@ export * from './legalValueSchema'; export * from './licenseCheckSchema'; export * from './licenseReadSchema'; export * from './licenseUpdateSchema'; +export * from './licensedUserSchema'; +export * from './licensedUsersSchema'; +export * from './licensedUsersSchemaLicensedUsers'; export * from './listParentOptions401'; export * from './listParentOptions403'; export * from './listParentOptions404'; @@ -1030,6 +1033,7 @@ export * from './projectSettingsSchemaDefaultStickiness'; export * from './projectSettingsSchemaMode'; export * from './projectStatsSchema'; export * from './projectStatusSchema'; +export * from './projectStatusSchemaHealth'; export * from './projectStatusSchemaLifecycleSummary'; export * from './projectStatusSchemaLifecycleSummaryArchived'; export * from './projectStatusSchemaLifecycleSummaryCompleted'; @@ -1037,6 +1041,7 @@ export * from './projectStatusSchemaLifecycleSummaryInitial'; export * from './projectStatusSchemaLifecycleSummaryLive'; export * from './projectStatusSchemaLifecycleSummaryPreLive'; export * from './projectStatusSchemaResources'; +export * from './projectStatusSchemaStaleFlags'; export * from './projectUsersSchema'; export * from './projectsSchema'; export * from './provideFeedbackSchema'; @@ -1060,6 +1065,7 @@ export * from './releasePlanMilestoneSchema'; export * from './releasePlanMilestoneStrategySchema'; export * from './releasePlanSchema'; export * from './releasePlanSchemaDiscriminator'; +export * from './releasePlanTemplateIdSchema'; export * from './releasePlanTemplateSchema'; export * from './releasePlanTemplateSchemaDiscriminator'; export * from './remoteMilestoneStrategy401'; diff --git a/frontend/src/openapi/models/instanceAdminStatsSchema.ts b/frontend/src/openapi/models/instanceAdminStatsSchema.ts index 496f3ec372..8b2cbf05b8 100644 --- a/frontend/src/openapi/models/instanceAdminStatsSchema.ts +++ b/frontend/src/openapi/models/instanceAdminStatsSchema.ts @@ -51,6 +51,11 @@ export interface InstanceAdminStatsSchema { groups?: number; /** A unique identifier for this instance. Generated by the database migration scripts at first run. Typically a UUID. */ instanceId: string; + /** + * The number of users who had access to Unleash within the last 30 days, including those who may have been deleted during this period. + * @minimum 0 + */ + licensedUsers?: number; /** * The highest number of constraints used on a single strategy. * @minimum 0 diff --git a/frontend/src/openapi/models/licensedUserSchema.ts b/frontend/src/openapi/models/licensedUserSchema.ts new file mode 100644 index 0000000000..10d622a94c --- /dev/null +++ b/frontend/src/openapi/models/licensedUserSchema.ts @@ -0,0 +1,18 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A schema representing a single licensed user data point. + */ +export interface LicensedUserSchema { + /** + * The count of licensed users on the given date. + * @minimum 0 + */ + count: number; + /** The date associated with the licensed users count. */ + date: string; +} diff --git a/frontend/src/openapi/models/licensedUsersSchema.ts b/frontend/src/openapi/models/licensedUsersSchema.ts new file mode 100644 index 0000000000..18d60c6cab --- /dev/null +++ b/frontend/src/openapi/models/licensedUsersSchema.ts @@ -0,0 +1,19 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { LicensedUsersSchemaLicensedUsers } from './licensedUsersSchemaLicensedUsers'; + +/** + * A response model representing user license data. + */ +export interface LicensedUsersSchema { + /** An object containing historical and current licensed user data. */ + licensedUsers: LicensedUsersSchemaLicensedUsers; + /** + * The total number of licensed seats currently available for this Unleash instance. + * @minimum 0 + */ + seatCount: number; +} diff --git a/frontend/src/openapi/models/licensedUsersSchemaLicensedUsers.ts b/frontend/src/openapi/models/licensedUsersSchemaLicensedUsers.ts new file mode 100644 index 0000000000..79b219563e --- /dev/null +++ b/frontend/src/openapi/models/licensedUsersSchemaLicensedUsers.ts @@ -0,0 +1,19 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { LicensedUserSchema } from './licensedUserSchema'; + +/** + * An object containing historical and current licensed user data. + */ +export type LicensedUsersSchemaLicensedUsers = { + /** + * The current number of licenses in use. + * @minimum 0 + */ + current: number; + /** A monthly history of licensed user counts. */ + history: LicensedUserSchema[]; +}; diff --git a/frontend/src/openapi/models/projectStatusSchema.ts b/frontend/src/openapi/models/projectStatusSchema.ts index 851ca98543..e03724c21b 100644 --- a/frontend/src/openapi/models/projectStatusSchema.ts +++ b/frontend/src/openapi/models/projectStatusSchema.ts @@ -4,8 +4,10 @@ * See `gen:api` script in package.json */ import type { ProjectActivitySchema } from './projectActivitySchema'; +import type { ProjectStatusSchemaHealth } from './projectStatusSchemaHealth'; import type { ProjectStatusSchemaLifecycleSummary } from './projectStatusSchemaLifecycleSummary'; import type { ProjectStatusSchemaResources } from './projectStatusSchemaResources'; +import type { ProjectStatusSchemaStaleFlags } from './projectStatusSchemaStaleFlags'; /** * Schema representing the overall status of a project, including an array of activity records. Each record in the activity array contains a date and a count, providing a snapshot of the project’s activity level over time. @@ -13,20 +15,12 @@ import type { ProjectStatusSchemaResources } from './projectStatusSchemaResource export interface ProjectStatusSchema { /** Array of activity records with date and count, representing the project’s daily activity statistics. */ activityCountByDate: ProjectActivitySchema; - /** - * The average health score over the last 4 weeks, indicating whether features are stale or active. - * @minimum 0 - */ - health: { - current: number; - }; + /** Information about the project's health rating */ + health: ProjectStatusSchemaHealth; /** Feature flag lifecycle statistics for this project. */ lifecycleSummary: ProjectStatusSchemaLifecycleSummary; /** Key resources within the project */ resources: ProjectStatusSchemaResources; /** Information on stale and potentially stale flags in this project. */ - staleFlags: { - /** The total number of flags in this project that are stale or potentially stale. */ - total: number; - }; + staleFlags: ProjectStatusSchemaStaleFlags; } diff --git a/frontend/src/openapi/models/projectStatusSchemaHealth.ts b/frontend/src/openapi/models/projectStatusSchemaHealth.ts new file mode 100644 index 0000000000..543f0dd534 --- /dev/null +++ b/frontend/src/openapi/models/projectStatusSchemaHealth.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Information about the project's health rating + */ +export type ProjectStatusSchemaHealth = { + /** + * The project's current health score, based on the ratio of healthy flags to stale and potentially stale flags. + * @minimum 0 + */ + current: number; +}; diff --git a/frontend/src/openapi/models/projectStatusSchemaStaleFlags.ts b/frontend/src/openapi/models/projectStatusSchemaStaleFlags.ts new file mode 100644 index 0000000000..7f135905dd --- /dev/null +++ b/frontend/src/openapi/models/projectStatusSchemaStaleFlags.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Information on stale and potentially stale flags in this project. + */ +export type ProjectStatusSchemaStaleFlags = { + /** + * The total number of flags in this project that are stale or potentially stale. + * @minimum 0 + */ + total: number; +}; diff --git a/frontend/src/openapi/models/releasePlanTemplateIdSchema.ts b/frontend/src/openapi/models/releasePlanTemplateIdSchema.ts new file mode 100644 index 0000000000..13adc73c13 --- /dev/null +++ b/frontend/src/openapi/models/releasePlanTemplateIdSchema.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Schema for creating a release plan for a feature flag environment by copying and applying the configuration from a release plan template. + */ +export interface ReleasePlanTemplateIdSchema { + /** + * The release plan template's ID. Release template IDs are ulids. + */ + templateId: string; +}