@dynamic-labs/sdk-api 0.0.872 → 0.0.874

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.872",
3
+ "version": "0.0.874",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -27,6 +27,7 @@ exports.EmbeddedWalletChainEnum = void 0;
27
27
  EmbeddedWalletChainEnum["Sui"] = "SUI";
28
28
  EmbeddedWalletChainEnum["Btc"] = "BTC";
29
29
  EmbeddedWalletChainEnum["Ton"] = "TON";
30
+ EmbeddedWalletChainEnum["Stellar"] = "STELLAR";
30
31
  })(exports.EmbeddedWalletChainEnum || (exports.EmbeddedWalletChainEnum = {}));
31
32
  function EmbeddedWalletChainEnumFromJSON(json) {
32
33
  return EmbeddedWalletChainEnumFromJSONTyped(json);
@@ -19,7 +19,8 @@ export declare enum EmbeddedWalletChainEnum {
19
19
  Sol = "SOL",
20
20
  Sui = "SUI",
21
21
  Btc = "BTC",
22
- Ton = "TON"
22
+ Ton = "TON",
23
+ Stellar = "STELLAR"
23
24
  }
24
25
  export declare function EmbeddedWalletChainEnumFromJSON(json: any): EmbeddedWalletChainEnum;
25
26
  export declare function EmbeddedWalletChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddedWalletChainEnum;
@@ -23,6 +23,7 @@ var EmbeddedWalletChainEnum;
23
23
  EmbeddedWalletChainEnum["Sui"] = "SUI";
24
24
  EmbeddedWalletChainEnum["Btc"] = "BTC";
25
25
  EmbeddedWalletChainEnum["Ton"] = "TON";
26
+ EmbeddedWalletChainEnum["Stellar"] = "STELLAR";
26
27
  })(EmbeddedWalletChainEnum || (EmbeddedWalletChainEnum = {}));
27
28
  function EmbeddedWalletChainEnumFromJSON(json) {
28
29
  return EmbeddedWalletChainEnumFromJSONTyped(json);
@@ -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
 
@@ -27,6 +27,7 @@ exports.WaasChainEnum = void 0;
27
27
  WaasChainEnum["Sui"] = "SUI";
28
28
  WaasChainEnum["Btc"] = "BTC";
29
29
  WaasChainEnum["Ton"] = "TON";
30
+ WaasChainEnum["Stellar"] = "STELLAR";
30
31
  })(exports.WaasChainEnum || (exports.WaasChainEnum = {}));
31
32
  function WaasChainEnumFromJSON(json) {
32
33
  return WaasChainEnumFromJSONTyped(json);
@@ -19,7 +19,8 @@ export declare enum WaasChainEnum {
19
19
  Svm = "SVM",
20
20
  Sui = "SUI",
21
21
  Btc = "BTC",
22
- Ton = "TON"
22
+ Ton = "TON",
23
+ Stellar = "STELLAR"
23
24
  }
24
25
  export declare function WaasChainEnumFromJSON(json: any): WaasChainEnum;
25
26
  export declare function WaasChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasChainEnum;
@@ -23,6 +23,7 @@ var WaasChainEnum;
23
23
  WaasChainEnum["Sui"] = "SUI";
24
24
  WaasChainEnum["Btc"] = "BTC";
25
25
  WaasChainEnum["Ton"] = "TON";
26
+ WaasChainEnum["Stellar"] = "STELLAR";
26
27
  })(WaasChainEnum || (WaasChainEnum = {}));
27
28
  function WaasChainEnumFromJSON(json) {
28
29
  return WaasChainEnumFromJSONTyped(json);
@@ -26,6 +26,7 @@ exports.WalletAddressType = void 0;
26
26
  WalletAddressType["Payment"] = "payment";
27
27
  WalletAddressType["Cosmos"] = "cosmos";
28
28
  WalletAddressType["Evm"] = "evm";
29
+ WalletAddressType["Stellar"] = "stellar";
29
30
  WalletAddressType["Ton"] = "ton";
30
31
  })(exports.WalletAddressType || (exports.WalletAddressType = {}));
31
32
  function WalletAddressTypeFromJSON(json) {
@@ -19,6 +19,7 @@ export declare enum WalletAddressType {
19
19
  Payment = "payment",
20
20
  Cosmos = "cosmos",
21
21
  Evm = "evm",
22
+ Stellar = "stellar",
22
23
  Ton = "ton"
23
24
  }
24
25
  export declare function WalletAddressTypeFromJSON(json: any): WalletAddressType;
@@ -22,6 +22,7 @@ var WalletAddressType;
22
22
  WalletAddressType["Payment"] = "payment";
23
23
  WalletAddressType["Cosmos"] = "cosmos";
24
24
  WalletAddressType["Evm"] = "evm";
25
+ WalletAddressType["Stellar"] = "stellar";
25
26
  WalletAddressType["Ton"] = "ton";
26
27
  })(WalletAddressType || (WalletAddressType = {}));
27
28
  function WalletAddressTypeFromJSON(json) {