1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-19 00:15:43 +01:00
unleash.unleash/frontend/src/openapi/models/clientFeatureSchema.ts
2024-10-16 13:59:30 +02:00

44 lines
1.9 KiB
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { DependentFeatureSchema } from './dependentFeatureSchema';
import type { FeatureStrategySchema } from './featureStrategySchema';
import type { VariantSchema } from './variantSchema';
/**
* Feature flag configuration used by SDKs to evaluate state of a flag
*/
export interface ClientFeatureSchema {
/** Feature dependencies for this flag */
dependencies?: DependentFeatureSchema[];
/**
* A description of the flag
* @nullable
*/
description?: string | null;
/** Whether the feature flag is enabled for the current API key or not. This is ANDed with the evaluation results of the strategies list, so if this is false, the evaluation result will always be false */
enabled: boolean;
/**
* Set to true if SDKs should trigger [impression events](https://docs.getunleash.io/reference/impression-data) when this flag is evaluated
* @nullable
*/
impressionData?: boolean | null;
/** The unique name of a feature flag. Is validated to be URL safe on creation */
name: string;
/** Which project this feature flag belongs to */
project?: string;
/** If this is true Unleash believes this feature flag has been active longer than Unleash expects a flag of this type to be active */
stale?: boolean;
/** Evaluation strategies for this flag. Each entry in this list will be evaluated and ORed together */
strategies?: FeatureStrategySchema[];
/** What kind of feature flag is this. Refer to the documentation on [feature flag types](https://docs.getunleash.io/reference/feature-toggles#feature-flag-types) for more information */
type?: string;
/**
* [Variants](https://docs.getunleash.io/reference/feature-toggle-variants#what-are-variants) configured for this flag
* @nullable
*/
variants?: VariantSchema[] | null;
}