@rsdk/builtin-contract 5.7.0 → 5.8.0-next.1
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/dist/google/protobuf/struct.d.ts +4 -4
- package/dist/google/protobuf/struct.js +53 -58
- package/dist/google/protobuf/struct.js.map +1 -1
- package/dist/grpc/error/v1/error.d.ts +1 -1
- package/dist/grpc/error/v1/error.js +7 -6
- package/dist/grpc/error/v1/error.js.map +1 -1
- package/dist/grpc/health/v1/health.d.ts +7 -8
- package/dist/grpc/health/v1/health.js +6 -6
- package/dist/grpc/health/v1/health.js.map +1 -1
- package/dist/grpc/metrics/v1/metrics.d.ts +5 -6
- package/dist/grpc/metrics/v1/metrics.js +5 -4
- package/dist/grpc/metrics/v1/metrics.js.map +1 -1
- package/dist/grpc/reflection/v1/reflection.d.ts +11 -12
- package/dist/grpc/reflection/v1/reflection.js +67 -99
- package/dist/grpc/reflection/v1/reflection.js.map +1 -1
- package/dist/grpc/reflection/v1alpha/reflection.d.ts +11 -12
- package/dist/grpc/reflection/v1alpha/reflection.js +67 -99
- package/dist/grpc/reflection/v1alpha/reflection.js.map +1 -1
- package/dist/grpc.error.v1.d.ts +23 -5
- package/dist/grpc.error.v1.js +2 -2
- package/dist/grpc.health.v1.d.ts +49 -18
- package/dist/grpc.health.v1.js +43 -13
- package/dist/grpc.health.v1.js.map +1 -1
- package/dist/grpc.metrics.v1.d.ts +40 -10
- package/dist/grpc.metrics.v1.js +42 -13
- package/dist/grpc.metrics.v1.js.map +1 -1
- package/dist/grpc.reflection.v1.d.ts +102 -72
- package/dist/grpc.reflection.v1.js +50 -21
- package/dist/grpc.reflection.v1.js.map +1 -1
- package/dist/grpc.reflection.v1alpha.d.ts +100 -70
- package/dist/grpc.reflection.v1alpha.js +48 -19
- package/dist/grpc.reflection.v1alpha.js.map +1 -1
- package/dist/index.google.js +2 -1
- package/dist/index.google.js.map +1 -1
- package/dist/index.google.protobuf.js +2 -1
- package/dist/index.google.protobuf.js.map +1 -1
- package/dist/index.grpc.error.js +2 -1
- package/dist/index.grpc.error.js.map +1 -1
- package/dist/index.grpc.health.js +2 -1
- package/dist/index.grpc.health.js.map +1 -1
- package/dist/index.grpc.js +2 -1
- package/dist/index.grpc.js.map +1 -1
- package/dist/index.grpc.metrics.js +2 -1
- package/dist/index.grpc.metrics.js.map +1 -1
- package/dist/index.grpc.reflection.js +2 -1
- package/dist/index.grpc.reflection.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/ppm.json +1 -1
- package/tsconfig.build.json +12 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../../.generated/grpc/metrics/v1/metrics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../../.generated/grpc/metrics/v1/metrics.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,wCAAwC;;;;;;AAExC,oBAAoB;AACpB,2CAWuB;AACvB,iEAAqC;AAcrC,SAAS,oBAAoB;IAC3B,OAAO,EAAE,CAAC;AACZ,CAAC;AAEY,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,4BAAqC;IAE5C,MAAM,CAAC,CAAa,EAAE,SAAqB,iBAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QAC5D,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,iBAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,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ClE;CACO,CAAC;AAuBE,QAAA,aAAa,GAAG,IAAA,sCAA4B,EAAC,sBAAc,EAAE,yBAAyB,CAIlG,CAAC;AAYF,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ChannelCredentials, Client, ClientDuplexStream, handleBidiStreamingCall, Metadata } from "@grpc/grpc-js";
|
|
2
|
-
import type { CallOptions, ClientOptions, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
1
|
+
import { type CallOptions, ChannelCredentials, Client, ClientDuplexStream, type ClientOptions, handleBidiStreamingCall, Metadata, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
2
|
import _m0 from "protobufjs/minimal";
|
|
4
3
|
/** The message sent by the client when calling ServerReflectionInfo method. */
|
|
5
4
|
export interface ServerReflectionRequest {
|
|
@@ -109,7 +108,7 @@ export declare const ServerReflectionRequest: {
|
|
|
109
108
|
encode(message: ServerReflectionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
110
109
|
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionRequest;
|
|
111
110
|
fromJSON(object: any): ServerReflectionRequest;
|
|
112
|
-
toJSON(message: ServerReflectionRequest):
|
|
111
|
+
toJSON<I = unknown>(message: ServerReflectionRequest): I;
|
|
113
112
|
create(base?: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
114
113
|
fromPartial(object: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
115
114
|
};
|
|
@@ -118,7 +117,7 @@ export declare const ExtensionRequest: {
|
|
|
118
117
|
encode(message: ExtensionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
119
118
|
decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRequest;
|
|
120
119
|
fromJSON(object: any): ExtensionRequest;
|
|
121
|
-
toJSON(message: ExtensionRequest):
|
|
120
|
+
toJSON<I = unknown>(message: ExtensionRequest): I;
|
|
122
121
|
create(base?: DeepPartial<ExtensionRequest>): ExtensionRequest;
|
|
123
122
|
fromPartial(object: DeepPartial<ExtensionRequest>): ExtensionRequest;
|
|
124
123
|
};
|
|
@@ -127,7 +126,7 @@ export declare const ServerReflectionResponse: {
|
|
|
127
126
|
encode(message: ServerReflectionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
128
127
|
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionResponse;
|
|
129
128
|
fromJSON(object: any): ServerReflectionResponse;
|
|
130
|
-
toJSON(message: ServerReflectionResponse):
|
|
129
|
+
toJSON<I = unknown>(message: ServerReflectionResponse): I;
|
|
131
130
|
create(base?: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
132
131
|
fromPartial(object: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
133
132
|
};
|
|
@@ -136,7 +135,7 @@ export declare const FileDescriptorResponse: {
|
|
|
136
135
|
encode(message: FileDescriptorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
137
136
|
decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorResponse;
|
|
138
137
|
fromJSON(object: any): FileDescriptorResponse;
|
|
139
|
-
toJSON(message: FileDescriptorResponse):
|
|
138
|
+
toJSON<I = unknown>(message: FileDescriptorResponse): I;
|
|
140
139
|
create(base?: DeepPartial<FileDescriptorResponse>): FileDescriptorResponse;
|
|
141
140
|
fromPartial(object: DeepPartial<FileDescriptorResponse>): FileDescriptorResponse;
|
|
142
141
|
};
|
|
@@ -145,7 +144,7 @@ export declare const ExtensionNumberResponse: {
|
|
|
145
144
|
encode(message: ExtensionNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
146
145
|
decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionNumberResponse;
|
|
147
146
|
fromJSON(object: any): ExtensionNumberResponse;
|
|
148
|
-
toJSON(message: ExtensionNumberResponse):
|
|
147
|
+
toJSON<I = unknown>(message: ExtensionNumberResponse): I;
|
|
149
148
|
create(base?: DeepPartial<ExtensionNumberResponse>): ExtensionNumberResponse;
|
|
150
149
|
fromPartial(object: DeepPartial<ExtensionNumberResponse>): ExtensionNumberResponse;
|
|
151
150
|
};
|
|
@@ -154,7 +153,7 @@ export declare const ListServiceResponse: {
|
|
|
154
153
|
encode(message: ListServiceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
155
154
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListServiceResponse;
|
|
156
155
|
fromJSON(object: any): ListServiceResponse;
|
|
157
|
-
toJSON(message: ListServiceResponse):
|
|
156
|
+
toJSON<I = unknown>(message: ListServiceResponse): I;
|
|
158
157
|
create(base?: DeepPartial<ListServiceResponse>): ListServiceResponse;
|
|
159
158
|
fromPartial(object: DeepPartial<ListServiceResponse>): ListServiceResponse;
|
|
160
159
|
};
|
|
@@ -163,7 +162,7 @@ export declare const ServiceResponse: {
|
|
|
163
162
|
encode(message: ServiceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
164
163
|
decode(input: _m0.Reader | Uint8Array, length?: number): ServiceResponse;
|
|
165
164
|
fromJSON(object: any): ServiceResponse;
|
|
166
|
-
toJSON(message: ServiceResponse):
|
|
165
|
+
toJSON<I = unknown>(message: ServiceResponse): I;
|
|
167
166
|
create(base?: DeepPartial<ServiceResponse>): ServiceResponse;
|
|
168
167
|
fromPartial(object: DeepPartial<ServiceResponse>): ServiceResponse;
|
|
169
168
|
};
|
|
@@ -172,7 +171,7 @@ export declare const ErrorResponse: {
|
|
|
172
171
|
encode(message: ErrorResponse, writer?: _m0.Writer): _m0.Writer;
|
|
173
172
|
decode(input: _m0.Reader | Uint8Array, length?: number): ErrorResponse;
|
|
174
173
|
fromJSON(object: any): ErrorResponse;
|
|
175
|
-
toJSON(message: ErrorResponse):
|
|
174
|
+
toJSON<I = unknown>(message: ErrorResponse): I;
|
|
176
175
|
create(base?: DeepPartial<ErrorResponse>): ErrorResponse;
|
|
177
176
|
fromPartial(object: DeepPartial<ErrorResponse>): ErrorResponse;
|
|
178
177
|
};
|
|
@@ -198,7 +197,7 @@ export declare const ServerReflectionDefinition: {
|
|
|
198
197
|
encode(message: ServerReflectionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
199
198
|
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionRequest;
|
|
200
199
|
fromJSON(object: any): ServerReflectionRequest;
|
|
201
|
-
toJSON(message: ServerReflectionRequest):
|
|
200
|
+
toJSON<I = unknown>(message: ServerReflectionRequest): I;
|
|
202
201
|
create(base?: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
203
202
|
fromPartial(object: DeepPartial<ServerReflectionRequest>): ServerReflectionRequest;
|
|
204
203
|
};
|
|
@@ -208,7 +207,7 @@ export declare const ServerReflectionDefinition: {
|
|
|
208
207
|
encode(message: ServerReflectionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
209
208
|
decode(input: _m0.Reader | Uint8Array, length?: number): ServerReflectionResponse;
|
|
210
209
|
fromJSON(object: any): ServerReflectionResponse;
|
|
211
|
-
toJSON(message: ServerReflectionResponse):
|
|
210
|
+
toJSON<I = unknown>(message: ServerReflectionResponse): I;
|
|
212
211
|
create(base?: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
213
212
|
fromPartial(object: DeepPartial<ServerReflectionResponse>): ServerReflectionResponse;
|
|
214
213
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// source: grpc/reflection/v1/reflection.proto
|
|
2
4
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
5
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
6
|
};
|
|
@@ -13,11 +15,10 @@ function createBaseServerReflectionRequest() {
|
|
|
13
15
|
exports.ServerReflectionRequest = {
|
|
14
16
|
$type: "grpc.reflection.v1.ServerReflectionRequest",
|
|
15
17
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
-
var _a;
|
|
17
18
|
if (message.host !== "") {
|
|
18
19
|
writer.uint32(10).string(message.host);
|
|
19
20
|
}
|
|
20
|
-
switch (
|
|
21
|
+
switch (message.messageRequest?.$case) {
|
|
21
22
|
case "fileByFilename":
|
|
22
23
|
writer.uint32(26).string(message.messageRequest.fileByFilename);
|
|
23
24
|
break;
|
|
@@ -113,67 +114,65 @@ exports.ServerReflectionRequest = {
|
|
|
113
114
|
};
|
|
114
115
|
},
|
|
115
116
|
toJSON(message) {
|
|
116
|
-
var _a, _b, _c, _d, _e;
|
|
117
117
|
const obj = {};
|
|
118
118
|
if (message.host !== "") {
|
|
119
119
|
obj.host = message.host;
|
|
120
120
|
}
|
|
121
|
-
if (
|
|
121
|
+
if (message.messageRequest?.$case === "fileByFilename") {
|
|
122
122
|
obj.fileByFilename = message.messageRequest.fileByFilename;
|
|
123
123
|
}
|
|
124
|
-
if (
|
|
124
|
+
if (message.messageRequest?.$case === "fileContainingSymbol") {
|
|
125
125
|
obj.fileContainingSymbol = message.messageRequest.fileContainingSymbol;
|
|
126
126
|
}
|
|
127
|
-
if (
|
|
127
|
+
if (message.messageRequest?.$case === "fileContainingExtension") {
|
|
128
128
|
obj.fileContainingExtension = exports.ExtensionRequest.toJSON(message.messageRequest.fileContainingExtension);
|
|
129
129
|
}
|
|
130
|
-
if (
|
|
130
|
+
if (message.messageRequest?.$case === "allExtensionNumbersOfType") {
|
|
131
131
|
obj.allExtensionNumbersOfType = message.messageRequest.allExtensionNumbersOfType;
|
|
132
132
|
}
|
|
133
|
-
if (
|
|
133
|
+
if (message.messageRequest?.$case === "listServices") {
|
|
134
134
|
obj.listServices = message.messageRequest.listServices;
|
|
135
135
|
}
|
|
136
136
|
return obj;
|
|
137
137
|
},
|
|
138
138
|
create(base) {
|
|
139
|
-
return exports.ServerReflectionRequest.fromPartial(base
|
|
139
|
+
return exports.ServerReflectionRequest.fromPartial(base ?? {});
|
|
140
140
|
},
|
|
141
141
|
fromPartial(object) {
|
|
142
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
143
142
|
const message = createBaseServerReflectionRequest();
|
|
144
|
-
message.host =
|
|
145
|
-
if (
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
message.host = object.host ?? "";
|
|
144
|
+
if (object.messageRequest?.$case === "fileByFilename" &&
|
|
145
|
+
object.messageRequest?.fileByFilename !== undefined &&
|
|
146
|
+
object.messageRequest?.fileByFilename !== null) {
|
|
148
147
|
message.messageRequest = { $case: "fileByFilename", fileByFilename: object.messageRequest.fileByFilename };
|
|
149
148
|
}
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
if (object.messageRequest?.$case === "fileContainingSymbol" &&
|
|
150
|
+
object.messageRequest?.fileContainingSymbol !== undefined &&
|
|
151
|
+
object.messageRequest?.fileContainingSymbol !== null) {
|
|
153
152
|
message.messageRequest = {
|
|
154
153
|
$case: "fileContainingSymbol",
|
|
155
154
|
fileContainingSymbol: object.messageRequest.fileContainingSymbol,
|
|
156
155
|
};
|
|
157
156
|
}
|
|
158
|
-
if (
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
if (object.messageRequest?.$case === "fileContainingExtension" &&
|
|
158
|
+
object.messageRequest?.fileContainingExtension !== undefined &&
|
|
159
|
+
object.messageRequest?.fileContainingExtension !== null) {
|
|
161
160
|
message.messageRequest = {
|
|
162
161
|
$case: "fileContainingExtension",
|
|
163
162
|
fileContainingExtension: exports.ExtensionRequest.fromPartial(object.messageRequest.fileContainingExtension),
|
|
164
163
|
};
|
|
165
164
|
}
|
|
166
|
-
if (
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
if (object.messageRequest?.$case === "allExtensionNumbersOfType" &&
|
|
166
|
+
object.messageRequest?.allExtensionNumbersOfType !== undefined &&
|
|
167
|
+
object.messageRequest?.allExtensionNumbersOfType !== null) {
|
|
169
168
|
message.messageRequest = {
|
|
170
169
|
$case: "allExtensionNumbersOfType",
|
|
171
170
|
allExtensionNumbersOfType: object.messageRequest.allExtensionNumbersOfType,
|
|
172
171
|
};
|
|
173
172
|
}
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
if (object.messageRequest?.$case === "listServices" &&
|
|
174
|
+
object.messageRequest?.listServices !== undefined &&
|
|
175
|
+
object.messageRequest?.listServices !== null) {
|
|
177
176
|
message.messageRequest = { $case: "listServices", listServices: object.messageRequest.listServices };
|
|
178
177
|
}
|
|
179
178
|
return message;
|
|
@@ -237,13 +236,12 @@ exports.ExtensionRequest = {
|
|
|
237
236
|
return obj;
|
|
238
237
|
},
|
|
239
238
|
create(base) {
|
|
240
|
-
return exports.ExtensionRequest.fromPartial(base
|
|
239
|
+
return exports.ExtensionRequest.fromPartial(base ?? {});
|
|
241
240
|
},
|
|
242
241
|
fromPartial(object) {
|
|
243
|
-
var _a, _b;
|
|
244
242
|
const message = createBaseExtensionRequest();
|
|
245
|
-
message.containingType =
|
|
246
|
-
message.extensionNumber =
|
|
243
|
+
message.containingType = object.containingType ?? "";
|
|
244
|
+
message.extensionNumber = object.extensionNumber ?? 0;
|
|
247
245
|
return message;
|
|
248
246
|
},
|
|
249
247
|
};
|
|
@@ -253,14 +251,13 @@ function createBaseServerReflectionResponse() {
|
|
|
253
251
|
exports.ServerReflectionResponse = {
|
|
254
252
|
$type: "grpc.reflection.v1.ServerReflectionResponse",
|
|
255
253
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
256
|
-
var _a;
|
|
257
254
|
if (message.validHost !== "") {
|
|
258
255
|
writer.uint32(10).string(message.validHost);
|
|
259
256
|
}
|
|
260
257
|
if (message.originalRequest !== undefined) {
|
|
261
258
|
exports.ServerReflectionRequest.encode(message.originalRequest, writer.uint32(18).fork()).ldelim();
|
|
262
259
|
}
|
|
263
|
-
switch (
|
|
260
|
+
switch (message.messageResponse?.$case) {
|
|
264
261
|
case "fileDescriptorResponse":
|
|
265
262
|
exports.FileDescriptorResponse.encode(message.messageResponse.fileDescriptorResponse, writer.uint32(34).fork())
|
|
266
263
|
.ldelim();
|
|
@@ -368,7 +365,6 @@ exports.ServerReflectionResponse = {
|
|
|
368
365
|
};
|
|
369
366
|
},
|
|
370
367
|
toJSON(message) {
|
|
371
|
-
var _a, _b, _c, _d;
|
|
372
368
|
const obj = {};
|
|
373
369
|
if (message.validHost !== "") {
|
|
374
370
|
obj.validHost = message.validHost;
|
|
@@ -376,57 +372,56 @@ exports.ServerReflectionResponse = {
|
|
|
376
372
|
if (message.originalRequest !== undefined) {
|
|
377
373
|
obj.originalRequest = exports.ServerReflectionRequest.toJSON(message.originalRequest);
|
|
378
374
|
}
|
|
379
|
-
if (
|
|
375
|
+
if (message.messageResponse?.$case === "fileDescriptorResponse") {
|
|
380
376
|
obj.fileDescriptorResponse = exports.FileDescriptorResponse.toJSON(message.messageResponse.fileDescriptorResponse);
|
|
381
377
|
}
|
|
382
|
-
if (
|
|
378
|
+
if (message.messageResponse?.$case === "allExtensionNumbersResponse") {
|
|
383
379
|
obj.allExtensionNumbersResponse = exports.ExtensionNumberResponse.toJSON(message.messageResponse.allExtensionNumbersResponse);
|
|
384
380
|
}
|
|
385
|
-
if (
|
|
381
|
+
if (message.messageResponse?.$case === "listServicesResponse") {
|
|
386
382
|
obj.listServicesResponse = exports.ListServiceResponse.toJSON(message.messageResponse.listServicesResponse);
|
|
387
383
|
}
|
|
388
|
-
if (
|
|
384
|
+
if (message.messageResponse?.$case === "errorResponse") {
|
|
389
385
|
obj.errorResponse = exports.ErrorResponse.toJSON(message.messageResponse.errorResponse);
|
|
390
386
|
}
|
|
391
387
|
return obj;
|
|
392
388
|
},
|
|
393
389
|
create(base) {
|
|
394
|
-
return exports.ServerReflectionResponse.fromPartial(base
|
|
390
|
+
return exports.ServerReflectionResponse.fromPartial(base ?? {});
|
|
395
391
|
},
|
|
396
392
|
fromPartial(object) {
|
|
397
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
398
393
|
const message = createBaseServerReflectionResponse();
|
|
399
|
-
message.validHost =
|
|
394
|
+
message.validHost = object.validHost ?? "";
|
|
400
395
|
message.originalRequest = (object.originalRequest !== undefined && object.originalRequest !== null)
|
|
401
396
|
? exports.ServerReflectionRequest.fromPartial(object.originalRequest)
|
|
402
397
|
: undefined;
|
|
403
|
-
if (
|
|
404
|
-
|
|
405
|
-
|
|
398
|
+
if (object.messageResponse?.$case === "fileDescriptorResponse" &&
|
|
399
|
+
object.messageResponse?.fileDescriptorResponse !== undefined &&
|
|
400
|
+
object.messageResponse?.fileDescriptorResponse !== null) {
|
|
406
401
|
message.messageResponse = {
|
|
407
402
|
$case: "fileDescriptorResponse",
|
|
408
403
|
fileDescriptorResponse: exports.FileDescriptorResponse.fromPartial(object.messageResponse.fileDescriptorResponse),
|
|
409
404
|
};
|
|
410
405
|
}
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
-
|
|
406
|
+
if (object.messageResponse?.$case === "allExtensionNumbersResponse" &&
|
|
407
|
+
object.messageResponse?.allExtensionNumbersResponse !== undefined &&
|
|
408
|
+
object.messageResponse?.allExtensionNumbersResponse !== null) {
|
|
414
409
|
message.messageResponse = {
|
|
415
410
|
$case: "allExtensionNumbersResponse",
|
|
416
411
|
allExtensionNumbersResponse: exports.ExtensionNumberResponse.fromPartial(object.messageResponse.allExtensionNumbersResponse),
|
|
417
412
|
};
|
|
418
413
|
}
|
|
419
|
-
if (
|
|
420
|
-
|
|
421
|
-
|
|
414
|
+
if (object.messageResponse?.$case === "listServicesResponse" &&
|
|
415
|
+
object.messageResponse?.listServicesResponse !== undefined &&
|
|
416
|
+
object.messageResponse?.listServicesResponse !== null) {
|
|
422
417
|
message.messageResponse = {
|
|
423
418
|
$case: "listServicesResponse",
|
|
424
419
|
listServicesResponse: exports.ListServiceResponse.fromPartial(object.messageResponse.listServicesResponse),
|
|
425
420
|
};
|
|
426
421
|
}
|
|
427
|
-
if (
|
|
428
|
-
|
|
429
|
-
|
|
422
|
+
if (object.messageResponse?.$case === "errorResponse" &&
|
|
423
|
+
object.messageResponse?.errorResponse !== undefined &&
|
|
424
|
+
object.messageResponse?.errorResponse !== null) {
|
|
430
425
|
message.messageResponse = {
|
|
431
426
|
$case: "errorResponse",
|
|
432
427
|
errorResponse: exports.ErrorResponse.fromPartial(object.messageResponse.errorResponse),
|
|
@@ -469,26 +464,24 @@ exports.FileDescriptorResponse = {
|
|
|
469
464
|
},
|
|
470
465
|
fromJSON(object) {
|
|
471
466
|
return {
|
|
472
|
-
fileDescriptorProto: globalThis.Array.isArray(object
|
|
467
|
+
fileDescriptorProto: globalThis.Array.isArray(object?.fileDescriptorProto)
|
|
473
468
|
? object.fileDescriptorProto.map((e) => Buffer.from(bytesFromBase64(e)))
|
|
474
469
|
: [],
|
|
475
470
|
};
|
|
476
471
|
},
|
|
477
472
|
toJSON(message) {
|
|
478
|
-
var _a;
|
|
479
473
|
const obj = {};
|
|
480
|
-
if (
|
|
474
|
+
if (message.fileDescriptorProto?.length) {
|
|
481
475
|
obj.fileDescriptorProto = message.fileDescriptorProto.map((e) => base64FromBytes(e));
|
|
482
476
|
}
|
|
483
477
|
return obj;
|
|
484
478
|
},
|
|
485
479
|
create(base) {
|
|
486
|
-
return exports.FileDescriptorResponse.fromPartial(base
|
|
480
|
+
return exports.FileDescriptorResponse.fromPartial(base ?? {});
|
|
487
481
|
},
|
|
488
482
|
fromPartial(object) {
|
|
489
|
-
var _a;
|
|
490
483
|
const message = createBaseFileDescriptorResponse();
|
|
491
|
-
message.fileDescriptorProto =
|
|
484
|
+
message.fileDescriptorProto = object.fileDescriptorProto?.map((e) => e) || [];
|
|
492
485
|
return message;
|
|
493
486
|
},
|
|
494
487
|
};
|
|
@@ -545,30 +538,28 @@ exports.ExtensionNumberResponse = {
|
|
|
545
538
|
fromJSON(object) {
|
|
546
539
|
return {
|
|
547
540
|
baseTypeName: isSet(object.baseTypeName) ? globalThis.String(object.baseTypeName) : "",
|
|
548
|
-
extensionNumber: globalThis.Array.isArray(object
|
|
541
|
+
extensionNumber: globalThis.Array.isArray(object?.extensionNumber)
|
|
549
542
|
? object.extensionNumber.map((e) => globalThis.Number(e))
|
|
550
543
|
: [],
|
|
551
544
|
};
|
|
552
545
|
},
|
|
553
546
|
toJSON(message) {
|
|
554
|
-
var _a;
|
|
555
547
|
const obj = {};
|
|
556
548
|
if (message.baseTypeName !== "") {
|
|
557
549
|
obj.baseTypeName = message.baseTypeName;
|
|
558
550
|
}
|
|
559
|
-
if (
|
|
551
|
+
if (message.extensionNumber?.length) {
|
|
560
552
|
obj.extensionNumber = message.extensionNumber.map((e) => Math.round(e));
|
|
561
553
|
}
|
|
562
554
|
return obj;
|
|
563
555
|
},
|
|
564
556
|
create(base) {
|
|
565
|
-
return exports.ExtensionNumberResponse.fromPartial(base
|
|
557
|
+
return exports.ExtensionNumberResponse.fromPartial(base ?? {});
|
|
566
558
|
},
|
|
567
559
|
fromPartial(object) {
|
|
568
|
-
var _a, _b;
|
|
569
560
|
const message = createBaseExtensionNumberResponse();
|
|
570
|
-
message.baseTypeName =
|
|
571
|
-
message.extensionNumber =
|
|
561
|
+
message.baseTypeName = object.baseTypeName ?? "";
|
|
562
|
+
message.extensionNumber = object.extensionNumber?.map((e) => e) || [];
|
|
572
563
|
return message;
|
|
573
564
|
},
|
|
574
565
|
};
|
|
@@ -606,26 +597,24 @@ exports.ListServiceResponse = {
|
|
|
606
597
|
},
|
|
607
598
|
fromJSON(object) {
|
|
608
599
|
return {
|
|
609
|
-
service: globalThis.Array.isArray(object
|
|
600
|
+
service: globalThis.Array.isArray(object?.service)
|
|
610
601
|
? object.service.map((e) => exports.ServiceResponse.fromJSON(e))
|
|
611
602
|
: [],
|
|
612
603
|
};
|
|
613
604
|
},
|
|
614
605
|
toJSON(message) {
|
|
615
|
-
var _a;
|
|
616
606
|
const obj = {};
|
|
617
|
-
if (
|
|
607
|
+
if (message.service?.length) {
|
|
618
608
|
obj.service = message.service.map((e) => exports.ServiceResponse.toJSON(e));
|
|
619
609
|
}
|
|
620
610
|
return obj;
|
|
621
611
|
},
|
|
622
612
|
create(base) {
|
|
623
|
-
return exports.ListServiceResponse.fromPartial(base
|
|
613
|
+
return exports.ListServiceResponse.fromPartial(base ?? {});
|
|
624
614
|
},
|
|
625
615
|
fromPartial(object) {
|
|
626
|
-
var _a;
|
|
627
616
|
const message = createBaseListServiceResponse();
|
|
628
|
-
message.service =
|
|
617
|
+
message.service = object.service?.map((e) => exports.ServiceResponse.fromPartial(e)) || [];
|
|
629
618
|
return message;
|
|
630
619
|
},
|
|
631
620
|
};
|
|
@@ -672,12 +661,11 @@ exports.ServiceResponse = {
|
|
|
672
661
|
return obj;
|
|
673
662
|
},
|
|
674
663
|
create(base) {
|
|
675
|
-
return exports.ServiceResponse.fromPartial(base
|
|
664
|
+
return exports.ServiceResponse.fromPartial(base ?? {});
|
|
676
665
|
},
|
|
677
666
|
fromPartial(object) {
|
|
678
|
-
var _a;
|
|
679
667
|
const message = createBaseServiceResponse();
|
|
680
|
-
message.name =
|
|
668
|
+
message.name = object.name ?? "";
|
|
681
669
|
return message;
|
|
682
670
|
},
|
|
683
671
|
};
|
|
@@ -739,13 +727,12 @@ exports.ErrorResponse = {
|
|
|
739
727
|
return obj;
|
|
740
728
|
},
|
|
741
729
|
create(base) {
|
|
742
|
-
return exports.ErrorResponse.fromPartial(base
|
|
730
|
+
return exports.ErrorResponse.fromPartial(base ?? {});
|
|
743
731
|
},
|
|
744
732
|
fromPartial(object) {
|
|
745
|
-
var _a, _b;
|
|
746
733
|
const message = createBaseErrorResponse();
|
|
747
|
-
message.errorCode =
|
|
748
|
-
message.errorMessage =
|
|
734
|
+
message.errorCode = object.errorCode ?? 0;
|
|
735
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
749
736
|
return message;
|
|
750
737
|
},
|
|
751
738
|
};
|
|
@@ -788,29 +775,10 @@ exports.ServerReflectionService = {
|
|
|
788
775
|
};
|
|
789
776
|
exports.ServerReflectionClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ServerReflectionService, "grpc.reflection.v1.ServerReflection");
|
|
790
777
|
function bytesFromBase64(b64) {
|
|
791
|
-
|
|
792
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
793
|
-
}
|
|
794
|
-
else {
|
|
795
|
-
const bin = globalThis.atob(b64);
|
|
796
|
-
const arr = new Uint8Array(bin.length);
|
|
797
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
798
|
-
arr[i] = bin.charCodeAt(i);
|
|
799
|
-
}
|
|
800
|
-
return arr;
|
|
801
|
-
}
|
|
778
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
802
779
|
}
|
|
803
780
|
function base64FromBytes(arr) {
|
|
804
|
-
|
|
805
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
806
|
-
}
|
|
807
|
-
else {
|
|
808
|
-
const bin = [];
|
|
809
|
-
arr.forEach((byte) => {
|
|
810
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
811
|
-
});
|
|
812
|
-
return globalThis.btoa(bin.join(""));
|
|
813
|
-
}
|
|
781
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
814
782
|
}
|
|
815
783
|
function isSet(value) {
|
|
816
784
|
return value !== null && value !== undefined;
|