@dynamic-labs/sdk-api 0.0.652 → 0.0.653
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/GlobalWalletAccessControlApi.cjs +3 -5
- package/src/apis/GlobalWalletAccessControlApi.d.ts +3 -4
- package/src/apis/GlobalWalletAccessControlApi.js +3 -5
- package/src/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/GlobalWalletAccessControlDomainResponse.cjs +3 -2
- package/src/models/GlobalWalletAccessControlDomainResponse.d.ts +2 -2
- package/src/models/GlobalWalletAccessControlDomainResponse.js +3 -2
- package/src/models/GlobalWalletAccessControlResponse.cjs +33 -0
- package/src/models/GlobalWalletAccessControlResponse.d.ts +28 -0
- package/src/models/GlobalWalletAccessControlResponse.js +27 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -60,6 +60,7 @@ require('../models/ExportStatusEnum.cjs');
|
|
|
60
60
|
require('../models/ExternalWalletFundingDefaultChain.cjs');
|
|
61
61
|
require('../models/GateRuleType.cjs');
|
|
62
62
|
var GlobalWalletAccessControlDomainResponse = require('../models/GlobalWalletAccessControlDomainResponse.cjs');
|
|
63
|
+
var GlobalWalletAccessControlResponse = require('../models/GlobalWalletAccessControlResponse.cjs');
|
|
63
64
|
require('../models/GlobalWalletAccessControlTypeEnum.cjs');
|
|
64
65
|
require('../models/HealthcheckStatus.cjs');
|
|
65
66
|
require('../models/InviteStatusEnum.cjs');
|
|
@@ -124,9 +125,6 @@ class GlobalWalletAccessControlApi extends runtime.BaseAPI {
|
|
|
124
125
|
*/
|
|
125
126
|
deleteGlobalWalletAccessControlDomainByIdRaw(requestParameters, initOverrides) {
|
|
126
127
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
128
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteGlobalWalletAccessControlDomainById.');
|
|
129
|
-
}
|
|
130
128
|
if (requestParameters.globalWalletAccessControlId === null || requestParameters.globalWalletAccessControlId === undefined) {
|
|
131
129
|
throw new runtime.RequiredError('globalWalletAccessControlId', 'Required parameter requestParameters.globalWalletAccessControlId was null or undefined when calling deleteGlobalWalletAccessControlDomainById.');
|
|
132
130
|
}
|
|
@@ -140,7 +138,7 @@ class GlobalWalletAccessControlApi extends runtime.BaseAPI {
|
|
|
140
138
|
}
|
|
141
139
|
}
|
|
142
140
|
const response = yield this.request({
|
|
143
|
-
path: `/
|
|
141
|
+
path: `/globalWallet/accessControl/{globalWalletAccessControlId}`.replace(`{${"globalWalletAccessControlId"}}`, encodeURIComponent(String(requestParameters.globalWalletAccessControlId))),
|
|
144
142
|
method: 'DELETE',
|
|
145
143
|
headers: headerParameters,
|
|
146
144
|
query: queryParameters,
|
|
@@ -179,7 +177,7 @@ class GlobalWalletAccessControlApi extends runtime.BaseAPI {
|
|
|
179
177
|
headers: headerParameters,
|
|
180
178
|
query: queryParameters,
|
|
181
179
|
}, initOverrides);
|
|
182
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
180
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
183
181
|
});
|
|
184
182
|
}
|
|
185
183
|
/**
|
|
@@ -10,13 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AddGlobalWalletAccessControlDomainRequest, GlobalWalletAccessControlDomainResponse } from '../models';
|
|
13
|
+
import { AddGlobalWalletAccessControlDomainRequest, GlobalWalletAccessControlDomainResponse, GlobalWalletAccessControlResponse } from '../models';
|
|
14
14
|
export interface AddGlobalWalletAccessControlDomainOperationRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
addGlobalWalletAccessControlDomainRequest: AddGlobalWalletAccessControlDomainRequest;
|
|
17
17
|
}
|
|
18
18
|
export interface DeleteGlobalWalletAccessControlDomainByIdRequest {
|
|
19
|
-
environmentId: string;
|
|
20
19
|
globalWalletAccessControlId: string;
|
|
21
20
|
}
|
|
22
21
|
export interface GetGlobalWalletAccessControlListRequest {
|
|
@@ -45,9 +44,9 @@ export declare class GlobalWalletAccessControlApi extends runtime.BaseAPI {
|
|
|
45
44
|
/**
|
|
46
45
|
* Get all the global wallet access control domains for a project environment
|
|
47
46
|
*/
|
|
48
|
-
getGlobalWalletAccessControlListRaw(requestParameters: GetGlobalWalletAccessControlListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<
|
|
47
|
+
getGlobalWalletAccessControlListRaw(requestParameters: GetGlobalWalletAccessControlListRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GlobalWalletAccessControlResponse>>;
|
|
49
48
|
/**
|
|
50
49
|
* Get all the global wallet access control domains for a project environment
|
|
51
50
|
*/
|
|
52
|
-
getGlobalWalletAccessControlList(requestParameters: GetGlobalWalletAccessControlListRequest, initOverrides?: RequestInit): Promise<
|
|
51
|
+
getGlobalWalletAccessControlList(requestParameters: GetGlobalWalletAccessControlListRequest, initOverrides?: RequestInit): Promise<GlobalWalletAccessControlResponse>;
|
|
53
52
|
}
|
|
@@ -56,6 +56,7 @@ import '../models/ExportStatusEnum.js';
|
|
|
56
56
|
import '../models/ExternalWalletFundingDefaultChain.js';
|
|
57
57
|
import '../models/GateRuleType.js';
|
|
58
58
|
import { GlobalWalletAccessControlDomainResponseFromJSON } from '../models/GlobalWalletAccessControlDomainResponse.js';
|
|
59
|
+
import { GlobalWalletAccessControlResponseFromJSON } from '../models/GlobalWalletAccessControlResponse.js';
|
|
59
60
|
import '../models/GlobalWalletAccessControlTypeEnum.js';
|
|
60
61
|
import '../models/HealthcheckStatus.js';
|
|
61
62
|
import '../models/InviteStatusEnum.js';
|
|
@@ -120,9 +121,6 @@ class GlobalWalletAccessControlApi extends BaseAPI {
|
|
|
120
121
|
*/
|
|
121
122
|
deleteGlobalWalletAccessControlDomainByIdRaw(requestParameters, initOverrides) {
|
|
122
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
124
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteGlobalWalletAccessControlDomainById.');
|
|
125
|
-
}
|
|
126
124
|
if (requestParameters.globalWalletAccessControlId === null || requestParameters.globalWalletAccessControlId === undefined) {
|
|
127
125
|
throw new RequiredError('globalWalletAccessControlId', 'Required parameter requestParameters.globalWalletAccessControlId was null or undefined when calling deleteGlobalWalletAccessControlDomainById.');
|
|
128
126
|
}
|
|
@@ -136,7 +134,7 @@ class GlobalWalletAccessControlApi extends BaseAPI {
|
|
|
136
134
|
}
|
|
137
135
|
}
|
|
138
136
|
const response = yield this.request({
|
|
139
|
-
path: `/
|
|
137
|
+
path: `/globalWallet/accessControl/{globalWalletAccessControlId}`.replace(`{${"globalWalletAccessControlId"}}`, encodeURIComponent(String(requestParameters.globalWalletAccessControlId))),
|
|
140
138
|
method: 'DELETE',
|
|
141
139
|
headers: headerParameters,
|
|
142
140
|
query: queryParameters,
|
|
@@ -175,7 +173,7 @@ class GlobalWalletAccessControlApi extends BaseAPI {
|
|
|
175
173
|
headers: headerParameters,
|
|
176
174
|
query: queryParameters,
|
|
177
175
|
}, initOverrides);
|
|
178
|
-
return new JSONApiResponse(response, (jsonValue) => jsonValue
|
|
176
|
+
return new JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
179
177
|
});
|
|
180
178
|
}
|
|
181
179
|
/**
|
package/src/index.cjs
CHANGED
|
@@ -182,6 +182,7 @@ var GateUpdateRequest = require('./models/GateUpdateRequest.cjs');
|
|
|
182
182
|
var GatesResponse = require('./models/GatesResponse.cjs');
|
|
183
183
|
var GetUserPasskeysResponse = require('./models/GetUserPasskeysResponse.cjs');
|
|
184
184
|
var GlobalWalletAccessControlDomainResponse = require('./models/GlobalWalletAccessControlDomainResponse.cjs');
|
|
185
|
+
var GlobalWalletAccessControlResponse = require('./models/GlobalWalletAccessControlResponse.cjs');
|
|
185
186
|
var GlobalWalletAccessControlTypeEnum = require('./models/GlobalWalletAccessControlTypeEnum.cjs');
|
|
186
187
|
var GlobalWalletSettings = require('./models/GlobalWalletSettings.cjs');
|
|
187
188
|
var GlobalWalletSettingsCreateRequest = require('./models/GlobalWalletSettingsCreateRequest.cjs');
|
|
@@ -1055,6 +1056,9 @@ exports.GetUserPasskeysResponseToJSON = GetUserPasskeysResponse.GetUserPasskeysR
|
|
|
1055
1056
|
exports.GlobalWalletAccessControlDomainResponseFromJSON = GlobalWalletAccessControlDomainResponse.GlobalWalletAccessControlDomainResponseFromJSON;
|
|
1056
1057
|
exports.GlobalWalletAccessControlDomainResponseFromJSONTyped = GlobalWalletAccessControlDomainResponse.GlobalWalletAccessControlDomainResponseFromJSONTyped;
|
|
1057
1058
|
exports.GlobalWalletAccessControlDomainResponseToJSON = GlobalWalletAccessControlDomainResponse.GlobalWalletAccessControlDomainResponseToJSON;
|
|
1059
|
+
exports.GlobalWalletAccessControlResponseFromJSON = GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON;
|
|
1060
|
+
exports.GlobalWalletAccessControlResponseFromJSONTyped = GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSONTyped;
|
|
1061
|
+
exports.GlobalWalletAccessControlResponseToJSON = GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseToJSON;
|
|
1058
1062
|
Object.defineProperty(exports, 'GlobalWalletAccessControlTypeEnum', {
|
|
1059
1063
|
enumerable: true,
|
|
1060
1064
|
get: function () { return GlobalWalletAccessControlTypeEnum.GlobalWalletAccessControlTypeEnum; }
|
package/src/index.js
CHANGED
|
@@ -178,6 +178,7 @@ export { GateUpdateRequestFromJSON, GateUpdateRequestFromJSONTyped, GateUpdateRe
|
|
|
178
178
|
export { GatesResponseFromJSON, GatesResponseFromJSONTyped, GatesResponseToJSON } from './models/GatesResponse.js';
|
|
179
179
|
export { GetUserPasskeysResponseFromJSON, GetUserPasskeysResponseFromJSONTyped, GetUserPasskeysResponseToJSON } from './models/GetUserPasskeysResponse.js';
|
|
180
180
|
export { GlobalWalletAccessControlDomainResponseFromJSON, GlobalWalletAccessControlDomainResponseFromJSONTyped, GlobalWalletAccessControlDomainResponseToJSON } from './models/GlobalWalletAccessControlDomainResponse.js';
|
|
181
|
+
export { GlobalWalletAccessControlResponseFromJSON, GlobalWalletAccessControlResponseFromJSONTyped, GlobalWalletAccessControlResponseToJSON } from './models/GlobalWalletAccessControlResponse.js';
|
|
181
182
|
export { GlobalWalletAccessControlTypeEnum, GlobalWalletAccessControlTypeEnumFromJSON, GlobalWalletAccessControlTypeEnumFromJSONTyped, GlobalWalletAccessControlTypeEnumToJSON } from './models/GlobalWalletAccessControlTypeEnum.js';
|
|
182
183
|
export { GlobalWalletSettingsFromJSON, GlobalWalletSettingsFromJSONTyped, GlobalWalletSettingsToJSON } from './models/GlobalWalletSettings.js';
|
|
183
184
|
export { GlobalWalletSettingsCreateRequestFromJSON, GlobalWalletSettingsCreateRequestFromJSONTyped, GlobalWalletSettingsCreateRequestToJSON } from './models/GlobalWalletSettingsCreateRequest.js';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
5
6
|
var GlobalWalletAccessControlTypeEnum = require('./GlobalWalletAccessControlTypeEnum.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
@@ -14,8 +15,8 @@ function GlobalWalletAccessControlDomainResponseFromJSONTyped(json, ignoreDiscri
|
|
|
14
15
|
}
|
|
15
16
|
return {
|
|
16
17
|
'id': json['id'],
|
|
17
|
-
'domain': json['domain'],
|
|
18
|
-
'type': GlobalWalletAccessControlTypeEnum.GlobalWalletAccessControlTypeEnumFromJSON(json['type']),
|
|
18
|
+
'domain': !runtime.exists(json, 'domain') ? undefined : json['domain'],
|
|
19
|
+
'type': !runtime.exists(json, 'type') ? undefined : GlobalWalletAccessControlTypeEnum.GlobalWalletAccessControlTypeEnumFromJSON(json['type']),
|
|
19
20
|
'createdAt': (new Date(json['createdAt'])),
|
|
20
21
|
};
|
|
21
22
|
}
|
|
@@ -27,13 +27,13 @@ export interface GlobalWalletAccessControlDomainResponse {
|
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof GlobalWalletAccessControlDomainResponse
|
|
29
29
|
*/
|
|
30
|
-
domain
|
|
30
|
+
domain?: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {GlobalWalletAccessControlTypeEnum}
|
|
34
34
|
* @memberof GlobalWalletAccessControlDomainResponse
|
|
35
35
|
*/
|
|
36
|
-
type
|
|
36
|
+
type?: GlobalWalletAccessControlTypeEnum;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {Date}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { GlobalWalletAccessControlTypeEnumFromJSON, GlobalWalletAccessControlTypeEnumToJSON } from './GlobalWalletAccessControlTypeEnum.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
@@ -10,8 +11,8 @@ function GlobalWalletAccessControlDomainResponseFromJSONTyped(json, ignoreDiscri
|
|
|
10
11
|
}
|
|
11
12
|
return {
|
|
12
13
|
'id': json['id'],
|
|
13
|
-
'domain': json['domain'],
|
|
14
|
-
'type': GlobalWalletAccessControlTypeEnumFromJSON(json['type']),
|
|
14
|
+
'domain': !exists(json, 'domain') ? undefined : json['domain'],
|
|
15
|
+
'type': !exists(json, 'type') ? undefined : GlobalWalletAccessControlTypeEnumFromJSON(json['type']),
|
|
15
16
|
'createdAt': (new Date(json['createdAt'])),
|
|
16
17
|
};
|
|
17
18
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var GlobalWalletAccessControlDomainResponse = require('./GlobalWalletAccessControlDomainResponse.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function GlobalWalletAccessControlResponseFromJSON(json) {
|
|
9
|
+
return GlobalWalletAccessControlResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function GlobalWalletAccessControlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'globalWalletAccessControl': (json['globalWalletAccessControl'].map(GlobalWalletAccessControlDomainResponse.GlobalWalletAccessControlDomainResponseFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function GlobalWalletAccessControlResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'globalWalletAccessControl': (value.globalWalletAccessControl.map(GlobalWalletAccessControlDomainResponse.GlobalWalletAccessControlDomainResponseToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.GlobalWalletAccessControlResponseFromJSON = GlobalWalletAccessControlResponseFromJSON;
|
|
32
|
+
exports.GlobalWalletAccessControlResponseFromJSONTyped = GlobalWalletAccessControlResponseFromJSONTyped;
|
|
33
|
+
exports.GlobalWalletAccessControlResponseToJSON = GlobalWalletAccessControlResponseToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { GlobalWalletAccessControlDomainResponse } from './GlobalWalletAccessControlDomainResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GlobalWalletAccessControlResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GlobalWalletAccessControlResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GlobalWalletAccessControlDomainResponse>}
|
|
22
|
+
* @memberof GlobalWalletAccessControlResponse
|
|
23
|
+
*/
|
|
24
|
+
globalWalletAccessControl: Array<GlobalWalletAccessControlDomainResponse>;
|
|
25
|
+
}
|
|
26
|
+
export declare function GlobalWalletAccessControlResponseFromJSON(json: any): GlobalWalletAccessControlResponse;
|
|
27
|
+
export declare function GlobalWalletAccessControlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletAccessControlResponse;
|
|
28
|
+
export declare function GlobalWalletAccessControlResponseToJSON(value?: GlobalWalletAccessControlResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GlobalWalletAccessControlDomainResponseFromJSON, GlobalWalletAccessControlDomainResponseToJSON } from './GlobalWalletAccessControlDomainResponse.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function GlobalWalletAccessControlResponseFromJSON(json) {
|
|
5
|
+
return GlobalWalletAccessControlResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function GlobalWalletAccessControlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'globalWalletAccessControl': (json['globalWalletAccessControl'].map(GlobalWalletAccessControlDomainResponseFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function GlobalWalletAccessControlResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'globalWalletAccessControl': (value.globalWalletAccessControl.map(GlobalWalletAccessControlDomainResponseToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { GlobalWalletAccessControlResponseFromJSON, GlobalWalletAccessControlResponseFromJSONTyped, GlobalWalletAccessControlResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export * from './GateUpdateRequest';
|
|
|
142
142
|
export * from './GatesResponse';
|
|
143
143
|
export * from './GetUserPasskeysResponse';
|
|
144
144
|
export * from './GlobalWalletAccessControlDomainResponse';
|
|
145
|
+
export * from './GlobalWalletAccessControlResponse';
|
|
145
146
|
export * from './GlobalWalletAccessControlTypeEnum';
|
|
146
147
|
export * from './GlobalWalletSettings';
|
|
147
148
|
export * from './GlobalWalletSettingsCreateRequest';
|