@dynamic-labs/sdk-api-core 0.0.862 → 0.0.863
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/SecurityNotifications.cjs +4 -0
- package/src/models/SecurityNotifications.d.ts +12 -0
- package/src/models/SecurityNotifications.js +4 -0
- package/src/models/SignMessageBtcTransaction.cjs +45 -0
- package/src/models/SignMessageBtcTransaction.d.ts +33 -0
- package/src/models/SignMessageBtcTransaction.js +39 -0
- package/src/models/SignMessageContext.cjs +3 -0
- package/src/models/SignMessageContext.d.ts +7 -0
- package/src/models/SignMessageContext.js +3 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -290,6 +290,7 @@ var SdkViewsResponse = require('./models/SdkViewsResponse.cjs');
|
|
|
290
290
|
var SecurityNotifications = require('./models/SecurityNotifications.cjs');
|
|
291
291
|
var SignInProviderEnum = require('./models/SignInProviderEnum.cjs');
|
|
292
292
|
var SignMessageAuthorizationSignature = require('./models/SignMessageAuthorizationSignature.cjs');
|
|
293
|
+
var SignMessageBtcTransaction = require('./models/SignMessageBtcTransaction.cjs');
|
|
293
294
|
var SignMessageContext = require('./models/SignMessageContext.cjs');
|
|
294
295
|
var SignMessageEip7702Auth = require('./models/SignMessageEip7702Auth.cjs');
|
|
295
296
|
var SignMessageEvmMessage = require('./models/SignMessageEvmMessage.cjs');
|
|
@@ -1479,6 +1480,9 @@ exports.SignInProviderEnumToJSON = SignInProviderEnum.SignInProviderEnumToJSON;
|
|
|
1479
1480
|
exports.SignMessageAuthorizationSignatureFromJSON = SignMessageAuthorizationSignature.SignMessageAuthorizationSignatureFromJSON;
|
|
1480
1481
|
exports.SignMessageAuthorizationSignatureFromJSONTyped = SignMessageAuthorizationSignature.SignMessageAuthorizationSignatureFromJSONTyped;
|
|
1481
1482
|
exports.SignMessageAuthorizationSignatureToJSON = SignMessageAuthorizationSignature.SignMessageAuthorizationSignatureToJSON;
|
|
1483
|
+
exports.SignMessageBtcTransactionFromJSON = SignMessageBtcTransaction.SignMessageBtcTransactionFromJSON;
|
|
1484
|
+
exports.SignMessageBtcTransactionFromJSONTyped = SignMessageBtcTransaction.SignMessageBtcTransactionFromJSONTyped;
|
|
1485
|
+
exports.SignMessageBtcTransactionToJSON = SignMessageBtcTransaction.SignMessageBtcTransactionToJSON;
|
|
1482
1486
|
exports.SignMessageContextFromJSON = SignMessageContext.SignMessageContextFromJSON;
|
|
1483
1487
|
exports.SignMessageContextFromJSONTyped = SignMessageContext.SignMessageContextFromJSONTyped;
|
|
1484
1488
|
exports.SignMessageContextToJSON = SignMessageContext.SignMessageContextToJSON;
|
package/src/index.js
CHANGED
|
@@ -286,6 +286,7 @@ export { SdkViewsResponseFromJSON, SdkViewsResponseFromJSONTyped, SdkViewsRespon
|
|
|
286
286
|
export { SecurityNotificationsFromJSON, SecurityNotificationsFromJSONTyped, SecurityNotificationsToJSON } from './models/SecurityNotifications.js';
|
|
287
287
|
export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJSONTyped, SignInProviderEnumToJSON } from './models/SignInProviderEnum.js';
|
|
288
288
|
export { SignMessageAuthorizationSignatureFromJSON, SignMessageAuthorizationSignatureFromJSONTyped, SignMessageAuthorizationSignatureToJSON } from './models/SignMessageAuthorizationSignature.js';
|
|
289
|
+
export { SignMessageBtcTransactionFromJSON, SignMessageBtcTransactionFromJSONTyped, SignMessageBtcTransactionToJSON } from './models/SignMessageBtcTransaction.js';
|
|
289
290
|
export { SignMessageContextFromJSON, SignMessageContextFromJSONTyped, SignMessageContextToJSON } from './models/SignMessageContext.js';
|
|
290
291
|
export { SignMessageEip7702AuthFromJSON, SignMessageEip7702AuthFromJSONTyped, SignMessageEip7702AuthToJSON } from './models/SignMessageEip7702Auth.js';
|
|
291
292
|
export { SignMessageEvmMessageFromJSON, SignMessageEvmMessageFromJSONTyped, SignMessageEvmMessageToJSON } from './models/SignMessageEvmMessage.js';
|
|
@@ -13,6 +13,8 @@ function SecurityNotificationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
+
'verifiedCredentialLinked': !runtime.exists(json, 'verifiedCredentialLinked') ? undefined : json['verifiedCredentialLinked'],
|
|
17
|
+
'verifiedCredentialUnlinked': !runtime.exists(json, 'verifiedCredentialUnlinked') ? undefined : json['verifiedCredentialUnlinked'],
|
|
16
18
|
'waasPrivateKeyExport': !runtime.exists(json, 'waasPrivateKeyExport') ? undefined : json['waasPrivateKeyExport'],
|
|
17
19
|
'waasSignedTransaction': !runtime.exists(json, 'waasSignedTransaction') ? undefined : json['waasSignedTransaction'],
|
|
18
20
|
};
|
|
@@ -25,6 +27,8 @@ function SecurityNotificationsToJSON(value) {
|
|
|
25
27
|
return null;
|
|
26
28
|
}
|
|
27
29
|
return {
|
|
30
|
+
'verifiedCredentialLinked': value.verifiedCredentialLinked,
|
|
31
|
+
'verifiedCredentialUnlinked': value.verifiedCredentialUnlinked,
|
|
28
32
|
'waasPrivateKeyExport': value.waasPrivateKeyExport,
|
|
29
33
|
'waasSignedTransaction': value.waasSignedTransaction,
|
|
30
34
|
};
|
|
@@ -15,6 +15,18 @@
|
|
|
15
15
|
* @interface SecurityNotifications
|
|
16
16
|
*/
|
|
17
17
|
export interface SecurityNotifications {
|
|
18
|
+
/**
|
|
19
|
+
* Send email notification when a verified credential is linked to a user account. Defaults to true.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SecurityNotifications
|
|
22
|
+
*/
|
|
23
|
+
verifiedCredentialLinked?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Send email notification when a verified credential is unlinked from a user account. Defaults to true.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof SecurityNotifications
|
|
28
|
+
*/
|
|
29
|
+
verifiedCredentialUnlinked?: boolean;
|
|
18
30
|
/**
|
|
19
31
|
* Send email notification when a user exports their embedded wallet private key. Defaults to true.
|
|
20
32
|
* @type {boolean}
|
|
@@ -9,6 +9,8 @@ function SecurityNotificationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
+
'verifiedCredentialLinked': !exists(json, 'verifiedCredentialLinked') ? undefined : json['verifiedCredentialLinked'],
|
|
13
|
+
'verifiedCredentialUnlinked': !exists(json, 'verifiedCredentialUnlinked') ? undefined : json['verifiedCredentialUnlinked'],
|
|
12
14
|
'waasPrivateKeyExport': !exists(json, 'waasPrivateKeyExport') ? undefined : json['waasPrivateKeyExport'],
|
|
13
15
|
'waasSignedTransaction': !exists(json, 'waasSignedTransaction') ? undefined : json['waasSignedTransaction'],
|
|
14
16
|
};
|
|
@@ -21,6 +23,8 @@ function SecurityNotificationsToJSON(value) {
|
|
|
21
23
|
return null;
|
|
22
24
|
}
|
|
23
25
|
return {
|
|
26
|
+
'verifiedCredentialLinked': value.verifiedCredentialLinked,
|
|
27
|
+
'verifiedCredentialUnlinked': value.verifiedCredentialUnlinked,
|
|
24
28
|
'waasPrivateKeyExport': value.waasPrivateKeyExport,
|
|
25
29
|
'waasSignedTransaction': value.waasSignedTransaction,
|
|
26
30
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
function SignMessageBtcTransactionFromJSON(json) {
|
|
19
|
+
return SignMessageBtcTransactionFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function SignMessageBtcTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'psbt': json['psbt'],
|
|
27
|
+
'accountAddress': json['accountAddress'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function SignMessageBtcTransactionToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'psbt': value.psbt,
|
|
39
|
+
'accountAddress': value.accountAddress,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.SignMessageBtcTransactionFromJSON = SignMessageBtcTransactionFromJSON;
|
|
44
|
+
exports.SignMessageBtcTransactionFromJSONTyped = SignMessageBtcTransactionFromJSONTyped;
|
|
45
|
+
exports.SignMessageBtcTransactionToJSON = SignMessageBtcTransactionToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* Bitcoin PSBT transaction for signing
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SignMessageBtcTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface SignMessageBtcTransaction {
|
|
18
|
+
/**
|
|
19
|
+
* PSBT (Partially Signed Bitcoin Transaction) in base64 or hex format
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SignMessageBtcTransaction
|
|
22
|
+
*/
|
|
23
|
+
psbt: string;
|
|
24
|
+
/**
|
|
25
|
+
* Bitcoin address of the signer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SignMessageBtcTransaction
|
|
28
|
+
*/
|
|
29
|
+
accountAddress: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function SignMessageBtcTransactionFromJSON(json: any): SignMessageBtcTransaction;
|
|
32
|
+
export declare function SignMessageBtcTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageBtcTransaction;
|
|
33
|
+
export declare function SignMessageBtcTransactionToJSON(value?: SignMessageBtcTransaction | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
function SignMessageBtcTransactionFromJSON(json) {
|
|
15
|
+
return SignMessageBtcTransactionFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function SignMessageBtcTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'psbt': json['psbt'],
|
|
23
|
+
'accountAddress': json['accountAddress'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function SignMessageBtcTransactionToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'psbt': value.psbt,
|
|
35
|
+
'accountAddress': value.accountAddress,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { SignMessageBtcTransactionFromJSON, SignMessageBtcTransactionFromJSONTyped, SignMessageBtcTransactionToJSON };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
|
+
var SignMessageBtcTransaction = require('./SignMessageBtcTransaction.cjs');
|
|
6
7
|
var SignMessageEip7702Auth = require('./SignMessageEip7702Auth.cjs');
|
|
7
8
|
var SignMessageEvmMessage = require('./SignMessageEvmMessage.cjs');
|
|
8
9
|
var SignMessageEvmTransaction = require('./SignMessageEvmTransaction.cjs');
|
|
@@ -24,6 +25,7 @@ function SignMessageContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
25
|
'evmUserOperation': !runtime.exists(json, 'evmUserOperation') ? undefined : SignMessageEvmUserOperation.SignMessageEvmUserOperationFromJSON(json['evmUserOperation']),
|
|
25
26
|
'svmTransaction': !runtime.exists(json, 'svmTransaction') ? undefined : SignMessageSvmTransaction.SignMessageSvmTransactionFromJSON(json['svmTransaction']),
|
|
26
27
|
'suiTransaction': !runtime.exists(json, 'suiTransaction') ? undefined : SignMessageSuiTransaction.SignMessageSuiTransactionFromJSON(json['suiTransaction']),
|
|
28
|
+
'btcTransaction': !runtime.exists(json, 'btcTransaction') ? undefined : SignMessageBtcTransaction.SignMessageBtcTransactionFromJSON(json['btcTransaction']),
|
|
27
29
|
'eip7702Auth': !runtime.exists(json, 'eip7702Auth') ? undefined : SignMessageEip7702Auth.SignMessageEip7702AuthFromJSON(json['eip7702Auth']),
|
|
28
30
|
'evmMessage': !runtime.exists(json, 'evmMessage') ? undefined : SignMessageEvmMessage.SignMessageEvmMessageFromJSON(json['evmMessage']),
|
|
29
31
|
'svmMessage': !runtime.exists(json, 'svmMessage') ? undefined : json['svmMessage'],
|
|
@@ -44,6 +46,7 @@ function SignMessageContextToJSON(value) {
|
|
|
44
46
|
'evmUserOperation': SignMessageEvmUserOperation.SignMessageEvmUserOperationToJSON(value.evmUserOperation),
|
|
45
47
|
'svmTransaction': SignMessageSvmTransaction.SignMessageSvmTransactionToJSON(value.svmTransaction),
|
|
46
48
|
'suiTransaction': SignMessageSuiTransaction.SignMessageSuiTransactionToJSON(value.suiTransaction),
|
|
49
|
+
'btcTransaction': SignMessageBtcTransaction.SignMessageBtcTransactionToJSON(value.btcTransaction),
|
|
47
50
|
'eip7702Auth': SignMessageEip7702Auth.SignMessageEip7702AuthToJSON(value.eip7702Auth),
|
|
48
51
|
'evmMessage': SignMessageEvmMessage.SignMessageEvmMessageToJSON(value.evmMessage),
|
|
49
52
|
'svmMessage': value.svmMessage,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { SignMessageBtcTransaction } from './SignMessageBtcTransaction';
|
|
12
13
|
import { SignMessageEip7702Auth } from './SignMessageEip7702Auth';
|
|
13
14
|
import { SignMessageEvmMessage } from './SignMessageEvmMessage';
|
|
14
15
|
import { SignMessageEvmTransaction } from './SignMessageEvmTransaction';
|
|
@@ -46,6 +47,12 @@ export interface SignMessageContext {
|
|
|
46
47
|
* @memberof SignMessageContext
|
|
47
48
|
*/
|
|
48
49
|
suiTransaction?: SignMessageSuiTransaction;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {SignMessageBtcTransaction}
|
|
53
|
+
* @memberof SignMessageContext
|
|
54
|
+
*/
|
|
55
|
+
btcTransaction?: SignMessageBtcTransaction;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {SignMessageEip7702Auth}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
|
+
import { SignMessageBtcTransactionFromJSON, SignMessageBtcTransactionToJSON } from './SignMessageBtcTransaction.js';
|
|
2
3
|
import { SignMessageEip7702AuthFromJSON, SignMessageEip7702AuthToJSON } from './SignMessageEip7702Auth.js';
|
|
3
4
|
import { SignMessageEvmMessageFromJSON, SignMessageEvmMessageToJSON } from './SignMessageEvmMessage.js';
|
|
4
5
|
import { SignMessageEvmTransactionFromJSON, SignMessageEvmTransactionToJSON } from './SignMessageEvmTransaction.js';
|
|
@@ -20,6 +21,7 @@ function SignMessageContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
21
|
'evmUserOperation': !exists(json, 'evmUserOperation') ? undefined : SignMessageEvmUserOperationFromJSON(json['evmUserOperation']),
|
|
21
22
|
'svmTransaction': !exists(json, 'svmTransaction') ? undefined : SignMessageSvmTransactionFromJSON(json['svmTransaction']),
|
|
22
23
|
'suiTransaction': !exists(json, 'suiTransaction') ? undefined : SignMessageSuiTransactionFromJSON(json['suiTransaction']),
|
|
24
|
+
'btcTransaction': !exists(json, 'btcTransaction') ? undefined : SignMessageBtcTransactionFromJSON(json['btcTransaction']),
|
|
23
25
|
'eip7702Auth': !exists(json, 'eip7702Auth') ? undefined : SignMessageEip7702AuthFromJSON(json['eip7702Auth']),
|
|
24
26
|
'evmMessage': !exists(json, 'evmMessage') ? undefined : SignMessageEvmMessageFromJSON(json['evmMessage']),
|
|
25
27
|
'svmMessage': !exists(json, 'svmMessage') ? undefined : json['svmMessage'],
|
|
@@ -40,6 +42,7 @@ function SignMessageContextToJSON(value) {
|
|
|
40
42
|
'evmUserOperation': SignMessageEvmUserOperationToJSON(value.evmUserOperation),
|
|
41
43
|
'svmTransaction': SignMessageSvmTransactionToJSON(value.svmTransaction),
|
|
42
44
|
'suiTransaction': SignMessageSuiTransactionToJSON(value.suiTransaction),
|
|
45
|
+
'btcTransaction': SignMessageBtcTransactionToJSON(value.btcTransaction),
|
|
43
46
|
'eip7702Auth': SignMessageEip7702AuthToJSON(value.eip7702Auth),
|
|
44
47
|
'evmMessage': SignMessageEvmMessageToJSON(value.evmMessage),
|
|
45
48
|
'svmMessage': value.svmMessage,
|
package/src/models/index.d.ts
CHANGED
|
@@ -283,6 +283,7 @@ export * from './SdkViewsResponse';
|
|
|
283
283
|
export * from './SecurityNotifications';
|
|
284
284
|
export * from './SignInProviderEnum';
|
|
285
285
|
export * from './SignMessageAuthorizationSignature';
|
|
286
|
+
export * from './SignMessageBtcTransaction';
|
|
286
287
|
export * from './SignMessageContext';
|
|
287
288
|
export * from './SignMessageEip7702Auth';
|
|
288
289
|
export * from './SignMessageEvmMessage';
|