From faf2153423c354149e8f114d60f97a27cbabfebb Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 12 Mar 2024 10:28:52 +0100 Subject: [PATCH] chore: generate orval after frontend api refactor (#6512) --- .../openapi/models/actionSetEventSchema.ts | 10 ++-- .../models/actionSetEventSchemaActionSet.ts | 4 +- .../actionSetEventSchemaActionSetMatch.ts | 11 ++-- ...tionSetEventSchemaActionSetMatchPayload.ts | 2 +- ...ctionSetEventSchemaActionSetMatchSource.ts | 16 ++++++ frontend/src/openapi/models/actionsSchema.ts | 4 +- .../src/openapi/models/actionsSchemaMatch.ts | 11 ++-- .../models/actionsSchemaMatchPayload.ts | 2 +- .../models/actionsSchemaMatchSource.ts | 16 ++++++ .../src/openapi/models/createActionsSchema.ts | 6 ++- .../models/createActionsSchemaMatch.ts | 11 ++-- .../models/createActionsSchemaMatchPayload.ts | 2 +- .../models/createActionsSchemaMatchSource.ts | 16 ++++++ .../models/createIncomingWebhookSchema.ts | 17 ------ .../createIncomingWebhookTokenSchema.ts | 13 ----- .../models/createSignalEndpointSchema.ts | 17 ++++++ .../models/createSignalEndpointTokenSchema.ts | 13 +++++ .../src/openapi/models/eventSchemaType.ts | 12 ++--- ...ntSchema.ts => frontendApiClientSchema.ts} | 6 +-- ...d.ts => frontendApiClientSchemaStarted.ts} | 2 +- ...eSchema.ts => frontendApiFeatureSchema.ts} | 6 +-- ....ts => frontendApiFeatureSchemaVariant.ts} | 6 +-- ...frontendApiFeatureSchemaVariantPayload.ts} | 6 +-- ...tendApiFeatureSchemaVariantPayloadType.ts} | 6 +-- ...Schema.ts => frontendApiFeaturesSchema.ts} | 6 +-- .../models/getServiceAccountPermissions401.ts | 14 +++++ .../models/getServiceAccountPermissions403.ts | 14 +++++ .../models/getServiceAccountPermissions415.ts | 14 +++++ .../getServiceAccountPermissionsParams.ts | 10 ++++ .../models/incomingWebhookEventSchema.ts | 25 --------- .../incomingWebhookEventSchemaSource.ts | 16 ------ .../models/incomingWebhookEventsSchema.ts | 14 ----- .../openapi/models/incomingWebhookSchema.ts | 28 ---------- .../models/incomingWebhookTokenSchema.ts | 23 -------- .../models/incomingWebhookTokensSchema.ts | 14 ----- .../openapi/models/incomingWebhooksSchema.ts | 14 ----- frontend/src/openapi/models/index.ts | 52 +++++++++++-------- .../openapi/models/observableEventSchema.ts | 25 --------- .../models/observableEventSchemaPayload.ts | 10 ---- .../models/observableEventSchemaSource.ts | 16 ------ .../openapi/models/observableEventsSchema.ts | 14 ----- .../openapi/models/resourceLimitsSchema.ts | 27 ++++++++++ .../openapi/models/searchEventsSchemaType.ts | 12 ++--- .../openapi/models/signalEndpointSchema.ts | 28 ++++++++++ .../models/signalEndpointSignalSchema.ts | 25 +++++++++ ...s => signalEndpointSignalSchemaPayload.ts} | 4 +- .../signalEndpointSignalSchemaSource.ts | 16 ++++++ .../models/signalEndpointSignalsSchema.ts | 14 +++++ .../models/signalEndpointTokenSchema.ts | 23 ++++++++ .../models/signalEndpointTokensSchema.ts | 14 +++++ .../openapi/models/signalEndpointsSchema.ts | 14 +++++ frontend/src/openapi/models/signalSchema.ts | 25 +++++++++ .../src/openapi/models/signalSchemaPayload.ts | 10 ++++ .../src/openapi/models/signalSchemaSource.ts | 16 ++++++ frontend/src/openapi/models/signalsSchema.ts | 14 +++++ frontend/src/openapi/models/uiConfigSchema.ts | 13 ++++- 56 files changed, 466 insertions(+), 313 deletions(-) create mode 100644 frontend/src/openapi/models/actionSetEventSchemaActionSetMatchSource.ts create mode 100644 frontend/src/openapi/models/actionsSchemaMatchSource.ts create mode 100644 frontend/src/openapi/models/createActionsSchemaMatchSource.ts delete mode 100644 frontend/src/openapi/models/createIncomingWebhookSchema.ts delete mode 100644 frontend/src/openapi/models/createIncomingWebhookTokenSchema.ts create mode 100644 frontend/src/openapi/models/createSignalEndpointSchema.ts create mode 100644 frontend/src/openapi/models/createSignalEndpointTokenSchema.ts rename frontend/src/openapi/models/{proxyClientSchema.ts => frontendApiClientSchema.ts} (81%) rename frontend/src/openapi/models/{proxyClientSchemaStarted.ts => frontendApiClientSchemaStarted.ts} (73%) rename frontend/src/openapi/models/{proxyFeatureSchema.ts => frontendApiFeatureSchema.ts} (68%) rename frontend/src/openapi/models/{proxyFeatureSchemaVariant.ts => frontendApiFeatureSchemaVariant.ts} (71%) rename frontend/src/openapi/models/{proxyFeatureSchemaVariantPayload.ts => frontendApiFeatureSchemaVariantPayload.ts} (52%) rename frontend/src/openapi/models/{proxyFeatureSchemaVariantPayloadType.ts => frontendApiFeatureSchemaVariantPayloadType.ts} (55%) rename frontend/src/openapi/models/{proxyFeaturesSchema.ts => frontendApiFeaturesSchema.ts} (54%) create mode 100644 frontend/src/openapi/models/getServiceAccountPermissions401.ts create mode 100644 frontend/src/openapi/models/getServiceAccountPermissions403.ts create mode 100644 frontend/src/openapi/models/getServiceAccountPermissions415.ts create mode 100644 frontend/src/openapi/models/getServiceAccountPermissionsParams.ts delete mode 100644 frontend/src/openapi/models/incomingWebhookEventSchema.ts delete mode 100644 frontend/src/openapi/models/incomingWebhookEventSchemaSource.ts delete mode 100644 frontend/src/openapi/models/incomingWebhookEventsSchema.ts delete mode 100644 frontend/src/openapi/models/incomingWebhookSchema.ts delete mode 100644 frontend/src/openapi/models/incomingWebhookTokenSchema.ts delete mode 100644 frontend/src/openapi/models/incomingWebhookTokensSchema.ts delete mode 100644 frontend/src/openapi/models/incomingWebhooksSchema.ts delete mode 100644 frontend/src/openapi/models/observableEventSchema.ts delete mode 100644 frontend/src/openapi/models/observableEventSchemaPayload.ts delete mode 100644 frontend/src/openapi/models/observableEventSchemaSource.ts delete mode 100644 frontend/src/openapi/models/observableEventsSchema.ts create mode 100644 frontend/src/openapi/models/resourceLimitsSchema.ts create mode 100644 frontend/src/openapi/models/signalEndpointSchema.ts create mode 100644 frontend/src/openapi/models/signalEndpointSignalSchema.ts rename frontend/src/openapi/models/{incomingWebhookEventSchemaPayload.ts => signalEndpointSignalSchemaPayload.ts} (51%) create mode 100644 frontend/src/openapi/models/signalEndpointSignalSchemaSource.ts create mode 100644 frontend/src/openapi/models/signalEndpointSignalsSchema.ts create mode 100644 frontend/src/openapi/models/signalEndpointTokenSchema.ts create mode 100644 frontend/src/openapi/models/signalEndpointTokensSchema.ts create mode 100644 frontend/src/openapi/models/signalEndpointsSchema.ts create mode 100644 frontend/src/openapi/models/signalSchema.ts create mode 100644 frontend/src/openapi/models/signalSchemaPayload.ts create mode 100644 frontend/src/openapi/models/signalSchemaSource.ts create mode 100644 frontend/src/openapi/models/signalsSchema.ts diff --git a/frontend/src/openapi/models/actionSetEventSchema.ts b/frontend/src/openapi/models/actionSetEventSchema.ts index a8ddda45e8c..8a704d08617 100644 --- a/frontend/src/openapi/models/actionSetEventSchema.ts +++ b/frontend/src/openapi/models/actionSetEventSchema.ts @@ -4,7 +4,7 @@ * See `gen:api` script in package.json */ import type { ActionSetEventSchemaActionSet } from './actionSetEventSchemaActionSet'; -import type { ObservableEventSchema } from './observableEventSchema'; +import type { SignalSchema } from './signalSchema'; import type { ActionSetEventSchemaState } from './actionSetEventSchemaState'; /** @@ -19,10 +19,10 @@ export interface ActionSetEventSchema { createdAt: string; /** The action set event's ID. Action set event IDs are incrementing integers. In other words, a more recently created action set event will always have a higher ID than an older one. */ id: number; - /** The observable event that triggered this action set event. */ - observableEvent: ObservableEventSchema; - /** The ID of the observable event that triggered this action set event. */ - observableEventId: number; + /** The signal that triggered this action set event. */ + signal: SignalSchema; + /** The ID of the signal that triggered this action set event. */ + signalId: number; /** The state of the action set event. Can be one of `started`, `success`, or `failed`. */ state: ActionSetEventSchemaState; } diff --git a/frontend/src/openapi/models/actionSetEventSchemaActionSet.ts b/frontend/src/openapi/models/actionSetEventSchemaActionSet.ts index 3f8a0d3ec15..372e397082e 100644 --- a/frontend/src/openapi/models/actionSetEventSchemaActionSet.ts +++ b/frontend/src/openapi/models/actionSetEventSchemaActionSet.ts @@ -18,11 +18,13 @@ export type ActionSetEventSchemaActionSet = { createdAt: string; /** The ID of the user that created this action set. */ createdByUserId: number; + /** The description of the action set */ + description?: string | null; /** Whether this action set is enabled or not */ enabled?: boolean; /** The ID of the action set. */ id: number; - /** Defines a matching rule for the observable event that will trigger the action set */ + /** Defines a matching rule for the signal that will trigger the action set */ match: ActionSetEventSchemaActionSetMatch; /** The name of the action set */ name: string; diff --git a/frontend/src/openapi/models/actionSetEventSchemaActionSetMatch.ts b/frontend/src/openapi/models/actionSetEventSchemaActionSetMatch.ts index db702960839..4e62878642f 100644 --- a/frontend/src/openapi/models/actionSetEventSchemaActionSetMatch.ts +++ b/frontend/src/openapi/models/actionSetEventSchemaActionSetMatch.ts @@ -4,15 +4,16 @@ * See `gen:api` script in package.json */ import type { ActionSetEventSchemaActionSetMatchPayload } from './actionSetEventSchemaActionSetMatchPayload'; +import type { ActionSetEventSchemaActionSetMatchSource } from './actionSetEventSchemaActionSetMatchSource'; /** - * Defines a matching rule for the observable event that will trigger the action set + * Defines a matching rule for the signal that will trigger the action set */ export type ActionSetEventSchemaActionSetMatch = { - /** Match the payload of the observable event */ + /** Match the payload of the signal */ payload: ActionSetEventSchemaActionSetMatchPayload; - /** Match the source of the observable event */ - source: string; - /** Match the source id of the observable event */ + /** Match the source of the signal */ + source: ActionSetEventSchemaActionSetMatchSource; + /** Match the source id of the signal */ sourceId: number; }; diff --git a/frontend/src/openapi/models/actionSetEventSchemaActionSetMatchPayload.ts b/frontend/src/openapi/models/actionSetEventSchemaActionSetMatchPayload.ts index c3b056d1b83..cf587863043 100644 --- a/frontend/src/openapi/models/actionSetEventSchemaActionSetMatchPayload.ts +++ b/frontend/src/openapi/models/actionSetEventSchemaActionSetMatchPayload.ts @@ -5,6 +5,6 @@ */ /** - * Match the payload of the observable event + * Match the payload of the signal */ export type ActionSetEventSchemaActionSetMatchPayload = { [key: string]: any }; diff --git a/frontend/src/openapi/models/actionSetEventSchemaActionSetMatchSource.ts b/frontend/src/openapi/models/actionSetEventSchemaActionSetMatchSource.ts new file mode 100644 index 00000000000..f5d995a1f5d --- /dev/null +++ b/frontend/src/openapi/models/actionSetEventSchemaActionSetMatchSource.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Match the source of the signal + */ +export type ActionSetEventSchemaActionSetMatchSource = + (typeof ActionSetEventSchemaActionSetMatchSource)[keyof typeof ActionSetEventSchemaActionSetMatchSource]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ActionSetEventSchemaActionSetMatchSource = { + 'signal-endpoint': 'signal-endpoint', +} as const; diff --git a/frontend/src/openapi/models/actionsSchema.ts b/frontend/src/openapi/models/actionsSchema.ts index f9ed62a6334..3685bb1ee44 100644 --- a/frontend/src/openapi/models/actionsSchema.ts +++ b/frontend/src/openapi/models/actionsSchema.ts @@ -18,11 +18,13 @@ export interface ActionsSchema { createdAt: string; /** The ID of the user that created this action set. */ createdByUserId: number; + /** The description of the action set */ + description?: string | null; /** Whether this action set is enabled or not */ enabled?: boolean; /** The ID of the action set. */ id: number; - /** Defines a matching rule for the observable event that will trigger the action set */ + /** Defines a matching rule for the signal that will trigger the action set */ match: ActionsSchemaMatch; /** The name of the action set */ name: string; diff --git a/frontend/src/openapi/models/actionsSchemaMatch.ts b/frontend/src/openapi/models/actionsSchemaMatch.ts index 2a64c8951dc..65954154b9a 100644 --- a/frontend/src/openapi/models/actionsSchemaMatch.ts +++ b/frontend/src/openapi/models/actionsSchemaMatch.ts @@ -4,15 +4,16 @@ * See `gen:api` script in package.json */ import type { ActionsSchemaMatchPayload } from './actionsSchemaMatchPayload'; +import type { ActionsSchemaMatchSource } from './actionsSchemaMatchSource'; /** - * Defines a matching rule for the observable event that will trigger the action set + * Defines a matching rule for the signal that will trigger the action set */ export type ActionsSchemaMatch = { - /** Match the payload of the observable event */ + /** Match the payload of the signal */ payload: ActionsSchemaMatchPayload; - /** Match the source of the observable event */ - source: string; - /** Match the source id of the observable event */ + /** Match the source of the signal */ + source: ActionsSchemaMatchSource; + /** Match the source id of the signal */ sourceId: number; }; diff --git a/frontend/src/openapi/models/actionsSchemaMatchPayload.ts b/frontend/src/openapi/models/actionsSchemaMatchPayload.ts index 738086aec3a..277d43ecf3d 100644 --- a/frontend/src/openapi/models/actionsSchemaMatchPayload.ts +++ b/frontend/src/openapi/models/actionsSchemaMatchPayload.ts @@ -5,6 +5,6 @@ */ /** - * Match the payload of the observable event + * Match the payload of the signal */ export type ActionsSchemaMatchPayload = { [key: string]: any }; diff --git a/frontend/src/openapi/models/actionsSchemaMatchSource.ts b/frontend/src/openapi/models/actionsSchemaMatchSource.ts new file mode 100644 index 00000000000..88e53795410 --- /dev/null +++ b/frontend/src/openapi/models/actionsSchemaMatchSource.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Match the source of the signal + */ +export type ActionsSchemaMatchSource = + (typeof ActionsSchemaMatchSource)[keyof typeof ActionsSchemaMatchSource]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const ActionsSchemaMatchSource = { + 'signal-endpoint': 'signal-endpoint', +} as const; diff --git a/frontend/src/openapi/models/createActionsSchema.ts b/frontend/src/openapi/models/createActionsSchema.ts index 6c0432a28c6..7a04da019cf 100644 --- a/frontend/src/openapi/models/createActionsSchema.ts +++ b/frontend/src/openapi/models/createActionsSchema.ts @@ -7,16 +7,18 @@ import type { CreateActionSchema } from './createActionSchema'; import type { CreateActionsSchemaMatch } from './createActionsSchemaMatch'; /** - * An action set defines actions that Unleash performs when an observable event is matched. + * An action set defines actions that Unleash performs when a signal is matched. */ export interface CreateActionsSchema { /** The list of actions to execute in sequential order when the action set is triggered */ actions: CreateActionSchema[]; /** The id of the service account that will execute the action */ actorId: number; + /** The description of the action set */ + description?: string | null; /** Whether this action set is enabled or not */ enabled?: boolean; - /** Defines a matching rule for the observable event that will trigger the action set */ + /** Defines a matching rule for the signal that will trigger the action set */ match: CreateActionsSchemaMatch; /** The name of the action set */ name: string; diff --git a/frontend/src/openapi/models/createActionsSchemaMatch.ts b/frontend/src/openapi/models/createActionsSchemaMatch.ts index cef0662e8ec..7063447b9a1 100644 --- a/frontend/src/openapi/models/createActionsSchemaMatch.ts +++ b/frontend/src/openapi/models/createActionsSchemaMatch.ts @@ -4,15 +4,16 @@ * See `gen:api` script in package.json */ import type { CreateActionsSchemaMatchPayload } from './createActionsSchemaMatchPayload'; +import type { CreateActionsSchemaMatchSource } from './createActionsSchemaMatchSource'; /** - * Defines a matching rule for the observable event that will trigger the action set + * Defines a matching rule for the signal that will trigger the action set */ export type CreateActionsSchemaMatch = { - /** Match the payload of the observable event */ + /** Match the payload of the signal */ payload: CreateActionsSchemaMatchPayload; - /** Match the source of the observable event */ - source: string; - /** Match the source id of the observable event */ + /** Match the source of the signal */ + source: CreateActionsSchemaMatchSource; + /** Match the source id of the signal */ sourceId: number; }; diff --git a/frontend/src/openapi/models/createActionsSchemaMatchPayload.ts b/frontend/src/openapi/models/createActionsSchemaMatchPayload.ts index f782e3898b6..400c9dfec26 100644 --- a/frontend/src/openapi/models/createActionsSchemaMatchPayload.ts +++ b/frontend/src/openapi/models/createActionsSchemaMatchPayload.ts @@ -5,6 +5,6 @@ */ /** - * Match the payload of the observable event + * Match the payload of the signal */ export type CreateActionsSchemaMatchPayload = { [key: string]: any }; diff --git a/frontend/src/openapi/models/createActionsSchemaMatchSource.ts b/frontend/src/openapi/models/createActionsSchemaMatchSource.ts new file mode 100644 index 00000000000..55aa34006ad --- /dev/null +++ b/frontend/src/openapi/models/createActionsSchemaMatchSource.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Match the source of the signal + */ +export type CreateActionsSchemaMatchSource = + (typeof CreateActionsSchemaMatchSource)[keyof typeof CreateActionsSchemaMatchSource]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const CreateActionsSchemaMatchSource = { + 'signal-endpoint': 'signal-endpoint', +} as const; diff --git a/frontend/src/openapi/models/createIncomingWebhookSchema.ts b/frontend/src/openapi/models/createIncomingWebhookSchema.ts deleted file mode 100644 index 6bf40ce723d..00000000000 --- a/frontend/src/openapi/models/createIncomingWebhookSchema.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * 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 { - /** A more detailed description of the incoming webhook and its intended use. */ - description?: string | null; - /** 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 deleted file mode 100644 index 3914618a491..00000000000 --- a/frontend/src/openapi/models/createIncomingWebhookTokenSchema.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * 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/createSignalEndpointSchema.ts b/frontend/src/openapi/models/createSignalEndpointSchema.ts new file mode 100644 index 00000000000..aaaa667b765 --- /dev/null +++ b/frontend/src/openapi/models/createSignalEndpointSchema.ts @@ -0,0 +1,17 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * Describes the properties required to create or update a signal endpoint. + */ +export interface CreateSignalEndpointSchema { + /** A more detailed description of the signal endpoint and its intended use. */ + description?: string | null; + /** Whether the signal endpoint is currently enabled. If not specified, defaults to true. */ + enabled?: boolean; + /** The signal endpoint name. Must be URL-safe. */ + name: string; +} diff --git a/frontend/src/openapi/models/createSignalEndpointTokenSchema.ts b/frontend/src/openapi/models/createSignalEndpointTokenSchema.ts new file mode 100644 index 00000000000..9ac883f0e7f --- /dev/null +++ b/frontend/src/openapi/models/createSignalEndpointTokenSchema.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 a signal endpoint token. + */ +export interface CreateSignalEndpointTokenSchema { + /** The signal endpoint token name. */ + name: string; +} diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts index b8633371e6a..bf0d465972d 100644 --- a/frontend/src/openapi/models/eventSchemaType.ts +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -149,12 +149,12 @@ export const EventSchemaType = { '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', + 'signal-endpoint-created': 'signal-endpoint-created', + 'signal-endpoint-updated': 'signal-endpoint-updated', + 'signal-endpoint-deleted': 'signal-endpoint-deleted', + 'signal-endpoint-token-created': 'signal-endpoint-token-created', + 'signal-endpoint-token-updated': 'signal-endpoint-token-updated', + 'signal-endpoint-token-deleted': 'signal-endpoint-token-deleted', 'actions-created': 'actions-created', 'actions-updated': 'actions-updated', 'actions-deleted': 'actions-deleted', diff --git a/frontend/src/openapi/models/proxyClientSchema.ts b/frontend/src/openapi/models/frontendApiClientSchema.ts similarity index 81% rename from frontend/src/openapi/models/proxyClientSchema.ts rename to frontend/src/openapi/models/frontendApiClientSchema.ts index 163a8c58fbb..a3b6c6b9fc2 100644 --- a/frontend/src/openapi/models/proxyClientSchema.ts +++ b/frontend/src/openapi/models/frontendApiClientSchema.ts @@ -3,12 +3,12 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ProxyClientSchemaStarted } from './proxyClientSchemaStarted'; +import type { FrontendApiClientSchemaStarted } from './frontendApiClientSchemaStarted'; /** * Frontend SDK client registration information */ -export interface ProxyClientSchema { +export interface FrontendApiClientSchema { /** Name of the application using Unleash */ appName: string; /** @@ -23,7 +23,7 @@ export interface ProxyClientSchema { /** Optional field that describes the sdk version (name:version) */ sdkVersion?: string; /** When this client started. Should be reported as ISO8601 time. */ - started: ProxyClientSchemaStarted; + started: FrontendApiClientSchemaStarted; /** List of strategies implemented by this application */ strategies: string[]; } diff --git a/frontend/src/openapi/models/proxyClientSchemaStarted.ts b/frontend/src/openapi/models/frontendApiClientSchemaStarted.ts similarity index 73% rename from frontend/src/openapi/models/proxyClientSchemaStarted.ts rename to frontend/src/openapi/models/frontendApiClientSchemaStarted.ts index f873b0d2948..0b24a4f3716 100644 --- a/frontend/src/openapi/models/proxyClientSchemaStarted.ts +++ b/frontend/src/openapi/models/frontendApiClientSchemaStarted.ts @@ -7,4 +7,4 @@ /** * When this client started. Should be reported as ISO8601 time. */ -export type ProxyClientSchemaStarted = string | number; +export type FrontendApiClientSchemaStarted = string | number; diff --git a/frontend/src/openapi/models/proxyFeatureSchema.ts b/frontend/src/openapi/models/frontendApiFeatureSchema.ts similarity index 68% rename from frontend/src/openapi/models/proxyFeatureSchema.ts rename to frontend/src/openapi/models/frontendApiFeatureSchema.ts index 6c6c73a57f7..5f4d2219c78 100644 --- a/frontend/src/openapi/models/proxyFeatureSchema.ts +++ b/frontend/src/openapi/models/frontendApiFeatureSchema.ts @@ -3,12 +3,12 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ProxyFeatureSchemaVariant } from './proxyFeatureSchemaVariant'; +import type { FrontendApiFeatureSchemaVariant } from './frontendApiFeatureSchemaVariant'; /** * Frontend API feature */ -export interface ProxyFeatureSchema { +export interface FrontendApiFeatureSchema { /** Always set to `true`. */ enabled: boolean; /** `true` if the impression data collection is enabled for the feature, otherwise `false`. */ @@ -16,5 +16,5 @@ export interface ProxyFeatureSchema { /** Unique feature name. */ name: string; /** Variant details */ - variant?: ProxyFeatureSchemaVariant; + variant?: FrontendApiFeatureSchemaVariant; } diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts b/frontend/src/openapi/models/frontendApiFeatureSchemaVariant.ts similarity index 71% rename from frontend/src/openapi/models/proxyFeatureSchemaVariant.ts rename to frontend/src/openapi/models/frontendApiFeatureSchemaVariant.ts index 47164856db4..5e801bce270 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariant.ts +++ b/frontend/src/openapi/models/frontendApiFeatureSchemaVariant.ts @@ -3,12 +3,12 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ProxyFeatureSchemaVariantPayload } from './proxyFeatureSchemaVariantPayload'; +import type { FrontendApiFeatureSchemaVariantPayload } from './frontendApiFeatureSchemaVariantPayload'; /** * Variant details */ -export type ProxyFeatureSchemaVariant = { +export type FrontendApiFeatureSchemaVariant = { /** Whether the variant is enabled or not. */ enabled: boolean; /** Whether the feature is enabled or not. */ @@ -21,5 +21,5 @@ export type ProxyFeatureSchemaVariant = { /** The variants name. Is unique for this feature toggle */ name: string; /** Extra data configured for this variant */ - payload?: ProxyFeatureSchemaVariantPayload; + payload?: FrontendApiFeatureSchemaVariantPayload; }; diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts b/frontend/src/openapi/models/frontendApiFeatureSchemaVariantPayload.ts similarity index 52% rename from frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts rename to frontend/src/openapi/models/frontendApiFeatureSchemaVariantPayload.ts index b8e7b6e4efa..74d31b9e22b 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayload.ts +++ b/frontend/src/openapi/models/frontendApiFeatureSchemaVariantPayload.ts @@ -3,14 +3,14 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ProxyFeatureSchemaVariantPayloadType } from './proxyFeatureSchemaVariantPayloadType'; +import type { FrontendApiFeatureSchemaVariantPayloadType } from './frontendApiFeatureSchemaVariantPayloadType'; /** * Extra data configured for this variant */ -export type ProxyFeatureSchemaVariantPayload = { +export type FrontendApiFeatureSchemaVariantPayload = { /** The format of the payload. */ - type: ProxyFeatureSchemaVariantPayloadType; + type: FrontendApiFeatureSchemaVariantPayloadType; /** The payload value stringified. */ value: string; }; diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts b/frontend/src/openapi/models/frontendApiFeatureSchemaVariantPayloadType.ts similarity index 55% rename from frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts rename to frontend/src/openapi/models/frontendApiFeatureSchemaVariantPayloadType.ts index 149a26c0415..a9e333d2bbc 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts +++ b/frontend/src/openapi/models/frontendApiFeatureSchemaVariantPayloadType.ts @@ -7,11 +7,11 @@ /** * The format of the payload. */ -export type ProxyFeatureSchemaVariantPayloadType = - (typeof ProxyFeatureSchemaVariantPayloadType)[keyof typeof ProxyFeatureSchemaVariantPayloadType]; +export type FrontendApiFeatureSchemaVariantPayloadType = + (typeof FrontendApiFeatureSchemaVariantPayloadType)[keyof typeof FrontendApiFeatureSchemaVariantPayloadType]; // eslint-disable-next-line @typescript-eslint/no-redeclare -export const ProxyFeatureSchemaVariantPayloadType = { +export const FrontendApiFeatureSchemaVariantPayloadType = { json: 'json', csv: 'csv', string: 'string', diff --git a/frontend/src/openapi/models/proxyFeaturesSchema.ts b/frontend/src/openapi/models/frontendApiFeaturesSchema.ts similarity index 54% rename from frontend/src/openapi/models/proxyFeaturesSchema.ts rename to frontend/src/openapi/models/frontendApiFeaturesSchema.ts index bbafacd11e3..973b7040a2e 100644 --- a/frontend/src/openapi/models/proxyFeaturesSchema.ts +++ b/frontend/src/openapi/models/frontendApiFeaturesSchema.ts @@ -3,12 +3,12 @@ * Do not edit manually. * See `gen:api` script in package.json */ -import type { ProxyFeatureSchema } from './proxyFeatureSchema'; +import type { FrontendApiFeatureSchema } from './frontendApiFeatureSchema'; /** * Frontend SDK features list */ -export interface ProxyFeaturesSchema { +export interface FrontendApiFeaturesSchema { /** The actual features returned to the Frontend SDK */ - toggles: ProxyFeatureSchema[]; + toggles: FrontendApiFeatureSchema[]; } diff --git a/frontend/src/openapi/models/getServiceAccountPermissions401.ts b/frontend/src/openapi/models/getServiceAccountPermissions401.ts new file mode 100644 index 00000000000..022595da965 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccountPermissions401.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccountPermissions401 = { + /** 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/getServiceAccountPermissions403.ts b/frontend/src/openapi/models/getServiceAccountPermissions403.ts new file mode 100644 index 00000000000..d45cf5760c0 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccountPermissions403.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccountPermissions403 = { + /** 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/getServiceAccountPermissions415.ts b/frontend/src/openapi/models/getServiceAccountPermissions415.ts new file mode 100644 index 00000000000..5b21e499215 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccountPermissions415.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccountPermissions415 = { + /** 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/getServiceAccountPermissionsParams.ts b/frontend/src/openapi/models/getServiceAccountPermissionsParams.ts new file mode 100644 index 00000000000..7e0b18cad65 --- /dev/null +++ b/frontend/src/openapi/models/getServiceAccountPermissionsParams.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +export type GetServiceAccountPermissionsParams = { + project?: string; + environment?: string; +}; diff --git a/frontend/src/openapi/models/incomingWebhookEventSchema.ts b/frontend/src/openapi/models/incomingWebhookEventSchema.ts deleted file mode 100644 index a7674cadf14..00000000000 --- a/frontend/src/openapi/models/incomingWebhookEventSchema.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { IncomingWebhookEventSchemaPayload } from './incomingWebhookEventSchemaPayload'; -import type { IncomingWebhookEventSchemaSource } from './incomingWebhookEventSchemaSource'; - -/** - * An object describing an incoming webhook event. - */ -export interface IncomingWebhookEventSchema { - /** The date and time of when the observable event was created. */ - createdAt: string; - /** The observable event's ID. Observable event IDs are incrementing integers. In other words, a more recently created observable event will always have a higher ID than an older one. */ - id?: number; - /** The payload of the observable event. */ - payload?: IncomingWebhookEventSchemaPayload; - /** The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event. */ - source: IncomingWebhookEventSchemaSource; - /** The ID of the source that created this observable event. Should be used along with `source` to uniquely identify the resource that created this observable event. */ - sourceId: number; - /** The name of the token used to register this incoming webhook event. */ - tokenName?: string | null; -} diff --git a/frontend/src/openapi/models/incomingWebhookEventSchemaSource.ts b/frontend/src/openapi/models/incomingWebhookEventSchemaSource.ts deleted file mode 100644 index 7f06d7712b7..00000000000 --- a/frontend/src/openapi/models/incomingWebhookEventSchemaSource.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -/** - * The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event. - */ -export type IncomingWebhookEventSchemaSource = - (typeof IncomingWebhookEventSchemaSource)[keyof typeof IncomingWebhookEventSchemaSource]; - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const IncomingWebhookEventSchemaSource = { - 'incoming-webhook': 'incoming-webhook', -} as const; diff --git a/frontend/src/openapi/models/incomingWebhookEventsSchema.ts b/frontend/src/openapi/models/incomingWebhookEventsSchema.ts deleted file mode 100644 index 49825984c57..00000000000 --- a/frontend/src/openapi/models/incomingWebhookEventsSchema.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { IncomingWebhookEventSchema } from './incomingWebhookEventSchema'; - -/** - * A response model with a list of incoming webhook events. - */ -export interface IncomingWebhookEventsSchema { - /** A list of incoming webhook events. */ - incomingWebhookEvents: IncomingWebhookEventSchema[]; -} diff --git a/frontend/src/openapi/models/incomingWebhookSchema.ts b/frontend/src/openapi/models/incomingWebhookSchema.ts deleted file mode 100644 index e78feee0c89..00000000000 --- a/frontend/src/openapi/models/incomingWebhookSchema.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { IncomingWebhookTokenSchema } from './incomingWebhookTokenSchema'; - -/** - * 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; - /** A more detailed description of the incoming webhook and its intended use. */ - description?: string | null; - /** 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; - /** 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/incomingWebhookTokenSchema.ts b/frontend/src/openapi/models/incomingWebhookTokenSchema.ts deleted file mode 100644 index a7a7b8d9cc3..00000000000 --- a/frontend/src/openapi/models/incomingWebhookTokenSchema.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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 deleted file mode 100644 index c41ff42685d..00000000000 --- a/frontend/src/openapi/models/incomingWebhookTokensSchema.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * 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. */ - incomingWebhookTokens: IncomingWebhookTokenSchema[]; -} diff --git a/frontend/src/openapi/models/incomingWebhooksSchema.ts b/frontend/src/openapi/models/incomingWebhooksSchema.ts deleted file mode 100644 index fe846f18247..00000000000 --- a/frontend/src/openapi/models/incomingWebhooksSchema.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * 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. */ - incomingWebhooks: IncomingWebhookSchema[]; -} diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.ts index 11b025f29f5..eafe8e59b65 100644 --- a/frontend/src/openapi/models/index.ts +++ b/frontend/src/openapi/models/index.ts @@ -16,12 +16,14 @@ export * from './actionSetEventSchema'; export * from './actionSetEventSchemaActionSet'; export * from './actionSetEventSchemaActionSetMatch'; export * from './actionSetEventSchemaActionSetMatchPayload'; +export * from './actionSetEventSchemaActionSetMatchSource'; export * from './actionSetEventSchemaState'; export * from './actionSetEventsSchema'; export * from './actionsListSchema'; export * from './actionsSchema'; export * from './actionsSchemaMatch'; export * from './actionsSchemaMatchPayload'; +export * from './actionsSchemaMatchSource'; export * from './addAccessToProject400'; export * from './addAccessToProject401'; export * from './addAccessToProject403'; @@ -310,6 +312,7 @@ export * from './createActionSchemaExecutionParams'; export * from './createActionsSchema'; export * from './createActionsSchemaMatch'; export * from './createActionsSchemaMatchPayload'; +export * from './createActionsSchemaMatchSource'; export * from './createAddon400'; export * from './createAddon401'; export * from './createAddon403'; @@ -354,8 +357,6 @@ 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'; @@ -401,6 +402,8 @@ export * from './createServiceAccountToken403'; export * from './createServiceAccountToken404'; export * from './createServiceAccountToken409'; export * from './createServiceAccountToken415'; +export * from './createSignalEndpointSchema'; +export * from './createSignalEndpointTokenSchema'; export * from './createStrategy401'; export * from './createStrategy403'; export * from './createStrategy409'; @@ -514,8 +517,8 @@ export * from './eventSchemaType'; export * from './eventsSchema'; export * from './eventsSchemaVersion'; export * from './executiveSummarySchema'; -export * from './executiveSummarySchemaFlagTrendsItem'; export * from './executiveSummarySchemaEnvironmentTypeTrendsItem'; +export * from './executiveSummarySchemaFlagTrendsItem'; export * from './executiveSummarySchemaFlags'; export * from './executiveSummarySchemaMetricsSummaryTrendsItem'; export * from './executiveSummarySchemaProjectFlagTrendsItem'; @@ -556,6 +559,13 @@ export * from './feedbackListSchema'; export * from './feedbackResponseSchema'; export * from './feedbackSchema'; export * from './feedbackUpdateSchema'; +export * from './frontendApiClientSchema'; +export * from './frontendApiClientSchemaStarted'; +export * from './frontendApiFeatureSchema'; +export * from './frontendApiFeatureSchemaVariant'; +export * from './frontendApiFeatureSchemaVariantPayload'; +export * from './frontendApiFeatureSchemaVariantPayloadType'; +export * from './frontendApiFeaturesSchema'; export * from './getAccessOverview401'; export * from './getAccessOverview403'; export * from './getAccessOverview415'; @@ -686,6 +696,10 @@ export * from './getSamlSettings401'; export * from './getSamlSettings403'; export * from './getScheduledChangeRequests404'; export * from './getSegment404'; +export * from './getServiceAccountPermissions401'; +export * from './getServiceAccountPermissions403'; +export * from './getServiceAccountPermissions415'; +export * from './getServiceAccountPermissionsParams'; export * from './getServiceAccountTokens401'; export * from './getServiceAccountTokens403'; export * from './getServiceAccountTokens404'; @@ -741,14 +755,6 @@ export * from './importTogglesValidateItemSchema'; export * from './importTogglesValidateSchema'; export * from './inactiveUserSchema'; export * from './inactiveUsersSchema'; -export * from './incomingWebhookEventSchema'; -export * from './incomingWebhookEventSchemaPayload'; -export * from './incomingWebhookEventSchemaSource'; -export * from './incomingWebhookEventsSchema'; -export * from './incomingWebhookSchema'; -export * from './incomingWebhookTokenSchema'; -export * from './incomingWebhookTokensSchema'; -export * from './incomingWebhooksSchema'; export * from './instanceAdminStatsSchema'; export * from './instanceAdminStatsSchemaActiveUsers'; export * from './instanceAdminStatsSchemaClientAppsItem'; @@ -780,10 +786,6 @@ export * from './notificationsSchema'; export * from './notificationsSchemaItem'; export * from './notificationsSchemaItemCreatedBy'; export * from './notificationsSchemaItemNotificationType'; -export * from './observableEventSchema'; -export * from './observableEventSchemaPayload'; -export * from './observableEventSchemaSource'; -export * from './observableEventsSchema'; export * from './oidcSettingsSchema'; export * from './oidcSettingsSchemaDefaultRootRole'; export * from './oidcSettingsSchemaIdTokenSigningAlgorithm'; @@ -875,13 +877,6 @@ export * from './projectStatsSchema'; export * from './projectUsersSchema'; export * from './projectsSchema'; export * from './provideFeedbackSchema'; -export * from './proxyClientSchema'; -export * from './proxyClientSchemaStarted'; -export * from './proxyFeatureSchema'; -export * from './proxyFeatureSchemaVariant'; -export * from './proxyFeatureSchemaVariantPayload'; -export * from './proxyFeatureSchemaVariantPayloadType'; -export * from './proxyFeaturesSchema'; export * from './publicSignupTokenCreateSchema'; export * from './publicSignupTokenSchema'; export * from './publicSignupTokenUpdateSchema'; @@ -941,6 +936,7 @@ export * from './resetUserPassword400'; export * from './resetUserPassword401'; export * from './resetUserPassword403'; export * from './resetUserPassword404'; +export * from './resourceLimitsSchema'; export * from './reviveFeature400'; export * from './reviveFeature401'; export * from './reviveFeature403'; @@ -1008,6 +1004,18 @@ export * from './setStrategySortOrderSchema'; export * from './setStrategySortOrderSchemaItem'; export * from './setUiConfigSchema'; export * from './setUiConfigSchemaFrontendSettings'; +export * from './signalEndpointSchema'; +export * from './signalEndpointSignalSchema'; +export * from './signalEndpointSignalSchemaPayload'; +export * from './signalEndpointSignalSchemaSource'; +export * from './signalEndpointSignalsSchema'; +export * from './signalEndpointTokenSchema'; +export * from './signalEndpointTokensSchema'; +export * from './signalEndpointsSchema'; +export * from './signalSchema'; +export * from './signalSchemaPayload'; +export * from './signalSchemaSource'; +export * from './signalsSchema'; export * from './sortOrderSchema'; export * from './splashRequestSchema'; export * from './splashResponseSchema'; diff --git a/frontend/src/openapi/models/observableEventSchema.ts b/frontend/src/openapi/models/observableEventSchema.ts deleted file mode 100644 index c730780c684..00000000000 --- a/frontend/src/openapi/models/observableEventSchema.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { ObservableEventSchemaPayload } from './observableEventSchemaPayload'; -import type { ObservableEventSchemaSource } from './observableEventSchemaSource'; - -/** - * An object describing an observable event. - */ -export interface ObservableEventSchema { - /** The date and time of when the observable event was created. */ - createdAt: string; - /** The ID of the incoming webhook token that created this observable event. Only present if the observable event was created by an incoming webhook. */ - createdByIncomingWebhookTokenId?: number | null; - /** The observable event's ID. Observable event IDs are incrementing integers. In other words, a more recently created observable event will always have a higher ID than an older one. */ - id: number; - /** The payload of the observable event. */ - payload?: ObservableEventSchemaPayload; - /** The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event. */ - source: ObservableEventSchemaSource; - /** The ID of the source that created this observable event. Should be used along with `source` to uniquely identify the resource that created this observable event. */ - sourceId: number; -} diff --git a/frontend/src/openapi/models/observableEventSchemaPayload.ts b/frontend/src/openapi/models/observableEventSchemaPayload.ts deleted file mode 100644 index cca3fc5cf3d..00000000000 --- a/frontend/src/openapi/models/observableEventSchemaPayload.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -/** - * The payload of the observable event. - */ -export type ObservableEventSchemaPayload = { [key: string]: any }; diff --git a/frontend/src/openapi/models/observableEventSchemaSource.ts b/frontend/src/openapi/models/observableEventSchemaSource.ts deleted file mode 100644 index 6c61861d560..00000000000 --- a/frontend/src/openapi/models/observableEventSchemaSource.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ - -/** - * The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event. - */ -export type ObservableEventSchemaSource = - (typeof ObservableEventSchemaSource)[keyof typeof ObservableEventSchemaSource]; - -// eslint-disable-next-line @typescript-eslint/no-redeclare -export const ObservableEventSchemaSource = { - 'incoming-webhook': 'incoming-webhook', -} as const; diff --git a/frontend/src/openapi/models/observableEventsSchema.ts b/frontend/src/openapi/models/observableEventsSchema.ts deleted file mode 100644 index 890502ad2e9..00000000000 --- a/frontend/src/openapi/models/observableEventsSchema.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Generated by Orval - * Do not edit manually. - * See `gen:api` script in package.json - */ -import type { ObservableEventSchema } from './observableEventSchema'; - -/** - * A response model with a list of observable events. - */ -export interface ObservableEventsSchema { - /** A list of observable events. */ - observableEvents: ObservableEventSchema[]; -} diff --git a/frontend/src/openapi/models/resourceLimitsSchema.ts b/frontend/src/openapi/models/resourceLimitsSchema.ts new file mode 100644 index 00000000000..1e01897aac0 --- /dev/null +++ b/frontend/src/openapi/models/resourceLimitsSchema.ts @@ -0,0 +1,27 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * A map of resource names and their limits. + */ +export interface ResourceLimitsSchema { + /** The maximum number of actions per action set allowed. */ + actionSetActions?: number; + /** The maximum number of filters per action set allowed. */ + actionSetFilters?: number; + /** The maximum number of filter values inside an action set allowed. */ + actionSetFilterValues?: number; + /** The maximum number of action set definitions per project allowed. */ + actionSetsPerProject?: number; + /** The maximum number of values per segment allowed. */ + segmentValues?: number; + /** The maximum number of signal endpoints allowed. */ + signalEndpoints?: number; + /** The maximum number of signal tokens per endpoint allowed. */ + signalTokensPerEndpoint?: number; + /** The maximum number of strategy segments allowed. */ + strategySegments?: number; +} diff --git a/frontend/src/openapi/models/searchEventsSchemaType.ts b/frontend/src/openapi/models/searchEventsSchemaType.ts index 2a357be711f..c87f87fb73f 100644 --- a/frontend/src/openapi/models/searchEventsSchemaType.ts +++ b/frontend/src/openapi/models/searchEventsSchemaType.ts @@ -149,12 +149,12 @@ export const SearchEventsSchemaType = { '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', + 'signal-endpoint-created': 'signal-endpoint-created', + 'signal-endpoint-updated': 'signal-endpoint-updated', + 'signal-endpoint-deleted': 'signal-endpoint-deleted', + 'signal-endpoint-token-created': 'signal-endpoint-token-created', + 'signal-endpoint-token-updated': 'signal-endpoint-token-updated', + 'signal-endpoint-token-deleted': 'signal-endpoint-token-deleted', 'actions-created': 'actions-created', 'actions-updated': 'actions-updated', 'actions-deleted': 'actions-deleted', diff --git a/frontend/src/openapi/models/signalEndpointSchema.ts b/frontend/src/openapi/models/signalEndpointSchema.ts new file mode 100644 index 00000000000..48becc64de8 --- /dev/null +++ b/frontend/src/openapi/models/signalEndpointSchema.ts @@ -0,0 +1,28 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SignalEndpointTokenSchema } from './signalEndpointTokenSchema'; + +/** + * An object describing a signal endpoint. + */ +export interface SignalEndpointSchema { + /** The date and time of when the signal endpoint was created. */ + createdAt: string; + /** The ID of the user that created this signal endpoint. */ + createdByUserId: number; + /** A more detailed description of the signal endpoint and its intended use. */ + description?: string | null; + /** Whether the signal endpoint is currently enabled. If not specified, defaults to true. */ + enabled: boolean; + /** The signal endpoint's ID. Signal endpoint IDs are incrementing integers. In other words, a more recently created signal endpoint will always have a higher ID than an older one. */ + id: number; + /** The signal endpoint name. Must be URL-safe. */ + name: string; + /** The list of tokens associated with the signal endpoint. */ + tokens?: SignalEndpointTokenSchema[]; + /** The full URL that should be used to call the signal endpoint. This property is only returned for newly created or updated signal endpoints. */ + url?: string; +} diff --git a/frontend/src/openapi/models/signalEndpointSignalSchema.ts b/frontend/src/openapi/models/signalEndpointSignalSchema.ts new file mode 100644 index 00000000000..c15b0f5e91a --- /dev/null +++ b/frontend/src/openapi/models/signalEndpointSignalSchema.ts @@ -0,0 +1,25 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SignalEndpointSignalSchemaPayload } from './signalEndpointSignalSchemaPayload'; +import type { SignalEndpointSignalSchemaSource } from './signalEndpointSignalSchemaSource'; + +/** + * An object describing a signal originated from a signal endpoint. + */ +export interface SignalEndpointSignalSchema { + /** The date and time of when the signal was created. */ + createdAt: string; + /** The signal's ID. Signal IDs are incrementing integers. In other words, a more recently created signal will always have a higher ID than an older one. */ + id?: number; + /** The payload of the signal. */ + payload?: SignalEndpointSignalSchemaPayload; + /** The signal source type. Should be used along with `sourceId` to uniquely identify the resource that created this signal. */ + source: SignalEndpointSignalSchemaSource; + /** The ID of the source that created this signal. Should be used along with `source` to uniquely identify the resource that created this signal. */ + sourceId: number; + /** The name of the token used to register this signal. */ + tokenName?: string | null; +} diff --git a/frontend/src/openapi/models/incomingWebhookEventSchemaPayload.ts b/frontend/src/openapi/models/signalEndpointSignalSchemaPayload.ts similarity index 51% rename from frontend/src/openapi/models/incomingWebhookEventSchemaPayload.ts rename to frontend/src/openapi/models/signalEndpointSignalSchemaPayload.ts index eab0799f6bd..29f5ec88e99 100644 --- a/frontend/src/openapi/models/incomingWebhookEventSchemaPayload.ts +++ b/frontend/src/openapi/models/signalEndpointSignalSchemaPayload.ts @@ -5,6 +5,6 @@ */ /** - * The payload of the observable event. + * The payload of the signal. */ -export type IncomingWebhookEventSchemaPayload = { [key: string]: any }; +export type SignalEndpointSignalSchemaPayload = { [key: string]: any }; diff --git a/frontend/src/openapi/models/signalEndpointSignalSchemaSource.ts b/frontend/src/openapi/models/signalEndpointSignalSchemaSource.ts new file mode 100644 index 00000000000..f4c34e4aee7 --- /dev/null +++ b/frontend/src/openapi/models/signalEndpointSignalSchemaSource.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The signal source type. Should be used along with `sourceId` to uniquely identify the resource that created this signal. + */ +export type SignalEndpointSignalSchemaSource = + (typeof SignalEndpointSignalSchemaSource)[keyof typeof SignalEndpointSignalSchemaSource]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const SignalEndpointSignalSchemaSource = { + 'signal-endpoint': 'signal-endpoint', +} as const; diff --git a/frontend/src/openapi/models/signalEndpointSignalsSchema.ts b/frontend/src/openapi/models/signalEndpointSignalsSchema.ts new file mode 100644 index 00000000000..f34496da800 --- /dev/null +++ b/frontend/src/openapi/models/signalEndpointSignalsSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SignalEndpointSignalSchema } from './signalEndpointSignalSchema'; + +/** + * A response model with a list of signals originated from a signals endpoint. + */ +export interface SignalEndpointSignalsSchema { + /** A list of signals originated from a signals endpoint. */ + signalEndpointSignals: SignalEndpointSignalSchema[]; +} diff --git a/frontend/src/openapi/models/signalEndpointTokenSchema.ts b/frontend/src/openapi/models/signalEndpointTokenSchema.ts new file mode 100644 index 00000000000..98d7fa710a0 --- /dev/null +++ b/frontend/src/openapi/models/signalEndpointTokenSchema.ts @@ -0,0 +1,23 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * An object describing a signal endpoint token. + */ +export interface SignalEndpointTokenSchema { + /** The date and time of when the signal endpoint token was created. */ + createdAt: string; + /** The ID of the user that created this signal endpoint token. */ + createdByUserId: number; + /** The signal endpoint token's ID. Signal endpoint token IDs are incrementing integers. In other words, a more recently created signal endpoint token will always have a higher ID than an older one. */ + id: number; + /** The signal endpoint token name. */ + name: string; + /** The signal endpoint ID that this token belongs to. */ + signalEndpointId: number; + /** 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/signalEndpointTokensSchema.ts b/frontend/src/openapi/models/signalEndpointTokensSchema.ts new file mode 100644 index 00000000000..24395758952 --- /dev/null +++ b/frontend/src/openapi/models/signalEndpointTokensSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SignalEndpointTokenSchema } from './signalEndpointTokenSchema'; + +/** + * A response model with a list of signal endpoint tokens. + */ +export interface SignalEndpointTokensSchema { + /** A list of signal endpoint tokens. */ + signalEndpointTokens: SignalEndpointTokenSchema[]; +} diff --git a/frontend/src/openapi/models/signalEndpointsSchema.ts b/frontend/src/openapi/models/signalEndpointsSchema.ts new file mode 100644 index 00000000000..f2ad9c33b99 --- /dev/null +++ b/frontend/src/openapi/models/signalEndpointsSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SignalEndpointSchema } from './signalEndpointSchema'; + +/** + * A response model with a list of signal endpoints. + */ +export interface SignalEndpointsSchema { + /** A list of signal endpoints. */ + signalEndpoints: SignalEndpointSchema[]; +} diff --git a/frontend/src/openapi/models/signalSchema.ts b/frontend/src/openapi/models/signalSchema.ts new file mode 100644 index 00000000000..1121f299b99 --- /dev/null +++ b/frontend/src/openapi/models/signalSchema.ts @@ -0,0 +1,25 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SignalSchemaPayload } from './signalSchemaPayload'; +import type { SignalSchemaSource } from './signalSchemaSource'; + +/** + * An object describing a signal. + */ +export interface SignalSchema { + /** The date and time of when the signal was created. */ + createdAt: string; + /** The ID of the source token that created this signal. Only present if the signal was created by a signal endpoint. */ + createdBySourceTokenId?: number | null; + /** The signal's ID. Signal IDs are incrementing integers. In other words, a more recently created signal will always have a higher ID than an older one. */ + id: number; + /** The payload of the signal. */ + payload?: SignalSchemaPayload; + /** The signal source type. Should be used along with `sourceId` to uniquely identify the resource that created this signal. */ + source: SignalSchemaSource; + /** The ID of the source that created this signal. Should be used along with `source` to uniquely identify the resource that created this signal. */ + sourceId: number; +} diff --git a/frontend/src/openapi/models/signalSchemaPayload.ts b/frontend/src/openapi/models/signalSchemaPayload.ts new file mode 100644 index 00000000000..12847e97024 --- /dev/null +++ b/frontend/src/openapi/models/signalSchemaPayload.ts @@ -0,0 +1,10 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The payload of the signal. + */ +export type SignalSchemaPayload = { [key: string]: any }; diff --git a/frontend/src/openapi/models/signalSchemaSource.ts b/frontend/src/openapi/models/signalSchemaSource.ts new file mode 100644 index 00000000000..534e300bf9d --- /dev/null +++ b/frontend/src/openapi/models/signalSchemaSource.ts @@ -0,0 +1,16 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ + +/** + * The signal source type. Should be used along with `sourceId` to uniquely identify the resource that created this signal. + */ +export type SignalSchemaSource = + (typeof SignalSchemaSource)[keyof typeof SignalSchemaSource]; + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const SignalSchemaSource = { + 'signal-endpoint': 'signal-endpoint', +} as const; diff --git a/frontend/src/openapi/models/signalsSchema.ts b/frontend/src/openapi/models/signalsSchema.ts new file mode 100644 index 00000000000..08d73f9a47b --- /dev/null +++ b/frontend/src/openapi/models/signalsSchema.ts @@ -0,0 +1,14 @@ +/** + * Generated by Orval + * Do not edit manually. + * See `gen:api` script in package.json + */ +import type { SignalSchema } from './signalSchema'; + +/** + * A response model with a list of signals. + */ +export interface SignalsSchema { + /** A list of signals. */ + signals: SignalSchema[]; +} diff --git a/frontend/src/openapi/models/uiConfigSchema.ts b/frontend/src/openapi/models/uiConfigSchema.ts index 0ca2116763d..0ad05ac6f8a 100644 --- a/frontend/src/openapi/models/uiConfigSchema.ts +++ b/frontend/src/openapi/models/uiConfigSchema.ts @@ -6,6 +6,7 @@ import type { UiConfigSchemaAuthenticationType } from './uiConfigSchemaAuthenticationType'; import type { UiConfigSchemaFlags } from './uiConfigSchemaFlags'; import type { UiConfigSchemaLinksItem } from './uiConfigSchemaLinksItem'; +import type { ResourceLimitsSchema } from './resourceLimitsSchema'; import type { VersionSchema } from './versionSchema'; /** @@ -36,11 +37,19 @@ export interface UiConfigSchema { name?: string; /** Whether to enable the Unleash network view or not. */ networkViewEnabled?: boolean; - /** The maximum number of values that can be used in a single segment. */ + /** A map of resource names and their limits. */ + resourceLimits?: ResourceLimitsSchema; + /** + * The maximum number of values that can be used in a single segment. + * @deprecated + */ segmentValuesLimit?: number; /** The slogan to display in the UI footer. */ slogan?: string; - /** The maximum number of segments that can be applied to a single strategy. */ + /** + * The maximum number of segments that can be applied to a single strategy. + * @deprecated + */ strategySegmentsLimit?: number; /** The URL of the Unleash instance. */ unleashUrl: string;