@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
@@ -6,13 +6,12 @@ package.json
6
6
  src/apis/AttachmentsApi.ts
7
7
  src/apis/NetworkApi.ts
8
8
  src/apis/SessionsApi.ts
9
- src/apis/WellKnownApi.ts
10
9
  src/apis/index.ts
11
10
  src/index.ts
12
11
  src/models/AadhaarInput.ts
13
12
  src/models/Address.ts
14
13
  src/models/AttachmentAccessKeys.ts
15
- src/models/BangladeshNationalIdInput.ts
14
+ src/models/BangladeshNidInput.ts
16
15
  src/models/BrazilCpfCheckInput.ts
17
16
  src/models/BrazilDigitalCnhInput.ts
18
17
  src/models/CancelSessionResponse.ts
@@ -1,4 +1,3 @@
1
1
  export * from './AttachmentsApi';
2
2
  export * from './NetworkApi';
3
3
  export * from './SessionsApi';
4
- export * from './WellKnownApi';
@@ -19,4 +19,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AttachmentsApi"), exports);
20
20
  __exportStar(require("./NetworkApi"), exports);
21
21
  __exportStar(require("./SessionsApi"), exports);
22
- __exportStar(require("./WellKnownApi"), exports);
@@ -1,4 +1,3 @@
1
1
  export * from './AttachmentsApi';
2
2
  export * from './NetworkApi';
3
3
  export * from './SessionsApi';
4
- export * from './WellKnownApi';
@@ -3,4 +3,3 @@
3
3
  export * from './AttachmentsApi';
4
4
  export * from './NetworkApi';
5
5
  export * from './SessionsApi';
6
- export * from './WellKnownApi';
@@ -0,0 +1,58 @@
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 BangladeshNidInput
16
+ */
17
+ export interface BangladeshNidInput {
18
+ /**
19
+ * The user's Bangladesh National ID number.
20
+ * @type {string}
21
+ * @memberof BangladeshNidInput
22
+ */
23
+ nationalIdNumber?: string | null;
24
+ /**
25
+ * The user's date of birth, in `YYYY-MM-DD` format
26
+ * @type {Date}
27
+ * @memberof BangladeshNidInput
28
+ */
29
+ dateOfBirth?: Date | null;
30
+ /**
31
+ * The user's full name
32
+ * @type {string}
33
+ * @memberof BangladeshNidInput
34
+ */
35
+ name?: string | null;
36
+ /**
37
+ * The raw bytes of the photo file collected from the user.
38
+ * @type {string}
39
+ * @memberof BangladeshNidInput
40
+ */
41
+ photoByes?: string | null;
42
+ /**
43
+ * The MIME Type of the file contained in `PhotoByes`.
44
+ *
45
+ * Must be one of `image/jpeg`, or `image/png`.
46
+ * @type {string}
47
+ * @memberof BangladeshNidInput
48
+ */
49
+ photoImageMimeType?: string | null;
50
+ }
51
+ /**
52
+ * Check if a given object implements the BangladeshNidInput interface.
53
+ */
54
+ export declare function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput;
55
+ export declare function BangladeshNidInputFromJSON(json: any): BangladeshNidInput;
56
+ export declare function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNidInput;
57
+ export declare function BangladeshNidInputToJSON(json: any): BangladeshNidInput;
58
+ export declare function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null, ignoreDiscriminator?: boolean): any;
@@ -12,15 +12,15 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the BangladeshNationalIdInput interface.
15
+ * Check if a given object implements the BangladeshNidInput interface.
16
16
  */
17
- export function instanceOfBangladeshNationalIdInput(value) {
17
+ export function instanceOfBangladeshNidInput(value) {
18
18
  return true;
19
19
  }
20
- export function BangladeshNationalIdInputFromJSON(json) {
21
- return BangladeshNationalIdInputFromJSONTyped(json, false);
20
+ export function BangladeshNidInputFromJSON(json) {
21
+ return BangladeshNidInputFromJSONTyped(json, false);
22
22
  }
23
- export function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator) {
23
+ export function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
24
24
  if (json == null) {
25
25
  return json;
26
26
  }
@@ -28,13 +28,14 @@ export function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator
28
28
  'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
29
29
  'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
30
30
  'name': json['name'] == null ? undefined : json['name'],
31
- 'photoBase64': json['photoBase64'] == null ? undefined : json['photoBase64'],
31
+ 'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
32
+ 'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
32
33
  };
33
34
  }
34
- export function BangladeshNationalIdInputToJSON(json) {
35
- return BangladeshNationalIdInputToJSONTyped(json, false);
35
+ export function BangladeshNidInputToJSON(json) {
36
+ return BangladeshNidInputToJSONTyped(json, false);
36
37
  }
37
- export function BangladeshNationalIdInputToJSONTyped(value, ignoreDiscriminator = false) {
38
+ export function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false) {
38
39
  if (value == null) {
39
40
  return value;
40
41
  }
@@ -42,6 +43,7 @@ export function BangladeshNationalIdInputToJSONTyped(value, ignoreDiscriminator
42
43
  'nationalIdNumber': value['nationalIdNumber'],
43
44
  'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
44
45
  'name': value['name'],
45
- 'photoBase64': value['photoBase64'],
46
+ 'photoByes': value['photoByes'],
47
+ 'photoImageMimeType': value['photoImageMimeType'],
46
48
  };
47
49
  }
@@ -23,12 +23,6 @@ export interface BrazilDigitalCnhInput {
23
23
  cpfNumber: string;
24
24
  /**
25
25
  * The raw bytes of the digital CNH file collected from the user.
26
- *
27
- * TODO: Lucas or JP help me describe these below vvvvvvvv
28
- * This can be:
29
- * - An image containing a physical or digital QR code
30
- * - A PDF file exported from the CNH app
31
- * - Some scary third thing?
32
26
  * @type {string}
33
27
  * @memberof BrazilDigitalCnhInput
34
28
  */
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface HttpValidationProblemDetails {
18
18
  /**
19
- *
19
+ * A URI reference that identifies the problem type.
20
20
  * @type {string}
21
21
  * @memberof HttpValidationProblemDetails
22
22
  */
23
23
  type?: string | null;
24
24
  /**
25
- *
25
+ * A short, human-readable summary of the error.
26
26
  * @type {string}
27
27
  * @memberof HttpValidationProblemDetails
28
28
  */
29
29
  title?: string | null;
30
30
  /**
31
- *
31
+ * The HTTP status code returned for the request.
32
32
  * @type {number}
33
33
  * @memberof HttpValidationProblemDetails
34
34
  */
35
35
  status?: number | null;
36
36
  /**
37
- *
37
+ * A human-readable explanation specific of the problem.
38
38
  * @type {string}
39
39
  * @memberof HttpValidationProblemDetails
40
40
  */
41
41
  detail?: string | null;
42
42
  /**
43
- *
43
+ * A URI reference that identifies the specific occurrence of the problem.
44
44
  * @type {string}
45
45
  * @memberof HttpValidationProblemDetails
46
46
  */
@@ -17,31 +17,31 @@
17
17
  export interface ProblemDetails {
18
18
  [key: string]: any | any;
19
19
  /**
20
- *
20
+ * A URI reference that identifies the problem type.
21
21
  * @type {string}
22
22
  * @memberof ProblemDetails
23
23
  */
24
24
  type?: string | null;
25
25
  /**
26
- *
26
+ * A short, human-readable summary of the error.
27
27
  * @type {string}
28
28
  * @memberof ProblemDetails
29
29
  */
30
30
  title?: string | null;
31
31
  /**
32
- *
32
+ * The HTTP status code returned for the request.
33
33
  * @type {number}
34
34
  * @memberof ProblemDetails
35
35
  */
36
36
  status?: number | null;
37
37
  /**
38
- *
38
+ * A human-readable explanation specific of the problem.
39
39
  * @type {string}
40
40
  * @memberof ProblemDetails
41
41
  */
42
42
  detail?: string | null;
43
43
  /**
44
- *
44
+ * A URI reference that identifies the specific occurrence of the problem.
45
45
  * @type {string}
46
46
  * @memberof ProblemDetails
47
47
  */
@@ -138,12 +138,11 @@ export interface ProviderContract {
138
138
  */
139
139
  subProviders?: Array<SubProviderMetadata> | null;
140
140
  /**
141
- * The current status of the provider and if it is available to launch.
142
- * If the status is disabled, there is an issue that prevents a provider being able to launch a session.
141
+ * The health for an integration to be able to successfully perform a verification session.
143
142
  * @type {ProviderHealth}
144
143
  * @memberof ProviderContract
145
144
  */
146
- status: ProviderHealth;
145
+ health: ProviderHealth;
147
146
  }
148
147
  /**
149
148
  * Check if a given object implements the ProviderContract interface.
@@ -47,7 +47,7 @@ export function instanceOfProviderContract(value) {
47
47
  return false;
48
48
  if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
49
49
  return false;
50
- if (!('status' in value) || value['status'] === undefined)
50
+ if (!('health' in value) || value['health'] === undefined)
51
51
  return false;
52
52
  return true;
53
53
  }
@@ -74,7 +74,7 @@ export function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
74
74
  'hasTrinsicInterface': json['hasTrinsicInterface'],
75
75
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
76
76
  'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadataFromJSON)),
77
- 'status': ProviderHealthFromJSON(json['status']),
77
+ 'health': ProviderHealthFromJSON(json['health']),
78
78
  };
79
79
  }
80
80
  export function ProviderContractToJSON(json) {
@@ -100,6 +100,6 @@ export function ProviderContractToJSONTyped(value, ignoreDiscriminator = false)
100
100
  'hasTrinsicInterface': value['hasTrinsicInterface'],
101
101
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
102
102
  'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadataToJSON)),
103
- 'status': ProviderHealthToJSON(value['status']),
103
+ 'health': ProviderHealthToJSON(value['health']),
104
104
  };
105
105
  }
@@ -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}
@@ -11,7 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { BangladeshNationalIdInputFromJSON, BangladeshNationalIdInputToJSON, } from './BangladeshNationalIdInput';
15
14
  import { BrazilCpfCheckInputFromJSON, BrazilCpfCheckInputToJSON, } from './BrazilCpfCheckInput';
16
15
  import { MexicoCurpInputFromJSON, MexicoCurpInputToJSON, } from './MexicoCurpInput';
17
16
  import { BrazilDigitalCnhInputFromJSON, BrazilDigitalCnhInputToJSON, } from './BrazilDigitalCnhInput';
@@ -20,6 +19,7 @@ import { SpidInputFromJSON, SpidInputToJSON, } from './SpidInput';
20
19
  import { SouthAfricaNidInputFromJSON, SouthAfricaNidInputToJSON, } from './SouthAfricaNidInput';
21
20
  import { PhilippineMatchInputFromJSON, PhilippineMatchInputToJSON, } from './PhilippineMatchInput';
22
21
  import { PhilippineQRInputFromJSON, PhilippineQRInputToJSON, } from './PhilippineQRInput';
22
+ import { BangladeshNidInputFromJSON, BangladeshNidInputToJSON, } from './BangladeshNidInput';
23
23
  import { AadhaarInputFromJSON, AadhaarInputToJSON, } from './AadhaarInput';
24
24
  import { KenyaNidInputFromJSON, KenyaNidInputToJSON, } from './KenyaNidInput';
25
25
  import { NigeriaNinInputFromJSON, NigeriaNinInputToJSON, } from './NigeriaNinInput';
@@ -48,7 +48,7 @@ export function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
48
48
  'kenyaNid': json['kenyaNid'] == null ? undefined : KenyaNidInputFromJSON(json['kenyaNid']),
49
49
  'nigeriaNin': json['nigeriaNin'] == null ? undefined : NigeriaNinInputFromJSON(json['nigeriaNin']),
50
50
  'aadhaar': json['aadhaar'] == null ? undefined : AadhaarInputFromJSON(json['aadhaar']),
51
- 'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNationalIdInputFromJSON(json['bangladeshNationalId']),
51
+ 'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : BangladeshNidInputFromJSON(json['bangladeshNationalId']),
52
52
  'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : BrazilCpfCheckInputFromJSON(json['brazilCpfCheck']),
53
53
  'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : BrazilDigitalCnhInputFromJSON(json['brazilDigitalCnh']),
54
54
  'philippineMatch': json['philippineMatch'] == null ? undefined : PhilippineMatchInputFromJSON(json['philippineMatch']),
@@ -75,7 +75,7 @@ export function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
75
75
  'kenyaNid': KenyaNidInputToJSON(value['kenyaNid']),
76
76
  'nigeriaNin': NigeriaNinInputToJSON(value['nigeriaNin']),
77
77
  'aadhaar': AadhaarInputToJSON(value['aadhaar']),
78
- 'bangladeshNationalId': BangladeshNationalIdInputToJSON(value['bangladeshNationalId']),
78
+ 'bangladeshNationalId': BangladeshNidInputToJSON(value['bangladeshNationalId']),
79
79
  'brazilCpfCheck': BrazilCpfCheckInputToJSON(value['brazilCpfCheck']),
80
80
  'brazilDigitalCnh': BrazilDigitalCnhInputToJSON(value['brazilDigitalCnh']),
81
81
  'philippineMatch': 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.
@@ -15,6 +15,8 @@
15
15
  * Check if a given object implements the RefreshStepContentRequest interface.
16
16
  */
17
17
  export function instanceOfRefreshStepContentRequest(value) {
18
+ if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
19
+ return false;
18
20
  return true;
19
21
  }
20
22
  export function RefreshStepContentRequestFromJSON(json) {
@@ -25,7 +27,7 @@ export function RefreshStepContentRequestFromJSONTyped(json, ignoreDiscriminator
25
27
  return json;
26
28
  }
27
29
  return {
28
- 'resultsAccessKey': json['resultsAccessKey'] == null ? undefined : json['resultsAccessKey'],
30
+ 'resultsAccessKey': json['resultsAccessKey'],
29
31
  };
30
32
  }
31
33
  export 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';
@@ -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';
@@ -0,0 +1,58 @@
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 BangladeshNidInput
16
+ */
17
+ export interface BangladeshNidInput {
18
+ /**
19
+ * The user's Bangladesh National ID number.
20
+ * @type {string}
21
+ * @memberof BangladeshNidInput
22
+ */
23
+ nationalIdNumber?: string | null;
24
+ /**
25
+ * The user's date of birth, in `YYYY-MM-DD` format
26
+ * @type {Date}
27
+ * @memberof BangladeshNidInput
28
+ */
29
+ dateOfBirth?: Date | null;
30
+ /**
31
+ * The user's full name
32
+ * @type {string}
33
+ * @memberof BangladeshNidInput
34
+ */
35
+ name?: string | null;
36
+ /**
37
+ * The raw bytes of the photo file collected from the user.
38
+ * @type {string}
39
+ * @memberof BangladeshNidInput
40
+ */
41
+ photoByes?: string | null;
42
+ /**
43
+ * The MIME Type of the file contained in `PhotoByes`.
44
+ *
45
+ * Must be one of `image/jpeg`, or `image/png`.
46
+ * @type {string}
47
+ * @memberof BangladeshNidInput
48
+ */
49
+ photoImageMimeType?: string | null;
50
+ }
51
+ /**
52
+ * Check if a given object implements the BangladeshNidInput interface.
53
+ */
54
+ export declare function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput;
55
+ export declare function BangladeshNidInputFromJSON(json: any): BangladeshNidInput;
56
+ export declare function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNidInput;
57
+ export declare function BangladeshNidInputToJSON(json: any): BangladeshNidInput;
58
+ export declare function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null, ignoreDiscriminator?: boolean): any;
@@ -13,21 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfBangladeshNationalIdInput = instanceOfBangladeshNationalIdInput;
17
- exports.BangladeshNationalIdInputFromJSON = BangladeshNationalIdInputFromJSON;
18
- exports.BangladeshNationalIdInputFromJSONTyped = BangladeshNationalIdInputFromJSONTyped;
19
- exports.BangladeshNationalIdInputToJSON = BangladeshNationalIdInputToJSON;
20
- exports.BangladeshNationalIdInputToJSONTyped = BangladeshNationalIdInputToJSONTyped;
16
+ exports.instanceOfBangladeshNidInput = instanceOfBangladeshNidInput;
17
+ exports.BangladeshNidInputFromJSON = BangladeshNidInputFromJSON;
18
+ exports.BangladeshNidInputFromJSONTyped = BangladeshNidInputFromJSONTyped;
19
+ exports.BangladeshNidInputToJSON = BangladeshNidInputToJSON;
20
+ exports.BangladeshNidInputToJSONTyped = BangladeshNidInputToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the BangladeshNationalIdInput interface.
22
+ * Check if a given object implements the BangladeshNidInput interface.
23
23
  */
24
- function instanceOfBangladeshNationalIdInput(value) {
24
+ function instanceOfBangladeshNidInput(value) {
25
25
  return true;
26
26
  }
27
- function BangladeshNationalIdInputFromJSON(json) {
28
- return BangladeshNationalIdInputFromJSONTyped(json, false);
27
+ function BangladeshNidInputFromJSON(json) {
28
+ return BangladeshNidInputFromJSONTyped(json, false);
29
29
  }
30
- function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
31
31
  if (json == null) {
32
32
  return json;
33
33
  }
@@ -35,13 +35,14 @@ function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
36
36
  'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
37
37
  'name': json['name'] == null ? undefined : json['name'],
38
- 'photoBase64': json['photoBase64'] == null ? undefined : json['photoBase64'],
38
+ 'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
39
+ 'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
39
40
  };
40
41
  }
41
- function BangladeshNationalIdInputToJSON(json) {
42
- return BangladeshNationalIdInputToJSONTyped(json, false);
42
+ function BangladeshNidInputToJSON(json) {
43
+ return BangladeshNidInputToJSONTyped(json, false);
43
44
  }
44
- function BangladeshNationalIdInputToJSONTyped(value, ignoreDiscriminator = false) {
45
+ function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  if (value == null) {
46
47
  return value;
47
48
  }
@@ -49,6 +50,7 @@ function BangladeshNationalIdInputToJSONTyped(value, ignoreDiscriminator = false
49
50
  'nationalIdNumber': value['nationalIdNumber'],
50
51
  'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
51
52
  'name': value['name'],
52
- 'photoBase64': value['photoBase64'],
53
+ 'photoByes': value['photoByes'],
54
+ 'photoImageMimeType': value['photoImageMimeType'],
53
55
  };
54
56
  }
@@ -23,12 +23,6 @@ export interface BrazilDigitalCnhInput {
23
23
  cpfNumber: string;
24
24
  /**
25
25
  * The raw bytes of the digital CNH file collected from the user.
26
- *
27
- * TODO: Lucas or JP help me describe these below vvvvvvvv
28
- * This can be:
29
- * - An image containing a physical or digital QR code
30
- * - A PDF file exported from the CNH app
31
- * - Some scary third thing?
32
26
  * @type {string}
33
27
  * @memberof BrazilDigitalCnhInput
34
28
  */
@@ -16,31 +16,31 @@
16
16
  */
17
17
  export interface HttpValidationProblemDetails {
18
18
  /**
19
- *
19
+ * A URI reference that identifies the problem type.
20
20
  * @type {string}
21
21
  * @memberof HttpValidationProblemDetails
22
22
  */
23
23
  type?: string | null;
24
24
  /**
25
- *
25
+ * A short, human-readable summary of the error.
26
26
  * @type {string}
27
27
  * @memberof HttpValidationProblemDetails
28
28
  */
29
29
  title?: string | null;
30
30
  /**
31
- *
31
+ * The HTTP status code returned for the request.
32
32
  * @type {number}
33
33
  * @memberof HttpValidationProblemDetails
34
34
  */
35
35
  status?: number | null;
36
36
  /**
37
- *
37
+ * A human-readable explanation specific of the problem.
38
38
  * @type {string}
39
39
  * @memberof HttpValidationProblemDetails
40
40
  */
41
41
  detail?: string | null;
42
42
  /**
43
- *
43
+ * A URI reference that identifies the specific occurrence of the problem.
44
44
  * @type {string}
45
45
  * @memberof HttpValidationProblemDetails
46
46
  */
@@ -17,31 +17,31 @@
17
17
  export interface ProblemDetails {
18
18
  [key: string]: any | any;
19
19
  /**
20
- *
20
+ * A URI reference that identifies the problem type.
21
21
  * @type {string}
22
22
  * @memberof ProblemDetails
23
23
  */
24
24
  type?: string | null;
25
25
  /**
26
- *
26
+ * A short, human-readable summary of the error.
27
27
  * @type {string}
28
28
  * @memberof ProblemDetails
29
29
  */
30
30
  title?: string | null;
31
31
  /**
32
- *
32
+ * The HTTP status code returned for the request.
33
33
  * @type {number}
34
34
  * @memberof ProblemDetails
35
35
  */
36
36
  status?: number | null;
37
37
  /**
38
- *
38
+ * A human-readable explanation specific of the problem.
39
39
  * @type {string}
40
40
  * @memberof ProblemDetails
41
41
  */
42
42
  detail?: string | null;
43
43
  /**
44
- *
44
+ * A URI reference that identifies the specific occurrence of the problem.
45
45
  * @type {string}
46
46
  * @memberof ProblemDetails
47
47
  */
@@ -138,12 +138,11 @@ export interface ProviderContract {
138
138
  */
139
139
  subProviders?: Array<SubProviderMetadata> | null;
140
140
  /**
141
- * The current status of the provider and if it is available to launch.
142
- * If the status is disabled, there is an issue that prevents a provider being able to launch a session.
141
+ * The health for an integration to be able to successfully perform a verification session.
143
142
  * @type {ProviderHealth}
144
143
  * @memberof ProviderContract
145
144
  */
146
- status: ProviderHealth;
145
+ health: ProviderHealth;
147
146
  }
148
147
  /**
149
148
  * Check if a given object implements the ProviderContract interface.
@@ -54,7 +54,7 @@ function instanceOfProviderContract(value) {
54
54
  return false;
55
55
  if (!('supportsAdvancedProviderSessions' in value) || value['supportsAdvancedProviderSessions'] === undefined)
56
56
  return false;
57
- if (!('status' in value) || value['status'] === undefined)
57
+ if (!('health' in value) || value['health'] === undefined)
58
58
  return false;
59
59
  return true;
60
60
  }
@@ -81,7 +81,7 @@ function ProviderContractFromJSONTyped(json, ignoreDiscriminator) {
81
81
  'hasTrinsicInterface': json['hasTrinsicInterface'],
82
82
  'supportsAdvancedProviderSessions': json['supportsAdvancedProviderSessions'],
83
83
  'subProviders': json['subProviders'] == null ? undefined : (json['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataFromJSON)),
84
- 'status': (0, ProviderHealth_1.ProviderHealthFromJSON)(json['status']),
84
+ 'health': (0, ProviderHealth_1.ProviderHealthFromJSON)(json['health']),
85
85
  };
86
86
  }
87
87
  function ProviderContractToJSON(json) {
@@ -107,6 +107,6 @@ function ProviderContractToJSONTyped(value, ignoreDiscriminator = false) {
107
107
  'hasTrinsicInterface': value['hasTrinsicInterface'],
108
108
  'supportsAdvancedProviderSessions': value['supportsAdvancedProviderSessions'],
109
109
  'subProviders': value['subProviders'] == null ? undefined : (value['subProviders'].map(SubProviderMetadata_1.SubProviderMetadataToJSON)),
110
- 'status': (0, ProviderHealth_1.ProviderHealthToJSON)(value['status']),
110
+ 'health': (0, ProviderHealth_1.ProviderHealthToJSON)(value['health']),
111
111
  };
112
112
  }