@dynamic-labs/sdk-api-core 0.0.864 → 0.0.869
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 +550 -162
- package/src/apis/SDKApi.d.ts +419 -163
- package/src/apis/SDKApi.js +550 -162
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/SignMessageBtcTransaction.cjs +5 -13
- package/src/models/SignMessageBtcTransaction.d.ts +8 -2
- package/src/models/SignMessageBtcTransaction.js +5 -13
- package/src/models/SmsVerificationVerifyRequest.cjs +3 -0
- package/src/models/SmsVerificationVerifyRequest.d.ts +7 -0
- package/src/models/SmsVerificationVerifyRequest.js +3 -0
- package/src/models/WalletSanctionsResponse.cjs +37 -0
- package/src/models/WalletSanctionsResponse.d.ts +40 -0
- package/src/models/WalletSanctionsResponse.js +31 -0
- package/src/models/index.d.ts +1 -0
package/src/index.cjs
CHANGED
|
@@ -382,6 +382,7 @@ var WalletKeyShareInfoWithEncryptedAccountCredential = require('./models/WalletK
|
|
|
382
382
|
var WalletKeyShareInfoWithEncryptedAccountCredentialAllOf = require('./models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.cjs');
|
|
383
383
|
var WalletProperties = require('./models/WalletProperties.cjs');
|
|
384
384
|
var WalletProviderEnum = require('./models/WalletProviderEnum.cjs');
|
|
385
|
+
var WalletSanctionsResponse = require('./models/WalletSanctionsResponse.cjs');
|
|
385
386
|
var WalletTransaction = require('./models/WalletTransaction.cjs');
|
|
386
387
|
var WalletTransactionAssetTransfer = require('./models/WalletTransactionAssetTransfer.cjs');
|
|
387
388
|
var WalletTransactionAssetTransferMetadata = require('./models/WalletTransactionAssetTransferMetadata.cjs');
|
|
@@ -1817,6 +1818,9 @@ Object.defineProperty(exports, 'WalletProviderEnum', {
|
|
|
1817
1818
|
exports.WalletProviderEnumFromJSON = WalletProviderEnum.WalletProviderEnumFromJSON;
|
|
1818
1819
|
exports.WalletProviderEnumFromJSONTyped = WalletProviderEnum.WalletProviderEnumFromJSONTyped;
|
|
1819
1820
|
exports.WalletProviderEnumToJSON = WalletProviderEnum.WalletProviderEnumToJSON;
|
|
1821
|
+
exports.WalletSanctionsResponseFromJSON = WalletSanctionsResponse.WalletSanctionsResponseFromJSON;
|
|
1822
|
+
exports.WalletSanctionsResponseFromJSONTyped = WalletSanctionsResponse.WalletSanctionsResponseFromJSONTyped;
|
|
1823
|
+
exports.WalletSanctionsResponseToJSON = WalletSanctionsResponse.WalletSanctionsResponseToJSON;
|
|
1820
1824
|
exports.WalletTransactionFromJSON = WalletTransaction.WalletTransactionFromJSON;
|
|
1821
1825
|
exports.WalletTransactionFromJSONTyped = WalletTransaction.WalletTransactionFromJSONTyped;
|
|
1822
1826
|
exports.WalletTransactionToJSON = WalletTransaction.WalletTransactionToJSON;
|
package/src/index.js
CHANGED
|
@@ -378,6 +378,7 @@ export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShar
|
|
|
378
378
|
export { WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.js';
|
|
379
379
|
export { WalletPropertiesFromJSON, WalletPropertiesFromJSONTyped, WalletPropertiesToJSON } from './models/WalletProperties.js';
|
|
380
380
|
export { WalletProviderEnum, WalletProviderEnumFromJSON, WalletProviderEnumFromJSONTyped, WalletProviderEnumToJSON } from './models/WalletProviderEnum.js';
|
|
381
|
+
export { WalletSanctionsResponseFromJSON, WalletSanctionsResponseFromJSONTyped, WalletSanctionsResponseToJSON } from './models/WalletSanctionsResponse.js';
|
|
381
382
|
export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON } from './models/WalletTransaction.js';
|
|
382
383
|
export { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferFromJSONTyped, WalletTransactionAssetTransferToJSON } from './models/WalletTransactionAssetTransfer.js';
|
|
383
384
|
export { WalletTransactionAssetTransferMetadataFromJSON, WalletTransactionAssetTransferMetadataFromJSONTyped, WalletTransactionAssetTransferMetadataToJSON } from './models/WalletTransactionAssetTransferMetadata.js';
|
|
@@ -2,19 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
5
7
|
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
/**
|
|
8
|
-
* Dashboard API
|
|
9
|
-
* Dashboard API documentation
|
|
10
|
-
*
|
|
11
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
-
* https://openapi-generator.tech
|
|
16
|
-
* Do not edit the class manually.
|
|
17
|
-
*/
|
|
18
8
|
function SignMessageBtcTransactionFromJSON(json) {
|
|
19
9
|
return SignMessageBtcTransactionFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -24,7 +14,8 @@ function SignMessageBtcTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
14
|
}
|
|
25
15
|
return {
|
|
26
16
|
'psbt': json['psbt'],
|
|
27
|
-
'
|
|
17
|
+
'chainId': json['chainId'],
|
|
18
|
+
'accountAddress': !runtime.exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
28
19
|
};
|
|
29
20
|
}
|
|
30
21
|
function SignMessageBtcTransactionToJSON(value) {
|
|
@@ -36,6 +27,7 @@ function SignMessageBtcTransactionToJSON(value) {
|
|
|
36
27
|
}
|
|
37
28
|
return {
|
|
38
29
|
'psbt': value.psbt,
|
|
30
|
+
'chainId': value.chainId,
|
|
39
31
|
'accountAddress': value.accountAddress,
|
|
40
32
|
};
|
|
41
33
|
}
|
|
@@ -22,11 +22,17 @@ export interface SignMessageBtcTransaction {
|
|
|
22
22
|
*/
|
|
23
23
|
psbt: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Chain identifier (1=mainnet, 2=testnet, 3=signet)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SignMessageBtcTransaction
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
chainId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Bitcoin address of the signer (deprecated - use EAC accountAddress instead)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SignMessageBtcTransaction
|
|
34
|
+
*/
|
|
35
|
+
accountAddress?: string;
|
|
30
36
|
}
|
|
31
37
|
export declare function SignMessageBtcTransactionFromJSON(json: any): SignMessageBtcTransaction;
|
|
32
38
|
export declare function SignMessageBtcTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageBtcTransaction;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
1
3
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dashboard API
|
|
5
|
-
* Dashboard API documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
4
|
function SignMessageBtcTransactionFromJSON(json) {
|
|
15
5
|
return SignMessageBtcTransactionFromJSONTyped(json);
|
|
16
6
|
}
|
|
@@ -20,7 +10,8 @@ function SignMessageBtcTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
10
|
}
|
|
21
11
|
return {
|
|
22
12
|
'psbt': json['psbt'],
|
|
23
|
-
'
|
|
13
|
+
'chainId': json['chainId'],
|
|
14
|
+
'accountAddress': !exists(json, 'accountAddress') ? undefined : json['accountAddress'],
|
|
24
15
|
};
|
|
25
16
|
}
|
|
26
17
|
function SignMessageBtcTransactionToJSON(value) {
|
|
@@ -32,6 +23,7 @@ function SignMessageBtcTransactionToJSON(value) {
|
|
|
32
23
|
}
|
|
33
24
|
return {
|
|
34
25
|
'psbt': value.psbt,
|
|
26
|
+
'chainId': value.chainId,
|
|
35
27
|
'accountAddress': value.accountAddress,
|
|
36
28
|
};
|
|
37
29
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
8
9
|
function SmsVerificationVerifyRequestFromJSON(json) {
|
|
@@ -17,6 +18,7 @@ function SmsVerificationVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
18
|
'verificationToken': json['verificationToken'],
|
|
18
19
|
'captchaToken': !runtime.exists(json, 'captchaToken') ? undefined : json['captchaToken'],
|
|
19
20
|
'sessionPublicKey': !runtime.exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
21
|
+
'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
function SmsVerificationVerifyRequestToJSON(value) {
|
|
@@ -31,6 +33,7 @@ function SmsVerificationVerifyRequestToJSON(value) {
|
|
|
31
33
|
'verificationToken': value.verificationToken,
|
|
32
34
|
'captchaToken': value.captchaToken,
|
|
33
35
|
'sessionPublicKey': value.sessionPublicKey,
|
|
36
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
|
|
34
37
|
};
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { TokenScope } from './TokenScope';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface SmsVerificationVerifyRequest {
|
|
|
39
40
|
* @memberof SmsVerificationVerifyRequest
|
|
40
41
|
*/
|
|
41
42
|
sessionPublicKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional list of scopes to include in the elevated access token.
|
|
45
|
+
* @type {Array<TokenScope>}
|
|
46
|
+
* @memberof SmsVerificationVerifyRequest
|
|
47
|
+
*/
|
|
48
|
+
requestedScopes?: Array<TokenScope>;
|
|
42
49
|
}
|
|
43
50
|
export declare function SmsVerificationVerifyRequestFromJSON(json: any): SmsVerificationVerifyRequest;
|
|
44
51
|
export declare function SmsVerificationVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SmsVerificationVerifyRequest;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
4
5
|
function SmsVerificationVerifyRequestFromJSON(json) {
|
|
@@ -13,6 +14,7 @@ function SmsVerificationVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
14
|
'verificationToken': json['verificationToken'],
|
|
14
15
|
'captchaToken': !exists(json, 'captchaToken') ? undefined : json['captchaToken'],
|
|
15
16
|
'sessionPublicKey': !exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
17
|
+
'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
function SmsVerificationVerifyRequestToJSON(value) {
|
|
@@ -27,6 +29,7 @@ function SmsVerificationVerifyRequestToJSON(value) {
|
|
|
27
29
|
'verificationToken': value.verificationToken,
|
|
28
30
|
'captchaToken': value.captchaToken,
|
|
29
31
|
'sessionPublicKey': value.sessionPublicKey,
|
|
32
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WalletSanctionsResponseFromJSON(json) {
|
|
9
|
+
return WalletSanctionsResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WalletSanctionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'walletAddress': json['walletAddress'],
|
|
17
|
+
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
18
|
+
'isBlocked': json['isBlocked'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function WalletSanctionsResponseToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'walletAddress': value.walletAddress,
|
|
30
|
+
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
31
|
+
'isBlocked': value.isBlocked,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.WalletSanctionsResponseFromJSON = WalletSanctionsResponseFromJSON;
|
|
36
|
+
exports.WalletSanctionsResponseFromJSONTyped = WalletSanctionsResponseFromJSONTyped;
|
|
37
|
+
exports.WalletSanctionsResponseToJSON = WalletSanctionsResponseToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WalletSanctionsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WalletSanctionsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Valid blockchain wallet address, must be an alphanumeric string without any special characters
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof WalletSanctionsResponse
|
|
23
|
+
*/
|
|
24
|
+
walletAddress: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ChainEnum}
|
|
28
|
+
* @memberof WalletSanctionsResponse
|
|
29
|
+
*/
|
|
30
|
+
chain: ChainEnum;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the wallet address is blocked due to sanctions
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof WalletSanctionsResponse
|
|
35
|
+
*/
|
|
36
|
+
isBlocked: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare function WalletSanctionsResponseFromJSON(json: any): WalletSanctionsResponse;
|
|
39
|
+
export declare function WalletSanctionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletSanctionsResponse;
|
|
40
|
+
export declare function WalletSanctionsResponseToJSON(value?: WalletSanctionsResponse | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WalletSanctionsResponseFromJSON(json) {
|
|
5
|
+
return WalletSanctionsResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WalletSanctionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'walletAddress': json['walletAddress'],
|
|
13
|
+
'chain': ChainEnumFromJSON(json['chain']),
|
|
14
|
+
'isBlocked': json['isBlocked'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function WalletSanctionsResponseToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'walletAddress': value.walletAddress,
|
|
26
|
+
'chain': ChainEnumToJSON(value.chain),
|
|
27
|
+
'isBlocked': value.isBlocked,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { WalletSanctionsResponseFromJSON, WalletSanctionsResponseFromJSONTyped, WalletSanctionsResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -375,6 +375,7 @@ export * from './WalletKeyShareInfoWithEncryptedAccountCredential';
|
|
|
375
375
|
export * from './WalletKeyShareInfoWithEncryptedAccountCredentialAllOf';
|
|
376
376
|
export * from './WalletProperties';
|
|
377
377
|
export * from './WalletProviderEnum';
|
|
378
|
+
export * from './WalletSanctionsResponse';
|
|
378
379
|
export * from './WalletTransaction';
|
|
379
380
|
export * from './WalletTransactionAssetTransfer';
|
|
380
381
|
export * from './WalletTransactionAssetTransferMetadata';
|