@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
@@ -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,
@@ -140,67 +140,67 @@ import {
140
140
  */
141
141
  export interface ProviderInput {
142
142
  /**
143
- * Input for the `f-indonesia-nik` provider
143
+ * Input for the `indonesia-nik-lookup` provider
144
144
  * @type {IndonesiaNikInput}
145
145
  * @memberof ProviderInput
146
146
  */
147
147
  indonesiaNik?: IndonesiaNikInput | null;
148
148
  /**
149
- * Input for the `f-mexico-curp` provider
149
+ * Input for the `mexico-curp-lookup` provider
150
150
  * @type {MexicoCurpInput}
151
151
  * @memberof ProviderInput
152
152
  */
153
153
  mexicoCurp?: MexicoCurpInput | null;
154
154
  /**
155
- * Input for the `f-south-africa-nid` provider
155
+ * Input for the `south-africa-nid-lookup` provider
156
156
  * @type {SouthAfricaNidInput}
157
157
  * @memberof ProviderInput
158
158
  */
159
159
  southAfricaNid?: SouthAfricaNidInput | null;
160
160
  /**
161
- * Input for the `f-kenya-nid` provider
161
+ * Input for the `kenya-nid-lookup` provider
162
162
  * @type {KenyaNidInput}
163
163
  * @memberof ProviderInput
164
164
  */
165
165
  kenyaNid?: KenyaNidInput | null;
166
166
  /**
167
- * Input for the `f-nigeria-nin` provider
167
+ * Input for the `nigeria-nin-lookup` provider
168
168
  * @type {NigeriaNinInput}
169
169
  * @memberof ProviderInput
170
170
  */
171
171
  nigeriaNin?: NigeriaNinInput | null;
172
172
  /**
173
- * Input for the `f-india-aadhaar-match` provider
173
+ * Input for the `india-digilocker-aadhaar-match` provider
174
174
  * @type {AadhaarInput}
175
175
  * @memberof ProviderInput
176
176
  */
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
- * Input for the `g-brazil-cpf` provider
185
+ * Input for the `brazil-cpf-lookup` provider
186
186
  * @type {BrazilCpfCheckInput}
187
187
  * @memberof ProviderInput
188
188
  */
189
189
  brazilCpfCheck?: BrazilCpfCheckInput | null;
190
190
  /**
191
- * Input for the `g-brazil-digital-cnh` provider
191
+ * Input for the `brazil-digital-cnh` provider
192
192
  * @type {BrazilDigitalCnhInput}
193
193
  * @memberof ProviderInput
194
194
  */
195
195
  brazilDigitalCnh?: BrazilDigitalCnhInput | null;
196
196
  /**
197
- * Input for the `b-philsys-biometric` provider
197
+ * Input for the `philippines-philsys-match` provider
198
198
  * @type {PhilippineMatchInput}
199
199
  * @memberof ProviderInput
200
200
  */
201
201
  philippineMatch?: PhilippineMatchInput | null;
202
202
  /**
203
- * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
203
+ * Input for the `philippines-digital-national-id-qr` and `philippines-physical-national-id-qr` providers
204
204
  * @type {PhilippineQRInput}
205
205
  * @memberof ProviderInput
206
206
  */
@@ -218,13 +218,13 @@ export interface ProviderInput {
218
218
  */
219
219
  mobileId?: MobileIdInput | null;
220
220
  /**
221
- * Input for the `idin` provider
221
+ * Input for the `netherlands-idin` provider
222
222
  * @type {IdinInput}
223
223
  * @memberof ProviderInput
224
224
  */
225
225
  idin?: IdinInput | null;
226
226
  /**
227
- * Input for the `spid` provider
227
+ * Input for the `italy-spid` provider
228
228
  * @type {SpidInput}
229
229
  * @memberof ProviderInput
230
230
  */
@@ -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']),
@@ -33,6 +33,12 @@ export interface RecommendRequest {
33
33
  * @memberof RecommendRequest
34
34
  */
35
35
  recommendationInfo?: RecommendationInfo | null;
36
+ /**
37
+ * Filter providers by health status. Valid values: "online", "offline", "all". Defaults to "online".
38
+ * @type {string}
39
+ * @memberof RecommendRequest
40
+ */
41
+ health?: string | null;
36
42
  }
37
43
 
38
44
  /**
@@ -53,6 +59,7 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
53
59
  return {
54
60
 
55
61
  'recommendationInfo': json['recommendationInfo'] == null ? undefined : RecommendationInfoFromJSON(json['recommendationInfo']),
62
+ 'health': json['health'] == null ? undefined : json['health'],
56
63
  };
57
64
  }
58
65
 
@@ -68,6 +75,7 @@ export function RecommendRequestToJSONTyped(value?: RecommendRequest | null, ign
68
75
  return {
69
76
 
70
77
  'recommendationInfo': RecommendationInfoToJSON(value['recommendationInfo']),
78
+ 'health': value['health'],
71
79
  };
72
80
  }
73
81
 
@@ -28,19 +28,21 @@ import {
28
28
  */
29
29
  export interface RecommendResponse {
30
30
  /**
31
- * The list of providers that were recognized in Trinsic's network. These are providers that already verified this user
31
+ * The providers which the user is known to have a credential with.
32
32
  * @type {Array<ProviderInformation>}
33
33
  * @memberof RecommendResponse
34
34
  */
35
35
  recognized: Array<ProviderInformation>;
36
36
  /**
37
- * The list of providers that although not recognized, are relevant to the user's identity. The user may have been verified by these providers
37
+ * The providers which the user is deemed sufficiently likely to have a credential with.
38
38
  * @type {Array<ProviderInformation>}
39
39
  * @memberof RecommendResponse
40
40
  */
41
41
  relevant: Array<ProviderInformation>;
42
42
  /**
43
- * The list of providers that are not recognized and are not relevant to the user's identity
43
+ * The providers which the user is unlikely to have a credential with.
44
+ *
45
+ * This includes all providers available to your app which were not included in the Recognized or Relevant lists.
44
46
  * @type {Array<ProviderInformation>}
45
47
  * @memberof RecommendResponse
46
48
  */
@@ -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
 
@@ -65,7 +65,7 @@ export interface Session {
65
65
  */
66
66
  created: number;
67
67
  /**
68
- * The unix timestamp, in seconds, when this session's state last changed
68
+ * The unix timestamp, in seconds, when this session's data was last updated
69
69
  * @type {number}
70
70
  * @memberof Session
71
71
  */
@@ -23,8 +23,15 @@ export interface SmartIdInput {
23
23
  * The user's Smart ID Document Number
24
24
  * @type {string}
25
25
  * @memberof SmartIdInput
26
+ * @deprecated
26
27
  */
27
28
  smartIdDocumentNumber?: string | null;
29
+ /**
30
+ * The user's Smart ID ETSI number or document number.
31
+ * @type {string}
32
+ * @memberof SmartIdInput
33
+ */
34
+ smartIdNumber?: string | null;
28
35
  }
29
36
 
30
37
  /**
@@ -45,6 +52,7 @@ export function SmartIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolea
45
52
  return {
46
53
 
47
54
  'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
55
+ 'smartIdNumber': json['smartIdNumber'] == null ? undefined : json['smartIdNumber'],
48
56
  };
49
57
  }
50
58
 
@@ -60,6 +68,7 @@ export function SmartIdInputToJSONTyped(value?: SmartIdInput | null, ignoreDiscr
60
68
  return {
61
69
 
62
70
  'smartIdDocumentNumber': value['smartIdDocumentNumber'],
71
+ 'smartIdNumber': value['smartIdNumber'],
63
72
  };
64
73
  }
65
74
 
@@ -35,9 +35,20 @@ export interface SubProviderMetadata {
35
35
  */
36
36
  name: string;
37
37
  /**
38
- * Flavor text for the sub-provider
38
+ * The Provider's subtext recommended to be shown next to the name.
39
+ *
40
+ * This is flavor text, not a full, human-readable description of the provider.
41
+ * @type {string}
42
+ * @memberof SubProviderMetadata
43
+ */
44
+ subtext: string;
45
+ /**
46
+ * The Provider's subtext recommended to be shown next to the name.
47
+ *
48
+ * This is flavor text, not a full, human-readable description of the provider.
39
49
  * @type {string}
40
50
  * @memberof SubProviderMetadata
51
+ * @deprecated
41
52
  */
42
53
  description: string;
43
54
  /**
@@ -56,6 +67,7 @@ export interface SubProviderMetadata {
56
67
  export function instanceOfSubProviderMetadata(value: object): value is SubProviderMetadata {
57
68
  if (!('id' in value) || value['id'] === undefined) return false;
58
69
  if (!('name' in value) || value['name'] === undefined) return false;
70
+ if (!('subtext' in value) || value['subtext'] === undefined) return false;
59
71
  if (!('description' in value) || value['description'] === undefined) return false;
60
72
  if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
61
73
  return true;
@@ -73,6 +85,7 @@ export function SubProviderMetadataFromJSONTyped(json: any, ignoreDiscriminator:
73
85
 
74
86
  'id': json['id'],
75
87
  'name': json['name'],
88
+ 'subtext': json['subtext'],
76
89
  'description': json['description'],
77
90
  'logoUrl': json['logoUrl'],
78
91
  };
@@ -91,6 +104,7 @@ export function SubProviderMetadataToJSONTyped(value?: SubProviderMetadata | nul
91
104
 
92
105
  'id': value['id'],
93
106
  'name': value['name'],
107
+ 'subtext': value['subtext'],
94
108
  'description': value['description'],
95
109
  'logoUrl': value['logoUrl'],
96
110
  };
@@ -3,10 +3,11 @@
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';
10
+ export * from './ContractField';
10
11
  export * from './CreateAdvancedProviderSessionRequest';
11
12
  export * from './CreateAdvancedProviderSessionResponse';
12
13
  export * from './CreateHostedProviderSessionRequest';
@@ -16,6 +17,7 @@ export * from './CreateWidgetSessionResponse';
16
17
  export * from './DocumentData';
17
18
  export * from './DocumentScanAttachments';
18
19
  export * from './DocumentType';
20
+ export * from './FieldAvailability';
19
21
  export * from './GetAttachmentRequest';
20
22
  export * from './GetAttachmentResponse';
21
23
  export * from './GetSessionResponse';
@@ -1,41 +0,0 @@
1
- /**
2
- * Trinsic API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- /**
14
- * WellKnownApi - interface
15
- *
16
- * @export
17
- * @interface WellKnownApiInterface
18
- */
19
- export interface WellKnownApiInterface {
20
- /**
21
- *
22
- * @param {*} [options] Override http request option.
23
- * @throws {RequiredError}
24
- * @memberof WellKnownApiInterface
25
- */
26
- interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
27
- /**
28
- */
29
- interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
30
- }
31
- /**
32
- *
33
- */
34
- export declare class WellKnownApi extends runtime.BaseAPI implements WellKnownApiInterface {
35
- /**
36
- */
37
- interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
38
- /**
39
- */
40
- interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
41
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Trinsic API
6
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
- *
8
- * The version of the OpenAPI document: v1
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.WellKnownApi = void 0;
26
- const runtime = require("../runtime");
27
- /**
28
- *
29
- */
30
- class WellKnownApi extends runtime.BaseAPI {
31
- /**
32
- */
33
- interacJwkRaw(initOverrides) {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- const queryParameters = {};
36
- const headerParameters = {};
37
- if (this.configuration && this.configuration.accessToken) {
38
- const token = this.configuration.accessToken;
39
- const tokenString = yield token("Bearer", []);
40
- if (tokenString) {
41
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
42
- }
43
- }
44
- const response = yield this.request({
45
- path: `/api/integrations/v1/interac/.well-known/jwks.json`,
46
- method: 'GET',
47
- headers: headerParameters,
48
- query: queryParameters,
49
- }, initOverrides);
50
- return new runtime.VoidApiResponse(response);
51
- });
52
- }
53
- /**
54
- */
55
- interacJwk(initOverrides) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- yield this.interacJwkRaw(initOverrides);
58
- });
59
- }
60
- }
61
- exports.WellKnownApi = WellKnownApi;
@@ -1,41 +0,0 @@
1
- /**
2
- * Trinsic API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import * as runtime from '../runtime';
13
- /**
14
- * WellKnownApi - interface
15
- *
16
- * @export
17
- * @interface WellKnownApiInterface
18
- */
19
- export interface WellKnownApiInterface {
20
- /**
21
- *
22
- * @param {*} [options] Override http request option.
23
- * @throws {RequiredError}
24
- * @memberof WellKnownApiInterface
25
- */
26
- interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
27
- /**
28
- */
29
- interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
30
- }
31
- /**
32
- *
33
- */
34
- export declare class WellKnownApi extends runtime.BaseAPI implements WellKnownApiInterface {
35
- /**
36
- */
37
- interacJwkRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
38
- /**
39
- */
40
- interacJwk(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
41
- }
@@ -1,57 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Trinsic API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: v1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- import * as runtime from '../runtime';
24
- /**
25
- *
26
- */
27
- export class WellKnownApi extends runtime.BaseAPI {
28
- /**
29
- */
30
- interacJwkRaw(initOverrides) {
31
- return __awaiter(this, void 0, void 0, function* () {
32
- const queryParameters = {};
33
- const headerParameters = {};
34
- if (this.configuration && this.configuration.accessToken) {
35
- const token = this.configuration.accessToken;
36
- const tokenString = yield token("Bearer", []);
37
- if (tokenString) {
38
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
39
- }
40
- }
41
- const response = yield this.request({
42
- path: `/api/integrations/v1/interac/.well-known/jwks.json`,
43
- method: 'GET',
44
- headers: headerParameters,
45
- query: queryParameters,
46
- }, initOverrides);
47
- return new runtime.VoidApiResponse(response);
48
- });
49
- }
50
- /**
51
- */
52
- interacJwk(initOverrides) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- yield this.interacJwkRaw(initOverrides);
55
- });
56
- }
57
- }
@@ -1,50 +0,0 @@
1
- /**
2
- * Trinsic API
3
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
- *
5
- * The version of the OpenAPI document: v1
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface BangladeshNationalIdInput
16
- */
17
- export interface BangladeshNationalIdInput {
18
- /**
19
- * The user's Bangladesh National ID number.
20
- * @type {string}
21
- * @memberof BangladeshNationalIdInput
22
- */
23
- nationalIdNumber?: string | null;
24
- /**
25
- * The user's date of birth, in `YYYY-MM-DD` format
26
- * @type {Date}
27
- * @memberof BangladeshNationalIdInput
28
- */
29
- dateOfBirth?: Date | null;
30
- /**
31
- * The user's full name
32
- * @type {string}
33
- * @memberof BangladeshNationalIdInput
34
- */
35
- name?: string | null;
36
- /**
37
- * The base64-encoded bytes of the photo collected from the user
38
- * @type {string}
39
- * @memberof BangladeshNationalIdInput
40
- */
41
- photoBase64?: string | null;
42
- }
43
- /**
44
- * Check if a given object implements the BangladeshNationalIdInput interface.
45
- */
46
- export declare function instanceOfBangladeshNationalIdInput(value: object): value is BangladeshNationalIdInput;
47
- export declare function BangladeshNationalIdInputFromJSON(json: any): BangladeshNationalIdInput;
48
- export declare function BangladeshNationalIdInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNationalIdInput;
49
- export declare function BangladeshNationalIdInputToJSON(json: any): BangladeshNationalIdInput;
50
- export declare function BangladeshNationalIdInputToJSONTyped(value?: BangladeshNationalIdInput | null, ignoreDiscriminator?: boolean): any;
@@ -1,47 +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
- /**
15
- * Check if a given object implements the BangladeshNationalIdInput interface.
16
- */
17
- export function instanceOfBangladeshNationalIdInput(value) {
18
- return true;
19
- }
20
- export function BangladeshNationalIdInputFromJSON(json) {
21
- return BangladeshNationalIdInputFromJSONTyped(json, false);
22
- }
23
- export function BangladeshNationalIdInputFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- return {
28
- 'nationalIdNumber': json['nationalIdNumber'] == null ? undefined : json['nationalIdNumber'],
29
- 'dateOfBirth': json['dateOfBirth'] == null ? undefined : (new Date(json['dateOfBirth'])),
30
- 'name': json['name'] == null ? undefined : json['name'],
31
- 'photoBase64': json['photoBase64'] == null ? undefined : json['photoBase64'],
32
- };
33
- }
34
- export function BangladeshNationalIdInputToJSON(json) {
35
- return BangladeshNationalIdInputToJSONTyped(json, false);
36
- }
37
- export function BangladeshNationalIdInputToJSONTyped(value, ignoreDiscriminator = false) {
38
- if (value == null) {
39
- return value;
40
- }
41
- return {
42
- 'nationalIdNumber': value['nationalIdNumber'],
43
- 'dateOfBirth': value['dateOfBirth'] == null ? undefined : (value['dateOfBirth'].toISOString().substring(0, 10)),
44
- 'name': value['name'],
45
- 'photoBase64': value['photoBase64'],
46
- };
47
- }