@dynamic-labs/sdk-api 0.0.859 → 0.0.861
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/SessionsApi.cjs +38 -0
- package/src/apis/SessionsApi.d.ts +14 -1
- package/src/apis/SessionsApi.js +38 -0
- 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/RevokeAllSessionsResponse.cjs +43 -0
- package/src/models/RevokeAllSessionsResponse.d.ts +27 -0
- package/src/models/RevokeAllSessionsResponse.js +37 -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/apis/SessionsApi.cjs
CHANGED
|
@@ -85,6 +85,7 @@ require('../models/NextViewEnum.cjs');
|
|
|
85
85
|
require('../models/OauthResultStatus.cjs');
|
|
86
86
|
require('../models/WhenToImplementEnum.cjs');
|
|
87
87
|
require('../models/PublishEventsEvents.cjs');
|
|
88
|
+
var RevokeAllSessionsResponse = require('../models/RevokeAllSessionsResponse.cjs');
|
|
88
89
|
require('../models/SsoProviderEnum.cjs');
|
|
89
90
|
require('../models/SsoProviderCheckResponse.cjs');
|
|
90
91
|
require('../models/SubscriptionAdvancedScopeEnum.cjs');
|
|
@@ -141,6 +142,43 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
141
142
|
return yield response.value();
|
|
142
143
|
});
|
|
143
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* Queues the revocation of all user sessions in the specified environment. This is an asynchronous operation - the job runs in the background.
|
|
147
|
+
* Revoke all sessions for an environment
|
|
148
|
+
*/
|
|
149
|
+
revokeAllEnvironmentSessionsRaw(requestParameters, initOverrides) {
|
|
150
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
152
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling revokeAllEnvironmentSessions.');
|
|
153
|
+
}
|
|
154
|
+
const queryParameters = {};
|
|
155
|
+
const headerParameters = {};
|
|
156
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
157
|
+
const token = this.configuration.accessToken;
|
|
158
|
+
const tokenString = yield token("bearerAuth", []);
|
|
159
|
+
if (tokenString) {
|
|
160
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
const response = yield this.request({
|
|
164
|
+
path: `/environments/{environmentId}/users/sessions/revoke`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
165
|
+
method: 'POST',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RevokeAllSessionsResponse.RevokeAllSessionsResponseFromJSON(jsonValue));
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Queues the revocation of all user sessions in the specified environment. This is an asynchronous operation - the job runs in the background.
|
|
174
|
+
* Revoke all sessions for an environment
|
|
175
|
+
*/
|
|
176
|
+
revokeAllEnvironmentSessions(requestParameters, initOverrides) {
|
|
177
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const response = yield this.revokeAllEnvironmentSessionsRaw(requestParameters, initOverrides);
|
|
179
|
+
return yield response.value();
|
|
180
|
+
});
|
|
181
|
+
}
|
|
144
182
|
/**
|
|
145
183
|
* Revoke a session
|
|
146
184
|
*/
|
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Session } from '../models';
|
|
13
|
+
import { RevokeAllSessionsResponse, Session } from '../models';
|
|
14
14
|
export interface GetSessionByIdRequest {
|
|
15
15
|
userId: string;
|
|
16
16
|
sessionId: string;
|
|
17
17
|
}
|
|
18
|
+
export interface RevokeAllEnvironmentSessionsRequest {
|
|
19
|
+
environmentId: string;
|
|
20
|
+
}
|
|
18
21
|
export interface RevokeSessionByIdRequest {
|
|
19
22
|
sessionId: string;
|
|
20
23
|
}
|
|
@@ -30,6 +33,16 @@ export declare class SessionsApi extends runtime.BaseAPI {
|
|
|
30
33
|
* Get a session by ID
|
|
31
34
|
*/
|
|
32
35
|
getSessionById(requestParameters: GetSessionByIdRequest, initOverrides?: RequestInit): Promise<Session>;
|
|
36
|
+
/**
|
|
37
|
+
* Queues the revocation of all user sessions in the specified environment. This is an asynchronous operation - the job runs in the background.
|
|
38
|
+
* Revoke all sessions for an environment
|
|
39
|
+
*/
|
|
40
|
+
revokeAllEnvironmentSessionsRaw(requestParameters: RevokeAllEnvironmentSessionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<RevokeAllSessionsResponse>>;
|
|
41
|
+
/**
|
|
42
|
+
* Queues the revocation of all user sessions in the specified environment. This is an asynchronous operation - the job runs in the background.
|
|
43
|
+
* Revoke all sessions for an environment
|
|
44
|
+
*/
|
|
45
|
+
revokeAllEnvironmentSessions(requestParameters: RevokeAllEnvironmentSessionsRequest, initOverrides?: RequestInit): Promise<RevokeAllSessionsResponse>;
|
|
33
46
|
/**
|
|
34
47
|
* Revoke a session
|
|
35
48
|
*/
|
package/src/apis/SessionsApi.js
CHANGED
|
@@ -81,6 +81,7 @@ import '../models/NextViewEnum.js';
|
|
|
81
81
|
import '../models/OauthResultStatus.js';
|
|
82
82
|
import '../models/WhenToImplementEnum.js';
|
|
83
83
|
import '../models/PublishEventsEvents.js';
|
|
84
|
+
import { RevokeAllSessionsResponseFromJSON } from '../models/RevokeAllSessionsResponse.js';
|
|
84
85
|
import '../models/SsoProviderEnum.js';
|
|
85
86
|
import '../models/SsoProviderCheckResponse.js';
|
|
86
87
|
import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
@@ -137,6 +138,43 @@ class SessionsApi extends BaseAPI {
|
|
|
137
138
|
return yield response.value();
|
|
138
139
|
});
|
|
139
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Queues the revocation of all user sessions in the specified environment. This is an asynchronous operation - the job runs in the background.
|
|
143
|
+
* Revoke all sessions for an environment
|
|
144
|
+
*/
|
|
145
|
+
revokeAllEnvironmentSessionsRaw(requestParameters, initOverrides) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
148
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling revokeAllEnvironmentSessions.');
|
|
149
|
+
}
|
|
150
|
+
const queryParameters = {};
|
|
151
|
+
const headerParameters = {};
|
|
152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
153
|
+
const token = this.configuration.accessToken;
|
|
154
|
+
const tokenString = yield token("bearerAuth", []);
|
|
155
|
+
if (tokenString) {
|
|
156
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const response = yield this.request({
|
|
160
|
+
path: `/environments/{environmentId}/users/sessions/revoke`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
161
|
+
method: 'POST',
|
|
162
|
+
headers: headerParameters,
|
|
163
|
+
query: queryParameters,
|
|
164
|
+
}, initOverrides);
|
|
165
|
+
return new JSONApiResponse(response, (jsonValue) => RevokeAllSessionsResponseFromJSON(jsonValue));
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Queues the revocation of all user sessions in the specified environment. This is an asynchronous operation - the job runs in the background.
|
|
170
|
+
* Revoke all sessions for an environment
|
|
171
|
+
*/
|
|
172
|
+
revokeAllEnvironmentSessions(requestParameters, initOverrides) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
const response = yield this.revokeAllEnvironmentSessionsRaw(requestParameters, initOverrides);
|
|
175
|
+
return yield response.value();
|
|
176
|
+
});
|
|
177
|
+
}
|
|
140
178
|
/**
|
|
141
179
|
* Revoke a session
|
|
142
180
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -456,6 +456,7 @@ var RegisterSessionKeyRequest = require('./models/RegisterSessionKeyRequest.cjs'
|
|
|
456
456
|
var ReshareRequest = require('./models/ReshareRequest.cjs');
|
|
457
457
|
var ResidentKeyRequirement = require('./models/ResidentKeyRequirement.cjs');
|
|
458
458
|
var RetentionTrendResult = require('./models/RetentionTrendResult.cjs');
|
|
459
|
+
var RevokeAllSessionsResponse = require('./models/RevokeAllSessionsResponse.cjs');
|
|
459
460
|
var RevokeDelegatedAccessRequest = require('./models/RevokeDelegatedAccessRequest.cjs');
|
|
460
461
|
var RevokeDelegatedAccessResponse = require('./models/RevokeDelegatedAccessResponse.cjs');
|
|
461
462
|
var RevokeDelegatedAccessWalletResult = require('./models/RevokeDelegatedAccessWalletResult.cjs');
|
|
@@ -604,6 +605,8 @@ var WaasWalletProperties = require('./models/WaasWalletProperties.cjs');
|
|
|
604
605
|
var WaasWalletResponse = require('./models/WaasWalletResponse.cjs');
|
|
605
606
|
var WaasWalletSettings = require('./models/WaasWalletSettings.cjs');
|
|
606
607
|
var WaasWalletSignaturePolicyTmpCreateRequest = require('./models/WaasWalletSignaturePolicyTmpCreateRequest.cjs');
|
|
608
|
+
var WaasWalletSignaturePolicyTmpCreateRequestPolicyContent = require('./models/WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.cjs');
|
|
609
|
+
var WaasWalletSignaturePolicyTmpCreateRequestValueLimits = require('./models/WaasWalletSignaturePolicyTmpCreateRequestValueLimits.cjs');
|
|
607
610
|
var WaasWalletSignaturePolicyTmpResponse = require('./models/WaasWalletSignaturePolicyTmpResponse.cjs');
|
|
608
611
|
var Wallet = require('./models/Wallet.cjs');
|
|
609
612
|
var WalletAdditionalAddress = require('./models/WalletAdditionalAddress.cjs');
|
|
@@ -2192,6 +2195,9 @@ exports.ResidentKeyRequirementToJSON = ResidentKeyRequirement.ResidentKeyRequire
|
|
|
2192
2195
|
exports.RetentionTrendResultFromJSON = RetentionTrendResult.RetentionTrendResultFromJSON;
|
|
2193
2196
|
exports.RetentionTrendResultFromJSONTyped = RetentionTrendResult.RetentionTrendResultFromJSONTyped;
|
|
2194
2197
|
exports.RetentionTrendResultToJSON = RetentionTrendResult.RetentionTrendResultToJSON;
|
|
2198
|
+
exports.RevokeAllSessionsResponseFromJSON = RevokeAllSessionsResponse.RevokeAllSessionsResponseFromJSON;
|
|
2199
|
+
exports.RevokeAllSessionsResponseFromJSONTyped = RevokeAllSessionsResponse.RevokeAllSessionsResponseFromJSONTyped;
|
|
2200
|
+
exports.RevokeAllSessionsResponseToJSON = RevokeAllSessionsResponse.RevokeAllSessionsResponseToJSON;
|
|
2195
2201
|
exports.RevokeDelegatedAccessRequestFromJSON = RevokeDelegatedAccessRequest.RevokeDelegatedAccessRequestFromJSON;
|
|
2196
2202
|
exports.RevokeDelegatedAccessRequestFromJSONTyped = RevokeDelegatedAccessRequest.RevokeDelegatedAccessRequestFromJSONTyped;
|
|
2197
2203
|
exports.RevokeDelegatedAccessRequestToJSON = RevokeDelegatedAccessRequest.RevokeDelegatedAccessRequestToJSON;
|
|
@@ -2740,6 +2746,12 @@ exports.WaasWalletSettingsToJSON = WaasWalletSettings.WaasWalletSettingsToJSON;
|
|
|
2740
2746
|
exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSON;
|
|
2741
2747
|
exports.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped;
|
|
2742
2748
|
exports.WaasWalletSignaturePolicyTmpCreateRequestToJSON = WaasWalletSignaturePolicyTmpCreateRequest.WaasWalletSignaturePolicyTmpCreateRequestToJSON;
|
|
2749
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON = WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON;
|
|
2750
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped;
|
|
2751
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON = WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON;
|
|
2752
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON = WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON;
|
|
2753
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped = WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped;
|
|
2754
|
+
exports.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON = WaasWalletSignaturePolicyTmpCreateRequestValueLimits.WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON;
|
|
2743
2755
|
exports.WaasWalletSignaturePolicyTmpResponseFromJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSON;
|
|
2744
2756
|
exports.WaasWalletSignaturePolicyTmpResponseFromJSONTyped = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseFromJSONTyped;
|
|
2745
2757
|
exports.WaasWalletSignaturePolicyTmpResponseToJSON = WaasWalletSignaturePolicyTmpResponse.WaasWalletSignaturePolicyTmpResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -452,6 +452,7 @@ export { RegisterSessionKeyRequestFromJSON, RegisterSessionKeyRequestFromJSONTyp
|
|
|
452
452
|
export { ReshareRequestFromJSON, ReshareRequestFromJSONTyped, ReshareRequestToJSON } from './models/ReshareRequest.js';
|
|
453
453
|
export { ResidentKeyRequirement, ResidentKeyRequirementFromJSON, ResidentKeyRequirementFromJSONTyped, ResidentKeyRequirementToJSON } from './models/ResidentKeyRequirement.js';
|
|
454
454
|
export { RetentionTrendResultFromJSON, RetentionTrendResultFromJSONTyped, RetentionTrendResultToJSON } from './models/RetentionTrendResult.js';
|
|
455
|
+
export { RevokeAllSessionsResponseFromJSON, RevokeAllSessionsResponseFromJSONTyped, RevokeAllSessionsResponseToJSON } from './models/RevokeAllSessionsResponse.js';
|
|
455
456
|
export { RevokeDelegatedAccessRequestFromJSON, RevokeDelegatedAccessRequestFromJSONTyped, RevokeDelegatedAccessRequestToJSON } from './models/RevokeDelegatedAccessRequest.js';
|
|
456
457
|
export { RevokeDelegatedAccessResponseFromJSON, RevokeDelegatedAccessResponseFromJSONTyped, RevokeDelegatedAccessResponseToJSON } from './models/RevokeDelegatedAccessResponse.js';
|
|
457
458
|
export { RevokeDelegatedAccessWalletResultFromJSON, RevokeDelegatedAccessWalletResultFromJSONTyped, RevokeDelegatedAccessWalletResultToJSON } from './models/RevokeDelegatedAccessWalletResult.js';
|
|
@@ -600,6 +601,8 @@ export { WaasWalletPropertiesFromJSON, WaasWalletPropertiesFromJSONTyped, WaasWa
|
|
|
600
601
|
export { WaasWalletResponseFromJSON, WaasWalletResponseFromJSONTyped, WaasWalletResponseToJSON } from './models/WaasWalletResponse.js';
|
|
601
602
|
export { WaasWalletSettingsFromJSON, WaasWalletSettingsFromJSONTyped, WaasWalletSettingsToJSON } from './models/WaasWalletSettings.js';
|
|
602
603
|
export { WaasWalletSignaturePolicyTmpCreateRequestFromJSON, WaasWalletSignaturePolicyTmpCreateRequestFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequest.js';
|
|
604
|
+
export { WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSON, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestPolicyContentToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequestPolicyContent.js';
|
|
605
|
+
export { WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSON, WaasWalletSignaturePolicyTmpCreateRequestValueLimitsFromJSONTyped, WaasWalletSignaturePolicyTmpCreateRequestValueLimitsToJSON } from './models/WaasWalletSignaturePolicyTmpCreateRequestValueLimits.js';
|
|
603
606
|
export { WaasWalletSignaturePolicyTmpResponseFromJSON, WaasWalletSignaturePolicyTmpResponseFromJSONTyped, WaasWalletSignaturePolicyTmpResponseToJSON } from './models/WaasWalletSignaturePolicyTmpResponse.js';
|
|
604
607
|
export { WalletFromJSON, WalletFromJSONTyped, WalletToJSON } from './models/Wallet.js';
|
|
605
608
|
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
|
@@ -0,0 +1,43 @@
|
|
|
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 RevokeAllSessionsResponseFromJSON(json) {
|
|
19
|
+
return RevokeAllSessionsResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function RevokeAllSessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'message': json['message'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function RevokeAllSessionsResponseToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'message': value.message,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.RevokeAllSessionsResponseFromJSON = RevokeAllSessionsResponseFromJSON;
|
|
42
|
+
exports.RevokeAllSessionsResponseFromJSONTyped = RevokeAllSessionsResponseFromJSONTyped;
|
|
43
|
+
exports.RevokeAllSessionsResponseToJSON = RevokeAllSessionsResponseToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 RevokeAllSessionsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface RevokeAllSessionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Status message indicating the revocation has been queued
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RevokeAllSessionsResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function RevokeAllSessionsResponseFromJSON(json: any): RevokeAllSessionsResponse;
|
|
26
|
+
export declare function RevokeAllSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RevokeAllSessionsResponse;
|
|
27
|
+
export declare function RevokeAllSessionsResponseToJSON(value?: RevokeAllSessionsResponse | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 RevokeAllSessionsResponseFromJSON(json) {
|
|
15
|
+
return RevokeAllSessionsResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function RevokeAllSessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'message': json['message'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function RevokeAllSessionsResponseToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'message': value.message,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { RevokeAllSessionsResponseFromJSON, RevokeAllSessionsResponseFromJSONTyped, RevokeAllSessionsResponseToJSON };
|
|
@@ -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
|
@@ -414,6 +414,7 @@ export * from './RegisterSessionKeyRequest';
|
|
|
414
414
|
export * from './ReshareRequest';
|
|
415
415
|
export * from './ResidentKeyRequirement';
|
|
416
416
|
export * from './RetentionTrendResult';
|
|
417
|
+
export * from './RevokeAllSessionsResponse';
|
|
417
418
|
export * from './RevokeDelegatedAccessRequest';
|
|
418
419
|
export * from './RevokeDelegatedAccessResponse';
|
|
419
420
|
export * from './RevokeDelegatedAccessWalletResult';
|
|
@@ -562,6 +563,8 @@ export * from './WaasWalletProperties';
|
|
|
562
563
|
export * from './WaasWalletResponse';
|
|
563
564
|
export * from './WaasWalletSettings';
|
|
564
565
|
export * from './WaasWalletSignaturePolicyTmpCreateRequest';
|
|
566
|
+
export * from './WaasWalletSignaturePolicyTmpCreateRequestPolicyContent';
|
|
567
|
+
export * from './WaasWalletSignaturePolicyTmpCreateRequestValueLimits';
|
|
565
568
|
export * from './WaasWalletSignaturePolicyTmpResponse';
|
|
566
569
|
export * from './Wallet';
|
|
567
570
|
export * from './WalletAdditionalAddress';
|