From b7483e8989274d1ec116970d0287d99a44a3bafb Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:16:07 +0100 Subject: [PATCH] chore: generate frontend openapi types (#5988) Update for dashboard types --- frontend/src/openapi/models/actionSchema.ts | 24 +++++++++++++++++++ ...rams.ts => actionSchemaExecutionParams.ts} | 2 +- frontend/src/openapi/models/actionsSchema.ts | 12 +++++++--- .../src/openapi/models/actionsSchemaMatch.ts | 2 +- .../changeRequestScheduleSchemaOneOfFive.ts | 2 +- ...maActionsItem.ts => createActionSchema.ts} | 11 +++++---- ...s => createActionSchemaExecutionParams.ts} | 2 +- .../src/openapi/models/createActionsSchema.ts | 8 ++++--- .../models/createActionsSchemaActionsItem.ts | 15 ------------ .../models/createActionsSchemaMatch.ts | 2 +- .../src/openapi/models/eventSchemaType.ts | 4 +++- .../openapi/models/executiveSummarySchema.ts | 22 +++++++++++++++++ .../executiveSummarySchemaFlagsTrendsItem.ts | 16 +++++++++++++ .../models/executiveSummarySchemaUserStats.ts | 22 +++++++++++++++++ .../executiveSummarySchemaUserStatsRoles.ts | 17 +++++++++++++ .../executiveSummarySchemaUserTrendsItem.ts | 16 +++++++++++++ .../openapi/models/incomingWebhookSchema.ts | 3 +++ frontend/src/openapi/models/index.ts | 14 +++++++---- .../models/instanceAdminStatsSchema.ts | 3 +++ ...atsSchemaPreviousDayMetricsBucketsCount.ts | 15 ++++++++++++ .../src/openapi/models/oidcSettingsSchema.ts | 2 ++ .../src/openapi/models/samlSettingsSchema.ts | 2 ++ .../openapi/models/searchEventsSchemaType.ts | 4 +++- 23 files changed, 184 insertions(+), 36 deletions(-) create mode 100644 frontend/src/openapi/models/actionSchema.ts rename frontend/src/openapi/models/{actionsSchemaActionsItemParams.ts => actionSchemaExecutionParams.ts} (68%) rename frontend/src/openapi/models/{actionsSchemaActionsItem.ts => createActionSchema.ts} (56%) rename frontend/src/openapi/models/{createActionsSchemaActionsItemParams.ts => createActionSchemaExecutionParams.ts} (66%) delete mode 100644 frontend/src/openapi/models/createActionsSchemaActionsItem.ts create mode 100644 frontend/src/openapi/models/executiveSummarySchema.ts create mode 100644 frontend/src/openapi/models/executiveSummarySchemaFlagsTrendsItem.ts create mode 100644 frontend/src/openapi/models/executiveSummarySchemaUserStats.ts create mode 100644 frontend/src/openapi/models/executiveSummarySchemaUserStatsRoles.ts create mode 100644 frontend/src/openapi/models/executiveSummarySchemaUserTrendsItem.ts create mode 100644 frontend/src/openapi/models/instanceAdminStatsSchemaPreviousDayMetricsBucketsCount.ts diff --git a/frontend/src/openapi/models/actionSchema.ts b/frontend/src/openapi/models/actionSchema.ts new file mode 100644 index 00000000000..1489d48d448 --- /dev/null +++ b/frontend/src/openapi/models/actionSchema.ts @@ -0,0 +1,24 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ActionSchemaExecutionParams } from './actionSchemaExecutionParams'; + +/** + * Represents a single action response + */ +export interface ActionSchema { + /** The name of the action to execute */ + action: string; + /** The date and time of when the action was created. */ + createdAt: string; + /** The id of user that created this action set */ + createdByUserId: number; + /** A map of parameters to pass to the action */ + executionParams?: ActionSchemaExecutionParams; + /** The id of the action set */ + id: number; + /** The order in which the action should be executed */ + sortOrder: number; +} diff --git a/frontend/src/openapi/models/actionsSchemaActionsItemParams.ts b/frontend/src/openapi/models/actionSchemaExecutionParams.ts similarity index 68% rename from frontend/src/openapi/models/actionsSchemaActionsItemParams.ts rename to frontend/src/openapi/models/actionSchemaExecutionParams.ts index ab742c3d11d..1292b97481b 100644 --- a/frontend/src/openapi/models/actionsSchemaActionsItemParams.ts +++ b/frontend/src/openapi/models/actionSchemaExecutionParams.ts @@ -7,4 +7,4 @@ /** * A map of parameters to pass to the action */ -export type ActionsSchemaActionsItemParams = { [key: string]: any }; +export type ActionSchemaExecutionParams = { [key: string]: any }; diff --git a/frontend/src/openapi/models/actionsSchema.ts b/frontend/src/openapi/models/actionsSchema.ts index de58fe51544..43155306e1b 100644 --- a/frontend/src/openapi/models/actionsSchema.ts +++ b/frontend/src/openapi/models/actionsSchema.ts @@ -3,7 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ActionsSchemaActionsItem } from './actionsSchemaActionsItem'; +import type { ActionSchema } from './actionSchema'; import type { ActionsSchemaMatch } from './actionsSchemaMatch'; /** @@ -11,13 +11,19 @@ import type { ActionsSchemaMatch } from './actionsSchemaMatch'; */ export interface ActionsSchema { /** The list of actions to execute in sequential order when the action set is triggered */ - actions: ActionsSchemaActionsItem[]; + actions: ActionSchema[]; /** The id of the service account that will execute the action */ - actor: number; + 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 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 */ + project: string; } diff --git a/frontend/src/openapi/models/actionsSchemaMatch.ts b/frontend/src/openapi/models/actionsSchemaMatch.ts index 0c876a4c646..2a64c8951dc 100644 --- a/frontend/src/openapi/models/actionsSchemaMatch.ts +++ b/frontend/src/openapi/models/actionsSchemaMatch.ts @@ -14,5 +14,5 @@ export type ActionsSchemaMatch = { /** Match the source of the observable event */ source: string; /** Match the source id of the observable event */ - sourceId: string; + sourceId: number; }; diff --git a/frontend/src/openapi/models/changeRequestScheduleSchemaOneOfFive.ts b/frontend/src/openapi/models/changeRequestScheduleSchemaOneOfFive.ts index fb1474f3ac2..ba73d5b7eaa 100644 --- a/frontend/src/openapi/models/changeRequestScheduleSchemaOneOfFive.ts +++ b/frontend/src/openapi/models/changeRequestScheduleSchemaOneOfFive.ts @@ -9,7 +9,7 @@ import type { ChangeRequestScheduleSchemaOneOfFiveStatus } from './changeRequest * A suspended schedule for a change request. */ export type ChangeRequestScheduleSchemaOneOfFive = { - /** Why the scheduled was suspended. */ + /** Why the schedule was suspended. */ reason: string; /** When Unleash would have attempted to apply this change request if the schedule was not suspended. */ scheduledAt: string; diff --git a/frontend/src/openapi/models/actionsSchemaActionsItem.ts b/frontend/src/openapi/models/createActionSchema.ts similarity index 56% rename from frontend/src/openapi/models/actionsSchemaActionsItem.ts rename to frontend/src/openapi/models/createActionSchema.ts index 77cc74bf64b..56b54d99012 100644 --- a/frontend/src/openapi/models/actionsSchemaActionsItem.ts +++ b/frontend/src/openapi/models/createActionSchema.ts @@ -3,13 +3,16 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ActionsSchemaActionsItemParams } from './actionsSchemaActionsItemParams'; +import type { CreateActionSchemaExecutionParams } from './createActionSchemaExecutionParams'; -export type ActionsSchemaActionsItem = { +/** + * Represents a single action + */ +export interface CreateActionSchema { /** The name of the action to execute */ action: string; /** A map of parameters to pass to the action */ - params?: ActionsSchemaActionsItemParams; + executionParams?: CreateActionSchemaExecutionParams; /** The order in which the action should be executed */ sortOrder: number; -}; +} diff --git a/frontend/src/openapi/models/createActionsSchemaActionsItemParams.ts b/frontend/src/openapi/models/createActionSchemaExecutionParams.ts similarity index 66% rename from frontend/src/openapi/models/createActionsSchemaActionsItemParams.ts rename to frontend/src/openapi/models/createActionSchemaExecutionParams.ts index b3b4559ae2e..c6c7be55ffe 100644 --- a/frontend/src/openapi/models/createActionsSchemaActionsItemParams.ts +++ b/frontend/src/openapi/models/createActionSchemaExecutionParams.ts @@ -7,4 +7,4 @@ /** * A map of parameters to pass to the action */ -export type CreateActionsSchemaActionsItemParams = { [key: string]: any }; +export type CreateActionSchemaExecutionParams = { [key: string]: any }; diff --git a/frontend/src/openapi/models/createActionsSchema.ts b/frontend/src/openapi/models/createActionsSchema.ts index 761d5f1e572..41a07bdcdfd 100644 --- a/frontend/src/openapi/models/createActionsSchema.ts +++ b/frontend/src/openapi/models/createActionsSchema.ts @@ -3,7 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { CreateActionsSchemaActionsItem } from './createActionsSchemaActionsItem'; +import type { CreateActionSchema } from './createActionSchema'; import type { CreateActionsSchemaMatch } from './createActionsSchemaMatch'; /** @@ -11,11 +11,13 @@ import type { CreateActionsSchemaMatch } from './createActionsSchemaMatch'; */ export interface CreateActionsSchema { /** The list of actions to execute in sequential order when the action set is triggered */ - actions: CreateActionsSchemaActionsItem[]; + actions: CreateActionSchema[]; /** The id of the service account that will execute the action */ - actor: number; + actorId: number; /** Defines a matching rule for the observable event that will trigger the action set */ 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/createActionsSchemaActionsItem.ts b/frontend/src/openapi/models/createActionsSchemaActionsItem.ts deleted file mode 100644 index df8634e9c27..00000000000 --- a/frontend/src/openapi/models/createActionsSchemaActionsItem.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { CreateActionsSchemaActionsItemParams } from './createActionsSchemaActionsItemParams'; - -export type CreateActionsSchemaActionsItem = { - /** The name of the action to execute */ - action: string; - /** A map of parameters to pass to the action */ - params?: CreateActionsSchemaActionsItemParams; - /** The order in which the action should be executed */ - sortOrder: number; -}; diff --git a/frontend/src/openapi/models/createActionsSchemaMatch.ts b/frontend/src/openapi/models/createActionsSchemaMatch.ts index 65c0ea37e57..cef0662e8ec 100644 --- a/frontend/src/openapi/models/createActionsSchemaMatch.ts +++ b/frontend/src/openapi/models/createActionsSchemaMatch.ts @@ -14,5 +14,5 @@ export type CreateActionsSchemaMatch = { /** Match the source of the observable event */ source: string; /** Match the source id of the observable event */ - sourceId: string; + sourceId: number; }; diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts index 0ef5bc36f9a..b8633371e6a 100644 --- a/frontend/src/openapi/models/eventSchemaType.ts +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -117,7 +117,6 @@ export const EventSchemaType = { 'change-request-approval-added': 'change-request-approval-added', 'change-request-cancelled': 'change-request-cancelled', 'change-request-sent-to-review': 'change-request-sent-to-review', - 'scheduled-change-request-executed': 'scheduled-change-request-executed', 'change-request-schedule-suspended': 'change-request-schedule-suspended', 'change-request-applied': 'change-request-applied', 'change-request-scheduled': 'change-request-scheduled', @@ -156,4 +155,7 @@ export const EventSchemaType = { 'incoming-webhook-token-created': 'incoming-webhook-token-created', 'incoming-webhook-token-updated': 'incoming-webhook-token-updated', 'incoming-webhook-token-deleted': 'incoming-webhook-token-deleted', + 'actions-created': 'actions-created', + 'actions-updated': 'actions-updated', + 'actions-deleted': 'actions-deleted', } as const; diff --git a/frontend/src/openapi/models/executiveSummarySchema.ts b/frontend/src/openapi/models/executiveSummarySchema.ts new file mode 100644 index 00000000000..34de0c32a5a --- /dev/null +++ b/frontend/src/openapi/models/executiveSummarySchema.ts @@ -0,0 +1,22 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ExecutiveSummarySchemaFlagsTrendsItem } from './executiveSummarySchemaFlagsTrendsItem'; +import type { ExecutiveSummarySchemaUserStats } from './executiveSummarySchemaUserStats'; +import type { ExecutiveSummarySchemaUserTrendsItem } from './executiveSummarySchemaUserTrendsItem'; + +/** + * Executive summary of Unleash usage + */ +export interface ExecutiveSummarySchema { + /** How number of flags changed over time */ + flagsTrends: ExecutiveSummarySchemaFlagsTrendsItem[]; + /** The type of single-sign option configured for the Unleash instance */ + ssoType?: string; + /** High level user count statistics */ + userStats: ExecutiveSummarySchemaUserStats; + /** How number of users changed over time */ + userTrends: ExecutiveSummarySchemaUserTrendsItem[]; +} diff --git a/frontend/src/openapi/models/executiveSummarySchemaFlagsTrendsItem.ts b/frontend/src/openapi/models/executiveSummarySchemaFlagsTrendsItem.ts new file mode 100644 index 00000000000..c3755260111 --- /dev/null +++ b/frontend/src/openapi/models/executiveSummarySchemaFlagsTrendsItem.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ExecutiveSummarySchemaFlagsTrendsItem = { + /** The number of non-archived flags on a particular day */ + active: number; + /** The number of archived flags on a particular day */ + archived: number; + /** A UTC date when the stats were captured. Time is the very end of a given day. */ + date: string; + /** The number of all flags on a particular day */ + total: number; +}; diff --git a/frontend/src/openapi/models/executiveSummarySchemaUserStats.ts b/frontend/src/openapi/models/executiveSummarySchemaUserStats.ts new file mode 100644 index 00000000000..1f65dfdcef5 --- /dev/null +++ b/frontend/src/openapi/models/executiveSummarySchemaUserStats.ts @@ -0,0 +1,22 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { ExecutiveSummarySchemaUserStatsRoles } from './executiveSummarySchemaUserStatsRoles'; + +/** + * High level user count statistics + */ +export type ExecutiveSummarySchemaUserStats = { + /** The number of active Unleash users who have logged in in the past 90 days */ + active: number; + /** The number of inactive Unleash users who have not logged in in the past 90 days. */ + inactive: number; + /** The number of users licensed to use Unleash */ + licensed: number; + /** The number of users with a given [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) */ + roles: ExecutiveSummarySchemaUserStatsRoles; + /** The number of actual Unleash users */ + total: number; +}; diff --git a/frontend/src/openapi/models/executiveSummarySchemaUserStatsRoles.ts b/frontend/src/openapi/models/executiveSummarySchemaUserStatsRoles.ts new file mode 100644 index 00000000000..67f0bd17c0c --- /dev/null +++ b/frontend/src/openapi/models/executiveSummarySchemaUserStatsRoles.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The number of users with a given [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) + */ +export type ExecutiveSummarySchemaUserStatsRoles = { + /** The number of users with the `admin` root role */ + admin: number; + /** The number of users with the `editor` root role */ + editor: number; + /** The number of users with the `viewer` root role */ + viewer: number; +}; diff --git a/frontend/src/openapi/models/executiveSummarySchemaUserTrendsItem.ts b/frontend/src/openapi/models/executiveSummarySchemaUserTrendsItem.ts new file mode 100644 index 00000000000..bc562bda808 --- /dev/null +++ b/frontend/src/openapi/models/executiveSummarySchemaUserTrendsItem.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type ExecutiveSummarySchemaUserTrendsItem = { + /** The number of active Unleash users on a particular day */ + active: number; + /** A UTC date when the stats were captured. Time is the very end of a given day. */ + date: string; + /** The number of inactive Unleash users on a particular day */ + inactive: number; + /** The number of actual Unleash users on a particular day */ + total: number; +}; diff --git a/frontend/src/openapi/models/incomingWebhookSchema.ts b/frontend/src/openapi/models/incomingWebhookSchema.ts index 21d64859bae..e78feee0c89 100644 --- a/frontend/src/openapi/models/incomingWebhookSchema.ts +++ b/frontend/src/openapi/models/incomingWebhookSchema.ts @@ -3,6 +3,7 @@ * Do not edit manually. * See `gen:api` script in package.json */ +import type { IncomingWebhookTokenSchema } from './incomingWebhookTokenSchema'; /** * An object describing an incoming webhook. @@ -20,6 +21,8 @@ export interface IncomingWebhookSchema { id: number; /** The incoming webhook name. Must be URL-safe. */ name: string; + /** The list of tokens associated with the incoming webhook. */ + tokens?: IncomingWebhookTokenSchema[]; /** The full URL that should be used to call the incoming webhook. This property is only returned for newly created or updated incoming webhooks. */ url?: string; } diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index e5aea6ffab9..7449137a170 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -7,10 +7,10 @@ export * from './_exportFormat'; export * from './_exportParams'; export * from './accessOverviewSchema'; +export * from './actionSchema'; +export * from './actionSchemaExecutionParams'; export * from './actionsListSchema'; export * from './actionsSchema'; -export * from './actionsSchemaActionsItem'; -export * from './actionsSchemaActionsItemParams'; export * from './actionsSchemaMatch'; export * from './actionsSchemaMatchPayload'; export * from './addAccessToProject400'; @@ -290,9 +290,9 @@ export * from './contextFieldSchema'; export * from './contextFieldStrategiesSchema'; export * from './contextFieldStrategiesSchemaStrategiesItem'; export * from './contextFieldsSchema'; +export * from './createActionSchema'; +export * from './createActionSchemaExecutionParams'; export * from './createActionsSchema'; -export * from './createActionsSchemaActionsItem'; -export * from './createActionsSchemaActionsItemParams'; export * from './createActionsSchemaMatch'; export * from './createActionsSchemaMatchPayload'; export * from './createAddon400'; @@ -494,6 +494,11 @@ export * from './eventSchemaPreData'; export * from './eventSchemaType'; export * from './eventsSchema'; export * from './eventsSchemaVersion'; +export * from './executiveSummarySchema'; +export * from './executiveSummarySchemaFlagsTrendsItem'; +export * from './executiveSummarySchemaUserStats'; +export * from './executiveSummarySchemaUserStatsRoles'; +export * from './executiveSummarySchemaUserTrendsItem'; export * from './exportFeatures404'; export * from './exportQuerySchema'; export * from './exportQuerySchemaAnyOf'; @@ -705,6 +710,7 @@ export * from './instanceAdminStatsSchema'; export * from './instanceAdminStatsSchemaActiveUsers'; export * from './instanceAdminStatsSchemaClientAppsItem'; export * from './instanceAdminStatsSchemaClientAppsItemRange'; +export * from './instanceAdminStatsSchemaPreviousDayMetricsBucketsCount'; export * from './instanceAdminStatsSchemaProductionChanges'; export * from './invoicesSchema'; export * from './invoicesSchemaItem'; diff --git a/frontend/src/openapi/models/instanceAdminStatsSchema.ts b/frontend/src/openapi/models/instanceAdminStatsSchema.ts index c4c5068b3fb..5cf50346e64 100644 --- a/frontend/src/openapi/models/instanceAdminStatsSchema.ts +++ b/frontend/src/openapi/models/instanceAdminStatsSchema.ts @@ -5,6 +5,7 @@ */ import type { InstanceAdminStatsSchemaActiveUsers } from './instanceAdminStatsSchemaActiveUsers'; import type { InstanceAdminStatsSchemaClientAppsItem } from './instanceAdminStatsSchemaClientAppsItem'; +import type { InstanceAdminStatsSchemaPreviousDayMetricsBucketsCount } from './instanceAdminStatsSchemaPreviousDayMetricsBucketsCount'; import type { InstanceAdminStatsSchemaProductionChanges } from './instanceAdminStatsSchemaProductionChanges'; /** @@ -31,6 +32,8 @@ export interface InstanceAdminStatsSchema { instanceId: string; /** Whether or not OIDC authentication is enabled for this instance */ OIDCenabled?: boolean; + /** The number client metrics buckets records recorded in the previous day. # features * # apps * # envs * # hours with metrics */ + previousDayMetricsBucketsCount?: InstanceAdminStatsSchemaPreviousDayMetricsBucketsCount; /** The number of changes to the production environment in the last 30, 60 and 90 days */ productionChanges?: InstanceAdminStatsSchemaProductionChanges; /** The number of projects defined in this instance. */ diff --git a/frontend/src/openapi/models/instanceAdminStatsSchemaPreviousDayMetricsBucketsCount.ts b/frontend/src/openapi/models/instanceAdminStatsSchemaPreviousDayMetricsBucketsCount.ts new file mode 100644 index 00000000000..1034882a496 --- /dev/null +++ b/frontend/src/openapi/models/instanceAdminStatsSchemaPreviousDayMetricsBucketsCount.ts @@ -0,0 +1,15 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The number client metrics buckets records recorded in the previous day. # features * # apps * # envs * # hours with metrics + */ +export type InstanceAdminStatsSchemaPreviousDayMetricsBucketsCount = { + /** The number of enabled/disabled metrics buckets recorded in the previous day */ + enabledCount?: number; + /** The number of variant metrics buckets recorded in the previous day */ + variantCount?: number; +}; diff --git a/frontend/src/openapi/models/oidcSettingsSchema.ts b/frontend/src/openapi/models/oidcSettingsSchema.ts index a2645b25125..7b0c7cc3a66 100644 --- a/frontend/src/openapi/models/oidcSettingsSchema.ts +++ b/frontend/src/openapi/models/oidcSettingsSchema.ts @@ -20,6 +20,8 @@ export interface OidcSettingsSchema { clientId: string; /** [Default role](https://docs.getunleash.io/reference/rbac#standard-roles) granted to users auto-created from email. Only relevant if autoCreate is `true` */ defaultRootRole?: OidcSettingsSchemaDefaultRootRole; + /** Assign this root role to auto created users. Should be a role ID and takes precedence over `defaultRootRole`. */ + defaultRootRoleId?: number; /** The [.well-known OpenID discover URL](https://swagger.io/docs/specification/authentication/openid-connect-discovery/) */ discoverUrl?: string; /** Comma separated list of email domains that are automatically approved for an account in the server. Only relevant if autoCreate is `true` */ diff --git a/frontend/src/openapi/models/samlSettingsSchema.ts b/frontend/src/openapi/models/samlSettingsSchema.ts index acbe05ed1db..66aa1267820 100644 --- a/frontend/src/openapi/models/samlSettingsSchema.ts +++ b/frontend/src/openapi/models/samlSettingsSchema.ts @@ -15,6 +15,8 @@ export interface SamlSettingsSchema { certificate: string; /** Assign this root role to auto created users */ defaultRootRole?: SamlSettingsSchemaDefaultRootRole; + /** Assign this root role to auto created users. Should be a role ID and takes precedence over `defaultRootRole`. */ + defaultRootRoleId?: number; /** A comma separated list of email domains that Unleash will auto create user accounts for. */ emailDomains?: string; /** Is SAML authentication enabled */ diff --git a/frontend/src/openapi/models/searchEventsSchemaType.ts b/frontend/src/openapi/models/searchEventsSchemaType.ts index f7a91924e57..2a357be711f 100644 --- a/frontend/src/openapi/models/searchEventsSchemaType.ts +++ b/frontend/src/openapi/models/searchEventsSchemaType.ts @@ -117,7 +117,6 @@ export const SearchEventsSchemaType = { 'change-request-approval-added': 'change-request-approval-added', 'change-request-cancelled': 'change-request-cancelled', 'change-request-sent-to-review': 'change-request-sent-to-review', - 'scheduled-change-request-executed': 'scheduled-change-request-executed', 'change-request-schedule-suspended': 'change-request-schedule-suspended', 'change-request-applied': 'change-request-applied', 'change-request-scheduled': 'change-request-scheduled', @@ -156,4 +155,7 @@ export const SearchEventsSchemaType = { 'incoming-webhook-token-created': 'incoming-webhook-token-created', 'incoming-webhook-token-updated': 'incoming-webhook-token-updated', 'incoming-webhook-token-deleted': 'incoming-webhook-token-deleted', + 'actions-created': 'actions-created', + 'actions-updated': 'actions-updated', + 'actions-deleted': 'actions-deleted', } as const;