@openfeature/flagd-provider 0.7.7 → 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 +5532 -3979
- package/index.js +5529 -3956
- package/package.json +2 -3
- package/src/lib/flagd-provider.d.ts +15 -8
- package/src/lib/service/grpc/service.d.ts +5 -4
- package/src/lib/service/service.d.ts +2 -1
- package/src/proto/ts/google/protobuf/struct.d.ts +169 -152
- package/src/proto/ts/schema/v1/schema.d.ts +882 -423
- package/src/proto/ts/sync/v1/sync_service.d.ts +156 -133
- 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,15 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
6
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { CallOptions, ChannelCredentials, Client, ClientOptions, ClientReadableStream, ClientUnaryCall, handleServerStreamingCall, handleUnaryCall, Metadata, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export declare const protobufPackage = "sync.v1";
|
|
8
5
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @generated from protobuf message sync.v1.SyncFlagsRequest
|
|
6
|
+
* SyncState conveys the state of the payload. These states are related to flagd isync.go type definitions but
|
|
7
|
+
* contains extras to optimize grpc use case. Refer - https://github.com/open-feature/flagd/blob/main/pkg/sync/isync.go
|
|
12
8
|
*/
|
|
9
|
+
export declare enum SyncState {
|
|
10
|
+
/** SYNC_STATE_UNSPECIFIED - Value is ignored by the listening flagd */
|
|
11
|
+
SYNC_STATE_UNSPECIFIED = 0,
|
|
12
|
+
/**
|
|
13
|
+
* SYNC_STATE_ALL - All the flags matching the request. This is the default response and other states can be ignored
|
|
14
|
+
* by the implementation. Flagd internally replaces all existing flags for this response state.
|
|
15
|
+
*/
|
|
16
|
+
SYNC_STATE_ALL = 1,
|
|
17
|
+
/** SYNC_STATE_ADD - Convey an addition of a flag. Flagd internally handles this by combining new flags with existing ones */
|
|
18
|
+
SYNC_STATE_ADD = 2,
|
|
19
|
+
/**
|
|
20
|
+
* SYNC_STATE_UPDATE - Convey an update of a flag. Flagd internally attempts to update if the updated flag already exist OR if it does not,
|
|
21
|
+
* it will get added
|
|
22
|
+
*/
|
|
23
|
+
SYNC_STATE_UPDATE = 3,
|
|
24
|
+
/** SYNC_STATE_DELETE - Convey a deletion of a flag. Flagd internally removes the flag */
|
|
25
|
+
SYNC_STATE_DELETE = 4,
|
|
26
|
+
/** SYNC_STATE_PING - Optional server ping to check client connectivity. Handling is ignored by flagd and is to merely support live check */
|
|
27
|
+
SYNC_STATE_PING = 5,
|
|
28
|
+
UNRECOGNIZED = -1
|
|
29
|
+
}
|
|
30
|
+
export declare function syncStateFromJSON(object: any): SyncState;
|
|
31
|
+
export declare function syncStateToJSON(object: SyncState): string;
|
|
32
|
+
/** SyncFlagsRequest is the request initiating the sever-streaming rpc. Flagd sends this request, acting as the client */
|
|
13
33
|
export interface SyncFlagsRequest {
|
|
14
34
|
/**
|
|
15
35
|
* Optional: A unique identifier for flagd(grpc client) initiating the request. The server implementations may
|
|
@@ -17,8 +37,6 @@ export interface SyncFlagsRequest {
|
|
|
17
37
|
* flag configurations that it can expose to this request. This field is intended to be optional. However server
|
|
18
38
|
* implementations may enforce it.
|
|
19
39
|
* ex:- provider_id: flagd-weatherapp-sidecar
|
|
20
|
-
*
|
|
21
|
-
* @generated from protobuf field: string provider_id = 1;
|
|
22
40
|
*/
|
|
23
41
|
providerId: string;
|
|
24
42
|
/**
|
|
@@ -26,36 +44,20 @@ export interface SyncFlagsRequest {
|
|
|
26
44
|
* flag configurations from a collection, select the source of the flag or combine this to any desired underlying
|
|
27
45
|
* filtering mechanism.
|
|
28
46
|
* ex:- selector: 'source=database,app=weatherapp'
|
|
29
|
-
*
|
|
30
|
-
* @generated from protobuf field: string selector = 2;
|
|
31
47
|
*/
|
|
32
48
|
selector: string;
|
|
33
49
|
}
|
|
34
|
-
/**
|
|
35
|
-
* SyncFlagsResponse is the server response containing feature flag configurations and the state
|
|
36
|
-
*
|
|
37
|
-
* @generated from protobuf message sync.v1.SyncFlagsResponse
|
|
38
|
-
*/
|
|
50
|
+
/** SyncFlagsResponse is the server response containing feature flag configurations and the state */
|
|
39
51
|
export interface SyncFlagsResponse {
|
|
40
|
-
/**
|
|
41
|
-
* flagd feature flag configuration. Must be validated to schema - https://raw.githubusercontent.com/open-feature/schemas/main/json/flagd-definitions.json
|
|
42
|
-
*
|
|
43
|
-
* @generated from protobuf field: string flag_configuration = 1;
|
|
44
|
-
*/
|
|
52
|
+
/** flagd feature flag configuration. Must be validated to schema - https://raw.githubusercontent.com/open-feature/schemas/main/json/flagd-definitions.json */
|
|
45
53
|
flagConfiguration: string;
|
|
46
54
|
/**
|
|
47
55
|
* State conveying the operation to be performed by flagd. See the descriptions of SyncState for an explanation of
|
|
48
56
|
* supported values
|
|
49
|
-
*
|
|
50
|
-
* @generated from protobuf field: sync.v1.SyncState state = 2;
|
|
51
57
|
*/
|
|
52
58
|
state: SyncState;
|
|
53
59
|
}
|
|
54
|
-
/**
|
|
55
|
-
* FetchAllFlagsRequest is the request to fetch all flags. Flagd sends this request as the client in order to resync its internal state
|
|
56
|
-
*
|
|
57
|
-
* @generated from protobuf message sync.v1.FetchAllFlagsRequest
|
|
58
|
-
*/
|
|
60
|
+
/** FetchAllFlagsRequest is the request to fetch all flags. Flagd sends this request as the client in order to resync its internal state */
|
|
59
61
|
export interface FetchAllFlagsRequest {
|
|
60
62
|
/**
|
|
61
63
|
* Optional: A unique identifier for flagd(grpc client) initiating the request. The server implementations may
|
|
@@ -63,8 +65,6 @@ export interface FetchAllFlagsRequest {
|
|
|
63
65
|
* flag configurations that it can expose to this request. This field is intended to be optional. However server
|
|
64
66
|
* implementations may enforce it.
|
|
65
67
|
* ex:- provider_id: flagd-weatherapp-sidecar
|
|
66
|
-
*
|
|
67
|
-
* @generated from protobuf field: string provider_id = 1;
|
|
68
68
|
*/
|
|
69
69
|
providerId: string;
|
|
70
70
|
/**
|
|
@@ -72,112 +72,135 @@ export interface FetchAllFlagsRequest {
|
|
|
72
72
|
* flag configurations from a collection, select the source of the flag or combine this to any desired underlying
|
|
73
73
|
* filtering mechanism.
|
|
74
74
|
* ex:- selector: 'source=database,app=weatherapp'
|
|
75
|
-
*
|
|
76
|
-
* @generated from protobuf field: string selector = 2;
|
|
77
75
|
*/
|
|
78
76
|
selector: string;
|
|
79
77
|
}
|
|
80
|
-
/**
|
|
81
|
-
* FetchAllFlagsResponse is the server response containing feature flag configurations
|
|
82
|
-
*
|
|
83
|
-
* @generated from protobuf message sync.v1.FetchAllFlagsResponse
|
|
84
|
-
*/
|
|
78
|
+
/** FetchAllFlagsResponse is the server response containing feature flag configurations */
|
|
85
79
|
export interface FetchAllFlagsResponse {
|
|
86
|
-
/**
|
|
87
|
-
* flagd feature flag configuration. Must be validated to schema - https://raw.githubusercontent.com/open-feature/schemas/main/json/flagd-definitions.json
|
|
88
|
-
*
|
|
89
|
-
* @generated from protobuf field: string flag_configuration = 1;
|
|
90
|
-
*/
|
|
80
|
+
/** flagd feature flag configuration. Must be validated to schema - https://raw.githubusercontent.com/open-feature/schemas/main/json/flagd-definitions.json */
|
|
91
81
|
flagConfiguration: string;
|
|
92
82
|
}
|
|
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
|
-
|
|
83
|
+
export declare const SyncFlagsRequest: {
|
|
84
|
+
encode(message: SyncFlagsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
85
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SyncFlagsRequest;
|
|
86
|
+
fromJSON(object: any): SyncFlagsRequest;
|
|
87
|
+
toJSON(message: SyncFlagsRequest): unknown;
|
|
88
|
+
create<I extends {
|
|
89
|
+
providerId?: string | undefined;
|
|
90
|
+
selector?: string | undefined;
|
|
91
|
+
} & {
|
|
92
|
+
providerId?: string | undefined;
|
|
93
|
+
selector?: string | undefined;
|
|
94
|
+
} & { [K in Exclude<keyof I, keyof SyncFlagsRequest>]: never; }>(base?: I | undefined): SyncFlagsRequest;
|
|
95
|
+
fromPartial<I_1 extends {
|
|
96
|
+
providerId?: string | undefined;
|
|
97
|
+
selector?: string | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
providerId?: string | undefined;
|
|
100
|
+
selector?: string | undefined;
|
|
101
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SyncFlagsRequest>]: never; }>(object: I_1): SyncFlagsRequest;
|
|
102
|
+
};
|
|
103
|
+
export declare const SyncFlagsResponse: {
|
|
104
|
+
encode(message: SyncFlagsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
105
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SyncFlagsResponse;
|
|
106
|
+
fromJSON(object: any): SyncFlagsResponse;
|
|
107
|
+
toJSON(message: SyncFlagsResponse): unknown;
|
|
108
|
+
create<I extends {
|
|
109
|
+
flagConfiguration?: string | undefined;
|
|
110
|
+
state?: SyncState | undefined;
|
|
111
|
+
} & {
|
|
112
|
+
flagConfiguration?: string | undefined;
|
|
113
|
+
state?: SyncState | undefined;
|
|
114
|
+
} & { [K in Exclude<keyof I, keyof SyncFlagsResponse>]: never; }>(base?: I | undefined): SyncFlagsResponse;
|
|
115
|
+
fromPartial<I_1 extends {
|
|
116
|
+
flagConfiguration?: string | undefined;
|
|
117
|
+
state?: SyncState | undefined;
|
|
118
|
+
} & {
|
|
119
|
+
flagConfiguration?: string | undefined;
|
|
120
|
+
state?: SyncState | undefined;
|
|
121
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SyncFlagsResponse>]: never; }>(object: I_1): SyncFlagsResponse;
|
|
122
|
+
};
|
|
123
|
+
export declare const FetchAllFlagsRequest: {
|
|
124
|
+
encode(message: FetchAllFlagsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FetchAllFlagsRequest;
|
|
126
|
+
fromJSON(object: any): FetchAllFlagsRequest;
|
|
127
|
+
toJSON(message: FetchAllFlagsRequest): unknown;
|
|
128
|
+
create<I extends {
|
|
129
|
+
providerId?: string | undefined;
|
|
130
|
+
selector?: string | undefined;
|
|
131
|
+
} & {
|
|
132
|
+
providerId?: string | undefined;
|
|
133
|
+
selector?: string | undefined;
|
|
134
|
+
} & { [K in Exclude<keyof I, keyof FetchAllFlagsRequest>]: never; }>(base?: I | undefined): FetchAllFlagsRequest;
|
|
135
|
+
fromPartial<I_1 extends {
|
|
136
|
+
providerId?: string | undefined;
|
|
137
|
+
selector?: string | undefined;
|
|
138
|
+
} & {
|
|
139
|
+
providerId?: string | undefined;
|
|
140
|
+
selector?: string | undefined;
|
|
141
|
+
} & { [K_1 in Exclude<keyof I_1, keyof FetchAllFlagsRequest>]: never; }>(object: I_1): FetchAllFlagsRequest;
|
|
142
|
+
};
|
|
143
|
+
export declare const FetchAllFlagsResponse: {
|
|
144
|
+
encode(message: FetchAllFlagsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
145
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FetchAllFlagsResponse;
|
|
146
|
+
fromJSON(object: any): FetchAllFlagsResponse;
|
|
147
|
+
toJSON(message: FetchAllFlagsResponse): unknown;
|
|
148
|
+
create<I extends {
|
|
149
|
+
flagConfiguration?: string | undefined;
|
|
150
|
+
} & {
|
|
151
|
+
flagConfiguration?: string | undefined;
|
|
152
|
+
} & { [K in Exclude<keyof I, "flagConfiguration">]: never; }>(base?: I | undefined): FetchAllFlagsResponse;
|
|
153
|
+
fromPartial<I_1 extends {
|
|
154
|
+
flagConfiguration?: string | undefined;
|
|
155
|
+
} & {
|
|
156
|
+
flagConfiguration?: string | undefined;
|
|
157
|
+
} & { [K_1 in Exclude<keyof I_1, "flagConfiguration">]: never; }>(object: I_1): FetchAllFlagsResponse;
|
|
158
|
+
};
|
|
159
|
+
/** FlagService implements a server streaming to provide realtime flag configurations */
|
|
160
|
+
export type FlagSyncServiceService = typeof FlagSyncServiceService;
|
|
161
|
+
export declare const FlagSyncServiceService: {
|
|
162
|
+
readonly syncFlags: {
|
|
163
|
+
readonly path: "/sync.v1.FlagSyncService/SyncFlags";
|
|
164
|
+
readonly requestStream: false;
|
|
165
|
+
readonly responseStream: true;
|
|
166
|
+
readonly requestSerialize: (value: SyncFlagsRequest) => Buffer;
|
|
167
|
+
readonly requestDeserialize: (value: Buffer) => SyncFlagsRequest;
|
|
168
|
+
readonly responseSerialize: (value: SyncFlagsResponse) => Buffer;
|
|
169
|
+
readonly responseDeserialize: (value: Buffer) => SyncFlagsResponse;
|
|
170
|
+
};
|
|
171
|
+
readonly fetchAllFlags: {
|
|
172
|
+
readonly path: "/sync.v1.FlagSyncService/FetchAllFlags";
|
|
173
|
+
readonly requestStream: false;
|
|
174
|
+
readonly responseStream: false;
|
|
175
|
+
readonly requestSerialize: (value: FetchAllFlagsRequest) => Buffer;
|
|
176
|
+
readonly requestDeserialize: (value: Buffer) => FetchAllFlagsRequest;
|
|
177
|
+
readonly responseSerialize: (value: FetchAllFlagsResponse) => Buffer;
|
|
178
|
+
readonly responseDeserialize: (value: Buffer) => FetchAllFlagsResponse;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
export interface FlagSyncServiceServer extends UntypedServiceImplementation {
|
|
182
|
+
syncFlags: handleServerStreamingCall<SyncFlagsRequest, SyncFlagsResponse>;
|
|
183
|
+
fetchAllFlags: handleUnaryCall<FetchAllFlagsRequest, FetchAllFlagsResponse>;
|
|
144
184
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
create(value?: PartialMessage<SyncFlagsResponse>): SyncFlagsResponse;
|
|
152
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SyncFlagsResponse): SyncFlagsResponse;
|
|
153
|
-
internalBinaryWrite(message: SyncFlagsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
185
|
+
export interface FlagSyncServiceClient extends Client {
|
|
186
|
+
syncFlags(request: SyncFlagsRequest, options?: Partial<CallOptions>): ClientReadableStream<SyncFlagsResponse>;
|
|
187
|
+
syncFlags(request: SyncFlagsRequest, metadata?: Metadata, options?: Partial<CallOptions>): ClientReadableStream<SyncFlagsResponse>;
|
|
188
|
+
fetchAllFlags(request: FetchAllFlagsRequest, callback: (error: ServiceError | null, response: FetchAllFlagsResponse) => void): ClientUnaryCall;
|
|
189
|
+
fetchAllFlags(request: FetchAllFlagsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: FetchAllFlagsResponse) => void): ClientUnaryCall;
|
|
190
|
+
fetchAllFlags(request: FetchAllFlagsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: FetchAllFlagsResponse) => void): ClientUnaryCall;
|
|
154
191
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
declare class FetchAllFlagsResponse$Type extends MessageType<FetchAllFlagsResponse> {
|
|
170
|
-
constructor();
|
|
171
|
-
create(value?: PartialMessage<FetchAllFlagsResponse>): FetchAllFlagsResponse;
|
|
172
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetchAllFlagsResponse): FetchAllFlagsResponse;
|
|
173
|
-
internalBinaryWrite(message: FetchAllFlagsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
* @generated MessageType for protobuf message sync.v1.FetchAllFlagsResponse
|
|
177
|
-
*/
|
|
178
|
-
export declare const FetchAllFlagsResponse: FetchAllFlagsResponse$Type;
|
|
179
|
-
/**
|
|
180
|
-
* @generated ServiceType for protobuf service sync.v1.FlagSyncService
|
|
181
|
-
*/
|
|
182
|
-
export declare const FlagSyncService: ServiceType;
|
|
192
|
+
export declare const FlagSyncServiceClient: {
|
|
193
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): FlagSyncServiceClient;
|
|
194
|
+
service: typeof FlagSyncServiceService;
|
|
195
|
+
};
|
|
196
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
197
|
+
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 {} ? {
|
|
198
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
199
|
+
} : Partial<T>;
|
|
200
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
201
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
202
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
203
|
+
} & {
|
|
204
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
205
|
+
};
|
|
183
206
|
export {};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
2
|
-
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
3
|
-
import type { EventStreamResponse } from "./schema";
|
|
4
|
-
import type { EventStreamRequest } from "./schema";
|
|
5
|
-
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import type { ResolveObjectResponse } from "./schema";
|
|
7
|
-
import type { ResolveObjectRequest } from "./schema";
|
|
8
|
-
import type { ResolveIntResponse } from "./schema";
|
|
9
|
-
import type { ResolveIntRequest } from "./schema";
|
|
10
|
-
import type { ResolveFloatResponse } from "./schema";
|
|
11
|
-
import type { ResolveFloatRequest } from "./schema";
|
|
12
|
-
import type { ResolveStringResponse } from "./schema";
|
|
13
|
-
import type { ResolveStringRequest } from "./schema";
|
|
14
|
-
import type { ResolveBooleanResponse } from "./schema";
|
|
15
|
-
import type { ResolveBooleanRequest } from "./schema";
|
|
16
|
-
import type { ResolveAllResponse } from "./schema";
|
|
17
|
-
import type { ResolveAllRequest } from "./schema";
|
|
18
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
19
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
20
|
-
/**
|
|
21
|
-
* Service defines the exposed rpcs of flagd
|
|
22
|
-
*
|
|
23
|
-
* @generated from protobuf service schema.v1.Service
|
|
24
|
-
*/
|
|
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>;
|
|
30
|
-
/**
|
|
31
|
-
* @generated from protobuf rpc: ResolveBoolean(schema.v1.ResolveBooleanRequest) returns (schema.v1.ResolveBooleanResponse);
|
|
32
|
-
*/
|
|
33
|
-
resolveBoolean(input: ResolveBooleanRequest, options?: RpcOptions): UnaryCall<ResolveBooleanRequest, ResolveBooleanResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* @generated from protobuf rpc: ResolveString(schema.v1.ResolveStringRequest) returns (schema.v1.ResolveStringResponse);
|
|
36
|
-
*/
|
|
37
|
-
resolveString(input: ResolveStringRequest, options?: RpcOptions): UnaryCall<ResolveStringRequest, ResolveStringResponse>;
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf rpc: ResolveFloat(schema.v1.ResolveFloatRequest) returns (schema.v1.ResolveFloatResponse);
|
|
40
|
-
*/
|
|
41
|
-
resolveFloat(input: ResolveFloatRequest, options?: RpcOptions): UnaryCall<ResolveFloatRequest, ResolveFloatResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf rpc: ResolveInt(schema.v1.ResolveIntRequest) returns (schema.v1.ResolveIntResponse);
|
|
44
|
-
*/
|
|
45
|
-
resolveInt(input: ResolveIntRequest, options?: RpcOptions): UnaryCall<ResolveIntRequest, ResolveIntResponse>;
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf rpc: ResolveObject(schema.v1.ResolveObjectRequest) returns (schema.v1.ResolveObjectResponse);
|
|
48
|
-
*/
|
|
49
|
-
resolveObject(input: ResolveObjectRequest, options?: RpcOptions): UnaryCall<ResolveObjectRequest, ResolveObjectResponse>;
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf rpc: EventStream(schema.v1.EventStreamRequest) returns (stream schema.v1.EventStreamResponse);
|
|
52
|
-
*/
|
|
53
|
-
eventStream(input: EventStreamRequest, options?: RpcOptions): ServerStreamingCall<EventStreamRequest, EventStreamResponse>;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Service defines the exposed rpcs of flagd
|
|
57
|
-
*
|
|
58
|
-
* @generated from protobuf service schema.v1.Service
|
|
59
|
-
*/
|
|
60
|
-
export declare class ServiceClient implements IServiceClient, ServiceInfo {
|
|
61
|
-
private readonly _transport;
|
|
62
|
-
typeName: string;
|
|
63
|
-
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
64
|
-
options: {
|
|
65
|
-
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
66
|
-
};
|
|
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>;
|
|
72
|
-
/**
|
|
73
|
-
* @generated from protobuf rpc: ResolveBoolean(schema.v1.ResolveBooleanRequest) returns (schema.v1.ResolveBooleanResponse);
|
|
74
|
-
*/
|
|
75
|
-
resolveBoolean(input: ResolveBooleanRequest, options?: RpcOptions): UnaryCall<ResolveBooleanRequest, ResolveBooleanResponse>;
|
|
76
|
-
/**
|
|
77
|
-
* @generated from protobuf rpc: ResolveString(schema.v1.ResolveStringRequest) returns (schema.v1.ResolveStringResponse);
|
|
78
|
-
*/
|
|
79
|
-
resolveString(input: ResolveStringRequest, options?: RpcOptions): UnaryCall<ResolveStringRequest, ResolveStringResponse>;
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf rpc: ResolveFloat(schema.v1.ResolveFloatRequest) returns (schema.v1.ResolveFloatResponse);
|
|
82
|
-
*/
|
|
83
|
-
resolveFloat(input: ResolveFloatRequest, options?: RpcOptions): UnaryCall<ResolveFloatRequest, ResolveFloatResponse>;
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf rpc: ResolveInt(schema.v1.ResolveIntRequest) returns (schema.v1.ResolveIntResponse);
|
|
86
|
-
*/
|
|
87
|
-
resolveInt(input: ResolveIntRequest, options?: RpcOptions): UnaryCall<ResolveIntRequest, ResolveIntResponse>;
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf rpc: ResolveObject(schema.v1.ResolveObjectRequest) returns (schema.v1.ResolveObjectResponse);
|
|
90
|
-
*/
|
|
91
|
-
resolveObject(input: ResolveObjectRequest, options?: RpcOptions): UnaryCall<ResolveObjectRequest, ResolveObjectResponse>;
|
|
92
|
-
/**
|
|
93
|
-
* @generated from protobuf rpc: EventStream(schema.v1.EventStreamRequest) returns (stream schema.v1.EventStreamResponse);
|
|
94
|
-
*/
|
|
95
|
-
eventStream(input: EventStreamRequest, options?: RpcOptions): ServerStreamingCall<EventStreamRequest, EventStreamResponse>;
|
|
96
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
2
|
-
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
3
|
-
import type { FetchAllFlagsResponse } from "./sync_service";
|
|
4
|
-
import type { FetchAllFlagsRequest } from "./sync_service";
|
|
5
|
-
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import type { SyncFlagsResponse } from "./sync_service";
|
|
7
|
-
import type { SyncFlagsRequest } from "./sync_service";
|
|
8
|
-
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
9
|
-
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
10
|
-
/**
|
|
11
|
-
* FlagService implements a server streaming to provide realtime flag configurations
|
|
12
|
-
*
|
|
13
|
-
* @generated from protobuf service sync.v1.FlagSyncService
|
|
14
|
-
*/
|
|
15
|
-
export interface IFlagSyncServiceClient {
|
|
16
|
-
/**
|
|
17
|
-
* @generated from protobuf rpc: SyncFlags(sync.v1.SyncFlagsRequest) returns (stream sync.v1.SyncFlagsResponse);
|
|
18
|
-
*/
|
|
19
|
-
syncFlags(input: SyncFlagsRequest, options?: RpcOptions): ServerStreamingCall<SyncFlagsRequest, SyncFlagsResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* @generated from protobuf rpc: FetchAllFlags(sync.v1.FetchAllFlagsRequest) returns (sync.v1.FetchAllFlagsResponse);
|
|
22
|
-
*/
|
|
23
|
-
fetchAllFlags(input: FetchAllFlagsRequest, options?: RpcOptions): UnaryCall<FetchAllFlagsRequest, FetchAllFlagsResponse>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* FlagService implements a server streaming to provide realtime flag configurations
|
|
27
|
-
*
|
|
28
|
-
* @generated from protobuf service sync.v1.FlagSyncService
|
|
29
|
-
*/
|
|
30
|
-
export declare class FlagSyncServiceClient implements IFlagSyncServiceClient, ServiceInfo {
|
|
31
|
-
private readonly _transport;
|
|
32
|
-
typeName: string;
|
|
33
|
-
methods: import("@protobuf-ts/runtime-rpc").MethodInfo<any, any>[];
|
|
34
|
-
options: {
|
|
35
|
-
[extensionName: string]: import("@protobuf-ts/runtime").JsonValue;
|
|
36
|
-
};
|
|
37
|
-
constructor(_transport: RpcTransport);
|
|
38
|
-
/**
|
|
39
|
-
* @generated from protobuf rpc: SyncFlags(sync.v1.SyncFlagsRequest) returns (stream sync.v1.SyncFlagsResponse);
|
|
40
|
-
*/
|
|
41
|
-
syncFlags(input: SyncFlagsRequest, options?: RpcOptions): ServerStreamingCall<SyncFlagsRequest, SyncFlagsResponse>;
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf rpc: FetchAllFlags(sync.v1.FetchAllFlagsRequest) returns (sync.v1.FetchAllFlagsResponse);
|
|
44
|
-
*/
|
|
45
|
-
fetchAllFlags(input: FetchAllFlagsRequest, options?: RpcOptions): UnaryCall<FetchAllFlagsRequest, FetchAllFlagsResponse>;
|
|
46
|
-
}
|