mirror of https://github.com/Unleash/unleash
chore: generate types (#5074)
Generate orval types --------- Signed-off-by: andreas-unleash <andreas@getunleash.ai>pull/5077/head
parent
06c85b16b7
commit
c5914a077f
47 changed files with 498 additions and 45 deletions
@ -1,10 +0,0 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfTwozeroPayload = { |
||||
/** The name of the feature we want to remove dependency on. */ |
||||
feature: string; |
||||
}; |
@ -1,10 +0,0 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ChangeRequestCreateSchemaOneOfTwofivePayload = { |
||||
/** The name of the feature we want to remove dependency on. */ |
||||
feature: string; |
||||
}; |
@ -1,10 +0,0 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfTwofivePayload = { |
||||
/** The name of the feature we want to remove dependency on. */ |
||||
feature: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type CheckDependenciesExist401 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type CheckDependenciesExist403 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type CreateMessageBanner400 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type CreateMessageBanner401 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type CreateMessageBanner403 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type CreateMessageBanner415 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,29 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
/** |
||||
* Describes the properties required to create or update a message banner. |
||||
*/ |
||||
export interface CreateMessageBannerSchema { |
||||
/** The message to display to all users. Supports markdown. */ |
||||
message: string; |
||||
/** Whether the message banner should be displayed to all users. If not specified, defaults to true. */ |
||||
enabled?: boolean; |
||||
/** The variant of the message banner. One of "info", "warning", "error", or "success". If not specified, defaults to "info". */ |
||||
variant?: string; |
||||
/** Whether the message banner should be sticky on the screen. If not specified, defaults to `false`. */ |
||||
sticky?: boolean; |
||||
/** The icon to display on the message banner. Can be one of https://fonts.google.com/icons. If not specified, this will be the default icon for the variant. If "none", no icon will be displayed. */ |
||||
icon?: string | null; |
||||
/** The link to display on the message banner. Can either be an absolute or a relative link (e.g. absolute: "https://example.com" or relative: "/admin/service-accounts"). If "dialog", will display a dialog when clicked. If not specified, no link will be displayed. */ |
||||
link?: string | null; |
||||
/** The text to display on the link. If not specified, will be displayed as "More info". */ |
||||
linkText?: string | null; |
||||
/** The title to display on the dialog. If not specified, this will be the same as `linkText`. */ |
||||
dialogTitle?: string | null; |
||||
/** The markdown to display on the dialog. If not specified, no dialog will be displayed. */ |
||||
dialog?: string | null; |
||||
} |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type DeleteMessageBanner401 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type DeleteMessageBanner403 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type DeleteMessageBanner404 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,10 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
/** |
||||
* `true` when any dependencies exist, `false` when no dependencies exist. |
||||
*/ |
||||
export type DependenciesExistSchema = boolean; |
@ -0,0 +1,16 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
import type { DependentFeatureSchema } from './dependentFeatureSchema'; |
||||
|
||||
/** |
||||
* Feature dependency connection between a child feature and its dependencies |
||||
*/ |
||||
export interface FeatureDependenciesSchema { |
||||
/** The name of the child feature. */ |
||||
feature: string; |
||||
/** List of parent features for the child feature */ |
||||
dependencies: DependentFeatureSchema[]; |
||||
} |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type GetMessageBanners401 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,17 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
/** |
||||
* The number of changes to the production environment in the last 30, 60 and 90 days |
||||
*/ |
||||
export type InstanceAdminStatsSchemaProductionChanges = { |
||||
/** The number of changes in production in the last 30 days */ |
||||
last30?: number; |
||||
/** The number of changes in production in the last 60 days */ |
||||
last60?: number; |
||||
/** The number of changes in production in the last 90 days */ |
||||
last90?: number; |
||||
}; |
@ -0,0 +1,33 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
/** |
||||
* An object describing a message banner to be displayed to all users. |
||||
*/ |
||||
export interface MessageBannerSchema { |
||||
/** The message banner's ID. Message banner IDs are incrementing integers. In other words, a more recently created message banner will always have a higher ID than an older one. */ |
||||
id: number; |
||||
/** The message to display to all users. Supports markdown. */ |
||||
message: string; |
||||
/** Whether the message banner should be displayed to all users. If not specified, defaults to true. */ |
||||
enabled?: boolean; |
||||
/** The variant of the message banner. One of "info", "warning", "error", or "success". If not specified, defaults to "info". */ |
||||
variant?: string; |
||||
/** Whether the message banner should be sticky on the screen. If not specified, defaults to `false`. */ |
||||
sticky?: boolean; |
||||
/** The icon to display on the message banner. Can be one of https://fonts.google.com/icons. If not specified, this will be the default icon for the variant. If "none", no icon will be displayed. */ |
||||
icon?: string | null; |
||||
/** The link to display on the message banner. Can either be an absolute or a relative link (e.g. absolute: "https://example.com" or relative: "/admin/service-accounts"). If "dialog", will display a dialog when clicked. If not specified, no link will be displayed. */ |
||||
link?: string | null; |
||||
/** The text to display on the link. If not specified, will be displayed as "More info". */ |
||||
linkText?: string | null; |
||||
/** The title to display on the dialog. If not specified, this will be the same as `linkText`. */ |
||||
dialogTitle?: string | null; |
||||
/** The markdown to display on the dialog. If not specified, no dialog will be displayed. */ |
||||
dialog?: string | null; |
||||
/** The date and time of when the message banner was created. */ |
||||
createdAt: string; |
||||
} |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
import type { MessageBannerSchema } from './messageBannerSchema'; |
||||
|
||||
/** |
||||
* A response model with a list of message banners. |
||||
*/ |
||||
export interface MessageBannersSchema { |
||||
/** A list of message banners. */ |
||||
messageBanners: MessageBannerSchema[]; |
||||
} |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
import type { ProjectAccessConfigurationSchemaRolesItem } from './projectAccessConfigurationSchemaRolesItem'; |
||||
|
||||
/** |
||||
* An object describing roles for a project and what users and groups are part of that role. |
||||
*/ |
||||
export interface ProjectAccessConfigurationSchema { |
||||
/** A list of roles that are available within this project. */ |
||||
roles: ProjectAccessConfigurationSchemaRolesItem[]; |
||||
} |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ProjectAccessConfigurationSchemaRolesItem = { |
||||
/** The id of the role. */ |
||||
id?: number; |
||||
/** A list of group ids that will be assigned this role */ |
||||
groups?: number[]; |
||||
/** A list of user ids that will be assigned this role */ |
||||
users?: number[]; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type SetProjectAccess401 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type SetProjectAccess403 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type UpdateMessageBanner400 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type UpdateMessageBanner401 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type UpdateMessageBanner403 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type UpdateMessageBanner404 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type UpdateMessageBanner415 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ValidateArchiveFeatures400 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ValidateArchiveFeatures401 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ValidateArchiveFeatures403 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
@ -0,0 +1,14 @@ |
||||
/** |
||||
* Generated by Orval |
||||
* Do not edit manually. |
||||
* See `gen:api` script in package.json |
||||
*/ |
||||
|
||||
export type ValidateArchiveFeatures415 = { |
||||
/** The ID of the error instance */ |
||||
id?: string; |
||||
/** The name of the error kind */ |
||||
name?: string; |
||||
/** A description of what went wrong. */ |
||||
message?: string; |
||||
}; |
Loading…
Reference in new issue