mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-23 13:46:45 +02:00
fix: orval for ESM (#10086)
updated Orval and configured it to be compatible with v7. --------- Co-authored-by: Thomas Heartman <thomas@getunleash.io>
This commit is contained in:
parent
385f4ab1ad
commit
553ffc62b7
@ -5,7 +5,9 @@
|
||||
* Run `yarn gen:api` to generate the client.
|
||||
* We may use methods (src/openapi/apis) for new features in the future.
|
||||
*/
|
||||
module.exports = {
|
||||
import { defineConfig } from 'orval';
|
||||
|
||||
export default defineConfig({
|
||||
unleashApi: {
|
||||
output: {
|
||||
mode: 'tags',
|
||||
@ -14,6 +16,7 @@ module.exports = {
|
||||
schemas: 'models',
|
||||
client: 'swr',
|
||||
clean: true,
|
||||
propertySortOrder: 'Alphabetical',
|
||||
// mock: true,
|
||||
override: {
|
||||
mutator: {
|
||||
@ -36,4 +39,4 @@ module.exports = {
|
||||
afterAllFilesWrite: './scripts/clean_orval_generated.sh',
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
@ -30,9 +30,9 @@
|
||||
"ts:check": "tsc",
|
||||
"e2e": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-fetch\" yarn run cypress open --config baseUrl='http://localhost:3000' --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
|
||||
"e2e:oss": "yarn --cwd frontend run cypress run --spec \"cypress/oss/**/*.spec.ts\" --config baseUrl=\"http://localhost:${EXPOSED_PORT:-4242}\" --env AUTH_USER=admin,AUTH_PASSWORD=unleash4all",
|
||||
"gen:api": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-fetch\" orval --config orval.config.js",
|
||||
"gen:api:demo": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-fetch\" UNLEASH_OPENAPI_URL=https://app.unleash-hosted.com/demo/docs/openapi.json yarn run gen:api",
|
||||
"gen:api:sandbox": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-fetch\" UNLEASH_OPENAPI_URL=https://sandbox.getunleash.io/demo2/docs/openapi.json yarn run gen:api",
|
||||
"gen:api": "orval --config orval.config.ts",
|
||||
"gen:api:demo": "UNLEASH_OPENAPI_URL=https://app.unleash-hosted.com/demo/docs/openapi.json yarn run gen:api",
|
||||
"gen:api:sandbox": "UNLEASH_OPENAPI_URL=https://sandbox.getunleash.io/demo2/docs/openapi.json yarn run gen:api",
|
||||
"gen:api:clean": "yarn gen:api && rm -rf src/openapi/apis && sed -i.bak '1q' src/openapi/index.ts && rm src/openapi/index.ts.bak"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -95,7 +95,7 @@
|
||||
"lodash.omit": "4.5.0",
|
||||
"millify": "^6.0.0",
|
||||
"msw": "2.7.3",
|
||||
"orval": "^6.31.0",
|
||||
"orval": "^7.9.0",
|
||||
"pkginfo": "0.4.1",
|
||||
"plausible-tracker": "0.3.9",
|
||||
"prop-types": "15.8.1",
|
||||
|
@ -5,10 +5,11 @@ rm -rf src/openapi/apis
|
||||
|
||||
# Remove all but last line from index.ts
|
||||
echo "Cleaning index.ts..."
|
||||
echo "export * from './models';" > src/openapi/index.ts
|
||||
echo "export * from './models/index';" > src/openapi/index.ts
|
||||
echo '' >> src/openapi/index.ts
|
||||
|
||||
echo "Formatting..."
|
||||
yarn fmt
|
||||
./node_modules/.bin/biome lint --write --unsafe src/openapi
|
||||
|
||||
echo "Done!"
|
||||
|
@ -74,7 +74,6 @@ export const LifecycleInsights: FC = () => {
|
||||
const projects = state[`${statePrefix}project`]?.values ?? [allOption.id];
|
||||
const { insights, loading } = useInsights();
|
||||
|
||||
// @ts-expect-error (lifecycleMetrics): The schema hasn't been updated yet.
|
||||
const { lifecycleTrends } = insights;
|
||||
|
||||
return (
|
||||
|
@ -27,6 +27,7 @@ export const useInsights = (
|
||||
return {
|
||||
insights:
|
||||
data ||
|
||||
/* @ts-expect-error FIXME (lifecycleMetrics): lifecycle trends */
|
||||
({
|
||||
userTrends: [],
|
||||
flagTrends: [],
|
||||
|
@ -1 +1 @@
|
||||
export * from './models/index.ts';
|
||||
export * from './models/index.js';
|
||||
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type AddRoleToUser401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type AddRoleToUser403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type AddRoleToUser404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -24,7 +24,7 @@ export interface ApiTokenSchema {
|
||||
*/
|
||||
expiresAt?: string | null;
|
||||
/** The project this token belongs to. */
|
||||
project: string;
|
||||
project?: string;
|
||||
/** The list of projects this token has access to. If the token has access to specific projects they will be listed here. If the token has access to all projects it will be represented as `[*]` */
|
||||
projects: string[];
|
||||
/** The token used for authentication. */
|
||||
@ -38,9 +38,4 @@ export interface ApiTokenSchema {
|
||||
tokenName: string;
|
||||
/** The type of API token */
|
||||
type: ApiTokenSchemaType;
|
||||
/**
|
||||
* This property was deprecated in Unleash v5. Prefer the `tokenName` property instead.
|
||||
* @deprecated
|
||||
*/
|
||||
username?: string;
|
||||
}
|
||||
|
22
frontend/src/openapi/models/cdnApiTokenSchema.ts
Normal file
22
frontend/src/openapi/models/cdnApiTokenSchema.ts
Normal file
@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
/**
|
||||
* The data required to create an CDN API token.
|
||||
*/
|
||||
export interface CdnApiTokenSchema {
|
||||
/** The environment that the token should be valid for. */
|
||||
environment: string;
|
||||
/**
|
||||
* The time when this token should expire.
|
||||
* @nullable
|
||||
*/
|
||||
expiresAt?: string | null;
|
||||
/** The project that the token should be valid for. Defaults to "*" meaning every project. */
|
||||
project?: string;
|
||||
/** The name of the token. */
|
||||
tokenName: string;
|
||||
}
|
14
frontend/src/openapi/models/cdnApiTokensSchema.ts
Normal file
14
frontend/src/openapi/models/cdnApiTokensSchema.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { CdnApiTokenSchema } from './cdnApiTokenSchema.js';
|
||||
|
||||
/**
|
||||
* List of CDN tokens.
|
||||
*/
|
||||
export interface CdnApiTokensSchema {
|
||||
/** List of tokens for CDN */
|
||||
tokens?: CdnApiTokenSchema[];
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ChangeRoleForGroup403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ChangeRoleForGroup404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ChangeRoleForUser401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ChangeRoleForUser403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ChangeRoleForUser404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -4,7 +4,7 @@
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ChangeRoleForGroup401 = {
|
||||
export type ClientCustomMetrics400 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
@ -4,15 +4,8 @@
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { CreateApiTokenSchemaOneOf } from './createApiTokenSchemaOneOf.js';
|
||||
import type { CreateApiTokenSchemaOneOfTwo } from './createApiTokenSchemaOneOfTwo.js';
|
||||
import type { CreateApiTokenSchemaOneOfThree } from './createApiTokenSchemaOneOfThree.js';
|
||||
import type { CreateApiTokenSchemaOneOfFour } from './createApiTokenSchemaOneOfFour.js';
|
||||
|
||||
/**
|
||||
* The data required to create an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).
|
||||
*/
|
||||
export type CreateApiTokenSchema =
|
||||
| CreateApiTokenSchemaOneOf
|
||||
| CreateApiTokenSchemaOneOfTwo
|
||||
| CreateApiTokenSchemaOneOfThree
|
||||
| CreateApiTokenSchemaOneOfFour;
|
||||
export type CreateApiTokenSchema = CreateApiTokenSchemaOneOf;
|
||||
|
@ -5,13 +5,19 @@
|
||||
*/
|
||||
|
||||
export type CreateApiTokenSchemaOneOf = {
|
||||
/** The environment that the token should be valid for. Defaults to "default" */
|
||||
environment?: string;
|
||||
/** The time when this token should expire. */
|
||||
expiresAt?: string;
|
||||
/** The project that the token should be valid for. Defaults to "*" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other. */
|
||||
project?: string;
|
||||
/** A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other. */
|
||||
projects?: string[];
|
||||
/** The name of the token. */
|
||||
tokenName: string;
|
||||
/**
|
||||
* An admin token. Must be the string "admin" (not case sensitive).
|
||||
* @pattern ^[Aa][Dd][Mm][Ii][Nn]$
|
||||
* A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive).
|
||||
* @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$
|
||||
*/
|
||||
type: string;
|
||||
};
|
||||
|
@ -1,26 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type CreateApiTokenSchemaOneOfFour = {
|
||||
/** The environment that the token should be valid for. Defaults to "default" */
|
||||
environment?: string;
|
||||
/** The time when this token should expire. */
|
||||
expiresAt?: string;
|
||||
/** The project that the token should be valid for. Defaults to "*" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other. */
|
||||
project?: string;
|
||||
/** A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other. */
|
||||
projects?: string[];
|
||||
/**
|
||||
* A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive).
|
||||
* @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* The name of the token. This property was deprecated in v5. Use `tokenName` instead.
|
||||
* @deprecated
|
||||
*/
|
||||
username: string;
|
||||
};
|
@ -1,23 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type CreateApiTokenSchemaOneOfThree = {
|
||||
/** The environment that the token should be valid for. Defaults to "default" */
|
||||
environment?: string;
|
||||
/** The time when this token should expire. */
|
||||
expiresAt?: string;
|
||||
/** The project that the token should be valid for. Defaults to "*" meaning every project. This property is mutually incompatible with the `projects` property. If you specify one, you cannot specify the other. */
|
||||
project?: string;
|
||||
/** A list of projects that the token should be valid for. This property is mutually incompatible with the `project` property. If you specify one, you cannot specify the other. */
|
||||
projects?: string[];
|
||||
/** The name of the token. */
|
||||
tokenName: string;
|
||||
/**
|
||||
* A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive).
|
||||
* @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$
|
||||
*/
|
||||
type: string;
|
||||
};
|
@ -1,20 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type CreateApiTokenSchemaOneOfTwo = {
|
||||
/** The time when this token should expire. */
|
||||
expiresAt?: string;
|
||||
/**
|
||||
* An admin token. Must be the string "admin" (not case sensitive).
|
||||
* @pattern ^[Aa][Dd][Mm][Ii][Nn]$
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* The name of the token. This property was deprecated in v5. Use `tokenName` instead.
|
||||
* @deprecated
|
||||
*/
|
||||
username: string;
|
||||
};
|
22
frontend/src/openapi/models/createProjectApiTokenSchema.ts
Normal file
22
frontend/src/openapi/models/createProjectApiTokenSchema.ts
Normal file
@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
/**
|
||||
* The schema for creating a project API token. This schema is used to create a new project API token.
|
||||
*/
|
||||
export interface CreateProjectApiTokenSchema {
|
||||
/** The environment that the token should be valid for. Defaults to "default". */
|
||||
environment?: string;
|
||||
/** The date and time when the token should expire. The date should be in ISO 8601 format. */
|
||||
expiresAt?: string;
|
||||
/** A unique name for this particular token */
|
||||
tokenName: string;
|
||||
/**
|
||||
* A client or frontend token. Must be one of the strings "client" or "frontend" (not case sensitive).
|
||||
* @pattern ^([Cc][Ll][Ii][Ee][Nn][Tt]|[Ff][Rr][Oo][Nn][Tt][Ee][Nn][Dd])$
|
||||
*/
|
||||
type: string;
|
||||
}
|
@ -3,6 +3,7 @@
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { CreateUserResponseSchemaAccountType } from './createUserResponseSchemaAccountType.js';
|
||||
import type { CreateUserResponseSchemaRootRole } from './createUserResponseSchemaRootRole.js';
|
||||
|
||||
/**
|
||||
@ -10,7 +11,7 @@ import type { CreateUserResponseSchemaRootRole } from './createUserResponseSchem
|
||||
*/
|
||||
export interface CreateUserResponseSchema {
|
||||
/** A user is either an actual User or a Service Account */
|
||||
accountType?: string;
|
||||
accountType?: CreateUserResponseSchemaAccountType;
|
||||
/**
|
||||
* Count of active browser sessions for this user
|
||||
* @nullable
|
||||
@ -30,11 +31,6 @@ export interface CreateUserResponseSchema {
|
||||
imageUrl?: string;
|
||||
/** If the user is actively inviting other users, this is the link that can be shared with other users */
|
||||
inviteLink?: string;
|
||||
/**
|
||||
* Deprecated in v5. Used internally to know which operations the user should be allowed to perform
|
||||
* @deprecated
|
||||
*/
|
||||
isAPI?: boolean;
|
||||
/**
|
||||
* How many unsuccessful attempts at logging in has the user made
|
||||
* @minimum 0
|
||||
|
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
/**
|
||||
* A user is either an actual User or a Service Account
|
||||
*/
|
||||
export type CreateUserResponseSchemaAccountType =
|
||||
(typeof CreateUserResponseSchemaAccountType)[keyof typeof CreateUserResponseSchemaAccountType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CreateUserResponseSchemaAccountType = {
|
||||
User: 'User',
|
||||
Service_Account: 'Service Account',
|
||||
} as const;
|
18
frontend/src/openapi/models/customMetricSchema.ts
Normal file
18
frontend/src/openapi/models/customMetricSchema.ts
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { CustomMetricSchemaLabels } from './customMetricSchemaLabels.js';
|
||||
|
||||
/**
|
||||
* A custom metric with name, value and optional labels
|
||||
*/
|
||||
export interface CustomMetricSchema {
|
||||
/** Labels to categorize the metric */
|
||||
labels?: CustomMetricSchemaLabels;
|
||||
/** Name of the custom metric */
|
||||
name: string;
|
||||
/** Value of the custom metric */
|
||||
value: number;
|
||||
}
|
10
frontend/src/openapi/models/customMetricSchemaLabels.ts
Normal file
10
frontend/src/openapi/models/customMetricSchemaLabels.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
/**
|
||||
* Labels to categorize the metric
|
||||
*/
|
||||
export type CustomMetricSchemaLabels = { [key: string]: string };
|
14
frontend/src/openapi/models/customMetricsSchema.ts
Normal file
14
frontend/src/openapi/models/customMetricsSchema.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { CustomMetricSchema } from './customMetricSchema.js';
|
||||
|
||||
/**
|
||||
* A collection of custom metrics
|
||||
*/
|
||||
export interface CustomMetricsSchema {
|
||||
/** Array of custom metrics */
|
||||
metrics: CustomMetricSchema[];
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { ProjectEnvironmentSchema } from './projectEnvironmentSchema.js';
|
||||
import type { CreateFeatureNamingPatternSchema } from './createFeatureNamingPatternSchema.js';
|
||||
import type { FeatureSchema } from './featureSchema.js';
|
||||
import type { DeprecatedProjectOverviewSchemaMode } from './deprecatedProjectOverviewSchemaMode.js';
|
||||
import type { ProjectStatsSchema } from './projectStatsSchema.js';
|
||||
|
||||
/**
|
||||
* A high-level overview of a project. It contains information such as project statistics, the name of the project, what members and what features it contains, etc.
|
||||
*/
|
||||
export interface DeprecatedProjectOverviewSchema {
|
||||
/**
|
||||
* When the project was created.
|
||||
* @nullable
|
||||
*/
|
||||
createdAt?: string | null;
|
||||
/** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */
|
||||
defaultStickiness?: string;
|
||||
/**
|
||||
* Additional information about the project
|
||||
* @nullable
|
||||
*/
|
||||
description?: string | null;
|
||||
/** The environments that are enabled for this project */
|
||||
environments?: ProjectEnvironmentSchema[];
|
||||
/** `true` if the project was favorited, otherwise `false`. */
|
||||
favorite?: boolean;
|
||||
/**
|
||||
* A limit on the number of features allowed in the project. Null if no limit.
|
||||
* @nullable
|
||||
*/
|
||||
featureLimit?: number | null;
|
||||
featureNaming?: CreateFeatureNamingPatternSchema;
|
||||
/** The full list of features in this project (excluding archived features) */
|
||||
features?: FeatureSchema[];
|
||||
/** An indicator of the [project's health](https://docs.getunleash.io/reference/technical-debt#project-status) on a scale from 0 to 100 */
|
||||
health?: number;
|
||||
/** The number of members this project has */
|
||||
members?: number;
|
||||
/** The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not. */
|
||||
mode?: DeprecatedProjectOverviewSchemaMode;
|
||||
/** The name of this project */
|
||||
name: string;
|
||||
/** Project statistics */
|
||||
stats?: ProjectStatsSchema;
|
||||
/**
|
||||
* When the project was last updated.
|
||||
* @nullable
|
||||
*/
|
||||
updatedAt?: string | null;
|
||||
/** The schema version used to describe the project overview */
|
||||
version: number;
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
/**
|
||||
* The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.
|
||||
*/
|
||||
export type DeprecatedProjectOverviewSchemaMode =
|
||||
(typeof DeprecatedProjectOverviewSchemaMode)[keyof typeof DeprecatedProjectOverviewSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const DeprecatedProjectOverviewSchemaMode = {
|
||||
open: 'open',
|
||||
protected: 'protected',
|
||||
private: 'private',
|
||||
} as const;
|
@ -3,14 +3,14 @@
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema.js';
|
||||
import type { FeatureStrategySchema } from './featureStrategySchema.js';
|
||||
|
||||
/**
|
||||
* Describes a project's configuration in a given environment.
|
||||
*/
|
||||
export interface EnvironmentProjectSchema {
|
||||
/** The strategy configuration to add when enabling a feature environment by default */
|
||||
defaultStrategy?: CreateFeatureStrategySchema;
|
||||
defaultStrategy?: FeatureStrategySchema;
|
||||
/** `true` if the environment is enabled for the project, otherwise `false` */
|
||||
enabled: boolean;
|
||||
/** The name of the environment */
|
||||
|
@ -68,9 +68,7 @@ export const EventSchemaType = {
|
||||
'project-user-added': 'project-user-added',
|
||||
'project-user-removed': 'project-user-removed',
|
||||
'project-user-role-changed': 'project-user-role-changed',
|
||||
'project-group-role-changed': 'project-group-role-changed',
|
||||
'project-group-added': 'project-group-added',
|
||||
'project-group-removed': 'project-group-removed',
|
||||
'role-created': 'role-created',
|
||||
'role-updated': 'role-updated',
|
||||
'role-deleted': 'role-deleted',
|
||||
@ -175,4 +173,5 @@ export const EventSchemaType = {
|
||||
'user-preference-updated': 'user-preference-updated',
|
||||
'scim-users-deleted': 'scim-users-deleted',
|
||||
'scim-groups-deleted': 'scim-groups-deleted',
|
||||
'cdn-token-created': 'cdn-token-created',
|
||||
} as const;
|
||||
|
@ -9,6 +9,7 @@ import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema.js';
|
||||
import type { FeatureSchema } from './featureSchema.js';
|
||||
import type { FeatureStrategySchema } from './featureStrategySchema.js';
|
||||
import type { FeatureTagSchema } from './featureTagSchema.js';
|
||||
import type { FeatureLinksSchema } from './featureLinksSchema.js';
|
||||
import type { ExportResultSchemaSegmentsItem } from './exportResultSchemaSegmentsItem.js';
|
||||
import type { TagTypeSchema } from './tagTypeSchema.js';
|
||||
|
||||
@ -28,6 +29,8 @@ export interface ExportResultSchema {
|
||||
featureStrategies: FeatureStrategySchema[];
|
||||
/** A list of all the tags that have been applied to any of the features in the `features` list. */
|
||||
featureTags?: FeatureTagSchema[];
|
||||
/** A list of links for features in `features` list. */
|
||||
links?: FeatureLinksSchema[];
|
||||
/** A list of all the segments that are used by the strategies in the `featureStrategies` list. */
|
||||
segments?: ExportResultSchemaSegmentsItem[];
|
||||
/** A list of all of the tag types that are used in the `featureTags` list. */
|
||||
|
16
frontend/src/openapi/models/featureLinksSchema.ts
Normal file
16
frontend/src/openapi/models/featureLinksSchema.ts
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { FeatureLinkSchema } from './featureLinkSchema.js';
|
||||
|
||||
/**
|
||||
* A list of links for a feature
|
||||
*/
|
||||
export interface FeatureLinksSchema {
|
||||
/** The name of the child feature. */
|
||||
feature: string;
|
||||
/** List of feature links */
|
||||
links: FeatureLinkSchema[];
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetDeprecatedProjectOverview401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetDeprecatedProjectOverview403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetDeprecatedProjectOverview404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetEvents401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetEventsForToggle401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetEventsParams = {
|
||||
/**
|
||||
* The name of the project whose events you want to retrieve
|
||||
*/
|
||||
project?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetFeatureVariants401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetFeatureVariants403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetFeatureVariants404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectDora401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectDora403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectDora404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectHealthReport401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectHealthReport403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectHealthReport404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectInsights401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectInsights403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectInsights404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectUsers401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type GetProjectUsers403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -9,6 +9,6 @@ import type { HealthCheckSchemaHealth } from './healthCheckSchemaHealth.js';
|
||||
* Used by service orchestrators to decide whether this Unleash instance should be marked as healthy or unhealthy
|
||||
*/
|
||||
export interface HealthCheckSchema {
|
||||
/** The state this Unleash instance is in. GOOD if everything is ok, BAD if the instance should be restarted */
|
||||
/** The state this Unleash instance is in. GOOD if the server is up and running. It never returns BAD, if the server is unhealthy you will get an unsuccessful http response. */
|
||||
health: HealthCheckSchemaHealth;
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* The state this Unleash instance is in. GOOD if everything is ok, BAD if the instance should be restarted
|
||||
* The state this Unleash instance is in. GOOD if the server is up and running. It never returns BAD, if the server is unhealthy you will get an unsuccessful http response.
|
||||
*/
|
||||
export type HealthCheckSchemaHealth =
|
||||
(typeof HealthCheckSchemaHealth)[keyof typeof HealthCheckSchemaHealth];
|
||||
|
@ -52,9 +52,6 @@ export * from './addMilestoneToReleasePlanTemplate403.js';
|
||||
export * from './addMilestoneToReleasePlanTemplate404.js';
|
||||
export * from './addPublicSignupTokenUser400.js';
|
||||
export * from './addPublicSignupTokenUser409.js';
|
||||
export * from './addRoleToUser401.js';
|
||||
export * from './addRoleToUser403.js';
|
||||
export * from './addRoleToUser404.js';
|
||||
export * from './addStrategyToMilestone401.js';
|
||||
export * from './addStrategyToMilestone403.js';
|
||||
export * from './addStrategyToMilestone404.js';
|
||||
@ -140,6 +137,8 @@ export * from './bulkToggleFeaturesEnvironmentOn404.js';
|
||||
export * from './bulkToggleFeaturesEnvironmentOn413.js';
|
||||
export * from './bulkToggleFeaturesEnvironmentOn415.js';
|
||||
export * from './bulkToggleFeaturesSchema.js';
|
||||
export * from './cdnApiTokenSchema.js';
|
||||
export * from './cdnApiTokensSchema.js';
|
||||
export * from './changePassword401.js';
|
||||
export * from './changePassword403.js';
|
||||
export * from './changePassword415.js';
|
||||
@ -309,12 +308,6 @@ export * from './changeRequestsSchemaItemOneOfFour.js';
|
||||
export * from './changeRequestsSchemaItemOneOfFourCreatedBy.js';
|
||||
export * from './changeRequestsSchemaItemOneOfFourState.js';
|
||||
export * from './changeRequestsSchemaItemOneOfState.js';
|
||||
export * from './changeRoleForGroup401.js';
|
||||
export * from './changeRoleForGroup403.js';
|
||||
export * from './changeRoleForGroup404.js';
|
||||
export * from './changeRoleForUser401.js';
|
||||
export * from './changeRoleForUser403.js';
|
||||
export * from './changeRoleForUser404.js';
|
||||
export * from './changeUserPassword400.js';
|
||||
export * from './changeUserPassword401.js';
|
||||
export * from './changeUserPassword403.js';
|
||||
@ -325,6 +318,7 @@ export * from './clientApplicationSchemaStarted.js';
|
||||
export * from './clientBulkMetrics400.js';
|
||||
export * from './clientBulkMetrics413.js';
|
||||
export * from './clientBulkMetrics415.js';
|
||||
export * from './clientCustomMetrics400.js';
|
||||
export * from './clientFeatureSchema.js';
|
||||
export * from './clientFeaturesDeltaSchema.js';
|
||||
export * from './clientFeaturesDeltaSchemaEventsItem.js';
|
||||
@ -384,9 +378,6 @@ export * from './createApiToken403.js';
|
||||
export * from './createApiToken415.js';
|
||||
export * from './createApiTokenSchema.js';
|
||||
export * from './createApiTokenSchemaOneOf.js';
|
||||
export * from './createApiTokenSchemaOneOfFour.js';
|
||||
export * from './createApiTokenSchemaOneOfThree.js';
|
||||
export * from './createApiTokenSchemaOneOfTwo.js';
|
||||
export * from './createApplication400.js';
|
||||
export * from './createApplication401.js';
|
||||
export * from './createApplication403.js';
|
||||
@ -436,6 +427,7 @@ export * from './createProjectApiToken400.js';
|
||||
export * from './createProjectApiToken401.js';
|
||||
export * from './createProjectApiToken403.js';
|
||||
export * from './createProjectApiToken404.js';
|
||||
export * from './createProjectApiTokenSchema.js';
|
||||
export * from './createProjectSchema.js';
|
||||
export * from './createProjectSchemaChangeRequestEnvironmentsItem.js';
|
||||
export * from './createProjectSchemaMode.js';
|
||||
@ -502,9 +494,13 @@ export * from './createUser400.js';
|
||||
export * from './createUser401.js';
|
||||
export * from './createUser403.js';
|
||||
export * from './createUserResponseSchema.js';
|
||||
export * from './createUserResponseSchemaAccountType.js';
|
||||
export * from './createUserResponseSchemaRootRole.js';
|
||||
export * from './createUserSchema.js';
|
||||
export * from './createUserSchemaRootRole.js';
|
||||
export * from './customMetricSchema.js';
|
||||
export * from './customMetricSchemaLabels.js';
|
||||
export * from './customMetricsSchema.js';
|
||||
export * from './dateSchema.js';
|
||||
export * from './deleteAddon401.js';
|
||||
export * from './deleteAddon403.js';
|
||||
@ -575,8 +571,6 @@ export * from './dependentFeatureSchema.js';
|
||||
export * from './deprecateStrategy401.js';
|
||||
export * from './deprecateStrategy403.js';
|
||||
export * from './deprecateStrategy404.js';
|
||||
export * from './deprecatedProjectOverviewSchema.js';
|
||||
export * from './deprecatedProjectOverviewSchemaMode.js';
|
||||
export * from './disableBanner401.js';
|
||||
export * from './disableBanner403.js';
|
||||
export * from './disableBanner404.js';
|
||||
@ -634,6 +628,7 @@ export * from './featureLifecycleSchema.js';
|
||||
export * from './featureLifecycleSchemaItem.js';
|
||||
export * from './featureLifecycleSchemaItemStage.js';
|
||||
export * from './featureLinkSchema.js';
|
||||
export * from './featureLinksSchema.js';
|
||||
export * from './featureMetricsSchema.js';
|
||||
export * from './featureSchema.js';
|
||||
export * from './featureSchemaCollaborators.js';
|
||||
@ -708,9 +703,6 @@ export * from './getChangeRequestPlayground401.js';
|
||||
export * from './getChangeRequestPlayground404.js';
|
||||
export * from './getConnectionsForPeriodGrouping.js';
|
||||
export * from './getConnectionsForPeriodParams.js';
|
||||
export * from './getDeprecatedProjectOverview401.js';
|
||||
export * from './getDeprecatedProjectOverview403.js';
|
||||
export * from './getDeprecatedProjectOverview404.js';
|
||||
export * from './getEnvironment401.js';
|
||||
export * from './getEnvironment403.js';
|
||||
export * from './getEnvironment404.js';
|
||||
@ -720,9 +712,6 @@ export * from './getEnvironmentFeatureVariants404.js';
|
||||
export * from './getEventCreators401.js';
|
||||
export * from './getEventCreators403.js';
|
||||
export * from './getEventCreators404.js';
|
||||
export * from './getEvents401.js';
|
||||
export * from './getEventsForToggle401.js';
|
||||
export * from './getEventsParams.js';
|
||||
export * from './getFeature401.js';
|
||||
export * from './getFeature403.js';
|
||||
export * from './getFeature404.js';
|
||||
@ -744,9 +733,6 @@ export * from './getFeatureStrategy404.js';
|
||||
export * from './getFeatureUsageSummary401.js';
|
||||
export * from './getFeatureUsageSummary403.js';
|
||||
export * from './getFeatureUsageSummary404.js';
|
||||
export * from './getFeatureVariants401.js';
|
||||
export * from './getFeatureVariants403.js';
|
||||
export * from './getFeatureVariants404.js';
|
||||
export * from './getFeatures400.js';
|
||||
export * from './getFeatures401.js';
|
||||
export * from './getFeatures403.js';
|
||||
@ -796,29 +782,18 @@ export * from './getProjectApplications401.js';
|
||||
export * from './getProjectApplications403.js';
|
||||
export * from './getProjectApplications404.js';
|
||||
export * from './getProjectApplicationsParams.js';
|
||||
export * from './getProjectDora401.js';
|
||||
export * from './getProjectDora403.js';
|
||||
export * from './getProjectDora404.js';
|
||||
export * from './getProjectEnvironments401.js';
|
||||
export * from './getProjectEnvironments403.js';
|
||||
export * from './getProjectEnvironments404.js';
|
||||
export * from './getProjectFlagCreators401.js';
|
||||
export * from './getProjectFlagCreators403.js';
|
||||
export * from './getProjectFlagCreators404.js';
|
||||
export * from './getProjectHealthReport401.js';
|
||||
export * from './getProjectHealthReport403.js';
|
||||
export * from './getProjectHealthReport404.js';
|
||||
export * from './getProjectInsights401.js';
|
||||
export * from './getProjectInsights403.js';
|
||||
export * from './getProjectInsights404.js';
|
||||
export * from './getProjectOverview401.js';
|
||||
export * from './getProjectOverview403.js';
|
||||
export * from './getProjectOverview404.js';
|
||||
export * from './getProjectStatus401.js';
|
||||
export * from './getProjectStatus403.js';
|
||||
export * from './getProjectStatus404.js';
|
||||
export * from './getProjectUsers401.js';
|
||||
export * from './getProjectUsers403.js';
|
||||
export * from './getProjects401.js';
|
||||
export * from './getProjects403.js';
|
||||
export * from './getProjectsParams.js';
|
||||
@ -913,6 +888,22 @@ export * from './instanceAdminStatsSchemaProductionChanges.js';
|
||||
export * from './instanceInsightsSchema.js';
|
||||
export * from './instanceInsightsSchemaEnvironmentTypeTrendsItem.js';
|
||||
export * from './instanceInsightsSchemaFlagTrendsItem.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrends.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsCleanup.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsCleanupCategories.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsCleanupCategoriesExperimental.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsCleanupCategoriesPermanent.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsCleanupCategoriesRelease.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsDevelop.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsDevelopCategories.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsDevelopCategoriesExperimental.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsDevelopCategoriesPermanent.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsDevelopCategoriesRelease.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsProduction.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsProductionCategories.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsProductionCategoriesExperimental.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsProductionCategoriesPermanent.js';
|
||||
export * from './instanceInsightsSchemaLifecycleTrendsProductionCategoriesRelease.js';
|
||||
export * from './instanceInsightsSchemaMetricsSummaryTrendsItem.js';
|
||||
export * from './instanceInsightsSchemaProjectFlagTrendsItem.js';
|
||||
export * from './instanceInsightsSchemaUserTrendsItem.js';
|
||||
@ -979,10 +970,6 @@ export * from './overrideSchema.js';
|
||||
export * from './overwriteEnvironmentFeatureVariants400.js';
|
||||
export * from './overwriteEnvironmentFeatureVariants401.js';
|
||||
export * from './overwriteEnvironmentFeatureVariants403.js';
|
||||
export * from './overwriteFeatureVariants400.js';
|
||||
export * from './overwriteFeatureVariants401.js';
|
||||
export * from './overwriteFeatureVariants403.js';
|
||||
export * from './overwriteFeatureVariants404.js';
|
||||
export * from './overwriteFeatureVariantsOnEnvironments400.js';
|
||||
export * from './overwriteFeatureVariantsOnEnvironments401.js';
|
||||
export * from './overwriteFeatureVariantsOnEnvironments403.js';
|
||||
@ -1005,10 +992,6 @@ export * from './patchFeatureStrategy401.js';
|
||||
export * from './patchFeatureStrategy403.js';
|
||||
export * from './patchFeatureStrategy404.js';
|
||||
export * from './patchFeatureStrategy415.js';
|
||||
export * from './patchFeatureVariants400.js';
|
||||
export * from './patchFeatureVariants401.js';
|
||||
export * from './patchFeatureVariants403.js';
|
||||
export * from './patchFeatureVariants404.js';
|
||||
export * from './patchSchema.js';
|
||||
export * from './patchSchemaOp.js';
|
||||
export * from './patchesSchema.js';
|
||||
@ -1067,9 +1050,6 @@ export * from './projectAccessSchema.js';
|
||||
export * from './projectActivitySchema.js';
|
||||
export * from './projectActivitySchemaItem.js';
|
||||
export * from './projectAddAccessSchema.js';
|
||||
export * from './projectAddRoleAccessSchema.js';
|
||||
export * from './projectAddRoleAccessSchemaGroupsItem.js';
|
||||
export * from './projectAddRoleAccessSchemaUsersItem.js';
|
||||
export * from './projectApplicationSchema.js';
|
||||
export * from './projectApplicationSdkSchema.js';
|
||||
export * from './projectApplicationsSchema.js';
|
||||
@ -1164,12 +1144,6 @@ export * from './removeGroupAccess404.js';
|
||||
export * from './removeReleasePlanMilestone401.js';
|
||||
export * from './removeReleasePlanMilestone403.js';
|
||||
export * from './removeReleasePlanMilestone404.js';
|
||||
export * from './removeRoleForUser401.js';
|
||||
export * from './removeRoleForUser403.js';
|
||||
export * from './removeRoleForUser404.js';
|
||||
export * from './removeRoleFromGroup401.js';
|
||||
export * from './removeRoleFromGroup403.js';
|
||||
export * from './removeRoleFromGroup404.js';
|
||||
export * from './removeSegment401.js';
|
||||
export * from './removeSegment403.js';
|
||||
export * from './removeSegment409.js';
|
||||
@ -1275,8 +1249,6 @@ export * from './setStrategySortOrder401.js';
|
||||
export * from './setStrategySortOrder403.js';
|
||||
export * from './setStrategySortOrderSchema.js';
|
||||
export * from './setStrategySortOrderSchemaItem.js';
|
||||
export * from './setUiConfigSchema.js';
|
||||
export * from './setUiConfigSchemaFrontendSettings.js';
|
||||
export * from './signalEndpointSchema.js';
|
||||
export * from './signalEndpointSignalSchema.js';
|
||||
export * from './signalEndpointSignalSchemaPayload.js';
|
||||
@ -1350,7 +1322,6 @@ export * from './trafficUsageDataSegmentedCombinedSchemaApiDataItemDataPointsIte
|
||||
export * from './trafficUsageDataSegmentedCombinedSchemaApiDataItemDataPointsItemTrafficTypesItem.js';
|
||||
export * from './trafficUsageDataSegmentedCombinedSchemaDateRange.js';
|
||||
export * from './trafficUsageDataSegmentedCombinedSchemaGrouping.js';
|
||||
export * from './trafficUsageDataSegmentedSchema.js';
|
||||
export * from './uiConfigSchema.js';
|
||||
export * from './uiConfigSchemaAuthenticationType.js';
|
||||
export * from './uiConfigSchemaBilling.js';
|
||||
@ -1513,6 +1484,7 @@ export * from './userAccessOverviewSchemaProjectRolesItem.js';
|
||||
export * from './userAccessOverviewSchemaProjectRolesItemPermissionsItem.js';
|
||||
export * from './userAccessSchema.js';
|
||||
export * from './userSchema.js';
|
||||
export * from './userSchemaAccountType.js';
|
||||
export * from './userWithProjectRoleSchema.js';
|
||||
export * from './usersGroupsBaseSchema.js';
|
||||
export * from './usersSchema.js';
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
import type { InstanceInsightsSchemaEnvironmentTypeTrendsItem } from './instanceInsightsSchemaEnvironmentTypeTrendsItem.js';
|
||||
import type { InstanceInsightsSchemaFlagTrendsItem } from './instanceInsightsSchemaFlagTrendsItem.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrends } from './instanceInsightsSchemaLifecycleTrends.js';
|
||||
import type { InstanceInsightsSchemaMetricsSummaryTrendsItem } from './instanceInsightsSchemaMetricsSummaryTrendsItem.js';
|
||||
import type { InstanceInsightsSchemaProjectFlagTrendsItem } from './instanceInsightsSchemaProjectFlagTrendsItem.js';
|
||||
import type { InstanceInsightsSchemaUserTrendsItem } from './instanceInsightsSchemaUserTrendsItem.js';
|
||||
@ -17,6 +18,8 @@ export interface InstanceInsightsSchema {
|
||||
environmentTypeTrends: InstanceInsightsSchemaEnvironmentTypeTrendsItem[];
|
||||
/** How number of flags changed over time */
|
||||
flagTrends: InstanceInsightsSchemaFlagTrendsItem[];
|
||||
/** Aggregated view of feature flag lifecycle across environments */
|
||||
lifecycleTrends: InstanceInsightsSchemaLifecycleTrends;
|
||||
/** How metrics data per project changed over time */
|
||||
metricsSummaryTrends: InstanceInsightsSchemaMetricsSummaryTrendsItem[];
|
||||
/** How number of flags per project changed over time */
|
||||
|
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsCleanup } from './instanceInsightsSchemaLifecycleTrendsCleanup.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsDevelop } from './instanceInsightsSchemaLifecycleTrendsDevelop.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsProduction } from './instanceInsightsSchemaLifecycleTrendsProduction.js';
|
||||
|
||||
/**
|
||||
* Aggregated view of feature flag lifecycle across environments
|
||||
*/
|
||||
export type InstanceInsightsSchemaLifecycleTrends = {
|
||||
cleanup: InstanceInsightsSchemaLifecycleTrendsCleanup;
|
||||
develop: InstanceInsightsSchemaLifecycleTrendsDevelop;
|
||||
production: InstanceInsightsSchemaLifecycleTrendsProduction;
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsCleanupCategories } from './instanceInsightsSchemaLifecycleTrendsCleanupCategories.js';
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsCleanup = {
|
||||
averageTimeInStageDays: number;
|
||||
categories: InstanceInsightsSchemaLifecycleTrendsCleanupCategories;
|
||||
totalFlags: number;
|
||||
};
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesExperimental } from './instanceInsightsSchemaLifecycleTrendsCleanupCategoriesExperimental.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesPermanent } from './instanceInsightsSchemaLifecycleTrendsCleanupCategoriesPermanent.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesRelease } from './instanceInsightsSchemaLifecycleTrendsCleanupCategoriesRelease.js';
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsCleanupCategories = {
|
||||
experimental: InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesExperimental;
|
||||
permanent: InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesPermanent;
|
||||
release: InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesRelease;
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesExperimental =
|
||||
{
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesPermanent = {
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsCleanupCategoriesRelease = {
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsDevelopCategories } from './instanceInsightsSchemaLifecycleTrendsDevelopCategories.js';
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsDevelop = {
|
||||
averageTimeInStageDays: number;
|
||||
categories: InstanceInsightsSchemaLifecycleTrendsDevelopCategories;
|
||||
totalFlags: number;
|
||||
};
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesExperimental } from './instanceInsightsSchemaLifecycleTrendsDevelopCategoriesExperimental.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesPermanent } from './instanceInsightsSchemaLifecycleTrendsDevelopCategoriesPermanent.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesRelease } from './instanceInsightsSchemaLifecycleTrendsDevelopCategoriesRelease.js';
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsDevelopCategories = {
|
||||
experimental: InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesExperimental;
|
||||
permanent: InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesPermanent;
|
||||
release: InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesRelease;
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesExperimental =
|
||||
{
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesPermanent = {
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsDevelopCategoriesRelease = {
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsProductionCategories } from './instanceInsightsSchemaLifecycleTrendsProductionCategories.js';
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsProduction = {
|
||||
averageTimeInStageDays: number;
|
||||
categories: InstanceInsightsSchemaLifecycleTrendsProductionCategories;
|
||||
totalFlags: number;
|
||||
};
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsProductionCategoriesExperimental } from './instanceInsightsSchemaLifecycleTrendsProductionCategoriesExperimental.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsProductionCategoriesPermanent } from './instanceInsightsSchemaLifecycleTrendsProductionCategoriesPermanent.js';
|
||||
import type { InstanceInsightsSchemaLifecycleTrendsProductionCategoriesRelease } from './instanceInsightsSchemaLifecycleTrendsProductionCategoriesRelease.js';
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsProductionCategories = {
|
||||
experimental: InstanceInsightsSchemaLifecycleTrendsProductionCategoriesExperimental;
|
||||
permanent: InstanceInsightsSchemaLifecycleTrendsProductionCategoriesPermanent;
|
||||
release: InstanceInsightsSchemaLifecycleTrendsProductionCategoriesRelease;
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsProductionCategoriesExperimental =
|
||||
{
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsProductionCategoriesPermanent =
|
||||
{
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type InstanceInsightsSchemaLifecycleTrendsProductionCategoriesRelease = {
|
||||
flagsOlderThanWeek: number;
|
||||
newFlagsThisWeek: number;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type OverwriteFeatureVariants400 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type OverwriteFeatureVariants401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type OverwriteFeatureVariants403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type OverwriteFeatureVariants404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type PatchFeatureVariants400 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type PatchFeatureVariants401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type PatchFeatureVariants403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type PatchFeatureVariants404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,17 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { ProjectAddRoleAccessSchemaGroupsItem } from './projectAddRoleAccessSchemaGroupsItem.js';
|
||||
import type { ProjectAddRoleAccessSchemaUsersItem } from './projectAddRoleAccessSchemaUsersItem.js';
|
||||
|
||||
/**
|
||||
* An object containing a collection of users and a collection of groups.
|
||||
*/
|
||||
export interface ProjectAddRoleAccessSchema {
|
||||
/** A list of groups IDs */
|
||||
groups: ProjectAddRoleAccessSchemaGroupsItem[];
|
||||
/** A list of user IDs */
|
||||
users: ProjectAddRoleAccessSchemaUsersItem[];
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ProjectAddRoleAccessSchemaGroupsItem = {
|
||||
/**
|
||||
* A group ID
|
||||
* @minimum 0
|
||||
*/
|
||||
id: number;
|
||||
};
|
@ -1,13 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type ProjectAddRoleAccessSchemaUsersItem = {
|
||||
/**
|
||||
* A user ID
|
||||
* @minimum 0
|
||||
*/
|
||||
id: number;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type RemoveRoleForUser401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type RemoveRoleForUser403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type RemoveRoleForUser404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type RemoveRoleFromGroup401 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type RemoveRoleFromGroup403 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type RemoveRoleFromGroup404 = {
|
||||
/** The ID of the error instance */
|
||||
id?: string;
|
||||
/** A description of what went wrong. */
|
||||
message?: string;
|
||||
/** The name of the error kind */
|
||||
name?: string;
|
||||
};
|
@ -41,4 +41,8 @@ export type SearchEventsParams = {
|
||||
* The number of feature environments to return in a page. By default it is set to 50. The maximum is 1000.
|
||||
*/
|
||||
limit?: string;
|
||||
/**
|
||||
* Filter by environment name using supported operators: IS, IS_ANY_OF.
|
||||
*/
|
||||
environment?: string;
|
||||
};
|
||||
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { SetUiConfigSchemaFrontendSettings } from './setUiConfigSchemaFrontendSettings.js';
|
||||
|
||||
/**
|
||||
* Unleash configuration settings affect the admin UI.
|
||||
*/
|
||||
export interface SetUiConfigSchema {
|
||||
/** Settings related to the front-end API. */
|
||||
frontendSettings?: SetUiConfigSchemaFrontendSettings;
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
/**
|
||||
* Settings related to the front-end API.
|
||||
*/
|
||||
export type SetUiConfigSchemaFrontendSettings = {
|
||||
/** The list of origins that the front-end API should accept requests from. */
|
||||
frontendApiOrigins: string[];
|
||||
};
|
@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { TrafficUsageApiDataSchema } from './trafficUsageApiDataSchema.js';
|
||||
|
||||
/**
|
||||
* Contains the recorded data usage for each API path, segmented by day and type of traffic
|
||||
*/
|
||||
export interface TrafficUsageDataSegmentedSchema {
|
||||
/** Contains the recorded daily data usage for each API path */
|
||||
apiData: TrafficUsageApiDataSchema[];
|
||||
/** The year-month period for which the data usage is counted */
|
||||
period: string;
|
||||
}
|
@ -49,18 +49,8 @@ export interface UiConfigSchema {
|
||||
resourceLimits?: ResourceLimitsSchema;
|
||||
/** Whether the SAML configuration is set through environment variables or not. */
|
||||
samlConfiguredThroughEnv?: boolean;
|
||||
/**
|
||||
* 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.
|
||||
* @deprecated
|
||||
*/
|
||||
strategySegmentsLimit?: number;
|
||||
/** The context object used to configure the Unleash instance. */
|
||||
unleashContext?: UiConfigSchemaUnleashContext;
|
||||
/** The URL of the Unleash instance. */
|
||||
|
@ -4,7 +4,6 @@
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { CreateFeatureNamingPatternSchema } from './createFeatureNamingPatternSchema.js';
|
||||
import type { ProjectLinkTemplateSchema } from './projectLinkTemplateSchema.js';
|
||||
import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectEnterpriseSettingsSchemaMode.js';
|
||||
|
||||
/**
|
||||
@ -12,8 +11,6 @@ import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectE
|
||||
*/
|
||||
export interface UpdateProjectEnterpriseSettingsSchema {
|
||||
featureNaming?: CreateFeatureNamingPatternSchema;
|
||||
/** A list of link templates for the project. Templates are added to new flags as flag links automatically. */
|
||||
linkTemplates?: ProjectLinkTemplateSchema[];
|
||||
/** A mode of the project affecting what actions are possible in this project */
|
||||
mode?: UpdateProjectEnterpriseSettingsSchemaMode;
|
||||
}
|
||||
|
@ -3,13 +3,14 @@
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
import type { UserSchemaAccountType } from './userSchemaAccountType.js';
|
||||
|
||||
/**
|
||||
* An Unleash user
|
||||
*/
|
||||
export interface UserSchema {
|
||||
/** A user is either an actual User or a Service Account */
|
||||
accountType?: string;
|
||||
accountType?: UserSchemaAccountType;
|
||||
/**
|
||||
* Count of active browser sessions for this user
|
||||
* @nullable
|
||||
@ -29,11 +30,6 @@ export interface UserSchema {
|
||||
imageUrl?: string;
|
||||
/** If the user is actively inviting other users, this is the link that can be shared with other users */
|
||||
inviteLink?: string;
|
||||
/**
|
||||
* Deprecated in v5. Used internally to know which operations the user should be allowed to perform
|
||||
* @deprecated
|
||||
*/
|
||||
isAPI?: boolean;
|
||||
/**
|
||||
* How many unsuccessful attempts at logging in has the user made
|
||||
* @minimum 0
|
||||
|
17
frontend/src/openapi/models/userSchemaAccountType.ts
Normal file
17
frontend/src/openapi/models/userSchemaAccountType.ts
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by Orval
|
||||
* Do not edit manually.
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
/**
|
||||
* A user is either an actual User or a Service Account
|
||||
*/
|
||||
export type UserSchemaAccountType =
|
||||
(typeof UserSchemaAccountType)[keyof typeof UserSchemaAccountType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const UserSchemaAccountType = {
|
||||
User: 'User',
|
||||
Service_Account: 'Service Account',
|
||||
} as const;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user