Skip to content

DoCurious API Reference / types / FeatureFlag

Interface: FeatureFlag ​

Defined in: types/featureFlag.types.ts:111

Feature flag definition — the full entity stored and managed by admins.

Extends ​

Properties ​

createdAt ​

createdAt: string

Defined in: types/common.types.ts:154

ISO 8601 datetime when the entity was created

Inherited from ​

BaseEntity.createdAt


createdBy ​

createdBy: string

Defined in: types/featureFlag.types.ts:136

Who created/modified this flag


defaultValue ​

defaultValue: boolean

Defined in: types/featureFlag.types.ts:124

Default value for boolean flags


description ​

description: string

Defined in: types/featureFlag.types.ts:117

Description of what this flag controls


id ​

id: string

Defined in: types/common.types.ts:167

Inherited from ​

BaseEntity.id


jsonValue? ​

optional jsonValue: Record<string, unknown>

Defined in: types/featureFlag.types.ts:130

Arbitrary config for json flags


key ​

key: string

Defined in: types/featureFlag.types.ts:113

Unique machine key, e.g. 'wallet_v2'


name ​

name: string

Defined in: types/featureFlag.types.ts:115

Human-readable name, e.g. 'Wallet V2'


status ​

status: FlagStatus

Defined in: types/featureFlag.types.ts:121

Lifecycle status


tags? ​

optional tags: string[]

Defined in: types/featureFlag.types.ts:140

Optional tags for organization


targetingRules ​

targetingRules: TargetingRule[]

Defined in: types/featureFlag.types.ts:133

Targeting rules (AND logic)


type ​

type: FeatureFlagType

Defined in: types/featureFlag.types.ts:119

Value type


updatedAt ​

updatedAt: string

Defined in: types/common.types.ts:156

ISO 8601 datetime when the entity was last modified

Inherited from ​

BaseEntity.updatedAt


updatedBy? ​

optional updatedBy: string

Defined in: types/featureFlag.types.ts:137


variants? ​

optional variants: FlagVariant[]

Defined in: types/featureFlag.types.ts:127

Variants for multivariate flags

DoCurious Platform Documentation