@dynamic-labs/sdk-api 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
|
@@ -1359,6 +1359,72 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1359
1359
|
yield this.externalAuthSigninOptionsRaw(requestParameters, initOverrides);
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
|
+
/**
|
|
1363
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1364
|
+
*/
|
|
1365
|
+
externalAuthVerifyRaw(requestParameters, initOverrides) {
|
|
1366
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1367
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1368
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerify.');
|
|
1369
|
+
}
|
|
1370
|
+
if (requestParameters.externalAuthSigninRequest === null || requestParameters.externalAuthSigninRequest === undefined) {
|
|
1371
|
+
throw new runtime.RequiredError('externalAuthSigninRequest', 'Required parameter requestParameters.externalAuthSigninRequest was null or undefined when calling externalAuthVerify.');
|
|
1372
|
+
}
|
|
1373
|
+
const queryParameters = {};
|
|
1374
|
+
const headerParameters = {};
|
|
1375
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1376
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1377
|
+
const token = this.configuration.accessToken;
|
|
1378
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1379
|
+
if (tokenString) {
|
|
1380
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
const response = yield this.request({
|
|
1384
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1385
|
+
method: 'POST',
|
|
1386
|
+
headers: headerParameters,
|
|
1387
|
+
query: queryParameters,
|
|
1388
|
+
body: ExternalAuthSigninRequest.ExternalAuthSigninRequestToJSON(requestParameters.externalAuthSigninRequest),
|
|
1389
|
+
}, initOverrides);
|
|
1390
|
+
return new runtime.VoidApiResponse(response);
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1395
|
+
*/
|
|
1396
|
+
externalAuthVerify(requestParameters, initOverrides) {
|
|
1397
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1398
|
+
yield this.externalAuthVerifyRaw(requestParameters, initOverrides);
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1403
|
+
*/
|
|
1404
|
+
externalAuthVerifyOptionsRaw(requestParameters, initOverrides) {
|
|
1405
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1406
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1407
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerifyOptions.');
|
|
1408
|
+
}
|
|
1409
|
+
const queryParameters = {};
|
|
1410
|
+
const headerParameters = {};
|
|
1411
|
+
const response = yield this.request({
|
|
1412
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1413
|
+
method: 'OPTIONS',
|
|
1414
|
+
headers: headerParameters,
|
|
1415
|
+
query: queryParameters,
|
|
1416
|
+
}, initOverrides);
|
|
1417
|
+
return new runtime.VoidApiResponse(response);
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1422
|
+
*/
|
|
1423
|
+
externalAuthVerifyOptions(requestParameters, initOverrides) {
|
|
1424
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1425
|
+
yield this.externalAuthVerifyOptionsRaw(requestParameters, initOverrides);
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1362
1428
|
/**
|
|
1363
1429
|
* Farcaster SignIn endpoint to exchange SIWF data
|
|
1364
1430
|
* 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
|
@@ -1355,6 +1355,72 @@ class SDKApi extends BaseAPI {
|
|
|
1355
1355
|
yield this.externalAuthSigninOptionsRaw(requestParameters, initOverrides);
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
1358
|
+
/**
|
|
1359
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1360
|
+
*/
|
|
1361
|
+
externalAuthVerifyRaw(requestParameters, initOverrides) {
|
|
1362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1363
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1364
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerify.');
|
|
1365
|
+
}
|
|
1366
|
+
if (requestParameters.externalAuthSigninRequest === null || requestParameters.externalAuthSigninRequest === undefined) {
|
|
1367
|
+
throw new RequiredError('externalAuthSigninRequest', 'Required parameter requestParameters.externalAuthSigninRequest was null or undefined when calling externalAuthVerify.');
|
|
1368
|
+
}
|
|
1369
|
+
const queryParameters = {};
|
|
1370
|
+
const headerParameters = {};
|
|
1371
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1372
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1373
|
+
const token = this.configuration.accessToken;
|
|
1374
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1375
|
+
if (tokenString) {
|
|
1376
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
const response = yield this.request({
|
|
1380
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1381
|
+
method: 'POST',
|
|
1382
|
+
headers: headerParameters,
|
|
1383
|
+
query: queryParameters,
|
|
1384
|
+
body: ExternalAuthSigninRequestToJSON(requestParameters.externalAuthSigninRequest),
|
|
1385
|
+
}, initOverrides);
|
|
1386
|
+
return new VoidApiResponse(response);
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* [DEPRECATED] Please use /externalAuth/signin instead
|
|
1391
|
+
*/
|
|
1392
|
+
externalAuthVerify(requestParameters, initOverrides) {
|
|
1393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1394
|
+
yield this.externalAuthVerifyRaw(requestParameters, initOverrides);
|
|
1395
|
+
});
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1399
|
+
*/
|
|
1400
|
+
externalAuthVerifyOptionsRaw(requestParameters, initOverrides) {
|
|
1401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1402
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1403
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling externalAuthVerifyOptions.');
|
|
1404
|
+
}
|
|
1405
|
+
const queryParameters = {};
|
|
1406
|
+
const headerParameters = {};
|
|
1407
|
+
const response = yield this.request({
|
|
1408
|
+
path: `/sdk/{environmentId}/externalAuth/verify`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1409
|
+
method: 'OPTIONS',
|
|
1410
|
+
headers: headerParameters,
|
|
1411
|
+
query: queryParameters,
|
|
1412
|
+
}, initOverrides);
|
|
1413
|
+
return new VoidApiResponse(response);
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
/**
|
|
1417
|
+
* [DEPRECATED] Options call for this endpoint
|
|
1418
|
+
*/
|
|
1419
|
+
externalAuthVerifyOptions(requestParameters, initOverrides) {
|
|
1420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1421
|
+
yield this.externalAuthVerifyOptionsRaw(requestParameters, initOverrides);
|
|
1422
|
+
});
|
|
1423
|
+
}
|
|
1358
1424
|
/**
|
|
1359
1425
|
* Farcaster SignIn endpoint to exchange SIWF data
|
|
1360
1426
|
* Farcaster provider SignIn endpoint
|
package/src/index.cjs
CHANGED
|
@@ -45,6 +45,8 @@ var AnalyticsSessionsByDateSessions = require('./models/AnalyticsSessionsByDateS
|
|
|
45
45
|
var AnalyticsVisitResponse = require('./models/AnalyticsVisitResponse.cjs');
|
|
46
46
|
var Asset = require('./models/Asset.cjs');
|
|
47
47
|
var AssetDiff = require('./models/AssetDiff.cjs');
|
|
48
|
+
var AssetExposure = require('./models/AssetExposure.cjs');
|
|
49
|
+
var AssetExposureSpenderToInfo = require('./models/AssetExposureSpenderToInfo.cjs');
|
|
48
50
|
var AssetTransfer = require('./models/AssetTransfer.cjs');
|
|
49
51
|
var AttestationConveyancePreference = require('./models/AttestationConveyancePreference.cjs');
|
|
50
52
|
var AuthModeEnum = require('./models/AuthModeEnum.cjs');
|
|
@@ -66,6 +68,7 @@ var BillingSubscription = require('./models/BillingSubscription.cjs');
|
|
|
66
68
|
var BillingSubscriptionCoupon = require('./models/BillingSubscriptionCoupon.cjs');
|
|
67
69
|
var BillingSubscriptionPeriod = require('./models/BillingSubscriptionPeriod.cjs');
|
|
68
70
|
var BillingSubscriptionPlanTypeEnum = require('./models/BillingSubscriptionPlanTypeEnum.cjs');
|
|
71
|
+
var BlockaidValidation = require('./models/BlockaidValidation.cjs');
|
|
69
72
|
var BulkUserCreateResponse = require('./models/BulkUserCreateResponse.cjs');
|
|
70
73
|
var BulkUserCreateResponseFailed = require('./models/BulkUserCreateResponseFailed.cjs');
|
|
71
74
|
var ChainConfiguration = require('./models/ChainConfiguration.cjs');
|
|
@@ -533,6 +536,12 @@ exports.AssetToJSON = Asset.AssetToJSON;
|
|
|
533
536
|
exports.AssetDiffFromJSON = AssetDiff.AssetDiffFromJSON;
|
|
534
537
|
exports.AssetDiffFromJSONTyped = AssetDiff.AssetDiffFromJSONTyped;
|
|
535
538
|
exports.AssetDiffToJSON = AssetDiff.AssetDiffToJSON;
|
|
539
|
+
exports.AssetExposureFromJSON = AssetExposure.AssetExposureFromJSON;
|
|
540
|
+
exports.AssetExposureFromJSONTyped = AssetExposure.AssetExposureFromJSONTyped;
|
|
541
|
+
exports.AssetExposureToJSON = AssetExposure.AssetExposureToJSON;
|
|
542
|
+
exports.AssetExposureSpenderToInfoFromJSON = AssetExposureSpenderToInfo.AssetExposureSpenderToInfoFromJSON;
|
|
543
|
+
exports.AssetExposureSpenderToInfoFromJSONTyped = AssetExposureSpenderToInfo.AssetExposureSpenderToInfoFromJSONTyped;
|
|
544
|
+
exports.AssetExposureSpenderToInfoToJSON = AssetExposureSpenderToInfo.AssetExposureSpenderToInfoToJSON;
|
|
536
545
|
exports.AssetTransferFromJSON = AssetTransfer.AssetTransferFromJSON;
|
|
537
546
|
exports.AssetTransferFromJSONTyped = AssetTransfer.AssetTransferFromJSONTyped;
|
|
538
547
|
exports.AssetTransferToJSON = AssetTransfer.AssetTransferToJSON;
|
|
@@ -620,6 +629,9 @@ Object.defineProperty(exports, 'BillingSubscriptionPlanTypeEnum', {
|
|
|
620
629
|
exports.BillingSubscriptionPlanTypeEnumFromJSON = BillingSubscriptionPlanTypeEnum.BillingSubscriptionPlanTypeEnumFromJSON;
|
|
621
630
|
exports.BillingSubscriptionPlanTypeEnumFromJSONTyped = BillingSubscriptionPlanTypeEnum.BillingSubscriptionPlanTypeEnumFromJSONTyped;
|
|
622
631
|
exports.BillingSubscriptionPlanTypeEnumToJSON = BillingSubscriptionPlanTypeEnum.BillingSubscriptionPlanTypeEnumToJSON;
|
|
632
|
+
exports.BlockaidValidationFromJSON = BlockaidValidation.BlockaidValidationFromJSON;
|
|
633
|
+
exports.BlockaidValidationFromJSONTyped = BlockaidValidation.BlockaidValidationFromJSONTyped;
|
|
634
|
+
exports.BlockaidValidationToJSON = BlockaidValidation.BlockaidValidationToJSON;
|
|
623
635
|
exports.BulkUserCreateResponseFromJSON = BulkUserCreateResponse.BulkUserCreateResponseFromJSON;
|
|
624
636
|
exports.BulkUserCreateResponseFromJSONTyped = BulkUserCreateResponse.BulkUserCreateResponseFromJSONTyped;
|
|
625
637
|
exports.BulkUserCreateResponseToJSON = BulkUserCreateResponse.BulkUserCreateResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -41,6 +41,8 @@ export { AnalyticsSessionsByDateSessionsFromJSON, AnalyticsSessionsByDateSession
|
|
|
41
41
|
export { AnalyticsVisitResponseFromJSON, AnalyticsVisitResponseFromJSONTyped, AnalyticsVisitResponseToJSON } from './models/AnalyticsVisitResponse.js';
|
|
42
42
|
export { AssetFromJSON, AssetFromJSONTyped, AssetToJSON } from './models/Asset.js';
|
|
43
43
|
export { AssetDiffFromJSON, AssetDiffFromJSONTyped, AssetDiffToJSON } from './models/AssetDiff.js';
|
|
44
|
+
export { AssetExposureFromJSON, AssetExposureFromJSONTyped, AssetExposureToJSON } from './models/AssetExposure.js';
|
|
45
|
+
export { AssetExposureSpenderToInfoFromJSON, AssetExposureSpenderToInfoFromJSONTyped, AssetExposureSpenderToInfoToJSON } from './models/AssetExposureSpenderToInfo.js';
|
|
44
46
|
export { AssetTransferFromJSON, AssetTransferFromJSONTyped, AssetTransferToJSON } from './models/AssetTransfer.js';
|
|
45
47
|
export { AttestationConveyancePreference, AttestationConveyancePreferenceFromJSON, AttestationConveyancePreferenceFromJSONTyped, AttestationConveyancePreferenceToJSON } from './models/AttestationConveyancePreference.js';
|
|
46
48
|
export { AuthModeEnum, AuthModeEnumFromJSON, AuthModeEnumFromJSONTyped, AuthModeEnumToJSON } from './models/AuthModeEnum.js';
|
|
@@ -62,6 +64,7 @@ export { BillingSubscriptionFromJSON, BillingSubscriptionFromJSONTyped, BillingS
|
|
|
62
64
|
export { BillingSubscriptionCouponFromJSON, BillingSubscriptionCouponFromJSONTyped, BillingSubscriptionCouponToJSON } from './models/BillingSubscriptionCoupon.js';
|
|
63
65
|
export { BillingSubscriptionPeriodFromJSON, BillingSubscriptionPeriodFromJSONTyped, BillingSubscriptionPeriodToJSON } from './models/BillingSubscriptionPeriod.js';
|
|
64
66
|
export { BillingSubscriptionPlanTypeEnum, BillingSubscriptionPlanTypeEnumFromJSON, BillingSubscriptionPlanTypeEnumFromJSONTyped, BillingSubscriptionPlanTypeEnumToJSON } from './models/BillingSubscriptionPlanTypeEnum.js';
|
|
67
|
+
export { BlockaidValidationFromJSON, BlockaidValidationFromJSONTyped, BlockaidValidationToJSON } from './models/BlockaidValidation.js';
|
|
65
68
|
export { BulkUserCreateResponseFromJSON, BulkUserCreateResponseFromJSONTyped, BulkUserCreateResponseToJSON } from './models/BulkUserCreateResponse.js';
|
|
66
69
|
export { BulkUserCreateResponseFailedFromJSON, BulkUserCreateResponseFailedFromJSONTyped, BulkUserCreateResponseFailedToJSON } from './models/BulkUserCreateResponseFailed.js';
|
|
67
70
|
export { ChainConfigurationFromJSON, ChainConfigurationFromJSONTyped, ChainConfigurationToJSON } from './models/ChainConfiguration.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
|
@@ -8,6 +8,8 @@ export * from './AnalyticsSessionsByDateSessions';
|
|
|
8
8
|
export * from './AnalyticsVisitResponse';
|
|
9
9
|
export * from './Asset';
|
|
10
10
|
export * from './AssetDiff';
|
|
11
|
+
export * from './AssetExposure';
|
|
12
|
+
export * from './AssetExposureSpenderToInfo';
|
|
11
13
|
export * from './AssetTransfer';
|
|
12
14
|
export * from './AttestationConveyancePreference';
|
|
13
15
|
export * from './AuthModeEnum';
|
|
@@ -29,6 +31,7 @@ export * from './BillingSubscription';
|
|
|
29
31
|
export * from './BillingSubscriptionCoupon';
|
|
30
32
|
export * from './BillingSubscriptionPeriod';
|
|
31
33
|
export * from './BillingSubscriptionPlanTypeEnum';
|
|
34
|
+
export * from './BlockaidValidation';
|
|
32
35
|
export * from './BulkUserCreateResponse';
|
|
33
36
|
export * from './BulkUserCreateResponseFailed';
|
|
34
37
|
export * from './ChainConfiguration';
|