1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +02:00

feat: orval schema update (#8647)

This commit is contained in:
Jaanus Sellin 2024-11-05 11:04:11 +02:00 committed by GitHub
parent a7d581aa7d
commit 2e64df671a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
37 changed files with 752 additions and 2 deletions

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { AiChatMessageSchemaRole } from './aiChatMessageSchemaRole';
/**
* Describes an Unleash AI chat message.
*/
export interface AiChatMessageSchema {
/** The message content. */
content: string;
/** The role of the message sender. */
role: AiChatMessageSchemaRole;
}

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The role of the message sender.
*/
export type AiChatMessageSchemaRole =
(typeof AiChatMessageSchemaRole)[keyof typeof AiChatMessageSchemaRole];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AiChatMessageSchemaRole = {
system: 'system',
user: 'user',
assistant: 'assistant',
} as const;

View File

@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* Describes a new Unleash AI chat message sent by the user.
*/
export interface AiChatNewMessageSchema {
/** The message content. */
message: string;
}

View File

@ -0,0 +1,23 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { AiChatMessageSchema } from './aiChatMessageSchema';
/**
* Describes an Unleash AI chat.
*/
export interface AiChatSchema {
/** The date and time of when the chat was created. */
createdAt: string;
/**
* The chat's ID. Chat IDs are incrementing integers. In other words, a more recently created chat will always have a higher ID than an older one. This ID is represented as a string since it is a BigInt.
* @pattern ^[0-9]+$
*/
id: string;
/** The messages exchanged between the user and the Unleash AI. */
messages: AiChatMessageSchema[];
/** The ID of the user that the chat belongs to. */
userId: number;
}

View File

@ -3,9 +3,9 @@
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ChangeRequestSchema } from './changeRequestSchema';
import type { ChangeRequestsSchemaItem } from './changeRequestsSchemaItem';
/**
* A list of change requests
*/
export type ChangeRequestsSchema = ChangeRequestSchema[];
export type ChangeRequestsSchema = ChangeRequestsSchemaItem[];

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ChangeRequestsSchemaItemOneOf } from './changeRequestsSchemaItemOneOf';
import type { ChangeRequestsSchemaItemOneOfFour } from './changeRequestsSchemaItemOneOfFour';
/**
* A simplified change request overview
*/
export type ChangeRequestsSchemaItem =
| ChangeRequestsSchemaItemOneOf
| ChangeRequestsSchemaItemOneOfFour;

View File

@ -0,0 +1,52 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ChangeRequestApprovalSchema } from './changeRequestApprovalSchema';
import type { ChangeRequestCommentSchema } from './changeRequestCommentSchema';
import type { ChangeRequestsSchemaItemOneOfCreatedBy } from './changeRequestsSchemaItemOneOfCreatedBy';
import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema';
import type { ChangeRequestSegmentChangeSchema } from './changeRequestSegmentChangeSchema';
import type { ChangeRequestsSchemaItemOneOfState } from './changeRequestsSchemaItemOneOfState';
export type ChangeRequestsSchemaItemOneOf = {
/**
* A list of approvals that this change request has received.
* @deprecated
*/
approvals?: ChangeRequestApprovalSchema[];
/**
* All comments that have been made on this change request.
* @deprecated
*/
comments?: ChangeRequestCommentSchema[];
/** When this change request was created. */
createdAt: string;
/** The user who created this change request. */
createdBy: ChangeRequestsSchemaItemOneOfCreatedBy;
/** The environment in which the changes should be applied. */
environment: string;
/** The list of features and their changes that relate to this change request. */
features: ChangeRequestFeatureSchema[];
/** This change requests's ID. */
id: number;
/**
* The minimum number of approvals required before this change request can be applied.
* @deprecated
*/
minApprovals: number;
/** The project this change request belongs to. */
project: string;
/**
* A list of rejections that this change request has received.
* @deprecated
*/
rejections?: ChangeRequestApprovalSchema[];
/** The list of segments and their changes that relate to this change request. */
segments: ChangeRequestSegmentChangeSchema[];
/** The current state of the change request. */
state: ChangeRequestsSchemaItemOneOfState;
/** A title describing the change request's content. */
title?: string;
};

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The user who created this change request.
*/
export type ChangeRequestsSchemaItemOneOfCreatedBy = {
/**
* The URL of the user's profile image.
* @nullable
*/
imageUrl?: string | null;
/** @nullable */
username?: string | null;
};

View File

@ -0,0 +1,54 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ChangeRequestApprovalSchema } from './changeRequestApprovalSchema';
import type { ChangeRequestCommentSchema } from './changeRequestCommentSchema';
import type { ChangeRequestsSchemaItemOneOfFourCreatedBy } from './changeRequestsSchemaItemOneOfFourCreatedBy';
import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema';
import type { ChangeRequestScheduleSchema } from './changeRequestScheduleSchema';
import type { ChangeRequestSegmentChangeSchema } from './changeRequestSegmentChangeSchema';
import type { ChangeRequestsSchemaItemOneOfFourState } from './changeRequestsSchemaItemOneOfFourState';
export type ChangeRequestsSchemaItemOneOfFour = {
/**
* A list of approvals that this change request has received.
* @deprecated
*/
approvals?: ChangeRequestApprovalSchema[];
/**
* All comments that have been made on this change request.
* @deprecated
*/
comments?: ChangeRequestCommentSchema[];
/** When this change request was created. */
createdAt: string;
/** The user who created this change request. */
createdBy: ChangeRequestsSchemaItemOneOfFourCreatedBy;
/** The environment in which the changes should be applied. */
environment: string;
/** The list of features and their changes that relate to this change request. */
features: ChangeRequestFeatureSchema[];
/** This change requests's ID. */
id: number;
/**
* The minimum number of approvals required before this change request can be applied.
* @deprecated
*/
minApprovals: number;
/** The project this change request belongs to. */
project: string;
/**
* A list of rejections that this change request has received.
* @deprecated
*/
rejections?: ChangeRequestApprovalSchema[];
schedule: ChangeRequestScheduleSchema;
/** The list of segments and their changes that relate to this change request. */
segments: ChangeRequestSegmentChangeSchema[];
/** The current state of the change request. */
state: ChangeRequestsSchemaItemOneOfFourState;
/** A title describing the change request's content. */
title?: string;
};

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The user who created this change request.
*/
export type ChangeRequestsSchemaItemOneOfFourCreatedBy = {
/**
* The URL of the user's profile image.
* @nullable
*/
imageUrl?: string | null;
/** @nullable */
username?: string | null;
};

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The current state of the change request.
*/
export type ChangeRequestsSchemaItemOneOfFourState =
(typeof ChangeRequestsSchemaItemOneOfFourState)[keyof typeof ChangeRequestsSchemaItemOneOfFourState];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChangeRequestsSchemaItemOneOfFourState = {
Scheduled: 'Scheduled',
} as const;

View File

@ -0,0 +1,21 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The current state of the change request.
*/
export type ChangeRequestsSchemaItemOneOfState =
(typeof ChangeRequestsSchemaItemOneOfState)[keyof typeof ChangeRequestsSchemaItemOneOfState];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ChangeRequestsSchemaItemOneOfState = {
Draft: 'Draft',
In_review: 'In review',
Approved: 'Approved',
Applied: 'Applied',
Cancelled: 'Cancelled',
Rejected: 'Rejected',
} as const;

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { CreateReleasePlanMilestoneStrategySchema } from './createReleasePlanMilestoneStrategySchema';
/**
* Schema representing the creation of a release plan milestone.
*/
export interface CreateReleasePlanMilestoneSchema {
/** The name of the milestone. */
name: string;
/** The order of the milestone in the release plan. */
sortOrder: number;
/** A list of strategies that are attached to this milestone. */
strategies?: CreateReleasePlanMilestoneStrategySchema[];
}

View File

@ -0,0 +1,31 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ConstraintSchema } from './constraintSchema';
import type { ParametersSchema } from './parametersSchema';
import type { CreateStrategyVariantSchema } from './createStrategyVariantSchema';
/**
* Schema representing the creation of a release plan milestone strategy.
*/
export interface CreateReleasePlanMilestoneStrategySchema {
/** A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints */
constraints?: ConstraintSchema[];
/** An object containing the parameters for the strategy */
parameters?: ParametersSchema;
/** Ids of segments to use for this strategy */
segments?: number[];
/** The order of the strategy in the list */
sortOrder: number;
/** The name of the strategy type */
strategyName: string;
/**
* A descriptive title for the strategy
* @nullable
*/
title: string | null;
/** Strategy level variants */
variants?: CreateStrategyVariantSchema[];
}

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type CreateReleasePlanTemplate401 = {
/** 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,21 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { CreateReleasePlanMilestoneSchema } from './createReleasePlanMilestoneSchema';
/**
* Schema representing the creation of a release template.
*/
export interface CreateReleasePlanTemplateSchema {
/**
* A description of the release template.
* @nullable
*/
description?: string | null;
/** A list of the milestones in this release template. */
milestones?: CreateReleasePlanMilestoneSchema[];
/** The name of the release template. */
name: string;
}

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetAllReleasePlanTemplates401 = {
/** 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 GetProjectStatus401 = {
/** 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 GetProjectStatus403 = {
/** 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 GetProjectStatus404 = {
/** 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 GetReleasePlanTemplate401 = {
/** 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

@ -22,6 +22,7 @@ export * from './actionSetEventSchemaActionSetMatchPayload';
export * from './actionSetEventSchemaActionSetMatchSource';
export * from './actionSetEventSchemaState';
export * from './actionSetEventsSchema';
export * from './actionableChangeRequestsSchema';
export * from './actionsListSchema';
export * from './actionsSchema';
export * from './actionsSchemaMatch';
@ -93,6 +94,10 @@ export * from './advancedPlaygroundRequestSchema';
export * from './advancedPlaygroundRequestSchemaProjects';
export * from './advancedPlaygroundResponseSchema';
export * from './advancedPlaygroundResponseSchemaWarnings';
export * from './aiChatMessageSchema';
export * from './aiChatMessageSchemaRole';
export * from './aiChatNewMessageSchema';
export * from './aiChatSchema';
export * from './apiTokenSchema';
export * from './apiTokenSchemaType';
export * from './apiTokensSchema';
@ -276,6 +281,13 @@ export * from './changeRequestStateSchemaOneOfThreeState';
export * from './changeRequestUpdateTitleSchema';
export * from './changeRequestsCountSchema';
export * from './changeRequestsSchema';
export * from './changeRequestsSchemaItem';
export * from './changeRequestsSchemaItemOneOf';
export * from './changeRequestsSchemaItemOneOfCreatedBy';
export * from './changeRequestsSchemaItemOneOfFour';
export * from './changeRequestsSchemaItemOneOfFourCreatedBy';
export * from './changeRequestsSchemaItemOneOfFourState';
export * from './changeRequestsSchemaItemOneOfState';
export * from './changeRoleForGroup401';
export * from './changeRoleForGroup403';
export * from './changeRoleForGroup404';
@ -389,6 +401,10 @@ export * from './createProjectSchemaMode';
export * from './createPublicSignupToken400';
export * from './createPublicSignupToken401';
export * from './createPublicSignupToken403';
export * from './createReleasePlanMilestoneSchema';
export * from './createReleasePlanMilestoneStrategySchema';
export * from './createReleasePlanTemplate401';
export * from './createReleasePlanTemplateSchema';
export * from './createRole400';
export * from './createRole401';
export * from './createRole403';
@ -608,6 +624,7 @@ export * from './getAllApiTokens403';
export * from './getAllEnvironments401';
export * from './getAllEnvironments403';
export * from './getAllFeatureTypes401';
export * from './getAllReleasePlanTemplates401';
export * from './getAllStrategies401';
export * from './getApiTokensByName401';
export * from './getApiTokensByName403';
@ -726,6 +743,9 @@ export * from './getProjectInsights404';
export * from './getProjectOverview401';
export * from './getProjectOverview403';
export * from './getProjectOverview404';
export * from './getProjectStatus401';
export * from './getProjectStatus403';
export * from './getProjectStatus404';
export * from './getProjectUsers401';
export * from './getProjectUsers403';
export * from './getProjects401';
@ -736,6 +756,7 @@ export * from './getPublicSignupToken403';
export * from './getRawFeatureMetrics401';
export * from './getRawFeatureMetrics403';
export * from './getRawFeatureMetrics404';
export * from './getReleasePlanTemplate401';
export * from './getRoleById400';
export * from './getRoleById401';
export * from './getRoleById404';
@ -955,6 +976,8 @@ export * from './profileSchema';
export * from './projectAccessConfigurationSchema';
export * from './projectAccessConfigurationSchemaRolesItem';
export * from './projectAccessSchema';
export * from './projectActivitySchema';
export * from './projectActivitySchemaItem';
export * from './projectAddAccessSchema';
export * from './projectAddRoleAccessSchema';
export * from './projectAddRoleAccessSchemaGroupsItem';
@ -998,6 +1021,7 @@ export * from './projectSettingsSchema';
export * from './projectSettingsSchemaDefaultStickiness';
export * from './projectSettingsSchemaMode';
export * from './projectStatsSchema';
export * from './projectStatusSchema';
export * from './projectUsersSchema';
export * from './projectsSchema';
export * from './provideFeedbackSchema';
@ -1017,6 +1041,12 @@ export * from './registerFrontendClient404';
export * from './registerFrontendMetrics400';
export * from './registerFrontendMetrics401';
export * from './registerFrontendMetrics404';
export * from './releasePlanMilestoneSchema';
export * from './releasePlanMilestoneStrategySchema';
export * from './releasePlanSchema';
export * from './releasePlanSchemaDiscriminator';
export * from './releasePlanTemplateSchema';
export * from './releasePlanTemplateSchemaDiscriminator';
export * from './removeEnvironment400';
export * from './removeEnvironment401';
export * from './removeEnvironmentFromProject400';
@ -1169,6 +1199,8 @@ export * from './strategyVariantSchema';
export * from './strategyVariantSchemaPayload';
export * from './strategyVariantSchemaPayloadType';
export * from './strategyVariantSchemaWeightType';
export * from './subscribeEmailSubscription401';
export * from './subscribeEmailSubscription404';
export * from './tagSchema';
export * from './tagTypeSchema';
export * from './tagTypesSchema';
@ -1204,6 +1236,7 @@ export * from './trafficUsageApiDataSchemaDaysItemTrafficTypesItem';
export * from './trafficUsageDataSegmentedSchema';
export * from './uiConfigSchema';
export * from './uiConfigSchemaAuthenticationType';
export * from './uiConfigSchemaBilling';
export * from './uiConfigSchemaFlags';
export * from './uiConfigSchemaLinksItem';
export * from './uiObservability401';
@ -1211,6 +1244,8 @@ export * from './uiObservability403';
export * from './uncomplete401';
export * from './uncomplete403';
export * from './uncomplete404';
export * from './unsubscribeEmailSubscription401';
export * from './unsubscribeEmailSubscription404';
export * from './updateAddon400';
export * from './updateAddon401';
export * from './updateAddon403';

View File

@ -0,0 +1,11 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectActivitySchemaItem } from './projectActivitySchemaItem';
/**
* An array of project activity information. Each item contains a date and the total number of activities for that date.
*/
export type ProjectActivitySchema = ProjectActivitySchemaItem[];

View File

@ -0,0 +1,15 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectActivitySchemaItem = {
/**
* Activity count
* @minimum 0
*/
count: number;
/** Activity date */
date: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectActivitySchema } from './projectActivitySchema';
/**
* Schema representing the overall status of a project, including an array of activity records. Each record in the activity array contains a date and a count, providing a snapshot of the projects activity level over time.
*/
export interface ProjectStatusSchema {
/** Array of activity records with date and count, representing the projects daily activity statistics. */
activityCountByDate: ProjectActivitySchema;
}

View File

@ -0,0 +1,24 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ReleasePlanMilestoneStrategySchema } from './releasePlanMilestoneStrategySchema';
/**
* Schema representing the creation of a release plan milestone.
*/
export interface ReleasePlanMilestoneSchema {
/**
* The milestone's ID. Milestone IDs are ulids.
*/
id: string;
/** The name of the milestone. */
name: string;
/** The ID of the release plan/template that this milestone belongs to. */
releasePlanDefinitionId: string;
/** The order of the milestone in the release plan. */
sortOrder: number;
/** A list of strategies that are attached to this milestone. */
strategies?: ReleasePlanMilestoneStrategySchema[];
}

View File

@ -0,0 +1,37 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ConstraintSchema } from './constraintSchema';
import type { ParametersSchema } from './parametersSchema';
import type { CreateStrategyVariantSchema } from './createStrategyVariantSchema';
/**
* Schema representing the creation of a release plan milestone strategy.
*/
export interface ReleasePlanMilestoneStrategySchema {
/** A list of the constraints attached to the strategy. See https://docs.getunleash.io/reference/strategy-constraints */
constraints?: ConstraintSchema[];
/**
* The milestone strategy's ID. Milestone strategy IDs are ulids.
*/
id: string;
/** The ID of the milestone that this strategy belongs to. */
milestoneId: string;
/** An object containing the parameters for the strategy */
parameters?: ParametersSchema;
/** Ids of segments to use for this strategy */
segments?: number[];
/** The order of the strategy in the list */
sortOrder: number;
/** The name of the strategy type */
strategyName: string;
/**
* A descriptive title for the strategy
* @nullable
*/
title: string | null;
/** Strategy level variants */
variants?: CreateStrategyVariantSchema[];
}

View File

@ -0,0 +1,51 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ReleasePlanSchemaDiscriminator } from './releasePlanSchemaDiscriminator';
import type { ReleasePlanMilestoneSchema } from './releasePlanMilestoneSchema';
/**
* Schema representing the creation of a release plan.
*/
export interface ReleasePlanSchema {
/**
* The ID of the currently active milestone in this release plan.
* @nullable
*/
activeMilestoneId?: string | null;
/**
* The date and time that the release template was created.
*/
createdAt: string;
/**
* Release template: The ID of the user who created this template.
*/
createdByUserId: number;
/**
* A description of the release template.
* @nullable
*/
description?: string | null;
/**
* A field to distinguish between release plans and release templates.
*/
discriminator: ReleasePlanSchemaDiscriminator;
/** The environment that this release plan is for. */
environment: string;
/** The name of the feature that uses this release plan. */
featureName: string;
/**
* The release plan/template's ID. Release template IDs are ulids.
*/
id: string;
/** A list of the milestones in this release template. */
milestones: ReleasePlanMilestoneSchema[];
/** The name of the release template. */
name: string;
/**
* The ID of the release plan template that this release plan is based on.
*/
releasePlanTemplateId: string;
}

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A field to distinguish between release plans and release templates.
*/
export type ReleasePlanSchemaDiscriminator =
(typeof ReleasePlanSchemaDiscriminator)[keyof typeof ReleasePlanSchemaDiscriminator];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ReleasePlanSchemaDiscriminator = {
plan: 'plan',
} as const;

View File

@ -0,0 +1,38 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ReleasePlanTemplateSchemaDiscriminator } from './releasePlanTemplateSchemaDiscriminator';
import type { ReleasePlanMilestoneSchema } from './releasePlanMilestoneSchema';
/**
* Schema representing the creation of a release template.
*/
export interface ReleasePlanTemplateSchema {
/**
* The date and time that the release template was created.
*/
createdAt: string;
/**
* Release template: The ID of the user who created this template.
*/
createdByUserId: number;
/**
* A description of the release template.
* @nullable
*/
description?: string | null;
/**
* A field to distinguish between release plans and release templates.
*/
discriminator: ReleasePlanTemplateSchemaDiscriminator;
/**
* The release plan/template's ID. Release template IDs are ulids.
*/
id: string;
/** A list of the milestones in this release template. */
milestones?: ReleasePlanMilestoneSchema[];
/** The name of the release template. */
name: string;
}

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A field to distinguish between release plans and release templates.
*/
export type ReleasePlanTemplateSchemaDiscriminator =
(typeof ReleasePlanTemplateSchemaDiscriminator)[keyof typeof ReleasePlanTemplateSchemaDiscriminator];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ReleasePlanTemplateSchemaDiscriminator = {
template: 'template',
} as const;

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type SubscribeEmailSubscription401 = {
/** 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 SubscribeEmailSubscription404 = {
/** 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

@ -4,6 +4,7 @@
* See `gen:api` script in package.json
*/
import type { UiConfigSchemaAuthenticationType } from './uiConfigSchemaAuthenticationType';
import type { UiConfigSchemaBilling } from './uiConfigSchemaBilling';
import type { UiConfigSchemaFlags } from './uiConfigSchemaFlags';
import type { UiConfigSchemaLinksItem } from './uiConfigSchemaLinksItem';
import type { ResourceLimitsSchema } from './resourceLimitsSchema';
@ -17,6 +18,8 @@ export interface UiConfigSchema {
authenticationType?: UiConfigSchemaAuthenticationType;
/** The base URI path at which this Unleash instance is listening. */
baseUriPath: string;
/** The billing model in use for this Unleash instance. */
billing?: UiConfigSchemaBilling;
/** Whether password authentication should be disabled or not. */
disablePasswordAuth?: boolean;
/** Whether this instance can send out emails or not. */

View File

@ -0,0 +1,17 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The billing model in use for this Unleash instance.
*/
export type UiConfigSchemaBilling =
(typeof UiConfigSchemaBilling)[keyof typeof UiConfigSchemaBilling];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UiConfigSchemaBilling = {
subscription: 'subscription',
'pay-as-you-go': 'pay-as-you-go',
} as const;

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type UnsubscribeEmailSubscription401 = {
/** 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 UnsubscribeEmailSubscription404 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};