@dynamic-labs/sdk-api 0.0.871 → 0.0.873
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/models/VerifyRequest.cjs +3 -0
- package/src/models/VerifyRequest.d.ts +7 -0
- package/src/models/VerifyRequest.js +3 -0
- package/src/models/WalletKeyShareInfo.cjs +2 -0
- package/src/models/WalletKeyShareInfo.d.ts +6 -0
- package/src/models/WalletKeyShareInfo.js +2 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.cjs +2 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.d.ts +6 -0
- package/src/models/WalletKeyShareInfoWithEncryptedAccountCredential.js +2 -0
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ var runtime = require('../runtime.cjs');
|
|
|
6
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
7
|
var OauthProviderRequest = require('./OauthProviderRequest.cjs');
|
|
8
8
|
var PasswordSourceTypeEnum = require('./PasswordSourceTypeEnum.cjs');
|
|
9
|
+
var TokenScope = require('./TokenScope.cjs');
|
|
9
10
|
var WalletAdditionalAddress = require('./WalletAdditionalAddress.cjs');
|
|
10
11
|
var WalletProviderEnum = require('./WalletProviderEnum.cjs');
|
|
11
12
|
|
|
@@ -33,6 +34,7 @@ function VerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
'password': !runtime.exists(json, 'password') ? undefined : json['password'],
|
|
34
35
|
'passwordSource': !runtime.exists(json, 'passwordSource') ? undefined : PasswordSourceTypeEnum.PasswordSourceTypeEnumFromJSON(json['passwordSource']),
|
|
35
36
|
'sessionPublicKey': !runtime.exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
37
|
+
'requestedScopes': !runtime.exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScope.TokenScopeFromJSON)),
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
function VerifyRequestToJSON(value) {
|
|
@@ -58,6 +60,7 @@ function VerifyRequestToJSON(value) {
|
|
|
58
60
|
'password': value.password,
|
|
59
61
|
'passwordSource': PasswordSourceTypeEnum.PasswordSourceTypeEnumToJSON(value.passwordSource),
|
|
60
62
|
'sessionPublicKey': value.sessionPublicKey,
|
|
63
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScope.TokenScopeToJSON)),
|
|
61
64
|
};
|
|
62
65
|
}
|
|
63
66
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ChainEnum } from './ChainEnum';
|
|
13
13
|
import { OauthProviderRequest } from './OauthProviderRequest';
|
|
14
14
|
import { PasswordSourceTypeEnum } from './PasswordSourceTypeEnum';
|
|
15
|
+
import { TokenScope } from './TokenScope';
|
|
15
16
|
import { WalletAdditionalAddress } from './WalletAdditionalAddress';
|
|
16
17
|
import { WalletProviderEnum } from './WalletProviderEnum';
|
|
17
18
|
/**
|
|
@@ -110,6 +111,12 @@ export interface VerifyRequest {
|
|
|
110
111
|
* @memberof VerifyRequest
|
|
111
112
|
*/
|
|
112
113
|
sessionPublicKey?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Optional list of scopes to include in the elevated access token.
|
|
116
|
+
* @type {Array<TokenScope>}
|
|
117
|
+
* @memberof VerifyRequest
|
|
118
|
+
*/
|
|
119
|
+
requestedScopes?: Array<TokenScope>;
|
|
113
120
|
}
|
|
114
121
|
export declare function VerifyRequestFromJSON(json: any): VerifyRequest;
|
|
115
122
|
export declare function VerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyRequest;
|
|
@@ -2,6 +2,7 @@ import { exists } from '../runtime.js';
|
|
|
2
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
3
|
import { OauthProviderRequestFromJSON, OauthProviderRequestToJSON } from './OauthProviderRequest.js';
|
|
4
4
|
import { PasswordSourceTypeEnumFromJSON, PasswordSourceTypeEnumToJSON } from './PasswordSourceTypeEnum.js';
|
|
5
|
+
import { TokenScopeFromJSON, TokenScopeToJSON } from './TokenScope.js';
|
|
5
6
|
import { WalletAdditionalAddressFromJSON, WalletAdditionalAddressToJSON } from './WalletAdditionalAddress.js';
|
|
6
7
|
import { WalletProviderEnumFromJSON, WalletProviderEnumToJSON } from './WalletProviderEnum.js';
|
|
7
8
|
|
|
@@ -29,6 +30,7 @@ function VerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
30
|
'password': !exists(json, 'password') ? undefined : json['password'],
|
|
30
31
|
'passwordSource': !exists(json, 'passwordSource') ? undefined : PasswordSourceTypeEnumFromJSON(json['passwordSource']),
|
|
31
32
|
'sessionPublicKey': !exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
33
|
+
'requestedScopes': !exists(json, 'requestedScopes') ? undefined : (json['requestedScopes'].map(TokenScopeFromJSON)),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
function VerifyRequestToJSON(value) {
|
|
@@ -54,6 +56,7 @@ function VerifyRequestToJSON(value) {
|
|
|
54
56
|
'password': value.password,
|
|
55
57
|
'passwordSource': PasswordSourceTypeEnumToJSON(value.passwordSource),
|
|
56
58
|
'sessionPublicKey': value.sessionPublicKey,
|
|
59
|
+
'requestedScopes': value.requestedScopes === undefined ? undefined : (value.requestedScopes.map(TokenScopeToJSON)),
|
|
57
60
|
};
|
|
58
61
|
}
|
|
59
62
|
|
|
@@ -17,6 +17,7 @@ function WalletKeyShareInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17
17
|
'backupLocation': json['backupLocation'],
|
|
18
18
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
19
19
|
'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
20
|
+
'keygenId': !runtime.exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
23
|
function WalletKeyShareInfoToJSON(value) {
|
|
@@ -31,6 +32,7 @@ function WalletKeyShareInfoToJSON(value) {
|
|
|
31
32
|
'backupLocation': value.backupLocation,
|
|
32
33
|
'passwordEncrypted': value.passwordEncrypted,
|
|
33
34
|
'externalKeyShareId': value.externalKeyShareId,
|
|
35
|
+
'keygenId': value.keygenId,
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -39,6 +39,12 @@ export interface WalletKeyShareInfo {
|
|
|
39
39
|
* @memberof WalletKeyShareInfo
|
|
40
40
|
*/
|
|
41
41
|
externalKeyShareId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WalletKeyShareInfo
|
|
46
|
+
*/
|
|
47
|
+
keygenId?: string;
|
|
42
48
|
}
|
|
43
49
|
export declare function WalletKeyShareInfoFromJSON(json: any): WalletKeyShareInfo;
|
|
44
50
|
export declare function WalletKeyShareInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletKeyShareInfo;
|
|
@@ -13,6 +13,7 @@ function WalletKeyShareInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
'backupLocation': json['backupLocation'],
|
|
14
14
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
15
15
|
'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
16
|
+
'keygenId': !exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
function WalletKeyShareInfoToJSON(value) {
|
|
@@ -27,6 +28,7 @@ function WalletKeyShareInfoToJSON(value) {
|
|
|
27
28
|
'backupLocation': value.backupLocation,
|
|
28
29
|
'passwordEncrypted': value.passwordEncrypted,
|
|
29
30
|
'externalKeyShareId': value.externalKeyShareId,
|
|
31
|
+
'keygenId': value.keygenId,
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -17,6 +17,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ign
|
|
|
17
17
|
'backupLocation': json['backupLocation'],
|
|
18
18
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
19
19
|
'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
20
|
+
'keygenId': !runtime.exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
20
21
|
'encryptedAccountCredential': !runtime.exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
21
22
|
};
|
|
22
23
|
}
|
|
@@ -32,6 +33,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
|
32
33
|
'backupLocation': value.backupLocation,
|
|
33
34
|
'passwordEncrypted': value.passwordEncrypted,
|
|
34
35
|
'externalKeyShareId': value.externalKeyShareId,
|
|
36
|
+
'keygenId': value.keygenId,
|
|
35
37
|
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
@@ -39,6 +39,12 @@ export interface WalletKeyShareInfoWithEncryptedAccountCredential {
|
|
|
39
39
|
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
40
40
|
*/
|
|
41
41
|
externalKeyShareId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WalletKeyShareInfoWithEncryptedAccountCredential
|
|
46
|
+
*/
|
|
47
|
+
keygenId?: string;
|
|
42
48
|
/**
|
|
43
49
|
* A string with a max length of 4096 characters
|
|
44
50
|
* @type {string}
|
|
@@ -13,6 +13,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialFromJSONTyped(json, ign
|
|
|
13
13
|
'backupLocation': json['backupLocation'],
|
|
14
14
|
'passwordEncrypted': json['passwordEncrypted'],
|
|
15
15
|
'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
16
|
+
'keygenId': !exists(json, 'keygenId') ? undefined : json['keygenId'],
|
|
16
17
|
'encryptedAccountCredential': !exists(json, 'encryptedAccountCredential') ? undefined : json['encryptedAccountCredential'],
|
|
17
18
|
};
|
|
18
19
|
}
|
|
@@ -28,6 +29,7 @@ function WalletKeyShareInfoWithEncryptedAccountCredentialToJSON(value) {
|
|
|
28
29
|
'backupLocation': value.backupLocation,
|
|
29
30
|
'passwordEncrypted': value.passwordEncrypted,
|
|
30
31
|
'externalKeyShareId': value.externalKeyShareId,
|
|
32
|
+
'keygenId': value.keygenId,
|
|
31
33
|
'encryptedAccountCredential': value.encryptedAccountCredential,
|
|
32
34
|
};
|
|
33
35
|
}
|