@dynamic-labs/sdk-api-core 0.0.863 → 0.0.868
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 +207 -0
- package/src/apis/SDKApi.d.ts +75 -1
- package/src/apis/SDKApi.js +207 -0
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/index.cjs +12 -0
- package/src/index.js +2 -0
- package/src/models/EmailVerificationVerifyRequest.cjs +3 -0
- package/src/models/EmailVerificationVerifyRequest.d.ts +7 -0
- package/src/models/EmailVerificationVerifyRequest.js +3 -0
- package/src/models/EmbeddedWalletSecretWithUpdatedJwt.cjs +2 -0
- package/src/models/EmbeddedWalletSecretWithUpdatedJwt.d.ts +6 -0
- package/src/models/EmbeddedWalletSecretWithUpdatedJwt.js +2 -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/TokenScope.cjs +39 -0
- package/src/models/TokenScope.d.ts +22 -0
- package/src/models/TokenScope.js +33 -0
- package/src/models/UpdateSelfResponse.cjs +2 -0
- package/src/models/UpdateSelfResponse.d.ts +6 -0
- package/src/models/UpdateSelfResponse.js +2 -0
- package/src/models/VerifyResponse.cjs +2 -0
- package/src/models/VerifyResponse.d.ts +6 -0
- package/src/models/VerifyResponse.js +2 -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 +2 -0
package/src/index.js
CHANGED
|
@@ -328,6 +328,7 @@ export { TelegramUserFromJSON, TelegramUserFromJSONTyped, TelegramUserToJSON } f
|
|
|
328
328
|
export { ThresholdSignatureScheme, ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeFromJSONTyped, ThresholdSignatureSchemeToJSON } from './models/ThresholdSignatureScheme.js';
|
|
329
329
|
export { TimeUnitEnum, TimeUnitEnumFromJSON, TimeUnitEnumFromJSONTyped, TimeUnitEnumToJSON } from './models/TimeUnitEnum.js';
|
|
330
330
|
export { TokenBalanceFromJSON, TokenBalanceFromJSONTyped, TokenBalanceToJSON } from './models/TokenBalance.js';
|
|
331
|
+
export { TokenScope, TokenScopeFromJSON, TokenScopeFromJSONTyped, TokenScopeToJSON } from './models/TokenScope.js';
|
|
331
332
|
export { TooManyRequestsFromJSON, TooManyRequestsFromJSONTyped, TooManyRequestsToJSON } from './models/TooManyRequests.js';
|
|
332
333
|
export { TransferDestinationFromJSON, TransferDestinationFromJSONTyped, TransferDestinationToJSON } from './models/TransferDestination.js';
|
|
333
334
|
export { TransferDestinationResponseFromJSON, TransferDestinationResponseFromJSONTyped, TransferDestinationResponseToJSON } from './models/TransferDestinationResponse.js';
|
|
@@ -377,6 +378,7 @@ export { WalletKeyShareInfoWithEncryptedAccountCredentialFromJSON, WalletKeyShar
|
|
|
377
378
|
export { WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSON, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfFromJSONTyped, WalletKeyShareInfoWithEncryptedAccountCredentialAllOfToJSON } from './models/WalletKeyShareInfoWithEncryptedAccountCredentialAllOf.js';
|
|
378
379
|
export { WalletPropertiesFromJSON, WalletPropertiesFromJSONTyped, WalletPropertiesToJSON } from './models/WalletProperties.js';
|
|
379
380
|
export { WalletProviderEnum, WalletProviderEnumFromJSON, WalletProviderEnumFromJSONTyped, WalletProviderEnumToJSON } from './models/WalletProviderEnum.js';
|
|
381
|
+
export { WalletSanctionsResponseFromJSON, WalletSanctionsResponseFromJSONTyped, WalletSanctionsResponseToJSON } from './models/WalletSanctionsResponse.js';
|
|
380
382
|
export { WalletTransactionFromJSON, WalletTransactionFromJSONTyped, WalletTransactionToJSON } from './models/WalletTransaction.js';
|
|
381
383
|
export { WalletTransactionAssetTransferFromJSON, WalletTransactionAssetTransferFromJSONTyped, WalletTransactionAssetTransferToJSON } from './models/WalletTransactionAssetTransfer.js';
|
|
382
384
|
export { WalletTransactionAssetTransferMetadataFromJSON, WalletTransactionAssetTransferMetadataFromJSONTyped, WalletTransactionAssetTransferMetadataToJSON } from './models/WalletTransactionAssetTransferMetadata.js';
|
|
@@ -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 EmailVerificationVerifyRequestFromJSON(json) {
|
|
@@ -17,6 +18,7 @@ function EmailVerificationVerifyRequestFromJSONTyped(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 EmailVerificationVerifyRequestToJSON(value) {
|
|
@@ -31,6 +33,7 @@ function EmailVerificationVerifyRequestToJSON(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 EmailVerificationVerifyRequest {
|
|
|
39
40
|
* @memberof EmailVerificationVerifyRequest
|
|
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 EmailVerificationVerifyRequest
|
|
47
|
+
*/
|
|
48
|
+
requestedScopes?: Array<TokenScope>;
|
|
42
49
|
}
|
|
43
50
|
export declare function EmailVerificationVerifyRequestFromJSON(json: any): EmailVerificationVerifyRequest;
|
|
44
51
|
export declare function EmailVerificationVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailVerificationVerifyRequest;
|
|
@@ -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 EmailVerificationVerifyRequestFromJSON(json) {
|
|
@@ -13,6 +14,7 @@ function EmailVerificationVerifyRequestFromJSONTyped(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 EmailVerificationVerifyRequestToJSON(value) {
|
|
@@ -27,6 +29,7 @@ function EmailVerificationVerifyRequestToJSON(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
|
|
|
@@ -20,6 +20,7 @@ function EmbeddedWalletSecretWithUpdatedJwtFromJSONTyped(json, ignoreDiscriminat
|
|
|
20
20
|
'user': SdkUser.SdkUserFromJSON(json['user']),
|
|
21
21
|
'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
22
22
|
'expiresAt': json['expiresAt'],
|
|
23
|
+
'elevatedAccessToken': !runtime.exists(json, 'elevatedAccessToken') ? undefined : json['elevatedAccessToken'],
|
|
23
24
|
'walletId': json['walletId'],
|
|
24
25
|
'secret': !runtime.exists(json, 'secret') ? undefined : json['secret'],
|
|
25
26
|
'source': !runtime.exists(json, 'source') ? undefined : PasswordSourceTypeEnum.PasswordSourceTypeEnumFromJSON(json['source']),
|
|
@@ -38,6 +39,7 @@ function EmbeddedWalletSecretWithUpdatedJwtToJSON(value) {
|
|
|
38
39
|
'user': SdkUser.SdkUserToJSON(value.user),
|
|
39
40
|
'minifiedJwt': value.minifiedJwt,
|
|
40
41
|
'expiresAt': value.expiresAt,
|
|
42
|
+
'elevatedAccessToken': value.elevatedAccessToken,
|
|
41
43
|
'walletId': value.walletId,
|
|
42
44
|
'secret': value.secret,
|
|
43
45
|
'source': PasswordSourceTypeEnum.PasswordSourceTypeEnumToJSON(value.source),
|
|
@@ -47,6 +47,12 @@ export interface EmbeddedWalletSecretWithUpdatedJwt {
|
|
|
47
47
|
* @memberof EmbeddedWalletSecretWithUpdatedJwt
|
|
48
48
|
*/
|
|
49
49
|
expiresAt: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof EmbeddedWalletSecretWithUpdatedJwt
|
|
54
|
+
*/
|
|
55
|
+
elevatedAccessToken?: string | null;
|
|
50
56
|
/**
|
|
51
57
|
*
|
|
52
58
|
* @type {string}
|
|
@@ -16,6 +16,7 @@ function EmbeddedWalletSecretWithUpdatedJwtFromJSONTyped(json, ignoreDiscriminat
|
|
|
16
16
|
'user': SdkUserFromJSON(json['user']),
|
|
17
17
|
'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
18
18
|
'expiresAt': json['expiresAt'],
|
|
19
|
+
'elevatedAccessToken': !exists(json, 'elevatedAccessToken') ? undefined : json['elevatedAccessToken'],
|
|
19
20
|
'walletId': json['walletId'],
|
|
20
21
|
'secret': !exists(json, 'secret') ? undefined : json['secret'],
|
|
21
22
|
'source': !exists(json, 'source') ? undefined : PasswordSourceTypeEnumFromJSON(json['source']),
|
|
@@ -34,6 +35,7 @@ function EmbeddedWalletSecretWithUpdatedJwtToJSON(value) {
|
|
|
34
35
|
'user': SdkUserToJSON(value.user),
|
|
35
36
|
'minifiedJwt': value.minifiedJwt,
|
|
36
37
|
'expiresAt': value.expiresAt,
|
|
38
|
+
'elevatedAccessToken': value.elevatedAccessToken,
|
|
37
39
|
'walletId': value.walletId,
|
|
38
40
|
'secret': value.secret,
|
|
39
41
|
'source': PasswordSourceTypeEnumToJSON(value.source),
|
|
@@ -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,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* 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
|
+
/**
|
|
19
|
+
* Valid scopes for an elevated access token
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.TokenScope = void 0;
|
|
24
|
+
(function (TokenScope) {
|
|
25
|
+
TokenScope["Walletexport"] = "wallet:export";
|
|
26
|
+
})(exports.TokenScope || (exports.TokenScope = {}));
|
|
27
|
+
function TokenScopeFromJSON(json) {
|
|
28
|
+
return TokenScopeFromJSONTyped(json);
|
|
29
|
+
}
|
|
30
|
+
function TokenScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
function TokenScopeToJSON(value) {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.TokenScopeFromJSON = TokenScopeFromJSON;
|
|
38
|
+
exports.TokenScopeFromJSONTyped = TokenScopeFromJSONTyped;
|
|
39
|
+
exports.TokenScopeToJSON = TokenScopeToJSON;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* Valid scopes for an elevated access token
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum TokenScope {
|
|
18
|
+
Walletexport = "wallet:export"
|
|
19
|
+
}
|
|
20
|
+
export declare function TokenScopeFromJSON(json: any): TokenScope;
|
|
21
|
+
export declare function TokenScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenScope;
|
|
22
|
+
export declare function TokenScopeToJSON(value?: TokenScope | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Valid scopes for an elevated access token
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var TokenScope;
|
|
20
|
+
(function (TokenScope) {
|
|
21
|
+
TokenScope["Walletexport"] = "wallet:export";
|
|
22
|
+
})(TokenScope || (TokenScope = {}));
|
|
23
|
+
function TokenScopeFromJSON(json) {
|
|
24
|
+
return TokenScopeFromJSONTyped(json);
|
|
25
|
+
}
|
|
26
|
+
function TokenScopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
function TokenScopeToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { TokenScope, TokenScopeFromJSON, TokenScopeFromJSONTyped, TokenScopeToJSON };
|
|
@@ -22,6 +22,7 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22
22
|
'user': SdkUser.SdkUserFromJSON(json['user']),
|
|
23
23
|
'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
24
24
|
'expiresAt': json['expiresAt'],
|
|
25
|
+
'elevatedAccessToken': !runtime.exists(json, 'elevatedAccessToken') ? undefined : json['elevatedAccessToken'],
|
|
25
26
|
'nextView': NextViewEnum.NextViewEnumFromJSON(json['nextView']),
|
|
26
27
|
'emailVerification': !runtime.exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponse.EmailVerificationCreateResponseFromJSON(json['emailVerification']),
|
|
27
28
|
'smsVerification': !runtime.exists(json, 'smsVerification') ? undefined : SmsVerificationCreateResponse.SmsVerificationCreateResponseFromJSON(json['smsVerification']),
|
|
@@ -40,6 +41,7 @@ function UpdateSelfResponseToJSON(value) {
|
|
|
40
41
|
'user': SdkUser.SdkUserToJSON(value.user),
|
|
41
42
|
'minifiedJwt': value.minifiedJwt,
|
|
42
43
|
'expiresAt': value.expiresAt,
|
|
44
|
+
'elevatedAccessToken': value.elevatedAccessToken,
|
|
43
45
|
'nextView': NextViewEnum.NextViewEnumToJSON(value.nextView),
|
|
44
46
|
'emailVerification': EmailVerificationCreateResponse.EmailVerificationCreateResponseToJSON(value.emailVerification),
|
|
45
47
|
'smsVerification': SmsVerificationCreateResponse.SmsVerificationCreateResponseToJSON(value.smsVerification),
|
|
@@ -18,6 +18,7 @@ function UpdateSelfResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'user': SdkUserFromJSON(json['user']),
|
|
19
19
|
'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
20
20
|
'expiresAt': json['expiresAt'],
|
|
21
|
+
'elevatedAccessToken': !exists(json, 'elevatedAccessToken') ? undefined : json['elevatedAccessToken'],
|
|
21
22
|
'nextView': NextViewEnumFromJSON(json['nextView']),
|
|
22
23
|
'emailVerification': !exists(json, 'emailVerification') ? undefined : EmailVerificationCreateResponseFromJSON(json['emailVerification']),
|
|
23
24
|
'smsVerification': !exists(json, 'smsVerification') ? undefined : SmsVerificationCreateResponseFromJSON(json['smsVerification']),
|
|
@@ -36,6 +37,7 @@ function UpdateSelfResponseToJSON(value) {
|
|
|
36
37
|
'user': SdkUserToJSON(value.user),
|
|
37
38
|
'minifiedJwt': value.minifiedJwt,
|
|
38
39
|
'expiresAt': value.expiresAt,
|
|
40
|
+
'elevatedAccessToken': value.elevatedAccessToken,
|
|
39
41
|
'nextView': NextViewEnumToJSON(value.nextView),
|
|
40
42
|
'emailVerification': EmailVerificationCreateResponseToJSON(value.emailVerification),
|
|
41
43
|
'smsVerification': SmsVerificationCreateResponseToJSON(value.smsVerification),
|
|
@@ -19,6 +19,7 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'user': SdkUser.SdkUserFromJSON(json['user']),
|
|
20
20
|
'minifiedJwt': !runtime.exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
21
21
|
'expiresAt': json['expiresAt'],
|
|
22
|
+
'elevatedAccessToken': !runtime.exists(json, 'elevatedAccessToken') ? undefined : json['elevatedAccessToken'],
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
function VerifyResponseToJSON(value) {
|
|
@@ -34,6 +35,7 @@ function VerifyResponseToJSON(value) {
|
|
|
34
35
|
'user': SdkUser.SdkUserToJSON(value.user),
|
|
35
36
|
'minifiedJwt': value.minifiedJwt,
|
|
36
37
|
'expiresAt': value.expiresAt,
|
|
38
|
+
'elevatedAccessToken': value.elevatedAccessToken,
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -46,6 +46,12 @@ export interface VerifyResponse {
|
|
|
46
46
|
* @memberof VerifyResponse
|
|
47
47
|
*/
|
|
48
48
|
expiresAt: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof VerifyResponse
|
|
53
|
+
*/
|
|
54
|
+
elevatedAccessToken?: string | null;
|
|
49
55
|
}
|
|
50
56
|
export declare function VerifyResponseFromJSON(json: any): VerifyResponse;
|
|
51
57
|
export declare function VerifyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyResponse;
|
|
@@ -15,6 +15,7 @@ function VerifyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
'user': SdkUserFromJSON(json['user']),
|
|
16
16
|
'minifiedJwt': !exists(json, 'minifiedJwt') ? undefined : json['minifiedJwt'],
|
|
17
17
|
'expiresAt': json['expiresAt'],
|
|
18
|
+
'elevatedAccessToken': !exists(json, 'elevatedAccessToken') ? undefined : json['elevatedAccessToken'],
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
function VerifyResponseToJSON(value) {
|
|
@@ -30,6 +31,7 @@ function VerifyResponseToJSON(value) {
|
|
|
30
31
|
'user': SdkUserToJSON(value.user),
|
|
31
32
|
'minifiedJwt': value.minifiedJwt,
|
|
32
33
|
'expiresAt': value.expiresAt,
|
|
34
|
+
'elevatedAccessToken': value.elevatedAccessToken,
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -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
|
@@ -325,6 +325,7 @@ export * from './TelegramUser';
|
|
|
325
325
|
export * from './ThresholdSignatureScheme';
|
|
326
326
|
export * from './TimeUnitEnum';
|
|
327
327
|
export * from './TokenBalance';
|
|
328
|
+
export * from './TokenScope';
|
|
328
329
|
export * from './TooManyRequests';
|
|
329
330
|
export * from './TransferDestination';
|
|
330
331
|
export * from './TransferDestinationResponse';
|
|
@@ -374,6 +375,7 @@ export * from './WalletKeyShareInfoWithEncryptedAccountCredential';
|
|
|
374
375
|
export * from './WalletKeyShareInfoWithEncryptedAccountCredentialAllOf';
|
|
375
376
|
export * from './WalletProperties';
|
|
376
377
|
export * from './WalletProviderEnum';
|
|
378
|
+
export * from './WalletSanctionsResponse';
|
|
377
379
|
export * from './WalletTransaction';
|
|
378
380
|
export * from './WalletTransactionAssetTransfer';
|
|
379
381
|
export * from './WalletTransactionAssetTransferMetadata';
|