@openfeature/flagd-provider 0.13.0 → 0.13.2

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,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { CallOptions, ChannelCredentials, Client, ClientOptions, ClientReadableStream, ClientUnaryCall, handleServerStreamingCall, handleUnaryCall, Metadata, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
3
2
  import _m0 from "protobufjs/minimal";
4
3
  export declare const protobufPackage = "flagd.sync.v1";
@@ -71,108 +70,48 @@ export declare const SyncFlagsRequest: {
71
70
  decode(input: _m0.Reader | Uint8Array, length?: number): SyncFlagsRequest;
72
71
  fromJSON(object: any): SyncFlagsRequest;
73
72
  toJSON(message: SyncFlagsRequest): unknown;
74
- create<I extends {
75
- providerId?: string | undefined;
76
- selector?: string | undefined;
77
- } & {
78
- providerId?: string | undefined;
79
- selector?: string | undefined;
80
- } & { [K in Exclude<keyof I, keyof SyncFlagsRequest>]: never; }>(base?: I): SyncFlagsRequest;
81
- fromPartial<I_1 extends {
82
- providerId?: string | undefined;
83
- selector?: string | undefined;
84
- } & {
85
- providerId?: string | undefined;
86
- selector?: string | undefined;
87
- } & { [K_1 in Exclude<keyof I_1, keyof SyncFlagsRequest>]: never; }>(object: I_1): SyncFlagsRequest;
73
+ create<I extends Exact<DeepPartial<SyncFlagsRequest>, I>>(base?: I): SyncFlagsRequest;
74
+ fromPartial<I extends Exact<DeepPartial<SyncFlagsRequest>, I>>(object: I): SyncFlagsRequest;
88
75
  };
89
76
  export declare const SyncFlagsResponse: {
90
77
  encode(message: SyncFlagsResponse, writer?: _m0.Writer): _m0.Writer;
91
78
  decode(input: _m0.Reader | Uint8Array, length?: number): SyncFlagsResponse;
92
79
  fromJSON(object: any): SyncFlagsResponse;
93
80
  toJSON(message: SyncFlagsResponse): unknown;
94
- create<I extends {
95
- flagConfiguration?: string | undefined;
96
- } & {
97
- flagConfiguration?: string | undefined;
98
- } & { [K in Exclude<keyof I, "flagConfiguration">]: never; }>(base?: I): SyncFlagsResponse;
99
- fromPartial<I_1 extends {
100
- flagConfiguration?: string | undefined;
101
- } & {
102
- flagConfiguration?: string | undefined;
103
- } & { [K_1 in Exclude<keyof I_1, "flagConfiguration">]: never; }>(object: I_1): SyncFlagsResponse;
81
+ create<I extends Exact<DeepPartial<SyncFlagsResponse>, I>>(base?: I): SyncFlagsResponse;
82
+ fromPartial<I extends Exact<DeepPartial<SyncFlagsResponse>, I>>(object: I): SyncFlagsResponse;
104
83
  };
105
84
  export declare const FetchAllFlagsRequest: {
106
85
  encode(message: FetchAllFlagsRequest, writer?: _m0.Writer): _m0.Writer;
107
86
  decode(input: _m0.Reader | Uint8Array, length?: number): FetchAllFlagsRequest;
108
87
  fromJSON(object: any): FetchAllFlagsRequest;
109
88
  toJSON(message: FetchAllFlagsRequest): unknown;
110
- create<I extends {
111
- providerId?: string | undefined;
112
- selector?: string | undefined;
113
- } & {
114
- providerId?: string | undefined;
115
- selector?: string | undefined;
116
- } & { [K in Exclude<keyof I, keyof FetchAllFlagsRequest>]: never; }>(base?: I): FetchAllFlagsRequest;
117
- fromPartial<I_1 extends {
118
- providerId?: string | undefined;
119
- selector?: string | undefined;
120
- } & {
121
- providerId?: string | undefined;
122
- selector?: string | undefined;
123
- } & { [K_1 in Exclude<keyof I_1, keyof FetchAllFlagsRequest>]: never; }>(object: I_1): FetchAllFlagsRequest;
89
+ create<I extends Exact<DeepPartial<FetchAllFlagsRequest>, I>>(base?: I): FetchAllFlagsRequest;
90
+ fromPartial<I extends Exact<DeepPartial<FetchAllFlagsRequest>, I>>(object: I): FetchAllFlagsRequest;
124
91
  };
125
92
  export declare const FetchAllFlagsResponse: {
126
93
  encode(message: FetchAllFlagsResponse, writer?: _m0.Writer): _m0.Writer;
127
94
  decode(input: _m0.Reader | Uint8Array, length?: number): FetchAllFlagsResponse;
128
95
  fromJSON(object: any): FetchAllFlagsResponse;
129
96
  toJSON(message: FetchAllFlagsResponse): unknown;
130
- create<I extends {
131
- flagConfiguration?: string | undefined;
132
- } & {
133
- flagConfiguration?: string | undefined;
134
- } & { [K in Exclude<keyof I, "flagConfiguration">]: never; }>(base?: I): FetchAllFlagsResponse;
135
- fromPartial<I_1 extends {
136
- flagConfiguration?: string | undefined;
137
- } & {
138
- flagConfiguration?: string | undefined;
139
- } & { [K_1 in Exclude<keyof I_1, "flagConfiguration">]: never; }>(object: I_1): FetchAllFlagsResponse;
97
+ create<I extends Exact<DeepPartial<FetchAllFlagsResponse>, I>>(base?: I): FetchAllFlagsResponse;
98
+ fromPartial<I extends Exact<DeepPartial<FetchAllFlagsResponse>, I>>(object: I): FetchAllFlagsResponse;
140
99
  };
141
100
  export declare const GetMetadataRequest: {
142
101
  encode(_: GetMetadataRequest, writer?: _m0.Writer): _m0.Writer;
143
102
  decode(input: _m0.Reader | Uint8Array, length?: number): GetMetadataRequest;
144
103
  fromJSON(_: any): GetMetadataRequest;
145
104
  toJSON(_: GetMetadataRequest): unknown;
146
- create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): GetMetadataRequest;
147
- fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): GetMetadataRequest;
105
+ create<I extends Exact<DeepPartial<GetMetadataRequest>, I>>(base?: I): GetMetadataRequest;
106
+ fromPartial<I extends Exact<DeepPartial<GetMetadataRequest>, I>>(_: I): GetMetadataRequest;
148
107
  };
149
108
  export declare const GetMetadataResponse: {
150
109
  encode(message: GetMetadataResponse, writer?: _m0.Writer): _m0.Writer;
151
110
  decode(input: _m0.Reader | Uint8Array, length?: number): GetMetadataResponse;
152
111
  fromJSON(object: any): GetMetadataResponse;
153
112
  toJSON(message: GetMetadataResponse): unknown;
154
- create<I extends {
155
- metadata?: {
156
- [x: string]: any;
157
- } | undefined;
158
- } & {
159
- metadata?: ({
160
- [x: string]: any;
161
- } & {
162
- [x: string]: any;
163
- } & { [K in Exclude<keyof I["metadata"], string | number>]: never; }) | undefined;
164
- } & { [K_1 in Exclude<keyof I, "metadata">]: never; }>(base?: I): GetMetadataResponse;
165
- fromPartial<I_1 extends {
166
- metadata?: {
167
- [x: string]: any;
168
- } | undefined;
169
- } & {
170
- metadata?: ({
171
- [x: string]: any;
172
- } & {
173
- [x: string]: any;
174
- } & { [K_2 in Exclude<keyof I_1["metadata"], string | number>]: never; }) | undefined;
175
- } & { [K_3 in Exclude<keyof I_1, "metadata">]: never; }>(object: I_1): GetMetadataResponse;
113
+ create<I extends Exact<DeepPartial<GetMetadataResponse>, I>>(base?: I): GetMetadataResponse;
114
+ fromPartial<I extends Exact<DeepPartial<GetMetadataResponse>, I>>(object: I): GetMetadataResponse;
176
115
  };
177
116
  /** FlagService implements a server streaming to provide realtime flag configurations */
178
117
  export type FlagSyncServiceService = typeof FlagSyncServiceService;
@@ -181,27 +120,27 @@ export declare const FlagSyncServiceService: {
181
120
  readonly path: "/flagd.sync.v1.FlagSyncService/SyncFlags";
182
121
  readonly requestStream: false;
183
122
  readonly responseStream: true;
184
- readonly requestSerialize: (value: SyncFlagsRequest) => Buffer;
123
+ readonly requestSerialize: (value: SyncFlagsRequest) => Buffer<ArrayBuffer>;
185
124
  readonly requestDeserialize: (value: Buffer) => SyncFlagsRequest;
186
- readonly responseSerialize: (value: SyncFlagsResponse) => Buffer;
125
+ readonly responseSerialize: (value: SyncFlagsResponse) => Buffer<ArrayBuffer>;
187
126
  readonly responseDeserialize: (value: Buffer) => SyncFlagsResponse;
188
127
  };
189
128
  readonly fetchAllFlags: {
190
129
  readonly path: "/flagd.sync.v1.FlagSyncService/FetchAllFlags";
191
130
  readonly requestStream: false;
192
131
  readonly responseStream: false;
193
- readonly requestSerialize: (value: FetchAllFlagsRequest) => Buffer;
132
+ readonly requestSerialize: (value: FetchAllFlagsRequest) => Buffer<ArrayBuffer>;
194
133
  readonly requestDeserialize: (value: Buffer) => FetchAllFlagsRequest;
195
- readonly responseSerialize: (value: FetchAllFlagsResponse) => Buffer;
134
+ readonly responseSerialize: (value: FetchAllFlagsResponse) => Buffer<ArrayBuffer>;
196
135
  readonly responseDeserialize: (value: Buffer) => FetchAllFlagsResponse;
197
136
  };
198
137
  readonly getMetadata: {
199
138
  readonly path: "/flagd.sync.v1.FlagSyncService/GetMetadata";
200
139
  readonly requestStream: false;
201
140
  readonly responseStream: false;
202
- readonly requestSerialize: (value: GetMetadataRequest) => Buffer;
141
+ readonly requestSerialize: (value: GetMetadataRequest) => Buffer<ArrayBuffer>;
203
142
  readonly requestDeserialize: (value: Buffer) => GetMetadataRequest;
204
- readonly responseSerialize: (value: GetMetadataResponse) => Buffer;
143
+ readonly responseSerialize: (value: GetMetadataResponse) => Buffer<ArrayBuffer>;
205
144
  readonly responseDeserialize: (value: Buffer) => GetMetadataResponse;
206
145
  };
207
146
  };
@@ -71,28 +71,8 @@ export declare const Struct: {
71
71
  decode(input: _m0.Reader | Uint8Array, length?: number): Struct;
72
72
  fromJSON(object: any): Struct;
73
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): 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;
74
+ create<I extends Exact<DeepPartial<Struct>, I>>(base?: I): Struct;
75
+ fromPartial<I extends Exact<DeepPartial<Struct>, I>>(object: I): Struct;
96
76
  wrap(object: {
97
77
  [key: string]: any;
98
78
  } | undefined): Struct;
@@ -105,68 +85,16 @@ export declare const Struct_FieldsEntry: {
105
85
  decode(input: _m0.Reader | Uint8Array, length?: number): Struct_FieldsEntry;
106
86
  fromJSON(object: any): Struct_FieldsEntry;
107
87
  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): 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;
88
+ create<I extends Exact<DeepPartial<Struct_FieldsEntry>, I>>(base?: I): Struct_FieldsEntry;
89
+ fromPartial<I extends Exact<DeepPartial<Struct_FieldsEntry>, I>>(object: I): Struct_FieldsEntry;
122
90
  };
123
91
  export declare const Value: {
124
92
  encode(message: Value, writer?: _m0.Writer): _m0.Writer;
125
93
  decode(input: _m0.Reader | Uint8Array, length?: number): Value;
126
94
  fromJSON(object: any): Value;
127
95
  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): 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;
96
+ create<I extends Exact<DeepPartial<Value>, I>>(base?: I): Value;
97
+ fromPartial<I extends Exact<DeepPartial<Value>, I>>(object: I): Value;
170
98
  wrap(value: any): Value;
171
99
  unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined;
172
100
  };
@@ -175,16 +103,8 @@ export declare const ListValue: {
175
103
  decode(input: _m0.Reader | Uint8Array, length?: number): ListValue;
176
104
  fromJSON(object: any): ListValue;
177
105
  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): 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;
106
+ create<I extends Exact<DeepPartial<ListValue>, I>>(base?: I): ListValue;
107
+ fromPartial<I extends Exact<DeepPartial<ListValue>, I>>(object: I): ListValue;
188
108
  wrap(array: Array<any> | undefined): ListValue;
189
109
  unwrap(message: ListValue): Array<any>;
190
110
  };