@openfeature/flagd-provider 0.7.2 → 0.7.4
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/index.cjs +1389 -56
- package/index.js +1389 -56
- package/package.json +9 -2
- package/src/package.json +3 -0
- package/src/proto/ts/schema/v1/schema.client.d.ts +10 -0
- package/src/proto/ts/schema/v1/schema.d.ts +108 -0
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfeature/flagd-provider",
|
|
3
|
-
"version": "0.7.
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "0.7.4",
|
|
5
4
|
"scripts": {
|
|
6
5
|
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
|
|
7
6
|
"current-version": "echo $npm_package_version"
|
|
@@ -11,7 +10,15 @@
|
|
|
11
10
|
},
|
|
12
11
|
"module": "./index.js",
|
|
13
12
|
"main": "./index.cjs",
|
|
13
|
+
"type": "module",
|
|
14
14
|
"types": "./src/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./src/index.d.ts",
|
|
18
|
+
"import": "./index.js",
|
|
19
|
+
"require": "./index.cjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
15
22
|
"dependencies": {
|
|
16
23
|
"@protobuf-ts/grpc-transport": "2.8.2",
|
|
17
24
|
"@protobuf-ts/runtime-rpc": "2.8.2",
|
package/src/package.json
ADDED
|
@@ -13,6 +13,8 @@ import type { ResolveStringResponse } from "./schema";
|
|
|
13
13
|
import type { ResolveStringRequest } from "./schema";
|
|
14
14
|
import type { ResolveBooleanResponse } from "./schema";
|
|
15
15
|
import type { ResolveBooleanRequest } from "./schema";
|
|
16
|
+
import type { ResolveAllResponse } from "./schema";
|
|
17
|
+
import type { ResolveAllRequest } from "./schema";
|
|
16
18
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
17
19
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
18
20
|
/**
|
|
@@ -21,6 +23,10 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
21
23
|
* @generated from protobuf service schema.v1.Service
|
|
22
24
|
*/
|
|
23
25
|
export interface IServiceClient {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf rpc: ResolveAll(schema.v1.ResolveAllRequest) returns (schema.v1.ResolveAllResponse);
|
|
28
|
+
*/
|
|
29
|
+
resolveAll(input: ResolveAllRequest, options?: RpcOptions): UnaryCall<ResolveAllRequest, ResolveAllResponse>;
|
|
24
30
|
/**
|
|
25
31
|
* @generated from protobuf rpc: ResolveBoolean(schema.v1.ResolveBooleanRequest) returns (schema.v1.ResolveBooleanResponse);
|
|
26
32
|
*/
|
|
@@ -59,6 +65,10 @@ export declare class ServiceClient implements IServiceClient, ServiceInfo {
|
|
|
59
65
|
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
60
66
|
};
|
|
61
67
|
constructor(_transport: RpcTransport);
|
|
68
|
+
/**
|
|
69
|
+
* @generated from protobuf rpc: ResolveAll(schema.v1.ResolveAllRequest) returns (schema.v1.ResolveAllResponse);
|
|
70
|
+
*/
|
|
71
|
+
resolveAll(input: ResolveAllRequest, options?: RpcOptions): UnaryCall<ResolveAllRequest, ResolveAllResponse>;
|
|
62
72
|
/**
|
|
63
73
|
* @generated from protobuf rpc: ResolveBoolean(schema.v1.ResolveBooleanRequest) returns (schema.v1.ResolveBooleanResponse);
|
|
64
74
|
*/
|
|
@@ -6,6 +6,83 @@ import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
|
6
6
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
8
|
import { Struct } from "../../google/protobuf/struct";
|
|
9
|
+
/**
|
|
10
|
+
* Request body for bulk flag evaluation, used by the ResolveAll rpc.
|
|
11
|
+
*
|
|
12
|
+
* @generated from protobuf message schema.v1.ResolveAllRequest
|
|
13
|
+
*/
|
|
14
|
+
export interface ResolveAllRequest {
|
|
15
|
+
/**
|
|
16
|
+
* Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf field: google.protobuf.Struct context = 1;
|
|
19
|
+
*/
|
|
20
|
+
context?: Struct;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Response body for bulk flag evaluation, used by the ResolveAll rpc.
|
|
24
|
+
*
|
|
25
|
+
* @generated from protobuf message schema.v1.ResolveAllResponse
|
|
26
|
+
*/
|
|
27
|
+
export interface ResolveAllResponse {
|
|
28
|
+
/**
|
|
29
|
+
* Object structure describing the evaluated flags for the provided context.
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf field: map<string, schema.v1.AnyFlag> flags = 1;
|
|
32
|
+
*/
|
|
33
|
+
flags: {
|
|
34
|
+
[key: string]: AnyFlag;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A variant type flag response.
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf message schema.v1.AnyFlag
|
|
41
|
+
*/
|
|
42
|
+
export interface AnyFlag {
|
|
43
|
+
/**
|
|
44
|
+
* The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf field: string reason = 1;
|
|
47
|
+
*/
|
|
48
|
+
reason: string;
|
|
49
|
+
/**
|
|
50
|
+
* The variant name of the returned flag value.
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf field: string variant = 2;
|
|
53
|
+
*/
|
|
54
|
+
variant: string;
|
|
55
|
+
/**
|
|
56
|
+
* @generated from protobuf oneof: value
|
|
57
|
+
*/
|
|
58
|
+
value: {
|
|
59
|
+
oneofKind: "boolValue";
|
|
60
|
+
/**
|
|
61
|
+
* @generated from protobuf field: bool bool_value = 3;
|
|
62
|
+
*/
|
|
63
|
+
boolValue: boolean;
|
|
64
|
+
} | {
|
|
65
|
+
oneofKind: "stringValue";
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf field: string string_value = 4;
|
|
68
|
+
*/
|
|
69
|
+
stringValue: string;
|
|
70
|
+
} | {
|
|
71
|
+
oneofKind: "doubleValue";
|
|
72
|
+
/**
|
|
73
|
+
* @generated from protobuf field: double double_value = 5;
|
|
74
|
+
*/
|
|
75
|
+
doubleValue: number;
|
|
76
|
+
} | {
|
|
77
|
+
oneofKind: "objectValue";
|
|
78
|
+
/**
|
|
79
|
+
* @generated from protobuf field: google.protobuf.Struct object_value = 6;
|
|
80
|
+
*/
|
|
81
|
+
objectValue: Struct;
|
|
82
|
+
} | {
|
|
83
|
+
oneofKind: undefined;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
9
86
|
/**
|
|
10
87
|
* Request body for boolean flag evaluation, used by the ResolveBoolean rpc.
|
|
11
88
|
*
|
|
@@ -255,6 +332,37 @@ export interface EventStreamResponse {
|
|
|
255
332
|
*/
|
|
256
333
|
export interface EventStreamRequest {
|
|
257
334
|
}
|
|
335
|
+
declare class ResolveAllRequest$Type extends MessageType<ResolveAllRequest> {
|
|
336
|
+
constructor();
|
|
337
|
+
create(value?: PartialMessage<ResolveAllRequest>): ResolveAllRequest;
|
|
338
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveAllRequest): ResolveAllRequest;
|
|
339
|
+
internalBinaryWrite(message: ResolveAllRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* @generated MessageType for protobuf message schema.v1.ResolveAllRequest
|
|
343
|
+
*/
|
|
344
|
+
export declare const ResolveAllRequest: ResolveAllRequest$Type;
|
|
345
|
+
declare class ResolveAllResponse$Type extends MessageType<ResolveAllResponse> {
|
|
346
|
+
constructor();
|
|
347
|
+
create(value?: PartialMessage<ResolveAllResponse>): ResolveAllResponse;
|
|
348
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveAllResponse): ResolveAllResponse;
|
|
349
|
+
private binaryReadMap1;
|
|
350
|
+
internalBinaryWrite(message: ResolveAllResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @generated MessageType for protobuf message schema.v1.ResolveAllResponse
|
|
354
|
+
*/
|
|
355
|
+
export declare const ResolveAllResponse: ResolveAllResponse$Type;
|
|
356
|
+
declare class AnyFlag$Type extends MessageType<AnyFlag> {
|
|
357
|
+
constructor();
|
|
358
|
+
create(value?: PartialMessage<AnyFlag>): AnyFlag;
|
|
359
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AnyFlag): AnyFlag;
|
|
360
|
+
internalBinaryWrite(message: AnyFlag, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @generated MessageType for protobuf message schema.v1.AnyFlag
|
|
364
|
+
*/
|
|
365
|
+
export declare const AnyFlag: AnyFlag$Type;
|
|
258
366
|
declare class ResolveBooleanRequest$Type extends MessageType<ResolveBooleanRequest> {
|
|
259
367
|
constructor();
|
|
260
368
|
create(value?: PartialMessage<ResolveBooleanRequest>): ResolveBooleanRequest;
|