1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

chore: generate orval after frontend api refactor (#6512)

This commit is contained in:
Mateusz Kwasniewski 2024-03-12 10:28:52 +01:00 committed by GitHub
parent bc83a4d66e
commit faf2153423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
56 changed files with 466 additions and 313 deletions

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
};

View File

@ -5,6 +5,6 @@
*/
/**
* Match the payload of the observable event
* Match the payload of the signal
*/
export type ActionSetEventSchemaActionSetMatchPayload = { [key: string]: any };

View File

@ -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;

View File

@ -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;

View File

@ -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;
};

View File

@ -5,6 +5,6 @@
*/
/**
* Match the payload of the observable event
* Match the payload of the signal
*/
export type ActionsSchemaMatchPayload = { [key: string]: any };

View File

@ -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;

View File

@ -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;

View File

@ -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;
};

View File

@ -5,6 +5,6 @@
*/
/**
* Match the payload of the observable event
* Match the payload of the signal
*/
export type CreateActionsSchemaMatchPayload = { [key: string]: any };

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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',

View File

@ -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[];
}

View File

@ -7,4 +7,4 @@
/**
* When this client started. Should be reported as ISO8601 time.
*/
export type ProxyClientSchemaStarted = string | number;
export type FrontendApiClientSchemaStarted = string | number;

View File

@ -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;
}

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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',

View File

@ -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[];
}

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
}

View File

@ -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;

View File

@ -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[];
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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[];
}

View File

@ -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[];
}

View File

@ -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';

View File

@ -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;
}

View File

@ -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 };

View File

@ -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;

View File

@ -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[];
}

View File

@ -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;
}

View File

@ -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',

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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 };

View File

@ -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;

View File

@ -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[];
}

View File

@ -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;
}

View File

@ -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[];
}

View File

@ -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[];
}

View File

@ -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;
}

View File

@ -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 };

View File

@ -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;

View File

@ -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[];
}

View File

@ -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;