@dynamic-labs/sdk-api 0.13.0 → 0.15.0

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 (169) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AdminActionsApi.cjs +4 -0
  3. package/src/apis/AdminActionsApi.js +4 -0
  4. package/src/apis/AllowlistsApi.cjs +4 -0
  5. package/src/apis/AllowlistsApi.js +4 -0
  6. package/src/apis/AnalyticsApi.cjs +4 -0
  7. package/src/apis/AnalyticsApi.js +4 -0
  8. package/src/apis/AuthorizedClientsApi.cjs +4 -0
  9. package/src/apis/AuthorizedClientsApi.js +4 -0
  10. package/src/apis/CaptchaApi.cjs +4 -0
  11. package/src/apis/CaptchaApi.js +4 -0
  12. package/src/apis/ChainalysisApi.cjs +4 -0
  13. package/src/apis/ChainalysisApi.js +4 -0
  14. package/src/apis/ChainsApi.cjs +4 -0
  15. package/src/apis/ChainsApi.js +4 -0
  16. package/src/apis/CheckoutApi.cjs +4 -0
  17. package/src/apis/CheckoutApi.js +4 -0
  18. package/src/apis/ClientGrantApi.cjs +4 -0
  19. package/src/apis/ClientGrantApi.js +4 -0
  20. package/src/apis/CustomFieldsApi.cjs +4 -0
  21. package/src/apis/CustomFieldsApi.js +4 -0
  22. package/src/apis/CustomHostnamesApi.cjs +4 -0
  23. package/src/apis/CustomHostnamesApi.js +4 -0
  24. package/src/apis/CustomNetworksApi.cjs +4 -0
  25. package/src/apis/CustomNetworksApi.js +4 -0
  26. package/src/apis/DeeplinkUrlsApi.cjs +4 -0
  27. package/src/apis/DeeplinkUrlsApi.js +4 -0
  28. package/src/apis/EnvironmentsApi.cjs +4 -0
  29. package/src/apis/EnvironmentsApi.js +4 -0
  30. package/src/apis/EventsApi.cjs +4 -0
  31. package/src/apis/EventsApi.js +4 -0
  32. package/src/apis/ExchangesApi.cjs +4 -0
  33. package/src/apis/ExchangesApi.js +4 -0
  34. package/src/apis/ExportsApi.cjs +4 -0
  35. package/src/apis/ExportsApi.js +4 -0
  36. package/src/apis/ExternalJwtApi.cjs +4 -0
  37. package/src/apis/ExternalJwtApi.js +4 -0
  38. package/src/apis/FlowAnalyticsApi.cjs +4 -0
  39. package/src/apis/FlowAnalyticsApi.js +4 -0
  40. package/src/apis/GaslessApi.cjs +4 -0
  41. package/src/apis/GaslessApi.js +4 -0
  42. package/src/apis/GatesApi.cjs +4 -0
  43. package/src/apis/GatesApi.js +4 -0
  44. package/src/apis/GlobalWalletAccessControlApi.cjs +4 -0
  45. package/src/apis/GlobalWalletAccessControlApi.js +4 -0
  46. package/src/apis/GlobalWalletConnectionsApi.cjs +4 -0
  47. package/src/apis/GlobalWalletConnectionsApi.js +4 -0
  48. package/src/apis/GlobalWalletsApi.cjs +4 -0
  49. package/src/apis/GlobalWalletsApi.js +4 -0
  50. package/src/apis/InvitesApi.cjs +4 -0
  51. package/src/apis/InvitesApi.js +4 -0
  52. package/src/apis/KybApi.cjs +113 -4
  53. package/src/apis/KybApi.d.ts +43 -2
  54. package/src/apis/KybApi.js +113 -4
  55. package/src/apis/MembersApi.cjs +4 -0
  56. package/src/apis/MembersApi.js +4 -0
  57. package/src/apis/MfaSettingsApi.cjs +4 -0
  58. package/src/apis/MfaSettingsApi.js +4 -0
  59. package/src/apis/NameServicesApi.cjs +4 -0
  60. package/src/apis/NameServicesApi.js +4 -0
  61. package/src/apis/OrganizationSettingsApi.cjs +4 -0
  62. package/src/apis/OrganizationSettingsApi.js +4 -0
  63. package/src/apis/OrganizationsApi.cjs +4 -0
  64. package/src/apis/OrganizationsApi.js +4 -0
  65. package/src/apis/OriginsApi.cjs +4 -0
  66. package/src/apis/OriginsApi.js +4 -0
  67. package/src/apis/ProjectsApi.cjs +4 -0
  68. package/src/apis/ProjectsApi.js +4 -0
  69. package/src/apis/ProvidersApi.cjs +4 -0
  70. package/src/apis/ProvidersApi.js +4 -0
  71. package/src/apis/SDKApi.cjs +4 -0
  72. package/src/apis/SDKApi.js +4 -0
  73. package/src/apis/SDKViewsApi.cjs +4 -0
  74. package/src/apis/SDKViewsApi.js +4 -0
  75. package/src/apis/ServerApi.cjs +4 -0
  76. package/src/apis/ServerApi.js +4 -0
  77. package/src/apis/SessionsApi.cjs +4 -0
  78. package/src/apis/SessionsApi.js +4 -0
  79. package/src/apis/TestAccountApi.cjs +4 -0
  80. package/src/apis/TestAccountApi.js +4 -0
  81. package/src/apis/TokensApi.cjs +4 -0
  82. package/src/apis/TokensApi.js +4 -0
  83. package/src/apis/UserApiTokensApi.cjs +4 -0
  84. package/src/apis/UserApiTokensApi.js +4 -0
  85. package/src/apis/UsersApi.cjs +4 -0
  86. package/src/apis/UsersApi.js +4 -0
  87. package/src/apis/VisitsApi.cjs +4 -0
  88. package/src/apis/VisitsApi.js +4 -0
  89. package/src/apis/WaasApi.cjs +4 -0
  90. package/src/apis/WaasApi.js +4 -0
  91. package/src/apis/WalletConnectApi.cjs +4 -0
  92. package/src/apis/WalletConnectApi.js +4 -0
  93. package/src/apis/WalletsApi.cjs +4 -0
  94. package/src/apis/WalletsApi.js +4 -0
  95. package/src/apis/WebhooksApi.cjs +4 -0
  96. package/src/apis/WebhooksApi.js +4 -0
  97. package/src/apis/YieldApi.cjs +199 -0
  98. package/src/apis/YieldApi.d.ts +31 -0
  99. package/src/apis/YieldApi.js +195 -0
  100. package/src/apis/ZendeskApi.cjs +4 -0
  101. package/src/apis/ZendeskApi.js +4 -0
  102. package/src/apis/index.d.ts +1 -0
  103. package/src/index.cjs +74 -0
  104. package/src/index.js +16 -1
  105. package/src/models/BillingSubscription.cjs +2 -0
  106. package/src/models/BillingSubscription.d.ts +6 -0
  107. package/src/models/BillingSubscription.js +2 -0
  108. package/src/models/KybAdditionalInfoFileData.d.ts +1 -1
  109. package/src/models/KybAlreadyInProgressResponse.cjs +54 -0
  110. package/src/models/KybAlreadyInProgressResponse.d.ts +41 -0
  111. package/src/models/KybAlreadyInProgressResponse.js +48 -0
  112. package/src/models/KybCompanyResult.cjs +2 -0
  113. package/src/models/KybCompanyResult.d.ts +6 -0
  114. package/src/models/KybCompanyResult.js +2 -0
  115. package/src/models/KybOfficerSummary.cjs +43 -0
  116. package/src/models/KybOfficerSummary.d.ts +58 -0
  117. package/src/models/KybOfficerSummary.js +37 -0
  118. package/src/models/KybOfficersResponse.cjs +33 -0
  119. package/src/models/KybOfficersResponse.d.ts +28 -0
  120. package/src/models/KybOfficersResponse.js +27 -0
  121. package/src/models/KybResendSkipReasonEnum.cjs +47 -0
  122. package/src/models/KybResendSkipReasonEnum.d.ts +30 -0
  123. package/src/models/KybResendSkipReasonEnum.js +41 -0
  124. package/src/models/KybResendSkippedOfficer.cjs +35 -0
  125. package/src/models/KybResendSkippedOfficer.d.ts +34 -0
  126. package/src/models/KybResendSkippedOfficer.js +29 -0
  127. package/src/models/KybResendVerificationRequest.cjs +33 -0
  128. package/src/models/KybResendVerificationRequest.d.ts +27 -0
  129. package/src/models/KybResendVerificationRequest.js +27 -0
  130. package/src/models/KybResendVerificationResponse.cjs +35 -0
  131. package/src/models/KybResendVerificationResponse.d.ts +34 -0
  132. package/src/models/KybResendVerificationResponse.js +29 -0
  133. package/src/models/KybStatusReason.cjs +45 -0
  134. package/src/models/KybStatusReason.d.ts +33 -0
  135. package/src/models/KybStatusReason.js +39 -0
  136. package/src/models/KybSubmissionAddress.cjs +43 -0
  137. package/src/models/KybSubmissionAddress.d.ts +57 -0
  138. package/src/models/KybSubmissionAddress.js +37 -0
  139. package/src/models/KybSubmissionBusinessData.cjs +62 -0
  140. package/src/models/KybSubmissionBusinessData.d.ts +95 -0
  141. package/src/models/KybSubmissionBusinessData.js +56 -0
  142. package/src/models/KybSubmissionResponse.cjs +43 -0
  143. package/src/models/KybSubmissionResponse.d.ts +49 -0
  144. package/src/models/KybSubmissionResponse.js +37 -0
  145. package/src/models/KybVendorQuestion.cjs +47 -0
  146. package/src/models/KybVendorQuestion.d.ts +39 -0
  147. package/src/models/KybVendorQuestion.js +41 -0
  148. package/src/models/KybVerifyRequest.cjs +6 -0
  149. package/src/models/KybVerifyRequest.d.ts +14 -0
  150. package/src/models/KybVerifyRequest.js +6 -0
  151. package/src/models/KybVerifyRequestBusinessData.cjs +12 -4
  152. package/src/models/KybVerifyRequestBusinessData.d.ts +18 -11
  153. package/src/models/KybVerifyRequestBusinessData.js +13 -5
  154. package/src/models/KybVerifyRequestDocuments.cjs +37 -0
  155. package/src/models/KybVerifyRequestDocuments.d.ts +39 -0
  156. package/src/models/KybVerifyRequestDocuments.js +31 -0
  157. package/src/models/KybVerifyRequestOfficers.cjs +37 -0
  158. package/src/models/KybVerifyRequestOfficers.d.ts +39 -0
  159. package/src/models/KybVerifyRequestOfficers.js +31 -0
  160. package/src/models/Organization.cjs +2 -0
  161. package/src/models/Organization.d.ts +6 -0
  162. package/src/models/Organization.js +2 -0
  163. package/src/models/OrganizationRequest.cjs +2 -0
  164. package/src/models/OrganizationRequest.d.ts +6 -0
  165. package/src/models/OrganizationRequest.js +2 -0
  166. package/src/models/OrganizationResponseOrganization.cjs +2 -0
  167. package/src/models/OrganizationResponseOrganization.d.ts +6 -0
  168. package/src/models/OrganizationResponseOrganization.js +2 -0
  169. package/src/models/index.d.ts +14 -0
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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
+ * One answered question from a question group a reviewer configured on the AI Prise template. Read-only: no AI Prise write endpoint accepts `questions_response`, so these are never submitted by us — they are captured in AI Prise's own hosted flow and surfaced here for reconciliation.
14
+ * @export
15
+ * @interface KybVendorQuestion
16
+ */
17
+ export interface KybVendorQuestion {
18
+ /**
19
+ * Vendor question key (Q01, Q02, ...).
20
+ * @type {string}
21
+ * @memberof KybVendorQuestion
22
+ */
23
+ questionId: string;
24
+ /**
25
+ * Vendor-authored question text; shown verbatim to the customer.
26
+ * @type {string}
27
+ * @memberof KybVendorQuestion
28
+ */
29
+ question: string;
30
+ /**
31
+ * The recorded answer. Empty string when the question is unanswered.
32
+ * @type {string}
33
+ * @memberof KybVendorQuestion
34
+ */
35
+ answer: string;
36
+ }
37
+ export declare function KybVendorQuestionFromJSON(json: any): KybVendorQuestion;
38
+ export declare function KybVendorQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean): KybVendorQuestion;
39
+ export declare function KybVendorQuestionToJSON(value?: KybVendorQuestion | null): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
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
+ function KybVendorQuestionFromJSON(json) {
15
+ return KybVendorQuestionFromJSONTyped(json);
16
+ }
17
+ function KybVendorQuestionFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'questionId': json['questionId'],
23
+ 'question': json['question'],
24
+ 'answer': json['answer'],
25
+ };
26
+ }
27
+ function KybVendorQuestionToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'questionId': value.questionId,
36
+ 'question': value.question,
37
+ 'answer': value.answer,
38
+ };
39
+ }
40
+
41
+ export { KybVendorQuestionFromJSON, KybVendorQuestionFromJSONTyped, KybVendorQuestionToJSON };
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
  var KybVerifyRequestAdditionalInfo = require('./KybVerifyRequestAdditionalInfo.cjs');
7
7
  var KybVerifyRequestBusinessData = require('./KybVerifyRequestBusinessData.cjs');
8
+ var KybVerifyRequestDocuments = require('./KybVerifyRequestDocuments.cjs');
9
+ var KybVerifyRequestOfficers = require('./KybVerifyRequestOfficers.cjs');
8
10
 
9
11
  /* tslint:disable */
10
12
  function KybVerifyRequestFromJSON(json) {
@@ -17,6 +19,8 @@ function KybVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
17
19
  return {
18
20
  'tier': json['tier'],
19
21
  'businessData': !runtime.exists(json, 'businessData') ? undefined : KybVerifyRequestBusinessData.KybVerifyRequestBusinessDataFromJSON(json['businessData']),
22
+ 'documents': !runtime.exists(json, 'documents') ? undefined : (json['documents'].map(KybVerifyRequestDocuments.KybVerifyRequestDocumentsFromJSON)),
23
+ 'officers': !runtime.exists(json, 'officers') ? undefined : (json['officers'].map(KybVerifyRequestOfficers.KybVerifyRequestOfficersFromJSON)),
20
24
  'additionalInfo': !runtime.exists(json, 'additionalInfo') ? undefined : (json['additionalInfo'].map(KybVerifyRequestAdditionalInfo.KybVerifyRequestAdditionalInfoFromJSON)),
21
25
  };
22
26
  }
@@ -30,6 +34,8 @@ function KybVerifyRequestToJSON(value) {
30
34
  return {
31
35
  'tier': value.tier,
32
36
  'businessData': KybVerifyRequestBusinessData.KybVerifyRequestBusinessDataToJSON(value.businessData),
37
+ 'documents': value.documents === undefined ? undefined : (value.documents.map(KybVerifyRequestDocuments.KybVerifyRequestDocumentsToJSON)),
38
+ 'officers': value.officers === undefined ? undefined : (value.officers.map(KybVerifyRequestOfficers.KybVerifyRequestOfficersToJSON)),
33
39
  'additionalInfo': value.additionalInfo === undefined ? undefined : (value.additionalInfo.map(KybVerifyRequestAdditionalInfo.KybVerifyRequestAdditionalInfoToJSON)),
34
40
  };
35
41
  }
@@ -11,6 +11,8 @@
11
11
  */
12
12
  import { KybVerifyRequestAdditionalInfo } from './KybVerifyRequestAdditionalInfo';
13
13
  import { KybVerifyRequestBusinessData } from './KybVerifyRequestBusinessData';
14
+ import { KybVerifyRequestDocuments } from './KybVerifyRequestDocuments';
15
+ import { KybVerifyRequestOfficers } from './KybVerifyRequestOfficers';
14
16
  /**
15
17
  *
16
18
  * @export
@@ -29,6 +31,18 @@ export interface KybVerifyRequest {
29
31
  * @memberof KybVerifyRequest
30
32
  */
31
33
  businessData?: KybVerifyRequestBusinessData;
34
+ /**
35
+ * Business documents as base64. Not stored by Redcoast — forwarded to AI Prise's add_business_document endpoint.
36
+ * @type {Array<KybVerifyRequestDocuments>}
37
+ * @memberof KybVerifyRequest
38
+ */
39
+ documents?: Array<KybVerifyRequestDocuments>;
40
+ /**
41
+ * Business officers/directors. Not stored by Redcoast — each entry registers a related person and starts their own KYC verification session.
42
+ * @type {Array<KybVerifyRequestOfficers>}
43
+ * @memberof KybVerifyRequest
44
+ */
45
+ officers?: Array<KybVerifyRequestOfficers>;
32
46
  /**
33
47
  * Officer PII and documents forwarded to AI Prise. Not stored by Redcoast.
34
48
  * @type {Array<KybVerifyRequestAdditionalInfo>}
@@ -1,6 +1,8 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { KybVerifyRequestAdditionalInfoFromJSON, KybVerifyRequestAdditionalInfoToJSON } from './KybVerifyRequestAdditionalInfo.js';
3
3
  import { KybVerifyRequestBusinessDataFromJSON, KybVerifyRequestBusinessDataToJSON } from './KybVerifyRequestBusinessData.js';
4
+ import { KybVerifyRequestDocumentsFromJSON, KybVerifyRequestDocumentsToJSON } from './KybVerifyRequestDocuments.js';
5
+ import { KybVerifyRequestOfficersFromJSON, KybVerifyRequestOfficersToJSON } from './KybVerifyRequestOfficers.js';
4
6
 
5
7
  /* tslint:disable */
6
8
  function KybVerifyRequestFromJSON(json) {
@@ -13,6 +15,8 @@ function KybVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
13
15
  return {
14
16
  'tier': json['tier'],
15
17
  'businessData': !exists(json, 'businessData') ? undefined : KybVerifyRequestBusinessDataFromJSON(json['businessData']),
18
+ 'documents': !exists(json, 'documents') ? undefined : (json['documents'].map(KybVerifyRequestDocumentsFromJSON)),
19
+ 'officers': !exists(json, 'officers') ? undefined : (json['officers'].map(KybVerifyRequestOfficersFromJSON)),
16
20
  'additionalInfo': !exists(json, 'additionalInfo') ? undefined : (json['additionalInfo'].map(KybVerifyRequestAdditionalInfoFromJSON)),
17
21
  };
18
22
  }
@@ -26,6 +30,8 @@ function KybVerifyRequestToJSON(value) {
26
30
  return {
27
31
  'tier': value.tier,
28
32
  'businessData': KybVerifyRequestBusinessDataToJSON(value.businessData),
33
+ 'documents': value.documents === undefined ? undefined : (value.documents.map(KybVerifyRequestDocumentsToJSON)),
34
+ 'officers': value.officers === undefined ? undefined : (value.officers.map(KybVerifyRequestOfficersToJSON)),
29
35
  'additionalInfo': value.additionalInfo === undefined ? undefined : (value.additionalInfo.map(KybVerifyRequestAdditionalInfoToJSON)),
30
36
  };
31
37
  }
@@ -6,6 +6,14 @@ var runtime = require('../runtime.cjs');
6
6
  var KybVerifyRequestBusinessDataAddresses = require('./KybVerifyRequestBusinessDataAddresses.cjs');
7
7
 
8
8
  /* tslint:disable */
9
+ /**
10
+ * @export
11
+ * @enum {string}
12
+ */
13
+ exports.KybVerifyRequestBusinessDataEntityTypeEnum = void 0;
14
+ (function (KybVerifyRequestBusinessDataEntityTypeEnum) {
15
+ KybVerifyRequestBusinessDataEntityTypeEnum["SoleProprietorship"] = "SOLE_PROPRIETORSHIP";
16
+ })(exports.KybVerifyRequestBusinessDataEntityTypeEnum || (exports.KybVerifyRequestBusinessDataEntityTypeEnum = {}));
9
17
  function KybVerifyRequestBusinessDataFromJSON(json) {
10
18
  return KybVerifyRequestBusinessDataFromJSONTyped(json);
11
19
  }
@@ -15,16 +23,16 @@ function KybVerifyRequestBusinessDataFromJSONTyped(json, ignoreDiscriminator) {
15
23
  }
16
24
  return {
17
25
  'name': !runtime.exists(json, 'name') ? undefined : json['name'],
18
- 'alternateName': !runtime.exists(json, 'alternateName') ? undefined : json['alternateName'],
19
26
  'taxIdentificationNumber': !runtime.exists(json, 'taxIdentificationNumber') ? undefined : json['taxIdentificationNumber'],
20
27
  'businessEntityId': !runtime.exists(json, 'businessEntityId') ? undefined : json['businessEntityId'],
21
28
  'countryCode': !runtime.exists(json, 'countryCode') ? undefined : json['countryCode'],
22
29
  'stateCode': !runtime.exists(json, 'stateCode') ? undefined : json['stateCode'],
23
- 'formationDate': !runtime.exists(json, 'formationDate') ? undefined : (new Date(json['formationDate'])),
30
+ 'formationDate': !runtime.exists(json, 'formationDate') ? undefined : json['formationDate'],
24
31
  'website': !runtime.exists(json, 'website') ? undefined : json['website'],
25
32
  'addresses': !runtime.exists(json, 'addresses') ? undefined : (json['addresses'].map(KybVerifyRequestBusinessDataAddresses.KybVerifyRequestBusinessDataAddressesFromJSON)),
26
33
  'phoneNumbers': !runtime.exists(json, 'phoneNumbers') ? undefined : json['phoneNumbers'],
27
34
  'emailAddresses': !runtime.exists(json, 'emailAddresses') ? undefined : json['emailAddresses'],
35
+ 'entityType': !runtime.exists(json, 'entityType') ? undefined : json['entityType'],
28
36
  };
29
37
  }
30
38
  function KybVerifyRequestBusinessDataToJSON(value) {
@@ -36,16 +44,16 @@ function KybVerifyRequestBusinessDataToJSON(value) {
36
44
  }
37
45
  return {
38
46
  'name': value.name,
39
- 'alternateName': value.alternateName,
40
47
  'taxIdentificationNumber': value.taxIdentificationNumber,
41
48
  'businessEntityId': value.businessEntityId,
42
49
  'countryCode': value.countryCode,
43
50
  'stateCode': value.stateCode,
44
- 'formationDate': value.formationDate === undefined ? undefined : (value.formationDate.toISOString().substr(0, 10)),
51
+ 'formationDate': value.formationDate,
45
52
  'website': value.website,
46
53
  'addresses': value.addresses === undefined ? undefined : (value.addresses.map(KybVerifyRequestBusinessDataAddresses.KybVerifyRequestBusinessDataAddressesToJSON)),
47
54
  'phoneNumbers': value.phoneNumbers,
48
55
  'emailAddresses': value.emailAddresses,
56
+ 'entityType': value.entityType,
49
57
  };
50
58
  }
51
59
 
@@ -22,12 +22,6 @@ export interface KybVerifyRequestBusinessData {
22
22
  * @memberof KybVerifyRequestBusinessData
23
23
  */
24
24
  name?: string;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof KybVerifyRequestBusinessData
29
- */
30
- alternateName?: string;
31
25
  /**
32
26
  *
33
27
  * @type {string}
@@ -41,7 +35,7 @@ export interface KybVerifyRequestBusinessData {
41
35
  */
42
36
  businessEntityId?: string;
43
37
  /**
44
- * ISO 3166-1 alpha-2 country code
38
+ * 2-letter ISO country code or an empty string when not provided.
45
39
  * @type {string}
46
40
  * @memberof KybVerifyRequestBusinessData
47
41
  */
@@ -53,13 +47,13 @@ export interface KybVerifyRequestBusinessData {
53
47
  */
54
48
  stateCode?: string;
55
49
  /**
56
- *
57
- * @type {Date}
50
+ * YYYY-MM-DD or an empty string when not provided. Final format validation happens in the controller.
51
+ * @type {string}
58
52
  * @memberof KybVerifyRequestBusinessData
59
53
  */
60
- formationDate?: Date;
54
+ formationDate?: string;
61
55
  /**
62
- *
56
+ * Website URL. The controller normalizes bare domains to https:// and rejects non-HTTP(S) schemes.
63
57
  * @type {string}
64
58
  * @memberof KybVerifyRequestBusinessData
65
59
  */
@@ -82,6 +76,19 @@ export interface KybVerifyRequestBusinessData {
82
76
  * @memberof KybVerifyRequestBusinessData
83
77
  */
84
78
  emailAddresses?: Array<string>;
79
+ /**
80
+ * Optional business entity type. Currently only SOLE_PROPRIETORSHIP is supported; omit for a registered business. AI Prise has no entity_type field, so this is mapped to a `tags` entry instead.
81
+ * @type {string}
82
+ * @memberof KybVerifyRequestBusinessData
83
+ */
84
+ entityType?: KybVerifyRequestBusinessDataEntityTypeEnum;
85
+ }
86
+ /**
87
+ * @export
88
+ * @enum {string}
89
+ */
90
+ export declare enum KybVerifyRequestBusinessDataEntityTypeEnum {
91
+ SoleProprietorship = "SOLE_PROPRIETORSHIP"
85
92
  }
86
93
  export declare function KybVerifyRequestBusinessDataFromJSON(json: any): KybVerifyRequestBusinessData;
87
94
  export declare function KybVerifyRequestBusinessDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): KybVerifyRequestBusinessData;
@@ -2,6 +2,14 @@ import { exists } from '../runtime.js';
2
2
  import { KybVerifyRequestBusinessDataAddressesFromJSON, KybVerifyRequestBusinessDataAddressesToJSON } from './KybVerifyRequestBusinessDataAddresses.js';
3
3
 
4
4
  /* tslint:disable */
5
+ /**
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var KybVerifyRequestBusinessDataEntityTypeEnum;
10
+ (function (KybVerifyRequestBusinessDataEntityTypeEnum) {
11
+ KybVerifyRequestBusinessDataEntityTypeEnum["SoleProprietorship"] = "SOLE_PROPRIETORSHIP";
12
+ })(KybVerifyRequestBusinessDataEntityTypeEnum || (KybVerifyRequestBusinessDataEntityTypeEnum = {}));
5
13
  function KybVerifyRequestBusinessDataFromJSON(json) {
6
14
  return KybVerifyRequestBusinessDataFromJSONTyped(json);
7
15
  }
@@ -11,16 +19,16 @@ function KybVerifyRequestBusinessDataFromJSONTyped(json, ignoreDiscriminator) {
11
19
  }
12
20
  return {
13
21
  'name': !exists(json, 'name') ? undefined : json['name'],
14
- 'alternateName': !exists(json, 'alternateName') ? undefined : json['alternateName'],
15
22
  'taxIdentificationNumber': !exists(json, 'taxIdentificationNumber') ? undefined : json['taxIdentificationNumber'],
16
23
  'businessEntityId': !exists(json, 'businessEntityId') ? undefined : json['businessEntityId'],
17
24
  'countryCode': !exists(json, 'countryCode') ? undefined : json['countryCode'],
18
25
  'stateCode': !exists(json, 'stateCode') ? undefined : json['stateCode'],
19
- 'formationDate': !exists(json, 'formationDate') ? undefined : (new Date(json['formationDate'])),
26
+ 'formationDate': !exists(json, 'formationDate') ? undefined : json['formationDate'],
20
27
  'website': !exists(json, 'website') ? undefined : json['website'],
21
28
  'addresses': !exists(json, 'addresses') ? undefined : (json['addresses'].map(KybVerifyRequestBusinessDataAddressesFromJSON)),
22
29
  'phoneNumbers': !exists(json, 'phoneNumbers') ? undefined : json['phoneNumbers'],
23
30
  'emailAddresses': !exists(json, 'emailAddresses') ? undefined : json['emailAddresses'],
31
+ 'entityType': !exists(json, 'entityType') ? undefined : json['entityType'],
24
32
  };
25
33
  }
26
34
  function KybVerifyRequestBusinessDataToJSON(value) {
@@ -32,17 +40,17 @@ function KybVerifyRequestBusinessDataToJSON(value) {
32
40
  }
33
41
  return {
34
42
  'name': value.name,
35
- 'alternateName': value.alternateName,
36
43
  'taxIdentificationNumber': value.taxIdentificationNumber,
37
44
  'businessEntityId': value.businessEntityId,
38
45
  'countryCode': value.countryCode,
39
46
  'stateCode': value.stateCode,
40
- 'formationDate': value.formationDate === undefined ? undefined : (value.formationDate.toISOString().substr(0, 10)),
47
+ 'formationDate': value.formationDate,
41
48
  'website': value.website,
42
49
  'addresses': value.addresses === undefined ? undefined : (value.addresses.map(KybVerifyRequestBusinessDataAddressesToJSON)),
43
50
  'phoneNumbers': value.phoneNumbers,
44
51
  'emailAddresses': value.emailAddresses,
52
+ 'entityType': value.entityType,
45
53
  };
46
54
  }
47
55
 
48
- export { KybVerifyRequestBusinessDataFromJSON, KybVerifyRequestBusinessDataFromJSONTyped, KybVerifyRequestBusinessDataToJSON };
56
+ export { KybVerifyRequestBusinessDataEntityTypeEnum, KybVerifyRequestBusinessDataFromJSON, KybVerifyRequestBusinessDataFromJSONTyped, KybVerifyRequestBusinessDataToJSON };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function KybVerifyRequestDocumentsFromJSON(json) {
9
+ return KybVerifyRequestDocumentsFromJSONTyped(json);
10
+ }
11
+ function KybVerifyRequestDocumentsFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'fileName': json['fileName'],
17
+ 'fileType': !runtime.exists(json, 'fileType') ? undefined : json['fileType'],
18
+ 'fileBlob': json['fileBlob'],
19
+ };
20
+ }
21
+ function KybVerifyRequestDocumentsToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'fileName': value.fileName,
30
+ 'fileType': value.fileType,
31
+ 'fileBlob': value.fileBlob,
32
+ };
33
+ }
34
+
35
+ exports.KybVerifyRequestDocumentsFromJSON = KybVerifyRequestDocumentsFromJSON;
36
+ exports.KybVerifyRequestDocumentsFromJSONTyped = KybVerifyRequestDocumentsFromJSONTyped;
37
+ exports.KybVerifyRequestDocumentsToJSON = KybVerifyRequestDocumentsToJSON;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 KybVerifyRequestDocuments
16
+ */
17
+ export interface KybVerifyRequestDocuments {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof KybVerifyRequestDocuments
22
+ */
23
+ fileName: string;
24
+ /**
25
+ * Freeform document-type descriptor (e.g. "Certificate of Incorporation").
26
+ * @type {string}
27
+ * @memberof KybVerifyRequestDocuments
28
+ */
29
+ fileType?: string;
30
+ /**
31
+ * Base64-encoded file contents.
32
+ * @type {string}
33
+ * @memberof KybVerifyRequestDocuments
34
+ */
35
+ fileBlob: string;
36
+ }
37
+ export declare function KybVerifyRequestDocumentsFromJSON(json: any): KybVerifyRequestDocuments;
38
+ export declare function KybVerifyRequestDocumentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): KybVerifyRequestDocuments;
39
+ export declare function KybVerifyRequestDocumentsToJSON(value?: KybVerifyRequestDocuments | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function KybVerifyRequestDocumentsFromJSON(json) {
5
+ return KybVerifyRequestDocumentsFromJSONTyped(json);
6
+ }
7
+ function KybVerifyRequestDocumentsFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'fileName': json['fileName'],
13
+ 'fileType': !exists(json, 'fileType') ? undefined : json['fileType'],
14
+ 'fileBlob': json['fileBlob'],
15
+ };
16
+ }
17
+ function KybVerifyRequestDocumentsToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'fileName': value.fileName,
26
+ 'fileType': value.fileType,
27
+ 'fileBlob': value.fileBlob,
28
+ };
29
+ }
30
+
31
+ export { KybVerifyRequestDocumentsFromJSON, KybVerifyRequestDocumentsFromJSONTyped, KybVerifyRequestDocumentsToJSON };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function KybVerifyRequestOfficersFromJSON(json) {
9
+ return KybVerifyRequestOfficersFromJSONTyped(json);
10
+ }
11
+ function KybVerifyRequestOfficersFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'fullName': json['fullName'],
17
+ 'emailAddress': !runtime.exists(json, 'emailAddress') ? undefined : json['emailAddress'],
18
+ 'role': json['role'],
19
+ };
20
+ }
21
+ function KybVerifyRequestOfficersToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'fullName': value.fullName,
30
+ 'emailAddress': value.emailAddress,
31
+ 'role': value.role,
32
+ };
33
+ }
34
+
35
+ exports.KybVerifyRequestOfficersFromJSON = KybVerifyRequestOfficersFromJSON;
36
+ exports.KybVerifyRequestOfficersFromJSONTyped = KybVerifyRequestOfficersFromJSONTyped;
37
+ exports.KybVerifyRequestOfficersToJSON = KybVerifyRequestOfficersToJSON;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 KybVerifyRequestOfficers
16
+ */
17
+ export interface KybVerifyRequestOfficers {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof KybVerifyRequestOfficers
22
+ */
23
+ fullName: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof KybVerifyRequestOfficers
28
+ */
29
+ emailAddress?: string;
30
+ /**
31
+ * One of DIRECTOR | BENEFICIAL_OWNER | OFFICER | SECRETARY.
32
+ * @type {string}
33
+ * @memberof KybVerifyRequestOfficers
34
+ */
35
+ role: string;
36
+ }
37
+ export declare function KybVerifyRequestOfficersFromJSON(json: any): KybVerifyRequestOfficers;
38
+ export declare function KybVerifyRequestOfficersFromJSONTyped(json: any, ignoreDiscriminator: boolean): KybVerifyRequestOfficers;
39
+ export declare function KybVerifyRequestOfficersToJSON(value?: KybVerifyRequestOfficers | null): any;
@@ -0,0 +1,31 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function KybVerifyRequestOfficersFromJSON(json) {
5
+ return KybVerifyRequestOfficersFromJSONTyped(json);
6
+ }
7
+ function KybVerifyRequestOfficersFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'fullName': json['fullName'],
13
+ 'emailAddress': !exists(json, 'emailAddress') ? undefined : json['emailAddress'],
14
+ 'role': json['role'],
15
+ };
16
+ }
17
+ function KybVerifyRequestOfficersToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'fullName': value.fullName,
26
+ 'emailAddress': value.emailAddress,
27
+ 'role': value.role,
28
+ };
29
+ }
30
+
31
+ export { KybVerifyRequestOfficersFromJSON, KybVerifyRequestOfficersFromJSONTyped, KybVerifyRequestOfficersToJSON };
@@ -19,6 +19,7 @@ function OrganizationFromJSONTyped(json, ignoreDiscriminator) {
19
19
  'name': json['name'],
20
20
  'description': !runtime.exists(json, 'description') ? undefined : json['description'],
21
21
  'websiteUrl': !runtime.exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
22
+ 'countryCode': !runtime.exists(json, 'countryCode') ? undefined : json['countryCode'],
22
23
  'address': !runtime.exists(json, 'address') ? undefined : OrganizationAddressFields.OrganizationAddressFieldsFromJSON(json['address']),
23
24
  'role': !runtime.exists(json, 'role') ? undefined : RoleEnum.RoleEnumFromJSON(json['role']),
24
25
  };
@@ -35,6 +36,7 @@ function OrganizationToJSON(value) {
35
36
  'name': value.name,
36
37
  'description': value.description,
37
38
  'websiteUrl': value.websiteUrl,
39
+ 'countryCode': value.countryCode,
38
40
  'address': OrganizationAddressFields.OrganizationAddressFieldsToJSON(value.address),
39
41
  'role': RoleEnum.RoleEnumToJSON(value.role),
40
42
  };
@@ -41,6 +41,12 @@ export interface Organization {
41
41
  * @memberof Organization
42
42
  */
43
43
  websiteUrl?: string;
44
+ /**
45
+ * ISO 3166-1 alpha-2 country code
46
+ * @type {string}
47
+ * @memberof Organization
48
+ */
49
+ countryCode?: string;
44
50
  /**
45
51
  *
46
52
  * @type {OrganizationAddressFields}
@@ -15,6 +15,7 @@ function OrganizationFromJSONTyped(json, ignoreDiscriminator) {
15
15
  'name': json['name'],
16
16
  'description': !exists(json, 'description') ? undefined : json['description'],
17
17
  'websiteUrl': !exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
18
+ 'countryCode': !exists(json, 'countryCode') ? undefined : json['countryCode'],
18
19
  'address': !exists(json, 'address') ? undefined : OrganizationAddressFieldsFromJSON(json['address']),
19
20
  'role': !exists(json, 'role') ? undefined : RoleEnumFromJSON(json['role']),
20
21
  };
@@ -31,6 +32,7 @@ function OrganizationToJSON(value) {
31
32
  'name': value.name,
32
33
  'description': value.description,
33
34
  'websiteUrl': value.websiteUrl,
35
+ 'countryCode': value.countryCode,
34
36
  'address': OrganizationAddressFieldsToJSON(value.address),
35
37
  'role': RoleEnumToJSON(value.role),
36
38
  };
@@ -18,6 +18,7 @@ function OrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
18
18
  'description': !runtime.exists(json, 'description') ? undefined : json['description'],
19
19
  'websiteUrl': !runtime.exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
20
20
  'implementationTimeline': !runtime.exists(json, 'implementationTimeline') ? undefined : WhenToImplementEnum.WhenToImplementEnumFromJSON(json['implementationTimeline']),
21
+ 'countryCode': !runtime.exists(json, 'countryCode') ? undefined : json['countryCode'],
21
22
  };
22
23
  }
23
24
  function OrganizationRequestToJSON(value) {
@@ -32,6 +33,7 @@ function OrganizationRequestToJSON(value) {
32
33
  'description': value.description,
33
34
  'websiteUrl': value.websiteUrl,
34
35
  'implementationTimeline': WhenToImplementEnum.WhenToImplementEnumToJSON(value.implementationTimeline),
36
+ 'countryCode': value.countryCode,
35
37
  };
36
38
  }
37
39
 
@@ -40,6 +40,12 @@ export interface OrganizationRequest {
40
40
  * @memberof OrganizationRequest
41
41
  */
42
42
  implementationTimeline?: WhenToImplementEnum;
43
+ /**
44
+ * ISO 3166-1 alpha-2 country code
45
+ * @type {string}
46
+ * @memberof OrganizationRequest
47
+ */
48
+ countryCode?: string;
43
49
  }
44
50
  export declare function OrganizationRequestFromJSON(json: any): OrganizationRequest;
45
51
  export declare function OrganizationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationRequest;
@@ -14,6 +14,7 @@ function OrganizationRequestFromJSONTyped(json, ignoreDiscriminator) {
14
14
  'description': !exists(json, 'description') ? undefined : json['description'],
15
15
  'websiteUrl': !exists(json, 'websiteUrl') ? undefined : json['websiteUrl'],
16
16
  'implementationTimeline': !exists(json, 'implementationTimeline') ? undefined : WhenToImplementEnumFromJSON(json['implementationTimeline']),
17
+ 'countryCode': !exists(json, 'countryCode') ? undefined : json['countryCode'],
17
18
  };
18
19
  }
19
20
  function OrganizationRequestToJSON(value) {
@@ -28,6 +29,7 @@ function OrganizationRequestToJSON(value) {
28
29
  'description': value.description,
29
30
  'websiteUrl': value.websiteUrl,
30
31
  'implementationTimeline': WhenToImplementEnumToJSON(value.implementationTimeline),
32
+ 'countryCode': value.countryCode,
31
33
  };
32
34
  }
33
35