@sniipwebmaster/kyc-client-grpcweb 23.5.973 → 24.10.1067

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.
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.2
10
+ // protoc v3.12.4
11
+ // source: service.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -25,7 +29,7 @@ proto.kycserviceapi = require('./service_pb.js');
25
29
  /**
26
30
  * @param {string} hostname
27
31
  * @param {?Object} credentials
28
- * @param {?Object} options
32
+ * @param {?grpc.web.ClientOptions} options
29
33
  * @constructor
30
34
  * @struct
31
35
  * @final
@@ -33,7 +37,7 @@ proto.kycserviceapi = require('./service_pb.js');
33
37
  proto.kycserviceapi.KYCServiceAPIServiceClient =
34
38
  function(hostname, credentials, options) {
35
39
  if (!options) options = {};
36
- options['format'] = 'text';
40
+ options.format = 'text';
37
41
 
38
42
  /**
39
43
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -43,7 +47,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient =
43
47
  /**
44
48
  * @private @const {string} The hostname
45
49
  */
46
- this.hostname_ = hostname;
50
+ this.hostname_ = hostname.replace(/\/+$/, '');
47
51
 
48
52
  };
49
53
 
@@ -51,7 +55,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient =
51
55
  /**
52
56
  * @param {string} hostname
53
57
  * @param {?Object} credentials
54
- * @param {?Object} options
58
+ * @param {?grpc.web.ClientOptions} options
55
59
  * @constructor
56
60
  * @struct
57
61
  * @final
@@ -59,7 +63,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient =
59
63
  proto.kycserviceapi.KYCServiceAPIServicePromiseClient =
60
64
  function(hostname, credentials, options) {
61
65
  if (!options) options = {};
62
- options['format'] = 'text';
66
+ options.format = 'text';
63
67
 
64
68
  /**
65
69
  * @private @const {!grpc.web.GrpcWebClientBase} The client
@@ -69,7 +73,7 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient =
69
73
  /**
70
74
  * @private @const {string} The hostname
71
75
  */
72
- this.hostname_ = hostname;
76
+ this.hostname_ = hostname.replace(/\/+$/, '');
73
77
 
74
78
  };
75
79
 
@@ -96,31 +100,12 @@ const methodDescriptor_KYCServiceAPIService_DeleteDocument = new grpc.web.Method
96
100
  );
97
101
 
98
102
 
99
- /**
100
- * @const
101
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
102
- * !proto.kycserviceapi.DeleteDocumentRequest,
103
- * !proto.kycserviceapi.ResponseCode>}
104
- */
105
- const methodInfo_KYCServiceAPIService_DeleteDocument = new grpc.web.AbstractClientBase.MethodInfo(
106
- proto.kycserviceapi.ResponseCode,
107
- /**
108
- * @param {!proto.kycserviceapi.DeleteDocumentRequest} request
109
- * @return {!Uint8Array}
110
- */
111
- function(request) {
112
- return request.serializeBinary();
113
- },
114
- proto.kycserviceapi.ResponseCode.deserializeBinary
115
- );
116
-
117
-
118
103
  /**
119
104
  * @param {!proto.kycserviceapi.DeleteDocumentRequest} request The
120
105
  * request proto
121
106
  * @param {?Object<string, string>} metadata User defined
122
107
  * call metadata
123
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
108
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
124
109
  * callback The callback function(error, response)
125
110
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
126
111
  * The XHR Node Readable Stream
@@ -139,7 +124,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.deleteDocument =
139
124
  /**
140
125
  * @param {!proto.kycserviceapi.DeleteDocumentRequest} request The
141
126
  * request proto
142
- * @param {?Object<string, string>} metadata User defined
127
+ * @param {?Object<string, string>=} metadata User defined
143
128
  * call metadata
144
129
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
145
130
  * Promise that resolves to the response
@@ -176,31 +161,12 @@ const methodDescriptor_KYCServiceAPIService_DeleteInternalKycAttachmentsDeleteOl
176
161
  );
177
162
 
178
163
 
179
- /**
180
- * @const
181
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
182
- * !proto.google.protobuf.Empty,
183
- * !proto.kycserviceapi.ResponseCode>}
184
- */
185
- const methodInfo_KYCServiceAPIService_DeleteInternalKycAttachmentsDeleteOld = new grpc.web.AbstractClientBase.MethodInfo(
186
- proto.kycserviceapi.ResponseCode,
187
- /**
188
- * @param {!proto.google.protobuf.Empty} request
189
- * @return {!Uint8Array}
190
- */
191
- function(request) {
192
- return request.serializeBinary();
193
- },
194
- proto.kycserviceapi.ResponseCode.deserializeBinary
195
- );
196
-
197
-
198
164
  /**
199
165
  * @param {!proto.google.protobuf.Empty} request The
200
166
  * request proto
201
167
  * @param {?Object<string, string>} metadata User defined
202
168
  * call metadata
203
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
169
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
204
170
  * callback The callback function(error, response)
205
171
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
206
172
  * The XHR Node Readable Stream
@@ -219,7 +185,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.deleteInternalKycAttach
219
185
  /**
220
186
  * @param {!proto.google.protobuf.Empty} request The
221
187
  * request proto
222
- * @param {?Object<string, string>} metadata User defined
188
+ * @param {?Object<string, string>=} metadata User defined
223
189
  * call metadata
224
190
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
225
191
  * Promise that resolves to the response
@@ -256,31 +222,12 @@ const methodDescriptor_KYCServiceAPIService_GetDocument = new grpc.web.MethodDes
256
222
  );
257
223
 
258
224
 
259
- /**
260
- * @const
261
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
262
- * !proto.kycserviceapi.GetDocumentRequest,
263
- * !proto.kycserviceapi.DocumentResponse>}
264
- */
265
- const methodInfo_KYCServiceAPIService_GetDocument = new grpc.web.AbstractClientBase.MethodInfo(
266
- proto.kycserviceapi.DocumentResponse,
267
- /**
268
- * @param {!proto.kycserviceapi.GetDocumentRequest} request
269
- * @return {!Uint8Array}
270
- */
271
- function(request) {
272
- return request.serializeBinary();
273
- },
274
- proto.kycserviceapi.DocumentResponse.deserializeBinary
275
- );
276
-
277
-
278
225
  /**
279
226
  * @param {!proto.kycserviceapi.GetDocumentRequest} request The
280
227
  * request proto
281
228
  * @param {?Object<string, string>} metadata User defined
282
229
  * call metadata
283
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.DocumentResponse)}
230
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.DocumentResponse)}
284
231
  * callback The callback function(error, response)
285
232
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.DocumentResponse>|undefined}
286
233
  * The XHR Node Readable Stream
@@ -299,7 +246,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getDocument =
299
246
  /**
300
247
  * @param {!proto.kycserviceapi.GetDocumentRequest} request The
301
248
  * request proto
302
- * @param {?Object<string, string>} metadata User defined
249
+ * @param {?Object<string, string>=} metadata User defined
303
250
  * call metadata
304
251
  * @return {!Promise<!proto.kycserviceapi.DocumentResponse>}
305
252
  * Promise that resolves to the response
@@ -336,31 +283,12 @@ const methodDescriptor_KYCServiceAPIService_GetUserKycStatus = new grpc.web.Meth
336
283
  );
337
284
 
338
285
 
339
- /**
340
- * @const
341
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
342
- * !proto.google.protobuf.Empty,
343
- * !proto.kycserviceapi.UserKycStatusResponse>}
344
- */
345
- const methodInfo_KYCServiceAPIService_GetUserKycStatus = new grpc.web.AbstractClientBase.MethodInfo(
346
- proto.kycserviceapi.UserKycStatusResponse,
347
- /**
348
- * @param {!proto.google.protobuf.Empty} request
349
- * @return {!Uint8Array}
350
- */
351
- function(request) {
352
- return request.serializeBinary();
353
- },
354
- proto.kycserviceapi.UserKycStatusResponse.deserializeBinary
355
- );
356
-
357
-
358
286
  /**
359
287
  * @param {!proto.google.protobuf.Empty} request The
360
288
  * request proto
361
289
  * @param {?Object<string, string>} metadata User defined
362
290
  * call metadata
363
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.UserKycStatusResponse)}
291
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.UserKycStatusResponse)}
364
292
  * callback The callback function(error, response)
365
293
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.UserKycStatusResponse>|undefined}
366
294
  * The XHR Node Readable Stream
@@ -379,7 +307,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getUserKycStatus =
379
307
  /**
380
308
  * @param {!proto.google.protobuf.Empty} request The
381
309
  * request proto
382
- * @param {?Object<string, string>} metadata User defined
310
+ * @param {?Object<string, string>=} metadata User defined
383
311
  * call metadata
384
312
  * @return {!Promise<!proto.kycserviceapi.UserKycStatusResponse>}
385
313
  * Promise that resolves to the response
@@ -397,32 +325,74 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.getUserKycStatus
397
325
  /**
398
326
  * @const
399
327
  * @type {!grpc.web.MethodDescriptor<
400
- * !proto.kycserviceapi.GetUserKycSummaryRequest,
401
- * !proto.kycserviceapi.UserKycSummaryResponse>}
328
+ * !proto.kycserviceapi.GetUserKycStatusInternalRequest,
329
+ * !proto.kycserviceapi.UserKycStatusResponse>}
402
330
  */
403
- const methodDescriptor_KYCServiceAPIService_GetUserKycSummary = new grpc.web.MethodDescriptor(
404
- '/kycserviceapi.KYCServiceAPIService/GetUserKycSummary',
331
+ const methodDescriptor_KYCServiceAPIService_GetUserKycStatusInternal = new grpc.web.MethodDescriptor(
332
+ '/kycserviceapi.KYCServiceAPIService/GetUserKycStatusInternal',
405
333
  grpc.web.MethodType.UNARY,
406
- proto.kycserviceapi.GetUserKycSummaryRequest,
407
- proto.kycserviceapi.UserKycSummaryResponse,
334
+ proto.kycserviceapi.GetUserKycStatusInternalRequest,
335
+ proto.kycserviceapi.UserKycStatusResponse,
408
336
  /**
409
- * @param {!proto.kycserviceapi.GetUserKycSummaryRequest} request
337
+ * @param {!proto.kycserviceapi.GetUserKycStatusInternalRequest} request
410
338
  * @return {!Uint8Array}
411
339
  */
412
340
  function(request) {
413
341
  return request.serializeBinary();
414
342
  },
415
- proto.kycserviceapi.UserKycSummaryResponse.deserializeBinary
343
+ proto.kycserviceapi.UserKycStatusResponse.deserializeBinary
416
344
  );
417
345
 
418
346
 
347
+ /**
348
+ * @param {!proto.kycserviceapi.GetUserKycStatusInternalRequest} request The
349
+ * request proto
350
+ * @param {?Object<string, string>} metadata User defined
351
+ * call metadata
352
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.UserKycStatusResponse)}
353
+ * callback The callback function(error, response)
354
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.UserKycStatusResponse>|undefined}
355
+ * The XHR Node Readable Stream
356
+ */
357
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getUserKycStatusInternal =
358
+ function(request, metadata, callback) {
359
+ return this.client_.rpcCall(this.hostname_ +
360
+ '/kycserviceapi.KYCServiceAPIService/GetUserKycStatusInternal',
361
+ request,
362
+ metadata || {},
363
+ methodDescriptor_KYCServiceAPIService_GetUserKycStatusInternal,
364
+ callback);
365
+ };
366
+
367
+
368
+ /**
369
+ * @param {!proto.kycserviceapi.GetUserKycStatusInternalRequest} request The
370
+ * request proto
371
+ * @param {?Object<string, string>=} metadata User defined
372
+ * call metadata
373
+ * @return {!Promise<!proto.kycserviceapi.UserKycStatusResponse>}
374
+ * Promise that resolves to the response
375
+ */
376
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.getUserKycStatusInternal =
377
+ function(request, metadata) {
378
+ return this.client_.unaryCall(this.hostname_ +
379
+ '/kycserviceapi.KYCServiceAPIService/GetUserKycStatusInternal',
380
+ request,
381
+ metadata || {},
382
+ methodDescriptor_KYCServiceAPIService_GetUserKycStatusInternal);
383
+ };
384
+
385
+
419
386
  /**
420
387
  * @const
421
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
388
+ * @type {!grpc.web.MethodDescriptor<
422
389
  * !proto.kycserviceapi.GetUserKycSummaryRequest,
423
390
  * !proto.kycserviceapi.UserKycSummaryResponse>}
424
391
  */
425
- const methodInfo_KYCServiceAPIService_GetUserKycSummary = new grpc.web.AbstractClientBase.MethodInfo(
392
+ const methodDescriptor_KYCServiceAPIService_GetUserKycSummary = new grpc.web.MethodDescriptor(
393
+ '/kycserviceapi.KYCServiceAPIService/GetUserKycSummary',
394
+ grpc.web.MethodType.UNARY,
395
+ proto.kycserviceapi.GetUserKycSummaryRequest,
426
396
  proto.kycserviceapi.UserKycSummaryResponse,
427
397
  /**
428
398
  * @param {!proto.kycserviceapi.GetUserKycSummaryRequest} request
@@ -440,7 +410,7 @@ const methodInfo_KYCServiceAPIService_GetUserKycSummary = new grpc.web.AbstractC
440
410
  * request proto
441
411
  * @param {?Object<string, string>} metadata User defined
442
412
  * call metadata
443
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.UserKycSummaryResponse)}
413
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.UserKycSummaryResponse)}
444
414
  * callback The callback function(error, response)
445
415
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.UserKycSummaryResponse>|undefined}
446
416
  * The XHR Node Readable Stream
@@ -459,7 +429,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getUserKycSummary =
459
429
  /**
460
430
  * @param {!proto.kycserviceapi.GetUserKycSummaryRequest} request The
461
431
  * request proto
462
- * @param {?Object<string, string>} metadata User defined
432
+ * @param {?Object<string, string>=} metadata User defined
463
433
  * call metadata
464
434
  * @return {!Promise<!proto.kycserviceapi.UserKycSummaryResponse>}
465
435
  * Promise that resolves to the response
@@ -496,31 +466,12 @@ const methodDescriptor_KYCServiceAPIService_HealthCheck = new grpc.web.MethodDes
496
466
  );
497
467
 
498
468
 
499
- /**
500
- * @const
501
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
502
- * !proto.google.protobuf.Empty,
503
- * !proto.kycserviceapi.ResponseCode>}
504
- */
505
- const methodInfo_KYCServiceAPIService_HealthCheck = new grpc.web.AbstractClientBase.MethodInfo(
506
- proto.kycserviceapi.ResponseCode,
507
- /**
508
- * @param {!proto.google.protobuf.Empty} request
509
- * @return {!Uint8Array}
510
- */
511
- function(request) {
512
- return request.serializeBinary();
513
- },
514
- proto.kycserviceapi.ResponseCode.deserializeBinary
515
- );
516
-
517
-
518
469
  /**
519
470
  * @param {!proto.google.protobuf.Empty} request The
520
471
  * request proto
521
472
  * @param {?Object<string, string>} metadata User defined
522
473
  * call metadata
523
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
474
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
524
475
  * callback The callback function(error, response)
525
476
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
526
477
  * The XHR Node Readable Stream
@@ -539,7 +490,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.healthCheck =
539
490
  /**
540
491
  * @param {!proto.google.protobuf.Empty} request The
541
492
  * request proto
542
- * @param {?Object<string, string>} metadata User defined
493
+ * @param {?Object<string, string>=} metadata User defined
543
494
  * call metadata
544
495
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
545
496
  * Promise that resolves to the response
@@ -576,31 +527,12 @@ const methodDescriptor_KYCServiceAPIService_NotifyUser = new grpc.web.MethodDesc
576
527
  );
577
528
 
578
529
 
579
- /**
580
- * @const
581
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
582
- * !proto.kycserviceapi.NotifyUserRequest,
583
- * !proto.kycserviceapi.ResponseCode>}
584
- */
585
- const methodInfo_KYCServiceAPIService_NotifyUser = new grpc.web.AbstractClientBase.MethodInfo(
586
- proto.kycserviceapi.ResponseCode,
587
- /**
588
- * @param {!proto.kycserviceapi.NotifyUserRequest} request
589
- * @return {!Uint8Array}
590
- */
591
- function(request) {
592
- return request.serializeBinary();
593
- },
594
- proto.kycserviceapi.ResponseCode.deserializeBinary
595
- );
596
-
597
-
598
530
  /**
599
531
  * @param {!proto.kycserviceapi.NotifyUserRequest} request The
600
532
  * request proto
601
533
  * @param {?Object<string, string>} metadata User defined
602
534
  * call metadata
603
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
535
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
604
536
  * callback The callback function(error, response)
605
537
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
606
538
  * The XHR Node Readable Stream
@@ -619,7 +551,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.notifyUser =
619
551
  /**
620
552
  * @param {!proto.kycserviceapi.NotifyUserRequest} request The
621
553
  * request proto
622
- * @param {?Object<string, string>} metadata User defined
554
+ * @param {?Object<string, string>=} metadata User defined
623
555
  * call metadata
624
556
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
625
557
  * Promise that resolves to the response
@@ -656,31 +588,12 @@ const methodDescriptor_KYCServiceAPIService_RequestUserKyc = new grpc.web.Method
656
588
  );
657
589
 
658
590
 
659
- /**
660
- * @const
661
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
662
- * !proto.kycserviceapi.RequestUserKycRequest,
663
- * !proto.kycserviceapi.ResponseCode>}
664
- */
665
- const methodInfo_KYCServiceAPIService_RequestUserKyc = new grpc.web.AbstractClientBase.MethodInfo(
666
- proto.kycserviceapi.ResponseCode,
667
- /**
668
- * @param {!proto.kycserviceapi.RequestUserKycRequest} request
669
- * @return {!Uint8Array}
670
- */
671
- function(request) {
672
- return request.serializeBinary();
673
- },
674
- proto.kycserviceapi.ResponseCode.deserializeBinary
675
- );
676
-
677
-
678
591
  /**
679
592
  * @param {!proto.kycserviceapi.RequestUserKycRequest} request The
680
593
  * request proto
681
594
  * @param {?Object<string, string>} metadata User defined
682
595
  * call metadata
683
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
596
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
684
597
  * callback The callback function(error, response)
685
598
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
686
599
  * The XHR Node Readable Stream
@@ -699,7 +612,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.requestUserKyc =
699
612
  /**
700
613
  * @param {!proto.kycserviceapi.RequestUserKycRequest} request The
701
614
  * request proto
702
- * @param {?Object<string, string>} metadata User defined
615
+ * @param {?Object<string, string>=} metadata User defined
703
616
  * call metadata
704
617
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
705
618
  * Promise that resolves to the response
@@ -736,31 +649,12 @@ const methodDescriptor_KYCServiceAPIService_SaveDocument = new grpc.web.MethodDe
736
649
  );
737
650
 
738
651
 
739
- /**
740
- * @const
741
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
742
- * !proto.kycserviceapi.SaveDocumentRequest,
743
- * !proto.kycserviceapi.ResponseCode>}
744
- */
745
- const methodInfo_KYCServiceAPIService_SaveDocument = new grpc.web.AbstractClientBase.MethodInfo(
746
- proto.kycserviceapi.ResponseCode,
747
- /**
748
- * @param {!proto.kycserviceapi.SaveDocumentRequest} request
749
- * @return {!Uint8Array}
750
- */
751
- function(request) {
752
- return request.serializeBinary();
753
- },
754
- proto.kycserviceapi.ResponseCode.deserializeBinary
755
- );
756
-
757
-
758
652
  /**
759
653
  * @param {!proto.kycserviceapi.SaveDocumentRequest} request The
760
654
  * request proto
761
655
  * @param {?Object<string, string>} metadata User defined
762
656
  * call metadata
763
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
657
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
764
658
  * callback The callback function(error, response)
765
659
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
766
660
  * The XHR Node Readable Stream
@@ -779,7 +673,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.saveDocument =
779
673
  /**
780
674
  * @param {!proto.kycserviceapi.SaveDocumentRequest} request The
781
675
  * request proto
782
- * @param {?Object<string, string>} metadata User defined
676
+ * @param {?Object<string, string>=} metadata User defined
783
677
  * call metadata
784
678
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
785
679
  * Promise that resolves to the response
@@ -816,31 +710,12 @@ const methodDescriptor_KYCServiceAPIService_SubmitUserKyc = new grpc.web.MethodD
816
710
  );
817
711
 
818
712
 
819
- /**
820
- * @const
821
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
822
- * !proto.google.protobuf.Empty,
823
- * !proto.kycserviceapi.ResponseCode>}
824
- */
825
- const methodInfo_KYCServiceAPIService_SubmitUserKyc = new grpc.web.AbstractClientBase.MethodInfo(
826
- proto.kycserviceapi.ResponseCode,
827
- /**
828
- * @param {!proto.google.protobuf.Empty} request
829
- * @return {!Uint8Array}
830
- */
831
- function(request) {
832
- return request.serializeBinary();
833
- },
834
- proto.kycserviceapi.ResponseCode.deserializeBinary
835
- );
836
-
837
-
838
713
  /**
839
714
  * @param {!proto.google.protobuf.Empty} request The
840
715
  * request proto
841
716
  * @param {?Object<string, string>} metadata User defined
842
717
  * call metadata
843
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
718
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
844
719
  * callback The callback function(error, response)
845
720
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
846
721
  * The XHR Node Readable Stream
@@ -859,7 +734,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.submitUserKyc =
859
734
  /**
860
735
  * @param {!proto.google.protobuf.Empty} request The
861
736
  * request proto
862
- * @param {?Object<string, string>} metadata User defined
737
+ * @param {?Object<string, string>=} metadata User defined
863
738
  * call metadata
864
739
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
865
740
  * Promise that resolves to the response
@@ -896,31 +771,12 @@ const methodDescriptor_KYCServiceAPIService_UpdateKycUserStatus = new grpc.web.M
896
771
  );
897
772
 
898
773
 
899
- /**
900
- * @const
901
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
902
- * !proto.kycserviceapi.UpdateKycUserStatusRequest,
903
- * !proto.kycserviceapi.ResponseCode>}
904
- */
905
- const methodInfo_KYCServiceAPIService_UpdateKycUserStatus = new grpc.web.AbstractClientBase.MethodInfo(
906
- proto.kycserviceapi.ResponseCode,
907
- /**
908
- * @param {!proto.kycserviceapi.UpdateKycUserStatusRequest} request
909
- * @return {!Uint8Array}
910
- */
911
- function(request) {
912
- return request.serializeBinary();
913
- },
914
- proto.kycserviceapi.ResponseCode.deserializeBinary
915
- );
916
-
917
-
918
774
  /**
919
775
  * @param {!proto.kycserviceapi.UpdateKycUserStatusRequest} request The
920
776
  * request proto
921
777
  * @param {?Object<string, string>} metadata User defined
922
778
  * call metadata
923
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
779
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
924
780
  * callback The callback function(error, response)
925
781
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
926
782
  * The XHR Node Readable Stream
@@ -939,7 +795,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.updateKycUserStatus =
939
795
  /**
940
796
  * @param {!proto.kycserviceapi.UpdateKycUserStatusRequest} request The
941
797
  * request proto
942
- * @param {?Object<string, string>} metadata User defined
798
+ * @param {?Object<string, string>=} metadata User defined
943
799
  * call metadata
944
800
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
945
801
  * Promise that resolves to the response
@@ -976,31 +832,12 @@ const methodDescriptor_KYCServiceAPIService_VerifyDocument = new grpc.web.Method
976
832
  );
977
833
 
978
834
 
979
- /**
980
- * @const
981
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
982
- * !proto.kycserviceapi.VerifyDocumentRequest,
983
- * !proto.kycserviceapi.ResponseCode>}
984
- */
985
- const methodInfo_KYCServiceAPIService_VerifyDocument = new grpc.web.AbstractClientBase.MethodInfo(
986
- proto.kycserviceapi.ResponseCode,
987
- /**
988
- * @param {!proto.kycserviceapi.VerifyDocumentRequest} request
989
- * @return {!Uint8Array}
990
- */
991
- function(request) {
992
- return request.serializeBinary();
993
- },
994
- proto.kycserviceapi.ResponseCode.deserializeBinary
995
- );
996
-
997
-
998
835
  /**
999
836
  * @param {!proto.kycserviceapi.VerifyDocumentRequest} request The
1000
837
  * request proto
1001
838
  * @param {?Object<string, string>} metadata User defined
1002
839
  * call metadata
1003
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
840
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
1004
841
  * callback The callback function(error, response)
1005
842
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
1006
843
  * The XHR Node Readable Stream
@@ -1019,7 +856,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.verifyDocument =
1019
856
  /**
1020
857
  * @param {!proto.kycserviceapi.VerifyDocumentRequest} request The
1021
858
  * request proto
1022
- * @param {?Object<string, string>} metadata User defined
859
+ * @param {?Object<string, string>=} metadata User defined
1023
860
  * call metadata
1024
861
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
1025
862
  * Promise that resolves to the response
@@ -1056,31 +893,12 @@ const methodDescriptor_KYCServiceAPIService_VerifyUser = new grpc.web.MethodDesc
1056
893
  );
1057
894
 
1058
895
 
1059
- /**
1060
- * @const
1061
- * @type {!grpc.web.AbstractClientBase.MethodInfo<
1062
- * !proto.kycserviceapi.VerifyUserRequest,
1063
- * !proto.kycserviceapi.ResponseCode>}
1064
- */
1065
- const methodInfo_KYCServiceAPIService_VerifyUser = new grpc.web.AbstractClientBase.MethodInfo(
1066
- proto.kycserviceapi.ResponseCode,
1067
- /**
1068
- * @param {!proto.kycserviceapi.VerifyUserRequest} request
1069
- * @return {!Uint8Array}
1070
- */
1071
- function(request) {
1072
- return request.serializeBinary();
1073
- },
1074
- proto.kycserviceapi.ResponseCode.deserializeBinary
1075
- );
1076
-
1077
-
1078
896
  /**
1079
897
  * @param {!proto.kycserviceapi.VerifyUserRequest} request The
1080
898
  * request proto
1081
899
  * @param {?Object<string, string>} metadata User defined
1082
900
  * call metadata
1083
- * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
901
+ * @param {function(?grpc.web.RpcError, ?proto.kycserviceapi.ResponseCode)}
1084
902
  * callback The callback function(error, response)
1085
903
  * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
1086
904
  * The XHR Node Readable Stream
@@ -1099,7 +917,7 @@ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.verifyUser =
1099
917
  /**
1100
918
  * @param {!proto.kycserviceapi.VerifyUserRequest} request The
1101
919
  * request proto
1102
- * @param {?Object<string, string>} metadata User defined
920
+ * @param {?Object<string, string>=} metadata User defined
1103
921
  * call metadata
1104
922
  * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
1105
923
  * Promise that resolves to the response