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