@stashfin/grpc 1.2.655 → 1.2.656
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/package.json +1 -1
- package/ts/kyc/authbridgepancomprehend.d.ts +86 -0
- package/ts/kyc/authbridgepancomprehend.js +652 -0
- package/ts/kyc.d.ts +14 -0
- package/ts/kyc.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "kyc.authbridgepancomprehend";
|
|
3
|
+
export interface authbridgeRequest {
|
|
4
|
+
transID: string;
|
|
5
|
+
docType: number;
|
|
6
|
+
PanNumber: string;
|
|
7
|
+
}
|
|
8
|
+
export interface authbridgeResponse {
|
|
9
|
+
data: Data | undefined;
|
|
10
|
+
message: string;
|
|
11
|
+
message_code: string;
|
|
12
|
+
status: number;
|
|
13
|
+
status_code: number;
|
|
14
|
+
success: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface Address {
|
|
17
|
+
city: string;
|
|
18
|
+
country: string;
|
|
19
|
+
full: string;
|
|
20
|
+
line_1: string;
|
|
21
|
+
line_2: string;
|
|
22
|
+
state: string;
|
|
23
|
+
street_name: string;
|
|
24
|
+
zip: string;
|
|
25
|
+
}
|
|
26
|
+
export interface Data {
|
|
27
|
+
aadhaar_linked: boolean;
|
|
28
|
+
address: Address | undefined;
|
|
29
|
+
category: string;
|
|
30
|
+
client_id: string;
|
|
31
|
+
dob: string;
|
|
32
|
+
dob_check: boolean;
|
|
33
|
+
dob_verified: boolean;
|
|
34
|
+
email: string;
|
|
35
|
+
full_name: string;
|
|
36
|
+
full_name_split: string[];
|
|
37
|
+
gender: string;
|
|
38
|
+
input_dob: string;
|
|
39
|
+
less_info: boolean;
|
|
40
|
+
masked_aadhaar: string;
|
|
41
|
+
pan_number: string;
|
|
42
|
+
phone_number: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const authbridgeRequest: {
|
|
45
|
+
encode(message: authbridgeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): authbridgeRequest;
|
|
47
|
+
fromJSON(object: any): authbridgeRequest;
|
|
48
|
+
toJSON(message: authbridgeRequest): unknown;
|
|
49
|
+
create<I extends Exact<DeepPartial<authbridgeRequest>, I>>(base?: I): authbridgeRequest;
|
|
50
|
+
fromPartial<I extends Exact<DeepPartial<authbridgeRequest>, I>>(object: I): authbridgeRequest;
|
|
51
|
+
};
|
|
52
|
+
export declare const authbridgeResponse: {
|
|
53
|
+
encode(message: authbridgeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
54
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): authbridgeResponse;
|
|
55
|
+
fromJSON(object: any): authbridgeResponse;
|
|
56
|
+
toJSON(message: authbridgeResponse): unknown;
|
|
57
|
+
create<I extends Exact<DeepPartial<authbridgeResponse>, I>>(base?: I): authbridgeResponse;
|
|
58
|
+
fromPartial<I extends Exact<DeepPartial<authbridgeResponse>, I>>(object: I): authbridgeResponse;
|
|
59
|
+
};
|
|
60
|
+
export declare const Address: {
|
|
61
|
+
encode(message: Address, writer?: _m0.Writer): _m0.Writer;
|
|
62
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Address;
|
|
63
|
+
fromJSON(object: any): Address;
|
|
64
|
+
toJSON(message: Address): unknown;
|
|
65
|
+
create<I extends Exact<DeepPartial<Address>, I>>(base?: I): Address;
|
|
66
|
+
fromPartial<I extends Exact<DeepPartial<Address>, I>>(object: I): Address;
|
|
67
|
+
};
|
|
68
|
+
export declare const Data: {
|
|
69
|
+
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
70
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data;
|
|
71
|
+
fromJSON(object: any): Data;
|
|
72
|
+
toJSON(message: Data): unknown;
|
|
73
|
+
create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
|
|
74
|
+
fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
|
|
75
|
+
};
|
|
76
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
77
|
+
export 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 {} ? {
|
|
78
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
79
|
+
} : Partial<T>;
|
|
80
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
81
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
82
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
83
|
+
} & {
|
|
84
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
85
|
+
};
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.1
|
|
5
|
+
// protoc v3.20.3
|
|
6
|
+
// source: kyc/authbridgepancomprehend.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.Data = exports.Address = exports.authbridgeResponse = exports.authbridgeRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "kyc.authbridgepancomprehend";
|
|
15
|
+
function createBaseauthbridgeRequest() {
|
|
16
|
+
return { transID: "", docType: 0, PanNumber: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.authbridgeRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.transID !== "") {
|
|
21
|
+
writer.uint32(10).string(message.transID);
|
|
22
|
+
}
|
|
23
|
+
if (message.docType !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.docType);
|
|
25
|
+
}
|
|
26
|
+
if (message.PanNumber !== "") {
|
|
27
|
+
writer.uint32(26).string(message.PanNumber);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseauthbridgeRequest();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 10) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.transID = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 16) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.docType = reader.int32();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.PanNumber = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
transID: isSet(object.transID) ? globalThis.String(object.transID) : "",
|
|
67
|
+
docType: isSet(object.docType) ? globalThis.Number(object.docType) : 0,
|
|
68
|
+
PanNumber: isSet(object.PanNumber) ? globalThis.String(object.PanNumber) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.transID !== "") {
|
|
74
|
+
obj.transID = message.transID;
|
|
75
|
+
}
|
|
76
|
+
if (message.docType !== 0) {
|
|
77
|
+
obj.docType = Math.round(message.docType);
|
|
78
|
+
}
|
|
79
|
+
if (message.PanNumber !== "") {
|
|
80
|
+
obj.PanNumber = message.PanNumber;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.authbridgeRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseauthbridgeRequest();
|
|
89
|
+
message.transID = object.transID ?? "";
|
|
90
|
+
message.docType = object.docType ?? 0;
|
|
91
|
+
message.PanNumber = object.PanNumber ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBaseauthbridgeResponse() {
|
|
96
|
+
return { data: undefined, message: "", message_code: "", status: 0, status_code: 0, success: false };
|
|
97
|
+
}
|
|
98
|
+
exports.authbridgeResponse = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.data !== undefined) {
|
|
101
|
+
exports.Data.encode(message.data, writer.uint32(10).fork()).ldelim();
|
|
102
|
+
}
|
|
103
|
+
if (message.message !== "") {
|
|
104
|
+
writer.uint32(18).string(message.message);
|
|
105
|
+
}
|
|
106
|
+
if (message.message_code !== "") {
|
|
107
|
+
writer.uint32(26).string(message.message_code);
|
|
108
|
+
}
|
|
109
|
+
if (message.status !== 0) {
|
|
110
|
+
writer.uint32(32).int32(message.status);
|
|
111
|
+
}
|
|
112
|
+
if (message.status_code !== 0) {
|
|
113
|
+
writer.uint32(40).int32(message.status_code);
|
|
114
|
+
}
|
|
115
|
+
if (message.success !== false) {
|
|
116
|
+
writer.uint32(48).bool(message.success);
|
|
117
|
+
}
|
|
118
|
+
return writer;
|
|
119
|
+
},
|
|
120
|
+
decode(input, length) {
|
|
121
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBaseauthbridgeResponse();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
if (tag !== 10) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
message.data = exports.Data.decode(reader, reader.uint32());
|
|
132
|
+
continue;
|
|
133
|
+
case 2:
|
|
134
|
+
if (tag !== 18) {
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
message.message = reader.string();
|
|
138
|
+
continue;
|
|
139
|
+
case 3:
|
|
140
|
+
if (tag !== 26) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
message.message_code = reader.string();
|
|
144
|
+
continue;
|
|
145
|
+
case 4:
|
|
146
|
+
if (tag !== 32) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
message.status = reader.int32();
|
|
150
|
+
continue;
|
|
151
|
+
case 5:
|
|
152
|
+
if (tag !== 40) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.status_code = reader.int32();
|
|
156
|
+
continue;
|
|
157
|
+
case 6:
|
|
158
|
+
if (tag !== 48) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
message.success = reader.bool();
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
reader.skipType(tag & 7);
|
|
168
|
+
}
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
fromJSON(object) {
|
|
172
|
+
return {
|
|
173
|
+
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
174
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
175
|
+
message_code: isSet(object.message_code) ? globalThis.String(object.message_code) : "",
|
|
176
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
177
|
+
status_code: isSet(object.status_code) ? globalThis.Number(object.status_code) : 0,
|
|
178
|
+
success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
toJSON(message) {
|
|
182
|
+
const obj = {};
|
|
183
|
+
if (message.data !== undefined) {
|
|
184
|
+
obj.data = exports.Data.toJSON(message.data);
|
|
185
|
+
}
|
|
186
|
+
if (message.message !== "") {
|
|
187
|
+
obj.message = message.message;
|
|
188
|
+
}
|
|
189
|
+
if (message.message_code !== "") {
|
|
190
|
+
obj.message_code = message.message_code;
|
|
191
|
+
}
|
|
192
|
+
if (message.status !== 0) {
|
|
193
|
+
obj.status = Math.round(message.status);
|
|
194
|
+
}
|
|
195
|
+
if (message.status_code !== 0) {
|
|
196
|
+
obj.status_code = Math.round(message.status_code);
|
|
197
|
+
}
|
|
198
|
+
if (message.success !== false) {
|
|
199
|
+
obj.success = message.success;
|
|
200
|
+
}
|
|
201
|
+
return obj;
|
|
202
|
+
},
|
|
203
|
+
create(base) {
|
|
204
|
+
return exports.authbridgeResponse.fromPartial(base ?? {});
|
|
205
|
+
},
|
|
206
|
+
fromPartial(object) {
|
|
207
|
+
const message = createBaseauthbridgeResponse();
|
|
208
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
209
|
+
message.message = object.message ?? "";
|
|
210
|
+
message.message_code = object.message_code ?? "";
|
|
211
|
+
message.status = object.status ?? 0;
|
|
212
|
+
message.status_code = object.status_code ?? 0;
|
|
213
|
+
message.success = object.success ?? false;
|
|
214
|
+
return message;
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
function createBaseAddress() {
|
|
218
|
+
return { city: "", country: "", full: "", line_1: "", line_2: "", state: "", street_name: "", zip: "" };
|
|
219
|
+
}
|
|
220
|
+
exports.Address = {
|
|
221
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
222
|
+
if (message.city !== "") {
|
|
223
|
+
writer.uint32(10).string(message.city);
|
|
224
|
+
}
|
|
225
|
+
if (message.country !== "") {
|
|
226
|
+
writer.uint32(18).string(message.country);
|
|
227
|
+
}
|
|
228
|
+
if (message.full !== "") {
|
|
229
|
+
writer.uint32(26).string(message.full);
|
|
230
|
+
}
|
|
231
|
+
if (message.line_1 !== "") {
|
|
232
|
+
writer.uint32(34).string(message.line_1);
|
|
233
|
+
}
|
|
234
|
+
if (message.line_2 !== "") {
|
|
235
|
+
writer.uint32(42).string(message.line_2);
|
|
236
|
+
}
|
|
237
|
+
if (message.state !== "") {
|
|
238
|
+
writer.uint32(50).string(message.state);
|
|
239
|
+
}
|
|
240
|
+
if (message.street_name !== "") {
|
|
241
|
+
writer.uint32(58).string(message.street_name);
|
|
242
|
+
}
|
|
243
|
+
if (message.zip !== "") {
|
|
244
|
+
writer.uint32(66).string(message.zip);
|
|
245
|
+
}
|
|
246
|
+
return writer;
|
|
247
|
+
},
|
|
248
|
+
decode(input, length) {
|
|
249
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
250
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
251
|
+
const message = createBaseAddress();
|
|
252
|
+
while (reader.pos < end) {
|
|
253
|
+
const tag = reader.uint32();
|
|
254
|
+
switch (tag >>> 3) {
|
|
255
|
+
case 1:
|
|
256
|
+
if (tag !== 10) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
message.city = reader.string();
|
|
260
|
+
continue;
|
|
261
|
+
case 2:
|
|
262
|
+
if (tag !== 18) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
message.country = reader.string();
|
|
266
|
+
continue;
|
|
267
|
+
case 3:
|
|
268
|
+
if (tag !== 26) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
message.full = reader.string();
|
|
272
|
+
continue;
|
|
273
|
+
case 4:
|
|
274
|
+
if (tag !== 34) {
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
message.line_1 = reader.string();
|
|
278
|
+
continue;
|
|
279
|
+
case 5:
|
|
280
|
+
if (tag !== 42) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
message.line_2 = reader.string();
|
|
284
|
+
continue;
|
|
285
|
+
case 6:
|
|
286
|
+
if (tag !== 50) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
message.state = reader.string();
|
|
290
|
+
continue;
|
|
291
|
+
case 7:
|
|
292
|
+
if (tag !== 58) {
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
message.street_name = reader.string();
|
|
296
|
+
continue;
|
|
297
|
+
case 8:
|
|
298
|
+
if (tag !== 66) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
message.zip = reader.string();
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
reader.skipType(tag & 7);
|
|
308
|
+
}
|
|
309
|
+
return message;
|
|
310
|
+
},
|
|
311
|
+
fromJSON(object) {
|
|
312
|
+
return {
|
|
313
|
+
city: isSet(object.city) ? globalThis.String(object.city) : "",
|
|
314
|
+
country: isSet(object.country) ? globalThis.String(object.country) : "",
|
|
315
|
+
full: isSet(object.full) ? globalThis.String(object.full) : "",
|
|
316
|
+
line_1: isSet(object.line_1) ? globalThis.String(object.line_1) : "",
|
|
317
|
+
line_2: isSet(object.line_2) ? globalThis.String(object.line_2) : "",
|
|
318
|
+
state: isSet(object.state) ? globalThis.String(object.state) : "",
|
|
319
|
+
street_name: isSet(object.street_name) ? globalThis.String(object.street_name) : "",
|
|
320
|
+
zip: isSet(object.zip) ? globalThis.String(object.zip) : "",
|
|
321
|
+
};
|
|
322
|
+
},
|
|
323
|
+
toJSON(message) {
|
|
324
|
+
const obj = {};
|
|
325
|
+
if (message.city !== "") {
|
|
326
|
+
obj.city = message.city;
|
|
327
|
+
}
|
|
328
|
+
if (message.country !== "") {
|
|
329
|
+
obj.country = message.country;
|
|
330
|
+
}
|
|
331
|
+
if (message.full !== "") {
|
|
332
|
+
obj.full = message.full;
|
|
333
|
+
}
|
|
334
|
+
if (message.line_1 !== "") {
|
|
335
|
+
obj.line_1 = message.line_1;
|
|
336
|
+
}
|
|
337
|
+
if (message.line_2 !== "") {
|
|
338
|
+
obj.line_2 = message.line_2;
|
|
339
|
+
}
|
|
340
|
+
if (message.state !== "") {
|
|
341
|
+
obj.state = message.state;
|
|
342
|
+
}
|
|
343
|
+
if (message.street_name !== "") {
|
|
344
|
+
obj.street_name = message.street_name;
|
|
345
|
+
}
|
|
346
|
+
if (message.zip !== "") {
|
|
347
|
+
obj.zip = message.zip;
|
|
348
|
+
}
|
|
349
|
+
return obj;
|
|
350
|
+
},
|
|
351
|
+
create(base) {
|
|
352
|
+
return exports.Address.fromPartial(base ?? {});
|
|
353
|
+
},
|
|
354
|
+
fromPartial(object) {
|
|
355
|
+
const message = createBaseAddress();
|
|
356
|
+
message.city = object.city ?? "";
|
|
357
|
+
message.country = object.country ?? "";
|
|
358
|
+
message.full = object.full ?? "";
|
|
359
|
+
message.line_1 = object.line_1 ?? "";
|
|
360
|
+
message.line_2 = object.line_2 ?? "";
|
|
361
|
+
message.state = object.state ?? "";
|
|
362
|
+
message.street_name = object.street_name ?? "";
|
|
363
|
+
message.zip = object.zip ?? "";
|
|
364
|
+
return message;
|
|
365
|
+
},
|
|
366
|
+
};
|
|
367
|
+
function createBaseData() {
|
|
368
|
+
return {
|
|
369
|
+
aadhaar_linked: false,
|
|
370
|
+
address: undefined,
|
|
371
|
+
category: "",
|
|
372
|
+
client_id: "",
|
|
373
|
+
dob: "",
|
|
374
|
+
dob_check: false,
|
|
375
|
+
dob_verified: false,
|
|
376
|
+
email: "",
|
|
377
|
+
full_name: "",
|
|
378
|
+
full_name_split: [],
|
|
379
|
+
gender: "",
|
|
380
|
+
input_dob: "",
|
|
381
|
+
less_info: false,
|
|
382
|
+
masked_aadhaar: "",
|
|
383
|
+
pan_number: "",
|
|
384
|
+
phone_number: "",
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
exports.Data = {
|
|
388
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
389
|
+
if (message.aadhaar_linked !== false) {
|
|
390
|
+
writer.uint32(8).bool(message.aadhaar_linked);
|
|
391
|
+
}
|
|
392
|
+
if (message.address !== undefined) {
|
|
393
|
+
exports.Address.encode(message.address, writer.uint32(18).fork()).ldelim();
|
|
394
|
+
}
|
|
395
|
+
if (message.category !== "") {
|
|
396
|
+
writer.uint32(26).string(message.category);
|
|
397
|
+
}
|
|
398
|
+
if (message.client_id !== "") {
|
|
399
|
+
writer.uint32(34).string(message.client_id);
|
|
400
|
+
}
|
|
401
|
+
if (message.dob !== "") {
|
|
402
|
+
writer.uint32(42).string(message.dob);
|
|
403
|
+
}
|
|
404
|
+
if (message.dob_check !== false) {
|
|
405
|
+
writer.uint32(48).bool(message.dob_check);
|
|
406
|
+
}
|
|
407
|
+
if (message.dob_verified !== false) {
|
|
408
|
+
writer.uint32(56).bool(message.dob_verified);
|
|
409
|
+
}
|
|
410
|
+
if (message.email !== "") {
|
|
411
|
+
writer.uint32(66).string(message.email);
|
|
412
|
+
}
|
|
413
|
+
if (message.full_name !== "") {
|
|
414
|
+
writer.uint32(74).string(message.full_name);
|
|
415
|
+
}
|
|
416
|
+
for (const v of message.full_name_split) {
|
|
417
|
+
writer.uint32(82).string(v);
|
|
418
|
+
}
|
|
419
|
+
if (message.gender !== "") {
|
|
420
|
+
writer.uint32(90).string(message.gender);
|
|
421
|
+
}
|
|
422
|
+
if (message.input_dob !== "") {
|
|
423
|
+
writer.uint32(98).string(message.input_dob);
|
|
424
|
+
}
|
|
425
|
+
if (message.less_info !== false) {
|
|
426
|
+
writer.uint32(104).bool(message.less_info);
|
|
427
|
+
}
|
|
428
|
+
if (message.masked_aadhaar !== "") {
|
|
429
|
+
writer.uint32(114).string(message.masked_aadhaar);
|
|
430
|
+
}
|
|
431
|
+
if (message.pan_number !== "") {
|
|
432
|
+
writer.uint32(122).string(message.pan_number);
|
|
433
|
+
}
|
|
434
|
+
if (message.phone_number !== "") {
|
|
435
|
+
writer.uint32(130).string(message.phone_number);
|
|
436
|
+
}
|
|
437
|
+
return writer;
|
|
438
|
+
},
|
|
439
|
+
decode(input, length) {
|
|
440
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
441
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
442
|
+
const message = createBaseData();
|
|
443
|
+
while (reader.pos < end) {
|
|
444
|
+
const tag = reader.uint32();
|
|
445
|
+
switch (tag >>> 3) {
|
|
446
|
+
case 1:
|
|
447
|
+
if (tag !== 8) {
|
|
448
|
+
break;
|
|
449
|
+
}
|
|
450
|
+
message.aadhaar_linked = reader.bool();
|
|
451
|
+
continue;
|
|
452
|
+
case 2:
|
|
453
|
+
if (tag !== 18) {
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
message.address = exports.Address.decode(reader, reader.uint32());
|
|
457
|
+
continue;
|
|
458
|
+
case 3:
|
|
459
|
+
if (tag !== 26) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
message.category = reader.string();
|
|
463
|
+
continue;
|
|
464
|
+
case 4:
|
|
465
|
+
if (tag !== 34) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
message.client_id = reader.string();
|
|
469
|
+
continue;
|
|
470
|
+
case 5:
|
|
471
|
+
if (tag !== 42) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
474
|
+
message.dob = reader.string();
|
|
475
|
+
continue;
|
|
476
|
+
case 6:
|
|
477
|
+
if (tag !== 48) {
|
|
478
|
+
break;
|
|
479
|
+
}
|
|
480
|
+
message.dob_check = reader.bool();
|
|
481
|
+
continue;
|
|
482
|
+
case 7:
|
|
483
|
+
if (tag !== 56) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
message.dob_verified = reader.bool();
|
|
487
|
+
continue;
|
|
488
|
+
case 8:
|
|
489
|
+
if (tag !== 66) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
message.email = reader.string();
|
|
493
|
+
continue;
|
|
494
|
+
case 9:
|
|
495
|
+
if (tag !== 74) {
|
|
496
|
+
break;
|
|
497
|
+
}
|
|
498
|
+
message.full_name = reader.string();
|
|
499
|
+
continue;
|
|
500
|
+
case 10:
|
|
501
|
+
if (tag !== 82) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
message.full_name_split.push(reader.string());
|
|
505
|
+
continue;
|
|
506
|
+
case 11:
|
|
507
|
+
if (tag !== 90) {
|
|
508
|
+
break;
|
|
509
|
+
}
|
|
510
|
+
message.gender = reader.string();
|
|
511
|
+
continue;
|
|
512
|
+
case 12:
|
|
513
|
+
if (tag !== 98) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
message.input_dob = reader.string();
|
|
517
|
+
continue;
|
|
518
|
+
case 13:
|
|
519
|
+
if (tag !== 104) {
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
message.less_info = reader.bool();
|
|
523
|
+
continue;
|
|
524
|
+
case 14:
|
|
525
|
+
if (tag !== 114) {
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
message.masked_aadhaar = reader.string();
|
|
529
|
+
continue;
|
|
530
|
+
case 15:
|
|
531
|
+
if (tag !== 122) {
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
message.pan_number = reader.string();
|
|
535
|
+
continue;
|
|
536
|
+
case 16:
|
|
537
|
+
if (tag !== 130) {
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
message.phone_number = reader.string();
|
|
541
|
+
continue;
|
|
542
|
+
}
|
|
543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
reader.skipType(tag & 7);
|
|
547
|
+
}
|
|
548
|
+
return message;
|
|
549
|
+
},
|
|
550
|
+
fromJSON(object) {
|
|
551
|
+
return {
|
|
552
|
+
aadhaar_linked: isSet(object.aadhaar_linked) ? globalThis.Boolean(object.aadhaar_linked) : false,
|
|
553
|
+
address: isSet(object.address) ? exports.Address.fromJSON(object.address) : undefined,
|
|
554
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
555
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
556
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
557
|
+
dob_check: isSet(object.dob_check) ? globalThis.Boolean(object.dob_check) : false,
|
|
558
|
+
dob_verified: isSet(object.dob_verified) ? globalThis.Boolean(object.dob_verified) : false,
|
|
559
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
560
|
+
full_name: isSet(object.full_name) ? globalThis.String(object.full_name) : "",
|
|
561
|
+
full_name_split: globalThis.Array.isArray(object?.full_name_split)
|
|
562
|
+
? object.full_name_split.map((e) => globalThis.String(e))
|
|
563
|
+
: [],
|
|
564
|
+
gender: isSet(object.gender) ? globalThis.String(object.gender) : "",
|
|
565
|
+
input_dob: isSet(object.input_dob) ? globalThis.String(object.input_dob) : "",
|
|
566
|
+
less_info: isSet(object.less_info) ? globalThis.Boolean(object.less_info) : false,
|
|
567
|
+
masked_aadhaar: isSet(object.masked_aadhaar) ? globalThis.String(object.masked_aadhaar) : "",
|
|
568
|
+
pan_number: isSet(object.pan_number) ? globalThis.String(object.pan_number) : "",
|
|
569
|
+
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
570
|
+
};
|
|
571
|
+
},
|
|
572
|
+
toJSON(message) {
|
|
573
|
+
const obj = {};
|
|
574
|
+
if (message.aadhaar_linked !== false) {
|
|
575
|
+
obj.aadhaar_linked = message.aadhaar_linked;
|
|
576
|
+
}
|
|
577
|
+
if (message.address !== undefined) {
|
|
578
|
+
obj.address = exports.Address.toJSON(message.address);
|
|
579
|
+
}
|
|
580
|
+
if (message.category !== "") {
|
|
581
|
+
obj.category = message.category;
|
|
582
|
+
}
|
|
583
|
+
if (message.client_id !== "") {
|
|
584
|
+
obj.client_id = message.client_id;
|
|
585
|
+
}
|
|
586
|
+
if (message.dob !== "") {
|
|
587
|
+
obj.dob = message.dob;
|
|
588
|
+
}
|
|
589
|
+
if (message.dob_check !== false) {
|
|
590
|
+
obj.dob_check = message.dob_check;
|
|
591
|
+
}
|
|
592
|
+
if (message.dob_verified !== false) {
|
|
593
|
+
obj.dob_verified = message.dob_verified;
|
|
594
|
+
}
|
|
595
|
+
if (message.email !== "") {
|
|
596
|
+
obj.email = message.email;
|
|
597
|
+
}
|
|
598
|
+
if (message.full_name !== "") {
|
|
599
|
+
obj.full_name = message.full_name;
|
|
600
|
+
}
|
|
601
|
+
if (message.full_name_split?.length) {
|
|
602
|
+
obj.full_name_split = message.full_name_split;
|
|
603
|
+
}
|
|
604
|
+
if (message.gender !== "") {
|
|
605
|
+
obj.gender = message.gender;
|
|
606
|
+
}
|
|
607
|
+
if (message.input_dob !== "") {
|
|
608
|
+
obj.input_dob = message.input_dob;
|
|
609
|
+
}
|
|
610
|
+
if (message.less_info !== false) {
|
|
611
|
+
obj.less_info = message.less_info;
|
|
612
|
+
}
|
|
613
|
+
if (message.masked_aadhaar !== "") {
|
|
614
|
+
obj.masked_aadhaar = message.masked_aadhaar;
|
|
615
|
+
}
|
|
616
|
+
if (message.pan_number !== "") {
|
|
617
|
+
obj.pan_number = message.pan_number;
|
|
618
|
+
}
|
|
619
|
+
if (message.phone_number !== "") {
|
|
620
|
+
obj.phone_number = message.phone_number;
|
|
621
|
+
}
|
|
622
|
+
return obj;
|
|
623
|
+
},
|
|
624
|
+
create(base) {
|
|
625
|
+
return exports.Data.fromPartial(base ?? {});
|
|
626
|
+
},
|
|
627
|
+
fromPartial(object) {
|
|
628
|
+
const message = createBaseData();
|
|
629
|
+
message.aadhaar_linked = object.aadhaar_linked ?? false;
|
|
630
|
+
message.address = (object.address !== undefined && object.address !== null)
|
|
631
|
+
? exports.Address.fromPartial(object.address)
|
|
632
|
+
: undefined;
|
|
633
|
+
message.category = object.category ?? "";
|
|
634
|
+
message.client_id = object.client_id ?? "";
|
|
635
|
+
message.dob = object.dob ?? "";
|
|
636
|
+
message.dob_check = object.dob_check ?? false;
|
|
637
|
+
message.dob_verified = object.dob_verified ?? false;
|
|
638
|
+
message.email = object.email ?? "";
|
|
639
|
+
message.full_name = object.full_name ?? "";
|
|
640
|
+
message.full_name_split = object.full_name_split?.map((e) => e) || [];
|
|
641
|
+
message.gender = object.gender ?? "";
|
|
642
|
+
message.input_dob = object.input_dob ?? "";
|
|
643
|
+
message.less_info = object.less_info ?? false;
|
|
644
|
+
message.masked_aadhaar = object.masked_aadhaar ?? "";
|
|
645
|
+
message.pan_number = object.pan_number ?? "";
|
|
646
|
+
message.phone_number = object.phone_number ?? "";
|
|
647
|
+
return message;
|
|
648
|
+
},
|
|
649
|
+
};
|
|
650
|
+
function isSet(value) {
|
|
651
|
+
return value !== null && value !== undefined;
|
|
652
|
+
}
|
package/ts/kyc.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { authbridgeRequest, authbridgeResponse } from "./kyc/authbridgepancomprehend";
|
|
2
3
|
import { faceMatchRequest, faceMatchResponse } from "./kyc/facematch";
|
|
3
4
|
import { fetchAadhaarByPanRequest, fetchAadhaarByPanResponse } from "./kyc/fetchaadhaarbypan";
|
|
4
5
|
import { fetchEmploymentHistoryRequest, fetchEmploymentHistoryResponse } from "./kyc/fetchemploymenthistory";
|
|
@@ -72,6 +73,15 @@ export declare const kycService: {
|
|
|
72
73
|
readonly responseSerialize: (value: fetchAadhaarByPanResponse) => Buffer;
|
|
73
74
|
readonly responseDeserialize: (value: Buffer) => fetchAadhaarByPanResponse;
|
|
74
75
|
};
|
|
76
|
+
readonly authBridgePanComprehand: {
|
|
77
|
+
readonly path: "/service.kyc/authBridgePanComprehand";
|
|
78
|
+
readonly requestStream: false;
|
|
79
|
+
readonly responseStream: false;
|
|
80
|
+
readonly requestSerialize: (value: authbridgeRequest) => Buffer;
|
|
81
|
+
readonly requestDeserialize: (value: Buffer) => authbridgeRequest;
|
|
82
|
+
readonly responseSerialize: (value: authbridgeResponse) => Buffer;
|
|
83
|
+
readonly responseDeserialize: (value: Buffer) => authbridgeResponse;
|
|
84
|
+
};
|
|
75
85
|
};
|
|
76
86
|
export interface kycServer extends UntypedServiceImplementation {
|
|
77
87
|
fetchUanList: handleUnaryCall<fetchUanListRequest, fetchUanListResponse>;
|
|
@@ -81,6 +91,7 @@ export interface kycServer extends UntypedServiceImplementation {
|
|
|
81
91
|
panValidation: handleUnaryCall<CustomerPanDetailRequest, CustomerPanDetailResponse>;
|
|
82
92
|
getSelfieRedirectionUrl: handleUnaryCall<GetSelfieRedirectionUrlRequest, GetSelfieRedirectionUrlResponse>;
|
|
83
93
|
fetchAadhaarByPan: handleUnaryCall<fetchAadhaarByPanRequest, fetchAadhaarByPanResponse>;
|
|
94
|
+
authBridgePanComprehand: handleUnaryCall<authbridgeRequest, authbridgeResponse>;
|
|
84
95
|
}
|
|
85
96
|
export interface kycClient extends Client {
|
|
86
97
|
fetchUanList(request: fetchUanListRequest, callback: (error: ServiceError | null, response: fetchUanListResponse) => void): ClientUnaryCall;
|
|
@@ -104,6 +115,9 @@ export interface kycClient extends Client {
|
|
|
104
115
|
fetchAadhaarByPan(request: fetchAadhaarByPanRequest, callback: (error: ServiceError | null, response: fetchAadhaarByPanResponse) => void): ClientUnaryCall;
|
|
105
116
|
fetchAadhaarByPan(request: fetchAadhaarByPanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: fetchAadhaarByPanResponse) => void): ClientUnaryCall;
|
|
106
117
|
fetchAadhaarByPan(request: fetchAadhaarByPanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: fetchAadhaarByPanResponse) => void): ClientUnaryCall;
|
|
118
|
+
authBridgePanComprehand(request: authbridgeRequest, callback: (error: ServiceError | null, response: authbridgeResponse) => void): ClientUnaryCall;
|
|
119
|
+
authBridgePanComprehand(request: authbridgeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: authbridgeResponse) => void): ClientUnaryCall;
|
|
120
|
+
authBridgePanComprehand(request: authbridgeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: authbridgeResponse) => void): ClientUnaryCall;
|
|
107
121
|
}
|
|
108
122
|
export declare const kycClient: {
|
|
109
123
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): kycClient;
|
package/ts/kyc.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.kycClient = exports.kycService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const authbridgepancomprehend_1 = require("./kyc/authbridgepancomprehend");
|
|
11
12
|
const facematch_1 = require("./kyc/facematch");
|
|
12
13
|
const fetchaadhaarbypan_1 = require("./kyc/fetchaadhaarbypan");
|
|
13
14
|
const fetchemploymenthistory_1 = require("./kyc/fetchemploymenthistory");
|
|
@@ -80,5 +81,14 @@ exports.kycService = {
|
|
|
80
81
|
responseSerialize: (value) => Buffer.from(fetchaadhaarbypan_1.fetchAadhaarByPanResponse.encode(value).finish()),
|
|
81
82
|
responseDeserialize: (value) => fetchaadhaarbypan_1.fetchAadhaarByPanResponse.decode(value),
|
|
82
83
|
},
|
|
84
|
+
authBridgePanComprehand: {
|
|
85
|
+
path: "/service.kyc/authBridgePanComprehand",
|
|
86
|
+
requestStream: false,
|
|
87
|
+
responseStream: false,
|
|
88
|
+
requestSerialize: (value) => Buffer.from(authbridgepancomprehend_1.authbridgeRequest.encode(value).finish()),
|
|
89
|
+
requestDeserialize: (value) => authbridgepancomprehend_1.authbridgeRequest.decode(value),
|
|
90
|
+
responseSerialize: (value) => Buffer.from(authbridgepancomprehend_1.authbridgeResponse.encode(value).finish()),
|
|
91
|
+
responseDeserialize: (value) => authbridgepancomprehend_1.authbridgeResponse.decode(value),
|
|
92
|
+
},
|
|
83
93
|
};
|
|
84
94
|
exports.kycClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.kycService, "service.kyc");
|