@powerlines/plugin-open-feature 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +302 -0
- package/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/components/features-builtin.cjs +83 -0
- package/dist/components/features-builtin.d.cts +13 -0
- package/dist/components/features-builtin.d.cts.map +1 -0
- package/dist/components/features-builtin.d.mts +13 -0
- package/dist/components/features-builtin.d.mts.map +1 -0
- package/dist/components/features-builtin.mjs +81 -0
- package/dist/components/features-builtin.mjs.map +1 -0
- package/dist/components/index.cjs +4 -0
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.mts +2 -0
- package/dist/components/index.mjs +3 -0
- package/dist/helpers/automd-generator.cjs +33 -0
- package/dist/helpers/automd-generator.d.cts +14 -0
- package/dist/helpers/automd-generator.d.cts.map +1 -0
- package/dist/helpers/automd-generator.d.mts +14 -0
- package/dist/helpers/automd-generator.d.mts.map +1 -0
- package/dist/helpers/automd-generator.mjs +32 -0
- package/dist/helpers/automd-generator.mjs.map +1 -0
- package/dist/helpers/docs-helper.cjs +25 -0
- package/dist/helpers/docs-helper.d.cts +13 -0
- package/dist/helpers/docs-helper.d.cts.map +1 -0
- package/dist/helpers/docs-helper.d.mts +13 -0
- package/dist/helpers/docs-helper.d.mts.map +1 -0
- package/dist/helpers/docs-helper.mjs +24 -0
- package/dist/helpers/docs-helper.mjs.map +1 -0
- package/dist/helpers/index.cjs +6 -0
- package/dist/helpers/index.d.cts +3 -0
- package/dist/helpers/index.d.mts +3 -0
- package/dist/helpers/index.mjs +4 -0
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +35 -0
- package/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.cjs +643 -0
- package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs +618 -0
- package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/esm/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.cts +489 -0
- package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.cts.map +1 -0
- package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.mts +489 -0
- package/dist/node_modules/.pnpm/@openfeature_core@1.9.2/node_modules/@openfeature/core/dist/types.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.cjs +423 -0
- package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs +424 -0
- package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/esm/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.cts +41 -0
- package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.cts.map +1 -0
- package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.mts +42 -0
- package/dist/node_modules/.pnpm/@openfeature_server-sdk@1.20.2_@openfeature_core@1.9.2/node_modules/@openfeature/server-sdk/dist/types.d.mts.map +1 -0
- package/dist/types/index.cjs +7 -0
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +54 -0
- package/dist/types/plugin.d.cts +41 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +41 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +50 -0
- package/dist/types/plugin.mjs.map +1 -0
- package/package.json +201 -0
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@openfeature+core@1.9.2/node_modules/@openfeature/core/dist/types.d.ts
|
|
2
|
+
type Metadata = Record<string, string>;
|
|
3
|
+
/**
|
|
4
|
+
* Defines where the library is intended to be run.
|
|
5
|
+
*/
|
|
6
|
+
type Paradigm = 'server' | 'client';
|
|
7
|
+
type PrimitiveValue = null | boolean | string | number;
|
|
8
|
+
type JsonObject = {
|
|
9
|
+
[key: string]: JsonValue;
|
|
10
|
+
};
|
|
11
|
+
type JsonArray = JsonValue[];
|
|
12
|
+
/**
|
|
13
|
+
* Represents a JSON node value.
|
|
14
|
+
*/
|
|
15
|
+
type JsonValue = PrimitiveValue | JsonObject | JsonArray;
|
|
16
|
+
type EvaluationContextValue = PrimitiveValue | Date | {
|
|
17
|
+
[key: string]: EvaluationContextValue;
|
|
18
|
+
} | EvaluationContextValue[];
|
|
19
|
+
/**
|
|
20
|
+
* A container for arbitrary contextual data that can be used as a basis for dynamic evaluation
|
|
21
|
+
*/
|
|
22
|
+
type EvaluationContext = {
|
|
23
|
+
/**
|
|
24
|
+
* A string uniquely identifying the subject (end-user, or client service) of a flag evaluation.
|
|
25
|
+
* Providers may require this field for fractional flag evaluation, rules, or overrides targeting specific users.
|
|
26
|
+
* Such providers may behave unpredictably if a targeting key is not specified at flag resolution.
|
|
27
|
+
*/
|
|
28
|
+
targetingKey?: string;
|
|
29
|
+
} & Record<string, EvaluationContextValue>;
|
|
30
|
+
type FlagValueType = 'boolean' | 'string' | 'number' | 'object';
|
|
31
|
+
/**
|
|
32
|
+
* Represents a JSON node value.
|
|
33
|
+
*/
|
|
34
|
+
type FlagValue = boolean | string | number | JsonValue;
|
|
35
|
+
type ResolutionReason = keyof typeof StandardResolutionReasons | (string & Record<never, never>);
|
|
36
|
+
/**
|
|
37
|
+
* A structure which supports definition of arbitrary properties, with keys of type string, and values of type boolean, string, or number.
|
|
38
|
+
*
|
|
39
|
+
* This structure is populated by a provider for use by an Application Author (via the Evaluation API) or an Application Integrator (via hooks).
|
|
40
|
+
*/
|
|
41
|
+
type FlagMetadata = Record<string, string | number | boolean>;
|
|
42
|
+
type ResolutionDetails<U> = {
|
|
43
|
+
value: U;
|
|
44
|
+
variant?: string;
|
|
45
|
+
flagMetadata?: FlagMetadata;
|
|
46
|
+
reason?: ResolutionReason;
|
|
47
|
+
errorCode?: ErrorCode;
|
|
48
|
+
errorMessage?: string;
|
|
49
|
+
};
|
|
50
|
+
type EvaluationDetails<T extends FlagValue> = {
|
|
51
|
+
flagKey: string;
|
|
52
|
+
flagMetadata: Readonly<FlagMetadata>;
|
|
53
|
+
} & ResolutionDetails<T>;
|
|
54
|
+
declare const StandardResolutionReasons: {
|
|
55
|
+
/**
|
|
56
|
+
* The resolved value is static (no dynamic evaluation).
|
|
57
|
+
*/
|
|
58
|
+
readonly STATIC: "STATIC";
|
|
59
|
+
/**
|
|
60
|
+
* The resolved value was configured statically, or otherwise fell back to a pre-configured value.
|
|
61
|
+
*/
|
|
62
|
+
readonly DEFAULT: "DEFAULT";
|
|
63
|
+
/**
|
|
64
|
+
* The resolved value was the result of a dynamic evaluation, such as a rule or specific user-targeting.
|
|
65
|
+
*/
|
|
66
|
+
readonly TARGETING_MATCH: "TARGETING_MATCH";
|
|
67
|
+
/**
|
|
68
|
+
* The resolved value was the result of pseudorandom assignment.
|
|
69
|
+
*/
|
|
70
|
+
readonly SPLIT: "SPLIT";
|
|
71
|
+
/**
|
|
72
|
+
* The resolved value was retrieved from cache.
|
|
73
|
+
*/
|
|
74
|
+
readonly CACHED: "CACHED";
|
|
75
|
+
/**
|
|
76
|
+
* The resolved value was the result of the flag being disabled in the management system.
|
|
77
|
+
*/
|
|
78
|
+
readonly DISABLED: "DISABLED";
|
|
79
|
+
/**
|
|
80
|
+
* The reason for the resolved value could not be determined.
|
|
81
|
+
*/
|
|
82
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
83
|
+
/**
|
|
84
|
+
* The resolved value is non-authoritative or possibly out of date.
|
|
85
|
+
*/
|
|
86
|
+
readonly STALE: "STALE";
|
|
87
|
+
/**
|
|
88
|
+
* The resolved value was the result of an error.
|
|
89
|
+
*
|
|
90
|
+
* Note: The `errorCode` and `errorMessage` fields may contain additional details of this error.
|
|
91
|
+
*/
|
|
92
|
+
readonly ERROR: "ERROR";
|
|
93
|
+
};
|
|
94
|
+
declare enum ErrorCode {
|
|
95
|
+
/**
|
|
96
|
+
* The value was resolved before the provider was ready.
|
|
97
|
+
*/
|
|
98
|
+
PROVIDER_NOT_READY = "PROVIDER_NOT_READY",
|
|
99
|
+
/**
|
|
100
|
+
* The provider has entered an irrecoverable error state.
|
|
101
|
+
*/
|
|
102
|
+
PROVIDER_FATAL = "PROVIDER_FATAL",
|
|
103
|
+
/**
|
|
104
|
+
* The flag could not be found.
|
|
105
|
+
*/
|
|
106
|
+
FLAG_NOT_FOUND = "FLAG_NOT_FOUND",
|
|
107
|
+
/**
|
|
108
|
+
* An error was encountered parsing data, such as a flag configuration.
|
|
109
|
+
*/
|
|
110
|
+
PARSE_ERROR = "PARSE_ERROR",
|
|
111
|
+
/**
|
|
112
|
+
* The type of the flag value does not match the expected type.
|
|
113
|
+
*/
|
|
114
|
+
TYPE_MISMATCH = "TYPE_MISMATCH",
|
|
115
|
+
/**
|
|
116
|
+
* The provider requires a targeting key and one was not provided in the evaluation context.
|
|
117
|
+
*/
|
|
118
|
+
TARGETING_KEY_MISSING = "TARGETING_KEY_MISSING",
|
|
119
|
+
/**
|
|
120
|
+
* The evaluation context does not meet provider requirements.
|
|
121
|
+
*/
|
|
122
|
+
INVALID_CONTEXT = "INVALID_CONTEXT",
|
|
123
|
+
/**
|
|
124
|
+
* An error with an unspecified code.
|
|
125
|
+
*/
|
|
126
|
+
GENERAL = "GENERAL"
|
|
127
|
+
}
|
|
128
|
+
interface Logger {
|
|
129
|
+
error(...args: unknown[]): void;
|
|
130
|
+
warn(...args: unknown[]): void;
|
|
131
|
+
info(...args: unknown[]): void;
|
|
132
|
+
debug(...args: unknown[]): void;
|
|
133
|
+
}
|
|
134
|
+
interface ManageLogger<T> {
|
|
135
|
+
/**
|
|
136
|
+
* Sets a logger on this receiver. This logger supersedes to the global logger
|
|
137
|
+
* and is passed to various components in the SDK.
|
|
138
|
+
* The logger configured on the global API object will be used for all evaluations,
|
|
139
|
+
* unless overridden in a particular client.
|
|
140
|
+
* @template T The type of the receiver
|
|
141
|
+
* @param {Logger} logger The logger to be used
|
|
142
|
+
* @returns {T} The receiver (this object)
|
|
143
|
+
*/
|
|
144
|
+
setLogger(logger: Logger): T;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* An enumeration of possible events for server-sdk providers.
|
|
148
|
+
*/
|
|
149
|
+
declare enum ServerProviderEvents {
|
|
150
|
+
/**
|
|
151
|
+
* The provider is ready to evaluate flags.
|
|
152
|
+
*/
|
|
153
|
+
Ready = "PROVIDER_READY",
|
|
154
|
+
/**
|
|
155
|
+
* The provider is in an error state.
|
|
156
|
+
*/
|
|
157
|
+
Error = "PROVIDER_ERROR",
|
|
158
|
+
/**
|
|
159
|
+
* The flag configuration in the source-of-truth has changed.
|
|
160
|
+
*/
|
|
161
|
+
ConfigurationChanged = "PROVIDER_CONFIGURATION_CHANGED",
|
|
162
|
+
/**
|
|
163
|
+
* The provider's cached state is no longer valid and may not be up-to-date with the source of truth.
|
|
164
|
+
*/
|
|
165
|
+
Stale = "PROVIDER_STALE"
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* An enumeration of possible events for web-sdk providers.
|
|
169
|
+
*/
|
|
170
|
+
declare enum ClientProviderEvents {
|
|
171
|
+
/**
|
|
172
|
+
* The provider is ready to evaluate flags.
|
|
173
|
+
*/
|
|
174
|
+
Ready = "PROVIDER_READY",
|
|
175
|
+
/**
|
|
176
|
+
* The provider is in an error state.
|
|
177
|
+
*/
|
|
178
|
+
Error = "PROVIDER_ERROR",
|
|
179
|
+
/**
|
|
180
|
+
* The flag configuration in the source-of-truth has changed.
|
|
181
|
+
*/
|
|
182
|
+
ConfigurationChanged = "PROVIDER_CONFIGURATION_CHANGED",
|
|
183
|
+
/**
|
|
184
|
+
* The context associated with the provider has changed, and the provider has reconciled it's associated state.
|
|
185
|
+
*/
|
|
186
|
+
ContextChanged = "PROVIDER_CONTEXT_CHANGED",
|
|
187
|
+
/**
|
|
188
|
+
* The context associated with the provider has changed, and the provider has not yet reconciled its associated state.
|
|
189
|
+
*/
|
|
190
|
+
Reconciling = "PROVIDER_RECONCILING",
|
|
191
|
+
/**
|
|
192
|
+
* The provider's cached state is no longer valid and may not be up-to-date with the source of truth.
|
|
193
|
+
*/
|
|
194
|
+
Stale = "PROVIDER_STALE"
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* A type representing any possible ProviderEvent (server or client side).
|
|
198
|
+
* In most cases, you probably want to import `ProviderEvents` from the respective SDK.
|
|
199
|
+
*/
|
|
200
|
+
type AnyProviderEvent = ServerProviderEvents | ClientProviderEvents;
|
|
201
|
+
type EventMetadata = {
|
|
202
|
+
[key: string]: string | boolean | number;
|
|
203
|
+
};
|
|
204
|
+
type CommonEventDetails = {
|
|
205
|
+
readonly providerName: string;
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated alias of "domain", use domain instead
|
|
208
|
+
*/
|
|
209
|
+
readonly clientName?: string;
|
|
210
|
+
readonly domain?: string;
|
|
211
|
+
};
|
|
212
|
+
type CommonEventProps = {
|
|
213
|
+
readonly message?: string;
|
|
214
|
+
readonly metadata?: EventMetadata;
|
|
215
|
+
};
|
|
216
|
+
type ReadyEvent = CommonEventProps;
|
|
217
|
+
type ErrorEvent = CommonEventProps;
|
|
218
|
+
type StaleEvent = CommonEventProps;
|
|
219
|
+
type ConfigChangeEvent = CommonEventProps & {
|
|
220
|
+
readonly flagsChanged?: string[];
|
|
221
|
+
};
|
|
222
|
+
type ServerEventMap = {
|
|
223
|
+
[ServerProviderEvents.Ready]: ReadyEvent;
|
|
224
|
+
[ServerProviderEvents.Error]: ErrorEvent;
|
|
225
|
+
[ServerProviderEvents.Stale]: StaleEvent;
|
|
226
|
+
[ServerProviderEvents.ConfigurationChanged]: ConfigChangeEvent;
|
|
227
|
+
};
|
|
228
|
+
type ClientEventMap = {
|
|
229
|
+
[ClientProviderEvents.Ready]: ReadyEvent;
|
|
230
|
+
[ClientProviderEvents.Error]: ErrorEvent;
|
|
231
|
+
[ClientProviderEvents.Stale]: StaleEvent;
|
|
232
|
+
[ClientProviderEvents.ConfigurationChanged]: ConfigChangeEvent;
|
|
233
|
+
[ClientProviderEvents.Reconciling]: CommonEventProps;
|
|
234
|
+
[ClientProviderEvents.ContextChanged]: CommonEventProps;
|
|
235
|
+
};
|
|
236
|
+
type EventContext<U extends Record<string, unknown> = Record<string, unknown>, T extends ServerProviderEvents | ClientProviderEvents = ServerProviderEvents | ClientProviderEvents> = (T extends ClientProviderEvents ? ClientEventMap[T] : T extends ServerProviderEvents ? ServerEventMap[T] : never) & U;
|
|
237
|
+
type EventDetails<T extends ServerProviderEvents | ClientProviderEvents = ServerProviderEvents | ClientProviderEvents> = EventContext<Record<string, unknown>, T> & CommonEventDetails;
|
|
238
|
+
type EventHandler<T extends ServerProviderEvents | ClientProviderEvents = ServerProviderEvents | ClientProviderEvents> = (eventDetails?: EventDetails<T>) => Promise<unknown> | unknown;
|
|
239
|
+
/**
|
|
240
|
+
* Event emitter to be optionally implemented by providers.
|
|
241
|
+
* Implemented by @see OpenFeatureEventEmitter.
|
|
242
|
+
*/
|
|
243
|
+
interface ProviderEventEmitter<E extends AnyProviderEvent, AdditionalContext extends Record<string, unknown> = Record<string, unknown>> extends ManageLogger<ProviderEventEmitter<E, AdditionalContext>> {
|
|
244
|
+
emit(eventType: E, context?: EventContext): void;
|
|
245
|
+
addHandler(eventType: AnyProviderEvent, handler: EventHandler): void;
|
|
246
|
+
removeHandler(eventType: AnyProviderEvent, handler: EventHandler): void;
|
|
247
|
+
removeAllHandlers(eventType?: AnyProviderEvent): void;
|
|
248
|
+
getHandlers(eventType: AnyProviderEvent): EventHandler[];
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Returns true if the provider's status corresponds to the event.
|
|
252
|
+
* If the provider's status is not defined, it matches READY.
|
|
253
|
+
* @param {AnyProviderEvent} event event to match
|
|
254
|
+
* @param {ClientProviderStatus | ServerProviderStatus} status status of provider
|
|
255
|
+
* @returns {boolean} boolean indicating if the provider status corresponds to the event.
|
|
256
|
+
*/
|
|
257
|
+
type TrackingEventValue = PrimitiveValue | Date | {
|
|
258
|
+
[key: string]: TrackingEventValue;
|
|
259
|
+
} | TrackingEventValue[];
|
|
260
|
+
/**
|
|
261
|
+
* A container for arbitrary data that can relevant to tracking events.
|
|
262
|
+
*/
|
|
263
|
+
type TrackingEventDetails = {
|
|
264
|
+
/**
|
|
265
|
+
* A numeric value associated with this event.
|
|
266
|
+
*/
|
|
267
|
+
value?: number;
|
|
268
|
+
} & Record<string, TrackingEventValue>;
|
|
269
|
+
/**
|
|
270
|
+
* The state of the provider.
|
|
271
|
+
* Note that the provider's state is handled by the SDK.
|
|
272
|
+
*/
|
|
273
|
+
declare enum ServerProviderStatus {
|
|
274
|
+
/**
|
|
275
|
+
* The provider has not been initialized and cannot yet evaluate flags.
|
|
276
|
+
*/
|
|
277
|
+
NOT_READY = "NOT_READY",
|
|
278
|
+
/**
|
|
279
|
+
* The provider is ready to resolve flags.
|
|
280
|
+
*/
|
|
281
|
+
READY = "READY",
|
|
282
|
+
/**
|
|
283
|
+
* The provider is in an error state and unable to evaluate flags.
|
|
284
|
+
*/
|
|
285
|
+
ERROR = "ERROR",
|
|
286
|
+
/**
|
|
287
|
+
* The provider's cached state is no longer valid and may not be up-to-date with the source of truth.
|
|
288
|
+
*/
|
|
289
|
+
STALE = "STALE",
|
|
290
|
+
/**
|
|
291
|
+
* The provider has entered an irrecoverable error state.
|
|
292
|
+
*/
|
|
293
|
+
FATAL = "FATAL"
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* The state of the provider.
|
|
297
|
+
* Note that the provider's state is handled by the SDK.
|
|
298
|
+
*/
|
|
299
|
+
declare enum ClientProviderStatus {
|
|
300
|
+
/**
|
|
301
|
+
* The provider has not been initialized and cannot yet evaluate flags.
|
|
302
|
+
*/
|
|
303
|
+
NOT_READY = "NOT_READY",
|
|
304
|
+
/**
|
|
305
|
+
* The provider is ready to resolve flags.
|
|
306
|
+
*/
|
|
307
|
+
READY = "READY",
|
|
308
|
+
/**
|
|
309
|
+
* The provider is in an error state and unable to evaluate flags.
|
|
310
|
+
*/
|
|
311
|
+
ERROR = "ERROR",
|
|
312
|
+
/**
|
|
313
|
+
* The provider's cached state is no longer valid and may not be up-to-date with the source of truth.
|
|
314
|
+
*/
|
|
315
|
+
STALE = "STALE",
|
|
316
|
+
/**
|
|
317
|
+
* The provider has entered an irrecoverable error state.
|
|
318
|
+
*/
|
|
319
|
+
FATAL = "FATAL",
|
|
320
|
+
/**
|
|
321
|
+
* The provider is reconciling its state with a context change.
|
|
322
|
+
*/
|
|
323
|
+
RECONCILING = "RECONCILING"
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Static data about the provider.
|
|
327
|
+
*/
|
|
328
|
+
interface ProviderMetadata extends Readonly<Metadata> {
|
|
329
|
+
readonly name: string;
|
|
330
|
+
}
|
|
331
|
+
interface CommonProvider<S extends ClientProviderStatus | ServerProviderStatus> {
|
|
332
|
+
readonly metadata: ProviderMetadata;
|
|
333
|
+
/**
|
|
334
|
+
* Represents where the provider is intended to be run. If defined,
|
|
335
|
+
* the SDK will enforce that the defined paradigm at runtime.
|
|
336
|
+
*/
|
|
337
|
+
readonly runsOn?: Paradigm;
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated the SDK now maintains the provider's state; there's no need for providers to implement this field.
|
|
340
|
+
* Returns a representation of the current readiness of the provider.
|
|
341
|
+
*
|
|
342
|
+
* _Providers which do not implement this method are assumed to be ready immediately._
|
|
343
|
+
*/
|
|
344
|
+
readonly status?: S;
|
|
345
|
+
/**
|
|
346
|
+
* An event emitter for ProviderEvents.
|
|
347
|
+
* @see ProviderEvents
|
|
348
|
+
*/
|
|
349
|
+
events?: ProviderEventEmitter<AnyProviderEvent>;
|
|
350
|
+
/**
|
|
351
|
+
* A function used to shut down the provider.
|
|
352
|
+
* Called when this provider is replaced with a new one, or when the OpenFeature is shut down.
|
|
353
|
+
*/
|
|
354
|
+
onClose?(): Promise<void>;
|
|
355
|
+
/**
|
|
356
|
+
* A function used to setup the provider.
|
|
357
|
+
* Called by the SDK after the provider is set if the provider's status is NOT_READY.
|
|
358
|
+
* When the returned promise resolves, the SDK fires the ProviderEvents.Ready event.
|
|
359
|
+
* If the returned promise rejects, the SDK fires the ProviderEvents.Error event.
|
|
360
|
+
* Use this function to perform any context-dependent setup within the provider.
|
|
361
|
+
* @param context
|
|
362
|
+
*/
|
|
363
|
+
initialize?(context?: EvaluationContext): Promise<void>;
|
|
364
|
+
/**
|
|
365
|
+
* Track a user action or application state, usually representing a business objective or outcome.
|
|
366
|
+
* @param trackingEventName
|
|
367
|
+
* @param context
|
|
368
|
+
* @param trackingEventDetails
|
|
369
|
+
*/
|
|
370
|
+
track?(trackingEventName: string, context: EvaluationContext, trackingEventDetails: TrackingEventDetails): void;
|
|
371
|
+
}
|
|
372
|
+
interface ClientMetadata {
|
|
373
|
+
/**
|
|
374
|
+
* @deprecated alias of "domain", use domain instead
|
|
375
|
+
*/
|
|
376
|
+
readonly name?: string;
|
|
377
|
+
readonly domain?: string;
|
|
378
|
+
readonly version?: string;
|
|
379
|
+
readonly providerMetadata: ProviderMetadata;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* A mutable data structure for hooks to maintain state across their lifecycle.
|
|
383
|
+
* Each hook instance gets its own isolated data store that persists for the
|
|
384
|
+
* duration of a single flag evaluation.
|
|
385
|
+
* @template TData - A record type that defines the shape of the stored data
|
|
386
|
+
*/
|
|
387
|
+
interface HookData<TData = Record<string, unknown>> {
|
|
388
|
+
/**
|
|
389
|
+
* Sets a value in the hook data store.
|
|
390
|
+
* @param key The key to store the value under
|
|
391
|
+
* @param value The value to store
|
|
392
|
+
*/
|
|
393
|
+
set<K extends keyof TData>(key: K, value: TData[K]): void;
|
|
394
|
+
set(key: string, value: unknown): void;
|
|
395
|
+
/**
|
|
396
|
+
* Gets a value from the hook data store.
|
|
397
|
+
* @param key The key to retrieve the value for
|
|
398
|
+
* @returns The stored value, or undefined if not found
|
|
399
|
+
*/
|
|
400
|
+
get<K extends keyof TData>(key: K): TData[K] | undefined;
|
|
401
|
+
get(key: string): unknown;
|
|
402
|
+
/**
|
|
403
|
+
* Checks if a key exists in the hook data store.
|
|
404
|
+
* @param key The key to check
|
|
405
|
+
* @returns True if the key exists, false otherwise
|
|
406
|
+
*/
|
|
407
|
+
has<K extends keyof TData>(key: K): boolean;
|
|
408
|
+
has(key: string): boolean;
|
|
409
|
+
/**
|
|
410
|
+
* Deletes a value from the hook data store.
|
|
411
|
+
* @param key The key to delete
|
|
412
|
+
* @returns True if the key was deleted, false if it didn't exist
|
|
413
|
+
*/
|
|
414
|
+
delete<K extends keyof TData>(key: K): boolean;
|
|
415
|
+
delete(key: string): boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Clears all values from the hook data store.
|
|
418
|
+
*/
|
|
419
|
+
clear(): void;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Default implementation of HookData using a Map.
|
|
423
|
+
* @template TData - A record type that defines the shape of the stored data
|
|
424
|
+
*/
|
|
425
|
+
type HookHints = Readonly<Record<string, unknown>>;
|
|
426
|
+
interface HookContext<T extends FlagValue = FlagValue, TData = Record<string, unknown>> {
|
|
427
|
+
readonly flagKey: string;
|
|
428
|
+
readonly defaultValue: T;
|
|
429
|
+
readonly flagValueType: FlagValueType;
|
|
430
|
+
readonly context: Readonly<EvaluationContext>;
|
|
431
|
+
readonly clientMetadata: ClientMetadata;
|
|
432
|
+
readonly providerMetadata: ProviderMetadata;
|
|
433
|
+
readonly logger: Logger;
|
|
434
|
+
readonly hookData: HookData<TData>;
|
|
435
|
+
}
|
|
436
|
+
interface BeforeHookContext<T extends FlagValue = FlagValue, TData = Record<string, unknown>> extends HookContext<T, TData> {
|
|
437
|
+
context: EvaluationContext;
|
|
438
|
+
}
|
|
439
|
+
interface BaseHook<T extends FlagValue = FlagValue, TData = Record<string, unknown>, BeforeHookReturn = unknown, HooksReturn = unknown> {
|
|
440
|
+
/**
|
|
441
|
+
* Runs before flag values are resolved from the provider.
|
|
442
|
+
* If an EvaluationContext is returned, it will be merged with the pre-existing EvaluationContext.
|
|
443
|
+
* @param hookContext
|
|
444
|
+
* @param hookHints
|
|
445
|
+
*/
|
|
446
|
+
before?(hookContext: BeforeHookContext<T, TData>, hookHints?: HookHints): BeforeHookReturn;
|
|
447
|
+
/**
|
|
448
|
+
* Runs after flag values are successfully resolved from the provider.
|
|
449
|
+
* @param hookContext
|
|
450
|
+
* @param evaluationDetails
|
|
451
|
+
* @param hookHints
|
|
452
|
+
*/
|
|
453
|
+
after?(hookContext: Readonly<HookContext<T, TData>>, evaluationDetails: EvaluationDetails<T>, hookHints?: HookHints): HooksReturn;
|
|
454
|
+
/**
|
|
455
|
+
* Runs in the event of an unhandled error or promise rejection during flag resolution, or any attached hooks.
|
|
456
|
+
* @param hookContext
|
|
457
|
+
* @param error
|
|
458
|
+
* @param hookHints
|
|
459
|
+
*/
|
|
460
|
+
error?(hookContext: Readonly<HookContext<T, TData>>, error: unknown, hookHints?: HookHints): HooksReturn;
|
|
461
|
+
/**
|
|
462
|
+
* Runs after all other hook stages, regardless of success or error.
|
|
463
|
+
* @param hookContext
|
|
464
|
+
* @param evaluationDetails
|
|
465
|
+
* @param hookHints
|
|
466
|
+
*/
|
|
467
|
+
finally?(hookContext: Readonly<HookContext<T, TData>>, evaluationDetails: EvaluationDetails<T>, hookHints?: HookHints): HooksReturn;
|
|
468
|
+
}
|
|
469
|
+
type AnyProviderStatus = ClientProviderStatus | ServerProviderStatus;
|
|
470
|
+
/**
|
|
471
|
+
* A provider and its current status.
|
|
472
|
+
* For internal use only.
|
|
473
|
+
*/
|
|
474
|
+
declare class ProviderWrapper<P extends CommonProvider<AnyProviderStatus>, S extends AnyProviderStatus> {
|
|
475
|
+
private _provider;
|
|
476
|
+
private _status;
|
|
477
|
+
private _pendingContextChanges;
|
|
478
|
+
constructor(_provider: P, _status: S, _statusEnumType: typeof ClientProviderStatus | typeof ServerProviderStatus);
|
|
479
|
+
get provider(): P;
|
|
480
|
+
set provider(provider: P);
|
|
481
|
+
get status(): S;
|
|
482
|
+
set status(status: S);
|
|
483
|
+
get allContextChangesSettled(): boolean;
|
|
484
|
+
incrementPendingContextChanges(): void;
|
|
485
|
+
decrementPendingContextChanges(): void;
|
|
486
|
+
}
|
|
487
|
+
//#endregion
|
|
488
|
+
export { type AnyProviderEvent, type BaseHook, type BeforeHookContext, type ClientMetadata, ClientProviderEvents, ClientProviderStatus, type CommonEventDetails, type CommonProvider, type ConfigChangeEvent, ErrorCode, type ErrorEvent, type EvaluationContext, type EvaluationContextValue, type EvaluationDetails, type EventContext, type EventDetails, type EventHandler, type EventMetadata, type FlagMetadata, type FlagValue, type FlagValueType, type HookContext, type HookData, type HookHints, type JsonArray, type JsonObject, type JsonValue, type Logger, type ManageLogger, type Metadata, type Paradigm, type PrimitiveValue, type ProviderEventEmitter, type ProviderMetadata, ProviderWrapper, type ReadyEvent, type ResolutionDetails, type ResolutionReason, ServerProviderEvents, ServerProviderStatus, type StaleEvent, StandardResolutionReasons, type TrackingEventDetails, type TrackingEventValue };
|
|
489
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":["Metadata","Record","Paradigm","PrimitiveValue","JsonObject","JsonValue","key","JsonArray","EvaluationContextValue","Date","EvaluationContext","targetingKey","ManageContext","T","getContext","setContext","context","FlagValueType","FlagValue","ResolutionReason","StandardResolutionReasons","FlagMetadata","ResolutionDetails","U","ErrorCode","value","variant","flagMetadata","reason","errorCode","errorMessage","EvaluationDetails","Readonly","flagKey","STATIC","DEFAULT","TARGETING_MATCH","SPLIT","CACHED","DISABLED","UNKNOWN","STALE","ERROR","PROVIDER_NOT_READY","PROVIDER_FATAL","FLAG_NOT_FOUND","PARSE_ERROR","TYPE_MISMATCH","TARGETING_KEY_MISSING","INVALID_CONTEXT","GENERAL","Logger","error","args","warn","info","debug","ManageLogger","setLogger","logger","DefaultLogger","LOG_LEVELS","Array","SafeLogger","fallbackLogger","constructor","log","ServerProviderEvents","Ready","Error","ConfigurationChanged","Stale","ClientProviderEvents","ContextChanged","Reconciling","AnyProviderEvent","EventMetadata","CommonEventDetails","providerName","clientName","domain","CommonEventProps","message","metadata","ReadyEvent","ErrorEvent","StaleEvent","ReconcilingEvent","ConfigChangeEvent","flagsChanged","ServerEventMap","ClientEventMap","ServerNotChangeEvents","ClientNotChangeEvents","NotChangeEvents","EventContext","EventDetails","EventHandler","Promise","eventDetails","EventOptions","AbortSignal","signal","Eventing","addHandler","eventType","handler","options","removeHandler","getHandlers","ProviderEventEmitter","E","AdditionalContext","emit","removeAllHandlers","statusMatchesEvent","ClientProviderStatus","ServerProviderStatus","event","status","GenericEventEmitter","PlatformEventEmitter","globalLogger","eventEmitter","_handlers","_eventLogger","_logger","Function","addListener","eventName","listener","on","once","removeListener","off","removeAllListeners","listeners","listenerCount","eventNames","TrackingEventValue","TrackingEventDetails","NOT_READY","READY","FATAL","RECONCILING","ProviderMetadata","name","CommonProvider","S","runsOn","events","onClose","initialize","track","trackingEventName","trackingEventDetails","ProviderEntryInput","TProvider","provider","RegisteredProvider","Required","ErrorOptions","cause","OpenFeatureError","code","FlagNotFoundError","GeneralError","InvalidContextError","ParseError","ProviderFatalError","ProviderNotReadyError","TargetingKeyMissingError","TypeMismatchError","instantiateErrorByErrorCode","ErrorWithCode","AggregateError","originalErrors","source","constructAggregateError","providerErrors","throwAggregateErrorFromPromiseResults","PromiseSettledResult","result","providerEntries","ProviderEventsEnum","ProviderStatusEnum","StatusTracker","TProviderEvents","TProviderStatus","statusEnum","eventEnum","providerStatuses","wrapEventHandler","providerEntry","providerStatus","getStatusFromProviderStatuses","changeProviderStatus","StrategyEvaluationContext","flagType","BaseStrategyProviderContext","BaseStrategyPerProviderContext","BaseProviderResolutionResultBase","BaseProviderResolutionSuccessResult","_TProviderStatus","details","BaseProviderResolutionErrorResult","thrownError","BaseProviderResolutionResult","BaseFinalResult","errors","BaseEvaluationStrategy","runMode","shouldEvaluateThisProvider","strategyContext","_evalContext","shouldEvaluateNextProvider","_strategyContext","_context","_result","shouldTrackWithThisProvider","_trackingEventName","_trackingEventDetails","determineFinalResult","resolutions","hasError","resolution","hasErrorWithCode","collectProviderErrors","resolutionToFinalResult","FirstMatchStrategy","FirstSuccessfulStrategy","ComparisonStrategy","fallbackProvider","onMismatch","ClientMetadata","version","providerMetadata","HookData","K","TData","set","get","has","delete","clear","MapHookData","data","HookHints","HookContext","defaultValue","flagValueType","clientMetadata","hookData","BeforeHookContext","BaseHook","BeforeHookReturn","HooksReturn","before","hookContext","hookHints","after","evaluationDetails","finally","EvaluationLifeCycle","addHooks","hooks","getHooks","clearHooks","TelemetryAttribute","KEY","ERROR_CODE","ERROR_MESSAGE","VARIANT","VALUE","CONTEXT_ID","REASON","PROVIDER","FLAG_SET_ID","VERSION","TelemetryFlagMetadata","AttributeValue","EvaluationEvent","attributes","createEvaluationEvent","isString","stringOrUndefined","isObject","objectOrUndefined","AnyProviderStatus","ProviderWrapper","P","_provider","_status","_pendingContextChanges","_statusEnumType","allContextChangesSettled","incrementPendingContextChanges","decrementPendingContextChanges","OpenFeatureCommonAPI","H","Map","_createEventEmitter","_defaultProvider","_domainScopedProviders","_apiEmitter","_hooks","_clientEventHandlers","_domainScopedContext","_clientEvents","_runsOn","category","getProviderMetadata","clearHandlers","setProviderAndWait","clientOrProvider","providerContextOrUndefined","contextOrUndefined","setProvider","setAwaitableProvider","domainOrProvider","providerOrUndefined","getProviderForClient","buildAndCacheEventEmitterForClient","getUnboundEmitters","getAssociatedEventEmitters","transferListeners","close","clearProvidersAndSetDefault","defaultProvider","allProviders","handleShutdownError","AllProviderEvents","AllProviderStatus","BaseComparisonStrategy","BaseFirstMatchStrategy","BaseFirstSuccessfulStrategy"],"sources":["../../../../../../../../../../node_modules/.pnpm/@openfeature+core@1.9.2/node_modules/@openfeature/core/dist/types.d.ts"],"x_google_ignoreList":[0],"mappings":";KAAKA,QAAAA,GAAWC,MAAAA;;;;KAKXC,QAAAA;AAAAA,KAEAC,cAAAA;AAAAA,KACAC,UAAAA;EAAAA,CACAE,GAAAA,WAAcD,SAAAA;AAAAA;AAAAA,KAEdE,SAAAA,GAAYF,SAAAA;;;;KAIZA,SAAAA,GAAYF,cAAAA,GAAiBC,UAAAA,GAAaG,SAAAA;AAAAA,KAE1CC,sBAAAA,GAAyBL,cAAAA,GAAiBM,IAAAA;EAAAA,CAC1CH,GAAAA,WAAcE,sBAAAA;AAAAA,IACfA,sBAAAA;;AAVwB;;KAcvBE,iBAAAA;EAZYL;;AAAS;;;EAkBtBM,YAAAA;AAAAA,IACAV,MAAAA,SAAeO,sBAAAA;AAAAA,KAiBdS,aAAAA;;;;KAIAC,SAAAA,+BAAwCb,SAAAA;AAAAA,KACxCc,gBAAAA,gBAAgCC,yBAAAA,aAAsCnB,MAAAA;;;AAjCjD;;;KAuCrBoB,YAAAA,GAAepB,MAAAA;AAAAA,KACfqB,iBAAAA;EACDG,KAAAA,EAAOF,CAAAA;EACPG,OAAAA;EACAC,YAAAA,GAAeN,YAAAA;EACfO,MAAAA,GAAST,gBAAAA;EACTU,SAAAA,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