mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	chore: generate orval types (#6224)
This commit is contained in:
		
							parent
							
								
									29d27b73ad
								
							
						
					
					
						commit
						e50574dbef
					
				| @ -10,22 +10,22 @@ import type { ActionsSchemaMatch } from './actionsSchemaMatch'; | ||||
|  * A response model with an identifiable action set. | ||||
|  */ | ||||
| export interface ActionsSchema { | ||||
|     /** The list of actions to execute in sequential order when the action set is triggered */ | ||||
|     /** The list of actions to execute in sequential order when the action set is triggered. */ | ||||
|     actions: ActionSchema[]; | ||||
|     /** The id of the service account that will execute the action */ | ||||
|     actorId: number; | ||||
|     /** The date and time of when the action was created. */ | ||||
|     createdAt?: string; | ||||
|     /** The id of user that created this action set */ | ||||
|     createdByUserId?: number; | ||||
|     /** The date and time of when the action set was created. */ | ||||
|     createdAt: string; | ||||
|     /** The ID of the user that created this action set. */ | ||||
|     createdByUserId: number; | ||||
|     /** Whether this action set is enabled or not */ | ||||
|     enabled?: boolean; | ||||
|     /** The id of the action set */ | ||||
|     /** The ID of the action set. */ | ||||
|     id: number; | ||||
|     /** Defines a matching rule for the observable event that will trigger the action set */ | ||||
|     match: ActionsSchemaMatch; | ||||
|     /** The name of the action set */ | ||||
|     name: string; | ||||
|     /** The project of the action set is added to */ | ||||
|     /** The project that this action set belongs to. */ | ||||
|     project: string; | ||||
| } | ||||
|  | ||||
| @ -20,6 +20,4 @@ export interface CreateActionsSchema { | ||||
|     match: CreateActionsSchemaMatch; | ||||
|     /** The name of the action set */ | ||||
|     name: string; | ||||
|     /** The project of the action set is added to */ | ||||
|     project: string; | ||||
| } | ||||
|  | ||||
							
								
								
									
										15
									
								
								frontend/src/openapi/models/createPatSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								frontend/src/openapi/models/createPatSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Describes the properties required to create a [personal access token](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens), or PAT. PATs are automatically scoped to the authenticated user.
 | ||||
|  */ | ||||
| export interface CreatePatSchema { | ||||
|     /** The PAT's description. */ | ||||
|     description: string; | ||||
|     /** The PAT's expiration date. */ | ||||
|     expiresAt: string; | ||||
| } | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/deleteInactiveUsers400.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/deleteInactiveUsers400.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type DeleteInactiveUsers400 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/deleteInactiveUsers401.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/deleteInactiveUsers401.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type DeleteInactiveUsers401 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/deleteInactiveUsers403.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/deleteInactiveUsers403.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type DeleteInactiveUsers403 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
| @ -21,4 +21,6 @@ export type ExecutiveSummarySchemaProjectFlagTrendsItem = { | ||||
|     timeToProduction?: number; | ||||
|     /** The number of all flags on a particular day */ | ||||
|     total: number; | ||||
|     /** Year and week in a given year for which the stats were calculated */ | ||||
|     week: string; | ||||
| }; | ||||
|  | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/getProjectApplications401.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/getProjectApplications401.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type GetProjectApplications401 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/getProjectApplications403.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/getProjectApplications403.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type GetProjectApplications403 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/getProjectApplications404.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/getProjectApplications404.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type GetProjectApplications404 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
							
								
								
									
										13
									
								
								frontend/src/openapi/models/idsSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								frontend/src/openapi/models/idsSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * Used for bulk deleting multiple ids | ||||
|  */ | ||||
| export interface IdsSchema { | ||||
|     /** Ids, for instance userid */ | ||||
|     ids: number[]; | ||||
| } | ||||
							
								
								
									
										25
									
								
								frontend/src/openapi/models/inactiveUserSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								frontend/src/openapi/models/inactiveUserSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * A Unleash user that has been flagged as inactive | ||||
|  */ | ||||
| export interface InactiveUserSchema { | ||||
|     /** The user was created at this time */ | ||||
|     createdAt?: string; | ||||
|     /** Email of the user */ | ||||
|     email?: string; | ||||
|     /** The user id */ | ||||
|     id: number; | ||||
|     /** Name of the user */ | ||||
|     name?: string | null; | ||||
|     /** The last time this user's PAT token (if any) was used */ | ||||
|     patSeenAt?: string | null; | ||||
|     /** The last time this user logged in */ | ||||
|     seenAt?: string | null; | ||||
|     /** A unique username for the user */ | ||||
|     username?: string | null; | ||||
| } | ||||
							
								
								
									
										16
									
								
								frontend/src/openapi/models/inactiveUsersSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								frontend/src/openapi/models/inactiveUsersSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| import type { InactiveUserSchema } from './inactiveUserSchema'; | ||||
| 
 | ||||
| /** | ||||
|  * A list of users that has been flagged as inactive | ||||
|  */ | ||||
| export interface InactiveUsersSchema { | ||||
|     /** The list of users that are flagged as inactive */ | ||||
|     inactiveUsers: InactiveUserSchema[]; | ||||
|     /** The version of this schema. Used to keep track of compatibility */ | ||||
|     version: number; | ||||
| } | ||||
| @ -345,6 +345,7 @@ export * from './createInvitedUserSchema'; | ||||
| export * from './createPat401'; | ||||
| export * from './createPat403'; | ||||
| export * from './createPat404'; | ||||
| export * from './createPatSchema'; | ||||
| export * from './createProject400'; | ||||
| export * from './createProject401'; | ||||
| export * from './createProject403'; | ||||
| @ -441,6 +442,9 @@ export * from './deleteFeatures403'; | ||||
| export * from './deleteGroup400'; | ||||
| export * from './deleteGroup401'; | ||||
| export * from './deleteGroup403'; | ||||
| export * from './deleteInactiveUsers400'; | ||||
| export * from './deleteInactiveUsers401'; | ||||
| export * from './deleteInactiveUsers403'; | ||||
| export * from './deletePat401'; | ||||
| export * from './deletePat403'; | ||||
| export * from './deletePat404'; | ||||
| @ -625,6 +629,9 @@ export * from './getProjectAccess403'; | ||||
| export * from './getProjectApiTokens401'; | ||||
| export * from './getProjectApiTokens403'; | ||||
| export * from './getProjectApiTokens404'; | ||||
| export * from './getProjectApplications401'; | ||||
| export * from './getProjectApplications403'; | ||||
| export * from './getProjectApplications404'; | ||||
| export * from './getProjectDora401'; | ||||
| export * from './getProjectDora403'; | ||||
| export * from './getProjectDora404'; | ||||
| @ -699,10 +706,13 @@ export * from './healthOverviewSchemaMode'; | ||||
| export * from './healthReportSchema'; | ||||
| export * from './healthReportSchemaMode'; | ||||
| export * from './idSchema'; | ||||
| export * from './idsSchema'; | ||||
| export * from './importToggles404'; | ||||
| export * from './importTogglesSchema'; | ||||
| export * from './importTogglesValidateItemSchema'; | ||||
| export * from './importTogglesValidateSchema'; | ||||
| export * from './inactiveUserSchema'; | ||||
| export * from './inactiveUsersSchema'; | ||||
| export * from './incomingWebhookSchema'; | ||||
| export * from './incomingWebhookTokenSchema'; | ||||
| export * from './incomingWebhookTokensSchema'; | ||||
| @ -813,6 +823,9 @@ export * from './projectAddAccessSchema'; | ||||
| export * from './projectAddRoleAccessSchema'; | ||||
| export * from './projectAddRoleAccessSchemaGroupsItem'; | ||||
| export * from './projectAddRoleAccessSchemaUsersItem'; | ||||
| export * from './projectApplicationSchema'; | ||||
| export * from './projectApplicationSdkSchema'; | ||||
| export * from './projectApplicationsSchema'; | ||||
| export * from './projectCreatedSchema'; | ||||
| export * from './projectCreatedSchemaMode'; | ||||
| export * from './projectDoraMetricsSchema'; | ||||
| @ -845,6 +858,7 @@ export * from './pushVariantsSchema'; | ||||
| export * from './reactivateStrategy401'; | ||||
| export * from './reactivateStrategy403'; | ||||
| export * from './reactivateStrategy404'; | ||||
| export * from './recordUiErrorSchema'; | ||||
| export * from './registerClientMetrics400'; | ||||
| export * from './registerFrontendClient400'; | ||||
| export * from './registerFrontendClient401'; | ||||
| @ -1007,6 +1021,8 @@ export * from './uiConfigSchema'; | ||||
| export * from './uiConfigSchemaAuthenticationType'; | ||||
| export * from './uiConfigSchemaFlags'; | ||||
| export * from './uiConfigSchemaLinksItem'; | ||||
| export * from './uiObservability401'; | ||||
| export * from './uiObservability403'; | ||||
| export * from './updateAddon400'; | ||||
| export * from './updateAddon401'; | ||||
| export * from './updateAddon403'; | ||||
|  | ||||
| @ -5,17 +5,21 @@ | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * An overview of a [Personal Access Token](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens).
 | ||||
|  * Describes a [personal access token](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens), or PAT. PATs are automatically scoped to the authenticated user.
 | ||||
|  */ | ||||
| export interface PatSchema { | ||||
|     /** When the token was created. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ | ||||
|     createdAt?: string; | ||||
|     /** The token's expiration date. */ | ||||
|     expiresAt?: string; | ||||
|     /** The unique identification number for this Personal Access Token. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ | ||||
|     id?: number; | ||||
|     /** The token used for authentication. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ | ||||
|     /** The date and time of when the PAT was created. */ | ||||
|     createdAt: string; | ||||
|     /** The PAT's description. */ | ||||
|     description: string; | ||||
|     /** The PAT's expiration date. */ | ||||
|     expiresAt: string; | ||||
|     /** The PAT's ID. PAT IDs are incrementing integers. In other words, a more recently created PAT will always have a higher ID than an older one. */ | ||||
|     id: number; | ||||
|     /** The token used for authentication. It is automatically generated by Unleash when the PAT is created and that is the only time this property is returned. */ | ||||
|     secret?: string; | ||||
|     /** When the token was last seen/used to authenticate with. `null` if it has not been used yet. (This property is set by Unleash when the token is created and cannot be set manually: if you provide a value when creating a PAT, Unleash will ignore it.) */ | ||||
|     /** When the PAT was last seen/used to authenticate with. `null` if it has not been used yet. */ | ||||
|     seenAt?: string | null; | ||||
|     /** The ID of the user this PAT belongs to. */ | ||||
|     userId?: number; | ||||
| } | ||||
|  | ||||
| @ -6,9 +6,9 @@ | ||||
| import type { PatSchema } from './patSchema'; | ||||
| 
 | ||||
| /** | ||||
|  * Contains a collection of [Personal Access Tokens](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens).
 | ||||
|  * Contains a collection of [personal access tokens](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens), or PATs. PATs are automatically scoped to the authenticated user.
 | ||||
|  */ | ||||
| export interface PatsSchema { | ||||
|     /** A collection of Personal Access Tokens */ | ||||
|     /** A collection of PATs. */ | ||||
|     pats?: PatSchema[]; | ||||
| } | ||||
|  | ||||
							
								
								
									
										20
									
								
								frontend/src/openapi/models/projectApplicationSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								frontend/src/openapi/models/projectApplicationSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| import type { ProjectApplicationSdkSchema } from './projectApplicationSdkSchema'; | ||||
| 
 | ||||
| /** | ||||
|  * A project application instance. | ||||
|  */ | ||||
| export interface ProjectApplicationSchema { | ||||
|     /** The environments that the application is using. This is the same as the environment in the SDK configuration. */ | ||||
|     environments: string[]; | ||||
|     /** The instances of the application that are using the SDK. */ | ||||
|     instances: string[]; | ||||
|     /** Name of the application that is using the SDK. This is the same as the appName in the SDK configuration. */ | ||||
|     name: string; | ||||
|     /** The SDKs that the application is using. */ | ||||
|     sdks: ProjectApplicationSdkSchema[]; | ||||
| } | ||||
							
								
								
									
										15
									
								
								frontend/src/openapi/models/projectApplicationSdkSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								frontend/src/openapi/models/projectApplicationSdkSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * A project application instance SDK. | ||||
|  */ | ||||
| export interface ProjectApplicationSdkSchema { | ||||
|     /** Name of the SDK package that the application is using. */ | ||||
|     name: string; | ||||
|     /** The versions of the SDK that the application is using. */ | ||||
|     versions: string[]; | ||||
| } | ||||
							
								
								
									
										11
									
								
								frontend/src/openapi/models/projectApplicationsSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								frontend/src/openapi/models/projectApplicationsSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| import type { ProjectApplicationSchema } from './projectApplicationSchema'; | ||||
| 
 | ||||
| /** | ||||
|  * A list of project applications | ||||
|  */ | ||||
| export type ProjectApplicationsSchema = ProjectApplicationSchema[]; | ||||
| @ -9,6 +9,8 @@ import type { ProjectSchemaMode } from './projectSchemaMode'; | ||||
|  * A definition of the project used for projects listing purposes | ||||
|  */ | ||||
| export interface ProjectSchema { | ||||
|     /** The average time from when a feature was created to when it was enabled in the "production" environment during the current window */ | ||||
|     avgTimeToProduction?: number; | ||||
|     /** When this project was created. */ | ||||
|     createdAt?: string; | ||||
|     /** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */ | ||||
|  | ||||
							
								
								
									
										15
									
								
								frontend/src/openapi/models/recordUiErrorSchema.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								frontend/src/openapi/models/recordUiErrorSchema.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| /** | ||||
|  * An object representing an error from the UI | ||||
|  */ | ||||
| export interface RecordUiErrorSchema { | ||||
|     /** The error message */ | ||||
|     errorMessage: string; | ||||
|     /** The stack trace of the error */ | ||||
|     errorStack?: string; | ||||
| } | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/uiObservability401.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/uiObservability401.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type UiObservability401 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
							
								
								
									
										14
									
								
								frontend/src/openapi/models/uiObservability403.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/src/openapi/models/uiObservability403.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| /** | ||||
|  * Generated by Orval | ||||
|  * Do not edit manually. | ||||
|  * See `gen:api` script in package.json | ||||
|  */ | ||||
| 
 | ||||
| export type UiObservability403 = { | ||||
|     /** The ID of the error instance */ | ||||
|     id?: string; | ||||
|     /** A description of what went wrong. */ | ||||
|     message?: string; | ||||
|     /** The name of the error kind */ | ||||
|     name?: string; | ||||
| }; | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user