@trinsic/api 2.0.2 → 2.1.0-alpha1

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 (125) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/dist/apis/AttachmentsApi.d.ts +4 -4
  3. package/dist/apis/AttachmentsApi.js +2 -2
  4. package/dist/apis/NetworkApi.d.ts +12 -8
  5. package/dist/apis/NetworkApi.js +8 -5
  6. package/dist/apis/SessionsApi.d.ts +4 -4
  7. package/dist/apis/SessionsApi.js +2 -2
  8. package/dist/apis/index.d.ts +0 -1
  9. package/dist/apis/index.js +0 -1
  10. package/dist/esm/apis/AttachmentsApi.d.ts +4 -4
  11. package/dist/esm/apis/AttachmentsApi.js +2 -2
  12. package/dist/esm/apis/NetworkApi.d.ts +12 -8
  13. package/dist/esm/apis/NetworkApi.js +8 -5
  14. package/dist/esm/apis/SessionsApi.d.ts +4 -4
  15. package/dist/esm/apis/SessionsApi.js +2 -2
  16. package/dist/esm/apis/index.d.ts +0 -1
  17. package/dist/esm/apis/index.js +0 -1
  18. package/dist/esm/models/BangladeshNidInput.d.ts +58 -0
  19. package/dist/esm/models/BangladeshNidInput.js +55 -0
  20. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +0 -6
  21. package/dist/esm/models/ContractField.d.ts +39 -0
  22. package/dist/esm/models/ContractField.js +48 -0
  23. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  24. package/dist/esm/models/CreateAdvancedProviderSessionRequest.js +2 -2
  25. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  26. package/dist/esm/models/DocumentType.d.ts +1 -0
  27. package/dist/esm/models/DocumentType.js +2 -1
  28. package/dist/esm/models/FieldAvailability.d.ts +26 -0
  29. package/dist/esm/models/FieldAvailability.js +44 -0
  30. package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
  31. package/dist/esm/models/IntegrationCapability.d.ts +1 -0
  32. package/dist/esm/models/IntegrationCapability.js +2 -1
  33. package/dist/esm/models/ProblemDetails.d.ts +5 -5
  34. package/dist/esm/models/ProviderContract.d.ts +18 -1
  35. package/dist/esm/models/ProviderContract.js +7 -0
  36. package/dist/esm/models/ProviderInfo.d.ts +32 -0
  37. package/dist/esm/models/ProviderInfo.js +15 -0
  38. package/dist/esm/models/ProviderInformation.d.ts +50 -6
  39. package/dist/esm/models/ProviderInformation.js +28 -1
  40. package/dist/esm/models/ProviderInput.d.ts +15 -15
  41. package/dist/esm/models/ProviderInput.js +3 -3
  42. package/dist/esm/models/RecommendRequest.d.ts +6 -0
  43. package/dist/esm/models/RecommendRequest.js +2 -0
  44. package/dist/esm/models/RecommendResponse.d.ts +5 -3
  45. package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
  46. package/dist/esm/models/RefreshStepContentRequest.js +3 -1
  47. package/dist/esm/models/Session.d.ts +1 -1
  48. package/dist/esm/models/SmartIdInput.d.ts +7 -0
  49. package/dist/esm/models/SmartIdInput.js +2 -0
  50. package/dist/esm/models/SubProviderMetadata.d.ts +12 -1
  51. package/dist/esm/models/SubProviderMetadata.js +4 -0
  52. package/dist/esm/models/index.d.ts +3 -1
  53. package/dist/esm/models/index.js +3 -1
  54. package/dist/models/BangladeshNidInput.d.ts +58 -0
  55. package/dist/models/BangladeshNidInput.js +62 -0
  56. package/dist/models/BrazilDigitalCnhInput.d.ts +0 -6
  57. package/dist/models/ContractField.d.ts +39 -0
  58. package/dist/models/ContractField.js +55 -0
  59. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +6 -6
  60. package/dist/models/CreateAdvancedProviderSessionRequest.js +2 -2
  61. package/dist/models/CreateHostedProviderSessionRequest.d.ts +6 -0
  62. package/dist/models/DocumentType.d.ts +1 -0
  63. package/dist/models/DocumentType.js +2 -1
  64. package/dist/models/FieldAvailability.d.ts +26 -0
  65. package/dist/models/FieldAvailability.js +52 -0
  66. package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
  67. package/dist/models/IntegrationCapability.d.ts +1 -0
  68. package/dist/models/IntegrationCapability.js +2 -1
  69. package/dist/models/ProblemDetails.d.ts +5 -5
  70. package/dist/models/ProviderContract.d.ts +18 -1
  71. package/dist/models/ProviderContract.js +7 -0
  72. package/dist/models/ProviderInfo.d.ts +32 -0
  73. package/dist/models/ProviderInfo.js +15 -0
  74. package/dist/models/ProviderInformation.d.ts +50 -6
  75. package/dist/models/ProviderInformation.js +28 -1
  76. package/dist/models/ProviderInput.d.ts +15 -15
  77. package/dist/models/ProviderInput.js +3 -3
  78. package/dist/models/RecommendRequest.d.ts +6 -0
  79. package/dist/models/RecommendRequest.js +2 -0
  80. package/dist/models/RecommendResponse.d.ts +5 -3
  81. package/dist/models/RefreshStepContentRequest.d.ts +1 -1
  82. package/dist/models/RefreshStepContentRequest.js +3 -1
  83. package/dist/models/Session.d.ts +1 -1
  84. package/dist/models/SmartIdInput.d.ts +7 -0
  85. package/dist/models/SmartIdInput.js +2 -0
  86. package/dist/models/SubProviderMetadata.d.ts +12 -1
  87. package/dist/models/SubProviderMetadata.js +4 -0
  88. package/dist/models/index.d.ts +3 -1
  89. package/dist/models/index.js +3 -1
  90. package/package.json +1 -1
  91. package/src/apis/AttachmentsApi.ts +4 -4
  92. package/src/apis/NetworkApi.ts +18 -9
  93. package/src/apis/SessionsApi.ts +4 -4
  94. package/src/apis/index.ts +0 -1
  95. package/src/models/BangladeshNidInput.ts +102 -0
  96. package/src/models/BrazilDigitalCnhInput.ts +0 -6
  97. package/src/models/ContractField.ts +85 -0
  98. package/src/models/CreateAdvancedProviderSessionRequest.ts +8 -8
  99. package/src/models/CreateHostedProviderSessionRequest.ts +6 -0
  100. package/src/models/DocumentType.ts +2 -1
  101. package/src/models/FieldAvailability.ts +54 -0
  102. package/src/models/HttpValidationProblemDetails.ts +5 -5
  103. package/src/models/IntegrationCapability.ts +2 -1
  104. package/src/models/ProblemDetails.ts +5 -5
  105. package/src/models/ProviderContract.ts +29 -1
  106. package/src/models/ProviderInfo.ts +50 -0
  107. package/src/models/ProviderInformation.ts +78 -7
  108. package/src/models/ProviderInput.ts +23 -23
  109. package/src/models/RecommendRequest.ts +8 -0
  110. package/src/models/RecommendResponse.ts +5 -3
  111. package/src/models/RefreshStepContentRequest.ts +3 -2
  112. package/src/models/Session.ts +1 -1
  113. package/src/models/SmartIdInput.ts +9 -0
  114. package/src/models/SubProviderMetadata.ts +15 -1
  115. package/src/models/index.ts +3 -1
  116. package/dist/apis/WellKnownApi.d.ts +0 -41
  117. package/dist/apis/WellKnownApi.js +0 -61
  118. package/dist/esm/apis/WellKnownApi.d.ts +0 -41
  119. package/dist/esm/apis/WellKnownApi.js +0 -57
  120. package/dist/esm/models/BangladeshNationalIdInput.d.ts +0 -50
  121. package/dist/esm/models/BangladeshNationalIdInput.js +0 -47
  122. package/dist/models/BangladeshNationalIdInput.d.ts +0 -50
  123. package/dist/models/BangladeshNationalIdInput.js +0 -54
  124. package/src/apis/WellKnownApi.ts +0 -82
  125. package/src/models/BangladeshNationalIdInput.ts +0 -89
@@ -6,16 +6,16 @@ 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
18
+ src/models/ContractField.ts
19
19
  src/models/CreateAdvancedProviderSessionRequest.ts
20
20
  src/models/CreateAdvancedProviderSessionResponse.ts
21
21
  src/models/CreateHostedProviderSessionRequest.ts
@@ -25,6 +25,7 @@ src/models/CreateWidgetSessionResponse.ts
25
25
  src/models/DocumentData.ts
26
26
  src/models/DocumentScanAttachments.ts
27
27
  src/models/DocumentType.ts
28
+ src/models/FieldAvailability.ts
28
29
  src/models/GetAttachmentRequest.ts
29
30
  src/models/GetAttachmentResponse.ts
30
31
  src/models/GetSessionResponse.ts
@@ -22,7 +22,7 @@ export interface GetAttachmentOperationRequest {
22
22
  */
23
23
  export interface AttachmentsApiInterface {
24
24
  /**
25
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
25
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
26
26
  * @summary Get Attachment
27
27
  * @param {GetAttachmentRequest} [getAttachmentRequest]
28
28
  * @param {*} [options] Override http request option.
@@ -31,7 +31,7 @@ export interface AttachmentsApiInterface {
31
31
  */
32
32
  getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
33
33
  /**
34
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
34
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
35
35
  * Get Attachment
36
36
  */
37
37
  getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
@@ -41,12 +41,12 @@ export interface AttachmentsApiInterface {
41
41
  */
42
42
  export declare class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
43
43
  /**
44
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
44
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
45
45
  * Get Attachment
46
46
  */
47
47
  getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
48
48
  /**
49
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
49
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
50
50
  * Get Attachment
51
51
  */
52
52
  getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
@@ -30,7 +30,7 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class AttachmentsApi extends runtime.BaseAPI {
32
32
  /**
33
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
33
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
34
34
  * Get Attachment
35
35
  */
36
36
  getAttachmentRaw(requestParameters, initOverrides) {
@@ -56,7 +56,7 @@ class AttachmentsApi extends runtime.BaseAPI {
56
56
  });
57
57
  }
58
58
  /**
59
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
59
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
60
60
  * Get Attachment
61
61
  */
62
62
  getAttachment(getAttachmentRequest, initOverrides) {
@@ -11,6 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { ListProviderContractsResponse, ListProvidersResponse, RecommendRequest, RecommendResponse } from '../models/index';
14
+ export interface ListProvidersRequest {
15
+ health?: string;
16
+ }
14
17
  export interface RecommendProvidersRequest {
15
18
  recommendRequest?: RecommendRequest;
16
19
  }
@@ -37,18 +40,19 @@ export interface NetworkApiInterface {
37
40
  /**
38
41
  * List all identity providers available for use
39
42
  * @summary List Providers
43
+ * @param {string} [health] Filter providers by health status. Valid values: \&quot;online\&quot;, \&quot;offline\&quot;, \&quot;all\&quot;. Defaults to \&quot;all\&quot;.
40
44
  * @param {*} [options] Override http request option.
41
45
  * @throws {RequiredError}
42
46
  * @memberof NetworkApiInterface
43
47
  */
44
- listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
48
+ listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
45
49
  /**
46
50
  * List all identity providers available for use
47
51
  * List Providers
48
52
  */
49
- listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
53
+ listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
50
54
  /**
51
- * Generate provider recommendations based on the given signals (phone number, countries, states).
55
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
52
56
  * @summary Recommend Providers
53
57
  * @param {RecommendRequest} [recommendRequest]
54
58
  * @param {*} [options] Override http request option.
@@ -57,7 +61,7 @@ export interface NetworkApiInterface {
57
61
  */
58
62
  recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
59
63
  /**
60
- * Generate provider recommendations based on the given signals (phone number, countries, states).
64
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
61
65
  * Recommend Providers
62
66
  */
63
67
  recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
@@ -80,19 +84,19 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
80
84
  * List all identity providers available for use
81
85
  * List Providers
82
86
  */
83
- listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
87
+ listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
84
88
  /**
85
89
  * List all identity providers available for use
86
90
  * List Providers
87
91
  */
88
- listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
92
+ listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
89
93
  /**
90
- * Generate provider recommendations based on the given signals (phone number, countries, states).
94
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
91
95
  * Recommend Providers
92
96
  */
93
97
  recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
94
98
  /**
95
- * Generate provider recommendations based on the given signals (phone number, countries, states).
99
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
96
100
  * Recommend Providers
97
101
  */
98
102
  recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
@@ -67,9 +67,12 @@ class NetworkApi extends runtime.BaseAPI {
67
67
  * List all identity providers available for use
68
68
  * List Providers
69
69
  */
70
- listProvidersRaw(initOverrides) {
70
+ listProvidersRaw(requestParameters, initOverrides) {
71
71
  return __awaiter(this, void 0, void 0, function* () {
72
72
  const queryParameters = {};
73
+ if (requestParameters['health'] != null) {
74
+ queryParameters['health'] = requestParameters['health'];
75
+ }
73
76
  const headerParameters = {};
74
77
  if (this.configuration && this.configuration.accessToken) {
75
78
  const token = this.configuration.accessToken;
@@ -91,14 +94,14 @@ class NetworkApi extends runtime.BaseAPI {
91
94
  * List all identity providers available for use
92
95
  * List Providers
93
96
  */
94
- listProviders(initOverrides) {
97
+ listProviders(health, initOverrides) {
95
98
  return __awaiter(this, void 0, void 0, function* () {
96
- const response = yield this.listProvidersRaw(initOverrides);
99
+ const response = yield this.listProvidersRaw({ health: health }, initOverrides);
97
100
  return yield response.value();
98
101
  });
99
102
  }
100
103
  /**
101
- * Generate provider recommendations based on the given signals (phone number, countries, states).
104
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
102
105
  * Recommend Providers
103
106
  */
104
107
  recommendProvidersRaw(requestParameters, initOverrides) {
@@ -124,7 +127,7 @@ class NetworkApi extends runtime.BaseAPI {
124
127
  });
125
128
  }
126
129
  /**
127
- * Generate provider recommendations based on the given signals (phone number, countries, states).
130
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
128
131
  * Recommend Providers
129
132
  */
130
133
  recommendProviders(recommendRequest, initOverrides) {
@@ -152,7 +152,7 @@ export interface SessionsApiInterface {
152
152
  */
153
153
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
154
154
  /**
155
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
155
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
156
156
  * @summary Redact Session
157
157
  * @param {string} sessionId
158
158
  * @param {*} [options] Override http request option.
@@ -161,7 +161,7 @@ export interface SessionsApiInterface {
161
161
  */
162
162
  redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
163
163
  /**
164
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
164
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
165
165
  * Redact Session
166
166
  */
167
167
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -254,12 +254,12 @@ export declare class SessionsApi extends runtime.BaseAPI implements SessionsApiI
254
254
  */
255
255
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
256
256
  /**
257
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
257
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
258
258
  * Redact Session
259
259
  */
260
260
  redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
261
261
  /**
262
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
262
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
263
263
  * Redact Session
264
264
  */
265
265
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -295,7 +295,7 @@ class SessionsApi extends runtime.BaseAPI {
295
295
  });
296
296
  }
297
297
  /**
298
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
298
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
299
299
  * Redact Session
300
300
  */
301
301
  redactSessionRaw(requestParameters, initOverrides) {
@@ -322,7 +322,7 @@ class SessionsApi extends runtime.BaseAPI {
322
322
  });
323
323
  }
324
324
  /**
325
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
325
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
326
326
  * Redact Session
327
327
  */
328
328
  redactSession(sessionId, initOverrides) {
@@ -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);
@@ -22,7 +22,7 @@ export interface GetAttachmentOperationRequest {
22
22
  */
23
23
  export interface AttachmentsApiInterface {
24
24
  /**
25
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
25
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
26
26
  * @summary Get Attachment
27
27
  * @param {GetAttachmentRequest} [getAttachmentRequest]
28
28
  * @param {*} [options] Override http request option.
@@ -31,7 +31,7 @@ export interface AttachmentsApiInterface {
31
31
  */
32
32
  getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
33
33
  /**
34
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
34
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
35
35
  * Get Attachment
36
36
  */
37
37
  getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
@@ -41,12 +41,12 @@ export interface AttachmentsApiInterface {
41
41
  */
42
42
  export declare class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
43
43
  /**
44
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
44
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
45
45
  * Get Attachment
46
46
  */
47
47
  getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
48
48
  /**
49
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
49
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
50
50
  * Get Attachment
51
51
  */
52
52
  getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
@@ -27,7 +27,7 @@ import { GetAttachmentRequestToJSON, GetAttachmentResponseFromJSON, } from '../m
27
27
  */
28
28
  export class AttachmentsApi extends runtime.BaseAPI {
29
29
  /**
30
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
30
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
31
31
  * Get Attachment
32
32
  */
33
33
  getAttachmentRaw(requestParameters, initOverrides) {
@@ -53,7 +53,7 @@ export class AttachmentsApi extends runtime.BaseAPI {
53
53
  });
54
54
  }
55
55
  /**
56
- * Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
56
+ * Exchange an Attachment Access Key (from `IdentityData.AttachmentAccessKeys`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 503 code, and you should try again later.
57
57
  * Get Attachment
58
58
  */
59
59
  getAttachment(getAttachmentRequest, initOverrides) {
@@ -11,6 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { ListProviderContractsResponse, ListProvidersResponse, RecommendRequest, RecommendResponse } from '../models/index';
14
+ export interface ListProvidersRequest {
15
+ health?: string;
16
+ }
14
17
  export interface RecommendProvidersRequest {
15
18
  recommendRequest?: RecommendRequest;
16
19
  }
@@ -37,18 +40,19 @@ export interface NetworkApiInterface {
37
40
  /**
38
41
  * List all identity providers available for use
39
42
  * @summary List Providers
43
+ * @param {string} [health] Filter providers by health status. Valid values: \&quot;online\&quot;, \&quot;offline\&quot;, \&quot;all\&quot;. Defaults to \&quot;all\&quot;.
40
44
  * @param {*} [options] Override http request option.
41
45
  * @throws {RequiredError}
42
46
  * @memberof NetworkApiInterface
43
47
  */
44
- listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
48
+ listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
45
49
  /**
46
50
  * List all identity providers available for use
47
51
  * List Providers
48
52
  */
49
- listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
53
+ listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
50
54
  /**
51
- * Generate provider recommendations based on the given signals (phone number, countries, states).
55
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
52
56
  * @summary Recommend Providers
53
57
  * @param {RecommendRequest} [recommendRequest]
54
58
  * @param {*} [options] Override http request option.
@@ -57,7 +61,7 @@ export interface NetworkApiInterface {
57
61
  */
58
62
  recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
59
63
  /**
60
- * Generate provider recommendations based on the given signals (phone number, countries, states).
64
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
61
65
  * Recommend Providers
62
66
  */
63
67
  recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
@@ -80,19 +84,19 @@ export declare class NetworkApi extends runtime.BaseAPI implements NetworkApiInt
80
84
  * List all identity providers available for use
81
85
  * List Providers
82
86
  */
83
- listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
87
+ listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
84
88
  /**
85
89
  * List all identity providers available for use
86
90
  * List Providers
87
91
  */
88
- listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
92
+ listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
89
93
  /**
90
- * Generate provider recommendations based on the given signals (phone number, countries, states).
94
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
91
95
  * Recommend Providers
92
96
  */
93
97
  recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
94
98
  /**
95
- * Generate provider recommendations based on the given signals (phone number, countries, states).
99
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
96
100
  * Recommend Providers
97
101
  */
98
102
  recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
@@ -64,9 +64,12 @@ export class NetworkApi extends runtime.BaseAPI {
64
64
  * List all identity providers available for use
65
65
  * List Providers
66
66
  */
67
- listProvidersRaw(initOverrides) {
67
+ listProvidersRaw(requestParameters, initOverrides) {
68
68
  return __awaiter(this, void 0, void 0, function* () {
69
69
  const queryParameters = {};
70
+ if (requestParameters['health'] != null) {
71
+ queryParameters['health'] = requestParameters['health'];
72
+ }
70
73
  const headerParameters = {};
71
74
  if (this.configuration && this.configuration.accessToken) {
72
75
  const token = this.configuration.accessToken;
@@ -88,14 +91,14 @@ export class NetworkApi extends runtime.BaseAPI {
88
91
  * List all identity providers available for use
89
92
  * List Providers
90
93
  */
91
- listProviders(initOverrides) {
94
+ listProviders(health, initOverrides) {
92
95
  return __awaiter(this, void 0, void 0, function* () {
93
- const response = yield this.listProvidersRaw(initOverrides);
96
+ const response = yield this.listProvidersRaw({ health: health }, initOverrides);
94
97
  return yield response.value();
95
98
  });
96
99
  }
97
100
  /**
98
- * Generate provider recommendations based on the given signals (phone number, countries, states).
101
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
99
102
  * Recommend Providers
100
103
  */
101
104
  recommendProvidersRaw(requestParameters, initOverrides) {
@@ -121,7 +124,7 @@ export class NetworkApi extends runtime.BaseAPI {
121
124
  });
122
125
  }
123
126
  /**
124
- * Generate provider recommendations based on the given signals (phone number, countries, states).
127
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
125
128
  * Recommend Providers
126
129
  */
127
130
  recommendProviders(recommendRequest, initOverrides) {
@@ -152,7 +152,7 @@ export interface SessionsApiInterface {
152
152
  */
153
153
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
154
154
  /**
155
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
155
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
156
156
  * @summary Redact Session
157
157
  * @param {string} sessionId
158
158
  * @param {*} [options] Override http request option.
@@ -161,7 +161,7 @@ export interface SessionsApiInterface {
161
161
  */
162
162
  redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
163
163
  /**
164
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
164
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
165
165
  * Redact Session
166
166
  */
167
167
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -254,12 +254,12 @@ export declare class SessionsApi extends runtime.BaseAPI implements SessionsApiI
254
254
  */
255
255
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
256
256
  /**
257
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
257
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
258
258
  * Redact Session
259
259
  */
260
260
  redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
261
261
  /**
262
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
262
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
263
263
  * Redact Session
264
264
  */
265
265
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -292,7 +292,7 @@ export class SessionsApi extends runtime.BaseAPI {
292
292
  });
293
293
  }
294
294
  /**
295
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
295
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
296
296
  * Redact Session
297
297
  */
298
298
  redactSessionRaw(requestParameters, initOverrides) {
@@ -319,7 +319,7 @@ export class SessionsApi extends runtime.BaseAPI {
319
319
  });
320
320
  }
321
321
  /**
322
- * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
322
+ * Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately.
323
323
  * Redact Session
324
324
  */
325
325
  redactSession(sessionId, initOverrides) {
@@ -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;
24
+ /**
25
+ * The user's date of birth, in `YYYY-MM-DD` format
26
+ * @type {Date}
27
+ * @memberof BangladeshNidInput
28
+ */
29
+ dateOfBirth: Date;
30
+ /**
31
+ * The user's full name
32
+ * @type {string}
33
+ * @memberof BangladeshNidInput
34
+ */
35
+ name: string;
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;
@@ -0,0 +1,55 @@
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
+ /**
15
+ * Check if a given object implements the BangladeshNidInput interface.
16
+ */
17
+ export function instanceOfBangladeshNidInput(value) {
18
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined)
19
+ return false;
20
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined)
21
+ return false;
22
+ if (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function BangladeshNidInputFromJSON(json) {
27
+ return BangladeshNidInputFromJSONTyped(json, false);
28
+ }
29
+ export function BangladeshNidInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'nationalIdNumber': json['nationalIdNumber'],
35
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
36
+ 'name': json['name'],
37
+ 'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
38
+ 'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
39
+ };
40
+ }
41
+ export function BangladeshNidInputToJSON(json) {
42
+ return BangladeshNidInputToJSONTyped(json, false);
43
+ }
44
+ export function BangladeshNidInputToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'nationalIdNumber': value['nationalIdNumber'],
50
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0, 10)),
51
+ 'name': value['name'],
52
+ 'photoByes': value['photoByes'],
53
+ 'photoImageMimeType': value['photoImageMimeType'],
54
+ };
55
+ }
@@ -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
  */