@dynamic-labs/sdk-api 0.0.921 → 0.0.922
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/AllowlistsApi.cjs +245 -286
- package/src/apis/AllowlistsApi.js +245 -286
- package/src/apis/AnalyticsApi.cjs +210 -235
- package/src/apis/AnalyticsApi.js +210 -235
- package/src/apis/ChainalysisApi.cjs +66 -79
- package/src/apis/ChainalysisApi.js +66 -79
- package/src/apis/ChainsApi.cjs +25 -30
- package/src/apis/ChainsApi.js +25 -30
- package/src/apis/CustomFieldsApi.cjs +119 -140
- package/src/apis/CustomFieldsApi.js +119 -140
- package/src/apis/CustomHostnamesApi.cjs +55 -68
- package/src/apis/CustomHostnamesApi.js +55 -68
- package/src/apis/CustomNetworksApi.cjs +128 -149
- package/src/apis/CustomNetworksApi.js +128 -149
- package/src/apis/DeeplinkUrlsApi.cjs +70 -83
- package/src/apis/DeeplinkUrlsApi.js +70 -83
- package/src/apis/DepositApi.cjs +83 -100
- package/src/apis/DepositApi.js +83 -100
- package/src/apis/EnvironmentsApi.cjs +168 -197
- package/src/apis/EnvironmentsApi.js +168 -197
- package/src/apis/EventsApi.cjs +60 -73
- package/src/apis/EventsApi.js +60 -73
- package/src/apis/ExportsApi.cjs +89 -106
- package/src/apis/ExportsApi.js +89 -106
- package/src/apis/ExternalJwtApi.cjs +27 -32
- package/src/apis/ExternalJwtApi.js +27 -32
- package/src/apis/GatesApi.cjs +154 -183
- package/src/apis/GatesApi.js +154 -183
- package/src/apis/GlobalWalletAccessControlApi.cjs +159 -188
- package/src/apis/GlobalWalletAccessControlApi.js +159 -188
- package/src/apis/GlobalWalletConnectionsApi.cjs +28 -33
- package/src/apis/GlobalWalletConnectionsApi.js +28 -33
- package/src/apis/GlobalWalletsApi.cjs +90 -111
- package/src/apis/GlobalWalletsApi.js +90 -111
- package/src/apis/InvitesApi.cjs +120 -141
- package/src/apis/InvitesApi.js +120 -141
- package/src/apis/MembersApi.cjs +115 -136
- package/src/apis/MembersApi.js +115 -136
- package/src/apis/MfaApi.cjs +42 -51
- package/src/apis/MfaApi.js +42 -51
- package/src/apis/MfaSettingsApi.cjs +72 -85
- package/src/apis/MfaSettingsApi.js +72 -85
- package/src/apis/NameServicesApi.cjs +123 -148
- package/src/apis/NameServicesApi.js +123 -148
- package/src/apis/OrganizationsApi.cjs +328 -381
- package/src/apis/OrganizationsApi.js +328 -381
- package/src/apis/OriginsApi.cjs +58 -71
- package/src/apis/OriginsApi.js +58 -71
- package/src/apis/ProjectsApi.cjs +119 -140
- package/src/apis/ProjectsApi.js +119 -140
- package/src/apis/SDKApi.cjs +6184 -7365
- package/src/apis/SDKApi.d.ts +2 -2
- package/src/apis/SDKApi.js +6184 -7365
- package/src/apis/SDKViewsApi.cjs +59 -72
- package/src/apis/SDKViewsApi.js +59 -72
- package/src/apis/SessionsApi.cjs +69 -82
- package/src/apis/SessionsApi.js +69 -82
- package/src/apis/SettingsApi.cjs +273 -330
- package/src/apis/SettingsApi.js +273 -330
- package/src/apis/TestAccountApi.cjs +47 -60
- package/src/apis/TestAccountApi.js +47 -60
- package/src/apis/TokensApi.cjs +92 -109
- package/src/apis/TokensApi.js +92 -109
- package/src/apis/UserApiTokensApi.cjs +64 -77
- package/src/apis/UserApiTokensApi.js +64 -77
- package/src/apis/UsersApi.cjs +357 -410
- package/src/apis/UsersApi.js +357 -410
- package/src/apis/VisitsApi.cjs +34 -39
- package/src/apis/VisitsApi.js +34 -39
- package/src/apis/WaasApi.cjs +470 -559
- package/src/apis/WaasApi.js +470 -559
- package/src/apis/WalletConnectApi.cjs +21 -26
- package/src/apis/WalletConnectApi.js +21 -26
- package/src/apis/WalletsApi.cjs +340 -393
- package/src/apis/WalletsApi.js +340 -393
- package/src/apis/WebhooksApi.cjs +167 -200
- package/src/apis/WebhooksApi.js +167 -200
- package/src/index.cjs +4 -4
- package/src/index.js +1 -1
- package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
- package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
- package/src/models/Provider.cjs +2 -0
- package/src/models/Provider.d.ts +6 -0
- package/src/models/Provider.js +2 -0
- package/src/models/ProviderCreateRequest.cjs +2 -0
- package/src/models/ProviderCreateRequest.d.ts +6 -0
- package/src/models/ProviderCreateRequest.js +2 -0
- package/src/models/ProviderUpdateRequest.cjs +2 -0
- package/src/models/ProviderUpdateRequest.d.ts +6 -0
- package/src/models/ProviderUpdateRequest.js +2 -0
- package/src/models/TransactionFeeEstimateRequest.cjs +37 -0
- package/src/models/TransactionFeeEstimateRequest.d.ts +39 -0
- package/src/models/TransactionFeeEstimateRequest.js +31 -0
- package/src/models/index.d.ts +1 -1
- package/src/runtime.cjs +45 -36
- package/src/runtime.js +45 -36
- package/_virtual/_tslib.cjs +0 -35
- package/_virtual/_tslib.js +0 -31
- package/src/models/InlineObject1.cjs +0 -43
- package/src/models/InlineObject1.d.ts +0 -27
- package/src/models/InlineObject1.js +0 -37
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
5
|
var runtime = require('../runtime.cjs');
|
|
7
6
|
require('../models/AccessOutcomeEnum.cjs');
|
|
8
7
|
require('../models/ExchangeKeyEnum.cjs');
|
|
@@ -124,263 +123,235 @@ class GlobalWalletAccessControlApi extends runtime.BaseAPI {
|
|
|
124
123
|
* Adds a domain to the allowed or blocked list for global wallet access in this project environment.
|
|
125
124
|
* Adds a domain to be allowed or blocked for global wallet access for this project environment
|
|
126
125
|
*/
|
|
127
|
-
addGlobalWalletAccessControlDomainRaw(requestParameters, initOverrides) {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
async addGlobalWalletAccessControlDomainRaw(requestParameters, initOverrides) {
|
|
127
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
128
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling addGlobalWalletAccessControlDomain.');
|
|
129
|
+
}
|
|
130
|
+
if (requestParameters.globalWalletAccessControlDomainCreateRequest === null || requestParameters.globalWalletAccessControlDomainCreateRequest === undefined) {
|
|
131
|
+
throw new runtime.RequiredError('globalWalletAccessControlDomainCreateRequest', 'Required parameter requestParameters.globalWalletAccessControlDomainCreateRequest was null or undefined when calling addGlobalWalletAccessControlDomain.');
|
|
132
|
+
}
|
|
133
|
+
const queryParameters = {};
|
|
134
|
+
const headerParameters = {};
|
|
135
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
136
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
137
|
+
const token = this.configuration.accessToken;
|
|
138
|
+
const tokenString = await token("bearerAuth", []);
|
|
139
|
+
if (tokenString) {
|
|
140
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
131
141
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (tokenString) {
|
|
142
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
const response = yield this.request({
|
|
146
|
-
path: `/environments/{environmentId}/globalWallet/accessControl/domains`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
147
|
-
method: 'POST',
|
|
148
|
-
headers: headerParameters,
|
|
149
|
-
query: queryParameters,
|
|
150
|
-
body: GlobalWalletAccessControlDomainCreateRequest.GlobalWalletAccessControlDomainCreateRequestToJSON(requestParameters.globalWalletAccessControlDomainCreateRequest),
|
|
151
|
-
}, initOverrides);
|
|
152
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlDomainResponse.GlobalWalletAccessControlDomainResponseFromJSON(jsonValue));
|
|
153
|
-
});
|
|
142
|
+
}
|
|
143
|
+
const response = await this.request({
|
|
144
|
+
path: `/environments/{environmentId}/globalWallet/accessControl/domains`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
145
|
+
method: 'POST',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
body: GlobalWalletAccessControlDomainCreateRequest.GlobalWalletAccessControlDomainCreateRequestToJSON(requestParameters.globalWalletAccessControlDomainCreateRequest),
|
|
149
|
+
}, initOverrides);
|
|
150
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlDomainResponse.GlobalWalletAccessControlDomainResponseFromJSON(jsonValue));
|
|
154
151
|
}
|
|
155
152
|
/**
|
|
156
153
|
* Adds a domain to the allowed or blocked list for global wallet access in this project environment.
|
|
157
154
|
* Adds a domain to be allowed or blocked for global wallet access for this project environment
|
|
158
155
|
*/
|
|
159
|
-
addGlobalWalletAccessControlDomain(requestParameters, initOverrides) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return yield response.value();
|
|
163
|
-
});
|
|
156
|
+
async addGlobalWalletAccessControlDomain(requestParameters, initOverrides) {
|
|
157
|
+
const response = await this.addGlobalWalletAccessControlDomainRaw(requestParameters, initOverrides);
|
|
158
|
+
return await response.value();
|
|
164
159
|
}
|
|
165
160
|
/**
|
|
166
161
|
* Creates a new global wallet access control configuration for the specified environment.
|
|
167
162
|
* Create a global wallet access control for the environment
|
|
168
163
|
*/
|
|
169
|
-
createGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
164
|
+
async createGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
165
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
166
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createGlobalWalletAccessControl.');
|
|
167
|
+
}
|
|
168
|
+
if (requestParameters.globalWalletAccessControlUpdateRequest === null || requestParameters.globalWalletAccessControlUpdateRequest === undefined) {
|
|
169
|
+
throw new runtime.RequiredError('globalWalletAccessControlUpdateRequest', 'Required parameter requestParameters.globalWalletAccessControlUpdateRequest was null or undefined when calling createGlobalWalletAccessControl.');
|
|
170
|
+
}
|
|
171
|
+
const queryParameters = {};
|
|
172
|
+
const headerParameters = {};
|
|
173
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
174
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
175
|
+
const token = this.configuration.accessToken;
|
|
176
|
+
const tokenString = await token("bearerAuth", []);
|
|
177
|
+
if (tokenString) {
|
|
178
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
179
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
const response = yield this.request({
|
|
188
|
-
path: `/environments/{environmentId}/globalWallet/accessControl`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
189
|
-
method: 'POST',
|
|
190
|
-
headers: headerParameters,
|
|
191
|
-
query: queryParameters,
|
|
192
|
-
body: GlobalWalletAccessControlUpdateRequest.GlobalWalletAccessControlUpdateRequestToJSON(requestParameters.globalWalletAccessControlUpdateRequest),
|
|
193
|
-
}, initOverrides);
|
|
194
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
195
|
-
});
|
|
180
|
+
}
|
|
181
|
+
const response = await this.request({
|
|
182
|
+
path: `/environments/{environmentId}/globalWallet/accessControl`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
183
|
+
method: 'POST',
|
|
184
|
+
headers: headerParameters,
|
|
185
|
+
query: queryParameters,
|
|
186
|
+
body: GlobalWalletAccessControlUpdateRequest.GlobalWalletAccessControlUpdateRequestToJSON(requestParameters.globalWalletAccessControlUpdateRequest),
|
|
187
|
+
}, initOverrides);
|
|
188
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
196
189
|
}
|
|
197
190
|
/**
|
|
198
191
|
* Creates a new global wallet access control configuration for the specified environment.
|
|
199
192
|
* Create a global wallet access control for the environment
|
|
200
193
|
*/
|
|
201
|
-
createGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
return yield response.value();
|
|
205
|
-
});
|
|
194
|
+
async createGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
195
|
+
const response = await this.createGlobalWalletAccessControlRaw(requestParameters, initOverrides);
|
|
196
|
+
return await response.value();
|
|
206
197
|
}
|
|
207
198
|
/**
|
|
208
199
|
* Permanently removes a global wallet access control domain by its ID.
|
|
209
200
|
* Delete a global wallet access control domain by id
|
|
210
201
|
*/
|
|
211
|
-
deleteGlobalWalletAccessControlDomainByIdRaw(requestParameters, initOverrides) {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
226
|
-
}
|
|
202
|
+
async deleteGlobalWalletAccessControlDomainByIdRaw(requestParameters, initOverrides) {
|
|
203
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
204
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteGlobalWalletAccessControlDomainById.');
|
|
205
|
+
}
|
|
206
|
+
if (requestParameters.globalWalletAccessControlDomainId === null || requestParameters.globalWalletAccessControlDomainId === undefined) {
|
|
207
|
+
throw new runtime.RequiredError('globalWalletAccessControlDomainId', 'Required parameter requestParameters.globalWalletAccessControlDomainId was null or undefined when calling deleteGlobalWalletAccessControlDomainById.');
|
|
208
|
+
}
|
|
209
|
+
const queryParameters = {};
|
|
210
|
+
const headerParameters = {};
|
|
211
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
212
|
+
const token = this.configuration.accessToken;
|
|
213
|
+
const tokenString = await token("bearerAuth", []);
|
|
214
|
+
if (tokenString) {
|
|
215
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
227
216
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
217
|
+
}
|
|
218
|
+
const response = await this.request({
|
|
219
|
+
path: `/environments/{environmentId}/globalWallet/accessControl/domains/{globalWalletAccessControlDomainId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"globalWalletAccessControlDomainId"}}`, encodeURIComponent(String(requestParameters.globalWalletAccessControlDomainId))),
|
|
220
|
+
method: 'DELETE',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
}, initOverrides);
|
|
224
|
+
return new runtime.VoidApiResponse(response);
|
|
236
225
|
}
|
|
237
226
|
/**
|
|
238
227
|
* Permanently removes a global wallet access control domain by its ID.
|
|
239
228
|
* Delete a global wallet access control domain by id
|
|
240
229
|
*/
|
|
241
|
-
deleteGlobalWalletAccessControlDomainById(requestParameters, initOverrides) {
|
|
242
|
-
|
|
243
|
-
yield this.deleteGlobalWalletAccessControlDomainByIdRaw(requestParameters, initOverrides);
|
|
244
|
-
});
|
|
230
|
+
async deleteGlobalWalletAccessControlDomainById(requestParameters, initOverrides) {
|
|
231
|
+
await this.deleteGlobalWalletAccessControlDomainByIdRaw(requestParameters, initOverrides);
|
|
245
232
|
}
|
|
246
233
|
/**
|
|
247
234
|
* Disables global wallet access control for the specified environment.
|
|
248
235
|
* Disable global wallet access control for this environment
|
|
249
236
|
*/
|
|
250
|
-
disableGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
264
|
-
});
|
|
237
|
+
async disableGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
238
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
239
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disableGlobalWalletAccessControl.');
|
|
240
|
+
}
|
|
241
|
+
const queryParameters = {};
|
|
242
|
+
const headerParameters = {};
|
|
243
|
+
const response = await this.request({
|
|
244
|
+
path: `/environments/{environmentId}/globalWallet/accessControl/disable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
245
|
+
method: 'PUT',
|
|
246
|
+
headers: headerParameters,
|
|
247
|
+
query: queryParameters,
|
|
248
|
+
}, initOverrides);
|
|
249
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
265
250
|
}
|
|
266
251
|
/**
|
|
267
252
|
* Disables global wallet access control for the specified environment.
|
|
268
253
|
* Disable global wallet access control for this environment
|
|
269
254
|
*/
|
|
270
|
-
disableGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
return yield response.value();
|
|
274
|
-
});
|
|
255
|
+
async disableGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
256
|
+
const response = await this.disableGlobalWalletAccessControlRaw(requestParameters, initOverrides);
|
|
257
|
+
return await response.value();
|
|
275
258
|
}
|
|
276
259
|
/**
|
|
277
260
|
* Enables global wallet access control for the specified environment.
|
|
278
261
|
* Enable global wallet access control for this environment
|
|
279
262
|
*/
|
|
280
|
-
enableGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
294
|
-
});
|
|
263
|
+
async enableGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
264
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
265
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling enableGlobalWalletAccessControl.');
|
|
266
|
+
}
|
|
267
|
+
const queryParameters = {};
|
|
268
|
+
const headerParameters = {};
|
|
269
|
+
const response = await this.request({
|
|
270
|
+
path: `/environments/{environmentId}/globalWallet/accessControl/enable`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
271
|
+
method: 'PUT',
|
|
272
|
+
headers: headerParameters,
|
|
273
|
+
query: queryParameters,
|
|
274
|
+
}, initOverrides);
|
|
275
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
295
276
|
}
|
|
296
277
|
/**
|
|
297
278
|
* Enables global wallet access control for the specified environment.
|
|
298
279
|
* Enable global wallet access control for this environment
|
|
299
280
|
*/
|
|
300
|
-
enableGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return yield response.value();
|
|
304
|
-
});
|
|
281
|
+
async enableGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
282
|
+
const response = await this.enableGlobalWalletAccessControlRaw(requestParameters, initOverrides);
|
|
283
|
+
return await response.value();
|
|
305
284
|
}
|
|
306
285
|
/**
|
|
307
286
|
* Returns the global wallet access control domains for the specified environment.
|
|
308
287
|
* Get global wallet access control domains for the environment
|
|
309
288
|
*/
|
|
310
|
-
getGlobalWalletAccessControlListRaw(requestParameters, initOverrides) {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
322
|
-
}
|
|
289
|
+
async getGlobalWalletAccessControlListRaw(requestParameters, initOverrides) {
|
|
290
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
291
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getGlobalWalletAccessControlList.');
|
|
292
|
+
}
|
|
293
|
+
const queryParameters = {};
|
|
294
|
+
const headerParameters = {};
|
|
295
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
296
|
+
const token = this.configuration.accessToken;
|
|
297
|
+
const tokenString = await token("bearerAuth", []);
|
|
298
|
+
if (tokenString) {
|
|
299
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
323
300
|
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
301
|
+
}
|
|
302
|
+
const response = await this.request({
|
|
303
|
+
path: `/environments/{environmentId}/globalWallet/accessControl`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
304
|
+
method: 'GET',
|
|
305
|
+
headers: headerParameters,
|
|
306
|
+
query: queryParameters,
|
|
307
|
+
}, initOverrides);
|
|
308
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
332
309
|
}
|
|
333
310
|
/**
|
|
334
311
|
* Returns the global wallet access control domains for the specified environment.
|
|
335
312
|
* Get global wallet access control domains for the environment
|
|
336
313
|
*/
|
|
337
|
-
getGlobalWalletAccessControlList(requestParameters, initOverrides) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return yield response.value();
|
|
341
|
-
});
|
|
314
|
+
async getGlobalWalletAccessControlList(requestParameters, initOverrides) {
|
|
315
|
+
const response = await this.getGlobalWalletAccessControlListRaw(requestParameters, initOverrides);
|
|
316
|
+
return await response.value();
|
|
342
317
|
}
|
|
343
318
|
/**
|
|
344
319
|
* Updates the global wallet access control configuration for the specified environment.
|
|
345
320
|
* Update a global wallet access control for the environment
|
|
346
321
|
*/
|
|
347
|
-
updateGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
363
|
-
}
|
|
322
|
+
async updateGlobalWalletAccessControlRaw(requestParameters, initOverrides) {
|
|
323
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
324
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateGlobalWalletAccessControl.');
|
|
325
|
+
}
|
|
326
|
+
if (requestParameters.globalWalletAccessControlUpdateRequest === null || requestParameters.globalWalletAccessControlUpdateRequest === undefined) {
|
|
327
|
+
throw new runtime.RequiredError('globalWalletAccessControlUpdateRequest', 'Required parameter requestParameters.globalWalletAccessControlUpdateRequest was null or undefined when calling updateGlobalWalletAccessControl.');
|
|
328
|
+
}
|
|
329
|
+
const queryParameters = {};
|
|
330
|
+
const headerParameters = {};
|
|
331
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
332
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
333
|
+
const token = this.configuration.accessToken;
|
|
334
|
+
const tokenString = await token("bearerAuth", []);
|
|
335
|
+
if (tokenString) {
|
|
336
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
364
337
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
338
|
+
}
|
|
339
|
+
const response = await this.request({
|
|
340
|
+
path: `/environments/{environmentId}/globalWallet/accessControl`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
341
|
+
method: 'PUT',
|
|
342
|
+
headers: headerParameters,
|
|
343
|
+
query: queryParameters,
|
|
344
|
+
body: GlobalWalletAccessControlUpdateRequest.GlobalWalletAccessControlUpdateRequestToJSON(requestParameters.globalWalletAccessControlUpdateRequest),
|
|
345
|
+
}, initOverrides);
|
|
346
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletAccessControlResponse.GlobalWalletAccessControlResponseFromJSON(jsonValue));
|
|
374
347
|
}
|
|
375
348
|
/**
|
|
376
349
|
* Updates the global wallet access control configuration for the specified environment.
|
|
377
350
|
* Update a global wallet access control for the environment
|
|
378
351
|
*/
|
|
379
|
-
updateGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
return yield response.value();
|
|
383
|
-
});
|
|
352
|
+
async updateGlobalWalletAccessControl(requestParameters, initOverrides) {
|
|
353
|
+
const response = await this.updateGlobalWalletAccessControlRaw(requestParameters, initOverrides);
|
|
354
|
+
return await response.value();
|
|
384
355
|
}
|
|
385
356
|
}
|
|
386
357
|
|