1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-28 19:06:12 +01:00

chore: generate orval types (#6224)

This commit is contained in:
Jaanus Sellin 2024-02-13 15:22:08 +02:00 committed by GitHub
parent 29d27b73ad
commit e50574dbef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
23 changed files with 284 additions and 20 deletions

View File

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

View File

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

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

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

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

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

View File

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

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

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

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

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

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

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

View File

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

View File

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

View File

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

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

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

View 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[];

View File

@ -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 */

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

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

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