@trinsic/api 2.0.0-alpha2 → 2.0.0-alpha3

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 (141) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/dist/apis/NetworkApi.d.ts +4 -4
  3. package/dist/apis/NetworkApi.js +2 -2
  4. package/dist/esm/apis/NetworkApi.d.ts +4 -4
  5. package/dist/esm/apis/NetworkApi.js +2 -2
  6. package/dist/esm/models/AadhaarInput.d.ts +2 -2
  7. package/dist/esm/models/AadhaarInput.js +1 -1
  8. package/dist/esm/models/Address.d.ts +8 -8
  9. package/dist/esm/models/AttachmentAccessKeys.d.ts +4 -4
  10. package/dist/esm/models/BangladeshNationalIdInput.d.ts +4 -4
  11. package/dist/esm/models/BangladeshNationalIdInput.js +1 -1
  12. package/dist/esm/models/BrazilDigitalCnhInput.d.ts +3 -3
  13. package/dist/esm/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
  14. package/dist/esm/models/CreateHostedProviderSessionRequest.d.ts +1 -1
  15. package/dist/esm/models/CreateHostedProviderSessionResponse.d.ts +1 -1
  16. package/dist/esm/models/CreateWidgetSessionRequest.d.ts +3 -3
  17. package/dist/esm/models/CreateWidgetSessionResponse.d.ts +1 -1
  18. package/dist/esm/models/DocumentData.d.ts +6 -6
  19. package/dist/esm/models/DocumentData.js +2 -2
  20. package/dist/esm/models/DocumentScanAttachments.d.ts +1 -1
  21. package/dist/esm/models/GetSessionResultResponse.d.ts +1 -1
  22. package/dist/esm/models/HttpValidationProblemDetails.d.ts +5 -5
  23. package/dist/esm/models/IdentityData.d.ts +4 -4
  24. package/dist/esm/models/IndonesiaNikInput.d.ts +43 -0
  25. package/dist/esm/models/IndonesiaNikInput.js +48 -0
  26. package/dist/esm/models/IntegrationStep.d.ts +1 -1
  27. package/dist/esm/models/KenyaNidInput.d.ts +61 -0
  28. package/dist/esm/models/KenyaNidInput.js +58 -0
  29. package/dist/esm/models/KnownAddress.d.ts +8 -8
  30. package/dist/esm/models/KnownIdentityData.d.ts +1 -1
  31. package/dist/esm/models/KnownPersonData.d.ts +8 -8
  32. package/dist/esm/models/MexicoCurpInput.d.ts +31 -0
  33. package/dist/esm/models/MexicoCurpInput.js +40 -0
  34. package/dist/esm/models/NigeriaNinInput.d.ts +67 -0
  35. package/dist/esm/models/NigeriaNinInput.js +58 -0
  36. package/dist/esm/models/PersonData.d.ts +10 -10
  37. package/dist/esm/models/PersonData.js +1 -1
  38. package/dist/esm/models/PhilippineMatchInput.d.ts +5 -5
  39. package/dist/esm/models/PhilippineMatchInput.js +1 -1
  40. package/dist/esm/models/PhilippineQRInput.d.ts +2 -2
  41. package/dist/esm/models/ProblemDetails.d.ts +5 -5
  42. package/dist/esm/models/ProviderAttachments.d.ts +1 -1
  43. package/dist/esm/models/ProviderInfo.d.ts +1 -1
  44. package/dist/esm/models/ProviderInput.d.ts +41 -6
  45. package/dist/esm/models/ProviderInput.js +15 -0
  46. package/dist/esm/models/RecommendRequest.d.ts +10 -4
  47. package/dist/esm/models/RecommendRequest.js +2 -0
  48. package/dist/esm/models/RefreshStepContentRequest.d.ts +1 -1
  49. package/dist/esm/models/ResultCollection.d.ts +1 -1
  50. package/dist/esm/models/Session.d.ts +1 -1
  51. package/dist/esm/models/SouthAfricaNidInput.d.ts +49 -0
  52. package/dist/esm/models/SouthAfricaNidInput.js +52 -0
  53. package/dist/esm/models/index.d.ts +5 -0
  54. package/dist/esm/models/index.js +5 -0
  55. package/dist/models/AadhaarInput.d.ts +2 -2
  56. package/dist/models/AadhaarInput.js +1 -1
  57. package/dist/models/Address.d.ts +8 -8
  58. package/dist/models/AttachmentAccessKeys.d.ts +4 -4
  59. package/dist/models/BangladeshNationalIdInput.d.ts +4 -4
  60. package/dist/models/BangladeshNationalIdInput.js +1 -1
  61. package/dist/models/BrazilDigitalCnhInput.d.ts +3 -3
  62. package/dist/models/CreateAdvancedProviderSessionRequest.d.ts +3 -3
  63. package/dist/models/CreateHostedProviderSessionRequest.d.ts +1 -1
  64. package/dist/models/CreateHostedProviderSessionResponse.d.ts +1 -1
  65. package/dist/models/CreateWidgetSessionRequest.d.ts +3 -3
  66. package/dist/models/CreateWidgetSessionResponse.d.ts +1 -1
  67. package/dist/models/DocumentData.d.ts +6 -6
  68. package/dist/models/DocumentData.js +2 -2
  69. package/dist/models/DocumentScanAttachments.d.ts +1 -1
  70. package/dist/models/GetSessionResultResponse.d.ts +1 -1
  71. package/dist/models/HttpValidationProblemDetails.d.ts +5 -5
  72. package/dist/models/IdentityData.d.ts +4 -4
  73. package/dist/models/IndonesiaNikInput.d.ts +43 -0
  74. package/dist/models/IndonesiaNikInput.js +54 -0
  75. package/dist/models/IntegrationStep.d.ts +1 -1
  76. package/dist/models/KenyaNidInput.d.ts +61 -0
  77. package/dist/models/KenyaNidInput.js +64 -0
  78. package/dist/models/KnownAddress.d.ts +8 -8
  79. package/dist/models/KnownIdentityData.d.ts +1 -1
  80. package/dist/models/KnownPersonData.d.ts +8 -8
  81. package/dist/models/MexicoCurpInput.d.ts +31 -0
  82. package/dist/models/MexicoCurpInput.js +46 -0
  83. package/dist/models/NigeriaNinInput.d.ts +67 -0
  84. package/dist/models/NigeriaNinInput.js +64 -0
  85. package/dist/models/PersonData.d.ts +10 -10
  86. package/dist/models/PersonData.js +1 -1
  87. package/dist/models/PhilippineMatchInput.d.ts +5 -5
  88. package/dist/models/PhilippineMatchInput.js +1 -1
  89. package/dist/models/PhilippineQRInput.d.ts +2 -2
  90. package/dist/models/ProblemDetails.d.ts +5 -5
  91. package/dist/models/ProviderAttachments.d.ts +1 -1
  92. package/dist/models/ProviderInfo.d.ts +1 -1
  93. package/dist/models/ProviderInput.d.ts +41 -6
  94. package/dist/models/ProviderInput.js +15 -0
  95. package/dist/models/RecommendRequest.d.ts +10 -4
  96. package/dist/models/RecommendRequest.js +2 -0
  97. package/dist/models/RefreshStepContentRequest.d.ts +1 -1
  98. package/dist/models/ResultCollection.d.ts +1 -1
  99. package/dist/models/Session.d.ts +1 -1
  100. package/dist/models/SouthAfricaNidInput.d.ts +49 -0
  101. package/dist/models/SouthAfricaNidInput.js +58 -0
  102. package/dist/models/index.d.ts +5 -0
  103. package/dist/models/index.js +5 -0
  104. package/package.json +1 -1
  105. package/src/apis/NetworkApi.ts +4 -4
  106. package/src/models/AadhaarInput.ts +3 -3
  107. package/src/models/Address.ts +8 -8
  108. package/src/models/AttachmentAccessKeys.ts +4 -4
  109. package/src/models/BangladeshNationalIdInput.ts +5 -5
  110. package/src/models/BrazilDigitalCnhInput.ts +3 -3
  111. package/src/models/CreateAdvancedProviderSessionRequest.ts +3 -3
  112. package/src/models/CreateHostedProviderSessionRequest.ts +1 -1
  113. package/src/models/CreateHostedProviderSessionResponse.ts +1 -1
  114. package/src/models/CreateWidgetSessionRequest.ts +3 -3
  115. package/src/models/CreateWidgetSessionResponse.ts +1 -1
  116. package/src/models/DocumentData.ts +8 -8
  117. package/src/models/DocumentScanAttachments.ts +1 -1
  118. package/src/models/GetSessionResultResponse.ts +1 -1
  119. package/src/models/HttpValidationProblemDetails.ts +5 -5
  120. package/src/models/IdentityData.ts +4 -4
  121. package/src/models/IndonesiaNikInput.ts +79 -0
  122. package/src/models/IntegrationStep.ts +1 -1
  123. package/src/models/KenyaNidInput.ts +105 -0
  124. package/src/models/KnownAddress.ts +8 -8
  125. package/src/models/KnownIdentityData.ts +1 -1
  126. package/src/models/KnownPersonData.ts +8 -8
  127. package/src/models/MexicoCurpInput.ts +61 -0
  128. package/src/models/NigeriaNinInput.ts +112 -0
  129. package/src/models/PersonData.ts +11 -11
  130. package/src/models/PhilippineMatchInput.ts +6 -6
  131. package/src/models/PhilippineQRInput.ts +2 -2
  132. package/src/models/ProblemDetails.ts +5 -5
  133. package/src/models/ProviderAttachments.ts +1 -1
  134. package/src/models/ProviderInfo.ts +1 -1
  135. package/src/models/ProviderInput.ts +76 -6
  136. package/src/models/RecommendRequest.ts +12 -4
  137. package/src/models/RefreshStepContentRequest.ts +1 -1
  138. package/src/models/ResultCollection.ts +1 -1
  139. package/src/models/Session.ts +1 -1
  140. package/src/models/SouthAfricaNidInput.ts +88 -0
  141. package/src/models/index.ts +5 -0
@@ -24,25 +24,31 @@ export interface RecommendRequest {
24
24
  * @type {string}
25
25
  * @memberof RecommendRequest
26
26
  */
27
- phoneNumber?: string;
27
+ phoneNumber?: string | null;
28
28
  /**
29
29
  * A list of countries, in alpha-2 ISO 3166 format, you wish to specify for the recommendation, this can include the user's country of residence, nationality, etc.
30
30
  * @type {Array<string>}
31
31
  * @memberof RecommendRequest
32
32
  */
33
- countries?: Array<string>;
33
+ countries?: Array<string> | null;
34
34
  /**
35
35
  * If one of the countries has subdivisions, for example the US states, you can specify a list of these to further refine the recommendation (e.g., CA, UT, NY)
36
36
  * @type {Array<string>}
37
37
  * @memberof RecommendRequest
38
38
  */
39
- subdivisions?: Array<string>;
39
+ subdivisions?: Array<string> | null;
40
+ /**
41
+ * Provide the IP addresses of the user you wish to generate a recommendation for. Will be used to look up the user's geographic location.
42
+ * @type {Array<string>}
43
+ * @memberof RecommendRequest
44
+ */
45
+ ipAddresses?: Array<string> | null;
40
46
  /**
41
47
  * If true, the recommendation will include providers that are disabled for the app
42
48
  * @type {boolean}
43
49
  * @memberof RecommendRequest
44
50
  */
45
- includeDisabledProviders?: boolean;
51
+ includeDisabledProviders?: boolean | null;
46
52
  }
47
53
 
48
54
  /**
@@ -65,6 +71,7 @@ export function RecommendRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
65
71
  'phoneNumber': json['phoneNumber'] == null ? undefined : json['phoneNumber'],
66
72
  'countries': json['countries'] == null ? undefined : json['countries'],
67
73
  'subdivisions': json['subdivisions'] == null ? undefined : json['subdivisions'],
74
+ 'ipAddresses': json['ipAddresses'] == null ? undefined : json['ipAddresses'],
68
75
  'includeDisabledProviders': json['includeDisabledProviders'] == null ? undefined : json['includeDisabledProviders'],
69
76
  };
70
77
  }
@@ -78,6 +85,7 @@ export function RecommendRequestToJSON(value?: RecommendRequest | null): any {
78
85
  'phoneNumber': value['phoneNumber'],
79
86
  'countries': value['countries'],
80
87
  'subdivisions': value['subdivisions'],
88
+ 'ipAddresses': value['ipAddresses'],
81
89
  'includeDisabledProviders': value['includeDisabledProviders'],
82
90
  };
83
91
  }
@@ -24,7 +24,7 @@ export interface RefreshStepContentRequest {
24
24
  * @type {string}
25
25
  * @memberof RefreshStepContentRequest
26
26
  */
27
- resultsAccessKey?: string;
27
+ resultsAccessKey?: string | null;
28
28
  }
29
29
 
30
30
  /**
@@ -37,7 +37,7 @@ export interface ResultCollection {
37
37
  * @type {string}
38
38
  * @memberof ResultCollection
39
39
  */
40
- resultsAccessKey?: string;
40
+ resultsAccessKey?: string | null;
41
41
  }
42
42
 
43
43
 
@@ -56,7 +56,7 @@ export interface Session {
56
56
  * @type {SessionErrorCode}
57
57
  * @memberof Session
58
58
  */
59
- errorCode?: SessionErrorCode;
59
+ errorCode?: SessionErrorCode | null;
60
60
  /**
61
61
  * The unix timestamp, in seconds, when this session was created
62
62
  * @type {number}
@@ -0,0 +1,88 @@
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 SouthAfricaNidInput
20
+ */
21
+ export interface SouthAfricaNidInput {
22
+ /**
23
+ * The user's full name as it appears in their National ID
24
+ * @type {string}
25
+ * @memberof SouthAfricaNidInput
26
+ */
27
+ fullName: string;
28
+ /**
29
+ * The user's date of birth, in `YYYY-MM-DD` format
30
+ * @type {Date}
31
+ * @memberof SouthAfricaNidInput
32
+ */
33
+ dateOfBirth: Date;
34
+ /**
35
+ * The user's gender as it appears in their National ID (e.g., male, female)
36
+ * @type {string}
37
+ * @memberof SouthAfricaNidInput
38
+ */
39
+ gender: string;
40
+ /**
41
+ * The user's South African National ID number
42
+ * @type {string}
43
+ * @memberof SouthAfricaNidInput
44
+ */
45
+ nationalIdNumber: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the SouthAfricaNidInput interface.
50
+ */
51
+ export function instanceOfSouthAfricaNidInput(value: object): value is SouthAfricaNidInput {
52
+ if (!('fullName' in value) || value['fullName'] === undefined) return false;
53
+ if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) return false;
54
+ if (!('gender' in value) || value['gender'] === undefined) return false;
55
+ if (!('nationalIdNumber' in value) || value['nationalIdNumber'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function SouthAfricaNidInputFromJSON(json: any): SouthAfricaNidInput {
60
+ return SouthAfricaNidInputFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function SouthAfricaNidInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SouthAfricaNidInput {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'fullName': json['fullName'],
70
+ 'dateOfBirth': (new Date(json['dateOfBirth'])),
71
+ 'gender': json['gender'],
72
+ 'nationalIdNumber': json['nationalIdNumber'],
73
+ };
74
+ }
75
+
76
+ export function SouthAfricaNidInputToJSON(value?: SouthAfricaNidInput | null): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+
82
+ 'fullName': value['fullName'],
83
+ 'dateOfBirth': ((value['dateOfBirth']).toISOString().substring(0,10)),
84
+ 'gender': value['gender'],
85
+ 'nationalIdNumber': value['nationalIdNumber'],
86
+ };
87
+ }
88
+
@@ -23,14 +23,18 @@ export * from './GetSessionResultRequest';
23
23
  export * from './GetSessionResultResponse';
24
24
  export * from './HttpValidationProblemDetails';
25
25
  export * from './IdentityData';
26
+ export * from './IndonesiaNikInput';
26
27
  export * from './IntegrationCapability';
27
28
  export * from './IntegrationLaunchMethod';
28
29
  export * from './IntegrationStep';
30
+ export * from './KenyaNidInput';
29
31
  export * from './KnownAddress';
30
32
  export * from './KnownIdentityData';
31
33
  export * from './KnownPersonData';
32
34
  export * from './ListProvidersResponse';
33
35
  export * from './ListSessionsResponse';
36
+ export * from './MexicoCurpInput';
37
+ export * from './NigeriaNinInput';
34
38
  export * from './OrderDirection';
35
39
  export * from './PersonData';
36
40
  export * from './PhilippineMatchInput';
@@ -50,4 +54,5 @@ export * from './Session';
50
54
  export * from './SessionErrorCode';
51
55
  export * from './SessionOrdering';
52
56
  export * from './Sex';
57
+ export * from './SouthAfricaNidInput';
53
58
  export * from './StepRefreshInfo';