@dynamic-labs/sdk-api-core 0.0.605 → 0.0.606
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/SDKApi.cjs +66 -0
- package/src/apis/SDKApi.d.ts +23 -0
- package/src/apis/SDKApi.js +66 -0
- package/src/index.cjs +12 -0
- package/src/index.js +3 -0
- package/src/models/AssetExposure.cjs +37 -0
- package/src/models/AssetExposure.d.ts +37 -0
- package/src/models/AssetExposure.js +31 -0
- package/src/models/AssetExposureSpenderToInfo.cjs +37 -0
- package/src/models/AssetExposureSpenderToInfo.d.ts +39 -0
- package/src/models/AssetExposureSpenderToInfo.js +31 -0
- package/src/models/BlockaidValidation.cjs +39 -0
- package/src/models/BlockaidValidation.d.ts +45 -0
- package/src/models/BlockaidValidation.js +33 -0
- package/src/models/SimulateTransactionResponse.cjs +6 -0
- package/src/models/SimulateTransactionResponse.d.ts +14 -0
- package/src/models/SimulateTransactionResponse.js +6 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -1341,6 +1341,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1341
1341
|
yield this.externalAuthSigninOptionsRaw(requestParameters, initOverrides);
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
|
+
/**
|
|
1345
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1346
|
+
*/
|
|
1347
|
+
externalAuthVerifyRaw(requestParameters, initOverrides) {
|
|
1348
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1349
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1350
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerify.');
|
|
1351
|
+
}
|
|
1352
|
+
if (requestParameters.externalAuthSigninRequest === null || requestParameters.externalAuthSigninRequest === undefined) {
|
|
1353
|
+
throw new runtime.RequiredError('externalAuthSigninRequest', 'Required parameter requestParameters.externalAuthSigninRequest was null or undefined when calling externalAuthVerify.');
|
|
1354
|
+
}
|
|
1355
|
+
const queryParameters = {};
|
|
1356
|
+
const headerParameters = {};
|
|
1357
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1358
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1359
|
+
const token = this.configuration.accessToken;
|
|
1360
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1361
|
+
if (tokenString) {
|
|
1362
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
const response = yield this.request({
|
|
1366
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1367
|
+
method: 'POST',
|
|
1368
|
+
headers: headerParameters,
|
|
1369
|
+
query: queryParameters,
|
|
1370
|
+
body: ExternalAuthSigninRequest.ExternalAuthSigninRequestToJSON(requestParameters.externalAuthSigninRequest),
|
|
1371
|
+
}, initOverrides);
|
|
1372
|
+
return new runtime.VoidApiResponse(response);
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1377
|
+
*/
|
|
1378
|
+
externalAuthVerify(requestParameters, initOverrides) {
|
|
1379
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1380
|
+
yield this.externalAuthVerifyRaw(requestParameters, initOverrides);
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1385
|
+
*/
|
|
1386
|
+
externalAuthVerifyOptionsRaw(requestParameters, initOverrides) {
|
|
1387
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1388
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1389
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerifyOptions.');
|
|
1390
|
+
}
|
|
1391
|
+
const queryParameters = {};
|
|
1392
|
+
const headerParameters = {};
|
|
1393
|
+
const response = yield this.request({
|
|
1394
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1395
|
+
method: 'OPTIONS',
|
|
1396
|
+
headers: headerParameters,
|
|
1397
|
+
query: queryParameters,
|
|
1398
|
+
}, initOverrides);
|
|
1399
|
+
return new runtime.VoidApiResponse(response);
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1404
|
+
*/
|
|
1405
|
+
externalAuthVerifyOptions(requestParameters, initOverrides) {
|
|
1406
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1407
|
+
yield this.externalAuthVerifyOptionsRaw(requestParameters, initOverrides);
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1344
1410
|
/**
|
|
1345
1411
|
* Farcaster SignIn endpoint to exchange SIWF data
|
|
1346
1412
|
* Farcaster provider SignIn endpoint
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -141,6 +141,13 @@ export interface ExternalAuthSigninOperationRequest {
|
|
|
141
141
|
export interface ExternalAuthSigninOptionsRequest {
|
|
142
142
|
environmentId: string;
|
|
143
143
|
}
|
|
144
|
+
export interface ExternalAuthVerifyRequest {
|
|
145
|
+
environmentId: string;
|
|
146
|
+
externalAuthSigninRequest: ExternalAuthSigninRequest;
|
|
147
|
+
}
|
|
148
|
+
export interface ExternalAuthVerifyOptionsRequest {
|
|
149
|
+
environmentId: string;
|
|
150
|
+
}
|
|
144
151
|
export interface FarcasterSignInOperationRequest {
|
|
145
152
|
environmentId: string;
|
|
146
153
|
farcasterSignInRequest?: FarcasterSignInRequest;
|
|
@@ -987,6 +994,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
987
994
|
* Options call for this endpoint
|
|
988
995
|
*/
|
|
989
996
|
externalAuthSigninOptions(requestParameters: ExternalAuthSigninOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
997
|
+
/**
|
|
998
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
999
|
+
*/
|
|
1000
|
+
externalAuthVerifyRaw(requestParameters: ExternalAuthVerifyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1001
|
+
/**
|
|
1002
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1003
|
+
*/
|
|
1004
|
+
externalAuthVerify(requestParameters: ExternalAuthVerifyRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1005
|
+
/**
|
|
1006
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1007
|
+
*/
|
|
1008
|
+
externalAuthVerifyOptionsRaw(requestParameters: ExternalAuthVerifyOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1009
|
+
/**
|
|
1010
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1011
|
+
*/
|
|
1012
|
+
externalAuthVerifyOptions(requestParameters: ExternalAuthVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
990
1013
|
/**
|
|
991
1014
|
* Farcaster SignIn endpoint to exchange SIWF data
|
|
992
1015
|
* Farcaster provider SignIn endpoint
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -1337,6 +1337,72 @@ class SDKApi extends BaseAPI {
|
|
|
1337
1337
|
yield this.externalAuthSigninOptionsRaw(requestParameters, initOverrides);
|
|
1338
1338
|
});
|
|
1339
1339
|
}
|
|
1340
|
+
/**
|
|
1341
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1342
|
+
*/
|
|
1343
|
+
externalAuthVerifyRaw(requestParameters, initOverrides) {
|
|
1344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1345
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1346
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerify.');
|
|
1347
|
+
}
|
|
1348
|
+
if (requestParameters.externalAuthSigninRequest === null || requestParameters.externalAuthSigninRequest === undefined) {
|
|
1349
|
+
throw new RequiredError('externalAuthSigninRequest', 'Required parameter requestParameters.externalAuthSigninRequest was null or undefined when calling externalAuthVerify.');
|
|
1350
|
+
}
|
|
1351
|
+
const queryParameters = {};
|
|
1352
|
+
const headerParameters = {};
|
|
1353
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1354
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1355
|
+
const token = this.configuration.accessToken;
|
|
1356
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1357
|
+
if (tokenString) {
|
|
1358
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
const response = yield this.request({
|
|
1362
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1363
|
+
method: 'POST',
|
|
1364
|
+
headers: headerParameters,
|
|
1365
|
+
query: queryParameters,
|
|
1366
|
+
body: ExternalAuthSigninRequestToJSON(requestParameters.externalAuthSigninRequest),
|
|
1367
|
+
}, initOverrides);
|
|
1368
|
+
return new VoidApiResponse(response);
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1373
|
+
*/
|
|
1374
|
+
externalAuthVerify(requestParameters, initOverrides) {
|
|
1375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1376
|
+
yield this.externalAuthVerifyRaw(requestParameters, initOverrides);
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1381
|
+
*/
|
|
1382
|
+
externalAuthVerifyOptionsRaw(requestParameters, initOverrides) {
|
|
1383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1384
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1385
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerifyOptions.');
|
|
1386
|
+
}
|
|
1387
|
+
const queryParameters = {};
|
|
1388
|
+
const headerParameters = {};
|
|
1389
|
+
const response = yield this.request({
|
|
1390
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1391
|
+
method: 'OPTIONS',
|
|
1392
|
+
headers: headerParameters,
|
|
1393
|
+
query: queryParameters,
|
|
1394
|
+
}, initOverrides);
|
|
1395
|
+
return new VoidApiResponse(response);
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1400
|
+
*/
|
|
1401
|
+
externalAuthVerifyOptions(requestParameters, initOverrides) {
|
|
1402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1403
|
+
yield this.externalAuthVerifyOptionsRaw(requestParameters, initOverrides);
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1340
1406
|
/**
|
|
1341
1407
|
* Farcaster SignIn endpoint to exchange SIWF data
|
|
1342
1408
|
* Farcaster provider SignIn endpoint
|
package/src/index.cjs
CHANGED
|
@@ -6,6 +6,8 @@ var runtime = require('./runtime.cjs');
|
|
|
6
6
|
var SDKApi = require('./apis/SDKApi.cjs');
|
|
7
7
|
var Asset = require('./models/Asset.cjs');
|
|
8
8
|
var AssetDiff = require('./models/AssetDiff.cjs');
|
|
9
|
+
var AssetExposure = require('./models/AssetExposure.cjs');
|
|
10
|
+
var AssetExposureSpenderToInfo = require('./models/AssetExposureSpenderToInfo.cjs');
|
|
9
11
|
var AssetTransfer = require('./models/AssetTransfer.cjs');
|
|
10
12
|
var AttestationConveyancePreference = require('./models/AttestationConveyancePreference.cjs');
|
|
11
13
|
var AuthModeEnum = require('./models/AuthModeEnum.cjs');
|
|
@@ -23,6 +25,7 @@ var BackupKeyshareResponse = require('./models/BackupKeyshareResponse.cjs');
|
|
|
23
25
|
var BadGateway = require('./models/BadGateway.cjs');
|
|
24
26
|
var BadRequest = require('./models/BadRequest.cjs');
|
|
25
27
|
var BaseUser = require('./models/BaseUser.cjs');
|
|
28
|
+
var BlockaidValidation = require('./models/BlockaidValidation.cjs');
|
|
26
29
|
var ChainConfiguration = require('./models/ChainConfiguration.cjs');
|
|
27
30
|
var ChainEnum = require('./models/ChainEnum.cjs');
|
|
28
31
|
var CoinbaseMpcWalletProperties = require('./models/CoinbaseMpcWalletProperties.cjs');
|
|
@@ -301,6 +304,12 @@ exports.AssetToJSON = Asset.AssetToJSON;
|
|
|
301
304
|
exports.AssetDiffFromJSON = AssetDiff.AssetDiffFromJSON;
|
|
302
305
|
exports.AssetDiffFromJSONTyped = AssetDiff.AssetDiffFromJSONTyped;
|
|
303
306
|
exports.AssetDiffToJSON = AssetDiff.AssetDiffToJSON;
|
|
307
|
+
exports.AssetExposureFromJSON = AssetExposure.AssetExposureFromJSON;
|
|
308
|
+
exports.AssetExposureFromJSONTyped = AssetExposure.AssetExposureFromJSONTyped;
|
|
309
|
+
exports.AssetExposureToJSON = AssetExposure.AssetExposureToJSON;
|
|
310
|
+
exports.AssetExposureSpenderToInfoFromJSON = AssetExposureSpenderToInfo.AssetExposureSpenderToInfoFromJSON;
|
|
311
|
+
exports.AssetExposureSpenderToInfoFromJSONTyped = AssetExposureSpenderToInfo.AssetExposureSpenderToInfoFromJSONTyped;
|
|
312
|
+
exports.AssetExposureSpenderToInfoToJSON = AssetExposureSpenderToInfo.AssetExposureSpenderToInfoToJSON;
|
|
304
313
|
exports.AssetTransferFromJSON = AssetTransfer.AssetTransferFromJSON;
|
|
305
314
|
exports.AssetTransferFromJSONTyped = AssetTransfer.AssetTransferFromJSONTyped;
|
|
306
315
|
exports.AssetTransferToJSON = AssetTransfer.AssetTransferToJSON;
|
|
@@ -372,6 +381,9 @@ exports.BadRequestToJSON = BadRequest.BadRequestToJSON;
|
|
|
372
381
|
exports.BaseUserFromJSON = BaseUser.BaseUserFromJSON;
|
|
373
382
|
exports.BaseUserFromJSONTyped = BaseUser.BaseUserFromJSONTyped;
|
|
374
383
|
exports.BaseUserToJSON = BaseUser.BaseUserToJSON;
|
|
384
|
+
exports.BlockaidValidationFromJSON = BlockaidValidation.BlockaidValidationFromJSON;
|
|
385
|
+
exports.BlockaidValidationFromJSONTyped = BlockaidValidation.BlockaidValidationFromJSONTyped;
|
|
386
|
+
exports.BlockaidValidationToJSON = BlockaidValidation.BlockaidValidationToJSON;
|
|
375
387
|
exports.ChainConfigurationFromJSON = ChainConfiguration.ChainConfigurationFromJSON;
|
|
376
388
|
exports.ChainConfigurationFromJSONTyped = ChainConfiguration.ChainConfigurationFromJSONTyped;
|
|
377
389
|
exports.ChainConfigurationToJSON = ChainConfiguration.ChainConfigurationToJSON;
|
package/src/index.js
CHANGED
|
@@ -2,6 +2,8 @@ export { BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration,
|
|
|
2
2
|
export { GetAccountBalancesChainNameEnum, GetAccountBalancesOptionsChainNameEnum, SDKApi } from './apis/SDKApi.js';
|
|
3
3
|
export { AssetFromJSON, AssetFromJSONTyped, AssetToJSON } from './models/Asset.js';
|
|
4
4
|
export { AssetDiffFromJSON, AssetDiffFromJSONTyped, AssetDiffToJSON } from './models/AssetDiff.js';
|
|
5
|
+
export { AssetExposureFromJSON, AssetExposureFromJSONTyped, AssetExposureToJSON } from './models/AssetExposure.js';
|
|
6
|
+
export { AssetExposureSpenderToInfoFromJSON, AssetExposureSpenderToInfoFromJSONTyped, AssetExposureSpenderToInfoToJSON } from './models/AssetExposureSpenderToInfo.js';
|
|
5
7
|
export { AssetTransferFromJSON, AssetTransferFromJSONTyped, AssetTransferToJSON } from './models/AssetTransfer.js';
|
|
6
8
|
export { AttestationConveyancePreference, AttestationConveyancePreferenceFromJSON, AttestationConveyancePreferenceFromJSONTyped, AttestationConveyancePreferenceToJSON } from './models/AttestationConveyancePreference.js';
|
|
7
9
|
export { AuthModeEnum, AuthModeEnumFromJSON, AuthModeEnumFromJSONTyped, AuthModeEnumToJSON } from './models/AuthModeEnum.js';
|
|
@@ -19,6 +21,7 @@ export { BackupKeyshareResponseFromJSON, BackupKeyshareResponseFromJSONTyped, Ba
|
|
|
19
21
|
export { BadGatewayFromJSON, BadGatewayFromJSONTyped, BadGatewayToJSON } from './models/BadGateway.js';
|
|
20
22
|
export { BadRequestFromJSON, BadRequestFromJSONTyped, BadRequestToJSON } from './models/BadRequest.js';
|
|
21
23
|
export { BaseUserFromJSON, BaseUserFromJSONTyped, BaseUserToJSON } from './models/BaseUser.js';
|
|
24
|
+
export { BlockaidValidationFromJSON, BlockaidValidationFromJSONTyped, BlockaidValidationToJSON } from './models/BlockaidValidation.js';
|
|
22
25
|
export { ChainConfigurationFromJSON, ChainConfigurationFromJSONTyped, ChainConfigurationToJSON } from './models/ChainConfiguration.js';
|
|
23
26
|
export { ChainEnum, ChainEnumFromJSON, ChainEnumFromJSONTyped, ChainEnumToJSON } from './models/ChainEnum.js';
|
|
24
27
|
export { CoinbaseMpcWalletPropertiesFromJSON, CoinbaseMpcWalletPropertiesFromJSONTyped, CoinbaseMpcWalletPropertiesToJSON } from './models/CoinbaseMpcWalletProperties.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var Asset = require('./Asset.cjs');
|
|
7
|
+
var AssetExposureSpenderToInfo = require('./AssetExposureSpenderToInfo.cjs');
|
|
8
|
+
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
function AssetExposureFromJSON(json) {
|
|
11
|
+
return AssetExposureFromJSONTyped(json);
|
|
12
|
+
}
|
|
13
|
+
function AssetExposureFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
|
+
if ((json === undefined) || (json === null)) {
|
|
15
|
+
return json;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
'asset': Asset.AssetFromJSON(json['asset']),
|
|
19
|
+
'spenderToInfo': (runtime.mapValues(json['spenderToInfo'], AssetExposureSpenderToInfo.AssetExposureSpenderToInfoFromJSON)),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function AssetExposureToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'asset': Asset.AssetToJSON(value.asset),
|
|
31
|
+
'spenderToInfo': (runtime.mapValues(value.spenderToInfo, AssetExposureSpenderToInfo.AssetExposureSpenderToInfoToJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.AssetExposureFromJSON = AssetExposureFromJSON;
|
|
36
|
+
exports.AssetExposureFromJSONTyped = AssetExposureFromJSONTyped;
|
|
37
|
+
exports.AssetExposureToJSON = AssetExposureToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { Asset } from './Asset';
|
|
13
|
+
import { AssetExposureSpenderToInfo } from './AssetExposureSpenderToInfo';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AssetExposure
|
|
18
|
+
*/
|
|
19
|
+
export interface AssetExposure {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Asset}
|
|
23
|
+
* @memberof AssetExposure
|
|
24
|
+
*/
|
|
25
|
+
asset: Asset;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {{ [key: string]: AssetExposureSpenderToInfo; }}
|
|
29
|
+
* @memberof AssetExposure
|
|
30
|
+
*/
|
|
31
|
+
spenderToInfo: {
|
|
32
|
+
[key: string]: AssetExposureSpenderToInfo;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare function AssetExposureFromJSON(json: any): AssetExposure;
|
|
36
|
+
export declare function AssetExposureFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetExposure;
|
|
37
|
+
export declare function AssetExposureToJSON(value?: AssetExposure | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { mapValues } from '../runtime.js';
|
|
2
|
+
import { AssetFromJSON, AssetToJSON } from './Asset.js';
|
|
3
|
+
import { AssetExposureSpenderToInfoFromJSON, AssetExposureSpenderToInfoToJSON } from './AssetExposureSpenderToInfo.js';
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
function AssetExposureFromJSON(json) {
|
|
7
|
+
return AssetExposureFromJSONTyped(json);
|
|
8
|
+
}
|
|
9
|
+
function AssetExposureFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
|
+
if ((json === undefined) || (json === null)) {
|
|
11
|
+
return json;
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
'asset': AssetFromJSON(json['asset']),
|
|
15
|
+
'spenderToInfo': (mapValues(json['spenderToInfo'], AssetExposureSpenderToInfoFromJSON)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function AssetExposureToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'asset': AssetToJSON(value.asset),
|
|
27
|
+
'spenderToInfo': (mapValues(value.spenderToInfo, AssetExposureSpenderToInfoToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { AssetExposureFromJSON, AssetExposureFromJSONTyped, AssetExposureToJSON };
|
|
@@ -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 AssetExposureSpenderToInfoFromJSON(json) {
|
|
9
|
+
return AssetExposureSpenderToInfoFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function AssetExposureSpenderToInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'amount': json['amount'],
|
|
17
|
+
'spenderAlias': !runtime.exists(json, 'spenderAlias') ? undefined : json['spenderAlias'],
|
|
18
|
+
'usdValue': !runtime.exists(json, 'usdValue') ? undefined : json['usdValue'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function AssetExposureSpenderToInfoToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'amount': value.amount,
|
|
30
|
+
'spenderAlias': value.spenderAlias,
|
|
31
|
+
'usdValue': value.usdValue,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.AssetExposureSpenderToInfoFromJSON = AssetExposureSpenderToInfoFromJSON;
|
|
36
|
+
exports.AssetExposureSpenderToInfoFromJSONTyped = AssetExposureSpenderToInfoFromJSONTyped;
|
|
37
|
+
exports.AssetExposureSpenderToInfoToJSON = AssetExposureSpenderToInfoToJSON;
|
|
@@ -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 AssetExposureSpenderToInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface AssetExposureSpenderToInfo {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssetExposureSpenderToInfo
|
|
22
|
+
*/
|
|
23
|
+
amount: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssetExposureSpenderToInfo
|
|
28
|
+
*/
|
|
29
|
+
spenderAlias?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssetExposureSpenderToInfo
|
|
34
|
+
*/
|
|
35
|
+
usdValue?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function AssetExposureSpenderToInfoFromJSON(json: any): AssetExposureSpenderToInfo;
|
|
38
|
+
export declare function AssetExposureSpenderToInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetExposureSpenderToInfo;
|
|
39
|
+
export declare function AssetExposureSpenderToInfoToJSON(value?: AssetExposureSpenderToInfo | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function AssetExposureSpenderToInfoFromJSON(json) {
|
|
5
|
+
return AssetExposureSpenderToInfoFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function AssetExposureSpenderToInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'amount': json['amount'],
|
|
13
|
+
'spenderAlias': !exists(json, 'spenderAlias') ? undefined : json['spenderAlias'],
|
|
14
|
+
'usdValue': !exists(json, 'usdValue') ? undefined : json['usdValue'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function AssetExposureSpenderToInfoToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'amount': value.amount,
|
|
26
|
+
'spenderAlias': value.spenderAlias,
|
|
27
|
+
'usdValue': value.usdValue,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { AssetExposureSpenderToInfoFromJSON, AssetExposureSpenderToInfoFromJSONTyped, AssetExposureSpenderToInfoToJSON };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BlockaidValidationFromJSON(json) {
|
|
9
|
+
return BlockaidValidationFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BlockaidValidationFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'result': json['result'],
|
|
17
|
+
'description': !runtime.exists(json, 'description') ? undefined : json['description'],
|
|
18
|
+
'reason': json['reason'],
|
|
19
|
+
'classification': !runtime.exists(json, 'classification') ? undefined : json['classification'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function BlockaidValidationToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'result': value.result,
|
|
31
|
+
'description': value.description,
|
|
32
|
+
'reason': value.reason,
|
|
33
|
+
'classification': value.classification,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.BlockaidValidationFromJSON = BlockaidValidationFromJSON;
|
|
38
|
+
exports.BlockaidValidationFromJSONTyped = BlockaidValidationFromJSONTyped;
|
|
39
|
+
exports.BlockaidValidationToJSON = BlockaidValidationToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 BlockaidValidation
|
|
16
|
+
*/
|
|
17
|
+
export interface BlockaidValidation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BlockaidValidation
|
|
22
|
+
*/
|
|
23
|
+
result: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BlockaidValidation
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BlockaidValidation
|
|
34
|
+
*/
|
|
35
|
+
reason: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BlockaidValidation
|
|
40
|
+
*/
|
|
41
|
+
classification?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function BlockaidValidationFromJSON(json: any): BlockaidValidation;
|
|
44
|
+
export declare function BlockaidValidationFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlockaidValidation;
|
|
45
|
+
export declare function BlockaidValidationToJSON(value?: BlockaidValidation | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BlockaidValidationFromJSON(json) {
|
|
5
|
+
return BlockaidValidationFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BlockaidValidationFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'result': json['result'],
|
|
13
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
14
|
+
'reason': json['reason'],
|
|
15
|
+
'classification': !exists(json, 'classification') ? undefined : json['classification'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function BlockaidValidationToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'result': value.result,
|
|
27
|
+
'description': value.description,
|
|
28
|
+
'reason': value.reason,
|
|
29
|
+
'classification': value.classification,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { BlockaidValidationFromJSON, BlockaidValidationFromJSONTyped, BlockaidValidationToJSON };
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var AssetDiff = require('./AssetDiff.cjs');
|
|
7
|
+
var AssetExposure = require('./AssetExposure.cjs');
|
|
8
|
+
var BlockaidValidation = require('./BlockaidValidation.cjs');
|
|
7
9
|
var PriceData = require('./PriceData.cjs');
|
|
8
10
|
|
|
9
11
|
/* tslint:disable */
|
|
@@ -20,6 +22,8 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
22
|
'counterparties': !runtime.exists(json, 'counterparties') ? undefined : json['counterparties'],
|
|
21
23
|
'priceData': PriceData.PriceDataFromJSON(json['priceData']),
|
|
22
24
|
'showTotalFiat': json['showTotalFiat'],
|
|
25
|
+
'validation': !runtime.exists(json, 'validation') ? undefined : BlockaidValidation.BlockaidValidationFromJSON(json['validation']),
|
|
26
|
+
'assetExposures': !runtime.exists(json, 'assetExposures') ? undefined : (json['assetExposures'].map(AssetExposure.AssetExposureFromJSON)),
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
29
|
function SimulateTransactionResponseToJSON(value) {
|
|
@@ -35,6 +39,8 @@ function SimulateTransactionResponseToJSON(value) {
|
|
|
35
39
|
'counterparties': value.counterparties,
|
|
36
40
|
'priceData': PriceData.PriceDataToJSON(value.priceData),
|
|
37
41
|
'showTotalFiat': value.showTotalFiat,
|
|
42
|
+
'validation': BlockaidValidation.BlockaidValidationToJSON(value.validation),
|
|
43
|
+
'assetExposures': value.assetExposures === undefined ? undefined : (value.assetExposures.map(AssetExposure.AssetExposureToJSON)),
|
|
38
44
|
};
|
|
39
45
|
}
|
|
40
46
|
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AssetDiff } from './AssetDiff';
|
|
13
|
+
import { AssetExposure } from './AssetExposure';
|
|
14
|
+
import { BlockaidValidation } from './BlockaidValidation';
|
|
13
15
|
import { PriceData } from './PriceData';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
@@ -47,6 +49,18 @@ export interface SimulateTransactionResponse {
|
|
|
47
49
|
* @memberof SimulateTransactionResponse
|
|
48
50
|
*/
|
|
49
51
|
showTotalFiat: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {BlockaidValidation}
|
|
55
|
+
* @memberof SimulateTransactionResponse
|
|
56
|
+
*/
|
|
57
|
+
validation?: BlockaidValidation;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<AssetExposure>}
|
|
61
|
+
* @memberof SimulateTransactionResponse
|
|
62
|
+
*/
|
|
63
|
+
assetExposures?: Array<AssetExposure>;
|
|
50
64
|
}
|
|
51
65
|
export declare function SimulateTransactionResponseFromJSON(json: any): SimulateTransactionResponse;
|
|
52
66
|
export declare function SimulateTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimulateTransactionResponse;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { AssetDiffFromJSON, AssetDiffToJSON } from './AssetDiff.js';
|
|
3
|
+
import { AssetExposureFromJSON, AssetExposureToJSON } from './AssetExposure.js';
|
|
4
|
+
import { BlockaidValidationFromJSON, BlockaidValidationToJSON } from './BlockaidValidation.js';
|
|
3
5
|
import { PriceDataFromJSON, PriceDataToJSON } from './PriceData.js';
|
|
4
6
|
|
|
5
7
|
/* tslint:disable */
|
|
@@ -16,6 +18,8 @@ function SimulateTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
18
|
'counterparties': !exists(json, 'counterparties') ? undefined : json['counterparties'],
|
|
17
19
|
'priceData': PriceDataFromJSON(json['priceData']),
|
|
18
20
|
'showTotalFiat': json['showTotalFiat'],
|
|
21
|
+
'validation': !exists(json, 'validation') ? undefined : BlockaidValidationFromJSON(json['validation']),
|
|
22
|
+
'assetExposures': !exists(json, 'assetExposures') ? undefined : (json['assetExposures'].map(AssetExposureFromJSON)),
|
|
19
23
|
};
|
|
20
24
|
}
|
|
21
25
|
function SimulateTransactionResponseToJSON(value) {
|
|
@@ -31,6 +35,8 @@ function SimulateTransactionResponseToJSON(value) {
|
|
|
31
35
|
'counterparties': value.counterparties,
|
|
32
36
|
'priceData': PriceDataToJSON(value.priceData),
|
|
33
37
|
'showTotalFiat': value.showTotalFiat,
|
|
38
|
+
'validation': BlockaidValidationToJSON(value.validation),
|
|
39
|
+
'assetExposures': value.assetExposures === undefined ? undefined : (value.assetExposures.map(AssetExposureToJSON)),
|
|
34
40
|
};
|
|
35
41
|
}
|
|
36
42
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './Asset';
|
|
2
2
|
export * from './AssetDiff';
|
|
3
|
+
export * from './AssetExposure';
|
|
4
|
+
export * from './AssetExposureSpenderToInfo';
|
|
3
5
|
export * from './AssetTransfer';
|
|
4
6
|
export * from './AttestationConveyancePreference';
|
|
5
7
|
export * from './AuthModeEnum';
|
|
@@ -17,6 +19,7 @@ export * from './BackupKeyshareResponse';
|
|
|
17
19
|
export * from './BadGateway';
|
|
18
20
|
export * from './BadRequest';
|
|
19
21
|
export * from './BaseUser';
|
|
22
|
+
export * from './BlockaidValidation';
|
|
20
23
|
export * from './ChainConfiguration';
|
|
21
24
|
export * from './ChainEnum';
|
|
22
25
|
export * from './CoinbaseMpcWalletProperties';
|