@trinsic/api 2.0.2 → 2.0.3
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/.openapi-generator/FILES +1 -2
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/BangladeshNidInput.d.ts +58 -0
- package/dist/esm/models/{BangladeshNationalIdInput.js → BangladeshNidInput.js} +12 -10
- package/dist/esm/models/BrazilDigitalCnhInput.d.ts +0 -6
- package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProblemDetails.d.ts +5 -5
- package/dist/esm/models/ProviderInput.d.ts +3 -3
- package/dist/esm/models/ProviderInput.js +3 -3
- package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/esm/models/RefreshStepContentRequest.js +3 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/BangladeshNidInput.d.ts +58 -0
- package/dist/models/{BangladeshNationalIdInput.js → BangladeshNidInput.js} +17 -15
- package/dist/models/BrazilDigitalCnhInput.d.ts +0 -6
- package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
- package/dist/models/ProblemDetails.d.ts +5 -5
- package/dist/models/ProviderInput.d.ts +3 -3
- package/dist/models/ProviderInput.js +3 -3
- package/dist/models/RefreshStepContentRequest.d.ts +1 -1
- package/dist/models/RefreshStepContentRequest.js +3 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/{BangladeshNationalIdInput.ts → BangladeshNidInput.ts} +28 -18
- package/src/models/BrazilDigitalCnhInput.ts +0 -6
- package/src/models/HttpValidationProblemDetails.ts +5 -5
- package/src/models/ProblemDetails.ts +5 -5
- package/src/models/ProviderInput.ts +11 -11
- package/src/models/RefreshStepContentRequest.ts +3 -2
- package/src/models/index.ts +1 -1
- package/dist/apis/WellKnownApi.d.ts +0 -41
- package/dist/apis/WellKnownApi.js +0 -61
- package/dist/esm/apis/WellKnownApi.d.ts +0 -41
- package/dist/esm/apis/WellKnownApi.js +0 -57
- package/dist/esm/models/BangladeshNationalIdInput.d.ts +0 -50
- package/dist/models/BangladeshNationalIdInput.d.ts +0 -50
- package/src/apis/WellKnownApi.ts +0 -82
package/dist/models/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './AadhaarInput';
|
|
2
2
|
export * from './Address';
|
|
3
3
|
export * from './AttachmentAccessKeys';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './BangladeshNidInput';
|
|
5
5
|
export * from './BrazilCpfCheckInput';
|
|
6
6
|
export * from './BrazilDigitalCnhInput';
|
|
7
7
|
export * from './CancelSessionResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AadhaarInput"), exports);
|
|
20
20
|
__exportStar(require("./Address"), exports);
|
|
21
21
|
__exportStar(require("./AttachmentAccessKeys"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./BangladeshNidInput"), exports);
|
|
23
23
|
__exportStar(require("./BrazilCpfCheckInput"), exports);
|
|
24
24
|
__exportStar(require("./BrazilDigitalCnhInput"), exports);
|
|
25
25
|
__exportStar(require("./CancelSessionResponse"), exports);
|
package/package.json
CHANGED
package/src/apis/index.ts
CHANGED
|
@@ -16,47 +16,55 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface BangladeshNidInput
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface BangladeshNidInput {
|
|
22
22
|
/**
|
|
23
23
|
* The user's Bangladesh National ID number.
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof BangladeshNidInput
|
|
26
26
|
*/
|
|
27
27
|
nationalIdNumber?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* The user's date of birth, in `YYYY-MM-DD` format
|
|
30
30
|
* @type {Date}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof BangladeshNidInput
|
|
32
32
|
*/
|
|
33
33
|
dateOfBirth?: Date | null;
|
|
34
34
|
/**
|
|
35
35
|
* The user's full name
|
|
36
36
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof BangladeshNidInput
|
|
38
38
|
*/
|
|
39
39
|
name?: string | null;
|
|
40
40
|
/**
|
|
41
|
-
* The
|
|
41
|
+
* The raw bytes of the photo file collected from the user.
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof BangladeshNidInput
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
photoByes?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The MIME Type of the file contained in `PhotoByes`.
|
|
48
|
+
*
|
|
49
|
+
* Must be one of `image/jpeg`, or `image/png`.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BangladeshNidInput
|
|
52
|
+
*/
|
|
53
|
+
photoImageMimeType?: string | null;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
/**
|
|
49
|
-
* Check if a given object implements the
|
|
57
|
+
* Check if a given object implements the BangladeshNidInput interface.
|
|
50
58
|
*/
|
|
51
|
-
export function
|
|
59
|
+
export function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput {
|
|
52
60
|
return true;
|
|
53
61
|
}
|
|
54
62
|
|
|
55
|
-
export function
|
|
56
|
-
return
|
|
63
|
+
export function BangladeshNidInputFromJSON(json: any): BangladeshNidInput {
|
|
64
|
+
return BangladeshNidInputFromJSONTyped(json, false);
|
|
57
65
|
}
|
|
58
66
|
|
|
59
|
-
export function
|
|
67
|
+
export function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNidInput {
|
|
60
68
|
if (json == null) {
|
|
61
69
|
return json;
|
|
62
70
|
}
|
|
@@ -65,15 +73,16 @@ export function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
65
73
|
'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
|
|
66
74
|
'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
|
|
67
75
|
'name': json['name'] == null ? undefined : json['name'],
|
|
68
|
-
'
|
|
76
|
+
'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
|
|
77
|
+
'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
|
|
69
78
|
};
|
|
70
79
|
}
|
|
71
80
|
|
|
72
|
-
export function
|
|
73
|
-
return
|
|
81
|
+
export function BangladeshNidInputToJSON(json: any): BangladeshNidInput {
|
|
82
|
+
return BangladeshNidInputToJSONTyped(json, false);
|
|
74
83
|
}
|
|
75
84
|
|
|
76
|
-
export function
|
|
85
|
+
export function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null, ignoreDiscriminator: boolean = false): any {
|
|
77
86
|
if (value == null) {
|
|
78
87
|
return value;
|
|
79
88
|
}
|
|
@@ -83,7 +92,8 @@ export function BangladeshNationalIdInputToJSONTyped(value?: BangladeshNationalI
|
|
|
83
92
|
'nationalIdNumber': value['nationalIdNumber'],
|
|
84
93
|
'dateOfBirth': value['dateOfBirth'] == null ? undefined : ((value['dateOfBirth'] as any).toISOString().substring(0,10)),
|
|
85
94
|
'name': value['name'],
|
|
86
|
-
'
|
|
95
|
+
'photoByes': value['photoByes'],
|
|
96
|
+
'photoImageMimeType': value['photoImageMimeType'],
|
|
87
97
|
};
|
|
88
98
|
}
|
|
89
99
|
|
|
@@ -27,12 +27,6 @@ export interface BrazilDigitalCnhInput {
|
|
|
27
27
|
cpfNumber: string;
|
|
28
28
|
/**
|
|
29
29
|
* The raw bytes of the digital CNH file collected from the user.
|
|
30
|
-
*
|
|
31
|
-
* TODO: Lucas or JP help me describe these below vvvvvvvv
|
|
32
|
-
* This can be:
|
|
33
|
-
* - An image containing a physical or digital QR code
|
|
34
|
-
* - A PDF file exported from the CNH app
|
|
35
|
-
* - Some scary third thing?
|
|
36
30
|
* @type {string}
|
|
37
31
|
* @memberof BrazilDigitalCnhInput
|
|
38
32
|
*/
|
|
@@ -20,31 +20,31 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface HttpValidationProblemDetails {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* A URI reference that identifies the problem type.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof HttpValidationProblemDetails
|
|
26
26
|
*/
|
|
27
27
|
type?: string | null;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* A short, human-readable summary of the error.
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof HttpValidationProblemDetails
|
|
32
32
|
*/
|
|
33
33
|
title?: string | null;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* The HTTP status code returned for the request.
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof HttpValidationProblemDetails
|
|
38
38
|
*/
|
|
39
39
|
status?: number | null;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* A human-readable explanation specific of the problem.
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof HttpValidationProblemDetails
|
|
44
44
|
*/
|
|
45
45
|
detail?: string | null;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof HttpValidationProblemDetails
|
|
50
50
|
*/
|
|
@@ -21,31 +21,31 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface ProblemDetails {
|
|
22
22
|
[key: string]: any | any;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* A URI reference that identifies the problem type.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof ProblemDetails
|
|
27
27
|
*/
|
|
28
28
|
type?: string | null;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* A short, human-readable summary of the error.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof ProblemDetails
|
|
33
33
|
*/
|
|
34
34
|
title?: string | null;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The HTTP status code returned for the request.
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof ProblemDetails
|
|
39
39
|
*/
|
|
40
40
|
status?: number | null;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* A human-readable explanation specific of the problem.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof ProblemDetails
|
|
45
45
|
*/
|
|
46
46
|
detail?: string | null;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof ProblemDetails
|
|
51
51
|
*/
|
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
|
|
17
|
-
import {
|
|
18
|
-
BangladeshNationalIdInputFromJSON,
|
|
19
|
-
BangladeshNationalIdInputFromJSONTyped,
|
|
20
|
-
BangladeshNationalIdInputToJSON,
|
|
21
|
-
BangladeshNationalIdInputToJSONTyped,
|
|
22
|
-
} from './BangladeshNationalIdInput';
|
|
23
16
|
import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
|
|
24
17
|
import {
|
|
25
18
|
BrazilCpfCheckInputFromJSON,
|
|
@@ -76,6 +69,13 @@ import {
|
|
|
76
69
|
PhilippineQRInputToJSON,
|
|
77
70
|
PhilippineQRInputToJSONTyped,
|
|
78
71
|
} from './PhilippineQRInput';
|
|
72
|
+
import type { BangladeshNidInput } from './BangladeshNidInput';
|
|
73
|
+
import {
|
|
74
|
+
BangladeshNidInputFromJSON,
|
|
75
|
+
BangladeshNidInputFromJSONTyped,
|
|
76
|
+
BangladeshNidInputToJSON,
|
|
77
|
+
BangladeshNidInputToJSONTyped,
|
|
78
|
+
} from './BangladeshNidInput';
|
|
79
79
|
import type { AadhaarInput } from './AadhaarInput';
|
|
80
80
|
import {
|
|
81
81
|
AadhaarInputFromJSON,
|
|
@@ -177,10 +177,10 @@ export interface ProviderInput {
|
|
|
177
177
|
aadhaar?: AadhaarInput | null;
|
|
178
178
|
/**
|
|
179
179
|
* Input for the `bangladesh-nid` provider
|
|
180
|
-
* @type {
|
|
180
|
+
* @type {BangladeshNidInput}
|
|
181
181
|
* @memberof ProviderInput
|
|
182
182
|
*/
|
|
183
|
-
bangladeshNationalId?:
|
|
183
|
+
bangladeshNationalId?: BangladeshNidInput | null;
|
|
184
184
|
/**
|
|
185
185
|
* Input for the `g-brazil-cpf` provider
|
|
186
186
|
* @type {BrazilCpfCheckInput}
|
|
@@ -270,7 +270,7 @@ export function ProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
270
270
|
'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
|
|
271
271
|
'nigeriaNin': json['nigeriaNin'] == null ? undefined : NigeriaNinInputFromJSON(json['nigeriaNin']),
|
|
272
272
|
'aadhaar': json['aadhaar'] == null ? undefined : AadhaarInputFromJSON(json['aadhaar']),
|
|
273
|
-
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined :
|
|
273
|
+
'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNidInputFromJSON(json['bangladeshNationalId']),
|
|
274
274
|
'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : BrazilCpfCheckInputFromJSON(json['brazilCpfCheck']),
|
|
275
275
|
'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
|
|
276
276
|
'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
|
|
@@ -301,7 +301,7 @@ export function ProviderInputToJSONTyped(value?: ProviderInput | null, ignoreDis
|
|
|
301
301
|
'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
|
|
302
302
|
'nigeriaNin': NigeriaNinInputToJSON(value['nigeriaNin']),
|
|
303
303
|
'aadhaar': AadhaarInputToJSON(value['aadhaar']),
|
|
304
|
-
'bangladeshNationalId':
|
|
304
|
+
'bangladeshNationalId': BangladeshNidInputToJSON(value['bangladeshNationalId']),
|
|
305
305
|
'brazilCpfCheck': BrazilCpfCheckInputToJSON(value['brazilCpfCheck']),
|
|
306
306
|
'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
|
|
307
307
|
'philippineMatch': PhilippineMatchInputToJSON(value['philippineMatch']),
|
|
@@ -24,13 +24,14 @@ export interface RefreshStepContentRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof RefreshStepContentRequest
|
|
26
26
|
*/
|
|
27
|
-
resultsAccessKey
|
|
27
|
+
resultsAccessKey: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the RefreshStepContentRequest interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfRefreshStepContentRequest(value: object): value is RefreshStepContentRequest {
|
|
34
|
+
if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined) return false;
|
|
34
35
|
return true;
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -44,7 +45,7 @@ export function RefreshStepContentRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
44
45
|
}
|
|
45
46
|
return {
|
|
46
47
|
|
|
47
|
-
'resultsAccessKey': json['resultsAccessKey']
|
|
48
|
+
'resultsAccessKey': json['resultsAccessKey'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
|
package/src/models/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export * from './AadhaarInput';
|
|
4
4
|
export * from './Address';
|
|
5
5
|
export * from './AttachmentAccessKeys';
|
|
6
|
-
export * from './
|
|
6
|
+
export * from './BangladeshNidInput';
|
|
7
7
|
export * from './BrazilCpfCheckInput';
|
|
8
8
|
export * from './BrazilDigitalCnhInput';
|
|
9
9
|
export * from './CancelSessionResponse';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trinsic API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
/**
|
|
14
|
-
* WellKnownApi - interface
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface WellKnownApiInterface
|
|
18
|
-
*/
|
|
19
|
-
export interface WellKnownApiInterface {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param {*} [options] Override http request option.
|
|
23
|
-
* @throws {RequiredError}
|
|
24
|
-
* @memberof WellKnownApiInterface
|
|
25
|
-
*/
|
|
26
|
-
interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
27
|
-
/**
|
|
28
|
-
*/
|
|
29
|
-
interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare class WellKnownApi extends runtime.BaseAPI implements WellKnownApiInterface {
|
|
35
|
-
/**
|
|
36
|
-
*/
|
|
37
|
-
interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
38
|
-
/**
|
|
39
|
-
*/
|
|
40
|
-
interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
41
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Trinsic API
|
|
6
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.WellKnownApi = void 0;
|
|
26
|
-
const runtime = require("../runtime");
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
class WellKnownApi extends runtime.BaseAPI {
|
|
31
|
-
/**
|
|
32
|
-
*/
|
|
33
|
-
interacJwkRaw(initOverrides) {
|
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
const queryParameters = {};
|
|
36
|
-
const headerParameters = {};
|
|
37
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
38
|
-
const token = this.configuration.accessToken;
|
|
39
|
-
const tokenString = yield token("Bearer", []);
|
|
40
|
-
if (tokenString) {
|
|
41
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
const response = yield this.request({
|
|
45
|
-
path: `/api/integrations/v1/interac/.well-known/jwks.json`,
|
|
46
|
-
method: 'GET',
|
|
47
|
-
headers: headerParameters,
|
|
48
|
-
query: queryParameters,
|
|
49
|
-
}, initOverrides);
|
|
50
|
-
return new runtime.VoidApiResponse(response);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
*/
|
|
55
|
-
interacJwk(initOverrides) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
yield this.interacJwkRaw(initOverrides);
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.WellKnownApi = WellKnownApi;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trinsic API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
/**
|
|
14
|
-
* WellKnownApi - interface
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface WellKnownApiInterface
|
|
18
|
-
*/
|
|
19
|
-
export interface WellKnownApiInterface {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param {*} [options] Override http request option.
|
|
23
|
-
* @throws {RequiredError}
|
|
24
|
-
* @memberof WellKnownApiInterface
|
|
25
|
-
*/
|
|
26
|
-
interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
27
|
-
/**
|
|
28
|
-
*/
|
|
29
|
-
interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare class WellKnownApi extends runtime.BaseAPI implements WellKnownApiInterface {
|
|
35
|
-
/**
|
|
36
|
-
*/
|
|
37
|
-
interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
38
|
-
/**
|
|
39
|
-
*/
|
|
40
|
-
interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
41
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Trinsic API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
import * as runtime from '../runtime';
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
export class WellKnownApi extends runtime.BaseAPI {
|
|
28
|
-
/**
|
|
29
|
-
*/
|
|
30
|
-
interacJwkRaw(initOverrides) {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const queryParameters = {};
|
|
33
|
-
const headerParameters = {};
|
|
34
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
35
|
-
const token = this.configuration.accessToken;
|
|
36
|
-
const tokenString = yield token("Bearer", []);
|
|
37
|
-
if (tokenString) {
|
|
38
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const response = yield this.request({
|
|
42
|
-
path: `/api/integrations/v1/interac/.well-known/jwks.json`,
|
|
43
|
-
method: 'GET',
|
|
44
|
-
headers: headerParameters,
|
|
45
|
-
query: queryParameters,
|
|
46
|
-
}, initOverrides);
|
|
47
|
-
return new runtime.VoidApiResponse(response);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
*/
|
|
52
|
-
interacJwk(initOverrides) {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
yield this.interacJwkRaw(initOverrides);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trinsic API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface BangladeshNationalIdInput
|
|
16
|
-
*/
|
|
17
|
-
export interface BangladeshNationalIdInput {
|
|
18
|
-
/**
|
|
19
|
-
* The user's Bangladesh National ID number.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof BangladeshNationalIdInput
|
|
22
|
-
*/
|
|
23
|
-
nationalIdNumber?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
-
* @type {Date}
|
|
27
|
-
* @memberof BangladeshNationalIdInput
|
|
28
|
-
*/
|
|
29
|
-
dateOfBirth?: Date | null;
|
|
30
|
-
/**
|
|
31
|
-
* The user's full name
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof BangladeshNationalIdInput
|
|
34
|
-
*/
|
|
35
|
-
name?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* The base64-encoded bytes of the photo collected from the user
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof BangladeshNationalIdInput
|
|
40
|
-
*/
|
|
41
|
-
photoBase64?: string | null;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the BangladeshNationalIdInput interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfBangladeshNationalIdInput(value: object): value is BangladeshNationalIdInput;
|
|
47
|
-
export declare function BangladeshNationalIdInputFromJSON(json: any): BangladeshNationalIdInput;
|
|
48
|
-
export declare function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNationalIdInput;
|
|
49
|
-
export declare function BangladeshNationalIdInputToJSON(json: any): BangladeshNationalIdInput;
|
|
50
|
-
export declare function BangladeshNationalIdInputToJSONTyped(value?: BangladeshNationalIdInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trinsic API
|
|
3
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface BangladeshNationalIdInput
|
|
16
|
-
*/
|
|
17
|
-
export interface BangladeshNationalIdInput {
|
|
18
|
-
/**
|
|
19
|
-
* The user's Bangladesh National ID number.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof BangladeshNationalIdInput
|
|
22
|
-
*/
|
|
23
|
-
nationalIdNumber?: string | null;
|
|
24
|
-
/**
|
|
25
|
-
* The user's date of birth, in `YYYY-MM-DD` format
|
|
26
|
-
* @type {Date}
|
|
27
|
-
* @memberof BangladeshNationalIdInput
|
|
28
|
-
*/
|
|
29
|
-
dateOfBirth?: Date | null;
|
|
30
|
-
/**
|
|
31
|
-
* The user's full name
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof BangladeshNationalIdInput
|
|
34
|
-
*/
|
|
35
|
-
name?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* The base64-encoded bytes of the photo collected from the user
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof BangladeshNationalIdInput
|
|
40
|
-
*/
|
|
41
|
-
photoBase64?: string | null;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the BangladeshNationalIdInput interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfBangladeshNationalIdInput(value: object): value is BangladeshNationalIdInput;
|
|
47
|
-
export declare function BangladeshNationalIdInputFromJSON(json: any): BangladeshNationalIdInput;
|
|
48
|
-
export declare function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNationalIdInput;
|
|
49
|
-
export declare function BangladeshNationalIdInputToJSON(json: any): BangladeshNationalIdInput;
|
|
50
|
-
export declare function BangladeshNationalIdInputToJSONTyped(value?: BangladeshNationalIdInput | null, ignoreDiscriminator?: boolean): any;
|