@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.
@@ -1,183 +1,206 @@
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
- /**
9
- * SyncFlagsRequest is the request initiating the sever-streaming rpc. Flagd sends this request, acting as the client
10
- *
11
- * @generated from protobuf message sync.v1.SyncFlagsRequest
12
- */
13
- export interface SyncFlagsRequest {
14
- /**
15
- * Optional: A unique identifier for flagd(grpc client) initiating the request. The server implementations may
16
- * utilize this identifier to uniquely identify, validate(ex:- enforce authentication/authorization) and filter
17
- * flag configurations that it can expose to this request. This field is intended to be optional. However server
18
- * implementations may enforce it.
19
- * ex:- provider_id: flagd-weatherapp-sidecar
20
- *
21
- * @generated from protobuf field: string provider_id = 1;
22
- */
23
- providerId: string;
24
- /**
25
- * Optional: A selector for the flag configuration request. The server implementation may utilize this to select
26
- * flag configurations from a collection, select the source of the flag or combine this to any desired underlying
27
- * filtering mechanism.
28
- * ex:- selector: 'source=database,app=weatherapp'
29
- *
30
- * @generated from protobuf field: string selector = 2;
31
- */
32
- selector: string;
33
- }
34
- /**
35
- * SyncFlagsResponse is the server response containing feature flag configurations and the state
36
- *
37
- * @generated from protobuf message sync.v1.SyncFlagsResponse
38
- */
39
- 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
- */
45
- flagConfiguration: string;
46
- /**
47
- * State conveying the operation to be performed by flagd. See the descriptions of SyncState for an explanation of
48
- * supported values
49
- *
50
- * @generated from protobuf field: sync.v1.SyncState state = 2;
51
- */
52
- state: SyncState;
53
- }
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
- */
59
- export interface FetchAllFlagsRequest {
60
- /**
61
- * Optional: A unique identifier for flagd(grpc client) initiating the request. The server implementations may
62
- * utilize this identifier to uniquely identify, validate(ex:- enforce authentication/authorization) and filter
63
- * flag configurations that it can expose to this request. This field is intended to be optional. However server
64
- * implementations may enforce it.
65
- * ex:- provider_id: flagd-weatherapp-sidecar
66
- *
67
- * @generated from protobuf field: string provider_id = 1;
68
- */
69
- providerId: string;
70
- /**
71
- * Optional: A selector for the flag configuration request. The server implementation may utilize this to select
72
- * flag configurations from a collection, select the source of the flag or combine this to any desired underlying
73
- * filtering mechanism.
74
- * ex:- selector: 'source=database,app=weatherapp'
75
- *
76
- * @generated from protobuf field: string selector = 2;
77
- */
78
- selector: string;
79
- }
80
- /**
81
- * FetchAllFlagsResponse is the server response containing feature flag configurations
82
- *
83
- * @generated from protobuf message sync.v1.FetchAllFlagsResponse
84
- */
85
- 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
- */
91
- flagConfiguration: string;
92
- }
93
- /**
94
- * SyncState conveys the state of the payload. These states are related to flagd isync.go type definitions but
95
- * contains extras to optimize grpc use case. Refer - https://github.com/open-feature/flagd/blob/main/pkg/sync/isync.go
96
- *
97
- * @generated from protobuf enum sync.v1.SyncState
98
- */
99
- export declare enum SyncState {
100
- /**
101
- * Value is ignored by the listening flagd
102
- *
103
- * @generated from protobuf enum value: SYNC_STATE_UNSPECIFIED = 0;
104
- */
105
- UNSPECIFIED = 0,
106
- /**
107
- * All the flags matching the request. This is the default response and other states can be ignored
108
- * by the implementation. Flagd internally replaces all existing flags for this response state.
109
- *
110
- * @generated from protobuf enum value: SYNC_STATE_ALL = 1;
111
- */
112
- ALL = 1,
113
- /**
114
- * Convey an addition of a flag. Flagd internally handles this by combining new flags with existing ones
115
- *
116
- * @generated from protobuf enum value: SYNC_STATE_ADD = 2;
117
- */
118
- ADD = 2,
119
- /**
120
- * Convey an update of a flag. Flagd internally attempts to update if the updated flag already exist OR if it does not,
121
- * it will get added
122
- *
123
- * @generated from protobuf enum value: SYNC_STATE_UPDATE = 3;
124
- */
125
- UPDATE = 3,
126
- /**
127
- * Convey a deletion of a flag. Flagd internally removes the flag
128
- *
129
- * @generated from protobuf enum value: SYNC_STATE_DELETE = 4;
130
- */
131
- DELETE = 4,
132
- /**
133
- * Optional server ping to check client connectivity. Handling is ignored by flagd and is to merely support live check
134
- *
135
- * @generated from protobuf enum value: SYNC_STATE_PING = 5;
136
- */
137
- PING = 5
138
- }
139
- declare class SyncFlagsRequest$Type extends MessageType<SyncFlagsRequest> {
140
- constructor();
141
- create(value?: PartialMessage<SyncFlagsRequest>): SyncFlagsRequest;
142
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SyncFlagsRequest): SyncFlagsRequest;
143
- internalBinaryWrite(message: SyncFlagsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
144
- }
145
- /**
146
- * @generated MessageType for protobuf message sync.v1.SyncFlagsRequest
147
- */
148
- export declare const SyncFlagsRequest: SyncFlagsRequest$Type;
149
- declare class SyncFlagsResponse$Type extends MessageType<SyncFlagsResponse> {
150
- constructor();
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;
154
- }
155
- /**
156
- * @generated MessageType for protobuf message sync.v1.SyncFlagsResponse
157
- */
158
- export declare const SyncFlagsResponse: SyncFlagsResponse$Type;
159
- declare class FetchAllFlagsRequest$Type extends MessageType<FetchAllFlagsRequest> {
160
- constructor();
161
- create(value?: PartialMessage<FetchAllFlagsRequest>): FetchAllFlagsRequest;
162
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FetchAllFlagsRequest): FetchAllFlagsRequest;
163
- internalBinaryWrite(message: FetchAllFlagsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
164
- }
165
- /**
166
- * @generated MessageType for protobuf message sync.v1.FetchAllFlagsRequest
167
- */
168
- export declare const FetchAllFlagsRequest: FetchAllFlagsRequest$Type;
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;
183
- export {};
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";
5
+ /**
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
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 */
33
+ export interface SyncFlagsRequest {
34
+ /**
35
+ * Optional: A unique identifier for flagd(grpc client) initiating the request. The server implementations may
36
+ * utilize this identifier to uniquely identify, validate(ex:- enforce authentication/authorization) and filter
37
+ * flag configurations that it can expose to this request. This field is intended to be optional. However server
38
+ * implementations may enforce it.
39
+ * ex:- provider_id: flagd-weatherapp-sidecar
40
+ */
41
+ providerId: string;
42
+ /**
43
+ * Optional: A selector for the flag configuration request. The server implementation may utilize this to select
44
+ * flag configurations from a collection, select the source of the flag or combine this to any desired underlying
45
+ * filtering mechanism.
46
+ * ex:- selector: 'source=database,app=weatherapp'
47
+ */
48
+ selector: string;
49
+ }
50
+ /** SyncFlagsResponse is the server response containing feature flag configurations and the state */
51
+ export interface SyncFlagsResponse {
52
+ /** flagd feature flag configuration. Must be validated to schema - https://raw.githubusercontent.com/open-feature/schemas/main/json/flagd-definitions.json */
53
+ flagConfiguration: string;
54
+ /**
55
+ * State conveying the operation to be performed by flagd. See the descriptions of SyncState for an explanation of
56
+ * supported values
57
+ */
58
+ state: SyncState;
59
+ }
60
+ /** FetchAllFlagsRequest is the request to fetch all flags. Flagd sends this request as the client in order to resync its internal state */
61
+ export interface FetchAllFlagsRequest {
62
+ /**
63
+ * Optional: A unique identifier for flagd(grpc client) initiating the request. The server implementations may
64
+ * utilize this identifier to uniquely identify, validate(ex:- enforce authentication/authorization) and filter
65
+ * flag configurations that it can expose to this request. This field is intended to be optional. However server
66
+ * implementations may enforce it.
67
+ * ex:- provider_id: flagd-weatherapp-sidecar
68
+ */
69
+ providerId: string;
70
+ /**
71
+ * Optional: A selector for the flag configuration request. The server implementation may utilize this to select
72
+ * flag configurations from a collection, select the source of the flag or combine this to any desired underlying
73
+ * filtering mechanism.
74
+ * ex:- selector: 'source=database,app=weatherapp'
75
+ */
76
+ selector: string;
77
+ }
78
+ /** FetchAllFlagsResponse is the server response containing feature flag configurations */
79
+ export interface FetchAllFlagsResponse {
80
+ /** flagd feature flag configuration. Must be validated to schema - https://raw.githubusercontent.com/open-feature/schemas/main/json/flagd-definitions.json */
81
+ flagConfiguration: string;
82
+ }
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>;
184
+ }
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;
191
+ }
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
+ };
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
- }