@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
@@ -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';
@@ -33,67 +33,67 @@ import type { IdinInput } from './IdinInput';
33
33
  */
34
34
  export interface ProviderInput {
35
35
  /**
36
- * Input for the `f-indonesia-nik` provider
36
+ * Input for the `indonesia-nik-lookup` provider
37
37
  * @type {IndonesiaNikInput}
38
38
  * @memberof ProviderInput
39
39
  */
40
40
  indonesiaNik?: IndonesiaNikInput | null;
41
41
  /**
42
- * Input for the `f-mexico-curp` provider
42
+ * Input for the `mexico-curp-lookup` provider
43
43
  * @type {MexicoCurpInput}
44
44
  * @memberof ProviderInput
45
45
  */
46
46
  mexicoCurp?: MexicoCurpInput | null;
47
47
  /**
48
- * Input for the `f-south-africa-nid` provider
48
+ * Input for the `south-africa-nid-lookup` provider
49
49
  * @type {SouthAfricaNidInput}
50
50
  * @memberof ProviderInput
51
51
  */
52
52
  southAfricaNid?: SouthAfricaNidInput | null;
53
53
  /**
54
- * Input for the `f-kenya-nid` provider
54
+ * Input for the `kenya-nid-lookup` provider
55
55
  * @type {KenyaNidInput}
56
56
  * @memberof ProviderInput
57
57
  */
58
58
  kenyaNid?: KenyaNidInput | null;
59
59
  /**
60
- * Input for the `f-nigeria-nin` provider
60
+ * Input for the `nigeria-nin-lookup` provider
61
61
  * @type {NigeriaNinInput}
62
62
  * @memberof ProviderInput
63
63
  */
64
64
  nigeriaNin?: NigeriaNinInput | null;
65
65
  /**
66
- * Input for the `f-india-aadhaar-match` provider
66
+ * Input for the `india-digilocker-aadhaar-match` provider
67
67
  * @type {AadhaarInput}
68
68
  * @memberof ProviderInput
69
69
  */
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
- * Input for the `g-brazil-cpf` provider
78
+ * Input for the `brazil-cpf-lookup` provider
79
79
  * @type {BrazilCpfCheckInput}
80
80
  * @memberof ProviderInput
81
81
  */
82
82
  brazilCpfCheck?: BrazilCpfCheckInput | null;
83
83
  /**
84
- * Input for the `g-brazil-digital-cnh` provider
84
+ * Input for the `brazil-digital-cnh` provider
85
85
  * @type {BrazilDigitalCnhInput}
86
86
  * @memberof ProviderInput
87
87
  */
88
88
  brazilDigitalCnh?: BrazilDigitalCnhInput | null;
89
89
  /**
90
- * Input for the `b-philsys-biometric` provider
90
+ * Input for the `philippines-philsys-match` provider
91
91
  * @type {PhilippineMatchInput}
92
92
  * @memberof ProviderInput
93
93
  */
94
94
  philippineMatch?: PhilippineMatchInput | null;
95
95
  /**
96
- * Input for the `b-philippine-qr-digital-national-id` and `b-philippine-qr-ephill-id` providers
96
+ * Input for the `philippines-digital-national-id-qr` and `philippines-physical-national-id-qr` providers
97
97
  * @type {PhilippineQRInput}
98
98
  * @memberof ProviderInput
99
99
  */
@@ -111,13 +111,13 @@ export interface ProviderInput {
111
111
  */
112
112
  mobileId?: MobileIdInput | null;
113
113
  /**
114
- * Input for the `idin` provider
114
+ * Input for the `netherlands-idin` provider
115
115
  * @type {IdinInput}
116
116
  * @memberof ProviderInput
117
117
  */
118
118
  idin?: IdinInput | null;
119
119
  /**
120
- * Input for the `spid` provider
120
+ * Input for the `italy-spid` provider
121
121
  * @type {SpidInput}
122
122
  * @memberof ProviderInput
123
123
  */
@@ -18,7 +18,6 @@ exports.ProviderInputFromJSON = ProviderInputFromJSON;
18
18
  exports.ProviderInputFromJSONTyped = ProviderInputFromJSONTyped;
19
19
  exports.ProviderInputToJSON = ProviderInputToJSON;
20
20
  exports.ProviderInputToJSONTyped = ProviderInputToJSONTyped;
21
- const BangladeshNationalIdInput_1 = require("./BangladeshNationalIdInput");
22
21
  const BrazilCpfCheckInput_1 = require("./BrazilCpfCheckInput");
23
22
  const MexicoCurpInput_1 = require("./MexicoCurpInput");
24
23
  const BrazilDigitalCnhInput_1 = require("./BrazilDigitalCnhInput");
@@ -27,6 +26,7 @@ const SpidInput_1 = require("./SpidInput");
27
26
  const SouthAfricaNidInput_1 = require("./SouthAfricaNidInput");
28
27
  const PhilippineMatchInput_1 = require("./PhilippineMatchInput");
29
28
  const PhilippineQRInput_1 = require("./PhilippineQRInput");
29
+ const BangladeshNidInput_1 = require("./BangladeshNidInput");
30
30
  const AadhaarInput_1 = require("./AadhaarInput");
31
31
  const KenyaNidInput_1 = require("./KenyaNidInput");
32
32
  const NigeriaNinInput_1 = require("./NigeriaNinInput");
@@ -55,7 +55,7 @@ function ProviderInputFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'kenyaNid': json['kenyaNid'] == null ? undefined : (0, KenyaNidInput_1.KenyaNidInputFromJSON)(json['kenyaNid']),
56
56
  'nigeriaNin': json['nigeriaNin'] == null ? undefined : (0, NigeriaNinInput_1.NigeriaNinInputFromJSON)(json['nigeriaNin']),
57
57
  'aadhaar': json['aadhaar'] == null ? undefined : (0, AadhaarInput_1.AadhaarInputFromJSON)(json['aadhaar']),
58
- 'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputFromJSON)(json['bangladeshNationalId']),
58
+ 'bangladeshNationalId': json['bangladeshNationalId'] == null ? undefined : (0, BangladeshNidInput_1.BangladeshNidInputFromJSON)(json['bangladeshNationalId']),
59
59
  'brazilCpfCheck': json['brazilCpfCheck'] == null ? undefined : (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputFromJSON)(json['brazilCpfCheck']),
60
60
  'brazilDigitalCnh': json['brazilDigitalCnh'] == null ? undefined : (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputFromJSON)(json['brazilDigitalCnh']),
61
61
  'philippineMatch': json['philippineMatch'] == null ? undefined : (0, PhilippineMatchInput_1.PhilippineMatchInputFromJSON)(json['philippineMatch']),
@@ -82,7 +82,7 @@ function ProviderInputToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  'kenyaNid': (0, KenyaNidInput_1.KenyaNidInputToJSON)(value['kenyaNid']),
83
83
  'nigeriaNin': (0, NigeriaNinInput_1.NigeriaNinInputToJSON)(value['nigeriaNin']),
84
84
  'aadhaar': (0, AadhaarInput_1.AadhaarInputToJSON)(value['aadhaar']),
85
- 'bangladeshNationalId': (0, BangladeshNationalIdInput_1.BangladeshNationalIdInputToJSON)(value['bangladeshNationalId']),
85
+ 'bangladeshNationalId': (0, BangladeshNidInput_1.BangladeshNidInputToJSON)(value['bangladeshNationalId']),
86
86
  'brazilCpfCheck': (0, BrazilCpfCheckInput_1.BrazilCpfCheckInputToJSON)(value['brazilCpfCheck']),
87
87
  'brazilDigitalCnh': (0, BrazilDigitalCnhInput_1.BrazilDigitalCnhInputToJSON)(value['brazilDigitalCnh']),
88
88
  'philippineMatch': (0, PhilippineMatchInput_1.PhilippineMatchInputToJSON)(value['philippineMatch']),
@@ -22,6 +22,12 @@ export interface RecommendRequest {
22
22
  * @memberof RecommendRequest
23
23
  */
24
24
  recommendationInfo?: RecommendationInfo | null;
25
+ /**
26
+ * Filter providers by health status. Valid values: "online", "offline", "all". Defaults to "online".
27
+ * @type {string}
28
+ * @memberof RecommendRequest
29
+ */
30
+ health?: string | null;
25
31
  }
26
32
  /**
27
33
  * Check if a given object implements the RecommendRequest interface.
@@ -34,6 +34,7 @@ function RecommendRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  }
35
35
  return {
36
36
  'recommendationInfo': json['recommendationInfo'] == null ? undefined : (0, RecommendationInfo_1.RecommendationInfoFromJSON)(json['recommendationInfo']),
37
+ 'health': json['health'] == null ? undefined : json['health'],
37
38
  };
38
39
  }
39
40
  function RecommendRequestToJSON(json) {
@@ -45,5 +46,6 @@ function RecommendRequestToJSONTyped(value, ignoreDiscriminator = false) {
45
46
  }
46
47
  return {
47
48
  'recommendationInfo': (0, RecommendationInfo_1.RecommendationInfoToJSON)(value['recommendationInfo']),
49
+ 'health': value['health'],
48
50
  };
49
51
  }
@@ -17,19 +17,21 @@ import type { ProviderInformation } from './ProviderInformation';
17
17
  */
18
18
  export interface RecommendResponse {
19
19
  /**
20
- * The list of providers that were recognized in Trinsic's network. These are providers that already verified this user
20
+ * The providers which the user is known to have a credential with.
21
21
  * @type {Array<ProviderInformation>}
22
22
  * @memberof RecommendResponse
23
23
  */
24
24
  recognized: Array<ProviderInformation>;
25
25
  /**
26
- * The list of providers that although not recognized, are relevant to the user's identity. The user may have been verified by these providers
26
+ * The providers which the user is deemed sufficiently likely to have a credential with.
27
27
  * @type {Array<ProviderInformation>}
28
28
  * @memberof RecommendResponse
29
29
  */
30
30
  relevant: Array<ProviderInformation>;
31
31
  /**
32
- * The list of providers that are not recognized and are not relevant to the user's identity
32
+ * The providers which the user is unlikely to have a credential with.
33
+ *
34
+ * This includes all providers available to your app which were not included in the Recognized or Relevant lists.
33
35
  * @type {Array<ProviderInformation>}
34
36
  * @memberof RecommendResponse
35
37
  */
@@ -20,7 +20,7 @@ export interface RefreshStepContentRequest {
20
20
  * @type {string}
21
21
  * @memberof RefreshStepContentRequest
22
22
  */
23
- resultsAccessKey?: string | null;
23
+ resultsAccessKey: string;
24
24
  }
25
25
  /**
26
26
  * Check if a given object implements the RefreshStepContentRequest interface.
@@ -22,6 +22,8 @@ exports.RefreshStepContentRequestToJSONTyped = RefreshStepContentRequestToJSONTy
22
22
  * Check if a given object implements the RefreshStepContentRequest interface.
23
23
  */
24
24
  function instanceOfRefreshStepContentRequest(value) {
25
+ if (!('resultsAccessKey' in value) || value['resultsAccessKey'] === undefined)
26
+ return false;
25
27
  return true;
26
28
  }
27
29
  function RefreshStepContentRequestFromJSON(json) {
@@ -32,7 +34,7 @@ function RefreshStepContentRequestFromJSONTyped(json, ignoreDiscriminator) {
32
34
  return json;
33
35
  }
34
36
  return {
35
- 'resultsAccessKey': json['resultsAccessKey'] == null ? undefined : json['resultsAccessKey'],
37
+ 'resultsAccessKey': json['resultsAccessKey'],
36
38
  };
37
39
  }
38
40
  function RefreshStepContentRequestToJSON(json) {
@@ -54,7 +54,7 @@ export interface Session {
54
54
  */
55
55
  created: number;
56
56
  /**
57
- * The unix timestamp, in seconds, when this session's state last changed
57
+ * The unix timestamp, in seconds, when this session's data was last updated
58
58
  * @type {number}
59
59
  * @memberof Session
60
60
  */
@@ -19,8 +19,15 @@ export interface SmartIdInput {
19
19
  * The user's Smart ID Document Number
20
20
  * @type {string}
21
21
  * @memberof SmartIdInput
22
+ * @deprecated
22
23
  */
23
24
  smartIdDocumentNumber?: string | null;
25
+ /**
26
+ * The user's Smart ID ETSI number or document number.
27
+ * @type {string}
28
+ * @memberof SmartIdInput
29
+ */
30
+ smartIdNumber?: string | null;
24
31
  }
25
32
  /**
26
33
  * Check if a given object implements the SmartIdInput interface.
@@ -33,6 +33,7 @@ function SmartIdInputFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'smartIdDocumentNumber': json['smartIdDocumentNumber'] == null ? undefined : json['smartIdDocumentNumber'],
36
+ 'smartIdNumber': json['smartIdNumber'] == null ? undefined : json['smartIdNumber'],
36
37
  };
37
38
  }
38
39
  function SmartIdInputToJSON(json) {
@@ -44,5 +45,6 @@ function SmartIdInputToJSONTyped(value, ignoreDiscriminator = false) {
44
45
  }
45
46
  return {
46
47
  'smartIdDocumentNumber': value['smartIdDocumentNumber'],
48
+ 'smartIdNumber': value['smartIdNumber'],
47
49
  };
48
50
  }
@@ -31,9 +31,20 @@ export interface SubProviderMetadata {
31
31
  */
32
32
  name: string;
33
33
  /**
34
- * Flavor text for the sub-provider
34
+ * The Provider's subtext recommended to be shown next to the name.
35
+ *
36
+ * This is flavor text, not a full, human-readable description of the provider.
37
+ * @type {string}
38
+ * @memberof SubProviderMetadata
39
+ */
40
+ subtext: string;
41
+ /**
42
+ * The Provider's subtext recommended to be shown next to the name.
43
+ *
44
+ * This is flavor text, not a full, human-readable description of the provider.
35
45
  * @type {string}
36
46
  * @memberof SubProviderMetadata
47
+ * @deprecated
37
48
  */
38
49
  description: string;
39
50
  /**
@@ -26,6 +26,8 @@ function instanceOfSubProviderMetadata(value) {
26
26
  return false;
27
27
  if (!('name' in value) || value['name'] === undefined)
28
28
  return false;
29
+ if (!('subtext' in value) || value['subtext'] === undefined)
30
+ return false;
29
31
  if (!('description' in value) || value['description'] === undefined)
30
32
  return false;
31
33
  if (!('logoUrl' in value) || value['logoUrl'] === undefined)
@@ -42,6 +44,7 @@ function SubProviderMetadataFromJSONTyped(json, ignoreDiscriminator) {
42
44
  return {
43
45
  'id': json['id'],
44
46
  'name': json['name'],
47
+ 'subtext': json['subtext'],
45
48
  'description': json['description'],
46
49
  'logoUrl': json['logoUrl'],
47
50
  };
@@ -56,6 +59,7 @@ function SubProviderMetadataToJSONTyped(value, ignoreDiscriminator = false) {
56
59
  return {
57
60
  'id': value['id'],
58
61
  'name': value['name'],
62
+ 'subtext': value['subtext'],
59
63
  'description': value['description'],
60
64
  'logoUrl': value['logoUrl'],
61
65
  };
@@ -1,10 +1,11 @@
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';
8
+ export * from './ContractField';
8
9
  export * from './CreateAdvancedProviderSessionRequest';
9
10
  export * from './CreateAdvancedProviderSessionResponse';
10
11
  export * from './CreateHostedProviderSessionRequest';
@@ -14,6 +15,7 @@ export * from './CreateWidgetSessionResponse';
14
15
  export * from './DocumentData';
15
16
  export * from './DocumentScanAttachments';
16
17
  export * from './DocumentType';
18
+ export * from './FieldAvailability';
17
19
  export * from './GetAttachmentRequest';
18
20
  export * from './GetAttachmentResponse';
19
21
  export * from './GetSessionResponse';
@@ -19,10 +19,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AadhaarInput"), exports);
20
20
  __exportStar(require("./Address"), exports);
21
21
  __exportStar(require("./AttachmentAccessKeys"), exports);
22
- __exportStar(require("./BangladeshNationalIdInput"), exports);
22
+ __exportStar(require("./BangladeshNidInput"), exports);
23
23
  __exportStar(require("./BrazilCpfCheckInput"), exports);
24
24
  __exportStar(require("./BrazilDigitalCnhInput"), exports);
25
25
  __exportStar(require("./CancelSessionResponse"), exports);
26
+ __exportStar(require("./ContractField"), exports);
26
27
  __exportStar(require("./CreateAdvancedProviderSessionRequest"), exports);
27
28
  __exportStar(require("./CreateAdvancedProviderSessionResponse"), exports);
28
29
  __exportStar(require("./CreateHostedProviderSessionRequest"), exports);
@@ -32,6 +33,7 @@ __exportStar(require("./CreateWidgetSessionResponse"), exports);
32
33
  __exportStar(require("./DocumentData"), exports);
33
34
  __exportStar(require("./DocumentScanAttachments"), exports);
34
35
  __exportStar(require("./DocumentType"), exports);
36
+ __exportStar(require("./FieldAvailability"), exports);
35
37
  __exportStar(require("./GetAttachmentRequest"), exports);
36
38
  __exportStar(require("./GetAttachmentResponse"), exports);
37
39
  __exportStar(require("./GetSessionResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trinsic/api",
3
- "version": "2.0.2",
3
+ "version": "2.1.0-alpha1",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {
@@ -40,7 +40,7 @@ export interface GetAttachmentOperationRequest {
40
40
  */
41
41
  export interface AttachmentsApiInterface {
42
42
  /**
43
- * 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.
43
+ * 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.
44
44
  * @summary Get Attachment
45
45
  * @param {GetAttachmentRequest} [getAttachmentRequest]
46
46
  * @param {*} [options] Override http request option.
@@ -50,7 +50,7 @@ export interface AttachmentsApiInterface {
50
50
  getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>>;
51
51
 
52
52
  /**
53
- * 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.
53
+ * 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.
54
54
  * Get Attachment
55
55
  */
56
56
  getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse>;
@@ -63,7 +63,7 @@ export interface AttachmentsApiInterface {
63
63
  export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInterface {
64
64
 
65
65
  /**
66
- * 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.
66
+ * 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.
67
67
  * Get Attachment
68
68
  */
69
69
  async getAttachmentRaw(requestParameters: GetAttachmentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAttachmentResponse>> {
@@ -93,7 +93,7 @@ export class AttachmentsApi extends runtime.BaseAPI implements AttachmentsApiInt
93
93
  }
94
94
 
95
95
  /**
96
- * 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.
96
+ * 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.
97
97
  * Get Attachment
98
98
  */
99
99
  async getAttachment(getAttachmentRequest?: GetAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAttachmentResponse> {
@@ -34,6 +34,10 @@ import {
34
34
  RecommendResponseToJSON,
35
35
  } from '../models/index';
36
36
 
37
+ export interface ListProvidersRequest {
38
+ health?: string;
39
+ }
40
+
37
41
  export interface RecommendProvidersRequest {
38
42
  recommendRequest?: RecommendRequest;
39
43
  }
@@ -63,20 +67,21 @@ export interface NetworkApiInterface {
63
67
  /**
64
68
  * List all identity providers available for use
65
69
  * @summary List Providers
70
+ * @param {string} [health] Filter providers by health status. Valid values: \&quot;online\&quot;, \&quot;offline\&quot;, \&quot;all\&quot;. Defaults to \&quot;all\&quot;.
66
71
  * @param {*} [options] Override http request option.
67
72
  * @throws {RequiredError}
68
73
  * @memberof NetworkApiInterface
69
74
  */
70
- listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
75
+ listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>>;
71
76
 
72
77
  /**
73
78
  * List all identity providers available for use
74
79
  * List Providers
75
80
  */
76
- listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
81
+ listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse>;
77
82
 
78
83
  /**
79
- * Generate provider recommendations based on the given signals (phone number, countries, states).
84
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
80
85
  * @summary Recommend Providers
81
86
  * @param {RecommendRequest} [recommendRequest]
82
87
  * @param {*} [options] Override http request option.
@@ -86,7 +91,7 @@ export interface NetworkApiInterface {
86
91
  recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>>;
87
92
 
88
93
  /**
89
- * 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).
90
95
  * Recommend Providers
91
96
  */
92
97
  recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse>;
@@ -138,9 +143,13 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
138
143
  * List all identity providers available for use
139
144
  * List Providers
140
145
  */
141
- async listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
146
+ async listProvidersRaw(requestParameters: ListProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListProvidersResponse>> {
142
147
  const queryParameters: any = {};
143
148
 
149
+ if (requestParameters['health'] != null) {
150
+ queryParameters['health'] = requestParameters['health'];
151
+ }
152
+
144
153
  const headerParameters: runtime.HTTPHeaders = {};
145
154
 
146
155
  if (this.configuration && this.configuration.accessToken) {
@@ -165,13 +174,13 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
165
174
  * List all identity providers available for use
166
175
  * List Providers
167
176
  */
168
- async listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
169
- const response = await this.listProvidersRaw(initOverrides);
177
+ async listProviders(health?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListProvidersResponse> {
178
+ const response = await this.listProvidersRaw({ health: health }, initOverrides);
170
179
  return await response.value();
171
180
  }
172
181
 
173
182
  /**
174
- * Generate provider recommendations based on the given signals (phone number, countries, states).
183
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
175
184
  * Recommend Providers
176
185
  */
177
186
  async recommendProvidersRaw(requestParameters: RecommendProvidersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecommendResponse>> {
@@ -201,7 +210,7 @@ export class NetworkApi extends runtime.BaseAPI implements NetworkApiInterface {
201
210
  }
202
211
 
203
212
  /**
204
- * Generate provider recommendations based on the given signals (phone number, countries, states).
213
+ * Generate provider recommendations based on signals about the user\'s location (phone number, countries, states).
205
214
  * Recommend Providers
206
215
  */
207
216
  async recommendProviders(recommendRequest?: RecommendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecommendResponse> {
@@ -231,7 +231,7 @@ export interface SessionsApiInterface {
231
231
  listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
232
232
 
233
233
  /**
234
- * 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.
234
+ * 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.
235
235
  * @summary Redact Session
236
236
  * @param {string} sessionId
237
237
  * @param {*} [options] Override http request option.
@@ -241,7 +241,7 @@ export interface SessionsApiInterface {
241
241
  redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
242
242
 
243
243
  /**
244
- * 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.
244
+ * 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.
245
245
  * Redact Session
246
246
  */
247
247
  redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -570,7 +570,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
570
570
  }
571
571
 
572
572
  /**
573
- * 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.
573
+ * 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.
574
574
  * Redact Session
575
575
  */
576
576
  async redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -604,7 +604,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
604
604
  }
605
605
 
606
606
  /**
607
- * 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.
607
+ * 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.
608
608
  * Redact Session
609
609
  */
610
610
  async redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
package/src/apis/index.ts CHANGED
@@ -3,4 +3,3 @@
3
3
  export * from './AttachmentsApi';
4
4
  export * from './NetworkApi';
5
5
  export * from './SessionsApi';
6
- export * from './WellKnownApi';
@@ -0,0 +1,102 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BangladeshNidInput
20
+ */
21
+ export interface BangladeshNidInput {
22
+ /**
23
+ * The user's Bangladesh National ID number.
24
+ * @type {string}
25
+ * @memberof BangladeshNidInput
26
+ */
27
+ nationalIdNumber: string;
28
+ /**
29
+ * The user's date of birth, in `YYYY-MM-DD` format
30
+ * @type {Date}
31
+ * @memberof BangladeshNidInput
32
+ */
33
+ dateOfBirth: Date;
34
+ /**
35
+ * The user's full name
36
+ * @type {string}
37
+ * @memberof BangladeshNidInput
38
+ */
39
+ name: string;
40
+ /**
41
+ * The raw bytes of the photo file collected from the user.
42
+ * @type {string}
43
+ * @memberof BangladeshNidInput
44
+ */
45
+ photoByes?: string | null;
46
+ /**
47
+ * The MIME Type of the file contained in `PhotoByes`.
48
+ *
49
+ * Must be one of `image/jpeg`, or `image/png`.
50
+ * @type {string}
51
+ * @memberof BangladeshNidInput
52
+ */
53
+ photoImageMimeType?: string | null;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the BangladeshNidInput interface.
58
+ */
59
+ export function instanceOfBangladeshNidInput(value: object): value is BangladeshNidInput {
60
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined) return false;
61
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
62
+ if (!('name' in value) || value['name'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function BangladeshNidInputFromJSON(json: any): BangladeshNidInput {
67
+ return BangladeshNidInputFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function BangladeshNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BangladeshNidInput {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'nationalIdNumber': json['nationalIdNumber'],
77
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
78
+ 'name': json['name'],
79
+ 'photoByes': json['photoByes'] == null ? undefined : json['photoByes'],
80
+ 'photoImageMimeType': json['photoImageMimeType'] == null ? undefined : json['photoImageMimeType'],
81
+ };
82
+ }
83
+
84
+ export function BangladeshNidInputToJSON(json: any): BangladeshNidInput {
85
+ return BangladeshNidInputToJSONTyped(json, false);
86
+ }
87
+
88
+ export function BangladeshNidInputToJSONTyped(value?: BangladeshNidInput | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'nationalIdNumber': value['nationalIdNumber'],
96
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
97
+ 'name': value['name'],
98
+ 'photoByes': value['photoByes'],
99
+ 'photoImageMimeType': value['photoImageMimeType'],
100
+ };
101
+ }
102
+