@rsdk/builtin-contract 3.5.0 → 4.0.0-next.11
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/CHANGELOG.md +22 -0
- package/README.md +14 -7
- package/dist/descriptor.d.ts +2 -0
- package/dist/descriptor.js +5 -0
- package/dist/descriptor.js.map +1 -0
- package/dist/google/protobuf/struct.d.ts +24 -271
- package/dist/google/protobuf/struct.js +49 -43
- package/dist/google/protobuf/struct.js.map +1 -1
- package/dist/grpc/error/v1/error.d.ts +14 -34
- package/dist/grpc/error/v1/error.js +16 -7
- package/dist/grpc/error/v1/error.js.map +1 -1
- package/dist/grpc/health/v1/health.d.ts +31 -61
- package/dist/grpc/health/v1/health.js +12 -21
- package/dist/grpc/health/v1/health.js.map +1 -1
- package/dist/grpc/metrics/v1/metrics.d.ts +25 -25
- package/dist/grpc/metrics/v1/metrics.js +6 -2
- package/dist/grpc/metrics/v1/metrics.js.map +1 -1
- package/dist/grpc/reflection/v1/reflection.d.ts +277 -0
- package/dist/grpc/reflection/v1/reflection.js +818 -0
- package/dist/grpc/reflection/v1/reflection.js.map +1 -0
- package/dist/grpc/reflection/v1alpha/reflection.d.ts +277 -0
- package/dist/grpc/reflection/v1alpha/reflection.js +818 -0
- package/dist/grpc/reflection/v1alpha/reflection.js.map +1 -0
- package/dist/grpc.error.v1.js +2 -2
- package/dist/grpc.health.v1.d.ts +23 -34
- package/dist/grpc.health.v1.js +4 -2
- package/dist/grpc.health.v1.js.map +1 -1
- package/dist/grpc.metrics.v1.d.ts +10 -11
- package/dist/grpc.metrics.v1.js +4 -2
- package/dist/grpc.metrics.v1.js.map +1 -1
- package/dist/grpc.reflection.v1.d.ts +273 -0
- package/dist/grpc.reflection.v1.js +75 -0
- package/dist/grpc.reflection.v1.js.map +1 -0
- package/dist/grpc.reflection.v1alpha.d.ts +273 -0
- package/dist/grpc.reflection.v1alpha.js +75 -0
- package/dist/grpc.reflection.v1alpha.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.google.d.ts +1 -0
- package/dist/index.google.js +29 -0
- package/dist/index.google.js.map +1 -0
- package/dist/index.google.protobuf.d.ts +1 -0
- package/dist/index.google.protobuf.js +19 -0
- package/dist/index.google.protobuf.js.map +1 -0
- package/dist/index.grpc.d.ts +4 -0
- package/dist/index.grpc.error.d.ts +1 -0
- package/dist/index.grpc.error.js +29 -0
- package/dist/index.grpc.error.js.map +1 -0
- package/dist/index.grpc.error.v1.d.ts +1 -0
- package/dist/index.grpc.error.v1.js +18 -0
- package/dist/index.grpc.error.v1.js.map +1 -0
- package/dist/index.grpc.health.d.ts +1 -0
- package/dist/index.grpc.health.js +29 -0
- package/dist/index.grpc.health.js.map +1 -0
- package/dist/index.grpc.health.v1.d.ts +1 -0
- package/dist/index.grpc.health.v1.js +18 -0
- package/dist/index.grpc.health.v1.js.map +1 -0
- package/dist/index.grpc.js +32 -0
- package/dist/index.grpc.js.map +1 -0
- package/dist/index.grpc.metrics.d.ts +1 -0
- package/dist/index.grpc.metrics.js +29 -0
- package/dist/index.grpc.metrics.js.map +1 -0
- package/dist/index.grpc.metrics.v1.d.ts +1 -0
- package/dist/index.grpc.metrics.v1.js +18 -0
- package/dist/index.grpc.metrics.v1.js.map +1 -0
- package/dist/index.grpc.reflection.d.ts +2 -0
- package/dist/index.grpc.reflection.js +30 -0
- package/dist/index.grpc.reflection.js.map +1 -0
- package/dist/index.grpc.reflection.v1.d.ts +1 -0
- package/dist/index.grpc.reflection.v1.js +18 -0
- package/dist/index.grpc.reflection.v1.js.map +1 -0
- package/dist/index.grpc.reflection.v1alpha.d.ts +1 -0
- package/dist/index.grpc.reflection.v1alpha.js +18 -0
- package/dist/index.grpc.reflection.v1alpha.js.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/docs/README.md +391 -0
- package/docs/schemas/ServerReflection.dot +26 -0
- package/docs/schemas/ServerReflection.png +0 -0
- package/docs/schemas/ServerReflection.svg +305 -0
- package/package.json +5 -4
- package/ppm.json +1 -1
- package/proto/grpc/reflection/v1/reflection.proto +155 -0
- package/proto/grpc/reflection/v1alpha/reflection.proto +145 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../../../.generated/grpc/health/v1/health.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,
|
|
1
|
+
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../../../.generated/grpc/health/v1/health.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,2CAOuB;AASvB,iEAAqC;AAcrC,oBAAoB;AACpB,IAAY,gCAsBX;AAtBD,WAAY,gCAAgC;IAC1C;;;;OAIG;IACH,uDAAmB,CAAA;IACnB;;;OAGG;IACH,uDAAmB,CAAA;IACnB;;;OAGG;IACH,+DAA2B,CAAA;IAC3B;;;OAGG;IACH,uEAAmC,CAAA;AACrC,CAAC,EAtBW,gCAAgC,gDAAhC,gCAAgC,QAsB3C;AAED,SAAgB,wCAAwC,CAAC,MAAW;IAClE,QAAQ,MAAM,EAAE;QACd,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,gCAAgC,CAAC,OAAO,CAAC;QAClD,KAAK,CAAC,CAAC;QACP,KAAK,SAAS;YACZ,OAAO,gCAAgC,CAAC,OAAO,CAAC;QAClD,KAAK,CAAC,CAAC;QACP,KAAK,aAAa;YAChB,OAAO,gCAAgC,CAAC,WAAW,CAAC;QACtD,KAAK,CAAC,CAAC;QACP,KAAK,iBAAiB;YACpB,OAAO,gCAAgC,CAAC,eAAe,CAAC;QAC1D;YACE,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,0BAA0B,GAAG,MAAM,GAAG,4CAA4C,CAAC,CAAC;KAClH;AACH,CAAC;AAjBD,4FAiBC;AAED,SAAgB,sCAAsC,CAAC,MAAwC;IAC7F,QAAQ,MAAM,EAAE;QACd,KAAK,gCAAgC,CAAC,OAAO;YAC3C,OAAO,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,kBAAkB,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,0BAAkB,CAAC,MAAM,CAAC,KAAK,CAAC;QACvE,iBAAiB,EAAE,CAAC,KAA0B,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,2BAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1G,mBAAmB,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,2BAAmB,CAAC,MAAM,CAAC,KAAK,CAAC;KAC1E;CACO,CAAC;AAuDE,QAAA,YAAY,GAAG,IAAA,sCAA4B,EAAC,qBAAa,EAAE,uBAAuB,CAG9F,CAAC;AAYF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { ChannelCredentials, Client, Metadata } from "@grpc/grpc-js";
|
|
3
|
+
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
4
|
import _m0 from "protobufjs/minimal";
|
|
4
5
|
/** metrics */
|
|
5
6
|
/** Empty request */
|
|
@@ -11,28 +12,22 @@ export interface GetResponse {
|
|
|
11
12
|
readonly metrics: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const GetRequest: {
|
|
15
|
+
$type: "grpc.metrics.v1.GetRequest";
|
|
14
16
|
encode(_: GetRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
17
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetRequest;
|
|
16
18
|
fromJSON(_: any): GetRequest;
|
|
17
19
|
toJSON(_: GetRequest): unknown;
|
|
18
|
-
create
|
|
19
|
-
fromPartial
|
|
20
|
+
create(base?: DeepPartial<GetRequest>): GetRequest;
|
|
21
|
+
fromPartial(_: DeepPartial<GetRequest>): GetRequest;
|
|
20
22
|
};
|
|
21
23
|
export declare const GetResponse: {
|
|
24
|
+
$type: "grpc.metrics.v1.GetResponse";
|
|
22
25
|
encode(message: GetResponse, writer?: _m0.Writer): _m0.Writer;
|
|
23
26
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetResponse;
|
|
24
27
|
fromJSON(object: any): GetResponse;
|
|
25
28
|
toJSON(message: GetResponse): unknown;
|
|
26
|
-
create<
|
|
27
|
-
|
|
28
|
-
} & {
|
|
29
|
-
readonly metrics?: string | undefined;
|
|
30
|
-
} & { [K in Exclude<keyof I, "metrics">]: never; }>(base?: I | undefined): GetResponse;
|
|
31
|
-
fromPartial<I_1 extends {
|
|
32
|
-
readonly metrics?: string | undefined;
|
|
33
|
-
} & {
|
|
34
|
-
readonly metrics?: string | undefined;
|
|
35
|
-
} & { [K_1 in Exclude<keyof I_1, "metrics">]: never; }>(object: I_1): GetResponse;
|
|
29
|
+
create(base?: DeepPartial<GetResponse>): GetResponse;
|
|
30
|
+
fromPartial(object: DeepPartial<GetResponse>): GetResponse;
|
|
36
31
|
};
|
|
37
32
|
/**
|
|
38
33
|
* MetricsService
|
|
@@ -47,29 +42,23 @@ export declare const MetricsDefinition: {
|
|
|
47
42
|
readonly get: {
|
|
48
43
|
readonly name: "Get";
|
|
49
44
|
readonly requestType: {
|
|
45
|
+
$type: "grpc.metrics.v1.GetRequest";
|
|
50
46
|
encode(_: GetRequest, writer?: _m0.Writer): _m0.Writer;
|
|
51
47
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetRequest;
|
|
52
48
|
fromJSON(_: any): GetRequest;
|
|
53
49
|
toJSON(_: GetRequest): unknown;
|
|
54
|
-
create
|
|
55
|
-
fromPartial
|
|
50
|
+
create(base?: DeepPartial<GetRequest>): GetRequest;
|
|
51
|
+
fromPartial(_: DeepPartial<GetRequest>): GetRequest;
|
|
56
52
|
};
|
|
57
53
|
readonly requestStream: false;
|
|
58
54
|
readonly responseType: {
|
|
55
|
+
$type: "grpc.metrics.v1.GetResponse";
|
|
59
56
|
encode(message: GetResponse, writer?: _m0.Writer): _m0.Writer;
|
|
60
57
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetResponse;
|
|
61
58
|
fromJSON(object: any): GetResponse;
|
|
62
59
|
toJSON(message: GetResponse): unknown;
|
|
63
|
-
create<
|
|
64
|
-
|
|
65
|
-
} & {
|
|
66
|
-
readonly metrics?: string | undefined;
|
|
67
|
-
} & { [K in Exclude<keyof I, "metrics">]: never; }>(base?: I_2 | undefined): GetResponse;
|
|
68
|
-
fromPartial<I_3 extends {
|
|
69
|
-
readonly metrics?: string | undefined;
|
|
70
|
-
} & {
|
|
71
|
-
readonly metrics?: string | undefined;
|
|
72
|
-
} & { [K_1 in Exclude<keyof I_1, "metrics">]: never; }>(object: I_3): GetResponse;
|
|
60
|
+
create(base?: DeepPartial<GetResponse>): GetResponse;
|
|
61
|
+
fromPartial(object: DeepPartial<GetResponse>): GetResponse;
|
|
73
62
|
};
|
|
74
63
|
readonly responseStream: false;
|
|
75
64
|
readonly options: {};
|
|
@@ -107,3 +96,14 @@ export declare const MetricsClient: {
|
|
|
107
96
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): MetricsClient;
|
|
108
97
|
service: typeof MetricsService;
|
|
109
98
|
};
|
|
99
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
100
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
101
|
+
readonly $case: string;
|
|
102
|
+
} ? {
|
|
103
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
104
|
+
} & {
|
|
105
|
+
readonly $case: T["$case"];
|
|
106
|
+
} : T extends {} ? {
|
|
107
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
108
|
+
} : Partial<T>;
|
|
109
|
+
export {};
|
|
@@ -11,6 +11,7 @@ function createBaseGetRequest() {
|
|
|
11
11
|
return {};
|
|
12
12
|
}
|
|
13
13
|
exports.GetRequest = {
|
|
14
|
+
$type: "grpc.metrics.v1.GetRequest",
|
|
14
15
|
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
15
16
|
return writer;
|
|
16
17
|
},
|
|
@@ -48,6 +49,7 @@ function createBaseGetResponse() {
|
|
|
48
49
|
return { metrics: "" };
|
|
49
50
|
}
|
|
50
51
|
exports.GetResponse = {
|
|
52
|
+
$type: "grpc.metrics.v1.GetResponse",
|
|
51
53
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
52
54
|
if (message.metrics !== "") {
|
|
53
55
|
writer.uint32(10).string(message.metrics);
|
|
@@ -76,11 +78,13 @@ exports.GetResponse = {
|
|
|
76
78
|
return message;
|
|
77
79
|
},
|
|
78
80
|
fromJSON(object) {
|
|
79
|
-
return { metrics: isSet(object.metrics) ? String(object.metrics) : "" };
|
|
81
|
+
return { metrics: isSet(object.metrics) ? globalThis.String(object.metrics) : "" };
|
|
80
82
|
},
|
|
81
83
|
toJSON(message) {
|
|
82
84
|
const obj = {};
|
|
83
|
-
message.metrics !==
|
|
85
|
+
if (message.metrics !== "") {
|
|
86
|
+
obj.metrics = message.metrics;
|
|
87
|
+
}
|
|
84
88
|
return obj;
|
|
85
89
|
},
|
|
86
90
|
create(base) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../../.generated/grpc/metrics/v1/metrics.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../../.generated/grpc/metrics/v1/metrics.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,2CAAmG;AASnG,iEAAqC;AAcrC,SAAS,oBAAoB;IAC3B,OAAO,EAAE,CAAC;AACZ,CAAC;AAEY,QAAA,UAAU,GAAG;IACxB,KAA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iB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QACvF,kBAAkB,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,kBAAU,CAAC,MAAM,CAAC,KAAK,CAAC;QAC/D,iBAAiB,EAAE,CAAC,KAAkB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QAC1F,mBAAmB,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,mBAAW,CAAC,MAAM,CAAC,KAAK,CAAC;KAClE;CACO,CAAC;AAuBE,QAAA,aAAa,GAAG,IAAA,sCAA4B,EAAC,sBAAc,EAAE,yBAAyB,CAGlG,CAAC;AAYF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { ChannelCredentials, Client, ClientDuplexStream, handleBidiStreamingCall, Metadata } from "@grpc/grpc-js";
|
|
3
|
+
import type { CallOptions, ClientOptions, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
|
+
import _m0 from "protobufjs/minimal";
|
|
5
|
+
/** The message sent by the client when calling ServerReflectionInfo method. */
|
|
6
|
+
export interface ServerReflectionRequest {
|
|
7
|
+
/** host */
|
|
8
|
+
readonly host: string;
|
|
9
|
+
readonly messageRequest?: {
|
|
10
|
+
readonly $case: "fileByFilename";
|
|
11
|
+
readonly fileByFilename: string;
|
|
12
|
+
} | {
|
|
13
|
+
readonly $case: "fileContainingSymbol";
|
|
14
|
+
readonly fileContainingSymbol: string;
|
|
15
|
+
} | {
|
|
16
|
+
readonly $case: "fileContainingExtension";
|
|
17
|
+
readonly fileContainingExtension: ExtensionRequest;
|
|
18
|
+
} | {
|
|
19
|
+
readonly $case: "allExtensionNumbersOfType";
|
|
20
|
+
readonly allExtensionNumbersOfType: string;
|
|
21
|
+
} | {
|
|
22
|
+
readonly $case: "listServices";
|
|
23
|
+
readonly listServices: string;
|
|
24
|
+
} | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The type name and extension number sent by the client when requesting
|
|
28
|
+
* file_containing_extension.
|
|
29
|
+
*/
|
|
30
|
+
export interface ExtensionRequest {
|
|
31
|
+
/** Fully-qualified type name. The format should be <package>.<type> */
|
|
32
|
+
readonly containingType: string;
|
|
33
|
+
/** extension_number */
|
|
34
|
+
readonly extensionNumber: number;
|
|
35
|
+
}
|
|
36
|
+
/** The message sent by the server to answer ServerReflectionInfo method. */
|
|
37
|
+
export interface ServerReflectionResponse {
|
|
38
|
+
/** valid_host */
|
|
39
|
+
readonly validHost: string;
|
|
40
|
+
/** original_request */
|
|
41
|
+
readonly originalRequest: ServerReflectionRequest | undefined;
|
|
42
|
+
readonly messageResponse?: {
|
|
43
|
+
readonly $case: "fileDescriptorResponse";
|
|
44
|
+
readonly fileDescriptorResponse: FileDescriptorResponse;
|
|
45
|
+
} | {
|
|
46
|
+
readonly $case: "allExtensionNumbersResponse";
|
|
47
|
+
readonly allExtensionNumbersResponse: ExtensionNumberResponse;
|
|
48
|
+
} | {
|
|
49
|
+
readonly $case: "listServicesResponse";
|
|
50
|
+
readonly listServicesResponse: ListServiceResponse;
|
|
51
|
+
} | {
|
|
52
|
+
readonly $case: "errorResponse";
|
|
53
|
+
readonly errorResponse: ErrorResponse;
|
|
54
|
+
} | undefined;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Serialized FileDescriptorProto messages sent by the server answering
|
|
58
|
+
* a file_by_filename, file_containing_symbol, or file_containing_extension
|
|
59
|
+
* request.
|
|
60
|
+
*/
|
|
61
|
+
export interface FileDescriptorResponse {
|
|
62
|
+
/**
|
|
63
|
+
* Serialized FileDescriptorProto messages. We avoid taking a dependency on
|
|
64
|
+
* descriptor.proto, which uses proto2 only features, by making them opaque
|
|
65
|
+
* bytes instead.
|
|
66
|
+
*/
|
|
67
|
+
readonly fileDescriptorProto: readonly Buffer[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A list of extension numbers sent by the server answering
|
|
71
|
+
* all_extension_numbers_of_type request.
|
|
72
|
+
*/
|
|
73
|
+
export interface ExtensionNumberResponse {
|
|
74
|
+
/**
|
|
75
|
+
* Full name of the base type, including the package name. The format
|
|
76
|
+
* is <package>.<type>
|
|
77
|
+
*/
|
|
78
|
+
readonly baseTypeName: string;
|
|
79
|
+
/** extension_number */
|
|
80
|
+
readonly extensionNumber: readonly number[];
|
|
81
|
+
}
|
|
82
|
+
/** A list of ServiceResponse sent by the server answering list_services request. */
|
|
83
|
+
export interface ListServiceResponse {
|
|
84
|
+
/**
|
|
85
|
+
* The information of each service may be expanded in the future, so we use
|
|
86
|
+
* ServiceResponse message to encapsulate it.
|
|
87
|
+
*/
|
|
88
|
+
readonly service: readonly ServiceResponse[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The information of a single service used by ListServiceResponse to answer
|
|
92
|
+
* list_services request.
|
|
93
|
+
*/
|
|
94
|
+
export interface ServiceResponse {
|
|
95
|
+
/**
|
|
96
|
+
* Full name of a registered service, including its package name. The format
|
|
97
|
+
* is <package>.<service>
|
|
98
|
+
*/
|
|
99
|
+
readonly name: string;
|
|
100
|
+
}
|
|
101
|
+
/** The error code and error message sent by the server when an error occurs. */
|
|
102
|
+
export interface ErrorResponse {
|
|
103
|
+
/** This field uses the error codes defined in grpc::StatusCode. */
|
|
104
|
+
readonly errorCode: number;
|
|
105
|
+
/** error_message */
|
|
106
|
+
readonly errorMessage: string;
|
|
107
|
+
}
|
|
108
|
+
export declare const ServerReflectionRequest: {
|
|
109
|
+
$type: "grpc.reflection.v1.ServerReflectionRequest";
|
|
110
|
+
encode(message: ServerReflectionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionRequest;
|
|
112
|
+
fromJSON(object: any): ServerReflectionRequest;
|
|
113
|
+
toJSON(message: ServerReflectionRequest): unknown;
|
|
114
|
+
create(base?: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
115
|
+
fromPartial(object: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
116
|
+
};
|
|
117
|
+
export declare const ExtensionRequest: {
|
|
118
|
+
$type: "grpc.reflection.v1.ExtensionRequest";
|
|
119
|
+
encode(message: ExtensionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
120
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRequest;
|
|
121
|
+
fromJSON(object: any): ExtensionRequest;
|
|
122
|
+
toJSON(message: ExtensionRequest): unknown;
|
|
123
|
+
create(base?: DeepPartial<ExtensionRequest>): ExtensionRequest;
|
|
124
|
+
fromPartial(object: DeepPartial<ExtensionRequest>): ExtensionRequest;
|
|
125
|
+
};
|
|
126
|
+
export declare const ServerReflectionResponse: {
|
|
127
|
+
$type: "grpc.reflection.v1.ServerReflectionResponse";
|
|
128
|
+
encode(message: ServerReflectionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
129
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionResponse;
|
|
130
|
+
fromJSON(object: any): ServerReflectionResponse;
|
|
131
|
+
toJSON(message: ServerReflectionResponse): unknown;
|
|
132
|
+
create(base?: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
133
|
+
fromPartial(object: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
134
|
+
};
|
|
135
|
+
export declare const FileDescriptorResponse: {
|
|
136
|
+
$type: "grpc.reflection.v1.FileDescriptorResponse";
|
|
137
|
+
encode(message: FileDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
138
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorResponse;
|
|
139
|
+
fromJSON(object: any): FileDescriptorResponse;
|
|
140
|
+
toJSON(message: FileDescriptorResponse): unknown;
|
|
141
|
+
create(base?: DeepPartial<FileDescriptorResponse>): FileDescriptorResponse;
|
|
142
|
+
fromPartial(object: DeepPartial<FileDescriptorResponse>): FileDescriptorResponse;
|
|
143
|
+
};
|
|
144
|
+
export declare const ExtensionNumberResponse: {
|
|
145
|
+
$type: "grpc.reflection.v1.ExtensionNumberResponse";
|
|
146
|
+
encode(message: ExtensionNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
147
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionNumberResponse;
|
|
148
|
+
fromJSON(object: any): ExtensionNumberResponse;
|
|
149
|
+
toJSON(message: ExtensionNumberResponse): unknown;
|
|
150
|
+
create(base?: DeepPartial<ExtensionNumberResponse>): ExtensionNumberResponse;
|
|
151
|
+
fromPartial(object: DeepPartial<ExtensionNumberResponse>): ExtensionNumberResponse;
|
|
152
|
+
};
|
|
153
|
+
export declare const ListServiceResponse: {
|
|
154
|
+
$type: "grpc.reflection.v1.ListServiceResponse";
|
|
155
|
+
encode(message: ListServiceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
156
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ListServiceResponse;
|
|
157
|
+
fromJSON(object: any): ListServiceResponse;
|
|
158
|
+
toJSON(message: ListServiceResponse): unknown;
|
|
159
|
+
create(base?: DeepPartial<ListServiceResponse>): ListServiceResponse;
|
|
160
|
+
fromPartial(object: DeepPartial<ListServiceResponse>): ListServiceResponse;
|
|
161
|
+
};
|
|
162
|
+
export declare const ServiceResponse: {
|
|
163
|
+
$type: "grpc.reflection.v1.ServiceResponse";
|
|
164
|
+
encode(message: ServiceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
165
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceResponse;
|
|
166
|
+
fromJSON(object: any): ServiceResponse;
|
|
167
|
+
toJSON(message: ServiceResponse): unknown;
|
|
168
|
+
create(base?: DeepPartial<ServiceResponse>): ServiceResponse;
|
|
169
|
+
fromPartial(object: DeepPartial<ServiceResponse>): ServiceResponse;
|
|
170
|
+
};
|
|
171
|
+
export declare const ErrorResponse: {
|
|
172
|
+
$type: "grpc.reflection.v1.ErrorResponse";
|
|
173
|
+
encode(message: ErrorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
174
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ErrorResponse;
|
|
175
|
+
fromJSON(object: any): ErrorResponse;
|
|
176
|
+
toJSON(message: ErrorResponse): unknown;
|
|
177
|
+
create(base?: DeepPartial<ErrorResponse>): ErrorResponse;
|
|
178
|
+
fromPartial(object: DeepPartial<ErrorResponse>): ErrorResponse;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* ServerReflection
|
|
182
|
+
* buf:lint:ignore SERVICE_SUFFIX
|
|
183
|
+
*/
|
|
184
|
+
export type ServerReflectionDefinition = typeof ServerReflectionDefinition;
|
|
185
|
+
export declare const ServerReflectionDefinition: {
|
|
186
|
+
readonly name: "ServerReflection";
|
|
187
|
+
readonly fullName: "grpc.reflection.v1.ServerReflection";
|
|
188
|
+
readonly methods: {
|
|
189
|
+
/**
|
|
190
|
+
* The reflection service is structured as a bidirectional stream, ensuring
|
|
191
|
+
* all related requests go to a single server.
|
|
192
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
193
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
194
|
+
*/
|
|
195
|
+
readonly serverReflectionInfo: {
|
|
196
|
+
readonly name: "ServerReflectionInfo";
|
|
197
|
+
readonly requestType: {
|
|
198
|
+
$type: "grpc.reflection.v1.ServerReflectionRequest";
|
|
199
|
+
encode(message: ServerReflectionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
200
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionRequest;
|
|
201
|
+
fromJSON(object: any): ServerReflectionRequest;
|
|
202
|
+
toJSON(message: ServerReflectionRequest): unknown;
|
|
203
|
+
create(base?: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
204
|
+
fromPartial(object: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
205
|
+
};
|
|
206
|
+
readonly requestStream: true;
|
|
207
|
+
readonly responseType: {
|
|
208
|
+
$type: "grpc.reflection.v1.ServerReflectionResponse";
|
|
209
|
+
encode(message: ServerReflectionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
210
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionResponse;
|
|
211
|
+
fromJSON(object: any): ServerReflectionResponse;
|
|
212
|
+
toJSON(message: ServerReflectionResponse): unknown;
|
|
213
|
+
create(base?: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
214
|
+
fromPartial(object: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
215
|
+
};
|
|
216
|
+
readonly responseStream: true;
|
|
217
|
+
readonly options: {};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* ServerReflection
|
|
223
|
+
* buf:lint:ignore SERVICE_SUFFIX
|
|
224
|
+
*/
|
|
225
|
+
export type ServerReflectionService = typeof ServerReflectionService;
|
|
226
|
+
export declare const ServerReflectionService: {
|
|
227
|
+
/**
|
|
228
|
+
* The reflection service is structured as a bidirectional stream, ensuring
|
|
229
|
+
* all related requests go to a single server.
|
|
230
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
231
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
232
|
+
*/
|
|
233
|
+
readonly serverReflectionInfo: {
|
|
234
|
+
readonly path: "/grpc.reflection.v1.ServerReflection/ServerReflectionInfo";
|
|
235
|
+
readonly requestStream: true;
|
|
236
|
+
readonly responseStream: true;
|
|
237
|
+
readonly requestSerialize: (value: ServerReflectionRequest) => Buffer;
|
|
238
|
+
readonly requestDeserialize: (value: Buffer) => ServerReflectionRequest;
|
|
239
|
+
readonly responseSerialize: (value: ServerReflectionResponse) => Buffer;
|
|
240
|
+
readonly responseDeserialize: (value: Buffer) => ServerReflectionResponse;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
export interface ServerReflectionServer extends UntypedServiceImplementation {
|
|
244
|
+
/**
|
|
245
|
+
* The reflection service is structured as a bidirectional stream, ensuring
|
|
246
|
+
* all related requests go to a single server.
|
|
247
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
248
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
249
|
+
*/
|
|
250
|
+
serverReflectionInfo: handleBidiStreamingCall<ServerReflectionRequest, ServerReflectionResponse>;
|
|
251
|
+
}
|
|
252
|
+
export interface ServerReflectionClient extends Client {
|
|
253
|
+
/**
|
|
254
|
+
* The reflection service is structured as a bidirectional stream, ensuring
|
|
255
|
+
* all related requests go to a single server.
|
|
256
|
+
* buf:lint:ignore RPC_REQUEST_STANDARD_NAME
|
|
257
|
+
* buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
|
|
258
|
+
*/
|
|
259
|
+
serverReflectionInfo(): ClientDuplexStream<ServerReflectionRequest, ServerReflectionResponse>;
|
|
260
|
+
serverReflectionInfo(options: Partial<CallOptions>): ClientDuplexStream<ServerReflectionRequest, ServerReflectionResponse>;
|
|
261
|
+
serverReflectionInfo(metadata: Metadata, options?: Partial<CallOptions>): ClientDuplexStream<ServerReflectionRequest, ServerReflectionResponse>;
|
|
262
|
+
}
|
|
263
|
+
export declare const ServerReflectionClient: {
|
|
264
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServerReflectionClient;
|
|
265
|
+
service: typeof ServerReflectionService;
|
|
266
|
+
};
|
|
267
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
268
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
269
|
+
readonly $case: string;
|
|
270
|
+
} ? {
|
|
271
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
272
|
+
} & {
|
|
273
|
+
readonly $case: T["$case"];
|
|
274
|
+
} : T extends {} ? {
|
|
275
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
276
|
+
} : Partial<T>;
|
|
277
|
+
export {};
|