@trinsic/api 2.0.1 → 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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +1 -2
  2. package/dist/apis/index.d.ts +0 -1
  3. package/dist/apis/index.js +0 -1
  4. package/dist/esm/apis/index.d.ts +0 -1
  5. package/dist/esm/apis/index.js +0 -1
  6. package/dist/esm/models/BangladeshNidInput.d.ts +58 -0
  7. package/dist/esm/models/{BangladeshNationalIdInput.js → BangladeshNidInput.js} +12 -10
  8. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +0 -6
  9. package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
  10. package/dist/esm/models/ProblemDetails.d.ts +5 -5
  11. package/dist/esm/models/ProviderContract.d.ts +2 -3
  12. package/dist/esm/models/ProviderContract.js +3 -3
  13. package/dist/esm/models/ProviderInput.d.ts +3 -3
  14. package/dist/esm/models/ProviderInput.js +3 -3
  15. package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
  16. package/dist/esm/models/RefreshStepContentRequest.js +3 -1
  17. package/dist/esm/models/index.d.ts +1 -1
  18. package/dist/esm/models/index.js +1 -1
  19. package/dist/models/BangladeshNidInput.d.ts +58 -0
  20. package/dist/models/{BangladeshNationalIdInput.js → BangladeshNidInput.js} +17 -15
  21. package/dist/models/BrazilDigitalCnhInput.d.ts +0 -6
  22. package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
  23. package/dist/models/ProblemDetails.d.ts +5 -5
  24. package/dist/models/ProviderContract.d.ts +2 -3
  25. package/dist/models/ProviderContract.js +3 -3
  26. package/dist/models/ProviderInput.d.ts +3 -3
  27. package/dist/models/ProviderInput.js +3 -3
  28. package/dist/models/RefreshStepContentRequest.d.ts +1 -1
  29. package/dist/models/RefreshStepContentRequest.js +3 -1
  30. package/dist/models/index.d.ts +1 -1
  31. package/dist/models/index.js +1 -1
  32. package/package.json +1 -1
  33. package/src/apis/index.ts +0 -1
  34. package/src/models/{BangladeshNationalIdInput.ts → BangladeshNidInput.ts} +28 -18
  35. package/src/models/BrazilDigitalCnhInput.ts +0 -6
  36. package/src/models/HttpValidationProblemDetails.ts +5 -5
  37. package/src/models/ProblemDetails.ts +5 -5
  38. package/src/models/ProviderContract.ts +5 -6
  39. package/src/models/ProviderInput.ts +11 -11
  40. package/src/models/RefreshStepContentRequest.ts +3 -2
  41. package/src/models/index.ts +1 -1
  42. package/dist/apis/WellKnownApi.d.ts +0 -41
  43. package/dist/apis/WellKnownApi.js +0 -61
  44. package/dist/esm/apis/WellKnownApi.d.ts +0 -41
  45. package/dist/esm/apis/WellKnownApi.js +0 -57
  46. package/dist/esm/models/BangladeshNationalIdInput.d.ts +0 -50
  47. package/dist/models/BangladeshNationalIdInput.d.ts +0 -50
  48. package/src/apis/WellKnownApi.ts +0 -82
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { BangladeshNationalIdInput } from './BangladeshNationalIdInput';
13
12
  import type { BrazilCpfCheckInput } from './BrazilCpfCheckInput';
14
13
  import type { MexicoCurpInput } from './MexicoCurpInput';
15
14
  import type { BrazilDigitalCnhInput } from './BrazilDigitalCnhInput';
@@ -18,6 +17,7 @@ import type { SpidInput } from './SpidInput';
18
17
  import type { SouthAfricaNidInput } from './SouthAfricaNidInput';
19
18
  import type { PhilippineMatchInput } from './PhilippineMatchInput';
20
19
  import type { PhilippineQRInput } from './PhilippineQRInput';
20
+ import type { BangladeshNidInput } from './BangladeshNidInput';
21
21
  import type { AadhaarInput } from './AadhaarInput';
22
22
  import type { KenyaNidInput } from './KenyaNidInput';
23
23
  import type { NigeriaNinInput } from './NigeriaNinInput';
@@ -70,10 +70,10 @@ export interface ProviderInput {
70
70
  aadhaar?: AadhaarInput | null;
71
71
  /**
72
72
  * Input for the `bangladesh-nid` provider
73
- * @type {BangladeshNationalIdInput}
73
+ * @type {BangladeshNidInput}
74
74
  * @memberof ProviderInput
75
75
  */
76
- bangladeshNationalId?: BangladeshNationalIdInput | null;
76
+ bangladeshNationalId?: BangladeshNidInput | null;
77
77
  /**
78
78
  * Input for the `g-brazil-cpf` provider
79
79
  * @type {BrazilCpfCheckInput}
@@ -18,7 +18,6 @@ exports.ProviderInputFromJSON = ProviderInputFromJSON;
18
18
  exports.ProviderInputFromJSONTyped = ProviderInputFromJSONTyped;
19
19
  exports.ProviderInputToJSON = ProviderInputToJSON;
20
20
  exports.ProviderInputToJSONTyped = ProviderInputToJSONTyped;
21
- const BangladeshNationalIdInput_1 = require("./BangladeshNationalIdInput");
22
21
  const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
23
22
  const MexicoCurpInput_1 = require("./MexicoCurpInput");
24
23
  const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
@@ -27,6 +26,7 @@ const SpidInput_1 = require("./SpidInput");
27
26
  const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
28
27
  const PhilippineMatchInput_1 = require("./PhilippineMatchInput");
29
28
  const PhilippineQRInput_1 = require("./PhilippineQRInput");
29
+ const BangladeshNidInput_1 = require("./BangladeshNidInput");
30
30
  const AadhaarInput_1 = require("./AadhaarInput");
31
31
  const KenyaNidInput_1 = require("./KenyaNidInput");
32
32
  const NigeriaNinInput_1 = require("./NigeriaNinInput");
@@ -55,7 +55,7 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'kenyaNid': json['kenyaNid'] == null ? undefined : (0, KenyaNidInput_1.KenyaNidInputFromJSON)(json['kenyaNid']),
56
56
  'nigeriaNin': json['nigeriaNin'] == null ? undefined : (0, NigeriaNinInput_1.NigeriaNinInputFromJSON)(json['nigeriaNin']),
57
57
  'aadhaar': json['aadhaar'] == null ? undefined : (0, AadhaarInput_1.AadhaarInputFromJSON)(json['aadhaar']),
58
- 'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputFromJSON)(json['bangladeshNationalId']),
58
+ 'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0, BangladeshNidInput_1.BangladeshNidInputFromJSON)(json['bangladeshNationalId']),
59
59
  'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputFromJSON)(json['brazilCpfCheck']),
60
60
  'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputFromJSON)(json['brazilDigitalCnh']),
61
61
  'philippineMatch': json['philippineMatch'] == null ? undefined : (0, PhilippineMatchInput_1.PhilippineMatchInputFromJSON)(json['philippineMatch']),
@@ -82,7 +82,7 @@ function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  'kenyaNid': (0, KenyaNidInput_1.KenyaNidInputToJSON)(value['kenyaNid']),
83
83
  'nigeriaNin': (0, NigeriaNinInput_1.NigeriaNinInputToJSON)(value['nigeriaNin']),
84
84
  'aadhaar': (0, AadhaarInput_1.AadhaarInputToJSON)(value['aadhaar']),
85
- 'bangladeshNationalId': (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputToJSON)(value['bangladeshNationalId']),
85
+ 'bangladeshNationalId': (0, BangladeshNidInput_1.BangladeshNidInputToJSON)(value['bangladeshNationalId']),
86
86
  'brazilCpfCheck': (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputToJSON)(value['brazilCpfCheck']),
87
87
  'brazilDigitalCnh': (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputToJSON)(value['brazilDigitalCnh']),
88
88
  'philippineMatch': (0, PhilippineMatchInput_1.PhilippineMatchInputToJSON)(value['philippineMatch']),
@@ -20,7 +20,7 @@ export interface RefreshStepContentRequest {
20
20
  * @type {string}
21
21
  * @memberof RefreshStepContentRequest
22
22
  */
23
- resultsAccessKey?: string | null;
23
+ resultsAccessKey: string;
24
24
  }
25
25
  /**
26
26
  * Check if a given object implements the RefreshStepContentRequest interface.
@@ -22,6 +22,8 @@ exports.RefreshStepContentRequestToJSONTyped = RefreshStepContentRequestToJSONTy
22
22
  * Check if a given object implements the RefreshStepContentRequest interface.
23
23
  */
24
24
  function instanceOfRefreshStepContentRequest(value) {
25
+ if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
26
+ return false;
25
27
  return true;
26
28
  }
27
29
  function RefreshStepContentRequestFromJSON(json) {
@@ -32,7 +34,7 @@ function RefreshStepContentRequestFromJSONTyped(json, ignoreDiscriminator) {
32
34
  return json;
33
35
  }
34
36
  return {
35
- 'resultsAccessKey': json['resultsAccessKey'] == null ? undefined : json['resultsAccessKey'],
37
+ 'resultsAccessKey': json['resultsAccessKey'],
36
38
  };
37
39
  }
38
40
  function RefreshStepContentRequestToJSON(json) {
@@ -1,7 +1,7 @@
1
1
  export * from './AadhaarInput';
2
2
  export * from './Address';
3
3
  export * from './AttachmentAccessKeys';
4
- export * from './BangladeshNationalIdInput';
4
+ export * from './BangladeshNidInput';
5
5
  export * from './BrazilCpfCheckInput';
6
6
  export * from './BrazilDigitalCnhInput';
7
7
  export * from './CancelSessionResponse';
@@ -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("./BangladeshNationalIdInput"), exports);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trinsic/api",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {
package/src/apis/index.ts CHANGED
@@ -3,4 +3,3 @@
3
3
  export * from './AttachmentsApi';
4
4
  export * from './NetworkApi';
5
5
  export * from './SessionsApi';
6
- export * from './WellKnownApi';
@@ -16,47 +16,55 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface BangladeshNationalIdInput
19
+ * @interface BangladeshNidInput
20
20
  */
21
- export interface BangladeshNationalIdInput {
21
+ export interface BangladeshNidInput {
22
22
  /**
23
23
  * The user's Bangladesh National ID number.
24
24
  * @type {string}
25
- * @memberof BangladeshNationalIdInput
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 BangladeshNationalIdInput
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 BangladeshNationalIdInput
37
+ * @memberof BangladeshNidInput
38
38
  */
39
39
  name?: string | null;
40
40
  /**
41
- * The base64-encoded bytes of the photo collected from the user
41
+ * The raw bytes of the photo file collected from the user.
42
42
  * @type {string}
43
- * @memberof BangladeshNationalIdInput
43
+ * @memberof BangladeshNidInput
44
44
  */
45
- photoBase64?: string | null;
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 BangladeshNationalIdInput interface.
57
+ * Check if a given object implements the BangladeshNidInput interface.
50
58
  */
51
- export function instanceOfBangladeshNationalIdInput(value: object): value is BangladeshNationalIdInput {
59
+ export function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput {
52
60
  return true;
53
61
  }
54
62
 
55
- export function BangladeshNationalIdInputFromJSON(json: any): BangladeshNationalIdInput {
56
- return BangladeshNationalIdInputFromJSONTyped(json, false);
63
+ export function BangladeshNidInputFromJSON(json: any): BangladeshNidInput {
64
+ return BangladeshNidInputFromJSONTyped(json, false);
57
65
  }
58
66
 
59
- export function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNationalIdInput {
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
- 'photoBase64': json['photoBase64'] == null ? undefined : json['photoBase64'],
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 BangladeshNationalIdInputToJSON(json: any): BangladeshNationalIdInput {
73
- return BangladeshNationalIdInputToJSONTyped(json, false);
81
+ export function BangladeshNidInputToJSON(json: any): BangladeshNidInput {
82
+ return BangladeshNidInputToJSONTyped(json, false);
74
83
  }
75
84
 
76
- export function BangladeshNationalIdInputToJSONTyped(value?: BangladeshNationalIdInput | null, ignoreDiscriminator: boolean = false): any {
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
- 'photoBase64': value['photoBase64'],
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
  */
@@ -167,12 +167,11 @@ export interface ProviderContract {
167
167
  */
168
168
  subProviders?: Array<SubProviderMetadata> | null;
169
169
  /**
170
- * The current status of the provider and if it is available to launch.
171
- * If the status is disabled, there is an issue that prevents a provider being able to launch a session.
170
+ * The health for an integration to be able to successfully perform a verification session.
172
171
  * @type {ProviderHealth}
173
172
  * @memberof ProviderContract
174
173
  */
175
- status: ProviderHealth;
174
+ health: ProviderHealth;
176
175
  }
177
176
 
178
177
 
@@ -195,7 +194,7 @@ export function instanceOfProviderContract(value: object): value is ProviderCont
195
194
  if (!('requiresInput' in value) || value['requiresInput'] === undefined) return false;
196
195
  if (!('hasTrinsicInterface' in value) || value['hasTrinsicInterface'] === undefined) return false;
197
196
  if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined) return false;
198
- if (!('status' in value) || value['status'] === undefined) return false;
197
+ if (!('health' in value) || value['health'] === undefined) return false;
199
198
  return true;
200
199
  }
201
200
 
@@ -224,7 +223,7 @@ export function ProviderContractFromJSONTyped(json: any, ignoreDiscriminator: bo
224
223
  'hasTrinsicInterface': json['hasTrinsicInterface'],
225
224
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
226
225
  'subProviders': json['subProviders'] == null ? undefined : ((json['subProviders'] as Array<any>).map(SubProviderMetadataFromJSON)),
227
- 'status': ProviderHealthFromJSON(json['status']),
226
+ 'health': ProviderHealthFromJSON(json['health']),
228
227
  };
229
228
  }
230
229
 
@@ -254,7 +253,7 @@ export function ProviderContractToJSONTyped(value?: ProviderContract | null, ign
254
253
  'hasTrinsicInterface': value['hasTrinsicInterface'],
255
254
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
256
255
  'subProviders': value['subProviders'] == null ? undefined : ((value['subProviders'] as Array<any>).map(SubProviderMetadataToJSON)),
257
- 'status': ProviderHealthToJSON(value['status']),
256
+ 'health': ProviderHealthToJSON(value['health']),
258
257
  };
259
258
  }
260
259
 
@@ -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 {BangladeshNationalIdInput}
180
+ * @type {BangladeshNidInput}
181
181
  * @memberof ProviderInput
182
182
  */
183
- bangladeshNationalId?: BangladeshNationalIdInput | null;
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 : BangladeshNationalIdInputFromJSON(json['bangladeshNationalId']),
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': BangladeshNationalIdInputToJSON(value['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?: string | null;
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'] == null ? undefined : json['resultsAccessKey'],
48
+ 'resultsAccessKey': json['resultsAccessKey'],
48
49
  };
49
50
  }
50
51
 
@@ -3,7 +3,7 @@
3
3
  export * from './AadhaarInput';
4
4
  export * from './Address';
5
5
  export * from './AttachmentAccessKeys';
6
- export * from './BangladeshNationalIdInput';
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
- }