@dynamic-labs/sdk-api 0.0.921 → 0.0.923
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 +6187 -7365
- package/src/apis/SDKApi.d.ts +3 -2
- package/src/apis/SDKApi.js +6187 -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 +8 -4
- package/src/index.js +2 -1
- package/src/models/CreateEmbeddedWalletSpecificOpts.cjs +2 -2
- package/src/models/CreateEmbeddedWalletSpecificOpts.js +2 -2
- package/src/models/NetworkConfiguration.cjs +4 -0
- package/src/models/NetworkConfiguration.d.ts +12 -0
- package/src/models/NetworkConfiguration.js +4 -0
- package/src/models/PrepareSigningRequest.cjs +35 -0
- package/src/models/PrepareSigningRequest.d.ts +33 -0
- package/src/models/PrepareSigningRequest.js +29 -0
- 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 +2 -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');
|
|
@@ -122,118 +121,106 @@ class MfaSettingsApi extends runtime.BaseAPI {
|
|
|
122
121
|
* Disables the specified MFA device type for the organization.
|
|
123
122
|
* Disable the given mfa device for the organization
|
|
124
123
|
*/
|
|
125
|
-
disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
async disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
125
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
126
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
127
|
+
}
|
|
128
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
129
|
+
throw new runtime.RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
130
|
+
}
|
|
131
|
+
const queryParameters = {};
|
|
132
|
+
const headerParameters = {};
|
|
133
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
134
|
+
const token = this.configuration.accessToken;
|
|
135
|
+
const tokenString = await token("bearerAuth", []);
|
|
136
|
+
if (tokenString) {
|
|
137
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
129
138
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if (tokenString) {
|
|
139
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
const response = yield this.request({
|
|
143
|
-
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/disable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
144
|
-
method: 'PUT',
|
|
145
|
-
headers: headerParameters,
|
|
146
|
-
query: queryParameters,
|
|
147
|
-
}, initOverrides);
|
|
148
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettings.OrganizationMfaSettingsFromJSON(jsonValue));
|
|
149
|
-
});
|
|
139
|
+
}
|
|
140
|
+
const response = await this.request({
|
|
141
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/disable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
142
|
+
method: 'PUT',
|
|
143
|
+
headers: headerParameters,
|
|
144
|
+
query: queryParameters,
|
|
145
|
+
}, initOverrides);
|
|
146
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettings.OrganizationMfaSettingsFromJSON(jsonValue));
|
|
150
147
|
}
|
|
151
148
|
/**
|
|
152
149
|
* Disables the specified MFA device type for the organization.
|
|
153
150
|
* Disable the given mfa device for the organization
|
|
154
151
|
*/
|
|
155
|
-
disableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return yield response.value();
|
|
159
|
-
});
|
|
152
|
+
async disableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
153
|
+
const response = await this.disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
154
|
+
return await response.value();
|
|
160
155
|
}
|
|
161
156
|
/**
|
|
162
157
|
* Enables the specified MFA device type for the organization.
|
|
163
158
|
* Enable the given mfa device for the organization
|
|
164
159
|
*/
|
|
165
|
-
enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
160
|
+
async enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
161
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
162
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
163
|
+
}
|
|
164
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
165
|
+
throw new runtime.RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
166
|
+
}
|
|
167
|
+
const queryParameters = {};
|
|
168
|
+
const headerParameters = {};
|
|
169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = await token("bearerAuth", []);
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
172
174
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
const response = yield this.request({
|
|
183
|
-
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/enable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
184
|
-
method: 'PUT',
|
|
185
|
-
headers: headerParameters,
|
|
186
|
-
query: queryParameters,
|
|
187
|
-
}, initOverrides);
|
|
188
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettings.OrganizationMfaSettingsFromJSON(jsonValue));
|
|
189
|
-
});
|
|
175
|
+
}
|
|
176
|
+
const response = await this.request({
|
|
177
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/enable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
178
|
+
method: 'PUT',
|
|
179
|
+
headers: headerParameters,
|
|
180
|
+
query: queryParameters,
|
|
181
|
+
}, initOverrides);
|
|
182
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettings.OrganizationMfaSettingsFromJSON(jsonValue));
|
|
190
183
|
}
|
|
191
184
|
/**
|
|
192
185
|
* Enables the specified MFA device type for the organization.
|
|
193
186
|
* Enable the given mfa device for the organization
|
|
194
187
|
*/
|
|
195
|
-
enableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return yield response.value();
|
|
199
|
-
});
|
|
188
|
+
async enableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
189
|
+
const response = await this.enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
190
|
+
return await response.value();
|
|
200
191
|
}
|
|
201
192
|
/**
|
|
202
193
|
* Returns the MFA settings for the specified organization.
|
|
203
194
|
* Get all mfa settings for an organization
|
|
204
195
|
*/
|
|
205
|
-
getOrganizationMfaSettingsRaw(requestParameters, initOverrides) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
217
|
-
}
|
|
196
|
+
async getOrganizationMfaSettingsRaw(requestParameters, initOverrides) {
|
|
197
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
198
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationMfaSettings.');
|
|
199
|
+
}
|
|
200
|
+
const queryParameters = {};
|
|
201
|
+
const headerParameters = {};
|
|
202
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
203
|
+
const token = this.configuration.accessToken;
|
|
204
|
+
const tokenString = await token("bearerAuth", []);
|
|
205
|
+
if (tokenString) {
|
|
206
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
218
207
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
208
|
+
}
|
|
209
|
+
const response = await this.request({
|
|
210
|
+
path: `/organizations/{organizationId}/mfaSettings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
211
|
+
method: 'GET',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
}, initOverrides);
|
|
215
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsResponse.OrganizationMfaSettingsResponseFromJSON(jsonValue));
|
|
227
216
|
}
|
|
228
217
|
/**
|
|
229
218
|
* Returns the MFA settings for the specified organization.
|
|
230
219
|
* Get all mfa settings for an organization
|
|
231
220
|
*/
|
|
232
|
-
getOrganizationMfaSettings(requestParameters, initOverrides) {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return yield response.value();
|
|
236
|
-
});
|
|
221
|
+
async getOrganizationMfaSettings(requestParameters, initOverrides) {
|
|
222
|
+
const response = await this.getOrganizationMfaSettingsRaw(requestParameters, initOverrides);
|
|
223
|
+
return await response.value();
|
|
237
224
|
}
|
|
238
225
|
}
|
|
239
226
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
1
|
import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
|
|
3
2
|
import '../models/AccessOutcomeEnum.js';
|
|
4
3
|
import '../models/ExchangeKeyEnum.js';
|
|
@@ -118,118 +117,106 @@ class MfaSettingsApi extends BaseAPI {
|
|
|
118
117
|
* Disables the specified MFA device type for the organization.
|
|
119
118
|
* Disable the given mfa device for the organization
|
|
120
119
|
*/
|
|
121
|
-
disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
async disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
121
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
122
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
123
|
+
}
|
|
124
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
125
|
+
throw new RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
126
|
+
}
|
|
127
|
+
const queryParameters = {};
|
|
128
|
+
const headerParameters = {};
|
|
129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
130
|
+
const token = this.configuration.accessToken;
|
|
131
|
+
const tokenString = await token("bearerAuth", []);
|
|
132
|
+
if (tokenString) {
|
|
133
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
125
134
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (tokenString) {
|
|
135
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
const response = yield this.request({
|
|
139
|
-
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/disable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
140
|
-
method: 'PUT',
|
|
141
|
-
headers: headerParameters,
|
|
142
|
-
query: queryParameters,
|
|
143
|
-
}, initOverrides);
|
|
144
|
-
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsFromJSON(jsonValue));
|
|
145
|
-
});
|
|
135
|
+
}
|
|
136
|
+
const response = await this.request({
|
|
137
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/disable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
138
|
+
method: 'PUT',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
}, initOverrides);
|
|
142
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsFromJSON(jsonValue));
|
|
146
143
|
}
|
|
147
144
|
/**
|
|
148
145
|
* Disables the specified MFA device type for the organization.
|
|
149
146
|
* Disable the given mfa device for the organization
|
|
150
147
|
*/
|
|
151
|
-
disableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return yield response.value();
|
|
155
|
-
});
|
|
148
|
+
async disableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
149
|
+
const response = await this.disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
150
|
+
return await response.value();
|
|
156
151
|
}
|
|
157
152
|
/**
|
|
158
153
|
* Enables the specified MFA device type for the organization.
|
|
159
154
|
* Enable the given mfa device for the organization
|
|
160
155
|
*/
|
|
161
|
-
enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
156
|
+
async enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
157
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
158
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
159
|
+
}
|
|
160
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
161
|
+
throw new RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
166
|
+
const token = this.configuration.accessToken;
|
|
167
|
+
const tokenString = await token("bearerAuth", []);
|
|
168
|
+
if (tokenString) {
|
|
169
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
168
170
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
const response = yield this.request({
|
|
179
|
-
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/enable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
180
|
-
method: 'PUT',
|
|
181
|
-
headers: headerParameters,
|
|
182
|
-
query: queryParameters,
|
|
183
|
-
}, initOverrides);
|
|
184
|
-
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsFromJSON(jsonValue));
|
|
185
|
-
});
|
|
171
|
+
}
|
|
172
|
+
const response = await this.request({
|
|
173
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/enable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
174
|
+
method: 'PUT',
|
|
175
|
+
headers: headerParameters,
|
|
176
|
+
query: queryParameters,
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsFromJSON(jsonValue));
|
|
186
179
|
}
|
|
187
180
|
/**
|
|
188
181
|
* Enables the specified MFA device type for the organization.
|
|
189
182
|
* Enable the given mfa device for the organization
|
|
190
183
|
*/
|
|
191
|
-
enableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
return yield response.value();
|
|
195
|
-
});
|
|
184
|
+
async enableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
185
|
+
const response = await this.enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
186
|
+
return await response.value();
|
|
196
187
|
}
|
|
197
188
|
/**
|
|
198
189
|
* Returns the MFA settings for the specified organization.
|
|
199
190
|
* Get all mfa settings for an organization
|
|
200
191
|
*/
|
|
201
|
-
getOrganizationMfaSettingsRaw(requestParameters, initOverrides) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
|
-
}
|
|
192
|
+
async getOrganizationMfaSettingsRaw(requestParameters, initOverrides) {
|
|
193
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
194
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationMfaSettings.');
|
|
195
|
+
}
|
|
196
|
+
const queryParameters = {};
|
|
197
|
+
const headerParameters = {};
|
|
198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
199
|
+
const token = this.configuration.accessToken;
|
|
200
|
+
const tokenString = await token("bearerAuth", []);
|
|
201
|
+
if (tokenString) {
|
|
202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
214
203
|
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
204
|
+
}
|
|
205
|
+
const response = await this.request({
|
|
206
|
+
path: `/organizations/{organizationId}/mfaSettings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
207
|
+
method: 'GET',
|
|
208
|
+
headers: headerParameters,
|
|
209
|
+
query: queryParameters,
|
|
210
|
+
}, initOverrides);
|
|
211
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsResponseFromJSON(jsonValue));
|
|
223
212
|
}
|
|
224
213
|
/**
|
|
225
214
|
* Returns the MFA settings for the specified organization.
|
|
226
215
|
* Get all mfa settings for an organization
|
|
227
216
|
*/
|
|
228
|
-
getOrganizationMfaSettings(requestParameters, initOverrides) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return yield response.value();
|
|
232
|
-
});
|
|
217
|
+
async getOrganizationMfaSettings(requestParameters, initOverrides) {
|
|
218
|
+
const response = await this.getOrganizationMfaSettingsRaw(requestParameters, initOverrides);
|
|
219
|
+
return await response.value();
|
|
233
220
|
}
|
|
234
221
|
}
|
|
235
222
|
|