diff --git a/classes/_openfeature_core.DefaultLogger.html b/classes/_openfeature_core.DefaultLogger.html index cc62255c7..04d15cb9c 100644 --- a/classes/_openfeature_core.DefaultLogger.html +++ b/classes/_openfeature_core.DefaultLogger.html @@ -1,6 +1,6 @@ -DefaultLogger | Documentation

Implements

Constructors

constructor +DefaultLogger | Documentation

Implements

Constructors

Methods

Constructors

Methods

+

Constructors

Methods

diff --git a/classes/_openfeature_core.FlagNotFoundError.html b/classes/_openfeature_core.FlagNotFoundError.html index 80d45a77f..1adabb774 100644 --- a/classes/_openfeature_core.FlagNotFoundError.html +++ b/classes/_openfeature_core.FlagNotFoundError.html @@ -1,4 +1,4 @@ -FlagNotFoundError | Documentation

Hierarchy (view full)

Constructors

constructor +FlagNotFoundError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.GeneralError.html b/classes/_openfeature_core.GeneralError.html index 10f246136..f4d328a4b 100644 --- a/classes/_openfeature_core.GeneralError.html +++ b/classes/_openfeature_core.GeneralError.html @@ -1,4 +1,4 @@ -GeneralError | Documentation

Hierarchy (view full)

Constructors

constructor +GeneralError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.GenericEventEmitter.html b/classes/_openfeature_core.GenericEventEmitter.html index e24398045..48fa74718 100644 --- a/classes/_openfeature_core.GenericEventEmitter.html +++ b/classes/_openfeature_core.GenericEventEmitter.html @@ -1,6 +1,6 @@ GenericEventEmitter | Documentation

Class GenericEventEmitter<E, AdditionalContext>Abstract

The GenericEventEmitter should only be used within the SDK. It supports additional properties that can be included in the event details.

-

Type Parameters

  • E extends AnyProviderEvent
  • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

Implements

Constructors

Type Parameters

  • E extends AnyProviderEvent
  • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

eventEmitter: PlatformEventEmitter

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger +

Constructors

Properties

eventEmitter: PlatformEventEmitter

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

    Parameters

    • logger: Logger

      The logger to be used

    Returns this

    The receiver (this object)

    -
+
diff --git a/classes/_openfeature_core.InvalidContextError.html b/classes/_openfeature_core.InvalidContextError.html index b52ef84df..8110b0944 100644 --- a/classes/_openfeature_core.InvalidContextError.html +++ b/classes/_openfeature_core.InvalidContextError.html @@ -1,4 +1,4 @@ -InvalidContextError | Documentation

Hierarchy (view full)

Constructors

constructor +InvalidContextError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.OpenFeatureCommonAPI.html b/classes/_openfeature_core.OpenFeatureCommonAPI.html index 3ccf587e5..569d55a47 100644 --- a/classes/_openfeature_core.OpenFeatureCommonAPI.html +++ b/classes/_openfeature_core.OpenFeatureCommonAPI.html @@ -1,4 +1,4 @@ -OpenFeatureCommonAPI | Documentation

Class OpenFeatureCommonAPI<S, P, H>Abstract

Type Parameters

Implements

Constructors

constructor +OpenFeatureCommonAPI | Documentation

Class OpenFeatureCommonAPI<S, P, H>Abstract

Type Parameters

Implements

Constructors

Properties

_apiEmitter: GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<P, AnyProviderStatus>
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<P, AnyProviderStatus>>
_hooks: H[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ClientProviderStatus | typeof ServerProviderStatus

Accessors

  • get providerMetadata(): ProviderMetadata
  • Get metadata about the default provider.

    +

Constructors

Properties

_apiEmitter: GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<P, AnyProviderStatus>
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<P, AnyProviderStatus>>
_hooks: H[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ClientProviderStatus | typeof ServerProviderStatus

Accessors

Methods

Methods

  • Adds hooks that will run during flag evaluations on this receiver. +

Returns void

Returns void

+
diff --git a/classes/_openfeature_core.OpenFeatureError.html b/classes/_openfeature_core.OpenFeatureError.html index bc9c36d5f..0759ebe0e 100644 --- a/classes/_openfeature_core.OpenFeatureError.html +++ b/classes/_openfeature_core.OpenFeatureError.html @@ -1,4 +1,4 @@ -OpenFeatureError | Documentation

Hierarchy (view full)

Constructors

constructor +OpenFeatureError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.ParseError.html b/classes/_openfeature_core.ParseError.html index f68a5cea9..54bdd2130 100644 --- a/classes/_openfeature_core.ParseError.html +++ b/classes/_openfeature_core.ParseError.html @@ -1,4 +1,4 @@ -ParseError | Documentation

Hierarchy (view full)

Constructors

constructor +ParseError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.ProviderFatalError.html b/classes/_openfeature_core.ProviderFatalError.html index 4a6493182..9c279b852 100644 --- a/classes/_openfeature_core.ProviderFatalError.html +++ b/classes/_openfeature_core.ProviderFatalError.html @@ -1,4 +1,4 @@ -ProviderFatalError | Documentation

Hierarchy (view full)

Constructors

constructor +ProviderFatalError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.ProviderNotReadyError.html b/classes/_openfeature_core.ProviderNotReadyError.html index 777651582..eaccd8237 100644 --- a/classes/_openfeature_core.ProviderNotReadyError.html +++ b/classes/_openfeature_core.ProviderNotReadyError.html @@ -1,4 +1,4 @@ -ProviderNotReadyError | Documentation

Hierarchy (view full)

Constructors

constructor +ProviderNotReadyError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.ProviderWrapper.html b/classes/_openfeature_core.ProviderWrapper.html index b899040ad..1a5e3309f 100644 --- a/classes/_openfeature_core.ProviderWrapper.html +++ b/classes/_openfeature_core.ProviderWrapper.html @@ -1,9 +1,9 @@ ProviderWrapper | Documentation

A provider and its current status. For internal use only.

-

Type Parameters

  • P extends CommonProvider<AnyProviderStatus>
  • S extends AnyProviderStatus

Constructors

Type Parameters

  • P extends CommonProvider<AnyProviderStatus>
  • S extends AnyProviderStatus

Constructors

Accessors

Methods

+

Constructors

Accessors

Methods

diff --git a/classes/_openfeature_core.SafeLogger.html b/classes/_openfeature_core.SafeLogger.html index 4848e5896..348f79b0c 100644 --- a/classes/_openfeature_core.SafeLogger.html +++ b/classes/_openfeature_core.SafeLogger.html @@ -1,6 +1,6 @@ -SafeLogger | Documentation

Implements

Constructors

constructor +SafeLogger | Documentation

Implements

Constructors

Methods

Constructors

Methods

+

Constructors

Methods

diff --git a/classes/_openfeature_core.TargetingKeyMissingError.html b/classes/_openfeature_core.TargetingKeyMissingError.html index 037b27be1..36d29aca8 100644 --- a/classes/_openfeature_core.TargetingKeyMissingError.html +++ b/classes/_openfeature_core.TargetingKeyMissingError.html @@ -1,4 +1,4 @@ -TargetingKeyMissingError | Documentation

Hierarchy (view full)

Constructors

constructor +TargetingKeyMissingError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_core.TypeMismatchError.html b/classes/_openfeature_core.TypeMismatchError.html index 80676f963..a76e3da2c 100644 --- a/classes/_openfeature_core.TypeMismatchError.html +++ b/classes/_openfeature_core.TypeMismatchError.html @@ -1,4 +1,4 @@ -TypeMismatchError | Documentation

Hierarchy (view full)

Constructors

constructor +TypeMismatchError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.AsyncLocalStorageTransactionContextPropagator.html b/classes/_openfeature_server_sdk.AsyncLocalStorageTransactionContextPropagator.html index cd6a13a58..06b9d9016 100644 --- a/classes/_openfeature_server_sdk.AsyncLocalStorageTransactionContextPropagator.html +++ b/classes/_openfeature_server_sdk.AsyncLocalStorageTransactionContextPropagator.html @@ -1,10 +1,10 @@ -AsyncLocalStorageTransactionContextPropagator | Documentation

Implements

Constructors

constructor +AsyncLocalStorageTransactionContextPropagator | Documentation

Implements

Constructors

Methods

  • Sets the transaction context using the registered transaction context propagator. Runs the callback function, in which the transactionContext will be available by calling this#getTransactionContext.

    The TransactionContextPropagator must persist the transactionContext and make it available @@ -19,4 +19,4 @@

Parameters

  • transactionContext: EvaluationContext

    The transaction specific context

  • callback: ((...args: TArgs) => R)

    Callback function to run

      • (...args): R
      • Parameters

        Returns R

  • Rest...args: TArgs

    Optional arguments that are passed to the callback function

    -

Returns void

+

Returns void

diff --git a/classes/_openfeature_server_sdk.DefaultLogger.html b/classes/_openfeature_server_sdk.DefaultLogger.html index 6a75eb479..a3a42e170 100644 --- a/classes/_openfeature_server_sdk.DefaultLogger.html +++ b/classes/_openfeature_server_sdk.DefaultLogger.html @@ -1,6 +1,6 @@ -DefaultLogger | Documentation

Implements

Constructors

constructor +DefaultLogger | Documentation

Implements

Constructors

Methods

Constructors

Methods

+

Constructors

Methods

diff --git a/classes/_openfeature_server_sdk.FlagNotFoundError.html b/classes/_openfeature_server_sdk.FlagNotFoundError.html index 4e4796d44..cc9a04d9b 100644 --- a/classes/_openfeature_server_sdk.FlagNotFoundError.html +++ b/classes/_openfeature_server_sdk.FlagNotFoundError.html @@ -1,4 +1,4 @@ -FlagNotFoundError | Documentation

Hierarchy (view full)

Constructors

constructor +FlagNotFoundError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.GeneralError.html b/classes/_openfeature_server_sdk.GeneralError.html index c256f2d63..cd34e76a5 100644 --- a/classes/_openfeature_server_sdk.GeneralError.html +++ b/classes/_openfeature_server_sdk.GeneralError.html @@ -1,4 +1,4 @@ -GeneralError | Documentation

Hierarchy (view full)

Constructors

constructor +GeneralError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.GenericEventEmitter.html b/classes/_openfeature_server_sdk.GenericEventEmitter.html index 70c9208a7..0cea6b605 100644 --- a/classes/_openfeature_server_sdk.GenericEventEmitter.html +++ b/classes/_openfeature_server_sdk.GenericEventEmitter.html @@ -1,6 +1,6 @@ GenericEventEmitter | Documentation

Class GenericEventEmitter<E, AdditionalContext>Abstract

The GenericEventEmitter should only be used within the SDK. It supports additional properties that can be included in the event details.

-

Type Parameters

  • E extends AnyProviderEvent
  • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

Hierarchy (view full)

Implements

Constructors

Type Parameters

  • E extends AnyProviderEvent
  • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

Hierarchy (view full)

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

eventEmitter: PlatformEventEmitter

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger +

Constructors

Properties

eventEmitter: PlatformEventEmitter

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

    Parameters

    • logger: Logger

      The logger to be used

    Returns this

    The receiver (this object)

    -
+
diff --git a/classes/_openfeature_server_sdk.InMemoryProvider.html b/classes/_openfeature_server_sdk.InMemoryProvider.html index d0d437337..a253e4a97 100644 --- a/classes/_openfeature_server_sdk.InMemoryProvider.html +++ b/classes/_openfeature_server_sdk.InMemoryProvider.html @@ -1,5 +1,5 @@ InMemoryProvider | Documentation

A simple OpenFeature provider intended for demos and as a test stub.

-

Implements

Constructors

Implements

Constructors

Properties

An event emitter for ProviderEvents.

+

Constructors

Properties

An event emitter for ProviderEvents.

ProviderEvents

-
metadata: {
    name: "in-memory";
} = ...
runsOn: "server" = 'server'

Represents where the provider is intended to be run. If defined, +

metadata: {
    name: "in-memory";
} = ...
runsOn: "server" = 'server'

Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

-

Methods

Methods

+

Returns void

diff --git a/classes/_openfeature_server_sdk.InvalidContextError.html b/classes/_openfeature_server_sdk.InvalidContextError.html index 516abbe01..da8376ae7 100644 --- a/classes/_openfeature_server_sdk.InvalidContextError.html +++ b/classes/_openfeature_server_sdk.InvalidContextError.html @@ -1,4 +1,4 @@ -InvalidContextError | Documentation

Hierarchy (view full)

Constructors

constructor +InvalidContextError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.OpenFeatureAPI.html b/classes/_openfeature_server_sdk.OpenFeatureAPI.html index 537686a7a..12177f27a 100644 --- a/classes/_openfeature_server_sdk.OpenFeatureAPI.html +++ b/classes/_openfeature_server_sdk.OpenFeatureAPI.html @@ -1,4 +1,4 @@ -OpenFeatureAPI | Documentation

Hierarchy (view full)

Implements

Properties

_apiEmitter +OpenFeatureAPI | Documentation

Hierarchy (view full)

Implements

Properties

_apiEmitter: OpenFeatureEventEmitter = ...
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<Provider, ProviderStatus> = ...
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<Provider, ProviderStatus>> = ...
_hooks: Hook[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ProviderStatus = ProviderStatus

Accessors

  • get providerMetadata(): ProviderMetadata
  • Get metadata about the default provider.

    +

Properties

_apiEmitter: OpenFeatureEventEmitter = ...
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<Provider, ProviderStatus> = ...
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<Provider, ProviderStatus>> = ...
_hooks: Hook[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ProviderStatus = ProviderStatus

Accessors

Methods

Methods

  • Adds hooks that will run during flag evaluations on this receiver. +

Returns void

Returns Client

OpenFeature Client

-

Returns void

Parameters

Returns void

Returns void

+
diff --git a/classes/_openfeature_server_sdk.OpenFeatureCommonAPI.html b/classes/_openfeature_server_sdk.OpenFeatureCommonAPI.html index f29c6938f..13b0df480 100644 --- a/classes/_openfeature_server_sdk.OpenFeatureCommonAPI.html +++ b/classes/_openfeature_server_sdk.OpenFeatureCommonAPI.html @@ -1,4 +1,4 @@ -OpenFeatureCommonAPI | Documentation

Class OpenFeatureCommonAPI<S, P, H>Abstract

Type Parameters

Hierarchy (view full)

Implements

Constructors

constructor +OpenFeatureCommonAPI | Documentation

Class OpenFeatureCommonAPI<S, P, H>Abstract

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

_apiEmitter: GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<P, AnyProviderStatus>
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<P, AnyProviderStatus>>
_hooks: H[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ClientProviderStatus | typeof ProviderStatus

Accessors

  • get providerMetadata(): ProviderMetadata
  • Get metadata about the default provider.

    +

Constructors

Properties

_apiEmitter: GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<P, AnyProviderStatus>
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<P, AnyProviderStatus>>
_hooks: H[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ClientProviderStatus | typeof ProviderStatus

Accessors

Methods

Methods

  • Adds hooks that will run during flag evaluations on this receiver. +

Returns void

Returns void

+
diff --git a/classes/_openfeature_server_sdk.OpenFeatureError.html b/classes/_openfeature_server_sdk.OpenFeatureError.html index 53b9143e0..6ca4ba314 100644 --- a/classes/_openfeature_server_sdk.OpenFeatureError.html +++ b/classes/_openfeature_server_sdk.OpenFeatureError.html @@ -1,4 +1,4 @@ -OpenFeatureError | Documentation

Hierarchy (view full)

Constructors

constructor +OpenFeatureError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.OpenFeatureEventEmitter.html b/classes/_openfeature_server_sdk.OpenFeatureEventEmitter.html index 7cb0a3718..851091581 100644 --- a/classes/_openfeature_server_sdk.OpenFeatureEventEmitter.html +++ b/classes/_openfeature_server_sdk.OpenFeatureEventEmitter.html @@ -2,7 +2,7 @@ events at various parts of the provider lifecycle.

NOTE: Ready and error events are automatically emitted by the SDK based on the result of the initialize method.

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

eventEmitter: EventEmitter<DefaultEventMap> = ...

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger +

Constructors

Properties

eventEmitter: EventEmitter<DefaultEventMap> = ...

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

    Parameters

    • logger: Logger

      The logger to be used

    Returns this

    The receiver (this object)

    -
+
diff --git a/classes/_openfeature_server_sdk.ParseError.html b/classes/_openfeature_server_sdk.ParseError.html index 72d1c7bb4..1186ed226 100644 --- a/classes/_openfeature_server_sdk.ParseError.html +++ b/classes/_openfeature_server_sdk.ParseError.html @@ -1,4 +1,4 @@ -ParseError | Documentation

Hierarchy (view full)

Constructors

constructor +ParseError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.ProviderFatalError.html b/classes/_openfeature_server_sdk.ProviderFatalError.html index 629a94b03..5e8d8af65 100644 --- a/classes/_openfeature_server_sdk.ProviderFatalError.html +++ b/classes/_openfeature_server_sdk.ProviderFatalError.html @@ -1,4 +1,4 @@ -ProviderFatalError | Documentation

Hierarchy (view full)

Constructors

constructor +ProviderFatalError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.ProviderNotReadyError.html b/classes/_openfeature_server_sdk.ProviderNotReadyError.html index 49c8fbaaa..b19e7fd0f 100644 --- a/classes/_openfeature_server_sdk.ProviderNotReadyError.html +++ b/classes/_openfeature_server_sdk.ProviderNotReadyError.html @@ -1,4 +1,4 @@ -ProviderNotReadyError | Documentation

Hierarchy (view full)

Constructors

constructor +ProviderNotReadyError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.ProviderWrapper.html b/classes/_openfeature_server_sdk.ProviderWrapper.html index 4ffce001b..bb7fa0eb2 100644 --- a/classes/_openfeature_server_sdk.ProviderWrapper.html +++ b/classes/_openfeature_server_sdk.ProviderWrapper.html @@ -1,9 +1,9 @@ ProviderWrapper | Documentation

A provider and its current status. For internal use only.

-

Type Parameters

  • P extends CommonProvider<AnyProviderStatus>
  • S extends AnyProviderStatus

Constructors

Type Parameters

  • P extends CommonProvider<AnyProviderStatus>
  • S extends AnyProviderStatus

Constructors

Accessors

Methods

+

Constructors

Accessors

Methods

diff --git a/classes/_openfeature_server_sdk.SafeLogger.html b/classes/_openfeature_server_sdk.SafeLogger.html index be09fe7da..d9e47676d 100644 --- a/classes/_openfeature_server_sdk.SafeLogger.html +++ b/classes/_openfeature_server_sdk.SafeLogger.html @@ -1,6 +1,6 @@ -SafeLogger | Documentation

Implements

Constructors

constructor +SafeLogger | Documentation

Implements

Constructors

Methods

Constructors

Methods

+

Constructors

Methods

diff --git a/classes/_openfeature_server_sdk.TargetingKeyMissingError.html b/classes/_openfeature_server_sdk.TargetingKeyMissingError.html index b1143890e..7444570e1 100644 --- a/classes/_openfeature_server_sdk.TargetingKeyMissingError.html +++ b/classes/_openfeature_server_sdk.TargetingKeyMissingError.html @@ -1,4 +1,4 @@ -TargetingKeyMissingError | Documentation

Hierarchy (view full)

Constructors

constructor +TargetingKeyMissingError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_server_sdk.TypeMismatchError.html b/classes/_openfeature_server_sdk.TypeMismatchError.html index ab67d690e..dc5e8119d 100644 --- a/classes/_openfeature_server_sdk.TypeMismatchError.html +++ b/classes/_openfeature_server_sdk.TypeMismatchError.html @@ -1,4 +1,4 @@ -TypeMismatchError | Documentation

Hierarchy (view full)

Constructors

constructor +TypeMismatchError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.DefaultLogger.html b/classes/_openfeature_web_sdk.DefaultLogger.html index 69c62c0e4..9009ef41a 100644 --- a/classes/_openfeature_web_sdk.DefaultLogger.html +++ b/classes/_openfeature_web_sdk.DefaultLogger.html @@ -1,6 +1,6 @@ -DefaultLogger | Documentation

Implements

Constructors

constructor +DefaultLogger | Documentation

Implements

Constructors

Methods

Constructors

Methods

+

Constructors

Methods

diff --git a/classes/_openfeature_web_sdk.FlagNotFoundError.html b/classes/_openfeature_web_sdk.FlagNotFoundError.html index 3c6761edf..0d166de46 100644 --- a/classes/_openfeature_web_sdk.FlagNotFoundError.html +++ b/classes/_openfeature_web_sdk.FlagNotFoundError.html @@ -1,4 +1,4 @@ -FlagNotFoundError | Documentation

Hierarchy (view full)

Constructors

constructor +FlagNotFoundError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.GeneralError.html b/classes/_openfeature_web_sdk.GeneralError.html index b6a5f53a8..26dbecb18 100644 --- a/classes/_openfeature_web_sdk.GeneralError.html +++ b/classes/_openfeature_web_sdk.GeneralError.html @@ -1,4 +1,4 @@ -GeneralError | Documentation

Hierarchy (view full)

Constructors

constructor +GeneralError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.GenericEventEmitter.html b/classes/_openfeature_web_sdk.GenericEventEmitter.html index a20af64dd..130cfc254 100644 --- a/classes/_openfeature_web_sdk.GenericEventEmitter.html +++ b/classes/_openfeature_web_sdk.GenericEventEmitter.html @@ -1,6 +1,6 @@ GenericEventEmitter | Documentation

Class GenericEventEmitter<E, AdditionalContext>Abstract

The GenericEventEmitter should only be used within the SDK. It supports additional properties that can be included in the event details.

-

Type Parameters

  • E extends AnyProviderEvent
  • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

Hierarchy (view full)

Implements

Constructors

Type Parameters

  • E extends AnyProviderEvent
  • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

Hierarchy (view full)

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

eventEmitter: PlatformEventEmitter

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger +

Constructors

Properties

eventEmitter: PlatformEventEmitter

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

    Parameters

    • logger: Logger

      The logger to be used

    Returns this

    The receiver (this object)

    -
+
diff --git a/classes/_openfeature_web_sdk.InMemoryProvider.html b/classes/_openfeature_web_sdk.InMemoryProvider.html index f1be15ff3..dc80b678e 100644 --- a/classes/_openfeature_web_sdk.InMemoryProvider.html +++ b/classes/_openfeature_web_sdk.InMemoryProvider.html @@ -1,5 +1,5 @@ InMemoryProvider | Documentation

A simple OpenFeature provider intended for demos and as a test stub.

-

Implements

Constructors

Implements

Constructors

Properties

An event emitter for ProviderEvents.

+

Constructors

Properties

An event emitter for ProviderEvents.

ProviderEvents

-
metadata: {
    name: "in-memory";
} = ...
runsOn: "client" = 'client'

Represents where the provider is intended to be run. If defined, +

metadata: {
    name: "in-memory";
} = ...
runsOn: "client" = 'client'

Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

-

Methods

Methods

+

Returns Promise<void>

diff --git a/classes/_openfeature_web_sdk.InvalidContextError.html b/classes/_openfeature_web_sdk.InvalidContextError.html index 821dabd08..305122cb2 100644 --- a/classes/_openfeature_web_sdk.InvalidContextError.html +++ b/classes/_openfeature_web_sdk.InvalidContextError.html @@ -1,4 +1,4 @@ -InvalidContextError | Documentation

Hierarchy (view full)

Constructors

constructor +InvalidContextError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.OpenFeatureAPI.html b/classes/_openfeature_web_sdk.OpenFeatureAPI.html index 617073b40..ab023af95 100644 --- a/classes/_openfeature_web_sdk.OpenFeatureAPI.html +++ b/classes/_openfeature_web_sdk.OpenFeatureAPI.html @@ -1,4 +1,4 @@ -OpenFeatureAPI | Documentation

Hierarchy (view full)

Implements

Properties

_apiEmitter +OpenFeatureAPI | Documentation

Hierarchy (view full)

Implements

Properties

_apiEmitter: GenericEventEmitter<ProviderEvents, Record<string, unknown>> = ...
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<Provider, ProviderStatus> = ...
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<Provider, ProviderStatus>> = ...
_hooks: Hook[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ProviderStatus = ProviderStatus

Accessors

  • get providerMetadata(): ProviderMetadata
  • Get metadata about the default provider.

    +

Properties

_apiEmitter: GenericEventEmitter<ProviderEvents, Record<string, unknown>> = ...
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<Provider, ProviderStatus> = ...
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<Provider, ProviderStatus>> = ...
_hooks: Hook[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ProviderStatus = ProviderStatus

Accessors

Methods

Methods

  • Adds hooks that will run during flag evaluations on this receiver. +

Returns void

Returns Promise<void>

Returns void

+
diff --git a/classes/_openfeature_web_sdk.OpenFeatureCommonAPI.html b/classes/_openfeature_web_sdk.OpenFeatureCommonAPI.html index a06c5ebff..2312a274d 100644 --- a/classes/_openfeature_web_sdk.OpenFeatureCommonAPI.html +++ b/classes/_openfeature_web_sdk.OpenFeatureCommonAPI.html @@ -1,4 +1,4 @@ -OpenFeatureCommonAPI | Documentation

Class OpenFeatureCommonAPI<S, P, H>Abstract

Type Parameters

Hierarchy (view full)

Implements

Constructors

constructor +OpenFeatureCommonAPI | Documentation

Class OpenFeatureCommonAPI<S, P, H>Abstract

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

_apiEmitter: GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<P, AnyProviderStatus>
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<P, AnyProviderStatus>>
_hooks: H[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ProviderStatus | typeof ServerProviderStatus

Accessors

  • get providerMetadata(): ProviderMetadata
  • Get metadata about the default provider.

    +

Constructors

Properties

_apiEmitter: GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>
_clientEvents: Map<undefined | string, GenericEventEmitter<AnyProviderEvent, Record<string, unknown>>> = ...
_context: EvaluationContext = {}
_defaultProvider: ProviderWrapper<P, AnyProviderStatus>
_domainScopedContext: Map<string, EvaluationContext> = ...
_domainScopedProviders: Map<string, ProviderWrapper<P, AnyProviderStatus>>
_hooks: H[] = []
_logger: Logger = ...
_runsOn: Paradigm
_statusEnumType: typeof ProviderStatus | typeof ServerProviderStatus

Accessors

Methods

Methods

  • Adds hooks that will run during flag evaluations on this receiver. +

Returns void

Returns void

+
diff --git a/classes/_openfeature_web_sdk.OpenFeatureError.html b/classes/_openfeature_web_sdk.OpenFeatureError.html index 873b756a1..901791379 100644 --- a/classes/_openfeature_web_sdk.OpenFeatureError.html +++ b/classes/_openfeature_web_sdk.OpenFeatureError.html @@ -1,4 +1,4 @@ -OpenFeatureError | Documentation

Hierarchy (view full)

Constructors

constructor +OpenFeatureError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.OpenFeatureEventEmitter.html b/classes/_openfeature_web_sdk.OpenFeatureEventEmitter.html index 004aa3e90..a972fb96c 100644 --- a/classes/_openfeature_web_sdk.OpenFeatureEventEmitter.html +++ b/classes/_openfeature_web_sdk.OpenFeatureEventEmitter.html @@ -2,7 +2,7 @@ events at various parts of the provider lifecycle.

NOTE: Ready and error events are automatically emitted by the SDK based on the result of the initialize method.

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

eventEmitter: EventEmitter<string | symbol, any> = ...

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger +

Constructors

Properties

eventEmitter: EventEmitter<string | symbol, any> = ...

Accessors

Methods

  • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

    Parameters

    • logger: Logger

      The logger to be used

    Returns this

    The receiver (this object)

    -
+
diff --git a/classes/_openfeature_web_sdk.ParseError.html b/classes/_openfeature_web_sdk.ParseError.html index ba77c3b01..f81ddb5cb 100644 --- a/classes/_openfeature_web_sdk.ParseError.html +++ b/classes/_openfeature_web_sdk.ParseError.html @@ -1,4 +1,4 @@ -ParseError | Documentation

Hierarchy (view full)

Constructors

constructor +ParseError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.ProviderFatalError.html b/classes/_openfeature_web_sdk.ProviderFatalError.html index aab735336..8aa0379bb 100644 --- a/classes/_openfeature_web_sdk.ProviderFatalError.html +++ b/classes/_openfeature_web_sdk.ProviderFatalError.html @@ -1,4 +1,4 @@ -ProviderFatalError | Documentation

Hierarchy (view full)

Constructors

constructor +ProviderFatalError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.ProviderNotReadyError.html b/classes/_openfeature_web_sdk.ProviderNotReadyError.html index 30428c8f9..d8880c597 100644 --- a/classes/_openfeature_web_sdk.ProviderNotReadyError.html +++ b/classes/_openfeature_web_sdk.ProviderNotReadyError.html @@ -1,4 +1,4 @@ -ProviderNotReadyError | Documentation

Hierarchy (view full)

Constructors

constructor +ProviderNotReadyError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.ProviderWrapper.html b/classes/_openfeature_web_sdk.ProviderWrapper.html index 567cc6a7c..f91e4198b 100644 --- a/classes/_openfeature_web_sdk.ProviderWrapper.html +++ b/classes/_openfeature_web_sdk.ProviderWrapper.html @@ -1,9 +1,9 @@ ProviderWrapper | Documentation

A provider and its current status. For internal use only.

-

Type Parameters

  • P extends CommonProvider<AnyProviderStatus>
  • S extends AnyProviderStatus

Constructors

Type Parameters

  • P extends CommonProvider<AnyProviderStatus>
  • S extends AnyProviderStatus

Constructors

Accessors

Methods

+

Constructors

Accessors

Methods

diff --git a/classes/_openfeature_web_sdk.SafeLogger.html b/classes/_openfeature_web_sdk.SafeLogger.html index c6f7a6b20..8a4483c0b 100644 --- a/classes/_openfeature_web_sdk.SafeLogger.html +++ b/classes/_openfeature_web_sdk.SafeLogger.html @@ -1,6 +1,6 @@ -SafeLogger | Documentation

Implements

Constructors

constructor +SafeLogger | Documentation

Implements

Constructors

Methods

Constructors

Methods

+

Constructors

Methods

diff --git a/classes/_openfeature_web_sdk.TargetingKeyMissingError.html b/classes/_openfeature_web_sdk.TargetingKeyMissingError.html index 72826afae..d1fdba96c 100644 --- a/classes/_openfeature_web_sdk.TargetingKeyMissingError.html +++ b/classes/_openfeature_web_sdk.TargetingKeyMissingError.html @@ -1,4 +1,4 @@ -TargetingKeyMissingError | Documentation

Hierarchy (view full)

Constructors

constructor +TargetingKeyMissingError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/classes/_openfeature_web_sdk.TypeMismatchError.html b/classes/_openfeature_web_sdk.TypeMismatchError.html index e58f424b6..52dcb3f16 100644 --- a/classes/_openfeature_web_sdk.TypeMismatchError.html +++ b/classes/_openfeature_web_sdk.TypeMismatchError.html @@ -1,4 +1,4 @@ -TypeMismatchError | Documentation

Hierarchy (view full)

Constructors

constructor +TypeMismatchError | Documentation

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Constructors

Properties

cause?: unknown
code: ErrorCode
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

diff --git a/enums/_openfeature_core.ClientProviderEvents.html b/enums/_openfeature_core.ClientProviderEvents.html index 6d386e46f..21b4c7cf0 100644 --- a/enums/_openfeature_core.ClientProviderEvents.html +++ b/enums/_openfeature_core.ClientProviderEvents.html @@ -1,14 +1,14 @@ ClientProviderEvents | Documentation

An enumeration of possible events for web-sdk providers.

-

Enumeration Members

Enumeration Members

ConfigurationChanged

The flag configuration in the source-of-truth has changed.

-
ContextChanged

The context associated with the provider has changed, and the provider has reconciled it's associated state.

-
Error

The provider is in an error state.

-
Ready

The provider is ready to evaluate flags.

-
Reconciling

The context associated with the provider has changed, and the provider has not yet reconciled its associated state.

-
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
ContextChanged

The context associated with the provider has changed, and the provider has reconciled it's associated state.

+
Error

The provider is in an error state.

+
Ready

The provider is ready to evaluate flags.

+
Reconciling

The context associated with the provider has changed, and the provider has not yet reconciled its associated state.

+
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_core.ClientProviderStatus.html b/enums/_openfeature_core.ClientProviderStatus.html index 4ca19c879..2064db1a7 100644 --- a/enums/_openfeature_core.ClientProviderStatus.html +++ b/enums/_openfeature_core.ClientProviderStatus.html @@ -1,15 +1,15 @@ ClientProviderStatus | Documentation

The state of the provider. Note that the provider's state is handled by the SDK.

-

Enumeration Members

Enumeration Members

ERROR

The provider is in an error state and unable to evaluate flags.

-
FATAL

The provider has entered an irrecoverable error state.

-
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

-
READY

The provider is ready to resolve flags.

-
RECONCILING

The provider is reconciling its state with a context change.

-
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
FATAL

The provider has entered an irrecoverable error state.

+
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

+
READY

The provider is ready to resolve flags.

+
RECONCILING

The provider is reconciling its state with a context change.

+
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_core.ErrorCode.html b/enums/_openfeature_core.ErrorCode.html index b30c4285c..c483e2ef2 100644 --- a/enums/_openfeature_core.ErrorCode.html +++ b/enums/_openfeature_core.ErrorCode.html @@ -1,4 +1,4 @@ -ErrorCode | Documentation

Enumeration Members

FLAG_NOT_FOUND +ErrorCode | Documentation

Enumeration Members

FLAG_NOT_FOUND

The flag could not be found.

-
GENERAL

An error with an unspecified code.

-
INVALID_CONTEXT

The evaluation context does not meet provider requirements.

-
PARSE_ERROR

An error was encountered parsing data, such as a flag configuration.

-
PROVIDER_FATAL

The provider has entered an irrecoverable error state.

-
PROVIDER_NOT_READY

The value was resolved before the provider was ready.

-
TARGETING_KEY_MISSING

The provider requires a targeting key and one was not provided in the evaluation context.

-
TYPE_MISMATCH

The type of the flag value does not match the expected type.

-
+
GENERAL

An error with an unspecified code.

+
INVALID_CONTEXT

The evaluation context does not meet provider requirements.

+
PARSE_ERROR

An error was encountered parsing data, such as a flag configuration.

+
PROVIDER_FATAL

The provider has entered an irrecoverable error state.

+
PROVIDER_NOT_READY

The value was resolved before the provider was ready.

+
TARGETING_KEY_MISSING

The provider requires a targeting key and one was not provided in the evaluation context.

+
TYPE_MISMATCH

The type of the flag value does not match the expected type.

+
diff --git a/enums/_openfeature_core.ServerProviderEvents.html b/enums/_openfeature_core.ServerProviderEvents.html index 7f7213602..6bc171d5a 100644 --- a/enums/_openfeature_core.ServerProviderEvents.html +++ b/enums/_openfeature_core.ServerProviderEvents.html @@ -1,10 +1,10 @@ ServerProviderEvents | Documentation

An enumeration of possible events for server-sdk providers.

-

Enumeration Members

Enumeration Members

ConfigurationChanged

The flag configuration in the source-of-truth has changed.

-
Error

The provider is in an error state.

-
Ready

The provider is ready to evaluate flags.

-
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
Error

The provider is in an error state.

+
Ready

The provider is ready to evaluate flags.

+
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_core.ServerProviderStatus.html b/enums/_openfeature_core.ServerProviderStatus.html index 9a457d2d1..8f865a723 100644 --- a/enums/_openfeature_core.ServerProviderStatus.html +++ b/enums/_openfeature_core.ServerProviderStatus.html @@ -1,13 +1,13 @@ ServerProviderStatus | Documentation

The state of the provider. Note that the provider's state is handled by the SDK.

-

Enumeration Members

Enumeration Members

Enumeration Members

ERROR

The provider is in an error state and unable to evaluate flags.

-
FATAL

The provider has entered an irrecoverable error state.

-
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

-
READY

The provider is ready to resolve flags.

-
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
FATAL

The provider has entered an irrecoverable error state.

+
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

+
READY

The provider is ready to resolve flags.

+
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_server_sdk.ClientProviderEvents.html b/enums/_openfeature_server_sdk.ClientProviderEvents.html index 1955d313e..66fa0553e 100644 --- a/enums/_openfeature_server_sdk.ClientProviderEvents.html +++ b/enums/_openfeature_server_sdk.ClientProviderEvents.html @@ -1,14 +1,14 @@ ClientProviderEvents | Documentation

An enumeration of possible events for web-sdk providers.

-

Enumeration Members

Enumeration Members

ConfigurationChanged

The flag configuration in the source-of-truth has changed.

-
ContextChanged

The context associated with the provider has changed, and the provider has reconciled it's associated state.

-
Error

The provider is in an error state.

-
Ready

The provider is ready to evaluate flags.

-
Reconciling

The context associated with the provider has changed, and the provider has not yet reconciled its associated state.

-
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
ContextChanged

The context associated with the provider has changed, and the provider has reconciled it's associated state.

+
Error

The provider is in an error state.

+
Ready

The provider is ready to evaluate flags.

+
Reconciling

The context associated with the provider has changed, and the provider has not yet reconciled its associated state.

+
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_server_sdk.ClientProviderStatus.html b/enums/_openfeature_server_sdk.ClientProviderStatus.html index a64eaa5bc..4ea5985fb 100644 --- a/enums/_openfeature_server_sdk.ClientProviderStatus.html +++ b/enums/_openfeature_server_sdk.ClientProviderStatus.html @@ -1,15 +1,15 @@ ClientProviderStatus | Documentation

The state of the provider. Note that the provider's state is handled by the SDK.

-

Enumeration Members

Enumeration Members

ERROR

The provider is in an error state and unable to evaluate flags.

-
FATAL

The provider has entered an irrecoverable error state.

-
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

-
READY

The provider is ready to resolve flags.

-
RECONCILING

The provider is reconciling its state with a context change.

-
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
FATAL

The provider has entered an irrecoverable error state.

+
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

+
READY

The provider is ready to resolve flags.

+
RECONCILING

The provider is reconciling its state with a context change.

+
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_server_sdk.ErrorCode.html b/enums/_openfeature_server_sdk.ErrorCode.html index 743333fdb..c452d6a98 100644 --- a/enums/_openfeature_server_sdk.ErrorCode.html +++ b/enums/_openfeature_server_sdk.ErrorCode.html @@ -1,4 +1,4 @@ -ErrorCode | Documentation

Enumeration Members

FLAG_NOT_FOUND +ErrorCode | Documentation

Enumeration Members

FLAG_NOT_FOUND

The flag could not be found.

-
GENERAL

An error with an unspecified code.

-
INVALID_CONTEXT

The evaluation context does not meet provider requirements.

-
PARSE_ERROR

An error was encountered parsing data, such as a flag configuration.

-
PROVIDER_FATAL

The provider has entered an irrecoverable error state.

-
PROVIDER_NOT_READY

The value was resolved before the provider was ready.

-
TARGETING_KEY_MISSING

The provider requires a targeting key and one was not provided in the evaluation context.

-
TYPE_MISMATCH

The type of the flag value does not match the expected type.

-
+
GENERAL

An error with an unspecified code.

+
INVALID_CONTEXT

The evaluation context does not meet provider requirements.

+
PARSE_ERROR

An error was encountered parsing data, such as a flag configuration.

+
PROVIDER_FATAL

The provider has entered an irrecoverable error state.

+
PROVIDER_NOT_READY

The value was resolved before the provider was ready.

+
TARGETING_KEY_MISSING

The provider requires a targeting key and one was not provided in the evaluation context.

+
TYPE_MISMATCH

The type of the flag value does not match the expected type.

+
diff --git a/enums/_openfeature_server_sdk.ProviderEvents.html b/enums/_openfeature_server_sdk.ProviderEvents.html index dfe9d3cb9..87872345a 100644 --- a/enums/_openfeature_server_sdk.ProviderEvents.html +++ b/enums/_openfeature_server_sdk.ProviderEvents.html @@ -1,10 +1,10 @@ ProviderEvents | Documentation

An enumeration of possible events for server-sdk providers.

-

Enumeration Members

Enumeration Members

ConfigurationChanged

The flag configuration in the source-of-truth has changed.

-
Error

The provider is in an error state.

-
Ready

The provider is ready to evaluate flags.

-
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
Error

The provider is in an error state.

+
Ready

The provider is ready to evaluate flags.

+
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_server_sdk.ProviderStatus.html b/enums/_openfeature_server_sdk.ProviderStatus.html index 7f8a8144b..fe2b6eb3f 100644 --- a/enums/_openfeature_server_sdk.ProviderStatus.html +++ b/enums/_openfeature_server_sdk.ProviderStatus.html @@ -1,13 +1,13 @@ ProviderStatus | Documentation

The state of the provider. Note that the provider's state is handled by the SDK.

-

Enumeration Members

Enumeration Members

Enumeration Members

ERROR

The provider is in an error state and unable to evaluate flags.

-
FATAL

The provider has entered an irrecoverable error state.

-
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

-
READY

The provider is ready to resolve flags.

-
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
FATAL

The provider has entered an irrecoverable error state.

+
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

+
READY

The provider is ready to resolve flags.

+
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_web_sdk.ErrorCode.html b/enums/_openfeature_web_sdk.ErrorCode.html index e0d55862b..674a10597 100644 --- a/enums/_openfeature_web_sdk.ErrorCode.html +++ b/enums/_openfeature_web_sdk.ErrorCode.html @@ -1,4 +1,4 @@ -ErrorCode | Documentation

Enumeration Members

FLAG_NOT_FOUND +ErrorCode | Documentation

Enumeration Members

FLAG_NOT_FOUND

The flag could not be found.

-
GENERAL

An error with an unspecified code.

-
INVALID_CONTEXT

The evaluation context does not meet provider requirements.

-
PARSE_ERROR

An error was encountered parsing data, such as a flag configuration.

-
PROVIDER_FATAL

The provider has entered an irrecoverable error state.

-
PROVIDER_NOT_READY

The value was resolved before the provider was ready.

-
TARGETING_KEY_MISSING

The provider requires a targeting key and one was not provided in the evaluation context.

-
TYPE_MISMATCH

The type of the flag value does not match the expected type.

-
+
GENERAL

An error with an unspecified code.

+
INVALID_CONTEXT

The evaluation context does not meet provider requirements.

+
PARSE_ERROR

An error was encountered parsing data, such as a flag configuration.

+
PROVIDER_FATAL

The provider has entered an irrecoverable error state.

+
PROVIDER_NOT_READY

The value was resolved before the provider was ready.

+
TARGETING_KEY_MISSING

The provider requires a targeting key and one was not provided in the evaluation context.

+
TYPE_MISMATCH

The type of the flag value does not match the expected type.

+
diff --git a/enums/_openfeature_web_sdk.ProviderEvents.html b/enums/_openfeature_web_sdk.ProviderEvents.html index 66b09ef71..a7416dc0d 100644 --- a/enums/_openfeature_web_sdk.ProviderEvents.html +++ b/enums/_openfeature_web_sdk.ProviderEvents.html @@ -1,14 +1,14 @@ ProviderEvents | Documentation

An enumeration of possible events for web-sdk providers.

-

Enumeration Members

Enumeration Members

ConfigurationChanged

The flag configuration in the source-of-truth has changed.

-
ContextChanged

The context associated with the provider has changed, and the provider has reconciled it's associated state.

-
Error

The provider is in an error state.

-
Ready

The provider is ready to evaluate flags.

-
Reconciling

The context associated with the provider has changed, and the provider has not yet reconciled its associated state.

-
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
ContextChanged

The context associated with the provider has changed, and the provider has reconciled it's associated state.

+
Error

The provider is in an error state.

+
Ready

The provider is ready to evaluate flags.

+
Reconciling

The context associated with the provider has changed, and the provider has not yet reconciled its associated state.

+
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_web_sdk.ProviderStatus.html b/enums/_openfeature_web_sdk.ProviderStatus.html index e12b1c6ed..14971f079 100644 --- a/enums/_openfeature_web_sdk.ProviderStatus.html +++ b/enums/_openfeature_web_sdk.ProviderStatus.html @@ -1,15 +1,15 @@ ProviderStatus | Documentation

The state of the provider. Note that the provider's state is handled by the SDK.

-

Enumeration Members

Enumeration Members

ERROR

The provider is in an error state and unable to evaluate flags.

-
FATAL

The provider has entered an irrecoverable error state.

-
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

-
READY

The provider is ready to resolve flags.

-
RECONCILING

The provider is reconciling its state with a context change.

-
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
FATAL

The provider has entered an irrecoverable error state.

+
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

+
READY

The provider is ready to resolve flags.

+
RECONCILING

The provider is reconciling its state with a context change.

+
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_web_sdk.ServerProviderEvents.html b/enums/_openfeature_web_sdk.ServerProviderEvents.html index e6ff60bea..8e80e08fb 100644 --- a/enums/_openfeature_web_sdk.ServerProviderEvents.html +++ b/enums/_openfeature_web_sdk.ServerProviderEvents.html @@ -1,10 +1,10 @@ ServerProviderEvents | Documentation

An enumeration of possible events for server-sdk providers.

-

Enumeration Members

Enumeration Members

ConfigurationChanged

The flag configuration in the source-of-truth has changed.

-
Error

The provider is in an error state.

-
Ready

The provider is ready to evaluate flags.

-
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
Error

The provider is in an error state.

+
Ready

The provider is ready to evaluate flags.

+
Stale

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/enums/_openfeature_web_sdk.ServerProviderStatus.html b/enums/_openfeature_web_sdk.ServerProviderStatus.html index f2eb3e5fb..dc9bb050e 100644 --- a/enums/_openfeature_web_sdk.ServerProviderStatus.html +++ b/enums/_openfeature_web_sdk.ServerProviderStatus.html @@ -1,13 +1,13 @@ ServerProviderStatus | Documentation

The state of the provider. Note that the provider's state is handled by the SDK.

-

Enumeration Members

Enumeration Members

Enumeration Members

ERROR

The provider is in an error state and unable to evaluate flags.

-
FATAL

The provider has entered an irrecoverable error state.

-
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

-
READY

The provider is ready to resolve flags.

-
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

-
+
FATAL

The provider has entered an irrecoverable error state.

+
NOT_READY

The provider has not been initialized and cannot yet evaluate flags.

+
READY

The provider is ready to resolve flags.

+
STALE

The provider's cached state is no longer valid and may not be up-to-date with the source of truth.

+
diff --git a/functions/_openfeature_core.instantiateErrorByErrorCode.html b/functions/_openfeature_core.instantiateErrorByErrorCode.html index 6cdc682f8..3d5a88db8 100644 --- a/functions/_openfeature_core.instantiateErrorByErrorCode.html +++ b/functions/_openfeature_core.instantiateErrorByErrorCode.html @@ -1 +1 @@ -instantiateErrorByErrorCode | Documentation
+instantiateErrorByErrorCode | Documentation
diff --git a/functions/_openfeature_core.isObject.html b/functions/_openfeature_core.isObject.html index 5acb01a9d..1b407bde5 100644 --- a/functions/_openfeature_core.isObject.html +++ b/functions/_openfeature_core.isObject.html @@ -1,4 +1,4 @@ isObject | Documentation
  • Checks whether the parameter is an object.

    Type Parameters

    • T extends object

    Parameters

    • value: unknown

      The value to check

    Returns value is T

    True if the value is an object

    -
+
diff --git a/functions/_openfeature_core.isString.html b/functions/_openfeature_core.isString.html index 3a7bbee82..8e7f085bc 100644 --- a/functions/_openfeature_core.isString.html +++ b/functions/_openfeature_core.isString.html @@ -1,4 +1,4 @@ isString | Documentation
  • Checks whether the parameter is a string.

    Parameters

    • value: unknown

      The value to check

    Returns value is string

    True if the value is a string

    -
+
diff --git a/functions/_openfeature_core.objectOrUndefined.html b/functions/_openfeature_core.objectOrUndefined.html index 89fb427a7..826e21f00 100644 --- a/functions/_openfeature_core.objectOrUndefined.html +++ b/functions/_openfeature_core.objectOrUndefined.html @@ -1,4 +1,4 @@ objectOrUndefined | Documentation
  • Returns the parameter if it is an object, otherwise returns undefined.

    Type Parameters

    • T extends object

    Parameters

    • value: unknown

      The value to check

    Returns T | undefined

    The parameter if it is an object, otherwise undefined

    -
+
diff --git a/functions/_openfeature_core.statusMatchesEvent.html b/functions/_openfeature_core.statusMatchesEvent.html index b7cbbd0c2..b2e7acde7 100644 --- a/functions/_openfeature_core.statusMatchesEvent.html +++ b/functions/_openfeature_core.statusMatchesEvent.html @@ -3,4 +3,4 @@
+
diff --git a/functions/_openfeature_core.stringOrUndefined.html b/functions/_openfeature_core.stringOrUndefined.html index 4c0bf9763..e5635d2c6 100644 --- a/functions/_openfeature_core.stringOrUndefined.html +++ b/functions/_openfeature_core.stringOrUndefined.html @@ -1,4 +1,4 @@ stringOrUndefined | Documentation
  • Returns the parameter if it is a string, otherwise returns undefined.

    Parameters

    • value: unknown

      The value to check

    Returns string | undefined

    The parameter if it is a string, otherwise undefined

    -
+
diff --git a/functions/_openfeature_server_sdk.instantiateErrorByErrorCode.html b/functions/_openfeature_server_sdk.instantiateErrorByErrorCode.html index 4cf65993e..019f1efcf 100644 --- a/functions/_openfeature_server_sdk.instantiateErrorByErrorCode.html +++ b/functions/_openfeature_server_sdk.instantiateErrorByErrorCode.html @@ -1 +1 @@ -instantiateErrorByErrorCode | Documentation
+instantiateErrorByErrorCode | Documentation
diff --git a/functions/_openfeature_server_sdk.isObject.html b/functions/_openfeature_server_sdk.isObject.html index f8a02eb46..b0dc1308e 100644 --- a/functions/_openfeature_server_sdk.isObject.html +++ b/functions/_openfeature_server_sdk.isObject.html @@ -1,4 +1,4 @@ isObject | Documentation
  • Checks whether the parameter is an object.

    Type Parameters

    • T extends object

    Parameters

    • value: unknown

      The value to check

    Returns value is T

    True if the value is an object

    -
+
diff --git a/functions/_openfeature_server_sdk.isString.html b/functions/_openfeature_server_sdk.isString.html index 020064fac..5cd684924 100644 --- a/functions/_openfeature_server_sdk.isString.html +++ b/functions/_openfeature_server_sdk.isString.html @@ -1,4 +1,4 @@ isString | Documentation
  • Checks whether the parameter is a string.

    Parameters

    • value: unknown

      The value to check

    Returns value is string

    True if the value is a string

    -
+
diff --git a/functions/_openfeature_server_sdk.objectOrUndefined.html b/functions/_openfeature_server_sdk.objectOrUndefined.html index cd162dd94..302e7d630 100644 --- a/functions/_openfeature_server_sdk.objectOrUndefined.html +++ b/functions/_openfeature_server_sdk.objectOrUndefined.html @@ -1,4 +1,4 @@ objectOrUndefined | Documentation
  • Returns the parameter if it is an object, otherwise returns undefined.

    Type Parameters

    • T extends object

    Parameters

    • value: unknown

      The value to check

    Returns T | undefined

    The parameter if it is an object, otherwise undefined

    -
+
diff --git a/functions/_openfeature_server_sdk.statusMatchesEvent.html b/functions/_openfeature_server_sdk.statusMatchesEvent.html index 524a943a9..cff868b7c 100644 --- a/functions/_openfeature_server_sdk.statusMatchesEvent.html +++ b/functions/_openfeature_server_sdk.statusMatchesEvent.html @@ -3,4 +3,4 @@
+
diff --git a/functions/_openfeature_server_sdk.stringOrUndefined.html b/functions/_openfeature_server_sdk.stringOrUndefined.html index fad688753..0bfbab170 100644 --- a/functions/_openfeature_server_sdk.stringOrUndefined.html +++ b/functions/_openfeature_server_sdk.stringOrUndefined.html @@ -1,4 +1,4 @@ stringOrUndefined | Documentation
  • Returns the parameter if it is a string, otherwise returns undefined.

    Parameters

    • value: unknown

      The value to check

    Returns string | undefined

    The parameter if it is a string, otherwise undefined

    -
+
diff --git a/functions/_openfeature_web_sdk.instantiateErrorByErrorCode.html b/functions/_openfeature_web_sdk.instantiateErrorByErrorCode.html index 68f7df56d..808bed62a 100644 --- a/functions/_openfeature_web_sdk.instantiateErrorByErrorCode.html +++ b/functions/_openfeature_web_sdk.instantiateErrorByErrorCode.html @@ -1 +1 @@ -instantiateErrorByErrorCode | Documentation
+instantiateErrorByErrorCode | Documentation
diff --git a/functions/_openfeature_web_sdk.isObject.html b/functions/_openfeature_web_sdk.isObject.html index 5b64f7c4c..c449130e3 100644 --- a/functions/_openfeature_web_sdk.isObject.html +++ b/functions/_openfeature_web_sdk.isObject.html @@ -1,4 +1,4 @@ isObject | Documentation
  • Checks whether the parameter is an object.

    Type Parameters

    • T extends object

    Parameters

    • value: unknown

      The value to check

    Returns value is T

    True if the value is an object

    -
+
diff --git a/functions/_openfeature_web_sdk.isString.html b/functions/_openfeature_web_sdk.isString.html index 024d5a427..bee768d89 100644 --- a/functions/_openfeature_web_sdk.isString.html +++ b/functions/_openfeature_web_sdk.isString.html @@ -1,4 +1,4 @@ isString | Documentation
  • Checks whether the parameter is a string.

    Parameters

    • value: unknown

      The value to check

    Returns value is string

    True if the value is a string

    -
+
diff --git a/functions/_openfeature_web_sdk.objectOrUndefined.html b/functions/_openfeature_web_sdk.objectOrUndefined.html index f5c9a6c28..b26c6756a 100644 --- a/functions/_openfeature_web_sdk.objectOrUndefined.html +++ b/functions/_openfeature_web_sdk.objectOrUndefined.html @@ -1,4 +1,4 @@ objectOrUndefined | Documentation
  • Returns the parameter if it is an object, otherwise returns undefined.

    Type Parameters

    • T extends object

    Parameters

    • value: unknown

      The value to check

    Returns T | undefined

    The parameter if it is an object, otherwise undefined

    -
+
diff --git a/functions/_openfeature_web_sdk.statusMatchesEvent.html b/functions/_openfeature_web_sdk.statusMatchesEvent.html index 110e030f9..320a7c263 100644 --- a/functions/_openfeature_web_sdk.statusMatchesEvent.html +++ b/functions/_openfeature_web_sdk.statusMatchesEvent.html @@ -3,4 +3,4 @@
+
diff --git a/functions/_openfeature_web_sdk.stringOrUndefined.html b/functions/_openfeature_web_sdk.stringOrUndefined.html index 5d73776c6..166496fff 100644 --- a/functions/_openfeature_web_sdk.stringOrUndefined.html +++ b/functions/_openfeature_web_sdk.stringOrUndefined.html @@ -1,4 +1,4 @@ stringOrUndefined | Documentation
  • Returns the parameter if it is a string, otherwise returns undefined.

    Parameters

    • value: unknown

      The value to check

    Returns string | undefined

    The parameter if it is a string, otherwise undefined

    -
+
diff --git a/interfaces/_openfeature_core.BaseHook.html b/interfaces/_openfeature_core.BaseHook.html index 379fe4f77..4cb3f1f85 100644 --- a/interfaces/_openfeature_core.BaseHook.html +++ b/interfaces/_openfeature_core.BaseHook.html @@ -1,10 +1,10 @@ -BaseHook | Documentation

Interface BaseHook<T, BeforeHookReturn, HooksReturn>

interface BaseHook<T, BeforeHookReturn, HooksReturn> {
    after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    before?(hookContext: BeforeHookContext, hookHints?: Readonly<Record<string, unknown>>): BeforeHookReturn;
    error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    finally?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
}

Type Parameters

Methods

after? +BaseHook | Documentation

Interface BaseHook<T, BeforeHookReturn, HooksReturn>

interface BaseHook<T, BeforeHookReturn, HooksReturn> {
    after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    before?(hookContext: BeforeHookContext, hookHints?: Readonly<Record<string, unknown>>): BeforeHookReturn;
    error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    finally?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
}

Type Parameters

Methods

+

Parameters

Returns BeforeHookReturn

diff --git a/interfaces/_openfeature_core.BeforeHookContext.html b/interfaces/_openfeature_core.BeforeHookContext.html index 93dead917..f2ee3f213 100644 --- a/interfaces/_openfeature_core.BeforeHookContext.html +++ b/interfaces/_openfeature_core.BeforeHookContext.html @@ -1,8 +1,8 @@ -BeforeHookContext | Documentation
interface BeforeHookContext {
    clientMetadata: ClientMetadata;
    context: EvaluationContext;
    defaultValue: FlagValue;
    flagKey: string;
    flagValueType: FlagValueType;
    logger: Logger;
    providerMetadata: ProviderMetadata;
}

Hierarchy (view full)

Properties

clientMetadata +BeforeHookContext | Documentation
interface BeforeHookContext {
    clientMetadata: ClientMetadata;
    context: EvaluationContext;
    defaultValue: FlagValue;
    flagKey: string;
    flagValueType: FlagValueType;
    logger: Logger;
    providerMetadata: ProviderMetadata;
}

Hierarchy (view full)

Properties

clientMetadata: ClientMetadata
defaultValue: FlagValue
flagKey: string
flagValueType: FlagValueType
logger: Logger
providerMetadata: ProviderMetadata
+

Properties

clientMetadata: ClientMetadata
defaultValue: FlagValue
flagKey: string
flagValueType: FlagValueType
logger: Logger
providerMetadata: ProviderMetadata
diff --git a/interfaces/_openfeature_core.ClientMetadata.html b/interfaces/_openfeature_core.ClientMetadata.html index e04b0da2d..590961b48 100644 --- a/interfaces/_openfeature_core.ClientMetadata.html +++ b/interfaces/_openfeature_core.ClientMetadata.html @@ -1,6 +1,6 @@ -ClientMetadata | Documentation
interface ClientMetadata {
    domain?: string;
    name?: string;
    providerMetadata: ProviderMetadata;
    version?: string;
}

Properties

domain? +ClientMetadata | Documentation
interface ClientMetadata {
    domain?: string;
    name?: string;
    providerMetadata: ProviderMetadata;
    version?: string;
}

Properties

domain?: string
name?: string

alias of "domain", use domain instead

-
providerMetadata: ProviderMetadata
version?: string
+

Properties

domain?: string
name?: string

alias of "domain", use domain instead

+
providerMetadata: ProviderMetadata
version?: string
diff --git a/interfaces/_openfeature_core.CommonProvider.html b/interfaces/_openfeature_core.CommonProvider.html index 05d394f36..c843368e1 100644 --- a/interfaces/_openfeature_core.CommonProvider.html +++ b/interfaces/_openfeature_core.CommonProvider.html @@ -1,4 +1,4 @@ -CommonProvider | Documentation
interface CommonProvider<S> {
    events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
    metadata: ProviderMetadata;
    runsOn?: Paradigm;
    status?: S;
    initialize?(context?: EvaluationContext): Promise<void>;
    onClose?(): Promise<void>;
    track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
}

Type Parameters

Properties

events? +CommonProvider | Documentation
interface CommonProvider<S> {
    events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
    metadata: ProviderMetadata;
    runsOn?: Paradigm;
    status?: S;
    initialize?(context?: EvaluationContext): Promise<void>;
    onClose?(): Promise<void>;
    track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
}

Type Parameters

Properties

Properties

events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>

An event emitter for ProviderEvents.

ProviderEvents

-
runsOn?: Paradigm

Represents where the provider is intended to be run. If defined, +

runsOn?: Paradigm

Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

-
status?: S

the SDK now maintains the provider's state; there's no need for providers to implement this field. +

status?: S

the SDK now maintains the provider's state; there's no need for providers to implement this field. Returns a representation of the current readiness of the provider.

Providers which do not implement this method are assumed to be ready immediately.

-

Methods

  • A function used to setup the provider. +

Methods

  • A function used to setup the provider. Called by the SDK after the provider is set if the provider's status is NOT_READY. When the returned promise resolves, the SDK fires the ProviderEvents.Ready event. If the returned promise rejects, the SDK fires the ProviderEvents.Error event. Use this function to perform any context-dependent setup within the provider.

    -

    Parameters

    Returns Promise<void>

  • A function used to shut down the provider. Called when this provider is replaced with a new one, or when the OpenFeature is shut down.

    -

    Returns Promise<void>

+

Returns Promise<void>

diff --git a/interfaces/_openfeature_core.EvaluationLifeCycle.html b/interfaces/_openfeature_core.EvaluationLifeCycle.html index 3f94f27a8..a38510cf4 100644 --- a/interfaces/_openfeature_core.EvaluationLifeCycle.html +++ b/interfaces/_openfeature_core.EvaluationLifeCycle.html @@ -1,4 +1,4 @@ -EvaluationLifeCycle | Documentation
interface EvaluationLifeCycle<T> {
    addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): T;
    clearHooks(): T;
    getHooks(): BaseHook<FlagValue, unknown, unknown>[];
}

Type Parameters

  • T

Implemented by

Methods

addHooks +EvaluationLifeCycle | Documentation
interface EvaluationLifeCycle<T> {
    addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): T;
    clearHooks(): T;
    getHooks(): BaseHook<FlagValue, unknown, unknown>[];
}

Type Parameters

  • T

Implemented by

Methods

  • Adds hooks that will run during flag evaluations on this receiver. @@ -8,8 +8,8 @@ Hooks registered on the client run with all evaluations on that client.

    Parameters

    • Rest...hooks: BaseHook<FlagValue, unknown, unknown>[]

      A list of hooks that should always run

    Returns T

    The receiver (this object)

    -
+
diff --git a/interfaces/_openfeature_core.Eventing.html b/interfaces/_openfeature_core.Eventing.html index 0ae763f6f..5b104f559 100644 --- a/interfaces/_openfeature_core.Eventing.html +++ b/interfaces/_openfeature_core.Eventing.html @@ -1,14 +1,14 @@ -Eventing | Documentation
interface Eventing<T> {
    addHandler(eventType: T extends ClientProviderEvents
        ? ConfigurationChanged
        : ConfigurationChanged, handler: EventHandler<T extends ClientProviderEvents
        ? ConfigurationChanged
        : ConfigurationChanged>): void;
    addHandler(eventType: T extends ClientProviderEvents
        ? ClientNotChangeEvents
        : ServerNotChangeEvents, handler: EventHandler<T extends ClientProviderEvents
        ? ClientNotChangeEvents
        : ServerNotChangeEvents>): void;
    addHandler(eventType: T extends ClientProviderEvents
        ? ClientProviderEvents
        : ServerProviderEvents, handler: EventHandler<T extends ClientProviderEvents
        ? ClientProviderEvents
        : ServerProviderEvents>): void;
    getHandlers(eventType: T): EventHandler<T>[];
    removeHandler(eventType: T, handler: EventHandler<T>): void;
}

Type Parameters

Implemented by

Methods

addHandler +Eventing | Documentation
interface Eventing<T> {
    addHandler(eventType: T extends ClientProviderEvents
        ? ConfigurationChanged
        : ConfigurationChanged, handler: EventHandler<T extends ClientProviderEvents
        ? ConfigurationChanged
        : ConfigurationChanged>): void;
    addHandler(eventType: T extends ClientProviderEvents
        ? ClientNotChangeEvents
        : ServerNotChangeEvents, handler: EventHandler<T extends ClientProviderEvents
        ? ClientNotChangeEvents
        : ServerNotChangeEvents>): void;
    addHandler(eventType: T extends ClientProviderEvents
        ? ClientProviderEvents
        : ServerProviderEvents, handler: EventHandler<T extends ClientProviderEvents
        ? ClientProviderEvents
        : ServerProviderEvents>): void;
    getHandlers(eventType: T): EventHandler<T>[];
    removeHandler(eventType: T, handler: EventHandler<T>): void;
}

Type Parameters

Implemented by

Methods

  • Gets the current handlers for the given provider event type.

    +

Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

    • Removes a handler for the given provider event type.

      Parameters

      • eventType: T

        The provider event type to remove the listener for

      • handler: EventHandler<T>

        The handler to remove for the provider event type

        -

      Returns void

    +

    Returns void

    diff --git a/interfaces/_openfeature_core.HookContext.html b/interfaces/_openfeature_core.HookContext.html index 16b1a1236..fc06c94be 100644 --- a/interfaces/_openfeature_core.HookContext.html +++ b/interfaces/_openfeature_core.HookContext.html @@ -1,8 +1,8 @@ -HookContext | Documentation
    interface HookContext<T> {
        clientMetadata: ClientMetadata;
        context: Readonly<EvaluationContext>;
        defaultValue: T;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    clientMetadata +HookContext | Documentation
    interface HookContext<T> {
        clientMetadata: ClientMetadata;
        context: Readonly<EvaluationContext>;
        defaultValue: T;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    clientMetadata: ClientMetadata
    context: Readonly<EvaluationContext>
    defaultValue: T
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    +

    Properties

    clientMetadata: ClientMetadata
    context: Readonly<EvaluationContext>
    defaultValue: T
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    diff --git a/interfaces/_openfeature_core.Logger.html b/interfaces/_openfeature_core.Logger.html index 2d7a6db86..bce02abc0 100644 --- a/interfaces/_openfeature_core.Logger.html +++ b/interfaces/_openfeature_core.Logger.html @@ -1,5 +1,5 @@ -Logger | Documentation
    interface Logger {
        debug(...args: unknown[]): void;
        error(...args: unknown[]): void;
        info(...args: unknown[]): void;
        warn(...args: unknown[]): void;
    }

    Implemented by

    Methods

    debug +Logger | Documentation
    interface Logger {
        debug(...args: unknown[]): void;
        error(...args: unknown[]): void;
        info(...args: unknown[]): void;
        warn(...args: unknown[]): void;
    }

    Implemented by

    Methods

    Methods

    +

    Methods

    diff --git a/interfaces/_openfeature_core.ManageContext.html b/interfaces/_openfeature_core.ManageContext.html index e029656c7..e8cda8831 100644 --- a/interfaces/_openfeature_core.ManageContext.html +++ b/interfaces/_openfeature_core.ManageContext.html @@ -1,9 +1,9 @@ -ManageContext | Documentation
    interface ManageContext<T> {
        getContext(): EvaluationContext;
        setContext(context: EvaluationContext): T;
    }

    Type Parameters

    • T

    Methods

    getContext +ManageContext | Documentation
    interface ManageContext<T> {
        getContext(): EvaluationContext;
        setContext(context: EvaluationContext): T;
    }

    Type Parameters

    • T

    Methods

    +
    diff --git a/interfaces/_openfeature_core.ManageLogger.html b/interfaces/_openfeature_core.ManageLogger.html index f21c58378..e33bb55cf 100644 --- a/interfaces/_openfeature_core.ManageLogger.html +++ b/interfaces/_openfeature_core.ManageLogger.html @@ -1,8 +1,8 @@ -ManageLogger | Documentation
    interface ManageLogger<T> {
        setLogger(logger: Logger): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    setLogger +ManageLogger | Documentation
    interface ManageLogger<T> {
        setLogger(logger: Logger): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    Methods

    • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

      Parameters

      • logger: Logger

        The logger to be used

      Returns T

      The receiver (this object)

      -
    +
    diff --git a/interfaces/_openfeature_core.ProviderEventEmitter.html b/interfaces/_openfeature_core.ProviderEventEmitter.html index 80674cdc9..e29c470e2 100644 --- a/interfaces/_openfeature_core.ProviderEventEmitter.html +++ b/interfaces/_openfeature_core.ProviderEventEmitter.html @@ -1,16 +1,16 @@ ProviderEventEmitter | Documentation

    Interface ProviderEventEmitter<E, AdditionalContext>

    Event emitter to be optionally implemented by providers. Implemented by

    OpenFeatureEventEmitter.

    -
    interface ProviderEventEmitter<E, AdditionalContext> {
        addHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ClientProviderEvents>): void;
        emit(eventType: E, context?: EventContext<Record<string, unknown>, (ServerProviderEvents | ClientProviderEvents)>): void;
        getHandlers(eventType: AnyProviderEvent): EventHandler<ServerProviderEvents | ClientProviderEvents>[];
        removeAllHandlers(eventType?: AnyProviderEvent): void;
        removeHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ClientProviderEvents>): void;
        setLogger(logger: Logger): ProviderEventEmitter<E, AdditionalContext>;
    }

    Type Parameters

    • E extends AnyProviderEvent
    • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

    Hierarchy (view full)

    Implemented by

    Methods

    interface ProviderEventEmitter<E, AdditionalContext> {
        addHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ClientProviderEvents>): void;
        emit(eventType: E, context?: EventContext<Record<string, unknown>, (ServerProviderEvents | ClientProviderEvents)>): void;
        getHandlers(eventType: AnyProviderEvent): EventHandler<ServerProviderEvents | ClientProviderEvents>[];
        removeAllHandlers(eventType?: AnyProviderEvent): void;
        removeHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ClientProviderEvents>): void;
        setLogger(logger: Logger): ProviderEventEmitter<E, AdditionalContext>;
    }

    Type Parameters

    • E extends AnyProviderEvent
    • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

    Hierarchy (view full)

    Implemented by

    Methods

    Methods

    +
    diff --git a/interfaces/_openfeature_core.ProviderMetadata.html b/interfaces/_openfeature_core.ProviderMetadata.html index 1df93fd68..9c49c0332 100644 --- a/interfaces/_openfeature_core.ProviderMetadata.html +++ b/interfaces/_openfeature_core.ProviderMetadata.html @@ -1,3 +1,3 @@ ProviderMetadata | Documentation

    Static data about the provider.

    -
    interface ProviderMetadata {
        name: string;
    }

    Hierarchy

    Properties

    Properties

    name: string
    +
    interface ProviderMetadata {
        name: string;
    }

    Hierarchy

    Properties

    Properties

    name: string
    diff --git a/interfaces/_openfeature_server_sdk.BaseHook.html b/interfaces/_openfeature_server_sdk.BaseHook.html index a1c0a947c..9abb125d4 100644 --- a/interfaces/_openfeature_server_sdk.BaseHook.html +++ b/interfaces/_openfeature_server_sdk.BaseHook.html @@ -1,10 +1,10 @@ -BaseHook | Documentation

    Interface BaseHook<T, BeforeHookReturn, HooksReturn>

    interface BaseHook<T, BeforeHookReturn, HooksReturn> {
        after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        before?(hookContext: BeforeHookContext, hookHints?: Readonly<Record<string, unknown>>): BeforeHookReturn;
        error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        finally?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    }

    Type Parameters

    Methods

    after? +BaseHook | Documentation

    Interface BaseHook<T, BeforeHookReturn, HooksReturn>

    interface BaseHook<T, BeforeHookReturn, HooksReturn> {
        after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        before?(hookContext: BeforeHookContext, hookHints?: Readonly<Record<string, unknown>>): BeforeHookReturn;
        error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        finally?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    }

    Type Parameters

    Methods

    +

    Parameters

    Returns BeforeHookReturn

    diff --git a/interfaces/_openfeature_server_sdk.BeforeHookContext.html b/interfaces/_openfeature_server_sdk.BeforeHookContext.html index 01923632f..8e1d9bf5a 100644 --- a/interfaces/_openfeature_server_sdk.BeforeHookContext.html +++ b/interfaces/_openfeature_server_sdk.BeforeHookContext.html @@ -1,8 +1,8 @@ -BeforeHookContext | Documentation
    interface BeforeHookContext {
        clientMetadata: ClientMetadata;
        context: EvaluationContext;
        defaultValue: FlagValue;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Hierarchy (view full)

    Properties

    clientMetadata +BeforeHookContext | Documentation
    interface BeforeHookContext {
        clientMetadata: ClientMetadata;
        context: EvaluationContext;
        defaultValue: FlagValue;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Hierarchy (view full)

    Properties

    clientMetadata: ClientMetadata
    defaultValue: FlagValue
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    +

    Properties

    clientMetadata: ClientMetadata
    defaultValue: FlagValue
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    diff --git a/interfaces/_openfeature_server_sdk.Client.html b/interfaces/_openfeature_server_sdk.Client.html index 5c7aaacd5..8fb61b8d9 100644 --- a/interfaces/_openfeature_server_sdk.Client.html +++ b/interfaces/_openfeature_server_sdk.Client.html @@ -1,4 +1,4 @@ -Client | Documentation
    interface Client {
        metadata: ClientMetadata;
        providerStatus: ProviderStatus;
        addHandler(eventType: ConfigurationChanged, handler: EventHandler<ConfigurationChanged>): void;
        addHandler(eventType: ServerNotChangeEvents, handler: EventHandler<ServerNotChangeEvents>): void;
        addHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): Client;
        clearHooks(): Client;
        getBooleanDetails(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<boolean>>;
        getBooleanValue(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<boolean>;
        getContext(): EvaluationContext;
        getHandlers(eventType: ProviderEvents): EventHandler<ProviderEvents>[];
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
        getNumberDetails(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<number>>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getNumberValue(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<number>;
        getNumberValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<JsonValue>>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<JsonValue>;
        getObjectValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getStringDetails(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<string>>;
        getStringDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getStringValue(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<string>;
        getStringValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        removeHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        setContext(context: EvaluationContext): Client;
        setLogger(logger: Logger): Client;
        track(trackingEventName: string, context?: EvaluationContext, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Properties

    metadata +Client | Documentation
    interface Client {
        metadata: ClientMetadata;
        providerStatus: ProviderStatus;
        addHandler(eventType: ConfigurationChanged, handler: EventHandler<ConfigurationChanged>): void;
        addHandler(eventType: ServerNotChangeEvents, handler: EventHandler<ServerNotChangeEvents>): void;
        addHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): Client;
        clearHooks(): Client;
        getBooleanDetails(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<boolean>>;
        getBooleanValue(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<boolean>;
        getContext(): EvaluationContext;
        getHandlers(eventType: ProviderEvents): EventHandler<ProviderEvents>[];
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
        getNumberDetails(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<number>>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getNumberValue(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<number>;
        getNumberValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<JsonValue>>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<JsonValue>;
        getObjectValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getStringDetails(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<string>>;
        getStringDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getStringValue(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<string>;
        getStringValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        removeHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        setContext(context: EvaluationContext): Client;
        setLogger(logger: Logger): Client;
        track(trackingEventName: string, context?: EvaluationContext, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Properties

    Methods

    Properties

    metadata: ClientMetadata
    providerStatus: ProviderStatus

    Returns the status of the associated provider.

    -

    Methods

    • Adds a handler for the given provider event type. +

    Properties

    metadata: ClientMetadata
    providerStatus: ProviderStatus

    Returns the status of the associated provider.

    +

    Methods

    • Adds hooks that will run during flag evaluations on this receiver. +

    Returns void

  • Parameters

    • eventType: ServerNotChangeEvents
    • handler: EventHandler<ServerNotChangeEvents>

    Returns void

  • Parameters

    Returns void

  • Returns void

    +

    Returns void

    diff --git a/interfaces/_openfeature_server_sdk.ClientMetadata.html b/interfaces/_openfeature_server_sdk.ClientMetadata.html index 95e3b0196..f7a5486d9 100644 --- a/interfaces/_openfeature_server_sdk.ClientMetadata.html +++ b/interfaces/_openfeature_server_sdk.ClientMetadata.html @@ -1,6 +1,6 @@ -ClientMetadata | Documentation
    interface ClientMetadata {
        domain?: string;
        name?: string;
        providerMetadata: ProviderMetadata;
        version?: string;
    }

    Properties

    domain? +ClientMetadata | Documentation
    interface ClientMetadata {
        domain?: string;
        name?: string;
        providerMetadata: ProviderMetadata;
        version?: string;
    }

    Properties

    domain?: string
    name?: string

    alias of "domain", use domain instead

    -
    providerMetadata: ProviderMetadata
    version?: string
    +

    Properties

    domain?: string
    name?: string

    alias of "domain", use domain instead

    +
    providerMetadata: ProviderMetadata
    version?: string
    diff --git a/interfaces/_openfeature_server_sdk.CommonProvider.html b/interfaces/_openfeature_server_sdk.CommonProvider.html index 42ea26d2d..c692c59f5 100644 --- a/interfaces/_openfeature_server_sdk.CommonProvider.html +++ b/interfaces/_openfeature_server_sdk.CommonProvider.html @@ -1,4 +1,4 @@ -CommonProvider | Documentation
    interface CommonProvider<S> {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: S;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    events? +CommonProvider | Documentation
    interface CommonProvider<S> {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: S;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    Properties

    events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>

    An event emitter for ProviderEvents.

    ProviderEvents

    -
    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, +

    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

    -
    status?: S

    the SDK now maintains the provider's state; there's no need for providers to implement this field. +

    status?: S

    the SDK now maintains the provider's state; there's no need for providers to implement this field. Returns a representation of the current readiness of the provider.

    Providers which do not implement this method are assumed to be ready immediately.

    -

    Methods

    • A function used to setup the provider. +

    Methods

    • A function used to setup the provider. Called by the SDK after the provider is set if the provider's status is NOT_READY. When the returned promise resolves, the SDK fires the ProviderEvents.Ready event. If the returned promise rejects, the SDK fires the ProviderEvents.Error event. Use this function to perform any context-dependent setup within the provider.

      -

      Parameters

      Returns Promise<void>

    • A function used to shut down the provider. Called when this provider is replaced with a new one, or when the OpenFeature is shut down.

      -

      Returns Promise<void>

    +

    Returns Promise<void>

    diff --git a/interfaces/_openfeature_server_sdk.EvaluationLifeCycle.html b/interfaces/_openfeature_server_sdk.EvaluationLifeCycle.html index f79b163b6..85c328554 100644 --- a/interfaces/_openfeature_server_sdk.EvaluationLifeCycle.html +++ b/interfaces/_openfeature_server_sdk.EvaluationLifeCycle.html @@ -1,4 +1,4 @@ -EvaluationLifeCycle | Documentation
    interface EvaluationLifeCycle<T> {
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): T;
        clearHooks(): T;
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    addHooks +EvaluationLifeCycle | Documentation
    interface EvaluationLifeCycle<T> {
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): T;
        clearHooks(): T;
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    • Adds hooks that will run during flag evaluations on this receiver. @@ -8,8 +8,8 @@ Hooks registered on the client run with all evaluations on that client.

      Parameters

      • Rest...hooks: BaseHook<FlagValue, unknown, unknown>[]

        A list of hooks that should always run

      Returns T

      The receiver (this object)

      -
    +
    diff --git a/interfaces/_openfeature_server_sdk.Eventing.html b/interfaces/_openfeature_server_sdk.Eventing.html index 637dd9c65..08d39c9c0 100644 --- a/interfaces/_openfeature_server_sdk.Eventing.html +++ b/interfaces/_openfeature_server_sdk.Eventing.html @@ -1,14 +1,14 @@ -Eventing | Documentation
    interface Eventing<T> {
        addHandler(eventType: T extends ClientProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged, handler: EventHandler<T extends ClientProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged>): void;
        addHandler(eventType: T extends ClientProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents, handler: EventHandler<T extends ClientProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents>): void;
        addHandler(eventType: T extends ClientProviderEvents
            ? ClientProviderEvents
            : ProviderEvents, handler: EventHandler<T extends ClientProviderEvents
            ? ClientProviderEvents
            : ProviderEvents>): void;
        getHandlers(eventType: T): EventHandler<T>[];
        removeHandler(eventType: T, handler: EventHandler<T>): void;
    }

    Type Parameters

    Hierarchy (view full)

    Implemented by

    Methods

    addHandler +Eventing | Documentation
    interface Eventing<T> {
        addHandler(eventType: T extends ClientProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged, handler: EventHandler<T extends ClientProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged>): void;
        addHandler(eventType: T extends ClientProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents, handler: EventHandler<T extends ClientProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents>): void;
        addHandler(eventType: T extends ClientProviderEvents
            ? ClientProviderEvents
            : ProviderEvents, handler: EventHandler<T extends ClientProviderEvents
            ? ClientProviderEvents
            : ProviderEvents>): void;
        getHandlers(eventType: T): EventHandler<T>[];
        removeHandler(eventType: T, handler: EventHandler<T>): void;
    }

    Type Parameters

    Hierarchy (view full)

    Implemented by

    Methods

    • Gets the current handlers for the given provider event type.

      +

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

    • Removes a handler for the given provider event type.

      Parameters

      • eventType: T

        The provider event type to remove the listener for

      • handler: EventHandler<T>

        The handler to remove for the provider event type

        -

      Returns void

    +

    Returns void

    diff --git a/interfaces/_openfeature_server_sdk.Features.html b/interfaces/_openfeature_server_sdk.Features.html index 6ef4f1c51..9083b5d74 100644 --- a/interfaces/_openfeature_server_sdk.Features.html +++ b/interfaces/_openfeature_server_sdk.Features.html @@ -1,4 +1,4 @@ -Features | Documentation
    interface Features {
        getBooleanDetails(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<boolean>>;
        getBooleanValue(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<boolean>;
        getNumberDetails(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<number>>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getNumberValue(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<number>;
        getNumberValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<JsonValue>>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<JsonValue>;
        getObjectValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getStringDetails(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<string>>;
        getStringDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getStringValue(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<string>;
        getStringValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
    }

    Hierarchy (view full)

    Methods

    getBooleanDetails +Features | Documentation
    interface Features {
        getBooleanDetails(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<boolean>>;
        getBooleanValue(flagKey: string, defaultValue: boolean, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<boolean>;
        getNumberDetails(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<number>>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getNumberValue(flagKey: string, defaultValue: number, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<number>;
        getNumberValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<JsonValue>>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<JsonValue>;
        getObjectValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
        getStringDetails(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<string>>;
        getStringDetails<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<EvaluationDetails<T>>;
        getStringValue(flagKey: string, defaultValue: string, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<string>;
        getStringValue<T>(flagKey: string, defaultValue: T, context?: EvaluationContext, options?: FlagEvaluationOptions): Promise<T>;
    }

    Hierarchy (view full)

    Methods

  • Optionalcontext: EvaluationContext

    The evaluation context used on an individual flag evaluation

  • Optionaloptions: FlagEvaluationOptions

    Additional flag evaluation options

  • Returns Promise<EvaluationDetails<boolean>>

    Flag evaluation details response

    -
    • Performs a flag evaluation that returns a boolean.

      Parameters

      • flagKey: string

        The flag key uniquely identifies a particular flag

      • defaultValue: boolean

        The value returned if an error occurs

      • Optionalcontext: EvaluationContext

        The evaluation context used on an individual flag evaluation

      • Optionaloptions: FlagEvaluationOptions

        Additional flag evaluation options

      Returns Promise<boolean>

      Flag evaluation response

      -
    +
  • Type Parameters

    Parameters

    Returns Promise<T>

  • diff --git a/interfaces/_openfeature_server_sdk.FlagEvaluationOptions.html b/interfaces/_openfeature_server_sdk.FlagEvaluationOptions.html index 2893ad30c..93d1f01e1 100644 --- a/interfaces/_openfeature_server_sdk.FlagEvaluationOptions.html +++ b/interfaces/_openfeature_server_sdk.FlagEvaluationOptions.html @@ -1,3 +1,3 @@ -FlagEvaluationOptions | Documentation
    interface FlagEvaluationOptions {
        hookHints?: Readonly<Record<string, unknown>>;
        hooks?: Hook[];
    }

    Properties

    hookHints? +FlagEvaluationOptions | Documentation
    interface FlagEvaluationOptions {
        hookHints?: Readonly<Record<string, unknown>>;
        hooks?: Hook[];
    }

    Properties

    Properties

    hookHints?: Readonly<Record<string, unknown>>
    hooks?: Hook[]
    +

    Properties

    hookHints?: Readonly<Record<string, unknown>>
    hooks?: Hook[]
    diff --git a/interfaces/_openfeature_server_sdk.HookContext.html b/interfaces/_openfeature_server_sdk.HookContext.html index 8f9272b75..8c3c010aa 100644 --- a/interfaces/_openfeature_server_sdk.HookContext.html +++ b/interfaces/_openfeature_server_sdk.HookContext.html @@ -1,8 +1,8 @@ -HookContext | Documentation
    interface HookContext<T> {
        clientMetadata: ClientMetadata;
        context: Readonly<EvaluationContext>;
        defaultValue: T;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    clientMetadata +HookContext | Documentation
    interface HookContext<T> {
        clientMetadata: ClientMetadata;
        context: Readonly<EvaluationContext>;
        defaultValue: T;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    clientMetadata: ClientMetadata
    context: Readonly<EvaluationContext>
    defaultValue: T
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    +

    Properties

    clientMetadata: ClientMetadata
    context: Readonly<EvaluationContext>
    defaultValue: T
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    diff --git a/interfaces/_openfeature_server_sdk.Logger.html b/interfaces/_openfeature_server_sdk.Logger.html index 6494cb26c..b1157bf52 100644 --- a/interfaces/_openfeature_server_sdk.Logger.html +++ b/interfaces/_openfeature_server_sdk.Logger.html @@ -1,5 +1,5 @@ -Logger | Documentation
    interface Logger {
        debug(...args: unknown[]): void;
        error(...args: unknown[]): void;
        info(...args: unknown[]): void;
        warn(...args: unknown[]): void;
    }

    Implemented by

    Methods

    debug +Logger | Documentation
    interface Logger {
        debug(...args: unknown[]): void;
        error(...args: unknown[]): void;
        info(...args: unknown[]): void;
        warn(...args: unknown[]): void;
    }

    Implemented by

    Methods

    Methods

    +

    Methods

    diff --git a/interfaces/_openfeature_server_sdk.ManageContext.html b/interfaces/_openfeature_server_sdk.ManageContext.html index 31b81f072..cc51a4cb7 100644 --- a/interfaces/_openfeature_server_sdk.ManageContext.html +++ b/interfaces/_openfeature_server_sdk.ManageContext.html @@ -1,9 +1,9 @@ -ManageContext | Documentation
    interface ManageContext<T> {
        getContext(): EvaluationContext;
        setContext(context: EvaluationContext): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    getContext +ManageContext | Documentation
    interface ManageContext<T> {
        getContext(): EvaluationContext;
        setContext(context: EvaluationContext): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    +
    diff --git a/interfaces/_openfeature_server_sdk.ManageLogger.html b/interfaces/_openfeature_server_sdk.ManageLogger.html index 0aded1b7f..309414f56 100644 --- a/interfaces/_openfeature_server_sdk.ManageLogger.html +++ b/interfaces/_openfeature_server_sdk.ManageLogger.html @@ -1,8 +1,8 @@ -ManageLogger | Documentation
    interface ManageLogger<T> {
        setLogger(logger: Logger): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    setLogger +ManageLogger | Documentation
    interface ManageLogger<T> {
        setLogger(logger: Logger): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    Methods

    • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

      Parameters

      • logger: Logger

        The logger to be used

      Returns T

      The receiver (this object)

      -
    +
    diff --git a/interfaces/_openfeature_server_sdk.ManageTransactionContextPropagator.html b/interfaces/_openfeature_server_sdk.ManageTransactionContextPropagator.html index 24d15ad6d..f408aa4e1 100644 --- a/interfaces/_openfeature_server_sdk.ManageTransactionContextPropagator.html +++ b/interfaces/_openfeature_server_sdk.ManageTransactionContextPropagator.html @@ -1,10 +1,10 @@ -ManageTransactionContextPropagator | Documentation

    Interface ManageTransactionContextPropagator<T>

    interface ManageTransactionContextPropagator<T> {
        getTransactionContext(): EvaluationContext;
        setTransactionContext<TArgs, R>(transactionContext: EvaluationContext, callback: ((...args: TArgs) => R), ...args: TArgs): void;
        setTransactionContextPropagator(transactionContextPropagator: TransactionContextPropagator): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    getTransactionContext +ManageTransactionContextPropagator | Documentation

    Interface ManageTransactionContextPropagator<T>

    interface ManageTransactionContextPropagator<T> {
        getTransactionContext(): EvaluationContext;
        setTransactionContext<TArgs, R>(transactionContext: EvaluationContext, callback: ((...args: TArgs) => R), ...args: TArgs): void;
        setTransactionContextPropagator(transactionContextPropagator: TransactionContextPropagator): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    • Sets the transaction context using the registered transaction context propagator. Runs the callback function, in which the transactionContext will be available by calling this#getTransactionContext.

      The TransactionContextPropagator must persist the transactionContext and make it available @@ -19,9 +19,9 @@

    Parameters

    • transactionContext: EvaluationContext

      The transaction specific context

    • callback: ((...args: TArgs) => R)

      Callback function to run

        • (...args): R
        • Parameters

          Returns R

    • Rest...args: TArgs

      Optional arguments that are passed to the callback function

      -

    Returns void

    • Sets a transaction context propagator on this receiver. The transaction context +

    Returns void

    +
    diff --git a/interfaces/_openfeature_server_sdk.Provider.html b/interfaces/_openfeature_server_sdk.Provider.html index e8c2db506..ea133bcbe 100644 --- a/interfaces/_openfeature_server_sdk.Provider.html +++ b/interfaces/_openfeature_server_sdk.Provider.html @@ -1,7 +1,7 @@ Provider | Documentation

    Interface that providers must implement to resolve flag values for their particular backend or vendor.

    Implementation for resolving all the required flag types must be defined.

    -
    interface Provider {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        hooks?: Hook[];
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: ProviderStatus;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        resolveBooleanEvaluation(flagKey: string, defaultValue: boolean, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<boolean>>;
        resolveNumberEvaluation(flagKey: string, defaultValue: number, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<number>>;
        resolveObjectEvaluation<T>(flagKey: string, defaultValue: T, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<T>>;
        resolveStringEvaluation(flagKey: string, defaultValue: string, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<string>>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Implemented by

    Properties

    interface Provider {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        hooks?: Hook[];
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: ProviderStatus;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        resolveBooleanEvaluation(flagKey: string, defaultValue: boolean, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<boolean>>;
        resolveNumberEvaluation(flagKey: string, defaultValue: number, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<number>>;
        resolveObjectEvaluation<T>(flagKey: string, defaultValue: T, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<T>>;
        resolveStringEvaluation(flagKey: string, defaultValue: string, context: EvaluationContext, logger: Logger): Promise<ResolutionDetails<string>>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Implemented by

    Properties

    events? hooks? metadata runsOn? @@ -15,25 +15,25 @@ track?

    Properties

    events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>

    An event emitter for ProviderEvents.

    ProviderEvents

    -
    hooks?: Hook[]

    A provider hook exposes a mechanism for provider authors to register hooks +

    hooks?: Hook[]

    A provider hook exposes a mechanism for provider authors to register hooks to tap into various stages of the flag evaluation lifecycle. These hooks can be used to perform side effects and mutate the context for purposes of the provider. Provider hooks are not configured or controlled by the application author.

    -
    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, +

    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

    -

    the SDK now maintains the provider's state; there's no need for providers to implement this field. +

    the SDK now maintains the provider's state; there's no need for providers to implement this field. Returns a representation of the current readiness of the provider.

    Providers which do not implement this method are assumed to be ready immediately.

    -

    Methods

    • A function used to setup the provider. +

    Methods

    • A function used to setup the provider. Called by the SDK after the provider is set if the provider's status is NOT_READY. When the returned promise resolves, the SDK fires the ProviderEvents.Ready event. If the returned promise rejects, the SDK fires the ProviderEvents.Error event. Use this function to perform any context-dependent setup within the provider.

      -

      Parameters

      Returns Promise<void>

    +

    Returns Promise<void>

    diff --git a/interfaces/_openfeature_server_sdk.ProviderEventEmitter.html b/interfaces/_openfeature_server_sdk.ProviderEventEmitter.html index 44388e79f..aeeb50fe8 100644 --- a/interfaces/_openfeature_server_sdk.ProviderEventEmitter.html +++ b/interfaces/_openfeature_server_sdk.ProviderEventEmitter.html @@ -1,16 +1,16 @@ ProviderEventEmitter | Documentation

    Interface ProviderEventEmitter<E, AdditionalContext>

    Event emitter to be optionally implemented by providers. Implemented by

    OpenFeatureEventEmitter.

    -
    interface ProviderEventEmitter<E, AdditionalContext> {
        addHandler(eventType: AnyProviderEvent, handler: EventHandler<ProviderEvents | ClientProviderEvents>): void;
        emit(eventType: E, context?: EventContext<Record<string, unknown>, (ServerProviderEvents | ClientProviderEvents)>): void;
        getHandlers(eventType: AnyProviderEvent): EventHandler<ProviderEvents | ClientProviderEvents>[];
        removeAllHandlers(eventType?: AnyProviderEvent): void;
        removeHandler(eventType: AnyProviderEvent, handler: EventHandler<ProviderEvents | ClientProviderEvents>): void;
        setLogger(logger: Logger): ProviderEventEmitter<E, AdditionalContext>;
    }

    Type Parameters

    • E extends AnyProviderEvent
    • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

    Hierarchy (view full)

    Implemented by

    Methods

    interface ProviderEventEmitter<E, AdditionalContext> {
        addHandler(eventType: AnyProviderEvent, handler: EventHandler<ProviderEvents | ClientProviderEvents>): void;
        emit(eventType: E, context?: EventContext<Record<string, unknown>, (ServerProviderEvents | ClientProviderEvents)>): void;
        getHandlers(eventType: AnyProviderEvent): EventHandler<ProviderEvents | ClientProviderEvents>[];
        removeAllHandlers(eventType?: AnyProviderEvent): void;
        removeHandler(eventType: AnyProviderEvent, handler: EventHandler<ProviderEvents | ClientProviderEvents>): void;
        setLogger(logger: Logger): ProviderEventEmitter<E, AdditionalContext>;
    }

    Type Parameters

    • E extends AnyProviderEvent
    • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

    Hierarchy (view full)

    Implemented by

    Methods

    Methods

    +
    diff --git a/interfaces/_openfeature_server_sdk.ProviderMetadata.html b/interfaces/_openfeature_server_sdk.ProviderMetadata.html index 44b97d059..d73b07617 100644 --- a/interfaces/_openfeature_server_sdk.ProviderMetadata.html +++ b/interfaces/_openfeature_server_sdk.ProviderMetadata.html @@ -1,3 +1,3 @@ ProviderMetadata | Documentation

    Static data about the provider.

    -
    interface ProviderMetadata {
        name: string;
    }

    Hierarchy

    Properties

    Properties

    name: string
    +
    interface ProviderMetadata {
        name: string;
    }

    Hierarchy

    Properties

    Properties

    name: string
    diff --git a/interfaces/_openfeature_server_sdk.Tracking.html b/interfaces/_openfeature_server_sdk.Tracking.html index 8840b455a..82110bb3e 100644 --- a/interfaces/_openfeature_server_sdk.Tracking.html +++ b/interfaces/_openfeature_server_sdk.Tracking.html @@ -1,6 +1,6 @@ -Tracking | Documentation
    interface Tracking {
        track(trackingEventName: string, context?: EvaluationContext, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Methods

    track +Tracking | Documentation
    interface Tracking {
        track(trackingEventName: string, context?: EvaluationContext, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Methods

    Methods

    • Track a user action or application state, usually representing a business objective or outcome.

      Parameters

      • trackingEventName: string

        an identifier for the event

      • Optionalcontext: EvaluationContext

        the evaluation context

      • OptionaltrackingEventDetails: TrackingEventDetails

        the details of the tracking event

        -

      Returns void

    +

    Returns void

    diff --git a/interfaces/_openfeature_server_sdk.TransactionContextPropagator.html b/interfaces/_openfeature_server_sdk.TransactionContextPropagator.html index 9041344cd..8502ef4ab 100644 --- a/interfaces/_openfeature_server_sdk.TransactionContextPropagator.html +++ b/interfaces/_openfeature_server_sdk.TransactionContextPropagator.html @@ -1,9 +1,9 @@ -TransactionContextPropagator | Documentation
    interface TransactionContextPropagator {
        getTransactionContext(): EvaluationContext;
        setTransactionContext<TArgs, R>(transactionContext: EvaluationContext, callback: ((...args: TArgs) => R), ...args: TArgs): void;
    }

    Hierarchy (view full)

    Implemented by

    Methods

    getTransactionContext +TransactionContextPropagator | Documentation
    interface TransactionContextPropagator {
        getTransactionContext(): EvaluationContext;
        setTransactionContext<TArgs, R>(transactionContext: EvaluationContext, callback: ((...args: TArgs) => R), ...args: TArgs): void;
    }

    Hierarchy (view full)

    Implemented by

    Methods

    • Sets the transaction context using the registered transaction context propagator. Runs the callback function, in which the transactionContext will be available by calling this#getTransactionContext.

      The TransactionContextPropagator must persist the transactionContext and make it available @@ -18,4 +18,4 @@

    Parameters

    • transactionContext: EvaluationContext

      The transaction specific context

    • callback: ((...args: TArgs) => R)

      Callback function to run

        • (...args): R
        • Parameters

          Returns R

    • Rest...args: TArgs

      Optional arguments that are passed to the callback function

      -

    Returns void

    +

    Returns void

    diff --git a/interfaces/_openfeature_web_sdk.BaseHook.html b/interfaces/_openfeature_web_sdk.BaseHook.html index ad1e065a3..b0a0d9315 100644 --- a/interfaces/_openfeature_web_sdk.BaseHook.html +++ b/interfaces/_openfeature_web_sdk.BaseHook.html @@ -1,10 +1,10 @@ -BaseHook | Documentation

    Interface BaseHook<T, BeforeHookReturn, HooksReturn>

    interface BaseHook<T, BeforeHookReturn, HooksReturn> {
        after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        before?(hookContext: BeforeHookContext, hookHints?: Readonly<Record<string, unknown>>): BeforeHookReturn;
        error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        finally?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    }

    Type Parameters

    Methods

    after? +BaseHook | Documentation

    Interface BaseHook<T, BeforeHookReturn, HooksReturn>

    interface BaseHook<T, BeforeHookReturn, HooksReturn> {
        after?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        before?(hookContext: BeforeHookContext, hookHints?: Readonly<Record<string, unknown>>): BeforeHookReturn;
        error?(hookContext: Readonly<HookContext<T>>, error: unknown, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
        finally?(hookContext: Readonly<HookContext<T>>, evaluationDetails: EvaluationDetails<T>, hookHints?: Readonly<Record<string, unknown>>): HooksReturn;
    }

    Type Parameters

    Methods

    +

    Parameters

    Returns BeforeHookReturn

    diff --git a/interfaces/_openfeature_web_sdk.BeforeHookContext.html b/interfaces/_openfeature_web_sdk.BeforeHookContext.html index 471e03a76..d8ad42961 100644 --- a/interfaces/_openfeature_web_sdk.BeforeHookContext.html +++ b/interfaces/_openfeature_web_sdk.BeforeHookContext.html @@ -1,8 +1,8 @@ -BeforeHookContext | Documentation
    interface BeforeHookContext {
        clientMetadata: ClientMetadata;
        context: EvaluationContext;
        defaultValue: FlagValue;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Hierarchy (view full)

    Properties

    clientMetadata +BeforeHookContext | Documentation
    interface BeforeHookContext {
        clientMetadata: ClientMetadata;
        context: EvaluationContext;
        defaultValue: FlagValue;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Hierarchy (view full)

    Properties

    clientMetadata: ClientMetadata
    defaultValue: FlagValue
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    +

    Properties

    clientMetadata: ClientMetadata
    defaultValue: FlagValue
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    diff --git a/interfaces/_openfeature_web_sdk.Client.html b/interfaces/_openfeature_web_sdk.Client.html index 5b23f1e32..a12dd4f10 100644 --- a/interfaces/_openfeature_web_sdk.Client.html +++ b/interfaces/_openfeature_web_sdk.Client.html @@ -1,4 +1,4 @@ -Client | Documentation
    interface Client {
        metadata: ClientMetadata;
        providerStatus: ProviderStatus;
        addHandler(eventType: ConfigurationChanged, handler: EventHandler<ConfigurationChanged>): void;
        addHandler(eventType: ClientNotChangeEvents, handler: EventHandler<ClientNotChangeEvents>): void;
        addHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): Client;
        clearHooks(): Client;
        getBooleanDetails(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): EvaluationDetails<boolean>;
        getBooleanValue(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): boolean;
        getHandlers(eventType: ProviderEvents): EventHandler<ProviderEvents>[];
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
        getNumberDetails(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): EvaluationDetails<number>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getNumberValue(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): number;
        getNumberValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): EvaluationDetails<JsonValue>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): JsonValue;
        getObjectValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getStringDetails(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): EvaluationDetails<string>;
        getStringDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getStringValue(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): string;
        getStringValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        removeHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        setLogger(logger: Logger): Client;
        track(trackingEventName: string, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Properties

    metadata +Client | Documentation
    interface Client {
        metadata: ClientMetadata;
        providerStatus: ProviderStatus;
        addHandler(eventType: ConfigurationChanged, handler: EventHandler<ConfigurationChanged>): void;
        addHandler(eventType: ClientNotChangeEvents, handler: EventHandler<ClientNotChangeEvents>): void;
        addHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): Client;
        clearHooks(): Client;
        getBooleanDetails(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): EvaluationDetails<boolean>;
        getBooleanValue(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): boolean;
        getHandlers(eventType: ProviderEvents): EventHandler<ProviderEvents>[];
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
        getNumberDetails(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): EvaluationDetails<number>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getNumberValue(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): number;
        getNumberValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): EvaluationDetails<JsonValue>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): JsonValue;
        getObjectValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getStringDetails(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): EvaluationDetails<string>;
        getStringDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getStringValue(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): string;
        getStringValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        removeHandler(eventType: ProviderEvents, handler: EventHandler<ProviderEvents>): void;
        setLogger(logger: Logger): Client;
        track(trackingEventName: string, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Properties

    Methods

    Properties

    metadata: ClientMetadata
    providerStatus: ProviderStatus

    Returns the status of the associated provider.

    -

    Methods

    • Adds a handler for the given provider event type. +

    Properties

    metadata: ClientMetadata
    providerStatus: ProviderStatus

    Returns the status of the associated provider.

    +

    Methods

    • Adds hooks that will run during flag evaluations on this receiver. +

    Returns void

  • Parameters

    • eventType: ClientNotChangeEvents
    • handler: EventHandler<ClientNotChangeEvents>

    Returns void

  • Parameters

    Returns void

  • Returns void

    +

    Returns void

    diff --git a/interfaces/_openfeature_web_sdk.ClientMetadata.html b/interfaces/_openfeature_web_sdk.ClientMetadata.html index 926d160e5..98db7fa95 100644 --- a/interfaces/_openfeature_web_sdk.ClientMetadata.html +++ b/interfaces/_openfeature_web_sdk.ClientMetadata.html @@ -1,6 +1,6 @@ -ClientMetadata | Documentation
    interface ClientMetadata {
        domain?: string;
        name?: string;
        providerMetadata: ProviderMetadata;
        version?: string;
    }

    Properties

    domain? +ClientMetadata | Documentation
    interface ClientMetadata {
        domain?: string;
        name?: string;
        providerMetadata: ProviderMetadata;
        version?: string;
    }

    Properties

    domain?: string
    name?: string

    alias of "domain", use domain instead

    -
    providerMetadata: ProviderMetadata
    version?: string
    +

    Properties

    domain?: string
    name?: string

    alias of "domain", use domain instead

    +
    providerMetadata: ProviderMetadata
    version?: string
    diff --git a/interfaces/_openfeature_web_sdk.CommonProvider.html b/interfaces/_openfeature_web_sdk.CommonProvider.html index 39a07a8de..bfdfb92dd 100644 --- a/interfaces/_openfeature_web_sdk.CommonProvider.html +++ b/interfaces/_openfeature_web_sdk.CommonProvider.html @@ -1,4 +1,4 @@ -CommonProvider | Documentation
    interface CommonProvider<S> {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: S;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    events? +CommonProvider | Documentation
    interface CommonProvider<S> {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: S;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    Properties

    events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>

    An event emitter for ProviderEvents.

    ProviderEvents

    -
    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, +

    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

    -
    status?: S

    the SDK now maintains the provider's state; there's no need for providers to implement this field. +

    status?: S

    the SDK now maintains the provider's state; there's no need for providers to implement this field. Returns a representation of the current readiness of the provider.

    Providers which do not implement this method are assumed to be ready immediately.

    -

    Methods

    • A function used to setup the provider. +

    Methods

    • A function used to setup the provider. Called by the SDK after the provider is set if the provider's status is NOT_READY. When the returned promise resolves, the SDK fires the ProviderEvents.Ready event. If the returned promise rejects, the SDK fires the ProviderEvents.Error event. Use this function to perform any context-dependent setup within the provider.

      -

      Parameters

      Returns Promise<void>

    • A function used to shut down the provider. Called when this provider is replaced with a new one, or when the OpenFeature is shut down.

      -

      Returns Promise<void>

    +

    Returns Promise<void>

    diff --git a/interfaces/_openfeature_web_sdk.EvaluationLifeCycle.html b/interfaces/_openfeature_web_sdk.EvaluationLifeCycle.html index 70c971d6d..1832510e9 100644 --- a/interfaces/_openfeature_web_sdk.EvaluationLifeCycle.html +++ b/interfaces/_openfeature_web_sdk.EvaluationLifeCycle.html @@ -1,4 +1,4 @@ -EvaluationLifeCycle | Documentation
    interface EvaluationLifeCycle<T> {
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): T;
        clearHooks(): T;
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    addHooks +EvaluationLifeCycle | Documentation
    interface EvaluationLifeCycle<T> {
        addHooks(...hooks: BaseHook<FlagValue, unknown, unknown>[]): T;
        clearHooks(): T;
        getHooks(): BaseHook<FlagValue, unknown, unknown>[];
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    • Adds hooks that will run during flag evaluations on this receiver. @@ -8,8 +8,8 @@ Hooks registered on the client run with all evaluations on that client.

      Parameters

      • Rest...hooks: BaseHook<FlagValue, unknown, unknown>[]

        A list of hooks that should always run

      Returns T

      The receiver (this object)

      -
    +
    diff --git a/interfaces/_openfeature_web_sdk.Eventing.html b/interfaces/_openfeature_web_sdk.Eventing.html index cbd55981e..f665df8da 100644 --- a/interfaces/_openfeature_web_sdk.Eventing.html +++ b/interfaces/_openfeature_web_sdk.Eventing.html @@ -1,14 +1,14 @@ -Eventing | Documentation
    interface Eventing<T> {
        addHandler(eventType: T extends ProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged, handler: EventHandler<T extends ProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged>): void;
        addHandler(eventType: T extends ProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents, handler: EventHandler<T extends ProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents>): void;
        addHandler(eventType: T extends ProviderEvents
            ? ProviderEvents
            : ServerProviderEvents, handler: EventHandler<T extends ProviderEvents
            ? ProviderEvents
            : ServerProviderEvents>): void;
        getHandlers(eventType: T): EventHandler<T>[];
        removeHandler(eventType: T, handler: EventHandler<T>): void;
    }

    Type Parameters

    Hierarchy (view full)

    Implemented by

    Methods

    addHandler +Eventing | Documentation
    interface Eventing<T> {
        addHandler(eventType: T extends ProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged, handler: EventHandler<T extends ProviderEvents
            ? ConfigurationChanged
            : ConfigurationChanged>): void;
        addHandler(eventType: T extends ProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents, handler: EventHandler<T extends ProviderEvents
            ? ClientNotChangeEvents
            : ServerNotChangeEvents>): void;
        addHandler(eventType: T extends ProviderEvents
            ? ProviderEvents
            : ServerProviderEvents, handler: EventHandler<T extends ProviderEvents
            ? ProviderEvents
            : ServerProviderEvents>): void;
        getHandlers(eventType: T): EventHandler<T>[];
        removeHandler(eventType: T, handler: EventHandler<T>): void;
    }

    Type Parameters

    Hierarchy (view full)

    Implemented by

    Methods

    • Gets the current handlers for the given provider event type.

      +

    Returns void

  • Parameters

    • eventType: T extends ProviderEvents
          ? ClientNotChangeEvents
          : ServerNotChangeEvents
    • handler: EventHandler<T extends ProviderEvents
          ? ClientNotChangeEvents
          : ServerNotChangeEvents>

    Returns void

  • Parameters

    Returns void

    • Removes a handler for the given provider event type.

      Parameters

      • eventType: T

        The provider event type to remove the listener for

      • handler: EventHandler<T>

        The handler to remove for the provider event type

        -

      Returns void

    +

    Returns void

    diff --git a/interfaces/_openfeature_web_sdk.Features.html b/interfaces/_openfeature_web_sdk.Features.html index 3c75e5e05..fd26347fe 100644 --- a/interfaces/_openfeature_web_sdk.Features.html +++ b/interfaces/_openfeature_web_sdk.Features.html @@ -1,4 +1,4 @@ -Features | Documentation
    interface Features {
        getBooleanDetails(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): EvaluationDetails<boolean>;
        getBooleanValue(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): boolean;
        getNumberDetails(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): EvaluationDetails<number>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getNumberValue(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): number;
        getNumberValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): EvaluationDetails<JsonValue>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): JsonValue;
        getObjectValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getStringDetails(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): EvaluationDetails<string>;
        getStringDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getStringValue(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): string;
        getStringValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
    }

    Hierarchy (view full)

    Methods

    getBooleanDetails +Features | Documentation
    interface Features {
        getBooleanDetails(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): EvaluationDetails<boolean>;
        getBooleanValue(flagKey: string, defaultValue: boolean, options?: FlagEvaluationOptions): boolean;
        getNumberDetails(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): EvaluationDetails<number>;
        getNumberDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getNumberValue(flagKey: string, defaultValue: number, options?: FlagEvaluationOptions): number;
        getNumberValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getObjectDetails(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): EvaluationDetails<JsonValue>;
        getObjectDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getObjectValue(flagKey: string, defaultValue: JsonValue, options?: FlagEvaluationOptions): JsonValue;
        getObjectValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
        getStringDetails(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): EvaluationDetails<string>;
        getStringDetails<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): EvaluationDetails<T>;
        getStringValue(flagKey: string, defaultValue: string, options?: FlagEvaluationOptions): string;
        getStringValue<T>(flagKey: string, defaultValue: T, options?: FlagEvaluationOptions): T;
    }

    Hierarchy (view full)

    Methods

  • defaultValue: boolean

    The value returned if an error occurs

  • Optionaloptions: FlagEvaluationOptions

    Additional flag evaluation options

  • Returns EvaluationDetails<boolean>

    Flag evaluation details response

    -
    • Performs a flag evaluation that returns a boolean.

      Parameters

      • flagKey: string

        The flag key uniquely identifies a particular flag

      • defaultValue: boolean

        The value returned if an error occurs

      • Optionaloptions: FlagEvaluationOptions

        Additional flag evaluation options

      Returns boolean

      Flag evaluation response

      -
    +
  • Type Parameters

    Parameters

    Returns T

  • diff --git a/interfaces/_openfeature_web_sdk.FlagEvaluationOptions.html b/interfaces/_openfeature_web_sdk.FlagEvaluationOptions.html index 7ea759ef6..bccb7a630 100644 --- a/interfaces/_openfeature_web_sdk.FlagEvaluationOptions.html +++ b/interfaces/_openfeature_web_sdk.FlagEvaluationOptions.html @@ -1,3 +1,3 @@ -FlagEvaluationOptions | Documentation
    interface FlagEvaluationOptions {
        hookHints?: Readonly<Record<string, unknown>>;
        hooks?: BaseHook<FlagValue, unknown, unknown>[];
    }

    Properties

    hookHints? +FlagEvaluationOptions | Documentation
    interface FlagEvaluationOptions {
        hookHints?: Readonly<Record<string, unknown>>;
        hooks?: BaseHook<FlagValue, unknown, unknown>[];
    }

    Properties

    Properties

    hookHints?: Readonly<Record<string, unknown>>
    hooks?: BaseHook<FlagValue, unknown, unknown>[]
    +

    Properties

    hookHints?: Readonly<Record<string, unknown>>
    hooks?: BaseHook<FlagValue, unknown, unknown>[]
    diff --git a/interfaces/_openfeature_web_sdk.HookContext.html b/interfaces/_openfeature_web_sdk.HookContext.html index 9cc87ce76..f75b338aa 100644 --- a/interfaces/_openfeature_web_sdk.HookContext.html +++ b/interfaces/_openfeature_web_sdk.HookContext.html @@ -1,8 +1,8 @@ -HookContext | Documentation
    interface HookContext<T> {
        clientMetadata: ClientMetadata;
        context: Readonly<EvaluationContext>;
        defaultValue: T;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    clientMetadata +HookContext | Documentation
    interface HookContext<T> {
        clientMetadata: ClientMetadata;
        context: Readonly<EvaluationContext>;
        defaultValue: T;
        flagKey: string;
        flagValueType: FlagValueType;
        logger: Logger;
        providerMetadata: ProviderMetadata;
    }

    Type Parameters

    Hierarchy (view full)

    Properties

    clientMetadata: ClientMetadata
    context: Readonly<EvaluationContext>
    defaultValue: T
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    +

    Properties

    clientMetadata: ClientMetadata
    context: Readonly<EvaluationContext>
    defaultValue: T
    flagKey: string
    flagValueType: FlagValueType
    logger: Logger
    providerMetadata: ProviderMetadata
    diff --git a/interfaces/_openfeature_web_sdk.Logger.html b/interfaces/_openfeature_web_sdk.Logger.html index 24cd1353d..744f7f972 100644 --- a/interfaces/_openfeature_web_sdk.Logger.html +++ b/interfaces/_openfeature_web_sdk.Logger.html @@ -1,5 +1,5 @@ -Logger | Documentation
    interface Logger {
        debug(...args: unknown[]): void;
        error(...args: unknown[]): void;
        info(...args: unknown[]): void;
        warn(...args: unknown[]): void;
    }

    Implemented by

    Methods

    debug +Logger | Documentation
    interface Logger {
        debug(...args: unknown[]): void;
        error(...args: unknown[]): void;
        info(...args: unknown[]): void;
        warn(...args: unknown[]): void;
    }

    Implemented by

    Methods

    Methods

    +

    Methods

    diff --git a/interfaces/_openfeature_web_sdk.ManageContext.html b/interfaces/_openfeature_web_sdk.ManageContext.html index 74e4619b1..5214dbe97 100644 --- a/interfaces/_openfeature_web_sdk.ManageContext.html +++ b/interfaces/_openfeature_web_sdk.ManageContext.html @@ -1,9 +1,9 @@ -ManageContext | Documentation
    interface ManageContext<T> {
        getContext(): EvaluationContext;
        setContext(context: EvaluationContext): T;
    }

    Type Parameters

    • T

    Implemented by

    Methods

    getContext +ManageContext | Documentation
    interface ManageContext<T> {
        getContext(): EvaluationContext;
        setContext(context: EvaluationContext): T;
    }

    Type Parameters

    • T

    Implemented by

    Methods

    +
    diff --git a/interfaces/_openfeature_web_sdk.ManageLogger.html b/interfaces/_openfeature_web_sdk.ManageLogger.html index 4e78b0373..9fa45687c 100644 --- a/interfaces/_openfeature_web_sdk.ManageLogger.html +++ b/interfaces/_openfeature_web_sdk.ManageLogger.html @@ -1,8 +1,8 @@ -ManageLogger | Documentation
    interface ManageLogger<T> {
        setLogger(logger: Logger): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    setLogger +ManageLogger | Documentation
    interface ManageLogger<T> {
        setLogger(logger: Logger): T;
    }

    Type Parameters

    • T

    Hierarchy (view full)

    Implemented by

    Methods

    Methods

    • Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.

      Parameters

      • logger: Logger

        The logger to be used

      Returns T

      The receiver (this object)

      -
    +
    diff --git a/interfaces/_openfeature_web_sdk.Provider.html b/interfaces/_openfeature_web_sdk.Provider.html index 77f73e96b..da5f8283c 100644 --- a/interfaces/_openfeature_web_sdk.Provider.html +++ b/interfaces/_openfeature_web_sdk.Provider.html @@ -1,7 +1,7 @@ Provider | Documentation

    Interface that providers must implement to resolve flag values for their particular backend or vendor.

    Implementation for resolving all the required flag types must be defined.

    -
    interface Provider {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        hooks?: Hook[];
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: ProviderStatus;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        onContextChange?(oldContext: EvaluationContext, newContext: EvaluationContext): void | Promise<void>;
        resolveBooleanEvaluation(flagKey: string, defaultValue: boolean, context: EvaluationContext, logger: Logger): ResolutionDetails<boolean>;
        resolveNumberEvaluation(flagKey: string, defaultValue: number, context: EvaluationContext, logger: Logger): ResolutionDetails<number>;
        resolveObjectEvaluation<T>(flagKey: string, defaultValue: T, context: EvaluationContext, logger: Logger): ResolutionDetails<T>;
        resolveStringEvaluation(flagKey: string, defaultValue: string, context: EvaluationContext, logger: Logger): ResolutionDetails<string>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Implemented by

    Properties

    interface Provider {
        events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>;
        hooks?: Hook[];
        metadata: ProviderMetadata;
        runsOn?: Paradigm;
        status?: ProviderStatus;
        initialize?(context?: EvaluationContext): Promise<void>;
        onClose?(): Promise<void>;
        onContextChange?(oldContext: EvaluationContext, newContext: EvaluationContext): void | Promise<void>;
        resolveBooleanEvaluation(flagKey: string, defaultValue: boolean, context: EvaluationContext, logger: Logger): ResolutionDetails<boolean>;
        resolveNumberEvaluation(flagKey: string, defaultValue: number, context: EvaluationContext, logger: Logger): ResolutionDetails<number>;
        resolveObjectEvaluation<T>(flagKey: string, defaultValue: T, context: EvaluationContext, logger: Logger): ResolutionDetails<T>;
        resolveStringEvaluation(flagKey: string, defaultValue: string, context: EvaluationContext, logger: Logger): ResolutionDetails<string>;
        track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Implemented by

    Properties

    events? hooks? metadata runsOn? @@ -16,31 +16,31 @@ track?

    Properties

    events?: ProviderEventEmitter<AnyProviderEvent, Record<string, unknown>>

    An event emitter for ProviderEvents.

    ProviderEvents

    -
    hooks?: Hook[]

    A provider hook exposes a mechanism for provider authors to register hooks +

    hooks?: Hook[]

    A provider hook exposes a mechanism for provider authors to register hooks to tap into various stages of the flag evaluation lifecycle. These hooks can be used to perform side effects and mutate the context for purposes of the provider. Provider hooks are not configured or controlled by the application author.

    -
    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, +

    runsOn?: Paradigm

    Represents where the provider is intended to be run. If defined, the SDK will enforce that the defined paradigm at runtime.

    -

    the SDK now maintains the provider's state; there's no need for providers to implement this field. +

    the SDK now maintains the provider's state; there's no need for providers to implement this field. Returns a representation of the current readiness of the provider.

    Providers which do not implement this method are assumed to be ready immediately.

    -

    Methods

    • A function used to setup the provider. +

    Methods

    • A function used to setup the provider. Called by the SDK after the provider is set if the provider's status is NOT_READY. When the returned promise resolves, the SDK fires the ProviderEvents.Ready event. If the returned promise rejects, the SDK fires the ProviderEvents.Error event. Use this function to perform any context-dependent setup within the provider.

      -

      Parameters

      Returns Promise<void>

    • A handler function to reconcile changes made to the static context. Called by the SDK when the context is changed.

      Returning a promise will put the provider in the RECONCILING state and emit the ProviderEvents.Reconciling event.

      Return void will avoid putting the provider in the RECONCILING state and not emit the ProviderEvents.Reconciling event.

      -

      Parameters

      Returns void | Promise<void>

    +

    Parameters

    Returns void | Promise<void>

    diff --git a/interfaces/_openfeature_web_sdk.ProviderEventEmitter.html b/interfaces/_openfeature_web_sdk.ProviderEventEmitter.html index 9c7b2086e..ee2e5f2df 100644 --- a/interfaces/_openfeature_web_sdk.ProviderEventEmitter.html +++ b/interfaces/_openfeature_web_sdk.ProviderEventEmitter.html @@ -1,16 +1,16 @@ ProviderEventEmitter | Documentation

    Interface ProviderEventEmitter<E, AdditionalContext>

    Event emitter to be optionally implemented by providers. Implemented by

    OpenFeatureEventEmitter.

    -
    interface ProviderEventEmitter<E, AdditionalContext> {
        addHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ProviderEvents>): void;
        emit(eventType: E, context?: EventContext<Record<string, unknown>, (ServerProviderEvents | ClientProviderEvents)>): void;
        getHandlers(eventType: AnyProviderEvent): EventHandler<ServerProviderEvents | ProviderEvents>[];
        removeAllHandlers(eventType?: AnyProviderEvent): void;
        removeHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ProviderEvents>): void;
        setLogger(logger: Logger): ProviderEventEmitter<E, AdditionalContext>;
    }

    Type Parameters

    • E extends AnyProviderEvent
    • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

    Hierarchy (view full)

    Implemented by

    Methods

    interface ProviderEventEmitter<E, AdditionalContext> {
        addHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ProviderEvents>): void;
        emit(eventType: E, context?: EventContext<Record<string, unknown>, (ServerProviderEvents | ClientProviderEvents)>): void;
        getHandlers(eventType: AnyProviderEvent): EventHandler<ServerProviderEvents | ProviderEvents>[];
        removeAllHandlers(eventType?: AnyProviderEvent): void;
        removeHandler(eventType: AnyProviderEvent, handler: EventHandler<ServerProviderEvents | ProviderEvents>): void;
        setLogger(logger: Logger): ProviderEventEmitter<E, AdditionalContext>;
    }

    Type Parameters

    • E extends AnyProviderEvent
    • AdditionalContext extends Record<string, unknown> = Record<string, unknown>

    Hierarchy (view full)

    Implemented by

    Methods

    Methods

    +
    diff --git a/interfaces/_openfeature_web_sdk.ProviderMetadata.html b/interfaces/_openfeature_web_sdk.ProviderMetadata.html index eb09a4bde..a51fd7adc 100644 --- a/interfaces/_openfeature_web_sdk.ProviderMetadata.html +++ b/interfaces/_openfeature_web_sdk.ProviderMetadata.html @@ -1,3 +1,3 @@ ProviderMetadata | Documentation

    Static data about the provider.

    -
    interface ProviderMetadata {
        name: string;
    }

    Hierarchy

    Properties

    Properties

    name: string
    +
    interface ProviderMetadata {
        name: string;
    }

    Hierarchy

    Properties

    Properties

    name: string
    diff --git a/interfaces/_openfeature_web_sdk.Tracking.html b/interfaces/_openfeature_web_sdk.Tracking.html index 09385d9ec..bae0b2270 100644 --- a/interfaces/_openfeature_web_sdk.Tracking.html +++ b/interfaces/_openfeature_web_sdk.Tracking.html @@ -1,5 +1,5 @@ -Tracking | Documentation
    interface Tracking {
        track(trackingEventName: string, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Methods

    track +Tracking | Documentation
    interface Tracking {
        track(trackingEventName: string, trackingEventDetails?: TrackingEventDetails): void;
    }

    Hierarchy (view full)

    Methods

    Methods

    • Track a user action or application state, usually representing a business objective or outcome.

      Parameters

      • trackingEventName: string

        an identifier for the event

      • OptionaltrackingEventDetails: TrackingEventDetails

        the details of the tracking event

        -

      Returns void

    +

    Returns void

    diff --git a/media/README-3.md b/media/README-3.md index fb3d8d1a8..3acbff03b 100644 --- a/media/README-3.md +++ b/media/README-3.md @@ -16,8 +16,8 @@ Specification - - Release + + Release
    diff --git a/types/_openfeature_core.AnyProviderEvent.html b/types/_openfeature_core.AnyProviderEvent.html index cbe581260..2284a7aa0 100644 --- a/types/_openfeature_core.AnyProviderEvent.html +++ b/types/_openfeature_core.AnyProviderEvent.html @@ -1,3 +1,3 @@ AnyProviderEvent | Documentation

    A type representing any possible ProviderEvent (server or client side). In most cases, you probably want to import ProviderEvents from the respective SDK.

    -
    +
    diff --git a/types/_openfeature_core.CommonEventDetails.html b/types/_openfeature_core.CommonEventDetails.html index 6484f91c8..03126db11 100644 --- a/types/_openfeature_core.CommonEventDetails.html +++ b/types/_openfeature_core.CommonEventDetails.html @@ -1,2 +1,2 @@ CommonEventDetails | Documentation
    CommonEventDetails: {
        clientName?: string;
        domain?: string;
        providerName: string;
    }

    Type declaration

    • Optional ReadonlyclientName?: string

      alias of "domain", use domain instead

      -
    • Optional Readonlydomain?: string
    • ReadonlyproviderName: string
    +
  • Optional Readonlydomain?: string
  • ReadonlyproviderName: string
  • diff --git a/types/_openfeature_core.ConfigChangeEvent.html b/types/_openfeature_core.ConfigChangeEvent.html index 258ca7a6e..801733482 100644 --- a/types/_openfeature_core.ConfigChangeEvent.html +++ b/types/_openfeature_core.ConfigChangeEvent.html @@ -1 +1 @@ -ConfigChangeEvent | Documentation
    ConfigChangeEvent: CommonEventProps & {
        flagsChanged?: string[];
    }
    +ConfigChangeEvent | Documentation
    ConfigChangeEvent: CommonEventProps & {
        flagsChanged?: string[];
    }
    diff --git a/types/_openfeature_core.ErrorEvent.html b/types/_openfeature_core.ErrorEvent.html index 21bcaa05e..87152b421 100644 --- a/types/_openfeature_core.ErrorEvent.html +++ b/types/_openfeature_core.ErrorEvent.html @@ -1 +1 @@ -ErrorEvent | Documentation
    ErrorEvent: CommonEventProps
    +ErrorEvent | Documentation
    ErrorEvent: CommonEventProps
    diff --git a/types/_openfeature_core.EvaluationContext.html b/types/_openfeature_core.EvaluationContext.html index f95726a61..cf19f6886 100644 --- a/types/_openfeature_core.EvaluationContext.html +++ b/types/_openfeature_core.EvaluationContext.html @@ -2,4 +2,4 @@

    Type declaration

    +
    diff --git a/types/_openfeature_core.EvaluationContextValue.html b/types/_openfeature_core.EvaluationContextValue.html index 0c1840edf..702e430b7 100644 --- a/types/_openfeature_core.EvaluationContextValue.html +++ b/types/_openfeature_core.EvaluationContextValue.html @@ -1 +1 @@ -EvaluationContextValue | Documentation
    EvaluationContextValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: EvaluationContextValue;
        }
        | EvaluationContextValue[]
    +EvaluationContextValue | Documentation
    EvaluationContextValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: EvaluationContextValue;
        }
        | EvaluationContextValue[]
    diff --git a/types/_openfeature_core.EvaluationDetails.html b/types/_openfeature_core.EvaluationDetails.html index 361342664..d8b28ab54 100644 --- a/types/_openfeature_core.EvaluationDetails.html +++ b/types/_openfeature_core.EvaluationDetails.html @@ -1 +1 @@ -EvaluationDetails | Documentation
    EvaluationDetails<T>: {
        flagKey: string;
        flagMetadata: Readonly<FlagMetadata>;
    } & ResolutionDetails<T>

    Type Parameters

    +EvaluationDetails | Documentation
    EvaluationDetails<T>: {
        flagKey: string;
        flagMetadata: Readonly<FlagMetadata>;
    } & ResolutionDetails<T>

    Type Parameters

    diff --git a/types/_openfeature_core.EventContext.html b/types/_openfeature_core.EventContext.html index 8294344fc..b4f303c9e 100644 --- a/types/_openfeature_core.EventContext.html +++ b/types/_openfeature_core.EventContext.html @@ -1 +1 @@ -EventContext | Documentation

    Type Alias EventContext<U, T>

    EventContext<U, T>: (T extends ClientProviderEvents
        ? ClientEventMap[T]
        : T extends ServerProviderEvents
            ? ServerEventMap[T]
            : never) & U

    Type Parameters

    +EventContext | Documentation

    Type Alias EventContext<U, T>

    EventContext<U, T>: (T extends ClientProviderEvents
        ? ClientEventMap[T]
        : T extends ServerProviderEvents
            ? ServerEventMap[T]
            : never) & U

    Type Parameters

    diff --git a/types/_openfeature_core.EventDetails.html b/types/_openfeature_core.EventDetails.html index 996e35f3d..abb264fa1 100644 --- a/types/_openfeature_core.EventDetails.html +++ b/types/_openfeature_core.EventDetails.html @@ -1 +1 @@ -EventDetails | Documentation
    EventDetails<T>: EventContext<Record<string, unknown>, T> & CommonEventDetails

    Type Parameters

    +EventDetails | Documentation
    EventDetails<T>: EventContext<Record<string, unknown>, T> & CommonEventDetails

    Type Parameters

    diff --git a/types/_openfeature_core.EventHandler.html b/types/_openfeature_core.EventHandler.html index 9860613b7..94b08072c 100644 --- a/types/_openfeature_core.EventHandler.html +++ b/types/_openfeature_core.EventHandler.html @@ -1 +1 @@ -EventHandler | Documentation
    EventHandler<T>: ((eventDetails?: EventDetails<T>) => Promise<unknown> | unknown)

    Type Parameters

    +EventHandler | Documentation
    EventHandler<T>: ((eventDetails?: EventDetails<T>) => Promise<unknown> | unknown)

    Type Parameters

    diff --git a/types/_openfeature_core.EventMetadata.html b/types/_openfeature_core.EventMetadata.html index 0d72ca4f9..9d59cc52a 100644 --- a/types/_openfeature_core.EventMetadata.html +++ b/types/_openfeature_core.EventMetadata.html @@ -1 +1 @@ -EventMetadata | Documentation
    EventMetadata: {
        [key: string]: string | boolean | number;
    }
    +EventMetadata | Documentation
    EventMetadata: {
        [key: string]: string | boolean | number;
    }
    diff --git a/types/_openfeature_core.FlagMetadata.html b/types/_openfeature_core.FlagMetadata.html index 11e72627a..1be12e864 100644 --- a/types/_openfeature_core.FlagMetadata.html +++ b/types/_openfeature_core.FlagMetadata.html @@ -1,3 +1,3 @@ FlagMetadata | Documentation
    FlagMetadata: Record<string, string | number | boolean>

    A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.

    This structure is populated by a provider for use by an Application Author (via the Evaluation API) or an Application Integrator (via hooks).

    -
    +
    diff --git a/types/_openfeature_core.FlagValue.html b/types/_openfeature_core.FlagValue.html index e096e598f..f7a8392bd 100644 --- a/types/_openfeature_core.FlagValue.html +++ b/types/_openfeature_core.FlagValue.html @@ -1,2 +1,2 @@ FlagValue | Documentation
    FlagValue:
        | boolean
        | string
        | number
        | JsonValue

    Represents a JSON node value, or Date.

    -
    +
    diff --git a/types/_openfeature_core.FlagValueType.html b/types/_openfeature_core.FlagValueType.html index 817b6df7a..fa34355d8 100644 --- a/types/_openfeature_core.FlagValueType.html +++ b/types/_openfeature_core.FlagValueType.html @@ -1 +1 @@ -FlagValueType | Documentation
    FlagValueType:
        | "boolean"
        | "string"
        | "number"
        | "object"
    +FlagValueType | Documentation
    FlagValueType:
        | "boolean"
        | "string"
        | "number"
        | "object"
    diff --git a/types/_openfeature_core.HookHints.html b/types/_openfeature_core.HookHints.html index bb8a659bc..6ae202509 100644 --- a/types/_openfeature_core.HookHints.html +++ b/types/_openfeature_core.HookHints.html @@ -1 +1 @@ -HookHints | Documentation
    HookHints: Readonly<Record<string, unknown>>
    +HookHints | Documentation
    HookHints: Readonly<Record<string, unknown>>
    diff --git a/types/_openfeature_core.JsonArray.html b/types/_openfeature_core.JsonArray.html index 059f2f2c7..5a19aad92 100644 --- a/types/_openfeature_core.JsonArray.html +++ b/types/_openfeature_core.JsonArray.html @@ -1 +1 @@ -JsonArray | Documentation
    JsonArray: JsonValue[]
    +JsonArray | Documentation
    JsonArray: JsonValue[]
    diff --git a/types/_openfeature_core.JsonObject.html b/types/_openfeature_core.JsonObject.html index a2a10202e..2d05e7d53 100644 --- a/types/_openfeature_core.JsonObject.html +++ b/types/_openfeature_core.JsonObject.html @@ -1 +1 @@ -JsonObject | Documentation
    JsonObject: {
        [key: string]: JsonValue;
    }
    +JsonObject | Documentation
    JsonObject: {
        [key: string]: JsonValue;
    }
    diff --git a/types/_openfeature_core.JsonValue.html b/types/_openfeature_core.JsonValue.html index 2badc0f79..52e5dcad7 100644 --- a/types/_openfeature_core.JsonValue.html +++ b/types/_openfeature_core.JsonValue.html @@ -1,2 +1,2 @@ JsonValue | Documentation

    Represents a JSON node value.

    -
    +
    diff --git a/types/_openfeature_core.Metadata.html b/types/_openfeature_core.Metadata.html index bb11835a3..c2f72249d 100644 --- a/types/_openfeature_core.Metadata.html +++ b/types/_openfeature_core.Metadata.html @@ -1 +1 @@ -Metadata | Documentation
    Metadata: Record<string, string>
    +Metadata | Documentation
    Metadata: Record<string, string>
    diff --git a/types/_openfeature_core.NotChangeEvents.html b/types/_openfeature_core.NotChangeEvents.html index e02a35a9a..f7a95334e 100644 --- a/types/_openfeature_core.NotChangeEvents.html +++ b/types/_openfeature_core.NotChangeEvents.html @@ -1 +1 @@ -NotChangeEvents | Documentation
    NotChangeEvents: ServerNotChangeEvents | ClientNotChangeEvents
    +NotChangeEvents | Documentation
    NotChangeEvents: ServerNotChangeEvents | ClientNotChangeEvents
    diff --git a/types/_openfeature_core.Paradigm.html b/types/_openfeature_core.Paradigm.html index 0fea97d1f..e6d056822 100644 --- a/types/_openfeature_core.Paradigm.html +++ b/types/_openfeature_core.Paradigm.html @@ -1,2 +1,2 @@ Paradigm | Documentation
    Paradigm: "server" | "client"

    Defines where the library is intended to be run.

    -
    +
    diff --git a/types/_openfeature_core.PrimitiveValue.html b/types/_openfeature_core.PrimitiveValue.html index 7e3ab02e0..f88337049 100644 --- a/types/_openfeature_core.PrimitiveValue.html +++ b/types/_openfeature_core.PrimitiveValue.html @@ -1 +1 @@ -PrimitiveValue | Documentation
    PrimitiveValue:
        | null
        | boolean
        | string
        | number
    +PrimitiveValue | Documentation
    PrimitiveValue:
        | null
        | boolean
        | string
        | number
    diff --git a/types/_openfeature_core.ReadyEvent.html b/types/_openfeature_core.ReadyEvent.html index 01d8236ff..c95c9b4c1 100644 --- a/types/_openfeature_core.ReadyEvent.html +++ b/types/_openfeature_core.ReadyEvent.html @@ -1 +1 @@ -ReadyEvent | Documentation
    ReadyEvent: CommonEventProps
    +ReadyEvent | Documentation
    ReadyEvent: CommonEventProps
    diff --git a/types/_openfeature_core.ReconcilingEvent.html b/types/_openfeature_core.ReconcilingEvent.html index 94b7c697c..884df2b05 100644 --- a/types/_openfeature_core.ReconcilingEvent.html +++ b/types/_openfeature_core.ReconcilingEvent.html @@ -1 +1 @@ -ReconcilingEvent | Documentation
    ReconcilingEvent: CommonEventProps & {
        errorCode: ErrorCode;
    }
    +ReconcilingEvent | Documentation
    ReconcilingEvent: CommonEventProps & {
        errorCode: ErrorCode;
    }
    diff --git a/types/_openfeature_core.ResolutionDetails.html b/types/_openfeature_core.ResolutionDetails.html index f5328a8e3..86332856b 100644 --- a/types/_openfeature_core.ResolutionDetails.html +++ b/types/_openfeature_core.ResolutionDetails.html @@ -1 +1 @@ -ResolutionDetails | Documentation
    ResolutionDetails<U>: {
        errorCode?: ErrorCode;
        errorMessage?: string;
        flagMetadata?: FlagMetadata;
        reason?: ResolutionReason;
        value: U;
        variant?: string;
    }

    Type Parameters

    • U
    +ResolutionDetails | Documentation
    ResolutionDetails<U>: {
        errorCode?: ErrorCode;
        errorMessage?: string;
        flagMetadata?: FlagMetadata;
        reason?: ResolutionReason;
        value: U;
        variant?: string;
    }

    Type Parameters

    • U
    diff --git a/types/_openfeature_core.ResolutionReason.html b/types/_openfeature_core.ResolutionReason.html index 6ed4bb1b7..046cb74e1 100644 --- a/types/_openfeature_core.ResolutionReason.html +++ b/types/_openfeature_core.ResolutionReason.html @@ -1 +1 @@ -ResolutionReason | Documentation
    ResolutionReason: keyof typeof StandardResolutionReasons | string & Record<never, never>
    +ResolutionReason | Documentation
    ResolutionReason: keyof typeof StandardResolutionReasons | string & Record<never, never>
    diff --git a/types/_openfeature_core.StaleEvent.html b/types/_openfeature_core.StaleEvent.html index 5dd89b710..a72c4a10c 100644 --- a/types/_openfeature_core.StaleEvent.html +++ b/types/_openfeature_core.StaleEvent.html @@ -1 +1 @@ -StaleEvent | Documentation
    StaleEvent: CommonEventProps
    +StaleEvent | Documentation
    StaleEvent: CommonEventProps
    diff --git a/types/_openfeature_core.TrackingEventDetails.html b/types/_openfeature_core.TrackingEventDetails.html index 578c5d01e..4fc57ca12 100644 --- a/types/_openfeature_core.TrackingEventDetails.html +++ b/types/_openfeature_core.TrackingEventDetails.html @@ -1,3 +1,3 @@ TrackingEventDetails | Documentation
    TrackingEventDetails: {
        value?: number;
    } & Record<string, TrackingEventValue>

    A container for arbitrary data that can relevant to tracking events.

    Type declaration

    • Optionalvalue?: number

      A numeric value associated with this event.

      -
    +
    diff --git a/types/_openfeature_core.TrackingEventValue.html b/types/_openfeature_core.TrackingEventValue.html index 5ea81bf41..b64014225 100644 --- a/types/_openfeature_core.TrackingEventValue.html +++ b/types/_openfeature_core.TrackingEventValue.html @@ -1 +1 @@ -TrackingEventValue | Documentation
    TrackingEventValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: TrackingEventValue;
        }
        | TrackingEventValue[]
    +TrackingEventValue | Documentation
    TrackingEventValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: TrackingEventValue;
        }
        | TrackingEventValue[]
    diff --git a/types/_openfeature_server_sdk.AnyProviderEvent.html b/types/_openfeature_server_sdk.AnyProviderEvent.html index e5d5129e7..59fccdc67 100644 --- a/types/_openfeature_server_sdk.AnyProviderEvent.html +++ b/types/_openfeature_server_sdk.AnyProviderEvent.html @@ -1,3 +1,3 @@ AnyProviderEvent | Documentation

    A type representing any possible ProviderEvent (server or client side). In most cases, you probably want to import ProviderEvents from the respective SDK.

    -
    +
    diff --git a/types/_openfeature_server_sdk.CommonEventDetails.html b/types/_openfeature_server_sdk.CommonEventDetails.html index 5f8479d33..57dfdb0a3 100644 --- a/types/_openfeature_server_sdk.CommonEventDetails.html +++ b/types/_openfeature_server_sdk.CommonEventDetails.html @@ -1,2 +1,2 @@ CommonEventDetails | Documentation
    CommonEventDetails: {
        clientName?: string;
        domain?: string;
        providerName: string;
    }

    Type declaration

    • Optional ReadonlyclientName?: string

      alias of "domain", use domain instead

      -
    • Optional Readonlydomain?: string
    • ReadonlyproviderName: string
    +
  • Optional Readonlydomain?: string
  • ReadonlyproviderName: string
  • diff --git a/types/_openfeature_server_sdk.ConfigChangeEvent.html b/types/_openfeature_server_sdk.ConfigChangeEvent.html index 2c69af262..4c75cb092 100644 --- a/types/_openfeature_server_sdk.ConfigChangeEvent.html +++ b/types/_openfeature_server_sdk.ConfigChangeEvent.html @@ -1 +1 @@ -ConfigChangeEvent | Documentation
    ConfigChangeEvent: CommonEventProps & {
        flagsChanged?: string[];
    }
    +ConfigChangeEvent | Documentation
    ConfigChangeEvent: CommonEventProps & {
        flagsChanged?: string[];
    }
    diff --git a/types/_openfeature_server_sdk.ErrorEvent.html b/types/_openfeature_server_sdk.ErrorEvent.html index 1f4540697..47d2e2b98 100644 --- a/types/_openfeature_server_sdk.ErrorEvent.html +++ b/types/_openfeature_server_sdk.ErrorEvent.html @@ -1 +1 @@ -ErrorEvent | Documentation
    ErrorEvent: CommonEventProps
    +ErrorEvent | Documentation
    ErrorEvent: CommonEventProps
    diff --git a/types/_openfeature_server_sdk.EvaluationContext.html b/types/_openfeature_server_sdk.EvaluationContext.html index a717ab5cb..0f03bbabb 100644 --- a/types/_openfeature_server_sdk.EvaluationContext.html +++ b/types/_openfeature_server_sdk.EvaluationContext.html @@ -2,4 +2,4 @@

    Type declaration

    +
    diff --git a/types/_openfeature_server_sdk.EvaluationContextValue.html b/types/_openfeature_server_sdk.EvaluationContextValue.html index 7dc935147..5b47f3e41 100644 --- a/types/_openfeature_server_sdk.EvaluationContextValue.html +++ b/types/_openfeature_server_sdk.EvaluationContextValue.html @@ -1 +1 @@ -EvaluationContextValue | Documentation
    EvaluationContextValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: EvaluationContextValue;
        }
        | EvaluationContextValue[]
    +EvaluationContextValue | Documentation
    EvaluationContextValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: EvaluationContextValue;
        }
        | EvaluationContextValue[]
    diff --git a/types/_openfeature_server_sdk.EvaluationDetails.html b/types/_openfeature_server_sdk.EvaluationDetails.html index 4103146d3..7b1790931 100644 --- a/types/_openfeature_server_sdk.EvaluationDetails.html +++ b/types/_openfeature_server_sdk.EvaluationDetails.html @@ -1 +1 @@ -EvaluationDetails | Documentation
    EvaluationDetails<T>: {
        flagKey: string;
        flagMetadata: Readonly<FlagMetadata>;
    } & ResolutionDetails<T>

    Type Parameters

    +EvaluationDetails | Documentation
    EvaluationDetails<T>: {
        flagKey: string;
        flagMetadata: Readonly<FlagMetadata>;
    } & ResolutionDetails<T>

    Type Parameters

    diff --git a/types/_openfeature_server_sdk.EventContext.html b/types/_openfeature_server_sdk.EventContext.html index 92765c40f..a8904d70f 100644 --- a/types/_openfeature_server_sdk.EventContext.html +++ b/types/_openfeature_server_sdk.EventContext.html @@ -1 +1 @@ -EventContext | Documentation
    EventContext<U, T>: (T extends ClientProviderEvents
        ? ClientEventMap[T]
        : T extends ProviderEvents
            ? ServerEventMap[T]
            : never) & U

    Type Parameters

    +EventContext | Documentation
    EventContext<U, T>: (T extends ClientProviderEvents
        ? ClientEventMap[T]
        : T extends ProviderEvents
            ? ServerEventMap[T]
            : never) & U

    Type Parameters

    diff --git a/types/_openfeature_server_sdk.EventDetails.html b/types/_openfeature_server_sdk.EventDetails.html index 8da1b1c98..ada68b6c6 100644 --- a/types/_openfeature_server_sdk.EventDetails.html +++ b/types/_openfeature_server_sdk.EventDetails.html @@ -1 +1 @@ -EventDetails | Documentation
    EventDetails<T>: EventContext<Record<string, unknown>, T> & CommonEventDetails

    Type Parameters

    +EventDetails | Documentation
    EventDetails<T>: EventContext<Record<string, unknown>, T> & CommonEventDetails

    Type Parameters

    diff --git a/types/_openfeature_server_sdk.EventHandler.html b/types/_openfeature_server_sdk.EventHandler.html index c5eacdeb4..1ab0a8c32 100644 --- a/types/_openfeature_server_sdk.EventHandler.html +++ b/types/_openfeature_server_sdk.EventHandler.html @@ -1 +1 @@ -EventHandler | Documentation
    EventHandler<T>: ((eventDetails?: EventDetails<T>) => Promise<unknown> | unknown)

    Type Parameters

    +EventHandler | Documentation
    EventHandler<T>: ((eventDetails?: EventDetails<T>) => Promise<unknown> | unknown)

    Type Parameters

    diff --git a/types/_openfeature_server_sdk.EventMetadata.html b/types/_openfeature_server_sdk.EventMetadata.html index 7935aa894..07c74dfc8 100644 --- a/types/_openfeature_server_sdk.EventMetadata.html +++ b/types/_openfeature_server_sdk.EventMetadata.html @@ -1 +1 @@ -EventMetadata | Documentation
    EventMetadata: {
        [key: string]: string | boolean | number;
    }
    +EventMetadata | Documentation
    EventMetadata: {
        [key: string]: string | boolean | number;
    }
    diff --git a/types/_openfeature_server_sdk.FlagMetadata.html b/types/_openfeature_server_sdk.FlagMetadata.html index 445afff17..310a2f546 100644 --- a/types/_openfeature_server_sdk.FlagMetadata.html +++ b/types/_openfeature_server_sdk.FlagMetadata.html @@ -1,3 +1,3 @@ FlagMetadata | Documentation
    FlagMetadata: Record<string, string | number | boolean>

    A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.

    This structure is populated by a provider for use by an Application Author (via the Evaluation API) or an Application Integrator (via hooks).

    -
    +
    diff --git a/types/_openfeature_server_sdk.FlagValue.html b/types/_openfeature_server_sdk.FlagValue.html index 635186f72..798db5f9d 100644 --- a/types/_openfeature_server_sdk.FlagValue.html +++ b/types/_openfeature_server_sdk.FlagValue.html @@ -1,2 +1,2 @@ FlagValue | Documentation
    FlagValue:
        | boolean
        | string
        | number
        | JsonValue

    Represents a JSON node value, or Date.

    -
    +
    diff --git a/types/_openfeature_server_sdk.FlagValueType.html b/types/_openfeature_server_sdk.FlagValueType.html index 0c3af2f6f..1acf2ecaf 100644 --- a/types/_openfeature_server_sdk.FlagValueType.html +++ b/types/_openfeature_server_sdk.FlagValueType.html @@ -1 +1 @@ -FlagValueType | Documentation
    FlagValueType:
        | "boolean"
        | "string"
        | "number"
        | "object"
    +FlagValueType | Documentation
    FlagValueType:
        | "boolean"
        | "string"
        | "number"
        | "object"
    diff --git a/types/_openfeature_server_sdk.Hook.html b/types/_openfeature_server_sdk.Hook.html index 6b534168f..a0446c4ff 100644 --- a/types/_openfeature_server_sdk.Hook.html +++ b/types/_openfeature_server_sdk.Hook.html @@ -1 +1 @@ -Hook | Documentation
    Hook: BaseHook<FlagValue, Promise<EvaluationContext | void> | EvaluationContext | void, Promise<void> | void>
    +Hook | Documentation
    Hook: BaseHook<FlagValue, Promise<EvaluationContext | void> | EvaluationContext | void, Promise<void> | void>
    diff --git a/types/_openfeature_server_sdk.HookHints.html b/types/_openfeature_server_sdk.HookHints.html index cbd3811be..a1d904d43 100644 --- a/types/_openfeature_server_sdk.HookHints.html +++ b/types/_openfeature_server_sdk.HookHints.html @@ -1 +1 @@ -HookHints | Documentation
    HookHints: Readonly<Record<string, unknown>>
    +HookHints | Documentation
    HookHints: Readonly<Record<string, unknown>>
    diff --git a/types/_openfeature_server_sdk.JsonArray.html b/types/_openfeature_server_sdk.JsonArray.html index 41f2c9051..a6b0b751b 100644 --- a/types/_openfeature_server_sdk.JsonArray.html +++ b/types/_openfeature_server_sdk.JsonArray.html @@ -1 +1 @@ -JsonArray | Documentation
    JsonArray: JsonValue[]
    +JsonArray | Documentation
    JsonArray: JsonValue[]
    diff --git a/types/_openfeature_server_sdk.JsonObject.html b/types/_openfeature_server_sdk.JsonObject.html index 6e0685ce1..7265b74e9 100644 --- a/types/_openfeature_server_sdk.JsonObject.html +++ b/types/_openfeature_server_sdk.JsonObject.html @@ -1 +1 @@ -JsonObject | Documentation
    JsonObject: {
        [key: string]: JsonValue;
    }
    +JsonObject | Documentation
    JsonObject: {
        [key: string]: JsonValue;
    }
    diff --git a/types/_openfeature_server_sdk.JsonValue.html b/types/_openfeature_server_sdk.JsonValue.html index 774ba359d..47feaff57 100644 --- a/types/_openfeature_server_sdk.JsonValue.html +++ b/types/_openfeature_server_sdk.JsonValue.html @@ -1,2 +1,2 @@ JsonValue | Documentation

    Represents a JSON node value.

    -
    +
    diff --git a/types/_openfeature_server_sdk.Metadata.html b/types/_openfeature_server_sdk.Metadata.html index da834ffe9..88cf2806e 100644 --- a/types/_openfeature_server_sdk.Metadata.html +++ b/types/_openfeature_server_sdk.Metadata.html @@ -1 +1 @@ -Metadata | Documentation
    Metadata: Record<string, string>
    +Metadata | Documentation
    Metadata: Record<string, string>
    diff --git a/types/_openfeature_server_sdk.NotChangeEvents.html b/types/_openfeature_server_sdk.NotChangeEvents.html index 626cf8702..9d38a28c1 100644 --- a/types/_openfeature_server_sdk.NotChangeEvents.html +++ b/types/_openfeature_server_sdk.NotChangeEvents.html @@ -1 +1 @@ -NotChangeEvents | Documentation
    NotChangeEvents: ServerNotChangeEvents | ClientNotChangeEvents
    +NotChangeEvents | Documentation
    NotChangeEvents: ServerNotChangeEvents | ClientNotChangeEvents
    diff --git a/types/_openfeature_server_sdk.Paradigm.html b/types/_openfeature_server_sdk.Paradigm.html index 14cbba413..7ec391c80 100644 --- a/types/_openfeature_server_sdk.Paradigm.html +++ b/types/_openfeature_server_sdk.Paradigm.html @@ -1,2 +1,2 @@ Paradigm | Documentation
    Paradigm: "server" | "client"

    Defines where the library is intended to be run.

    -
    +
    diff --git a/types/_openfeature_server_sdk.PrimitiveValue.html b/types/_openfeature_server_sdk.PrimitiveValue.html index 0e71fa540..04c8b60fa 100644 --- a/types/_openfeature_server_sdk.PrimitiveValue.html +++ b/types/_openfeature_server_sdk.PrimitiveValue.html @@ -1 +1 @@ -PrimitiveValue | Documentation
    PrimitiveValue:
        | null
        | boolean
        | string
        | number
    +PrimitiveValue | Documentation
    PrimitiveValue:
        | null
        | boolean
        | string
        | number
    diff --git a/types/_openfeature_server_sdk.ReadyEvent.html b/types/_openfeature_server_sdk.ReadyEvent.html index 405f4d1c6..ced67e7aa 100644 --- a/types/_openfeature_server_sdk.ReadyEvent.html +++ b/types/_openfeature_server_sdk.ReadyEvent.html @@ -1 +1 @@ -ReadyEvent | Documentation
    ReadyEvent: CommonEventProps
    +ReadyEvent | Documentation
    ReadyEvent: CommonEventProps
    diff --git a/types/_openfeature_server_sdk.ReconcilingEvent.html b/types/_openfeature_server_sdk.ReconcilingEvent.html index 15d9c38bb..fe3982dc3 100644 --- a/types/_openfeature_server_sdk.ReconcilingEvent.html +++ b/types/_openfeature_server_sdk.ReconcilingEvent.html @@ -1 +1 @@ -ReconcilingEvent | Documentation
    ReconcilingEvent: CommonEventProps & {
        errorCode: ErrorCode;
    }
    +ReconcilingEvent | Documentation
    ReconcilingEvent: CommonEventProps & {
        errorCode: ErrorCode;
    }
    diff --git a/types/_openfeature_server_sdk.ResolutionDetails.html b/types/_openfeature_server_sdk.ResolutionDetails.html index 3db03ab2d..24a2932f5 100644 --- a/types/_openfeature_server_sdk.ResolutionDetails.html +++ b/types/_openfeature_server_sdk.ResolutionDetails.html @@ -1 +1 @@ -ResolutionDetails | Documentation
    ResolutionDetails<U>: {
        errorCode?: ErrorCode;
        errorMessage?: string;
        flagMetadata?: FlagMetadata;
        reason?: ResolutionReason;
        value: U;
        variant?: string;
    }

    Type Parameters

    • U
    +ResolutionDetails | Documentation
    ResolutionDetails<U>: {
        errorCode?: ErrorCode;
        errorMessage?: string;
        flagMetadata?: FlagMetadata;
        reason?: ResolutionReason;
        value: U;
        variant?: string;
    }

    Type Parameters

    • U
    diff --git a/types/_openfeature_server_sdk.ResolutionReason.html b/types/_openfeature_server_sdk.ResolutionReason.html index ea0770057..1c9498b9c 100644 --- a/types/_openfeature_server_sdk.ResolutionReason.html +++ b/types/_openfeature_server_sdk.ResolutionReason.html @@ -1 +1 @@ -ResolutionReason | Documentation
    ResolutionReason: keyof typeof StandardResolutionReasons | string & Record<never, never>
    +ResolutionReason | Documentation
    ResolutionReason: keyof typeof StandardResolutionReasons | string & Record<never, never>
    diff --git a/types/_openfeature_server_sdk.StaleEvent.html b/types/_openfeature_server_sdk.StaleEvent.html index 4c11a1372..272f1e09a 100644 --- a/types/_openfeature_server_sdk.StaleEvent.html +++ b/types/_openfeature_server_sdk.StaleEvent.html @@ -1 +1 @@ -StaleEvent | Documentation
    StaleEvent: CommonEventProps
    +StaleEvent | Documentation
    StaleEvent: CommonEventProps
    diff --git a/types/_openfeature_server_sdk.TrackingEventDetails.html b/types/_openfeature_server_sdk.TrackingEventDetails.html index b52e1bdaf..fa643264b 100644 --- a/types/_openfeature_server_sdk.TrackingEventDetails.html +++ b/types/_openfeature_server_sdk.TrackingEventDetails.html @@ -1,3 +1,3 @@ TrackingEventDetails | Documentation
    TrackingEventDetails: {
        value?: number;
    } & Record<string, TrackingEventValue>

    A container for arbitrary data that can relevant to tracking events.

    Type declaration

    • Optionalvalue?: number

      A numeric value associated with this event.

      -
    +
    diff --git a/types/_openfeature_server_sdk.TrackingEventValue.html b/types/_openfeature_server_sdk.TrackingEventValue.html index 321e54111..ab3275a65 100644 --- a/types/_openfeature_server_sdk.TrackingEventValue.html +++ b/types/_openfeature_server_sdk.TrackingEventValue.html @@ -1 +1 @@ -TrackingEventValue | Documentation
    TrackingEventValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: TrackingEventValue;
        }
        | TrackingEventValue[]
    +TrackingEventValue | Documentation
    TrackingEventValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: TrackingEventValue;
        }
        | TrackingEventValue[]
    diff --git a/types/_openfeature_server_sdk.TransactionContext.html b/types/_openfeature_server_sdk.TransactionContext.html index 4e360d552..67ff3d7e3 100644 --- a/types/_openfeature_server_sdk.TransactionContext.html +++ b/types/_openfeature_server_sdk.TransactionContext.html @@ -1,4 +1,4 @@ TransactionContext | Documentation
    TransactionContext: EvaluationContext

    Transaction context is a mechanism for adding transaction specific context that is merged with evaluation context prior to flag evaluation. Examples of potential transaction specific context include: a user id, user agent, or request path.

    -
    +
    diff --git a/types/_openfeature_web_sdk.AnyProviderEvent.html b/types/_openfeature_web_sdk.AnyProviderEvent.html index 8d80f56b1..4a610a9ff 100644 --- a/types/_openfeature_web_sdk.AnyProviderEvent.html +++ b/types/_openfeature_web_sdk.AnyProviderEvent.html @@ -1,3 +1,3 @@ AnyProviderEvent | Documentation

    A type representing any possible ProviderEvent (server or client side). In most cases, you probably want to import ProviderEvents from the respective SDK.

    -
    +
    diff --git a/types/_openfeature_web_sdk.CommonEventDetails.html b/types/_openfeature_web_sdk.CommonEventDetails.html index 975834f6d..76747cea1 100644 --- a/types/_openfeature_web_sdk.CommonEventDetails.html +++ b/types/_openfeature_web_sdk.CommonEventDetails.html @@ -1,2 +1,2 @@ CommonEventDetails | Documentation
    CommonEventDetails: {
        clientName?: string;
        domain?: string;
        providerName: string;
    }

    Type declaration

    • Optional ReadonlyclientName?: string

      alias of "domain", use domain instead

      -
    • Optional Readonlydomain?: string
    • ReadonlyproviderName: string
    +
  • Optional Readonlydomain?: string
  • ReadonlyproviderName: string
  • diff --git a/types/_openfeature_web_sdk.ConfigChangeEvent.html b/types/_openfeature_web_sdk.ConfigChangeEvent.html index 7db6f7fee..dfaaa8aac 100644 --- a/types/_openfeature_web_sdk.ConfigChangeEvent.html +++ b/types/_openfeature_web_sdk.ConfigChangeEvent.html @@ -1 +1 @@ -ConfigChangeEvent | Documentation
    ConfigChangeEvent: CommonEventProps & {
        flagsChanged?: string[];
    }
    +ConfigChangeEvent | Documentation
    ConfigChangeEvent: CommonEventProps & {
        flagsChanged?: string[];
    }
    diff --git a/types/_openfeature_web_sdk.ErrorEvent.html b/types/_openfeature_web_sdk.ErrorEvent.html index 0e30a21d9..b07fa2ccd 100644 --- a/types/_openfeature_web_sdk.ErrorEvent.html +++ b/types/_openfeature_web_sdk.ErrorEvent.html @@ -1 +1 @@ -ErrorEvent | Documentation
    ErrorEvent: CommonEventProps
    +ErrorEvent | Documentation
    ErrorEvent: CommonEventProps
    diff --git a/types/_openfeature_web_sdk.EvaluationContext.html b/types/_openfeature_web_sdk.EvaluationContext.html index 9dc8417d8..013050ed4 100644 --- a/types/_openfeature_web_sdk.EvaluationContext.html +++ b/types/_openfeature_web_sdk.EvaluationContext.html @@ -2,4 +2,4 @@

    Type declaration

    +
    diff --git a/types/_openfeature_web_sdk.EvaluationContextValue.html b/types/_openfeature_web_sdk.EvaluationContextValue.html index 7b022a880..5cb3da121 100644 --- a/types/_openfeature_web_sdk.EvaluationContextValue.html +++ b/types/_openfeature_web_sdk.EvaluationContextValue.html @@ -1 +1 @@ -EvaluationContextValue | Documentation
    EvaluationContextValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: EvaluationContextValue;
        }
        | EvaluationContextValue[]
    +EvaluationContextValue | Documentation
    EvaluationContextValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: EvaluationContextValue;
        }
        | EvaluationContextValue[]
    diff --git a/types/_openfeature_web_sdk.EvaluationDetails.html b/types/_openfeature_web_sdk.EvaluationDetails.html index 66a340ee2..6f673e8f9 100644 --- a/types/_openfeature_web_sdk.EvaluationDetails.html +++ b/types/_openfeature_web_sdk.EvaluationDetails.html @@ -1 +1 @@ -EvaluationDetails | Documentation
    EvaluationDetails<T>: {
        flagKey: string;
        flagMetadata: Readonly<FlagMetadata>;
    } & ResolutionDetails<T>

    Type Parameters

    +EvaluationDetails | Documentation
    EvaluationDetails<T>: {
        flagKey: string;
        flagMetadata: Readonly<FlagMetadata>;
    } & ResolutionDetails<T>

    Type Parameters

    diff --git a/types/_openfeature_web_sdk.EventContext.html b/types/_openfeature_web_sdk.EventContext.html index 18d27af43..7a8d1705b 100644 --- a/types/_openfeature_web_sdk.EventContext.html +++ b/types/_openfeature_web_sdk.EventContext.html @@ -1 +1 @@ -EventContext | Documentation
    EventContext<U, T>: (T extends ProviderEvents
        ? ClientEventMap[T]
        : T extends ServerProviderEvents
            ? ServerEventMap[T]
            : never) & U

    Type Parameters

    +EventContext | Documentation
    EventContext<U, T>: (T extends ProviderEvents
        ? ClientEventMap[T]
        : T extends ServerProviderEvents
            ? ServerEventMap[T]
            : never) & U

    Type Parameters

    diff --git a/types/_openfeature_web_sdk.EventDetails.html b/types/_openfeature_web_sdk.EventDetails.html index ca644853d..ca35c754a 100644 --- a/types/_openfeature_web_sdk.EventDetails.html +++ b/types/_openfeature_web_sdk.EventDetails.html @@ -1 +1 @@ -EventDetails | Documentation
    EventDetails<T>: EventContext<Record<string, unknown>, T> & CommonEventDetails

    Type Parameters

    +EventDetails | Documentation
    EventDetails<T>: EventContext<Record<string, unknown>, T> & CommonEventDetails

    Type Parameters

    diff --git a/types/_openfeature_web_sdk.EventHandler.html b/types/_openfeature_web_sdk.EventHandler.html index 94ef5948a..cbbc4361e 100644 --- a/types/_openfeature_web_sdk.EventHandler.html +++ b/types/_openfeature_web_sdk.EventHandler.html @@ -1 +1 @@ -EventHandler | Documentation
    EventHandler<T>: ((eventDetails?: EventDetails<T>) => Promise<unknown> | unknown)

    Type Parameters

    +EventHandler | Documentation
    EventHandler<T>: ((eventDetails?: EventDetails<T>) => Promise<unknown> | unknown)

    Type Parameters

    diff --git a/types/_openfeature_web_sdk.EventMetadata.html b/types/_openfeature_web_sdk.EventMetadata.html index 4895cedde..eae8cb6ea 100644 --- a/types/_openfeature_web_sdk.EventMetadata.html +++ b/types/_openfeature_web_sdk.EventMetadata.html @@ -1 +1 @@ -EventMetadata | Documentation
    EventMetadata: {
        [key: string]: string | boolean | number;
    }
    +EventMetadata | Documentation
    EventMetadata: {
        [key: string]: string | boolean | number;
    }
    diff --git a/types/_openfeature_web_sdk.FlagMetadata.html b/types/_openfeature_web_sdk.FlagMetadata.html index af13062dc..28ca5bcb4 100644 --- a/types/_openfeature_web_sdk.FlagMetadata.html +++ b/types/_openfeature_web_sdk.FlagMetadata.html @@ -1,3 +1,3 @@ FlagMetadata | Documentation
    FlagMetadata: Record<string, string | number | boolean>

    A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.

    This structure is populated by a provider for use by an Application Author (via the Evaluation API) or an Application Integrator (via hooks).

    -
    +
    diff --git a/types/_openfeature_web_sdk.FlagValue.html b/types/_openfeature_web_sdk.FlagValue.html index 4f768fad5..6620b7d48 100644 --- a/types/_openfeature_web_sdk.FlagValue.html +++ b/types/_openfeature_web_sdk.FlagValue.html @@ -1,2 +1,2 @@ FlagValue | Documentation
    FlagValue:
        | boolean
        | string
        | number
        | JsonValue

    Represents a JSON node value, or Date.

    -
    +
    diff --git a/types/_openfeature_web_sdk.FlagValueType.html b/types/_openfeature_web_sdk.FlagValueType.html index 54e90d68e..6602a0249 100644 --- a/types/_openfeature_web_sdk.FlagValueType.html +++ b/types/_openfeature_web_sdk.FlagValueType.html @@ -1 +1 @@ -FlagValueType | Documentation
    FlagValueType:
        | "boolean"
        | "string"
        | "number"
        | "object"
    +FlagValueType | Documentation
    FlagValueType:
        | "boolean"
        | "string"
        | "number"
        | "object"
    diff --git a/types/_openfeature_web_sdk.Hook.html b/types/_openfeature_web_sdk.Hook.html index bcf98eb08..367ea2614 100644 --- a/types/_openfeature_web_sdk.Hook.html +++ b/types/_openfeature_web_sdk.Hook.html @@ -1 +1 @@ -Hook | Documentation
    Hook: BaseHook<FlagValue, void, void>
    +Hook | Documentation
    Hook: BaseHook<FlagValue, void, void>
    diff --git a/types/_openfeature_web_sdk.HookHints.html b/types/_openfeature_web_sdk.HookHints.html index e97c4b196..d8b3d8558 100644 --- a/types/_openfeature_web_sdk.HookHints.html +++ b/types/_openfeature_web_sdk.HookHints.html @@ -1 +1 @@ -HookHints | Documentation
    HookHints: Readonly<Record<string, unknown>>
    +HookHints | Documentation
    HookHints: Readonly<Record<string, unknown>>
    diff --git a/types/_openfeature_web_sdk.JsonArray.html b/types/_openfeature_web_sdk.JsonArray.html index 64b85dea2..37fa85ff9 100644 --- a/types/_openfeature_web_sdk.JsonArray.html +++ b/types/_openfeature_web_sdk.JsonArray.html @@ -1 +1 @@ -JsonArray | Documentation
    JsonArray: JsonValue[]
    +JsonArray | Documentation
    JsonArray: JsonValue[]
    diff --git a/types/_openfeature_web_sdk.JsonObject.html b/types/_openfeature_web_sdk.JsonObject.html index 0ee10ae01..791012289 100644 --- a/types/_openfeature_web_sdk.JsonObject.html +++ b/types/_openfeature_web_sdk.JsonObject.html @@ -1 +1 @@ -JsonObject | Documentation
    JsonObject: {
        [key: string]: JsonValue;
    }
    +JsonObject | Documentation
    JsonObject: {
        [key: string]: JsonValue;
    }
    diff --git a/types/_openfeature_web_sdk.JsonValue.html b/types/_openfeature_web_sdk.JsonValue.html index cc79ae1db..930e9dc6b 100644 --- a/types/_openfeature_web_sdk.JsonValue.html +++ b/types/_openfeature_web_sdk.JsonValue.html @@ -1,2 +1,2 @@ JsonValue | Documentation

    Represents a JSON node value.

    -
    +
    diff --git a/types/_openfeature_web_sdk.Metadata.html b/types/_openfeature_web_sdk.Metadata.html index 45481d1e9..b1f3b248d 100644 --- a/types/_openfeature_web_sdk.Metadata.html +++ b/types/_openfeature_web_sdk.Metadata.html @@ -1 +1 @@ -Metadata | Documentation
    Metadata: Record<string, string>
    +Metadata | Documentation
    Metadata: Record<string, string>
    diff --git a/types/_openfeature_web_sdk.NotChangeEvents.html b/types/_openfeature_web_sdk.NotChangeEvents.html index 01fbc8774..ded31e52a 100644 --- a/types/_openfeature_web_sdk.NotChangeEvents.html +++ b/types/_openfeature_web_sdk.NotChangeEvents.html @@ -1 +1 @@ -NotChangeEvents | Documentation
    NotChangeEvents: ServerNotChangeEvents | ClientNotChangeEvents
    +NotChangeEvents | Documentation
    NotChangeEvents: ServerNotChangeEvents | ClientNotChangeEvents
    diff --git a/types/_openfeature_web_sdk.Paradigm.html b/types/_openfeature_web_sdk.Paradigm.html index 566cb8cce..61c28053b 100644 --- a/types/_openfeature_web_sdk.Paradigm.html +++ b/types/_openfeature_web_sdk.Paradigm.html @@ -1,2 +1,2 @@ Paradigm | Documentation
    Paradigm: "server" | "client"

    Defines where the library is intended to be run.

    -
    +
    diff --git a/types/_openfeature_web_sdk.PrimitiveValue.html b/types/_openfeature_web_sdk.PrimitiveValue.html index e63ec6b41..0fb912a89 100644 --- a/types/_openfeature_web_sdk.PrimitiveValue.html +++ b/types/_openfeature_web_sdk.PrimitiveValue.html @@ -1 +1 @@ -PrimitiveValue | Documentation
    PrimitiveValue:
        | null
        | boolean
        | string
        | number
    +PrimitiveValue | Documentation
    PrimitiveValue:
        | null
        | boolean
        | string
        | number
    diff --git a/types/_openfeature_web_sdk.ProviderEmittableEvents.html b/types/_openfeature_web_sdk.ProviderEmittableEvents.html index 793819444..02416cc62 100644 --- a/types/_openfeature_web_sdk.ProviderEmittableEvents.html +++ b/types/_openfeature_web_sdk.ProviderEmittableEvents.html @@ -1,2 +1,2 @@ ProviderEmittableEvents | Documentation
    ProviderEmittableEvents: Exclude<ProviderEvents, ContextChanged>

    A subset of events that can be directly emitted by providers.

    -
    +
    diff --git a/types/_openfeature_web_sdk.ReadyEvent.html b/types/_openfeature_web_sdk.ReadyEvent.html index 38f27d87d..7c0181508 100644 --- a/types/_openfeature_web_sdk.ReadyEvent.html +++ b/types/_openfeature_web_sdk.ReadyEvent.html @@ -1 +1 @@ -ReadyEvent | Documentation
    ReadyEvent: CommonEventProps
    +ReadyEvent | Documentation
    ReadyEvent: CommonEventProps
    diff --git a/types/_openfeature_web_sdk.ReconcilingEvent.html b/types/_openfeature_web_sdk.ReconcilingEvent.html index 387185e3f..b356f58b5 100644 --- a/types/_openfeature_web_sdk.ReconcilingEvent.html +++ b/types/_openfeature_web_sdk.ReconcilingEvent.html @@ -1 +1 @@ -ReconcilingEvent | Documentation
    ReconcilingEvent: CommonEventProps & {
        errorCode: ErrorCode;
    }
    +ReconcilingEvent | Documentation
    ReconcilingEvent: CommonEventProps & {
        errorCode: ErrorCode;
    }
    diff --git a/types/_openfeature_web_sdk.ResolutionDetails.html b/types/_openfeature_web_sdk.ResolutionDetails.html index fa8a91650..1963574d3 100644 --- a/types/_openfeature_web_sdk.ResolutionDetails.html +++ b/types/_openfeature_web_sdk.ResolutionDetails.html @@ -1 +1 @@ -ResolutionDetails | Documentation
    ResolutionDetails<U>: {
        errorCode?: ErrorCode;
        errorMessage?: string;
        flagMetadata?: FlagMetadata;
        reason?: ResolutionReason;
        value: U;
        variant?: string;
    }

    Type Parameters

    • U
    +ResolutionDetails | Documentation
    ResolutionDetails<U>: {
        errorCode?: ErrorCode;
        errorMessage?: string;
        flagMetadata?: FlagMetadata;
        reason?: ResolutionReason;
        value: U;
        variant?: string;
    }

    Type Parameters

    • U
    diff --git a/types/_openfeature_web_sdk.ResolutionReason.html b/types/_openfeature_web_sdk.ResolutionReason.html index 76991e452..ceb948e07 100644 --- a/types/_openfeature_web_sdk.ResolutionReason.html +++ b/types/_openfeature_web_sdk.ResolutionReason.html @@ -1 +1 @@ -ResolutionReason | Documentation
    ResolutionReason: keyof typeof StandardResolutionReasons | string & Record<never, never>
    +ResolutionReason | Documentation
    ResolutionReason: keyof typeof StandardResolutionReasons | string & Record<never, never>
    diff --git a/types/_openfeature_web_sdk.StaleEvent.html b/types/_openfeature_web_sdk.StaleEvent.html index 6601a17fc..4093389c1 100644 --- a/types/_openfeature_web_sdk.StaleEvent.html +++ b/types/_openfeature_web_sdk.StaleEvent.html @@ -1 +1 @@ -StaleEvent | Documentation
    StaleEvent: CommonEventProps
    +StaleEvent | Documentation
    StaleEvent: CommonEventProps
    diff --git a/types/_openfeature_web_sdk.TrackingEventDetails.html b/types/_openfeature_web_sdk.TrackingEventDetails.html index 494aef662..95b69f0c2 100644 --- a/types/_openfeature_web_sdk.TrackingEventDetails.html +++ b/types/_openfeature_web_sdk.TrackingEventDetails.html @@ -1,3 +1,3 @@ TrackingEventDetails | Documentation
    TrackingEventDetails: {
        value?: number;
    } & Record<string, TrackingEventValue>

    A container for arbitrary data that can relevant to tracking events.

    Type declaration

    • Optionalvalue?: number

      A numeric value associated with this event.

      -
    +
    diff --git a/types/_openfeature_web_sdk.TrackingEventValue.html b/types/_openfeature_web_sdk.TrackingEventValue.html index 2d266896f..5879240e3 100644 --- a/types/_openfeature_web_sdk.TrackingEventValue.html +++ b/types/_openfeature_web_sdk.TrackingEventValue.html @@ -1 +1 @@ -TrackingEventValue | Documentation
    TrackingEventValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: TrackingEventValue;
        }
        | TrackingEventValue[]
    +TrackingEventValue | Documentation
    TrackingEventValue:
        | PrimitiveValue
        | Date
        | {
            [key: string]: TrackingEventValue;
        }
        | TrackingEventValue[]
    diff --git a/variables/_openfeature_core.LOG_LEVELS.html b/variables/_openfeature_core.LOG_LEVELS.html index 751f4e811..894812f1b 100644 --- a/variables/_openfeature_core.LOG_LEVELS.html +++ b/variables/_openfeature_core.LOG_LEVELS.html @@ -1 +1 @@ -LOG_LEVELS | Documentation
    LOG_LEVELS: (keyof Logger)[] = ...
    +LOG_LEVELS | Documentation
    LOG_LEVELS: (keyof Logger)[] = ...
    diff --git a/variables/_openfeature_core.StandardResolutionReasons.html b/variables/_openfeature_core.StandardResolutionReasons.html index 7c19acc4d..bb77c0f8c 100644 --- a/variables/_openfeature_core.StandardResolutionReasons.html +++ b/variables/_openfeature_core.StandardResolutionReasons.html @@ -8,4 +8,4 @@
  • ReadonlySTATIC: "STATIC"

    The resolved value is static (no dynamic evaluation).

  • ReadonlyTARGETING_MATCH: "TARGETING_MATCH"

    The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting.

  • ReadonlyUNKNOWN: "UNKNOWN"

    The reason for the resolved value could not be determined.

    -
  • +
    diff --git a/variables/_openfeature_server_sdk.LOG_LEVELS.html b/variables/_openfeature_server_sdk.LOG_LEVELS.html index 62552609a..bfcf2b17d 100644 --- a/variables/_openfeature_server_sdk.LOG_LEVELS.html +++ b/variables/_openfeature_server_sdk.LOG_LEVELS.html @@ -1 +1 @@ -LOG_LEVELS | Documentation
    LOG_LEVELS: (keyof Logger)[] = ...
    +LOG_LEVELS | Documentation
    LOG_LEVELS: (keyof Logger)[] = ...
    diff --git a/variables/_openfeature_server_sdk.NOOP_PROVIDER.html b/variables/_openfeature_server_sdk.NOOP_PROVIDER.html index e049f074e..ec26f3899 100644 --- a/variables/_openfeature_server_sdk.NOOP_PROVIDER.html +++ b/variables/_openfeature_server_sdk.NOOP_PROVIDER.html @@ -1 +1 @@ -NOOP_PROVIDER | Documentation
    NOOP_PROVIDER: NoopFeatureProvider = ...
    +NOOP_PROVIDER | Documentation
    NOOP_PROVIDER: NoopFeatureProvider = ...
    diff --git a/variables/_openfeature_server_sdk.NOOP_TRANSACTION_CONTEXT_PROPAGATOR.html b/variables/_openfeature_server_sdk.NOOP_TRANSACTION_CONTEXT_PROPAGATOR.html index 261419d63..763e22c71 100644 --- a/variables/_openfeature_server_sdk.NOOP_TRANSACTION_CONTEXT_PROPAGATOR.html +++ b/variables/_openfeature_server_sdk.NOOP_TRANSACTION_CONTEXT_PROPAGATOR.html @@ -1 +1 @@ -NOOP_TRANSACTION_CONTEXT_PROPAGATOR | Documentation

    Variable NOOP_TRANSACTION_CONTEXT_PROPAGATORConst

    NOOP_TRANSACTION_CONTEXT_PROPAGATOR: NoopTransactionContextPropagator = ...
    +NOOP_TRANSACTION_CONTEXT_PROPAGATOR | Documentation

    Variable NOOP_TRANSACTION_CONTEXT_PROPAGATORConst

    NOOP_TRANSACTION_CONTEXT_PROPAGATOR: NoopTransactionContextPropagator = ...
    diff --git a/variables/_openfeature_server_sdk.OpenFeature.html b/variables/_openfeature_server_sdk.OpenFeature.html index 21f3e0dd8..fb433ed64 100644 --- a/variables/_openfeature_server_sdk.OpenFeature.html +++ b/variables/_openfeature_server_sdk.OpenFeature.html @@ -1,3 +1,3 @@ OpenFeature | Documentation
    OpenFeature: OpenFeatureAPI = ...

    A singleton instance of the OpenFeature API.

    OpenFeature API

    -
    +
    diff --git a/variables/_openfeature_server_sdk.StandardResolutionReasons.html b/variables/_openfeature_server_sdk.StandardResolutionReasons.html index 856cd1d99..68790e5f1 100644 --- a/variables/_openfeature_server_sdk.StandardResolutionReasons.html +++ b/variables/_openfeature_server_sdk.StandardResolutionReasons.html @@ -8,4 +8,4 @@
  • ReadonlySTATIC: "STATIC"

    The resolved value is static (no dynamic evaluation).

  • ReadonlyTARGETING_MATCH: "TARGETING_MATCH"

    The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting.

  • ReadonlyUNKNOWN: "UNKNOWN"

    The reason for the resolved value could not be determined.

    -
  • +
    diff --git a/variables/_openfeature_web_sdk.LOG_LEVELS.html b/variables/_openfeature_web_sdk.LOG_LEVELS.html index b2df5d82e..5043527e7 100644 --- a/variables/_openfeature_web_sdk.LOG_LEVELS.html +++ b/variables/_openfeature_web_sdk.LOG_LEVELS.html @@ -1 +1 @@ -LOG_LEVELS | Documentation
    LOG_LEVELS: (keyof Logger)[] = ...
    +LOG_LEVELS | Documentation
    LOG_LEVELS: (keyof Logger)[] = ...
    diff --git a/variables/_openfeature_web_sdk.NOOP_PROVIDER.html b/variables/_openfeature_web_sdk.NOOP_PROVIDER.html index 1550034b4..9acab8e1b 100644 --- a/variables/_openfeature_web_sdk.NOOP_PROVIDER.html +++ b/variables/_openfeature_web_sdk.NOOP_PROVIDER.html @@ -1 +1 @@ -NOOP_PROVIDER | Documentation
    NOOP_PROVIDER: NoopFeatureProvider = ...
    +NOOP_PROVIDER | Documentation
    NOOP_PROVIDER: NoopFeatureProvider = ...
    diff --git a/variables/_openfeature_web_sdk.OpenFeature.html b/variables/_openfeature_web_sdk.OpenFeature.html index c8c7ba28f..558ff8472 100644 --- a/variables/_openfeature_web_sdk.OpenFeature.html +++ b/variables/_openfeature_web_sdk.OpenFeature.html @@ -1,3 +1,3 @@ OpenFeature | Documentation
    OpenFeature: OpenFeatureAPI = ...

    A singleton instance of the OpenFeature API.

    OpenFeature API

    -
    +
    diff --git a/variables/_openfeature_web_sdk.StandardResolutionReasons.html b/variables/_openfeature_web_sdk.StandardResolutionReasons.html index 0490024e2..07e16ee72 100644 --- a/variables/_openfeature_web_sdk.StandardResolutionReasons.html +++ b/variables/_openfeature_web_sdk.StandardResolutionReasons.html @@ -8,4 +8,4 @@
  • ReadonlySTATIC: "STATIC"

    The resolved value is static (no dynamic evaluation).

  • ReadonlyTARGETING_MATCH: "TARGETING_MATCH"

    The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting.

  • ReadonlyUNKNOWN: "UNKNOWN"

    The reason for the resolved value could not be determined.

    -
  • +