@openfeature/flagd-provider 0.7.6 → 0.8.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/README.md +12 -0
- package/index.cjs +5999 -1528
- package/index.js +6001 -1507
- package/package.json +5 -7
- package/src/index.d.ts +1 -1
- package/src/lib/configuration.d.ts +55 -55
- package/src/lib/constants.d.ts +5 -5
- package/src/lib/flagd-provider.d.ts +32 -25
- package/src/lib/service/grpc/service.d.ts +51 -50
- package/src/lib/service/service.d.ts +9 -8
- package/src/package.json +1 -1
- package/src/proto/ts/google/protobuf/struct.d.ts +201 -184
- package/src/proto/ts/schema/v1/schema.d.ts +949 -490
- package/src/proto/ts/sync/v1/sync_service.d.ts +206 -183
- package/src/proto/ts/schema/v1/schema.client.d.ts +0 -96
- package/src/proto/ts/sync/v1/sync_service.client.d.ts +0 -46
|
@@ -1,184 +1,201 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
fields: {
|
|
29
|
-
[key: string]:
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
5
|
+
* `Value` type union.
|
|
6
|
+
*
|
|
7
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum NullValue {
|
|
10
|
+
/** NULL_VALUE - Null value. */
|
|
11
|
+
NULL_VALUE = 0,
|
|
12
|
+
UNRECOGNIZED = -1
|
|
13
|
+
}
|
|
14
|
+
export declare function nullValueFromJSON(object: any): NullValue;
|
|
15
|
+
export declare function nullValueToJSON(object: NullValue): string;
|
|
16
|
+
/**
|
|
17
|
+
* `Struct` represents a structured data value, consisting of fields
|
|
18
|
+
* which map to dynamically typed values. In some languages, `Struct`
|
|
19
|
+
* might be supported by a native representation. For example, in
|
|
20
|
+
* scripting languages like JS a struct is represented as an
|
|
21
|
+
* object. The details of that representation are described together
|
|
22
|
+
* with the proto support for the language.
|
|
23
|
+
*
|
|
24
|
+
* The JSON representation for `Struct` is JSON object.
|
|
25
|
+
*/
|
|
26
|
+
export interface Struct {
|
|
27
|
+
/** Unordered map of dynamically typed values. */
|
|
28
|
+
fields: {
|
|
29
|
+
[key: string]: any | undefined;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface Struct_FieldsEntry {
|
|
33
|
+
key: string;
|
|
34
|
+
value: any | undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* `Value` represents a dynamically typed value which can be either
|
|
38
|
+
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
39
|
+
* list of values. A producer of value is expected to set one of these
|
|
40
|
+
* variants. Absence of any variant indicates an error.
|
|
41
|
+
*
|
|
42
|
+
* The JSON representation for `Value` is JSON value.
|
|
43
|
+
*/
|
|
44
|
+
export interface Value {
|
|
45
|
+
/** Represents a null value. */
|
|
46
|
+
nullValue?: NullValue | undefined;
|
|
47
|
+
/** Represents a double value. */
|
|
48
|
+
numberValue?: number | undefined;
|
|
49
|
+
/** Represents a string value. */
|
|
50
|
+
stringValue?: string | undefined;
|
|
51
|
+
/** Represents a boolean value. */
|
|
52
|
+
boolValue?: boolean | undefined;
|
|
53
|
+
/** Represents a structured value. */
|
|
54
|
+
structValue?: {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
} | undefined;
|
|
57
|
+
/** Represents a repeated `Value`. */
|
|
58
|
+
listValue?: Array<any> | undefined;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* `ListValue` is a wrapper around a repeated field of values.
|
|
62
|
+
*
|
|
63
|
+
* The JSON representation for `ListValue` is JSON array.
|
|
64
|
+
*/
|
|
65
|
+
export interface ListValue {
|
|
66
|
+
/** Repeated field of dynamically typed values. */
|
|
67
|
+
values: any[];
|
|
68
|
+
}
|
|
69
|
+
export declare const Struct: {
|
|
70
|
+
encode(message: Struct, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Struct;
|
|
72
|
+
fromJSON(object: any): Struct;
|
|
73
|
+
toJSON(message: Struct): unknown;
|
|
74
|
+
create<I extends {
|
|
75
|
+
fields?: {
|
|
76
|
+
[x: string]: any;
|
|
77
|
+
} | undefined;
|
|
78
|
+
} & {
|
|
79
|
+
fields?: ({
|
|
80
|
+
[x: string]: any;
|
|
81
|
+
} & {
|
|
82
|
+
[x: string]: any;
|
|
83
|
+
} & { [K in Exclude<keyof I["fields"], string | number>]: never; }) | undefined;
|
|
84
|
+
} & { [K_1 in Exclude<keyof I, "fields">]: never; }>(base?: I | undefined): Struct;
|
|
85
|
+
fromPartial<I_1 extends {
|
|
86
|
+
fields?: {
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
} | undefined;
|
|
89
|
+
} & {
|
|
90
|
+
fields?: ({
|
|
91
|
+
[x: string]: any;
|
|
92
|
+
} & {
|
|
93
|
+
[x: string]: any;
|
|
94
|
+
} & { [K_2 in Exclude<keyof I_1["fields"], string | number>]: never; }) | undefined;
|
|
95
|
+
} & { [K_3 in Exclude<keyof I_1, "fields">]: never; }>(object: I_1): Struct;
|
|
96
|
+
wrap(object: {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
} | undefined): Struct;
|
|
99
|
+
unwrap(message: Struct): {
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export declare const Struct_FieldsEntry: {
|
|
104
|
+
encode(message: Struct_FieldsEntry, writer?: _m0.Writer): _m0.Writer;
|
|
105
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Struct_FieldsEntry;
|
|
106
|
+
fromJSON(object: any): Struct_FieldsEntry;
|
|
107
|
+
toJSON(message: Struct_FieldsEntry): unknown;
|
|
108
|
+
create<I extends {
|
|
109
|
+
key?: string | undefined;
|
|
110
|
+
value?: any | undefined;
|
|
111
|
+
} & {
|
|
112
|
+
key?: string | undefined;
|
|
113
|
+
value?: any | undefined;
|
|
114
|
+
} & { [K in Exclude<keyof I, keyof Struct_FieldsEntry>]: never; }>(base?: I | undefined): Struct_FieldsEntry;
|
|
115
|
+
fromPartial<I_1 extends {
|
|
116
|
+
key?: string | undefined;
|
|
117
|
+
value?: any | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
key?: string | undefined;
|
|
120
|
+
value?: any | undefined;
|
|
121
|
+
} & { [K_1 in Exclude<keyof I_1, keyof Struct_FieldsEntry>]: never; }>(object: I_1): Struct_FieldsEntry;
|
|
122
|
+
};
|
|
123
|
+
export declare const Value: {
|
|
124
|
+
encode(message: Value, writer?: _m0.Writer): _m0.Writer;
|
|
125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Value;
|
|
126
|
+
fromJSON(object: any): Value;
|
|
127
|
+
toJSON(message: Value): unknown;
|
|
128
|
+
create<I extends {
|
|
129
|
+
nullValue?: NullValue | undefined;
|
|
130
|
+
numberValue?: number | undefined;
|
|
131
|
+
stringValue?: string | undefined;
|
|
132
|
+
boolValue?: boolean | undefined;
|
|
133
|
+
structValue?: {
|
|
134
|
+
[x: string]: any;
|
|
135
|
+
} | undefined;
|
|
136
|
+
listValue?: any[] | undefined;
|
|
137
|
+
} & {
|
|
138
|
+
nullValue?: NullValue | undefined;
|
|
139
|
+
numberValue?: number | undefined;
|
|
140
|
+
stringValue?: string | undefined;
|
|
141
|
+
boolValue?: boolean | undefined;
|
|
142
|
+
structValue?: ({
|
|
143
|
+
[x: string]: any;
|
|
144
|
+
} & {
|
|
145
|
+
[x: string]: any;
|
|
146
|
+
} & { [K in Exclude<keyof I["structValue"], string | number>]: never; }) | undefined;
|
|
147
|
+
listValue?: (any[] & any[] & { [K_1 in Exclude<keyof I["listValue"], keyof any[]>]: never; }) | undefined;
|
|
148
|
+
} & { [K_2 in Exclude<keyof I, keyof Value>]: never; }>(base?: I | undefined): Value;
|
|
149
|
+
fromPartial<I_1 extends {
|
|
150
|
+
nullValue?: NullValue | undefined;
|
|
151
|
+
numberValue?: number | undefined;
|
|
152
|
+
stringValue?: string | undefined;
|
|
153
|
+
boolValue?: boolean | undefined;
|
|
154
|
+
structValue?: {
|
|
155
|
+
[x: string]: any;
|
|
156
|
+
} | undefined;
|
|
157
|
+
listValue?: any[] | undefined;
|
|
158
|
+
} & {
|
|
159
|
+
nullValue?: NullValue | undefined;
|
|
160
|
+
numberValue?: number | undefined;
|
|
161
|
+
stringValue?: string | undefined;
|
|
162
|
+
boolValue?: boolean | undefined;
|
|
163
|
+
structValue?: ({
|
|
164
|
+
[x: string]: any;
|
|
165
|
+
} & {
|
|
166
|
+
[x: string]: any;
|
|
167
|
+
} & { [K_3 in Exclude<keyof I_1["structValue"], string | number>]: never; }) | undefined;
|
|
168
|
+
listValue?: (any[] & any[] & { [K_4 in Exclude<keyof I_1["listValue"], keyof any[]>]: never; }) | undefined;
|
|
169
|
+
} & { [K_5 in Exclude<keyof I_1, keyof Value>]: never; }>(object: I_1): Value;
|
|
170
|
+
wrap(value: any): Value;
|
|
171
|
+
unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined;
|
|
172
|
+
};
|
|
173
|
+
export declare const ListValue: {
|
|
174
|
+
encode(message: ListValue, writer?: _m0.Writer): _m0.Writer;
|
|
175
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListValue;
|
|
176
|
+
fromJSON(object: any): ListValue;
|
|
177
|
+
toJSON(message: ListValue): unknown;
|
|
178
|
+
create<I extends {
|
|
179
|
+
values?: any[] | undefined;
|
|
180
|
+
} & {
|
|
181
|
+
values?: (any[] & any[] & { [K in Exclude<keyof I["values"], keyof any[]>]: never; }) | undefined;
|
|
182
|
+
} & { [K_1 in Exclude<keyof I, "values">]: never; }>(base?: I | undefined): ListValue;
|
|
183
|
+
fromPartial<I_1 extends {
|
|
184
|
+
values?: any[] | undefined;
|
|
185
|
+
} & {
|
|
186
|
+
values?: (any[] & any[] & { [K_2 in Exclude<keyof I_1["values"], keyof any[]>]: never; }) | undefined;
|
|
187
|
+
} & { [K_3 in Exclude<keyof I_1, "values">]: never; }>(object: I_1): ListValue;
|
|
188
|
+
wrap(array: Array<any> | undefined): ListValue;
|
|
189
|
+
unwrap(message: ListValue): Array<any>;
|
|
190
|
+
};
|
|
191
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
192
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
193
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
194
|
+
} : Partial<T>;
|
|
195
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
196
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
197
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
198
|
+
} & {
|
|
199
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
200
|
+
};
|
|
201
|
+
export {};
|