@dynamic-labs/sdk-api 0.0.858 → 0.0.860
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 +12 -0
- package/src/index.js +3 -0
- package/src/models/ChainEnum.cjs +1 -0
- package/src/models/ChainEnum.d.ts +2 -1
- package/src/models/ChainEnum.js +1 -0
- package/src/models/ProjectSettingsSecurity.cjs +3 -0
- package/src/models/ProjectSettingsSecurity.d.ts +7 -0
- package/src/models/ProjectSettingsSecurity.js +3 -0
- package/src/models/SecurityNotifications.cjs +35 -0
- package/src/models/SecurityNotifications.d.ts +33 -0
- package/src/models/SecurityNotifications.js +29 -0
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequest.cjs +3 -9
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequest.d.ts +4 -22
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequest.js +3 -9
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.cjs +38 -0
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.d.ts +41 -0
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.js +32 -0
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequestValueLimits.cjs +45 -0
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequestValueLimits.d.ts +33 -0
- package/src/models/WaasWalletSignaturePolicyTmpCreateRequestValueLimits.js +39 -0
- package/src/models/WaasWalletSignaturePolicyTmpResponse.cjs +3 -9
- package/src/models/WaasWalletSignaturePolicyTmpResponse.d.ts +4 -22
- package/src/models/WaasWalletSignaturePolicyTmpResponse.js +3 -9
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -472,6 +472,7 @@ var SdkViewSectionType = require('./models/SdkViewSectionType.cjs');
|
|
|
472
472
|
var SdkViewType = require('./models/SdkViewType.cjs');
|
|
473
473
|
var SdkViewUpdateRequest = require('./models/SdkViewUpdateRequest.cjs');
|
|
474
474
|
var SdkViewsResponse = require('./models/SdkViewsResponse.cjs');
|
|
475
|
+
var SecurityNotifications = require('./models/SecurityNotifications.cjs');
|
|
475
476
|
var Session = require('./models/Session.cjs');
|
|
476
477
|
var SessionsHeatmapResult = require('./models/SessionsHeatmapResult.cjs');
|
|
477
478
|
var SessionsResponse = require('./models/SessionsResponse.cjs');
|
|
@@ -603,6 +604,8 @@ var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
|
603
604
|
var WaasWalletResponse = require('./models/WaasWalletResponse.cjs');
|
|
604
605
|
var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
|
|
605
606
|
var WaasWalletSignaturePolicyTmpCreateRequest = require('./models/WaasWalletSignaturePolicyTmpCreateRequest.cjs');
|
|
607
|
+
var WaasWalletSignaturePolicyTmpCreateRequestPolicyContent = require('./models/WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.cjs');
|
|
608
|
+
var WaasWalletSignaturePolicyTmpCreateRequestValueLimits = require('./models/WaasWalletSignaturePolicyTmpCreateRequestValueLimits.cjs');
|
|
606
609
|
var WaasWalletSignaturePolicyTmpResponse = require('./models/WaasWalletSignaturePolicyTmpResponse.cjs');
|
|
607
610
|
var Wallet = require('./models/Wallet.cjs');
|
|
608
611
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
@@ -2259,6 +2262,9 @@ exports.SdkViewUpdateRequestToJSON = SdkViewUpdateRequest.SdkViewUpdateRequestTo
|
|
|
2259
2262
|
exports.SdkViewsResponseFromJSON = SdkViewsResponse.SdkViewsResponseFromJSON;
|
|
2260
2263
|
exports.SdkViewsResponseFromJSONTyped = SdkViewsResponse.SdkViewsResponseFromJSONTyped;
|
|
2261
2264
|
exports.SdkViewsResponseToJSON = SdkViewsResponse.SdkViewsResponseToJSON;
|
|
2265
|
+
exports.SecurityNotificationsFromJSON = SecurityNotifications.SecurityNotificationsFromJSON;
|
|
2266
|
+
exports.SecurityNotificationsFromJSONTyped = SecurityNotifications.SecurityNotificationsFromJSONTyped;
|
|
2267
|
+
exports.SecurityNotificationsToJSON = SecurityNotifications.SecurityNotificationsToJSON;
|
|
2262
2268
|
exports.SessionFromJSON = Session.SessionFromJSON;
|
|
2263
2269
|
exports.SessionFromJSONTyped = Session.SessionFromJSONTyped;
|
|
2264
2270
|
exports.SessionToJSON = Session.SessionToJSON;
|
|
@@ -2736,6 +2742,12 @@ exports.WaasWalletSettingsToJSON = WaasWalletSettings.WaasWalletSettingsToJSON;
|
|
|
2736
2742
|
exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSON;
|
|
2737
2743
|
exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped;
|
|
2738
2744
|
exports.WaasWalletSignaturePolicyTmpCreateRequestToJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON;
|
|
2745
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON = WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON;
|
|
2746
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped;
|
|
2747
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON = WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON;
|
|
2748
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON = WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON;
|
|
2749
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped;
|
|
2750
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON = WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON;
|
|
2739
2751
|
exports.WaasWalletSignaturePolicyTmpResponseFromJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON;
|
|
2740
2752
|
exports.WaasWalletSignaturePolicyTmpResponseFromJSONTyped = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSONTyped;
|
|
2741
2753
|
exports.WaasWalletSignaturePolicyTmpResponseToJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -468,6 +468,7 @@ export { SdkViewSectionType, SdkViewSectionTypeFromJSON, SdkViewSectionTypeFromJ
|
|
|
468
468
|
export { SdkViewType, SdkViewTypeFromJSON, SdkViewTypeFromJSONTyped, SdkViewTypeToJSON } from './models/SdkViewType.js';
|
|
469
469
|
export { SdkViewUpdateRequestFromJSON, SdkViewUpdateRequestFromJSONTyped, SdkViewUpdateRequestToJSON } from './models/SdkViewUpdateRequest.js';
|
|
470
470
|
export { SdkViewsResponseFromJSON, SdkViewsResponseFromJSONTyped, SdkViewsResponseToJSON } from './models/SdkViewsResponse.js';
|
|
471
|
+
export { SecurityNotificationsFromJSON, SecurityNotificationsFromJSONTyped, SecurityNotificationsToJSON } from './models/SecurityNotifications.js';
|
|
471
472
|
export { SessionFromJSON, SessionFromJSONTyped, SessionToJSON } from './models/Session.js';
|
|
472
473
|
export { SessionsHeatmapResultFromJSON, SessionsHeatmapResultFromJSONTyped, SessionsHeatmapResultToJSON } from './models/SessionsHeatmapResult.js';
|
|
473
474
|
export { SessionsResponseFromJSON, SessionsResponseFromJSONTyped, SessionsResponseToJSON } from './models/SessionsResponse.js';
|
|
@@ -599,6 +600,8 @@ export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWa
|
|
|
599
600
|
export { WaasWalletResponseFromJSON, WaasWalletResponseFromJSONTyped, WaasWalletResponseToJSON } from './models/WaasWalletResponse.js';
|
|
600
601
|
export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON } from './models/WaasWalletSettings.js';
|
|
601
602
|
export { WaasWalletSignaturePolicyTmpCreateRequestFromJSON, WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequest.js';
|
|
603
|
+
export { WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.js';
|
|
604
|
+
export { WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON, WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequestValueLimits.js';
|
|
602
605
|
export { WaasWalletSignaturePolicyTmpResponseFromJSON, WaasWalletSignaturePolicyTmpResponseFromJSONTyped, WaasWalletSignaturePolicyTmpResponseToJSON } from './models/WaasWalletSignaturePolicyTmpResponse.js';
|
|
603
606
|
export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
|
|
604
607
|
export { WalletAdditionalAddressFromJSON, WalletAdditionalAddressFromJSONTyped, WalletAdditionalAddressToJSON } from './models/WalletAdditionalAddress.js';
|
package/src/models/ChainEnum.cjs
CHANGED
|
@@ -36,6 +36,7 @@ exports.ChainEnum = void 0;
|
|
|
36
36
|
ChainEnum["Tron"] = "TRON";
|
|
37
37
|
ChainEnum["Aptos"] = "APTOS";
|
|
38
38
|
ChainEnum["Ton"] = "TON";
|
|
39
|
+
ChainEnum["Stellar"] = "STELLAR";
|
|
39
40
|
})(exports.ChainEnum || (exports.ChainEnum = {}));
|
|
40
41
|
function ChainEnumFromJSON(json) {
|
|
41
42
|
return ChainEnumFromJSONTyped(json);
|
|
@@ -28,7 +28,8 @@ export declare enum ChainEnum {
|
|
|
28
28
|
Spark = "SPARK",
|
|
29
29
|
Tron = "TRON",
|
|
30
30
|
Aptos = "APTOS",
|
|
31
|
-
Ton = "TON"
|
|
31
|
+
Ton = "TON",
|
|
32
|
+
Stellar = "STELLAR"
|
|
32
33
|
}
|
|
33
34
|
export declare function ChainEnumFromJSON(json: any): ChainEnum;
|
|
34
35
|
export declare function ChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainEnum;
|
package/src/models/ChainEnum.js
CHANGED
|
@@ -8,6 +8,7 @@ var Duration = require('./Duration.cjs');
|
|
|
8
8
|
var ExternalAuth = require('./ExternalAuth.cjs');
|
|
9
9
|
var HCaptchaSettings = require('./HCaptchaSettings.cjs');
|
|
10
10
|
var MFASettings = require('./MFASettings.cjs');
|
|
11
|
+
var SecurityNotifications = require('./SecurityNotifications.cjs');
|
|
11
12
|
|
|
12
13
|
/* tslint:disable */
|
|
13
14
|
function ProjectSettingsSecurityFromJSON(json) {
|
|
@@ -24,6 +25,7 @@ function ProjectSettingsSecurityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
25
|
'auth': !runtime.exists(json, 'auth') ? undefined : AuthSettings.AuthSettingsFromJSON(json['auth']),
|
|
25
26
|
'externalAuth': !runtime.exists(json, 'externalAuth') ? undefined : ExternalAuth.ExternalAuthFromJSON(json['externalAuth']),
|
|
26
27
|
'environmentLocked': !runtime.exists(json, 'environmentLocked') ? undefined : json['environmentLocked'],
|
|
28
|
+
'notifications': !runtime.exists(json, 'notifications') ? undefined : SecurityNotifications.SecurityNotificationsFromJSON(json['notifications']),
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
function ProjectSettingsSecurityToJSON(value) {
|
|
@@ -40,6 +42,7 @@ function ProjectSettingsSecurityToJSON(value) {
|
|
|
40
42
|
'auth': AuthSettings.AuthSettingsToJSON(value.auth),
|
|
41
43
|
'externalAuth': ExternalAuth.ExternalAuthToJSON(value.externalAuth),
|
|
42
44
|
'environmentLocked': value.environmentLocked,
|
|
45
|
+
'notifications': SecurityNotifications.SecurityNotificationsToJSON(value.notifications),
|
|
43
46
|
};
|
|
44
47
|
}
|
|
45
48
|
|
|
@@ -14,6 +14,7 @@ import { Duration } from './Duration';
|
|
|
14
14
|
import { ExternalAuth } from './ExternalAuth';
|
|
15
15
|
import { HCaptchaSettings } from './HCaptchaSettings';
|
|
16
16
|
import { MFASettings } from './MFASettings';
|
|
17
|
+
import { SecurityNotifications } from './SecurityNotifications';
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
19
20
|
* @export
|
|
@@ -56,6 +57,12 @@ export interface ProjectSettingsSecurity {
|
|
|
56
57
|
* @memberof ProjectSettingsSecurity
|
|
57
58
|
*/
|
|
58
59
|
environmentLocked?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {SecurityNotifications}
|
|
63
|
+
* @memberof ProjectSettingsSecurity
|
|
64
|
+
*/
|
|
65
|
+
notifications?: SecurityNotifications;
|
|
59
66
|
}
|
|
60
67
|
export declare function ProjectSettingsSecurityFromJSON(json: any): ProjectSettingsSecurity;
|
|
61
68
|
export declare function ProjectSettingsSecurityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectSettingsSecurity;
|
|
@@ -4,6 +4,7 @@ import { DurationFromJSON, DurationToJSON } from './Duration.js';
|
|
|
4
4
|
import { ExternalAuthFromJSON, ExternalAuthToJSON } from './ExternalAuth.js';
|
|
5
5
|
import { HCaptchaSettingsFromJSON, HCaptchaSettingsToJSON } from './HCaptchaSettings.js';
|
|
6
6
|
import { MFASettingsFromJSON, MFASettingsToJSON } from './MFASettings.js';
|
|
7
|
+
import { SecurityNotificationsFromJSON, SecurityNotificationsToJSON } from './SecurityNotifications.js';
|
|
7
8
|
|
|
8
9
|
/* tslint:disable */
|
|
9
10
|
function ProjectSettingsSecurityFromJSON(json) {
|
|
@@ -20,6 +21,7 @@ function ProjectSettingsSecurityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
21
|
'auth': !exists(json, 'auth') ? undefined : AuthSettingsFromJSON(json['auth']),
|
|
21
22
|
'externalAuth': !exists(json, 'externalAuth') ? undefined : ExternalAuthFromJSON(json['externalAuth']),
|
|
22
23
|
'environmentLocked': !exists(json, 'environmentLocked') ? undefined : json['environmentLocked'],
|
|
24
|
+
'notifications': !exists(json, 'notifications') ? undefined : SecurityNotificationsFromJSON(json['notifications']),
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
function ProjectSettingsSecurityToJSON(value) {
|
|
@@ -36,6 +38,7 @@ function ProjectSettingsSecurityToJSON(value) {
|
|
|
36
38
|
'auth': AuthSettingsToJSON(value.auth),
|
|
37
39
|
'externalAuth': ExternalAuthToJSON(value.externalAuth),
|
|
38
40
|
'environmentLocked': value.environmentLocked,
|
|
41
|
+
'notifications': SecurityNotificationsToJSON(value.notifications),
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
44
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function SecurityNotificationsFromJSON(json) {
|
|
9
|
+
return SecurityNotificationsFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function SecurityNotificationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'waasPrivateKeyExport': !runtime.exists(json, 'waasPrivateKeyExport') ? undefined : json['waasPrivateKeyExport'],
|
|
17
|
+
'waasSignedTransaction': !runtime.exists(json, 'waasSignedTransaction') ? undefined : json['waasSignedTransaction'],
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function SecurityNotificationsToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'waasPrivateKeyExport': value.waasPrivateKeyExport,
|
|
29
|
+
'waasSignedTransaction': value.waasSignedTransaction,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.SecurityNotificationsFromJSON = SecurityNotificationsFromJSON;
|
|
34
|
+
exports.SecurityNotificationsFromJSONTyped = SecurityNotificationsFromJSONTyped;
|
|
35
|
+
exports.SecurityNotificationsToJSON = SecurityNotificationsToJSON;
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SecurityNotifications
|
|
16
|
+
*/
|
|
17
|
+
export interface SecurityNotifications {
|
|
18
|
+
/**
|
|
19
|
+
* Send email notification when a user exports their embedded wallet private key. Defaults to true.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SecurityNotifications
|
|
22
|
+
*/
|
|
23
|
+
waasPrivateKeyExport?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Send email notification when a transaction is signed with an embedded wallet. Defaults to true.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof SecurityNotifications
|
|
28
|
+
*/
|
|
29
|
+
waasSignedTransaction?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function SecurityNotificationsFromJSON(json: any): SecurityNotifications;
|
|
32
|
+
export declare function SecurityNotificationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityNotifications;
|
|
33
|
+
export declare function SecurityNotificationsToJSON(value?: SecurityNotifications | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function SecurityNotificationsFromJSON(json) {
|
|
5
|
+
return SecurityNotificationsFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function SecurityNotificationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'waasPrivateKeyExport': !exists(json, 'waasPrivateKeyExport') ? undefined : json['waasPrivateKeyExport'],
|
|
13
|
+
'waasSignedTransaction': !exists(json, 'waasSignedTransaction') ? undefined : json['waasSignedTransaction'],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function SecurityNotificationsToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'waasPrivateKeyExport': value.waasPrivateKeyExport,
|
|
25
|
+
'waasSignedTransaction': value.waasSignedTransaction,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { SecurityNotificationsFromJSON, SecurityNotificationsFromJSONTyped, SecurityNotificationsToJSON };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var WaasWalletSignaturePolicyTmpCreateRequestPolicyContent = require('./WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.cjs');
|
|
6
6
|
|
|
7
7
|
/* tslint:disable */
|
|
8
8
|
function WaasWalletSignaturePolicyTmpCreateRequestFromJSON(json) {
|
|
@@ -13,11 +13,8 @@ function WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json, ignoreDisc
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'
|
|
17
|
-
'toAddresses': json['toAddresses'],
|
|
18
|
-
'tokenAddresses': json['tokenAddresses'],
|
|
16
|
+
'policyContent': (json['policyContent'].map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON)),
|
|
19
17
|
'timeLimit': json['timeLimit'],
|
|
20
|
-
'maxAmount': json['maxAmount'],
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
20
|
function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value) {
|
|
@@ -28,11 +25,8 @@ function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value) {
|
|
|
28
25
|
return null;
|
|
29
26
|
}
|
|
30
27
|
return {
|
|
31
|
-
'
|
|
32
|
-
'toAddresses': value.toAddresses,
|
|
33
|
-
'tokenAddresses': value.tokenAddresses,
|
|
28
|
+
'policyContent': (value.policyContent.map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON)),
|
|
34
29
|
'timeLimit': value.timeLimit,
|
|
35
|
-
'maxAmount': value.maxAmount,
|
|
36
30
|
};
|
|
37
31
|
}
|
|
38
32
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { WaasWalletSignaturePolicyTmpCreateRequestPolicyContent } from './WaasWalletSignaturePolicyTmpCreateRequestPolicyContent';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,35 +17,17 @@ import { WaasChainEnum } from './WaasChainEnum';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface WaasWalletSignaturePolicyTmpCreateRequest {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
20
|
+
* Array of policy rules, each defining allowed addresses, chain, and value limits for different assets
|
|
21
|
+
* @type {Array<WaasWalletSignaturePolicyTmpCreateRequestPolicyContent>}
|
|
22
22
|
* @memberof WaasWalletSignaturePolicyTmpCreateRequest
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Array of allowed destination addresses
|
|
27
|
-
* @type {Array<string>}
|
|
28
|
-
* @memberof WaasWalletSignaturePolicyTmpCreateRequest
|
|
29
|
-
*/
|
|
30
|
-
toAddresses: Array<string>;
|
|
31
|
-
/**
|
|
32
|
-
* Array of allowed token contract addresses
|
|
33
|
-
* @type {Array<string>}
|
|
34
|
-
* @memberof WaasWalletSignaturePolicyTmpCreateRequest
|
|
35
|
-
*/
|
|
36
|
-
tokenAddresses: Array<string>;
|
|
24
|
+
policyContent: Array<WaasWalletSignaturePolicyTmpCreateRequestPolicyContent>;
|
|
37
25
|
/**
|
|
38
26
|
* Time limit in seconds until the policy expires. Must be greater than 0 seconds.
|
|
39
27
|
* @type {number}
|
|
40
28
|
* @memberof WaasWalletSignaturePolicyTmpCreateRequest
|
|
41
29
|
*/
|
|
42
30
|
timeLimit: number;
|
|
43
|
-
/**
|
|
44
|
-
* Maximum amount allowed for transactions (as string to handle bigint). Must be a non-negative integer.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof WaasWalletSignaturePolicyTmpCreateRequest
|
|
47
|
-
*/
|
|
48
|
-
maxAmount: string;
|
|
49
31
|
}
|
|
50
32
|
export declare function WaasWalletSignaturePolicyTmpCreateRequestFromJSON(json: any): WaasWalletSignaturePolicyTmpCreateRequest;
|
|
51
33
|
export declare function WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSignaturePolicyTmpCreateRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON } from './WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.js';
|
|
2
2
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
function WaasWalletSignaturePolicyTmpCreateRequestFromJSON(json) {
|
|
@@ -9,11 +9,8 @@ function WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped(json, ignoreDisc
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'
|
|
13
|
-
'toAddresses': json['toAddresses'],
|
|
14
|
-
'tokenAddresses': json['tokenAddresses'],
|
|
12
|
+
'policyContent': (json['policyContent'].map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON)),
|
|
15
13
|
'timeLimit': json['timeLimit'],
|
|
16
|
-
'maxAmount': json['maxAmount'],
|
|
17
14
|
};
|
|
18
15
|
}
|
|
19
16
|
function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value) {
|
|
@@ -24,11 +21,8 @@ function WaasWalletSignaturePolicyTmpCreateRequestToJSON(value) {
|
|
|
24
21
|
return null;
|
|
25
22
|
}
|
|
26
23
|
return {
|
|
27
|
-
'
|
|
28
|
-
'toAddresses': value.toAddresses,
|
|
29
|
-
'tokenAddresses': value.tokenAddresses,
|
|
24
|
+
'policyContent': (value.policyContent.map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON)),
|
|
30
25
|
'timeLimit': value.timeLimit,
|
|
31
|
-
'maxAmount': value.maxAmount,
|
|
32
26
|
};
|
|
33
27
|
}
|
|
34
28
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var WaasChainEnum = require('./WaasChainEnum.cjs');
|
|
6
|
+
var WaasWalletSignaturePolicyTmpCreateRequestValueLimits = require('./WaasWalletSignaturePolicyTmpCreateRequestValueLimits.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON(json) {
|
|
10
|
+
return WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
|
|
18
|
+
'toAddresses': json['toAddresses'],
|
|
19
|
+
'valueLimits': (json['valueLimits'].map(WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON)),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
|
|
31
|
+
'toAddresses': value.toAddresses,
|
|
32
|
+
'valueLimits': (value.valueLimits.map(WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON)),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON = WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON;
|
|
37
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped;
|
|
38
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON = WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 { WaasChainEnum } from './WaasChainEnum';
|
|
13
|
+
import { WaasWalletSignaturePolicyTmpCreateRequestValueLimits } from './WaasWalletSignaturePolicyTmpCreateRequestValueLimits';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WaasWalletSignaturePolicyTmpCreateRequestPolicyContent
|
|
18
|
+
*/
|
|
19
|
+
export interface WaasWalletSignaturePolicyTmpCreateRequestPolicyContent {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {WaasChainEnum}
|
|
23
|
+
* @memberof WaasWalletSignaturePolicyTmpCreateRequestPolicyContent
|
|
24
|
+
*/
|
|
25
|
+
chain: WaasChainEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Array of allowed recipient addresses (vault addresses) for this chain
|
|
28
|
+
* @type {Array<string>}
|
|
29
|
+
* @memberof WaasWalletSignaturePolicyTmpCreateRequestPolicyContent
|
|
30
|
+
*/
|
|
31
|
+
toAddresses: Array<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Array of value limits for different assets on this chain
|
|
34
|
+
* @type {Array<WaasWalletSignaturePolicyTmpCreateRequestValueLimits>}
|
|
35
|
+
* @memberof WaasWalletSignaturePolicyTmpCreateRequestPolicyContent
|
|
36
|
+
*/
|
|
37
|
+
valueLimits: Array<WaasWalletSignaturePolicyTmpCreateRequestValueLimits>;
|
|
38
|
+
}
|
|
39
|
+
export declare function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON(json: any): WaasWalletSignaturePolicyTmpCreateRequestPolicyContent;
|
|
40
|
+
export declare function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSignaturePolicyTmpCreateRequestPolicyContent;
|
|
41
|
+
export declare function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON(value?: WaasWalletSignaturePolicyTmpCreateRequestPolicyContent | null): any;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
|
|
2
|
+
import { WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON, WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON } from './WaasWalletSignaturePolicyTmpCreateRequestValueLimits.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON(json) {
|
|
6
|
+
return WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'chain': WaasChainEnumFromJSON(json['chain']),
|
|
14
|
+
'toAddresses': json['toAddresses'],
|
|
15
|
+
'valueLimits': (json['valueLimits'].map(WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON)),
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'chain': WaasChainEnumToJSON(value.chain),
|
|
27
|
+
'toAddresses': value.toAddresses,
|
|
28
|
+
'valueLimits': (value.valueLimits.map(WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON };
|
|
@@ -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 WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON(json) {
|
|
19
|
+
return WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'asset': json['asset'],
|
|
27
|
+
'maxPerCall': json['maxPerCall'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'asset': value.asset,
|
|
39
|
+
'maxPerCall': value.maxPerCall,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON = WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON;
|
|
44
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped;
|
|
45
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON = WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON;
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WaasWalletSignaturePolicyTmpCreateRequestValueLimits
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasWalletSignaturePolicyTmpCreateRequestValueLimits {
|
|
18
|
+
/**
|
|
19
|
+
* Target asset address
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WaasWalletSignaturePolicyTmpCreateRequestValueLimits
|
|
22
|
+
*/
|
|
23
|
+
asset: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Maximum value per transaction (as string to handle bigint)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WaasWalletSignaturePolicyTmpCreateRequestValueLimits
|
|
28
|
+
*/
|
|
29
|
+
maxPerCall: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON(json: any): WaasWalletSignaturePolicyTmpCreateRequestValueLimits;
|
|
32
|
+
export declare function WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSignaturePolicyTmpCreateRequestValueLimits;
|
|
33
|
+
export declare function WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON(value?: WaasWalletSignaturePolicyTmpCreateRequestValueLimits | 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 WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON(json) {
|
|
15
|
+
return WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'asset': json['asset'],
|
|
23
|
+
'maxPerCall': json['maxPerCall'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'asset': value.asset,
|
|
35
|
+
'maxPerCall': value.maxPerCall,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON, WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var WaasWalletSignaturePolicyTmpCreateRequestPolicyContent = require('./WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.cjs');
|
|
6
6
|
|
|
7
7
|
/* tslint:disable */
|
|
8
8
|
function WaasWalletSignaturePolicyTmpResponseFromJSON(json) {
|
|
@@ -15,11 +15,8 @@ function WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
15
15
|
return {
|
|
16
16
|
'id': json['id'],
|
|
17
17
|
'walletId': json['walletId'],
|
|
18
|
-
'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
|
|
19
|
-
'toAddresses': json['toAddresses'],
|
|
20
|
-
'tokenAddresses': json['tokenAddresses'],
|
|
21
18
|
'expiresAt': (new Date(json['expiresAt'])),
|
|
22
|
-
'
|
|
19
|
+
'policyContent': (json['policyContent'].map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON)),
|
|
23
20
|
};
|
|
24
21
|
}
|
|
25
22
|
function WaasWalletSignaturePolicyTmpResponseToJSON(value) {
|
|
@@ -32,11 +29,8 @@ function WaasWalletSignaturePolicyTmpResponseToJSON(value) {
|
|
|
32
29
|
return {
|
|
33
30
|
'id': value.id,
|
|
34
31
|
'walletId': value.walletId,
|
|
35
|
-
'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
|
|
36
|
-
'toAddresses': value.toAddresses,
|
|
37
|
-
'tokenAddresses': value.tokenAddresses,
|
|
38
32
|
'expiresAt': (value.expiresAt.toISOString()),
|
|
39
|
-
'
|
|
33
|
+
'policyContent': (value.policyContent.map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON)),
|
|
40
34
|
};
|
|
41
35
|
}
|
|
42
36
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { WaasWalletSignaturePolicyTmpCreateRequestPolicyContent } from './WaasWalletSignaturePolicyTmpCreateRequestPolicyContent';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -28,24 +28,6 @@ export interface WaasWalletSignaturePolicyTmpResponse {
|
|
|
28
28
|
* @memberof WaasWalletSignaturePolicyTmpResponse
|
|
29
29
|
*/
|
|
30
30
|
walletId: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {WaasChainEnum}
|
|
34
|
-
* @memberof WaasWalletSignaturePolicyTmpResponse
|
|
35
|
-
*/
|
|
36
|
-
chain: WaasChainEnum;
|
|
37
|
-
/**
|
|
38
|
-
* Array of allowed destination addresses
|
|
39
|
-
* @type {Array<string>}
|
|
40
|
-
* @memberof WaasWalletSignaturePolicyTmpResponse
|
|
41
|
-
*/
|
|
42
|
-
toAddresses: Array<string>;
|
|
43
|
-
/**
|
|
44
|
-
* Array of allowed token contract addresses
|
|
45
|
-
* @type {Array<string>}
|
|
46
|
-
* @memberof WaasWalletSignaturePolicyTmpResponse
|
|
47
|
-
*/
|
|
48
|
-
tokenAddresses: Array<string>;
|
|
49
31
|
/**
|
|
50
32
|
* Timestamp when the policy expires
|
|
51
33
|
* @type {Date}
|
|
@@ -53,11 +35,11 @@ export interface WaasWalletSignaturePolicyTmpResponse {
|
|
|
53
35
|
*/
|
|
54
36
|
expiresAt: Date;
|
|
55
37
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {
|
|
38
|
+
* Array of policy rules, each defining allowed addresses, chain, and value limits for different assets
|
|
39
|
+
* @type {Array<WaasWalletSignaturePolicyTmpCreateRequestPolicyContent>}
|
|
58
40
|
* @memberof WaasWalletSignaturePolicyTmpResponse
|
|
59
41
|
*/
|
|
60
|
-
|
|
42
|
+
policyContent: Array<WaasWalletSignaturePolicyTmpCreateRequestPolicyContent>;
|
|
61
43
|
}
|
|
62
44
|
export declare function WaasWalletSignaturePolicyTmpResponseFromJSON(json: any): WaasWalletSignaturePolicyTmpResponse;
|
|
63
45
|
export declare function WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletSignaturePolicyTmpResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON } from './WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.js';
|
|
2
2
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
function WaasWalletSignaturePolicyTmpResponseFromJSON(json) {
|
|
@@ -11,11 +11,8 @@ function WaasWalletSignaturePolicyTmpResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
11
11
|
return {
|
|
12
12
|
'id': json['id'],
|
|
13
13
|
'walletId': json['walletId'],
|
|
14
|
-
'chain': WaasChainEnumFromJSON(json['chain']),
|
|
15
|
-
'toAddresses': json['toAddresses'],
|
|
16
|
-
'tokenAddresses': json['tokenAddresses'],
|
|
17
14
|
'expiresAt': (new Date(json['expiresAt'])),
|
|
18
|
-
'
|
|
15
|
+
'policyContent': (json['policyContent'].map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON)),
|
|
19
16
|
};
|
|
20
17
|
}
|
|
21
18
|
function WaasWalletSignaturePolicyTmpResponseToJSON(value) {
|
|
@@ -28,11 +25,8 @@ function WaasWalletSignaturePolicyTmpResponseToJSON(value) {
|
|
|
28
25
|
return {
|
|
29
26
|
'id': value.id,
|
|
30
27
|
'walletId': value.walletId,
|
|
31
|
-
'chain': WaasChainEnumToJSON(value.chain),
|
|
32
|
-
'toAddresses': value.toAddresses,
|
|
33
|
-
'tokenAddresses': value.tokenAddresses,
|
|
34
28
|
'expiresAt': (value.expiresAt.toISOString()),
|
|
35
|
-
'
|
|
29
|
+
'policyContent': (value.policyContent.map(WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON)),
|
|
36
30
|
};
|
|
37
31
|
}
|
|
38
32
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -430,6 +430,7 @@ export * from './SdkViewSectionType';
|
|
|
430
430
|
export * from './SdkViewType';
|
|
431
431
|
export * from './SdkViewUpdateRequest';
|
|
432
432
|
export * from './SdkViewsResponse';
|
|
433
|
+
export * from './SecurityNotifications';
|
|
433
434
|
export * from './Session';
|
|
434
435
|
export * from './SessionsHeatmapResult';
|
|
435
436
|
export * from './SessionsResponse';
|
|
@@ -561,6 +562,8 @@ export * from './WaasWalletProperties';
|
|
|
561
562
|
export * from './WaasWalletResponse';
|
|
562
563
|
export * from './WaasWalletSettings';
|
|
563
564
|
export * from './WaasWalletSignaturePolicyTmpCreateRequest';
|
|
565
|
+
export * from './WaasWalletSignaturePolicyTmpCreateRequestPolicyContent';
|
|
566
|
+
export * from './WaasWalletSignaturePolicyTmpCreateRequestValueLimits';
|
|
564
567
|
export * from './WaasWalletSignaturePolicyTmpResponse';
|
|
565
568
|
export * from './Wallet';
|
|
566
569
|
export * from './WalletAdditionalAddress';
|