@openfeature/flagd-provider 0.7.5 → 0.7.7

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.
@@ -1,490 +1,490 @@
1
- import { ServiceType } from "@protobuf-ts/runtime-rpc";
2
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
3
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
4
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
- import type { IBinaryReader } from "@protobuf-ts/runtime";
6
- import type { PartialMessage } from "@protobuf-ts/runtime";
7
- import { MessageType } from "@protobuf-ts/runtime";
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
- }
86
- /**
87
- * Request body for boolean flag evaluation, used by the ResolveBoolean rpc.
88
- *
89
- * @generated from protobuf message schema.v1.ResolveBooleanRequest
90
- */
91
- export interface ResolveBooleanRequest {
92
- /**
93
- * Flag key of the requested flag.
94
- *
95
- * @generated from protobuf field: string flag_key = 1;
96
- */
97
- flagKey: string;
98
- /**
99
- * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
100
- *
101
- * @generated from protobuf field: google.protobuf.Struct context = 2;
102
- */
103
- context?: Struct;
104
- }
105
- /**
106
- * Response body for boolean flag evaluation. used by the ResolveBoolean rpc.
107
- *
108
- * @generated from protobuf message schema.v1.ResolveBooleanResponse
109
- */
110
- export interface ResolveBooleanResponse {
111
- /**
112
- * The response value of the boolean flag evaluation, will be unset in the case of error.
113
- *
114
- * @generated from protobuf field: bool value = 1;
115
- */
116
- value: boolean;
117
- /**
118
- * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
119
- *
120
- * @generated from protobuf field: string reason = 2;
121
- */
122
- reason: string;
123
- /**
124
- * The variant name of the returned flag value.
125
- *
126
- * @generated from protobuf field: string variant = 3;
127
- */
128
- variant: string;
129
- }
130
- /**
131
- * Request body for string flag evaluation, used by the ResolveString rpc.
132
- *
133
- * @generated from protobuf message schema.v1.ResolveStringRequest
134
- */
135
- export interface ResolveStringRequest {
136
- /**
137
- * Flag key of the requested flag.
138
- *
139
- * @generated from protobuf field: string flag_key = 1;
140
- */
141
- flagKey: string;
142
- /**
143
- * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
144
- *
145
- * @generated from protobuf field: google.protobuf.Struct context = 2;
146
- */
147
- context?: Struct;
148
- }
149
- /**
150
- * Response body for string flag evaluation. used by the ResolveString rpc.
151
- *
152
- * @generated from protobuf message schema.v1.ResolveStringResponse
153
- */
154
- export interface ResolveStringResponse {
155
- /**
156
- * The response value of the string flag evaluation, will be unset in the case of error.
157
- *
158
- * @generated from protobuf field: string value = 1;
159
- */
160
- value: string;
161
- /**
162
- * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
163
- *
164
- * @generated from protobuf field: string reason = 2;
165
- */
166
- reason: string;
167
- /**
168
- * The variant name of the returned flag value.
169
- *
170
- * @generated from protobuf field: string variant = 3;
171
- */
172
- variant: string;
173
- }
174
- /**
175
- * Request body for float flag evaluation, used by the ResolveFloat rpc.
176
- *
177
- * @generated from protobuf message schema.v1.ResolveFloatRequest
178
- */
179
- export interface ResolveFloatRequest {
180
- /**
181
- * Flag key of the requested flag.
182
- *
183
- * @generated from protobuf field: string flag_key = 1;
184
- */
185
- flagKey: string;
186
- /**
187
- * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
188
- *
189
- * @generated from protobuf field: google.protobuf.Struct context = 2;
190
- */
191
- context?: Struct;
192
- }
193
- /**
194
- * Response body for float flag evaluation. used by the ResolveFloat rpc.
195
- *
196
- * @generated from protobuf message schema.v1.ResolveFloatResponse
197
- */
198
- export interface ResolveFloatResponse {
199
- /**
200
- * The response value of the float flag evaluation, will be empty in the case of error.
201
- *
202
- * @generated from protobuf field: double value = 1;
203
- */
204
- value: number;
205
- /**
206
- * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
207
- *
208
- * @generated from protobuf field: string reason = 2;
209
- */
210
- reason: string;
211
- /**
212
- * The variant name of the returned flag value.
213
- *
214
- * @generated from protobuf field: string variant = 3;
215
- */
216
- variant: string;
217
- }
218
- /**
219
- * Request body for int flag evaluation, used by the ResolveInt rpc.
220
- *
221
- * @generated from protobuf message schema.v1.ResolveIntRequest
222
- */
223
- export interface ResolveIntRequest {
224
- /**
225
- * Flag key of the requested flag.
226
- *
227
- * @generated from protobuf field: string flag_key = 1;
228
- */
229
- flagKey: string;
230
- /**
231
- * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
232
- *
233
- * @generated from protobuf field: google.protobuf.Struct context = 2;
234
- */
235
- context?: Struct;
236
- }
237
- /**
238
- * Response body for int flag evaluation. used by the ResolveInt rpc.
239
- *
240
- * @generated from protobuf message schema.v1.ResolveIntResponse
241
- */
242
- export interface ResolveIntResponse {
243
- /**
244
- * The response value of the int flag evaluation, will be unset in the case of error.
245
- *
246
- * @generated from protobuf field: int64 value = 1;
247
- */
248
- value: string;
249
- /**
250
- * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
251
- *
252
- * @generated from protobuf field: string reason = 2;
253
- */
254
- reason: string;
255
- /**
256
- * The variant name of the returned flag value.
257
- *
258
- * @generated from protobuf field: string variant = 3;
259
- */
260
- variant: string;
261
- }
262
- /**
263
- * Request body for object flag evaluation, used by the ResolveObject rpc.
264
- *
265
- * @generated from protobuf message schema.v1.ResolveObjectRequest
266
- */
267
- export interface ResolveObjectRequest {
268
- /**
269
- * Flag key of the requested flag.
270
- *
271
- * @generated from protobuf field: string flag_key = 1;
272
- */
273
- flagKey: string;
274
- /**
275
- * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
276
- *
277
- * @generated from protobuf field: google.protobuf.Struct context = 2;
278
- */
279
- context?: Struct;
280
- }
281
- /**
282
- * Response body for object flag evaluation. used by the ResolveObject rpc.
283
- *
284
- * @generated from protobuf message schema.v1.ResolveObjectResponse
285
- */
286
- export interface ResolveObjectResponse {
287
- /**
288
- * The response value of the object flag evaluation, will be unset in the case of error.
289
- *
290
- * NOTE: This structure will need to be decoded from google/protobuf/struct.proto before it is returned to the SDK
291
- *
292
- * @generated from protobuf field: google.protobuf.Struct value = 1;
293
- */
294
- value?: Struct;
295
- /**
296
- * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
297
- *
298
- * @generated from protobuf field: string reason = 2;
299
- */
300
- reason: string;
301
- /**
302
- * The variant name of the returned flag value.
303
- *
304
- * @generated from protobuf field: string variant = 3;
305
- */
306
- variant: string;
307
- }
308
- /**
309
- * Response body for the EventStream stream response
310
- *
311
- * @generated from protobuf message schema.v1.EventStreamResponse
312
- */
313
- export interface EventStreamResponse {
314
- /**
315
- * String key indicating the type of event that is being received, for example, provider_ready or configuration_change
316
- *
317
- * @generated from protobuf field: string type = 1;
318
- */
319
- type: string;
320
- /**
321
- * Object structure for use when sending relevant metadata to provide context to the event.
322
- * Can be left unset when it is not required.
323
- *
324
- * @generated from protobuf field: google.protobuf.Struct data = 2;
325
- */
326
- data?: Struct;
327
- }
328
- /**
329
- * Empty stream request body
330
- *
331
- * @generated from protobuf message schema.v1.EventStreamRequest
332
- */
333
- export interface EventStreamRequest {
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;
366
- declare class ResolveBooleanRequest$Type extends MessageType<ResolveBooleanRequest> {
367
- constructor();
368
- create(value?: PartialMessage<ResolveBooleanRequest>): ResolveBooleanRequest;
369
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveBooleanRequest): ResolveBooleanRequest;
370
- internalBinaryWrite(message: ResolveBooleanRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
371
- }
372
- /**
373
- * @generated MessageType for protobuf message schema.v1.ResolveBooleanRequest
374
- */
375
- export declare const ResolveBooleanRequest: ResolveBooleanRequest$Type;
376
- declare class ResolveBooleanResponse$Type extends MessageType<ResolveBooleanResponse> {
377
- constructor();
378
- create(value?: PartialMessage<ResolveBooleanResponse>): ResolveBooleanResponse;
379
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveBooleanResponse): ResolveBooleanResponse;
380
- internalBinaryWrite(message: ResolveBooleanResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
381
- }
382
- /**
383
- * @generated MessageType for protobuf message schema.v1.ResolveBooleanResponse
384
- */
385
- export declare const ResolveBooleanResponse: ResolveBooleanResponse$Type;
386
- declare class ResolveStringRequest$Type extends MessageType<ResolveStringRequest> {
387
- constructor();
388
- create(value?: PartialMessage<ResolveStringRequest>): ResolveStringRequest;
389
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveStringRequest): ResolveStringRequest;
390
- internalBinaryWrite(message: ResolveStringRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
391
- }
392
- /**
393
- * @generated MessageType for protobuf message schema.v1.ResolveStringRequest
394
- */
395
- export declare const ResolveStringRequest: ResolveStringRequest$Type;
396
- declare class ResolveStringResponse$Type extends MessageType<ResolveStringResponse> {
397
- constructor();
398
- create(value?: PartialMessage<ResolveStringResponse>): ResolveStringResponse;
399
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveStringResponse): ResolveStringResponse;
400
- internalBinaryWrite(message: ResolveStringResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
401
- }
402
- /**
403
- * @generated MessageType for protobuf message schema.v1.ResolveStringResponse
404
- */
405
- export declare const ResolveStringResponse: ResolveStringResponse$Type;
406
- declare class ResolveFloatRequest$Type extends MessageType<ResolveFloatRequest> {
407
- constructor();
408
- create(value?: PartialMessage<ResolveFloatRequest>): ResolveFloatRequest;
409
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveFloatRequest): ResolveFloatRequest;
410
- internalBinaryWrite(message: ResolveFloatRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
411
- }
412
- /**
413
- * @generated MessageType for protobuf message schema.v1.ResolveFloatRequest
414
- */
415
- export declare const ResolveFloatRequest: ResolveFloatRequest$Type;
416
- declare class ResolveFloatResponse$Type extends MessageType<ResolveFloatResponse> {
417
- constructor();
418
- create(value?: PartialMessage<ResolveFloatResponse>): ResolveFloatResponse;
419
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveFloatResponse): ResolveFloatResponse;
420
- internalBinaryWrite(message: ResolveFloatResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
421
- }
422
- /**
423
- * @generated MessageType for protobuf message schema.v1.ResolveFloatResponse
424
- */
425
- export declare const ResolveFloatResponse: ResolveFloatResponse$Type;
426
- declare class ResolveIntRequest$Type extends MessageType<ResolveIntRequest> {
427
- constructor();
428
- create(value?: PartialMessage<ResolveIntRequest>): ResolveIntRequest;
429
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveIntRequest): ResolveIntRequest;
430
- internalBinaryWrite(message: ResolveIntRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
431
- }
432
- /**
433
- * @generated MessageType for protobuf message schema.v1.ResolveIntRequest
434
- */
435
- export declare const ResolveIntRequest: ResolveIntRequest$Type;
436
- declare class ResolveIntResponse$Type extends MessageType<ResolveIntResponse> {
437
- constructor();
438
- create(value?: PartialMessage<ResolveIntResponse>): ResolveIntResponse;
439
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveIntResponse): ResolveIntResponse;
440
- internalBinaryWrite(message: ResolveIntResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
441
- }
442
- /**
443
- * @generated MessageType for protobuf message schema.v1.ResolveIntResponse
444
- */
445
- export declare const ResolveIntResponse: ResolveIntResponse$Type;
446
- declare class ResolveObjectRequest$Type extends MessageType<ResolveObjectRequest> {
447
- constructor();
448
- create(value?: PartialMessage<ResolveObjectRequest>): ResolveObjectRequest;
449
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveObjectRequest): ResolveObjectRequest;
450
- internalBinaryWrite(message: ResolveObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
451
- }
452
- /**
453
- * @generated MessageType for protobuf message schema.v1.ResolveObjectRequest
454
- */
455
- export declare const ResolveObjectRequest: ResolveObjectRequest$Type;
456
- declare class ResolveObjectResponse$Type extends MessageType<ResolveObjectResponse> {
457
- constructor();
458
- create(value?: PartialMessage<ResolveObjectResponse>): ResolveObjectResponse;
459
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveObjectResponse): ResolveObjectResponse;
460
- internalBinaryWrite(message: ResolveObjectResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
461
- }
462
- /**
463
- * @generated MessageType for protobuf message schema.v1.ResolveObjectResponse
464
- */
465
- export declare const ResolveObjectResponse: ResolveObjectResponse$Type;
466
- declare class EventStreamResponse$Type extends MessageType<EventStreamResponse> {
467
- constructor();
468
- create(value?: PartialMessage<EventStreamResponse>): EventStreamResponse;
469
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventStreamResponse): EventStreamResponse;
470
- internalBinaryWrite(message: EventStreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
471
- }
472
- /**
473
- * @generated MessageType for protobuf message schema.v1.EventStreamResponse
474
- */
475
- export declare const EventStreamResponse: EventStreamResponse$Type;
476
- declare class EventStreamRequest$Type extends MessageType<EventStreamRequest> {
477
- constructor();
478
- create(value?: PartialMessage<EventStreamRequest>): EventStreamRequest;
479
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventStreamRequest): EventStreamRequest;
480
- internalBinaryWrite(message: EventStreamRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
481
- }
482
- /**
483
- * @generated MessageType for protobuf message schema.v1.EventStreamRequest
484
- */
485
- export declare const EventStreamRequest: EventStreamRequest$Type;
486
- /**
487
- * @generated ServiceType for protobuf service schema.v1.Service
488
- */
489
- export declare const Service: ServiceType;
490
- export {};
1
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
2
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
3
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
4
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
6
+ import type { PartialMessage } from "@protobuf-ts/runtime";
7
+ import { MessageType } from "@protobuf-ts/runtime";
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
+ }
86
+ /**
87
+ * Request body for boolean flag evaluation, used by the ResolveBoolean rpc.
88
+ *
89
+ * @generated from protobuf message schema.v1.ResolveBooleanRequest
90
+ */
91
+ export interface ResolveBooleanRequest {
92
+ /**
93
+ * Flag key of the requested flag.
94
+ *
95
+ * @generated from protobuf field: string flag_key = 1;
96
+ */
97
+ flagKey: string;
98
+ /**
99
+ * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
100
+ *
101
+ * @generated from protobuf field: google.protobuf.Struct context = 2;
102
+ */
103
+ context?: Struct;
104
+ }
105
+ /**
106
+ * Response body for boolean flag evaluation. used by the ResolveBoolean rpc.
107
+ *
108
+ * @generated from protobuf message schema.v1.ResolveBooleanResponse
109
+ */
110
+ export interface ResolveBooleanResponse {
111
+ /**
112
+ * The response value of the boolean flag evaluation, will be unset in the case of error.
113
+ *
114
+ * @generated from protobuf field: bool value = 1;
115
+ */
116
+ value: boolean;
117
+ /**
118
+ * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
119
+ *
120
+ * @generated from protobuf field: string reason = 2;
121
+ */
122
+ reason: string;
123
+ /**
124
+ * The variant name of the returned flag value.
125
+ *
126
+ * @generated from protobuf field: string variant = 3;
127
+ */
128
+ variant: string;
129
+ }
130
+ /**
131
+ * Request body for string flag evaluation, used by the ResolveString rpc.
132
+ *
133
+ * @generated from protobuf message schema.v1.ResolveStringRequest
134
+ */
135
+ export interface ResolveStringRequest {
136
+ /**
137
+ * Flag key of the requested flag.
138
+ *
139
+ * @generated from protobuf field: string flag_key = 1;
140
+ */
141
+ flagKey: string;
142
+ /**
143
+ * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
144
+ *
145
+ * @generated from protobuf field: google.protobuf.Struct context = 2;
146
+ */
147
+ context?: Struct;
148
+ }
149
+ /**
150
+ * Response body for string flag evaluation. used by the ResolveString rpc.
151
+ *
152
+ * @generated from protobuf message schema.v1.ResolveStringResponse
153
+ */
154
+ export interface ResolveStringResponse {
155
+ /**
156
+ * The response value of the string flag evaluation, will be unset in the case of error.
157
+ *
158
+ * @generated from protobuf field: string value = 1;
159
+ */
160
+ value: string;
161
+ /**
162
+ * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
163
+ *
164
+ * @generated from protobuf field: string reason = 2;
165
+ */
166
+ reason: string;
167
+ /**
168
+ * The variant name of the returned flag value.
169
+ *
170
+ * @generated from protobuf field: string variant = 3;
171
+ */
172
+ variant: string;
173
+ }
174
+ /**
175
+ * Request body for float flag evaluation, used by the ResolveFloat rpc.
176
+ *
177
+ * @generated from protobuf message schema.v1.ResolveFloatRequest
178
+ */
179
+ export interface ResolveFloatRequest {
180
+ /**
181
+ * Flag key of the requested flag.
182
+ *
183
+ * @generated from protobuf field: string flag_key = 1;
184
+ */
185
+ flagKey: string;
186
+ /**
187
+ * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
188
+ *
189
+ * @generated from protobuf field: google.protobuf.Struct context = 2;
190
+ */
191
+ context?: Struct;
192
+ }
193
+ /**
194
+ * Response body for float flag evaluation. used by the ResolveFloat rpc.
195
+ *
196
+ * @generated from protobuf message schema.v1.ResolveFloatResponse
197
+ */
198
+ export interface ResolveFloatResponse {
199
+ /**
200
+ * The response value of the float flag evaluation, will be empty in the case of error.
201
+ *
202
+ * @generated from protobuf field: double value = 1;
203
+ */
204
+ value: number;
205
+ /**
206
+ * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
207
+ *
208
+ * @generated from protobuf field: string reason = 2;
209
+ */
210
+ reason: string;
211
+ /**
212
+ * The variant name of the returned flag value.
213
+ *
214
+ * @generated from protobuf field: string variant = 3;
215
+ */
216
+ variant: string;
217
+ }
218
+ /**
219
+ * Request body for int flag evaluation, used by the ResolveInt rpc.
220
+ *
221
+ * @generated from protobuf message schema.v1.ResolveIntRequest
222
+ */
223
+ export interface ResolveIntRequest {
224
+ /**
225
+ * Flag key of the requested flag.
226
+ *
227
+ * @generated from protobuf field: string flag_key = 1;
228
+ */
229
+ flagKey: string;
230
+ /**
231
+ * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
232
+ *
233
+ * @generated from protobuf field: google.protobuf.Struct context = 2;
234
+ */
235
+ context?: Struct;
236
+ }
237
+ /**
238
+ * Response body for int flag evaluation. used by the ResolveInt rpc.
239
+ *
240
+ * @generated from protobuf message schema.v1.ResolveIntResponse
241
+ */
242
+ export interface ResolveIntResponse {
243
+ /**
244
+ * The response value of the int flag evaluation, will be unset in the case of error.
245
+ *
246
+ * @generated from protobuf field: int64 value = 1;
247
+ */
248
+ value: string;
249
+ /**
250
+ * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
251
+ *
252
+ * @generated from protobuf field: string reason = 2;
253
+ */
254
+ reason: string;
255
+ /**
256
+ * The variant name of the returned flag value.
257
+ *
258
+ * @generated from protobuf field: string variant = 3;
259
+ */
260
+ variant: string;
261
+ }
262
+ /**
263
+ * Request body for object flag evaluation, used by the ResolveObject rpc.
264
+ *
265
+ * @generated from protobuf message schema.v1.ResolveObjectRequest
266
+ */
267
+ export interface ResolveObjectRequest {
268
+ /**
269
+ * Flag key of the requested flag.
270
+ *
271
+ * @generated from protobuf field: string flag_key = 1;
272
+ */
273
+ flagKey: string;
274
+ /**
275
+ * Object structure describing the EvaluationContext used in the flag evaluation, see https://docs.openfeature.dev/docs/reference/concepts/evaluation-context
276
+ *
277
+ * @generated from protobuf field: google.protobuf.Struct context = 2;
278
+ */
279
+ context?: Struct;
280
+ }
281
+ /**
282
+ * Response body for object flag evaluation. used by the ResolveObject rpc.
283
+ *
284
+ * @generated from protobuf message schema.v1.ResolveObjectResponse
285
+ */
286
+ export interface ResolveObjectResponse {
287
+ /**
288
+ * The response value of the object flag evaluation, will be unset in the case of error.
289
+ *
290
+ * NOTE: This structure will need to be decoded from google/protobuf/struct.proto before it is returned to the SDK
291
+ *
292
+ * @generated from protobuf field: google.protobuf.Struct value = 1;
293
+ */
294
+ value?: Struct;
295
+ /**
296
+ * The reason for the given return value, see https://docs.openfeature.dev/docs/specification/types#resolution-details
297
+ *
298
+ * @generated from protobuf field: string reason = 2;
299
+ */
300
+ reason: string;
301
+ /**
302
+ * The variant name of the returned flag value.
303
+ *
304
+ * @generated from protobuf field: string variant = 3;
305
+ */
306
+ variant: string;
307
+ }
308
+ /**
309
+ * Response body for the EventStream stream response
310
+ *
311
+ * @generated from protobuf message schema.v1.EventStreamResponse
312
+ */
313
+ export interface EventStreamResponse {
314
+ /**
315
+ * String key indicating the type of event that is being received, for example, provider_ready or configuration_change
316
+ *
317
+ * @generated from protobuf field: string type = 1;
318
+ */
319
+ type: string;
320
+ /**
321
+ * Object structure for use when sending relevant metadata to provide context to the event.
322
+ * Can be left unset when it is not required.
323
+ *
324
+ * @generated from protobuf field: google.protobuf.Struct data = 2;
325
+ */
326
+ data?: Struct;
327
+ }
328
+ /**
329
+ * Empty stream request body
330
+ *
331
+ * @generated from protobuf message schema.v1.EventStreamRequest
332
+ */
333
+ export interface EventStreamRequest {
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;
366
+ declare class ResolveBooleanRequest$Type extends MessageType<ResolveBooleanRequest> {
367
+ constructor();
368
+ create(value?: PartialMessage<ResolveBooleanRequest>): ResolveBooleanRequest;
369
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveBooleanRequest): ResolveBooleanRequest;
370
+ internalBinaryWrite(message: ResolveBooleanRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
371
+ }
372
+ /**
373
+ * @generated MessageType for protobuf message schema.v1.ResolveBooleanRequest
374
+ */
375
+ export declare const ResolveBooleanRequest: ResolveBooleanRequest$Type;
376
+ declare class ResolveBooleanResponse$Type extends MessageType<ResolveBooleanResponse> {
377
+ constructor();
378
+ create(value?: PartialMessage<ResolveBooleanResponse>): ResolveBooleanResponse;
379
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveBooleanResponse): ResolveBooleanResponse;
380
+ internalBinaryWrite(message: ResolveBooleanResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
381
+ }
382
+ /**
383
+ * @generated MessageType for protobuf message schema.v1.ResolveBooleanResponse
384
+ */
385
+ export declare const ResolveBooleanResponse: ResolveBooleanResponse$Type;
386
+ declare class ResolveStringRequest$Type extends MessageType<ResolveStringRequest> {
387
+ constructor();
388
+ create(value?: PartialMessage<ResolveStringRequest>): ResolveStringRequest;
389
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveStringRequest): ResolveStringRequest;
390
+ internalBinaryWrite(message: ResolveStringRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
391
+ }
392
+ /**
393
+ * @generated MessageType for protobuf message schema.v1.ResolveStringRequest
394
+ */
395
+ export declare const ResolveStringRequest: ResolveStringRequest$Type;
396
+ declare class ResolveStringResponse$Type extends MessageType<ResolveStringResponse> {
397
+ constructor();
398
+ create(value?: PartialMessage<ResolveStringResponse>): ResolveStringResponse;
399
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveStringResponse): ResolveStringResponse;
400
+ internalBinaryWrite(message: ResolveStringResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
401
+ }
402
+ /**
403
+ * @generated MessageType for protobuf message schema.v1.ResolveStringResponse
404
+ */
405
+ export declare const ResolveStringResponse: ResolveStringResponse$Type;
406
+ declare class ResolveFloatRequest$Type extends MessageType<ResolveFloatRequest> {
407
+ constructor();
408
+ create(value?: PartialMessage<ResolveFloatRequest>): ResolveFloatRequest;
409
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveFloatRequest): ResolveFloatRequest;
410
+ internalBinaryWrite(message: ResolveFloatRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
411
+ }
412
+ /**
413
+ * @generated MessageType for protobuf message schema.v1.ResolveFloatRequest
414
+ */
415
+ export declare const ResolveFloatRequest: ResolveFloatRequest$Type;
416
+ declare class ResolveFloatResponse$Type extends MessageType<ResolveFloatResponse> {
417
+ constructor();
418
+ create(value?: PartialMessage<ResolveFloatResponse>): ResolveFloatResponse;
419
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveFloatResponse): ResolveFloatResponse;
420
+ internalBinaryWrite(message: ResolveFloatResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
421
+ }
422
+ /**
423
+ * @generated MessageType for protobuf message schema.v1.ResolveFloatResponse
424
+ */
425
+ export declare const ResolveFloatResponse: ResolveFloatResponse$Type;
426
+ declare class ResolveIntRequest$Type extends MessageType<ResolveIntRequest> {
427
+ constructor();
428
+ create(value?: PartialMessage<ResolveIntRequest>): ResolveIntRequest;
429
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveIntRequest): ResolveIntRequest;
430
+ internalBinaryWrite(message: ResolveIntRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
431
+ }
432
+ /**
433
+ * @generated MessageType for protobuf message schema.v1.ResolveIntRequest
434
+ */
435
+ export declare const ResolveIntRequest: ResolveIntRequest$Type;
436
+ declare class ResolveIntResponse$Type extends MessageType<ResolveIntResponse> {
437
+ constructor();
438
+ create(value?: PartialMessage<ResolveIntResponse>): ResolveIntResponse;
439
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveIntResponse): ResolveIntResponse;
440
+ internalBinaryWrite(message: ResolveIntResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
441
+ }
442
+ /**
443
+ * @generated MessageType for protobuf message schema.v1.ResolveIntResponse
444
+ */
445
+ export declare const ResolveIntResponse: ResolveIntResponse$Type;
446
+ declare class ResolveObjectRequest$Type extends MessageType<ResolveObjectRequest> {
447
+ constructor();
448
+ create(value?: PartialMessage<ResolveObjectRequest>): ResolveObjectRequest;
449
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveObjectRequest): ResolveObjectRequest;
450
+ internalBinaryWrite(message: ResolveObjectRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
451
+ }
452
+ /**
453
+ * @generated MessageType for protobuf message schema.v1.ResolveObjectRequest
454
+ */
455
+ export declare const ResolveObjectRequest: ResolveObjectRequest$Type;
456
+ declare class ResolveObjectResponse$Type extends MessageType<ResolveObjectResponse> {
457
+ constructor();
458
+ create(value?: PartialMessage<ResolveObjectResponse>): ResolveObjectResponse;
459
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResolveObjectResponse): ResolveObjectResponse;
460
+ internalBinaryWrite(message: ResolveObjectResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
461
+ }
462
+ /**
463
+ * @generated MessageType for protobuf message schema.v1.ResolveObjectResponse
464
+ */
465
+ export declare const ResolveObjectResponse: ResolveObjectResponse$Type;
466
+ declare class EventStreamResponse$Type extends MessageType<EventStreamResponse> {
467
+ constructor();
468
+ create(value?: PartialMessage<EventStreamResponse>): EventStreamResponse;
469
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventStreamResponse): EventStreamResponse;
470
+ internalBinaryWrite(message: EventStreamResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
471
+ }
472
+ /**
473
+ * @generated MessageType for protobuf message schema.v1.EventStreamResponse
474
+ */
475
+ export declare const EventStreamResponse: EventStreamResponse$Type;
476
+ declare class EventStreamRequest$Type extends MessageType<EventStreamRequest> {
477
+ constructor();
478
+ create(value?: PartialMessage<EventStreamRequest>): EventStreamRequest;
479
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EventStreamRequest): EventStreamRequest;
480
+ internalBinaryWrite(message: EventStreamRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
481
+ }
482
+ /**
483
+ * @generated MessageType for protobuf message schema.v1.EventStreamRequest
484
+ */
485
+ export declare const EventStreamRequest: EventStreamRequest$Type;
486
+ /**
487
+ * @generated ServiceType for protobuf service schema.v1.Service
488
+ */
489
+ export declare const Service: ServiceType;
490
+ export {};