@dynamic-labs/sdk-api 0.0.1064 → 0.0.1066
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.
- package/package.json +1 -1
- package/src/apis/CheckoutApi.cjs +1 -1
- package/src/apis/CheckoutApi.js +1 -1
- package/src/apis/SDKApi.cjs +8 -8
- package/src/apis/SDKApi.d.ts +6 -6
- package/src/apis/SDKApi.js +8 -8
- package/src/index.cjs +8 -0
- package/src/index.js +2 -0
- package/src/models/BusinessAccountDetail.cjs +3 -0
- package/src/models/BusinessAccountDetail.d.ts +8 -1
- package/src/models/BusinessAccountDetail.js +3 -0
- package/src/models/BusinessAccountDetailAllOf.cjs +4 -0
- package/src/models/BusinessAccountDetailAllOf.d.ts +7 -0
- package/src/models/BusinessAccountDetailAllOf.js +4 -0
- package/src/models/BusinessAccountProperties.cjs +47 -0
- package/src/models/BusinessAccountProperties.d.ts +65 -0
- package/src/models/BusinessAccountProperties.js +41 -0
- package/src/models/BusinessAccountWallet.cjs +39 -0
- package/src/models/BusinessAccountWallet.d.ts +46 -0
- package/src/models/BusinessAccountWallet.js +33 -0
- package/src/models/CreateBusinessAccountSdkRequest.d.ts +1 -1
- package/src/models/CreateWaasAccountRequest.cjs +2 -0
- package/src/models/CreateWaasAccountRequest.d.ts +6 -0
- package/src/models/CreateWaasAccountRequest.js +2 -0
- package/src/models/Flow.cjs +8 -0
- package/src/models/Flow.d.ts +20 -0
- package/src/models/Flow.js +8 -0
- package/src/models/FlowCreateRequest.cjs +2 -0
- package/src/models/FlowCreateRequest.d.ts +6 -0
- package/src/models/FlowCreateRequest.js +2 -0
- package/src/models/JwtVerifiedCredential.cjs +3 -0
- package/src/models/JwtVerifiedCredential.d.ts +7 -0
- package/src/models/JwtVerifiedCredential.js +3 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
package/src/apis/CheckoutApi.cjs
CHANGED
|
@@ -94,8 +94,8 @@ require('../models/ExportModelEnum.cjs');
|
|
|
94
94
|
require('../models/ExportStatusEnum.cjs');
|
|
95
95
|
require('../models/ExternalWalletFundingDefaultChain.cjs');
|
|
96
96
|
require('../models/FlowModeEnum.cjs');
|
|
97
|
-
require('../models/FlowAnalyticsSummaryResponse.cjs');
|
|
98
97
|
require('../models/SettlementStrategyEnum.cjs');
|
|
98
|
+
require('../models/FlowAnalyticsSummaryResponse.cjs');
|
|
99
99
|
require('../models/FlowListItem.cjs');
|
|
100
100
|
require('../models/GateRuleType.cjs');
|
|
101
101
|
require('../models/GetEVMSponsoredTransactionStatusResponse.cjs');
|
package/src/apis/CheckoutApi.js
CHANGED
|
@@ -90,8 +90,8 @@ import '../models/ExportModelEnum.js';
|
|
|
90
90
|
import '../models/ExportStatusEnum.js';
|
|
91
91
|
import '../models/ExternalWalletFundingDefaultChain.js';
|
|
92
92
|
import '../models/FlowModeEnum.js';
|
|
93
|
-
import '../models/FlowAnalyticsSummaryResponse.js';
|
|
94
93
|
import '../models/SettlementStrategyEnum.js';
|
|
94
|
+
import '../models/FlowAnalyticsSummaryResponse.js';
|
|
95
95
|
import '../models/FlowListItem.js';
|
|
96
96
|
import '../models/GateRuleType.js';
|
|
97
97
|
import '../models/GetEVMSponsoredTransactionStatusResponse.js';
|
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -32,6 +32,8 @@ require('../models/BackupKeySharesToLocationsRequestLocations.cjs');
|
|
|
32
32
|
var BackupKeySharesToLocationsResponse = require('../models/BackupKeySharesToLocationsResponse.cjs');
|
|
33
33
|
require('../models/WaasBackupOptionsEnum.cjs');
|
|
34
34
|
require('../models/ThresholdSignatureScheme.cjs');
|
|
35
|
+
require('../models/BusinessAccountMemberRole.cjs');
|
|
36
|
+
require('../models/BusinessAccountSignerType.cjs');
|
|
35
37
|
require('../models/JwtVerifiedCredentialFormatEnum.cjs');
|
|
36
38
|
require('../models/ProviderEnum.cjs');
|
|
37
39
|
require('../models/WalletAddressType.cjs');
|
|
@@ -56,8 +58,6 @@ var BusinessAccountDetail = require('../models/BusinessAccountDetail.cjs');
|
|
|
56
58
|
var BusinessAccountMember = require('../models/BusinessAccountMember.cjs');
|
|
57
59
|
var BusinessAccountSigner = require('../models/BusinessAccountSigner.cjs');
|
|
58
60
|
var BusinessAccountList = require('../models/BusinessAccountList.cjs');
|
|
59
|
-
require('../models/BusinessAccountMemberRole.cjs');
|
|
60
|
-
require('../models/BusinessAccountSignerType.cjs');
|
|
61
61
|
require('../models/CaptchaProviderEnum.cjs');
|
|
62
62
|
require('../models/DestinationTypeEnum.cjs');
|
|
63
63
|
require('../models/CheckoutModeEnum.cjs');
|
|
@@ -8382,7 +8382,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8382
8382
|
await this.scanUrlOptionsRaw(requestParameters, initOverrides);
|
|
8383
8383
|
}
|
|
8384
8384
|
/**
|
|
8385
|
-
* Caller must be an owner or admin of the
|
|
8385
|
+
* Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8386
8386
|
* SDK — add a member to a business account
|
|
8387
8387
|
*/
|
|
8388
8388
|
async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
|
|
@@ -8415,7 +8415,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8415
8415
|
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountMember.BusinessAccountMemberFromJSON(jsonValue));
|
|
8416
8416
|
}
|
|
8417
8417
|
/**
|
|
8418
|
-
* Caller must be an owner or admin of the
|
|
8418
|
+
* Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8419
8419
|
* SDK — add a member to a business account
|
|
8420
8420
|
*/
|
|
8421
8421
|
async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
|
|
@@ -8424,7 +8424,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8424
8424
|
}
|
|
8425
8425
|
/**
|
|
8426
8426
|
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8427
|
-
* SDK — add a signer to a wallet in a
|
|
8427
|
+
* SDK — add a signer to a wallet in a business account (stubbed)
|
|
8428
8428
|
*/
|
|
8429
8429
|
async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8430
8430
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -8460,7 +8460,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8460
8460
|
}
|
|
8461
8461
|
/**
|
|
8462
8462
|
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8463
|
-
* SDK — add a signer to a wallet in a
|
|
8463
|
+
* SDK — add a signer to a wallet in a business account (stubbed)
|
|
8464
8464
|
*/
|
|
8465
8465
|
async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8466
8466
|
const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
@@ -8606,7 +8606,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8606
8606
|
return await response.value();
|
|
8607
8607
|
}
|
|
8608
8608
|
/**
|
|
8609
|
-
* Returns 404 if the caller is not a member of the
|
|
8609
|
+
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
8610
8610
|
* SDK — get a business account with embedded members and signers
|
|
8611
8611
|
*/
|
|
8612
8612
|
async sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides) {
|
|
@@ -8634,7 +8634,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
8634
8634
|
return new runtime.JSONApiResponse(response, (jsonValue) => BusinessAccountDetail.BusinessAccountDetailFromJSON(jsonValue));
|
|
8635
8635
|
}
|
|
8636
8636
|
/**
|
|
8637
|
-
* Returns 404 if the caller is not a member of the
|
|
8637
|
+
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
8638
8638
|
* SDK — get a business account with embedded members and signers
|
|
8639
8639
|
*/
|
|
8640
8640
|
async sdkGetBusinessAccountById(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -3777,23 +3777,23 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3777
3777
|
*/
|
|
3778
3778
|
scanUrlOptions(requestParameters: ScanUrlOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3779
3779
|
/**
|
|
3780
|
-
* Caller must be an owner or admin of the
|
|
3780
|
+
* Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
3781
3781
|
* SDK — add a member to a business account
|
|
3782
3782
|
*/
|
|
3783
3783
|
sdkAddBusinessAccountMemberRaw(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountMember>>;
|
|
3784
3784
|
/**
|
|
3785
|
-
* Caller must be an owner or admin of the
|
|
3785
|
+
* Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
3786
3786
|
* SDK — add a member to a business account
|
|
3787
3787
|
*/
|
|
3788
3788
|
sdkAddBusinessAccountMember(requestParameters: SdkAddBusinessAccountMemberRequest, initOverrides?: RequestInit): Promise<BusinessAccountMember>;
|
|
3789
3789
|
/**
|
|
3790
3790
|
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
3791
|
-
* SDK — add a signer to a wallet in a
|
|
3791
|
+
* SDK — add a signer to a wallet in a business account (stubbed)
|
|
3792
3792
|
*/
|
|
3793
3793
|
sdkAddBusinessAccountSignerRaw(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountSigner>>;
|
|
3794
3794
|
/**
|
|
3795
3795
|
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
3796
|
-
* SDK — add a signer to a wallet in a
|
|
3796
|
+
* SDK — add a signer to a wallet in a business account (stubbed)
|
|
3797
3797
|
*/
|
|
3798
3798
|
sdkAddBusinessAccountSigner(requestParameters: SdkAddBusinessAccountSignerRequest, initOverrides?: RequestInit): Promise<BusinessAccountSigner>;
|
|
3799
3799
|
/**
|
|
@@ -3839,12 +3839,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3839
3839
|
*/
|
|
3840
3840
|
sdkCreateBusinessAccount(requestParameters: SdkCreateBusinessAccountRequest, initOverrides?: RequestInit): Promise<BusinessAccount>;
|
|
3841
3841
|
/**
|
|
3842
|
-
* Returns 404 if the caller is not a member of the
|
|
3842
|
+
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
3843
3843
|
* SDK — get a business account with embedded members and signers
|
|
3844
3844
|
*/
|
|
3845
3845
|
sdkGetBusinessAccountByIdRaw(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BusinessAccountDetail>>;
|
|
3846
3846
|
/**
|
|
3847
|
-
* Returns 404 if the caller is not a member of the
|
|
3847
|
+
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
3848
3848
|
* SDK — get a business account with embedded members and signers
|
|
3849
3849
|
*/
|
|
3850
3850
|
sdkGetBusinessAccountById(requestParameters: SdkGetBusinessAccountByIdRequest, initOverrides?: RequestInit): Promise<BusinessAccountDetail>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -28,6 +28,8 @@ import '../models/BackupKeySharesToLocationsRequestLocations.js';
|
|
|
28
28
|
import { BackupKeySharesToLocationsResponseFromJSON } from '../models/BackupKeySharesToLocationsResponse.js';
|
|
29
29
|
import '../models/WaasBackupOptionsEnum.js';
|
|
30
30
|
import '../models/ThresholdSignatureScheme.js';
|
|
31
|
+
import '../models/BusinessAccountMemberRole.js';
|
|
32
|
+
import '../models/BusinessAccountSignerType.js';
|
|
31
33
|
import '../models/JwtVerifiedCredentialFormatEnum.js';
|
|
32
34
|
import '../models/ProviderEnum.js';
|
|
33
35
|
import '../models/WalletAddressType.js';
|
|
@@ -52,8 +54,6 @@ import { BusinessAccountDetailFromJSON } from '../models/BusinessAccountDetail.j
|
|
|
52
54
|
import { BusinessAccountMemberFromJSON } from '../models/BusinessAccountMember.js';
|
|
53
55
|
import { BusinessAccountSignerFromJSON } from '../models/BusinessAccountSigner.js';
|
|
54
56
|
import { BusinessAccountListFromJSON } from '../models/BusinessAccountList.js';
|
|
55
|
-
import '../models/BusinessAccountMemberRole.js';
|
|
56
|
-
import '../models/BusinessAccountSignerType.js';
|
|
57
57
|
import '../models/CaptchaProviderEnum.js';
|
|
58
58
|
import '../models/DestinationTypeEnum.js';
|
|
59
59
|
import '../models/CheckoutModeEnum.js';
|
|
@@ -8378,7 +8378,7 @@ class SDKApi extends BaseAPI {
|
|
|
8378
8378
|
await this.scanUrlOptionsRaw(requestParameters, initOverrides);
|
|
8379
8379
|
}
|
|
8380
8380
|
/**
|
|
8381
|
-
* Caller must be an owner or admin of the
|
|
8381
|
+
* Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8382
8382
|
* SDK — add a member to a business account
|
|
8383
8383
|
*/
|
|
8384
8384
|
async sdkAddBusinessAccountMemberRaw(requestParameters, initOverrides) {
|
|
@@ -8411,7 +8411,7 @@ class SDKApi extends BaseAPI {
|
|
|
8411
8411
|
return new JSONApiResponse(response, (jsonValue) => BusinessAccountMemberFromJSON(jsonValue));
|
|
8412
8412
|
}
|
|
8413
8413
|
/**
|
|
8414
|
-
* Caller must be an owner or admin of the
|
|
8414
|
+
* Caller must be an owner or admin of the business account. Target user is resolved by `userId` OR `identifier + type` (email/externalUserId create-or-resolve; id direct lookup). Idempotent: if the target is already an active member the existing row is returned with 200.
|
|
8415
8415
|
* SDK — add a member to a business account
|
|
8416
8416
|
*/
|
|
8417
8417
|
async sdkAddBusinessAccountMember(requestParameters, initOverrides) {
|
|
@@ -8420,7 +8420,7 @@ class SDKApi extends BaseAPI {
|
|
|
8420
8420
|
}
|
|
8421
8421
|
/**
|
|
8422
8422
|
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8423
|
-
* SDK — add a signer to a wallet in a
|
|
8423
|
+
* SDK — add a signer to a wallet in a business account (stubbed)
|
|
8424
8424
|
*/
|
|
8425
8425
|
async sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides) {
|
|
8426
8426
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -8456,7 +8456,7 @@ class SDKApi extends BaseAPI {
|
|
|
8456
8456
|
}
|
|
8457
8457
|
/**
|
|
8458
8458
|
* **Stubbed** in this release. Caller must hold an active share on the wallet (only existing share-holders can reshare). Target user is resolved the same way as addMember. The pending signer row is persisted with `shareSetId=null`; the reshare ceremony that mints the share is a follow-up.
|
|
8459
|
-
* SDK — add a signer to a wallet in a
|
|
8459
|
+
* SDK — add a signer to a wallet in a business account (stubbed)
|
|
8460
8460
|
*/
|
|
8461
8461
|
async sdkAddBusinessAccountSigner(requestParameters, initOverrides) {
|
|
8462
8462
|
const response = await this.sdkAddBusinessAccountSignerRaw(requestParameters, initOverrides);
|
|
@@ -8602,7 +8602,7 @@ class SDKApi extends BaseAPI {
|
|
|
8602
8602
|
return await response.value();
|
|
8603
8603
|
}
|
|
8604
8604
|
/**
|
|
8605
|
-
* Returns 404 if the caller is not a member of the
|
|
8605
|
+
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
8606
8606
|
* SDK — get a business account with embedded members and signers
|
|
8607
8607
|
*/
|
|
8608
8608
|
async sdkGetBusinessAccountByIdRaw(requestParameters, initOverrides) {
|
|
@@ -8630,7 +8630,7 @@ class SDKApi extends BaseAPI {
|
|
|
8630
8630
|
return new JSONApiResponse(response, (jsonValue) => BusinessAccountDetailFromJSON(jsonValue));
|
|
8631
8631
|
}
|
|
8632
8632
|
/**
|
|
8633
|
-
* Returns 404 if the caller is not a member of the
|
|
8633
|
+
* Returns 404 if the caller is not a member of the business account (404 not 403 so we don\'t leak business-account existence).
|
|
8634
8634
|
* SDK — get a business account with embedded members and signers
|
|
8635
8635
|
*/
|
|
8636
8636
|
async sdkGetBusinessAccountById(requestParameters, initOverrides) {
|
package/src/index.cjs
CHANGED
|
@@ -136,8 +136,10 @@ var BusinessAccountDetailAllOf = require('./models/BusinessAccountDetailAllOf.cj
|
|
|
136
136
|
var BusinessAccountList = require('./models/BusinessAccountList.cjs');
|
|
137
137
|
var BusinessAccountMember = require('./models/BusinessAccountMember.cjs');
|
|
138
138
|
var BusinessAccountMemberRole = require('./models/BusinessAccountMemberRole.cjs');
|
|
139
|
+
var BusinessAccountProperties = require('./models/BusinessAccountProperties.cjs');
|
|
139
140
|
var BusinessAccountSigner = require('./models/BusinessAccountSigner.cjs');
|
|
140
141
|
var BusinessAccountSignerType = require('./models/BusinessAccountSignerType.cjs');
|
|
142
|
+
var BusinessAccountWallet = require('./models/BusinessAccountWallet.cjs');
|
|
141
143
|
var CaptchaProviderEnum = require('./models/CaptchaProviderEnum.cjs');
|
|
142
144
|
var CaptchaSettings = require('./models/CaptchaSettings.cjs');
|
|
143
145
|
var CaptchaSettingsCreateRequest = require('./models/CaptchaSettingsCreateRequest.cjs');
|
|
@@ -1236,6 +1238,9 @@ Object.defineProperty(exports, 'BusinessAccountMemberRole', {
|
|
|
1236
1238
|
exports.BusinessAccountMemberRoleFromJSON = BusinessAccountMemberRole.BusinessAccountMemberRoleFromJSON;
|
|
1237
1239
|
exports.BusinessAccountMemberRoleFromJSONTyped = BusinessAccountMemberRole.BusinessAccountMemberRoleFromJSONTyped;
|
|
1238
1240
|
exports.BusinessAccountMemberRoleToJSON = BusinessAccountMemberRole.BusinessAccountMemberRoleToJSON;
|
|
1241
|
+
exports.BusinessAccountPropertiesFromJSON = BusinessAccountProperties.BusinessAccountPropertiesFromJSON;
|
|
1242
|
+
exports.BusinessAccountPropertiesFromJSONTyped = BusinessAccountProperties.BusinessAccountPropertiesFromJSONTyped;
|
|
1243
|
+
exports.BusinessAccountPropertiesToJSON = BusinessAccountProperties.BusinessAccountPropertiesToJSON;
|
|
1239
1244
|
exports.BusinessAccountSignerFromJSON = BusinessAccountSigner.BusinessAccountSignerFromJSON;
|
|
1240
1245
|
exports.BusinessAccountSignerFromJSONTyped = BusinessAccountSigner.BusinessAccountSignerFromJSONTyped;
|
|
1241
1246
|
exports.BusinessAccountSignerToJSON = BusinessAccountSigner.BusinessAccountSignerToJSON;
|
|
@@ -1246,6 +1251,9 @@ Object.defineProperty(exports, 'BusinessAccountSignerType', {
|
|
|
1246
1251
|
exports.BusinessAccountSignerTypeFromJSON = BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON;
|
|
1247
1252
|
exports.BusinessAccountSignerTypeFromJSONTyped = BusinessAccountSignerType.BusinessAccountSignerTypeFromJSONTyped;
|
|
1248
1253
|
exports.BusinessAccountSignerTypeToJSON = BusinessAccountSignerType.BusinessAccountSignerTypeToJSON;
|
|
1254
|
+
exports.BusinessAccountWalletFromJSON = BusinessAccountWallet.BusinessAccountWalletFromJSON;
|
|
1255
|
+
exports.BusinessAccountWalletFromJSONTyped = BusinessAccountWallet.BusinessAccountWalletFromJSONTyped;
|
|
1256
|
+
exports.BusinessAccountWalletToJSON = BusinessAccountWallet.BusinessAccountWalletToJSON;
|
|
1249
1257
|
Object.defineProperty(exports, 'CaptchaProviderEnum', {
|
|
1250
1258
|
enumerable: true,
|
|
1251
1259
|
get: function () { return CaptchaProviderEnum.CaptchaProviderEnum; }
|
package/src/index.js
CHANGED
|
@@ -132,8 +132,10 @@ export { BusinessAccountDetailAllOfFromJSON, BusinessAccountDetailAllOfFromJSONT
|
|
|
132
132
|
export { BusinessAccountListFromJSON, BusinessAccountListFromJSONTyped, BusinessAccountListToJSON } from './models/BusinessAccountList.js';
|
|
133
133
|
export { BusinessAccountMemberFromJSON, BusinessAccountMemberFromJSONTyped, BusinessAccountMemberToJSON } from './models/BusinessAccountMember.js';
|
|
134
134
|
export { BusinessAccountMemberRole, BusinessAccountMemberRoleFromJSON, BusinessAccountMemberRoleFromJSONTyped, BusinessAccountMemberRoleToJSON } from './models/BusinessAccountMemberRole.js';
|
|
135
|
+
export { BusinessAccountPropertiesFromJSON, BusinessAccountPropertiesFromJSONTyped, BusinessAccountPropertiesToJSON } from './models/BusinessAccountProperties.js';
|
|
135
136
|
export { BusinessAccountSignerFromJSON, BusinessAccountSignerFromJSONTyped, BusinessAccountSignerToJSON } from './models/BusinessAccountSigner.js';
|
|
136
137
|
export { BusinessAccountSignerType, BusinessAccountSignerTypeFromJSON, BusinessAccountSignerTypeFromJSONTyped, BusinessAccountSignerTypeToJSON } from './models/BusinessAccountSignerType.js';
|
|
138
|
+
export { BusinessAccountWalletFromJSON, BusinessAccountWalletFromJSONTyped, BusinessAccountWalletToJSON } from './models/BusinessAccountWallet.js';
|
|
137
139
|
export { CaptchaProviderEnum, CaptchaProviderEnumFromJSON, CaptchaProviderEnumFromJSONTyped, CaptchaProviderEnumToJSON } from './models/CaptchaProviderEnum.js';
|
|
138
140
|
export { CaptchaSettingsFromJSON, CaptchaSettingsFromJSONTyped, CaptchaSettingsToJSON } from './models/CaptchaSettings.js';
|
|
139
141
|
export { CaptchaSettingsCreateRequestFromJSON, CaptchaSettingsCreateRequestFromJSONTyped, CaptchaSettingsCreateRequestToJSON } from './models/CaptchaSettingsCreateRequest.js';
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var BusinessAccountMember = require('./BusinessAccountMember.cjs');
|
|
7
7
|
var BusinessAccountSigner = require('./BusinessAccountSigner.cjs');
|
|
8
|
+
var BusinessAccountWallet = require('./BusinessAccountWallet.cjs');
|
|
8
9
|
|
|
9
10
|
/* tslint:disable */
|
|
10
11
|
function BusinessAccountDetailFromJSON(json) {
|
|
@@ -24,6 +25,7 @@ function BusinessAccountDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
25
|
'updatedAt': !runtime.exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
25
26
|
'members': (json['members'].map(BusinessAccountMember.BusinessAccountMemberFromJSON)),
|
|
26
27
|
'signers': (json['signers'].map(BusinessAccountSigner.BusinessAccountSignerFromJSON)),
|
|
28
|
+
'wallets': !runtime.exists(json, 'wallets') ? undefined : (json['wallets'].map(BusinessAccountWallet.BusinessAccountWalletFromJSON)),
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
function BusinessAccountDetailToJSON(value) {
|
|
@@ -43,6 +45,7 @@ function BusinessAccountDetailToJSON(value) {
|
|
|
43
45
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
44
46
|
'members': (value.members.map(BusinessAccountMember.BusinessAccountMemberToJSON)),
|
|
45
47
|
'signers': (value.signers.map(BusinessAccountSigner.BusinessAccountSignerToJSON)),
|
|
48
|
+
'wallets': value.wallets === undefined ? undefined : (value.wallets.map(BusinessAccountWallet.BusinessAccountWalletToJSON)),
|
|
46
49
|
};
|
|
47
50
|
}
|
|
48
51
|
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { BusinessAccountMember } from './BusinessAccountMember';
|
|
13
13
|
import { BusinessAccountSigner } from './BusinessAccountSigner';
|
|
14
|
+
import { BusinessAccountWallet } from './BusinessAccountWallet';
|
|
14
15
|
/**
|
|
15
|
-
* SDK-side business account response with embedded members and
|
|
16
|
+
* SDK-side business account response with embedded members, signers, and wallets. Origin 2 callers (low member count) get everything in one fetch; if a business account ever needs pagination we add a separate paginated list endpoint without changing this shape.
|
|
16
17
|
* @export
|
|
17
18
|
* @interface BusinessAccountDetail
|
|
18
19
|
*/
|
|
@@ -71,6 +72,12 @@ export interface BusinessAccountDetail {
|
|
|
71
72
|
* @memberof BusinessAccountDetail
|
|
72
73
|
*/
|
|
73
74
|
signers: Array<BusinessAccountSigner>;
|
|
75
|
+
/**
|
|
76
|
+
* Wallets bound to this business account via `Wallets.business_account_id`. Superset of `signers[].walletId` — a wallet exists before any signer row is minted on it (staged-then-resolved lifecycle).
|
|
77
|
+
* @type {Array<BusinessAccountWallet>}
|
|
78
|
+
* @memberof BusinessAccountDetail
|
|
79
|
+
*/
|
|
80
|
+
wallets?: Array<BusinessAccountWallet>;
|
|
74
81
|
}
|
|
75
82
|
export declare function BusinessAccountDetailFromJSON(json: any): BusinessAccountDetail;
|
|
76
83
|
export declare function BusinessAccountDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountDetail;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { BusinessAccountMemberFromJSON, BusinessAccountMemberToJSON } from './BusinessAccountMember.js';
|
|
3
3
|
import { BusinessAccountSignerFromJSON, BusinessAccountSignerToJSON } from './BusinessAccountSigner.js';
|
|
4
|
+
import { BusinessAccountWalletFromJSON, BusinessAccountWalletToJSON } from './BusinessAccountWallet.js';
|
|
4
5
|
|
|
5
6
|
/* tslint:disable */
|
|
6
7
|
function BusinessAccountDetailFromJSON(json) {
|
|
@@ -20,6 +21,7 @@ function BusinessAccountDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
21
|
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
21
22
|
'members': (json['members'].map(BusinessAccountMemberFromJSON)),
|
|
22
23
|
'signers': (json['signers'].map(BusinessAccountSignerFromJSON)),
|
|
24
|
+
'wallets': !exists(json, 'wallets') ? undefined : (json['wallets'].map(BusinessAccountWalletFromJSON)),
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
function BusinessAccountDetailToJSON(value) {
|
|
@@ -39,6 +41,7 @@ function BusinessAccountDetailToJSON(value) {
|
|
|
39
41
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
40
42
|
'members': (value.members.map(BusinessAccountMemberToJSON)),
|
|
41
43
|
'signers': (value.signers.map(BusinessAccountSignerToJSON)),
|
|
44
|
+
'wallets': value.wallets === undefined ? undefined : (value.wallets.map(BusinessAccountWalletToJSON)),
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
5
6
|
var BusinessAccountMember = require('./BusinessAccountMember.cjs');
|
|
6
7
|
var BusinessAccountSigner = require('./BusinessAccountSigner.cjs');
|
|
8
|
+
var BusinessAccountWallet = require('./BusinessAccountWallet.cjs');
|
|
7
9
|
|
|
8
10
|
/* tslint:disable */
|
|
9
11
|
function BusinessAccountDetailAllOfFromJSON(json) {
|
|
@@ -16,6 +18,7 @@ function BusinessAccountDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
18
|
return {
|
|
17
19
|
'members': (json['members'].map(BusinessAccountMember.BusinessAccountMemberFromJSON)),
|
|
18
20
|
'signers': (json['signers'].map(BusinessAccountSigner.BusinessAccountSignerFromJSON)),
|
|
21
|
+
'wallets': !runtime.exists(json, 'wallets') ? undefined : (json['wallets'].map(BusinessAccountWallet.BusinessAccountWalletFromJSON)),
|
|
19
22
|
};
|
|
20
23
|
}
|
|
21
24
|
function BusinessAccountDetailAllOfToJSON(value) {
|
|
@@ -28,6 +31,7 @@ function BusinessAccountDetailAllOfToJSON(value) {
|
|
|
28
31
|
return {
|
|
29
32
|
'members': (value.members.map(BusinessAccountMember.BusinessAccountMemberToJSON)),
|
|
30
33
|
'signers': (value.signers.map(BusinessAccountSigner.BusinessAccountSignerToJSON)),
|
|
34
|
+
'wallets': value.wallets === undefined ? undefined : (value.wallets.map(BusinessAccountWallet.BusinessAccountWalletToJSON)),
|
|
31
35
|
};
|
|
32
36
|
}
|
|
33
37
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { BusinessAccountMember } from './BusinessAccountMember';
|
|
13
13
|
import { BusinessAccountSigner } from './BusinessAccountSigner';
|
|
14
|
+
import { BusinessAccountWallet } from './BusinessAccountWallet';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -29,6 +30,12 @@ export interface BusinessAccountDetailAllOf {
|
|
|
29
30
|
* @memberof BusinessAccountDetailAllOf
|
|
30
31
|
*/
|
|
31
32
|
signers: Array<BusinessAccountSigner>;
|
|
33
|
+
/**
|
|
34
|
+
* Wallets bound to this business account via `Wallets.business_account_id`. Superset of `signers[].walletId` — a wallet exists before any signer row is minted on it (staged-then-resolved lifecycle).
|
|
35
|
+
* @type {Array<BusinessAccountWallet>}
|
|
36
|
+
* @memberof BusinessAccountDetailAllOf
|
|
37
|
+
*/
|
|
38
|
+
wallets?: Array<BusinessAccountWallet>;
|
|
32
39
|
}
|
|
33
40
|
export declare function BusinessAccountDetailAllOfFromJSON(json: any): BusinessAccountDetailAllOf;
|
|
34
41
|
export declare function BusinessAccountDetailAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountDetailAllOf;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { BusinessAccountMemberFromJSON, BusinessAccountMemberToJSON } from './BusinessAccountMember.js';
|
|
2
3
|
import { BusinessAccountSignerFromJSON, BusinessAccountSignerToJSON } from './BusinessAccountSigner.js';
|
|
4
|
+
import { BusinessAccountWalletFromJSON, BusinessAccountWalletToJSON } from './BusinessAccountWallet.js';
|
|
3
5
|
|
|
4
6
|
/* tslint:disable */
|
|
5
7
|
function BusinessAccountDetailAllOfFromJSON(json) {
|
|
@@ -12,6 +14,7 @@ function BusinessAccountDetailAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
12
14
|
return {
|
|
13
15
|
'members': (json['members'].map(BusinessAccountMemberFromJSON)),
|
|
14
16
|
'signers': (json['signers'].map(BusinessAccountSignerFromJSON)),
|
|
17
|
+
'wallets': !exists(json, 'wallets') ? undefined : (json['wallets'].map(BusinessAccountWalletFromJSON)),
|
|
15
18
|
};
|
|
16
19
|
}
|
|
17
20
|
function BusinessAccountDetailAllOfToJSON(value) {
|
|
@@ -24,6 +27,7 @@ function BusinessAccountDetailAllOfToJSON(value) {
|
|
|
24
27
|
return {
|
|
25
28
|
'members': (value.members.map(BusinessAccountMemberToJSON)),
|
|
26
29
|
'signers': (value.signers.map(BusinessAccountSignerToJSON)),
|
|
30
|
+
'wallets': value.wallets === undefined ? undefined : (value.wallets.map(BusinessAccountWalletToJSON)),
|
|
27
31
|
};
|
|
28
32
|
}
|
|
29
33
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccountMemberRole = require('./BusinessAccountMemberRole.cjs');
|
|
7
|
+
var BusinessAccountSignerType = require('./BusinessAccountSignerType.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function BusinessAccountPropertiesFromJSON(json) {
|
|
11
|
+
return BusinessAccountPropertiesFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'businessAccountId': json['businessAccountId'],
|
|
19
|
+
'businessAccountName': !runtime.exists(json, 'businessAccountName') ? undefined : json['businessAccountName'],
|
|
20
|
+
'businessAccountExternalRef': !runtime.exists(json, 'businessAccountExternalRef') ? undefined : json['businessAccountExternalRef'],
|
|
21
|
+
'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
|
|
22
|
+
'businessAccountSignerId': json['businessAccountSignerId'],
|
|
23
|
+
'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
|
|
24
|
+
'businessAccountMemberRole': BusinessAccountMemberRole.BusinessAccountMemberRoleFromJSON(json['businessAccountMemberRole']),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function BusinessAccountPropertiesToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'businessAccountId': value.businessAccountId,
|
|
36
|
+
'businessAccountName': value.businessAccountName,
|
|
37
|
+
'businessAccountExternalRef': value.businessAccountExternalRef,
|
|
38
|
+
'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
|
|
39
|
+
'businessAccountSignerId': value.businessAccountSignerId,
|
|
40
|
+
'businessAccountSignerType': BusinessAccountSignerType.BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
|
|
41
|
+
'businessAccountMemberRole': BusinessAccountMemberRole.BusinessAccountMemberRoleToJSON(value.businessAccountMemberRole),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.BusinessAccountPropertiesFromJSON = BusinessAccountPropertiesFromJSON;
|
|
46
|
+
exports.BusinessAccountPropertiesFromJSONTyped = BusinessAccountPropertiesFromJSONTyped;
|
|
47
|
+
exports.BusinessAccountPropertiesToJSON = BusinessAccountPropertiesToJSON;
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
import { BusinessAccountMemberRole } from './BusinessAccountMemberRole';
|
|
13
|
+
import { BusinessAccountSignerType } from './BusinessAccountSignerType';
|
|
14
|
+
/**
|
|
15
|
+
* Business-account context attached to a verified credential that belongs to a business account. Present whenever `wallet_properties.shareSetType` is `businessAccountUser`; absent otherwise. Each field is namespaced by its source table so a caller reading the response sees exactly which entity the value came from (no ambiguity between member role and signer type, between business-account name and signer-derived names, etc.).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BusinessAccountProperties
|
|
18
|
+
*/
|
|
19
|
+
export interface BusinessAccountProperties {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BusinessAccountProperties
|
|
24
|
+
*/
|
|
25
|
+
businessAccountId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Display name; user-supplied at create time. Nullable.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BusinessAccountProperties
|
|
30
|
+
*/
|
|
31
|
+
businessAccountName?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Developer-supplied stable ID inside the env. Nullable.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BusinessAccountProperties
|
|
36
|
+
*/
|
|
37
|
+
businessAccountExternalRef?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof BusinessAccountProperties
|
|
42
|
+
*/
|
|
43
|
+
businessAccountCreatedAt: Date;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof BusinessAccountProperties
|
|
48
|
+
*/
|
|
49
|
+
businessAccountSignerId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {BusinessAccountSignerType}
|
|
53
|
+
* @memberof BusinessAccountProperties
|
|
54
|
+
*/
|
|
55
|
+
businessAccountSignerType: BusinessAccountSignerType;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {BusinessAccountMemberRole}
|
|
59
|
+
* @memberof BusinessAccountProperties
|
|
60
|
+
*/
|
|
61
|
+
businessAccountMemberRole: BusinessAccountMemberRole;
|
|
62
|
+
}
|
|
63
|
+
export declare function BusinessAccountPropertiesFromJSON(json: any): BusinessAccountProperties;
|
|
64
|
+
export declare function BusinessAccountPropertiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountProperties;
|
|
65
|
+
export declare function BusinessAccountPropertiesToJSON(value?: BusinessAccountProperties | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountMemberRoleFromJSON, BusinessAccountMemberRoleToJSON } from './BusinessAccountMemberRole.js';
|
|
3
|
+
import { BusinessAccountSignerTypeFromJSON, BusinessAccountSignerTypeToJSON } from './BusinessAccountSignerType.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function BusinessAccountPropertiesFromJSON(json) {
|
|
7
|
+
return BusinessAccountPropertiesFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function BusinessAccountPropertiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'businessAccountId': json['businessAccountId'],
|
|
15
|
+
'businessAccountName': !exists(json, 'businessAccountName') ? undefined : json['businessAccountName'],
|
|
16
|
+
'businessAccountExternalRef': !exists(json, 'businessAccountExternalRef') ? undefined : json['businessAccountExternalRef'],
|
|
17
|
+
'businessAccountCreatedAt': (new Date(json['businessAccountCreatedAt'])),
|
|
18
|
+
'businessAccountSignerId': json['businessAccountSignerId'],
|
|
19
|
+
'businessAccountSignerType': BusinessAccountSignerTypeFromJSON(json['businessAccountSignerType']),
|
|
20
|
+
'businessAccountMemberRole': BusinessAccountMemberRoleFromJSON(json['businessAccountMemberRole']),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function BusinessAccountPropertiesToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'businessAccountId': value.businessAccountId,
|
|
32
|
+
'businessAccountName': value.businessAccountName,
|
|
33
|
+
'businessAccountExternalRef': value.businessAccountExternalRef,
|
|
34
|
+
'businessAccountCreatedAt': (value.businessAccountCreatedAt.toISOString()),
|
|
35
|
+
'businessAccountSignerId': value.businessAccountSignerId,
|
|
36
|
+
'businessAccountSignerType': BusinessAccountSignerTypeToJSON(value.businessAccountSignerType),
|
|
37
|
+
'businessAccountMemberRole': BusinessAccountMemberRoleToJSON(value.businessAccountMemberRole),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { BusinessAccountPropertiesFromJSON, BusinessAccountPropertiesFromJSONTyped, BusinessAccountPropertiesToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BusinessAccountWalletFromJSON(json) {
|
|
9
|
+
return BusinessAccountWalletFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BusinessAccountWalletFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'id': json['id'],
|
|
17
|
+
'publicKey': json['publicKey'],
|
|
18
|
+
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
19
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function BusinessAccountWalletToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': value.id,
|
|
31
|
+
'publicKey': value.publicKey,
|
|
32
|
+
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
33
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.BusinessAccountWalletFromJSON = BusinessAccountWalletFromJSON;
|
|
38
|
+
exports.BusinessAccountWalletFromJSONTyped = BusinessAccountWalletFromJSONTyped;
|
|
39
|
+
exports.BusinessAccountWalletToJSON = BusinessAccountWalletToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
/**
|
|
14
|
+
* Minimal business-account-wallet projection used by `BusinessAccountDetail`.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BusinessAccountWallet
|
|
17
|
+
*/
|
|
18
|
+
export interface BusinessAccountWallet {
|
|
19
|
+
/**
|
|
20
|
+
* Wallet ID (matches `signers[].walletId` for wallets that already have a signer).
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BusinessAccountWallet
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Wallet address (already-formatted public address, not raw key material).
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BusinessAccountWallet
|
|
29
|
+
*/
|
|
30
|
+
publicKey: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ChainEnum}
|
|
34
|
+
* @memberof BusinessAccountWallet
|
|
35
|
+
*/
|
|
36
|
+
chain: ChainEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof BusinessAccountWallet
|
|
41
|
+
*/
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
}
|
|
44
|
+
export declare function BusinessAccountWalletFromJSON(json: any): BusinessAccountWallet;
|
|
45
|
+
export declare function BusinessAccountWalletFromJSONTyped(json: any, ignoreDiscriminator: boolean): BusinessAccountWallet;
|
|
46
|
+
export declare function BusinessAccountWalletToJSON(value?: BusinessAccountWallet | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BusinessAccountWalletFromJSON(json) {
|
|
5
|
+
return BusinessAccountWalletFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BusinessAccountWalletFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'id': json['id'],
|
|
13
|
+
'publicKey': json['publicKey'],
|
|
14
|
+
'chain': ChainEnumFromJSON(json['chain']),
|
|
15
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function BusinessAccountWalletToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'id': value.id,
|
|
27
|
+
'publicKey': value.publicKey,
|
|
28
|
+
'chain': ChainEnumToJSON(value.chain),
|
|
29
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { BusinessAccountWalletFromJSON, BusinessAccountWalletFromJSONTyped, BusinessAccountWalletToJSON };
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* SDK-side create-
|
|
13
|
+
* SDK-side create-business-account request. Caller becomes the first owner.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface CreateBusinessAccountSdkRequest
|
|
16
16
|
*/
|
|
@@ -20,6 +20,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
21
21
|
'skipLock': !runtime.exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
22
22
|
'addressType': !runtime.exists(json, 'addressType') ? undefined : json['addressType'],
|
|
23
|
+
'businessAccountId': !runtime.exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function CreateWaasAccountRequestToJSON(value) {
|
|
@@ -35,6 +36,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
35
36
|
'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
36
37
|
'skipLock': value.skipLock,
|
|
37
38
|
'addressType': value.addressType,
|
|
39
|
+
'businessAccountId': value.businessAccountId,
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -47,6 +47,12 @@ export interface CreateWaasAccountRequest {
|
|
|
47
47
|
* @memberof CreateWaasAccountRequest
|
|
48
48
|
*/
|
|
49
49
|
addressType?: string;
|
|
50
|
+
/**
|
|
51
|
+
* When set, creates this wallet as a business-account wallet rather than a root-user wallet: Wallets.userId stays null, Wallets is bound to the business account, the WaaS share set is minted with type `businessAccountUser` in `pending` status, and the caller is registered as the wallet's signer. Caller must be an `owner` or `admin` of the business account. Requires the `enable-business-accounts` feature flag — calls with this field will 422 if the flag is off rather than silently falling back to root-user creation.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CreateWaasAccountRequest
|
|
54
|
+
*/
|
|
55
|
+
businessAccountId?: string | null;
|
|
50
56
|
}
|
|
51
57
|
export declare function CreateWaasAccountRequestFromJSON(json: any): CreateWaasAccountRequest;
|
|
52
58
|
export declare function CreateWaasAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWaasAccountRequest;
|
|
@@ -16,6 +16,7 @@ function CreateWaasAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
16
|
'thresholdSignatureScheme': !exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
|
|
17
17
|
'skipLock': !exists(json, 'skipLock') ? undefined : json['skipLock'],
|
|
18
18
|
'addressType': !exists(json, 'addressType') ? undefined : json['addressType'],
|
|
19
|
+
'businessAccountId': !exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
function CreateWaasAccountRequestToJSON(value) {
|
|
@@ -31,6 +32,7 @@ function CreateWaasAccountRequestToJSON(value) {
|
|
|
31
32
|
'thresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
|
|
32
33
|
'skipLock': value.skipLock,
|
|
33
34
|
'addressType': value.addressType,
|
|
35
|
+
'businessAccountId': value.businessAccountId,
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
|
package/src/models/Flow.cjs
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
+
var DestinationConfigInput = require('./DestinationConfigInput.cjs');
|
|
7
8
|
var FlowExchangeSource = require('./FlowExchangeSource.cjs');
|
|
8
9
|
var FlowExecutionStateEnum = require('./FlowExecutionStateEnum.cjs');
|
|
9
10
|
var FlowFailure = require('./FlowFailure.cjs');
|
|
@@ -13,6 +14,7 @@ var FlowRiskStateEnum = require('./FlowRiskStateEnum.cjs');
|
|
|
13
14
|
var FlowSettlementData = require('./FlowSettlementData.cjs');
|
|
14
15
|
var FlowSettlementStateEnum = require('./FlowSettlementStateEnum.cjs');
|
|
15
16
|
var FlowSourceTypeEnum = require('./FlowSourceTypeEnum.cjs');
|
|
17
|
+
var SettlementConfigInput = require('./SettlementConfigInput.cjs');
|
|
16
18
|
|
|
17
19
|
/* tslint:disable */
|
|
18
20
|
function FlowFromJSON(json) {
|
|
@@ -55,6 +57,9 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
57
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
56
58
|
'depositAddress': !runtime.exists(json, 'depositAddress') ? undefined : json['depositAddress'],
|
|
57
59
|
'exchangeSource': !runtime.exists(json, 'exchangeSource') ? undefined : FlowExchangeSource.FlowExchangeSourceFromJSON(json['exchangeSource']),
|
|
60
|
+
'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
61
|
+
'settlementConfig': !runtime.exists(json, 'settlementConfig') ? undefined : SettlementConfigInput.SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
62
|
+
'destinationConfig': !runtime.exists(json, 'destinationConfig') ? undefined : DestinationConfigInput.DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
58
63
|
};
|
|
59
64
|
}
|
|
60
65
|
function FlowToJSON(value) {
|
|
@@ -97,6 +102,9 @@ function FlowToJSON(value) {
|
|
|
97
102
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
98
103
|
'depositAddress': value.depositAddress,
|
|
99
104
|
'exchangeSource': FlowExchangeSource.FlowExchangeSourceToJSON(value.exchangeSource),
|
|
105
|
+
'pegStablecoins': value.pegStablecoins,
|
|
106
|
+
'settlementConfig': SettlementConfigInput.SettlementConfigInputToJSON(value.settlementConfig),
|
|
107
|
+
'destinationConfig': DestinationConfigInput.DestinationConfigInputToJSON(value.destinationConfig),
|
|
100
108
|
};
|
|
101
109
|
}
|
|
102
110
|
|
package/src/models/Flow.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
import { DestinationConfigInput } from './DestinationConfigInput';
|
|
13
14
|
import { FlowExchangeSource } from './FlowExchangeSource';
|
|
14
15
|
import { FlowExecutionStateEnum } from './FlowExecutionStateEnum';
|
|
15
16
|
import { FlowFailure } from './FlowFailure';
|
|
@@ -19,6 +20,7 @@ import { FlowRiskStateEnum } from './FlowRiskStateEnum';
|
|
|
19
20
|
import { FlowSettlementData } from './FlowSettlementData';
|
|
20
21
|
import { FlowSettlementStateEnum } from './FlowSettlementStateEnum';
|
|
21
22
|
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
23
|
+
import { SettlementConfigInput } from './SettlementConfigInput';
|
|
22
24
|
/**
|
|
23
25
|
* A single payment, deposit, or withdraw flow. Collapses the former Checkout and CheckoutTransaction into one resource.
|
|
24
26
|
* @export
|
|
@@ -217,6 +219,24 @@ export interface Flow {
|
|
|
217
219
|
* @memberof Flow
|
|
218
220
|
*/
|
|
219
221
|
exchangeSource?: FlowExchangeSource;
|
|
222
|
+
/**
|
|
223
|
+
* When true, known stablecoins (USDC, USDT, DAI, etc.) in the settlement config are pegged 1:1 to the flow currency, skipping market-price lookup. Non-stablecoin settlements still use live pricing.
|
|
224
|
+
* @type {boolean}
|
|
225
|
+
* @memberof Flow
|
|
226
|
+
*/
|
|
227
|
+
pegStablecoins?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {SettlementConfigInput}
|
|
231
|
+
* @memberof Flow
|
|
232
|
+
*/
|
|
233
|
+
settlementConfig?: SettlementConfigInput | null;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @type {DestinationConfigInput}
|
|
237
|
+
* @memberof Flow
|
|
238
|
+
*/
|
|
239
|
+
destinationConfig?: DestinationConfigInput | null;
|
|
220
240
|
}
|
|
221
241
|
export declare function FlowFromJSON(json: any): Flow;
|
|
222
242
|
export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
|
package/src/models/Flow.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
import { DestinationConfigInputFromJSON, DestinationConfigInputToJSON } from './DestinationConfigInput.js';
|
|
3
4
|
import { FlowExchangeSourceFromJSON, FlowExchangeSourceToJSON } from './FlowExchangeSource.js';
|
|
4
5
|
import { FlowExecutionStateEnumFromJSON, FlowExecutionStateEnumToJSON } from './FlowExecutionStateEnum.js';
|
|
5
6
|
import { FlowFailureFromJSON, FlowFailureToJSON } from './FlowFailure.js';
|
|
@@ -9,6 +10,7 @@ import { FlowRiskStateEnumFromJSON, FlowRiskStateEnumToJSON } from './FlowRiskSt
|
|
|
9
10
|
import { FlowSettlementDataFromJSON, FlowSettlementDataToJSON } from './FlowSettlementData.js';
|
|
10
11
|
import { FlowSettlementStateEnumFromJSON, FlowSettlementStateEnumToJSON } from './FlowSettlementStateEnum.js';
|
|
11
12
|
import { FlowSourceTypeEnumFromJSON, FlowSourceTypeEnumToJSON } from './FlowSourceTypeEnum.js';
|
|
13
|
+
import { SettlementConfigInputFromJSON, SettlementConfigInputToJSON } from './SettlementConfigInput.js';
|
|
12
14
|
|
|
13
15
|
/* tslint:disable */
|
|
14
16
|
function FlowFromJSON(json) {
|
|
@@ -51,6 +53,9 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
52
54
|
'depositAddress': !exists(json, 'depositAddress') ? undefined : json['depositAddress'],
|
|
53
55
|
'exchangeSource': !exists(json, 'exchangeSource') ? undefined : FlowExchangeSourceFromJSON(json['exchangeSource']),
|
|
56
|
+
'pegStablecoins': !exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
57
|
+
'settlementConfig': !exists(json, 'settlementConfig') ? undefined : SettlementConfigInputFromJSON(json['settlementConfig']),
|
|
58
|
+
'destinationConfig': !exists(json, 'destinationConfig') ? undefined : DestinationConfigInputFromJSON(json['destinationConfig']),
|
|
54
59
|
};
|
|
55
60
|
}
|
|
56
61
|
function FlowToJSON(value) {
|
|
@@ -93,6 +98,9 @@ function FlowToJSON(value) {
|
|
|
93
98
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
94
99
|
'depositAddress': value.depositAddress,
|
|
95
100
|
'exchangeSource': FlowExchangeSourceToJSON(value.exchangeSource),
|
|
101
|
+
'pegStablecoins': value.pegStablecoins,
|
|
102
|
+
'settlementConfig': SettlementConfigInputToJSON(value.settlementConfig),
|
|
103
|
+
'destinationConfig': DestinationConfigInputToJSON(value.destinationConfig),
|
|
96
104
|
};
|
|
97
105
|
}
|
|
98
106
|
|
|
@@ -23,6 +23,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23
23
|
'memo': !runtime.exists(json, 'memo') ? undefined : json['memo'],
|
|
24
24
|
'feeConfig': !runtime.exists(json, 'feeConfig') ? undefined : FlowFeeConfig.FlowFeeConfigFromJSON(json['feeConfig']),
|
|
25
25
|
'expiresIn': !runtime.exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
26
|
+
'pegStablecoins': !runtime.exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
function FlowCreateRequestToJSON(value) {
|
|
@@ -40,6 +41,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
40
41
|
'memo': value.memo,
|
|
41
42
|
'feeConfig': FlowFeeConfig.FlowFeeConfigToJSON(value.feeConfig),
|
|
42
43
|
'expiresIn': value.expiresIn,
|
|
44
|
+
'pegStablecoins': value.pegStablecoins,
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
|
|
@@ -60,6 +60,12 @@ export interface FlowCreateRequest {
|
|
|
60
60
|
* @memberof FlowCreateRequest
|
|
61
61
|
*/
|
|
62
62
|
expiresIn?: number;
|
|
63
|
+
/**
|
|
64
|
+
* When true, known stablecoins (USDC, USDT, DAI, etc.) in the settlement config are pegged 1:1 to the flow currency at quote time, skipping market-price lookup. Defaults to false.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof FlowCreateRequest
|
|
67
|
+
*/
|
|
68
|
+
pegStablecoins?: boolean;
|
|
63
69
|
}
|
|
64
70
|
export declare function FlowCreateRequestFromJSON(json: any): FlowCreateRequest;
|
|
65
71
|
export declare function FlowCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowCreateRequest;
|
|
@@ -19,6 +19,7 @@ function FlowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'memo': !exists(json, 'memo') ? undefined : json['memo'],
|
|
20
20
|
'feeConfig': !exists(json, 'feeConfig') ? undefined : FlowFeeConfigFromJSON(json['feeConfig']),
|
|
21
21
|
'expiresIn': !exists(json, 'expiresIn') ? undefined : json['expiresIn'],
|
|
22
|
+
'pegStablecoins': !exists(json, 'pegStablecoins') ? undefined : json['pegStablecoins'],
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
function FlowCreateRequestToJSON(value) {
|
|
@@ -36,6 +37,7 @@ function FlowCreateRequestToJSON(value) {
|
|
|
36
37
|
'memo': value.memo,
|
|
37
38
|
'feeConfig': FlowFeeConfigToJSON(value.feeConfig),
|
|
38
39
|
'expiresIn': value.expiresIn,
|
|
40
|
+
'pegStablecoins': value.pegStablecoins,
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var BusinessAccountProperties = require('./BusinessAccountProperties.cjs');
|
|
6
7
|
var JwtVerifiedCredentialFormatEnum = require('./JwtVerifiedCredentialFormatEnum.cjs');
|
|
7
8
|
var NameServiceData = require('./NameServiceData.cjs');
|
|
8
9
|
var ProviderEnum = require('./ProviderEnum.cjs');
|
|
@@ -30,6 +31,7 @@ function JwtVerifiedCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
31
|
'walletName': !runtime.exists(json, 'wallet_name') ? undefined : json['wallet_name'],
|
|
31
32
|
'walletProvider': !runtime.exists(json, 'wallet_provider') ? undefined : WalletProviderEnum.WalletProviderEnumFromJSON(json['wallet_provider']),
|
|
32
33
|
'walletProperties': !runtime.exists(json, 'wallet_properties') ? undefined : WalletProperties.WalletPropertiesFromJSON(json['wallet_properties']),
|
|
34
|
+
'businessAccountProperties': !runtime.exists(json, 'business_account_properties') ? undefined : BusinessAccountProperties.BusinessAccountPropertiesFromJSON(json['business_account_properties']),
|
|
33
35
|
'format': JwtVerifiedCredentialFormatEnum.JwtVerifiedCredentialFormatEnumFromJSON(json['format']),
|
|
34
36
|
'oauthProvider': !runtime.exists(json, 'oauth_provider') ? undefined : ProviderEnum.ProviderEnumFromJSON(json['oauth_provider']),
|
|
35
37
|
'oauthUsername': !runtime.exists(json, 'oauth_username') ? undefined : json['oauth_username'],
|
|
@@ -68,6 +70,7 @@ function JwtVerifiedCredentialToJSON(value) {
|
|
|
68
70
|
'wallet_name': value.walletName,
|
|
69
71
|
'wallet_provider': WalletProviderEnum.WalletProviderEnumToJSON(value.walletProvider),
|
|
70
72
|
'wallet_properties': WalletProperties.WalletPropertiesToJSON(value.walletProperties),
|
|
73
|
+
'business_account_properties': BusinessAccountProperties.BusinessAccountPropertiesToJSON(value.businessAccountProperties),
|
|
71
74
|
'format': JwtVerifiedCredentialFormatEnum.JwtVerifiedCredentialFormatEnumToJSON(value.format),
|
|
72
75
|
'oauth_provider': ProviderEnum.ProviderEnumToJSON(value.oauthProvider),
|
|
73
76
|
'oauth_username': value.oauthUsername,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { BusinessAccountProperties } from './BusinessAccountProperties';
|
|
12
13
|
import { JwtVerifiedCredentialFormatEnum } from './JwtVerifiedCredentialFormatEnum';
|
|
13
14
|
import { NameServiceData } from './NameServiceData';
|
|
14
15
|
import { ProviderEnum } from './ProviderEnum';
|
|
@@ -87,6 +88,12 @@ export interface JwtVerifiedCredential {
|
|
|
87
88
|
* @memberof JwtVerifiedCredential
|
|
88
89
|
*/
|
|
89
90
|
walletProperties?: WalletProperties;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {BusinessAccountProperties}
|
|
94
|
+
* @memberof JwtVerifiedCredential
|
|
95
|
+
*/
|
|
96
|
+
businessAccountProperties?: BusinessAccountProperties;
|
|
90
97
|
/**
|
|
91
98
|
*
|
|
92
99
|
* @type {JwtVerifiedCredentialFormatEnum}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { BusinessAccountPropertiesFromJSON, BusinessAccountPropertiesToJSON } from './BusinessAccountProperties.js';
|
|
2
3
|
import { JwtVerifiedCredentialFormatEnumFromJSON, JwtVerifiedCredentialFormatEnumToJSON } from './JwtVerifiedCredentialFormatEnum.js';
|
|
3
4
|
import { NameServiceDataFromJSON, NameServiceDataToJSON } from './NameServiceData.js';
|
|
4
5
|
import { ProviderEnumFromJSON, ProviderEnumToJSON } from './ProviderEnum.js';
|
|
@@ -26,6 +27,7 @@ function JwtVerifiedCredentialFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
27
|
'walletName': !exists(json, 'wallet_name') ? undefined : json['wallet_name'],
|
|
27
28
|
'walletProvider': !exists(json, 'wallet_provider') ? undefined : WalletProviderEnumFromJSON(json['wallet_provider']),
|
|
28
29
|
'walletProperties': !exists(json, 'wallet_properties') ? undefined : WalletPropertiesFromJSON(json['wallet_properties']),
|
|
30
|
+
'businessAccountProperties': !exists(json, 'business_account_properties') ? undefined : BusinessAccountPropertiesFromJSON(json['business_account_properties']),
|
|
29
31
|
'format': JwtVerifiedCredentialFormatEnumFromJSON(json['format']),
|
|
30
32
|
'oauthProvider': !exists(json, 'oauth_provider') ? undefined : ProviderEnumFromJSON(json['oauth_provider']),
|
|
31
33
|
'oauthUsername': !exists(json, 'oauth_username') ? undefined : json['oauth_username'],
|
|
@@ -64,6 +66,7 @@ function JwtVerifiedCredentialToJSON(value) {
|
|
|
64
66
|
'wallet_name': value.walletName,
|
|
65
67
|
'wallet_provider': WalletProviderEnumToJSON(value.walletProvider),
|
|
66
68
|
'wallet_properties': WalletPropertiesToJSON(value.walletProperties),
|
|
69
|
+
'business_account_properties': BusinessAccountPropertiesToJSON(value.businessAccountProperties),
|
|
67
70
|
'format': JwtVerifiedCredentialFormatEnumToJSON(value.format),
|
|
68
71
|
'oauth_provider': ProviderEnumToJSON(value.oauthProvider),
|
|
69
72
|
'oauth_username': value.oauthUsername,
|
package/src/models/index.d.ts
CHANGED
|
@@ -86,8 +86,10 @@ export * from './BusinessAccountDetailAllOf';
|
|
|
86
86
|
export * from './BusinessAccountList';
|
|
87
87
|
export * from './BusinessAccountMember';
|
|
88
88
|
export * from './BusinessAccountMemberRole';
|
|
89
|
+
export * from './BusinessAccountProperties';
|
|
89
90
|
export * from './BusinessAccountSigner';
|
|
90
91
|
export * from './BusinessAccountSignerType';
|
|
92
|
+
export * from './BusinessAccountWallet';
|
|
91
93
|
export * from './CaptchaProviderEnum';
|
|
92
94
|
export * from './CaptchaSettings';
|
|
93
95
|
export * from './CaptchaSettingsCreateRequest';
|