@dynamic-labs/sdk-api 0.0.448 → 0.0.449
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/MfaSettingsApi.cjs +173 -0
- package/src/apis/MfaSettingsApi.d.ts +53 -0
- package/src/apis/MfaSettingsApi.js +169 -0
- package/src/apis/index.d.ts +1 -0
- package/src/index.cjs +10 -0
- package/src/index.js +3 -0
- package/src/models/OrganizationMfaSettings.cjs +36 -0
- package/src/models/OrganizationMfaSettings.d.ts +34 -0
- package/src/models/OrganizationMfaSettings.js +30 -0
- package/src/models/OrganizationMfaSettingsResponse.cjs +34 -0
- package/src/models/OrganizationMfaSettingsResponse.d.ts +28 -0
- package/src/models/OrganizationMfaSettingsResponse.js +28 -0
- package/src/models/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _tslib = require('../../_virtual/_tslib.cjs');
|
|
6
|
+
var runtime = require('../runtime.cjs');
|
|
7
|
+
require('../models/AccessOutcomeEnum.cjs');
|
|
8
|
+
require('../models/AuthModeEnum.cjs');
|
|
9
|
+
require('../models/AuthStorageEnum.cjs');
|
|
10
|
+
require('../models/AuthenticatorTransportProtocol.cjs');
|
|
11
|
+
require('../models/JwtVerifiedCredentialFormatEnum.cjs');
|
|
12
|
+
require('../models/ProviderEnum.cjs');
|
|
13
|
+
require('../models/WalletAddressType.cjs');
|
|
14
|
+
require('../models/HardwareWalletEnum.cjs');
|
|
15
|
+
require('../models/PasswordSourceTypeEnum.cjs');
|
|
16
|
+
require('../models/WalletProviderEnum.cjs');
|
|
17
|
+
require('../models/CustomFieldType.cjs');
|
|
18
|
+
require('../models/KycFieldType.cjs');
|
|
19
|
+
require('../models/BillingSubscriptionPlanTypeEnum.cjs');
|
|
20
|
+
require('../models/UnprocessableEntityErrorCode.cjs');
|
|
21
|
+
require('../models/ChainEnum.cjs');
|
|
22
|
+
require('../models/ChainalysisCheckResultEnum.cjs');
|
|
23
|
+
require('../models/EmbeddedWalletProviderEnum.cjs');
|
|
24
|
+
require('../models/UserIdentifierTypeEnum.cjs');
|
|
25
|
+
require('../models/CurrencyType.cjs');
|
|
26
|
+
require('../models/TimeUnitEnum.cjs');
|
|
27
|
+
require('../models/EmbeddedWalletAuthType.cjs');
|
|
28
|
+
require('../models/EmbeddedWalletSecurityMethod.cjs');
|
|
29
|
+
require('../models/EnvironmentEnum.cjs');
|
|
30
|
+
require('../models/SignInProviderEnum.cjs');
|
|
31
|
+
require('../models/SocialSignInProviderEnum.cjs');
|
|
32
|
+
require('../models/SdkViewSectionAlignment.cjs');
|
|
33
|
+
require('../models/SdkViewSectionType.cjs');
|
|
34
|
+
require('../models/SdkViewType.cjs');
|
|
35
|
+
require('../models/MFADeviceType.cjs');
|
|
36
|
+
require('../models/Provider.cjs');
|
|
37
|
+
require('../models/UserFilterableFieldsEnum.cjs');
|
|
38
|
+
require('../models/ExportFormatEnum.cjs');
|
|
39
|
+
require('../models/ExportModelEnum.cjs');
|
|
40
|
+
require('../models/ExportStatusEnum.cjs');
|
|
41
|
+
require('../models/GateRuleType.cjs');
|
|
42
|
+
require('../models/HealthcheckStatus.cjs');
|
|
43
|
+
require('../models/InviteStatusEnum.cjs');
|
|
44
|
+
require('../models/RoleEnum.cjs');
|
|
45
|
+
require('../models/NextViewEnum.cjs');
|
|
46
|
+
require('../models/OauthResultStatus.cjs');
|
|
47
|
+
var OrganizationMfaSettings = require('../models/OrganizationMfaSettings.cjs');
|
|
48
|
+
var OrganizationMfaSettingsResponse = require('../models/OrganizationMfaSettingsResponse.cjs');
|
|
49
|
+
require('../models/WhenToImplementEnum.cjs');
|
|
50
|
+
require('../models/PublishEventsEvents.cjs');
|
|
51
|
+
require('../models/SubscriptionAdvancedScopeEnum.cjs');
|
|
52
|
+
require('../models/SubscriptionFreeScopeEnum.cjs');
|
|
53
|
+
require('../models/VisitorFilterableFieldsEnum.cjs');
|
|
54
|
+
|
|
55
|
+
/* tslint:disable */
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
class MfaSettingsApi extends runtime.BaseAPI {
|
|
60
|
+
/**
|
|
61
|
+
* Disable the given mfa device for the organization
|
|
62
|
+
*/
|
|
63
|
+
disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
64
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
66
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
67
|
+
}
|
|
68
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
69
|
+
throw new runtime.RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
70
|
+
}
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
const headerParameters = {};
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
const token = this.configuration.accessToken;
|
|
75
|
+
const tokenString = yield token("bearerAuth", []);
|
|
76
|
+
if (tokenString) {
|
|
77
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const response = yield this.request({
|
|
81
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/disable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
82
|
+
method: 'PUT',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
}, initOverrides);
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettings.OrganizationMfaSettingsFromJSON(jsonValue));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Disable the given mfa device for the organization
|
|
91
|
+
*/
|
|
92
|
+
disableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
93
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const response = yield this.disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
95
|
+
return yield response.value();
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Enable the given mfa device for the organization
|
|
100
|
+
*/
|
|
101
|
+
enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
102
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
104
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
105
|
+
}
|
|
106
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
107
|
+
throw new runtime.RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
108
|
+
}
|
|
109
|
+
const queryParameters = {};
|
|
110
|
+
const headerParameters = {};
|
|
111
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
+
const token = this.configuration.accessToken;
|
|
113
|
+
const tokenString = yield token("bearerAuth", []);
|
|
114
|
+
if (tokenString) {
|
|
115
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
const response = yield this.request({
|
|
119
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/enable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
120
|
+
method: 'PUT',
|
|
121
|
+
headers: headerParameters,
|
|
122
|
+
query: queryParameters,
|
|
123
|
+
}, initOverrides);
|
|
124
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettings.OrganizationMfaSettingsFromJSON(jsonValue));
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Enable the given mfa device for the organization
|
|
129
|
+
*/
|
|
130
|
+
enableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
131
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
const response = yield this.enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
133
|
+
return yield response.value();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Get all mfa settings for an organization
|
|
138
|
+
*/
|
|
139
|
+
getOrganizationMfaSettingsRaw(requestParameters, initOverrides) {
|
|
140
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
141
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
142
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationMfaSettings.');
|
|
143
|
+
}
|
|
144
|
+
const queryParameters = {};
|
|
145
|
+
const headerParameters = {};
|
|
146
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
147
|
+
const token = this.configuration.accessToken;
|
|
148
|
+
const tokenString = yield token("bearerAuth", []);
|
|
149
|
+
if (tokenString) {
|
|
150
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const response = yield this.request({
|
|
154
|
+
path: `/organizations/{organizationId}/mfaSettings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
155
|
+
method: 'GET',
|
|
156
|
+
headers: headerParameters,
|
|
157
|
+
query: queryParameters,
|
|
158
|
+
}, initOverrides);
|
|
159
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsResponse.OrganizationMfaSettingsResponseFromJSON(jsonValue));
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Get all mfa settings for an organization
|
|
164
|
+
*/
|
|
165
|
+
getOrganizationMfaSettings(requestParameters, initOverrides) {
|
|
166
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
const response = yield this.getOrganizationMfaSettingsRaw(requestParameters, initOverrides);
|
|
168
|
+
return yield response.value();
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
exports.MfaSettingsApi = MfaSettingsApi;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import { MFADeviceType, OrganizationMfaSettings, OrganizationMfaSettingsResponse } from '../models';
|
|
14
|
+
export interface DisableMfaDeviceForOrganizationRequest {
|
|
15
|
+
organizationId: string;
|
|
16
|
+
mfaDeviceType: MFADeviceType;
|
|
17
|
+
}
|
|
18
|
+
export interface EnableMfaDeviceForOrganizationRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
mfaDeviceType: MFADeviceType;
|
|
21
|
+
}
|
|
22
|
+
export interface GetOrganizationMfaSettingsRequest {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class MfaSettingsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Disable the given mfa device for the organization
|
|
31
|
+
*/
|
|
32
|
+
disableMfaDeviceForOrganizationRaw(requestParameters: DisableMfaDeviceForOrganizationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OrganizationMfaSettings>>;
|
|
33
|
+
/**
|
|
34
|
+
* Disable the given mfa device for the organization
|
|
35
|
+
*/
|
|
36
|
+
disableMfaDeviceForOrganization(requestParameters: DisableMfaDeviceForOrganizationRequest, initOverrides?: RequestInit): Promise<OrganizationMfaSettings>;
|
|
37
|
+
/**
|
|
38
|
+
* Enable the given mfa device for the organization
|
|
39
|
+
*/
|
|
40
|
+
enableMfaDeviceForOrganizationRaw(requestParameters: EnableMfaDeviceForOrganizationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OrganizationMfaSettings>>;
|
|
41
|
+
/**
|
|
42
|
+
* Enable the given mfa device for the organization
|
|
43
|
+
*/
|
|
44
|
+
enableMfaDeviceForOrganization(requestParameters: EnableMfaDeviceForOrganizationRequest, initOverrides?: RequestInit): Promise<OrganizationMfaSettings>;
|
|
45
|
+
/**
|
|
46
|
+
* Get all mfa settings for an organization
|
|
47
|
+
*/
|
|
48
|
+
getOrganizationMfaSettingsRaw(requestParameters: GetOrganizationMfaSettingsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<OrganizationMfaSettingsResponse>>;
|
|
49
|
+
/**
|
|
50
|
+
* Get all mfa settings for an organization
|
|
51
|
+
*/
|
|
52
|
+
getOrganizationMfaSettings(requestParameters: GetOrganizationMfaSettingsRequest, initOverrides?: RequestInit): Promise<OrganizationMfaSettingsResponse>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { __awaiter } from '../../_virtual/_tslib.js';
|
|
2
|
+
import { BaseAPI, RequiredError, JSONApiResponse } from '../runtime.js';
|
|
3
|
+
import '../models/AccessOutcomeEnum.js';
|
|
4
|
+
import '../models/AuthModeEnum.js';
|
|
5
|
+
import '../models/AuthStorageEnum.js';
|
|
6
|
+
import '../models/AuthenticatorTransportProtocol.js';
|
|
7
|
+
import '../models/JwtVerifiedCredentialFormatEnum.js';
|
|
8
|
+
import '../models/ProviderEnum.js';
|
|
9
|
+
import '../models/WalletAddressType.js';
|
|
10
|
+
import '../models/HardwareWalletEnum.js';
|
|
11
|
+
import '../models/PasswordSourceTypeEnum.js';
|
|
12
|
+
import '../models/WalletProviderEnum.js';
|
|
13
|
+
import '../models/CustomFieldType.js';
|
|
14
|
+
import '../models/KycFieldType.js';
|
|
15
|
+
import '../models/BillingSubscriptionPlanTypeEnum.js';
|
|
16
|
+
import '../models/UnprocessableEntityErrorCode.js';
|
|
17
|
+
import '../models/ChainEnum.js';
|
|
18
|
+
import '../models/ChainalysisCheckResultEnum.js';
|
|
19
|
+
import '../models/EmbeddedWalletProviderEnum.js';
|
|
20
|
+
import '../models/UserIdentifierTypeEnum.js';
|
|
21
|
+
import '../models/CurrencyType.js';
|
|
22
|
+
import '../models/TimeUnitEnum.js';
|
|
23
|
+
import '../models/EmbeddedWalletAuthType.js';
|
|
24
|
+
import '../models/EmbeddedWalletSecurityMethod.js';
|
|
25
|
+
import '../models/EnvironmentEnum.js';
|
|
26
|
+
import '../models/SignInProviderEnum.js';
|
|
27
|
+
import '../models/SocialSignInProviderEnum.js';
|
|
28
|
+
import '../models/SdkViewSectionAlignment.js';
|
|
29
|
+
import '../models/SdkViewSectionType.js';
|
|
30
|
+
import '../models/SdkViewType.js';
|
|
31
|
+
import '../models/MFADeviceType.js';
|
|
32
|
+
import '../models/Provider.js';
|
|
33
|
+
import '../models/UserFilterableFieldsEnum.js';
|
|
34
|
+
import '../models/ExportFormatEnum.js';
|
|
35
|
+
import '../models/ExportModelEnum.js';
|
|
36
|
+
import '../models/ExportStatusEnum.js';
|
|
37
|
+
import '../models/GateRuleType.js';
|
|
38
|
+
import '../models/HealthcheckStatus.js';
|
|
39
|
+
import '../models/InviteStatusEnum.js';
|
|
40
|
+
import '../models/RoleEnum.js';
|
|
41
|
+
import '../models/NextViewEnum.js';
|
|
42
|
+
import '../models/OauthResultStatus.js';
|
|
43
|
+
import { OrganizationMfaSettingsFromJSON } from '../models/OrganizationMfaSettings.js';
|
|
44
|
+
import { OrganizationMfaSettingsResponseFromJSON } from '../models/OrganizationMfaSettingsResponse.js';
|
|
45
|
+
import '../models/WhenToImplementEnum.js';
|
|
46
|
+
import '../models/PublishEventsEvents.js';
|
|
47
|
+
import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
48
|
+
import '../models/SubscriptionFreeScopeEnum.js';
|
|
49
|
+
import '../models/VisitorFilterableFieldsEnum.js';
|
|
50
|
+
|
|
51
|
+
/* tslint:disable */
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class MfaSettingsApi extends BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Disable the given mfa device for the organization
|
|
58
|
+
*/
|
|
59
|
+
disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
62
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
63
|
+
}
|
|
64
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
65
|
+
throw new RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling disableMfaDeviceForOrganization.');
|
|
66
|
+
}
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
70
|
+
const token = this.configuration.accessToken;
|
|
71
|
+
const tokenString = yield token("bearerAuth", []);
|
|
72
|
+
if (tokenString) {
|
|
73
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const response = yield this.request({
|
|
77
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/disable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
78
|
+
method: 'PUT',
|
|
79
|
+
headers: headerParameters,
|
|
80
|
+
query: queryParameters,
|
|
81
|
+
}, initOverrides);
|
|
82
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsFromJSON(jsonValue));
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Disable the given mfa device for the organization
|
|
87
|
+
*/
|
|
88
|
+
disableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const response = yield this.disableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
91
|
+
return yield response.value();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Enable the given mfa device for the organization
|
|
96
|
+
*/
|
|
97
|
+
enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
100
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
101
|
+
}
|
|
102
|
+
if (requestParameters.mfaDeviceType === null || requestParameters.mfaDeviceType === undefined) {
|
|
103
|
+
throw new RequiredError('mfaDeviceType', 'Required parameter requestParameters.mfaDeviceType was null or undefined when calling enableMfaDeviceForOrganization.');
|
|
104
|
+
}
|
|
105
|
+
const queryParameters = {};
|
|
106
|
+
const headerParameters = {};
|
|
107
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
108
|
+
const token = this.configuration.accessToken;
|
|
109
|
+
const tokenString = yield token("bearerAuth", []);
|
|
110
|
+
if (tokenString) {
|
|
111
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const response = yield this.request({
|
|
115
|
+
path: `/organizations/{organizationId}/mfaSettings/{mfaDeviceType}/enable`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))).replace(`{${"mfaDeviceType"}}`, encodeURIComponent(String(requestParameters.mfaDeviceType))),
|
|
116
|
+
method: 'PUT',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
}, initOverrides);
|
|
120
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsFromJSON(jsonValue));
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Enable the given mfa device for the organization
|
|
125
|
+
*/
|
|
126
|
+
enableMfaDeviceForOrganization(requestParameters, initOverrides) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
const response = yield this.enableMfaDeviceForOrganizationRaw(requestParameters, initOverrides);
|
|
129
|
+
return yield response.value();
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Get all mfa settings for an organization
|
|
134
|
+
*/
|
|
135
|
+
getOrganizationMfaSettingsRaw(requestParameters, initOverrides) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
if (requestParameters.organizationId === null || requestParameters.organizationId === undefined) {
|
|
138
|
+
throw new RequiredError('organizationId', 'Required parameter requestParameters.organizationId was null or undefined when calling getOrganizationMfaSettings.');
|
|
139
|
+
}
|
|
140
|
+
const queryParameters = {};
|
|
141
|
+
const headerParameters = {};
|
|
142
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
143
|
+
const token = this.configuration.accessToken;
|
|
144
|
+
const tokenString = yield token("bearerAuth", []);
|
|
145
|
+
if (tokenString) {
|
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const response = yield this.request({
|
|
150
|
+
path: `/organizations/{organizationId}/mfaSettings`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters.organizationId))),
|
|
151
|
+
method: 'GET',
|
|
152
|
+
headers: headerParameters,
|
|
153
|
+
query: queryParameters,
|
|
154
|
+
}, initOverrides);
|
|
155
|
+
return new JSONApiResponse(response, (jsonValue) => OrganizationMfaSettingsResponseFromJSON(jsonValue));
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Get all mfa settings for an organization
|
|
160
|
+
*/
|
|
161
|
+
getOrganizationMfaSettings(requestParameters, initOverrides) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const response = yield this.getOrganizationMfaSettingsRaw(requestParameters, initOverrides);
|
|
164
|
+
return yield response.value();
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export { MfaSettingsApi };
|
package/src/apis/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './ExportsApi';
|
|
|
9
9
|
export * from './GatesApi';
|
|
10
10
|
export * from './InvitesApi';
|
|
11
11
|
export * from './MembersApi';
|
|
12
|
+
export * from './MfaSettingsApi';
|
|
12
13
|
export * from './OrganizationsApi';
|
|
13
14
|
export * from './OriginsApi';
|
|
14
15
|
export * from './ProjectsApi';
|
package/src/index.cjs
CHANGED
|
@@ -14,6 +14,7 @@ var ExportsApi = require('./apis/ExportsApi.cjs');
|
|
|
14
14
|
var GatesApi = require('./apis/GatesApi.cjs');
|
|
15
15
|
var InvitesApi = require('./apis/InvitesApi.cjs');
|
|
16
16
|
var MembersApi = require('./apis/MembersApi.cjs');
|
|
17
|
+
var MfaSettingsApi = require('./apis/MfaSettingsApi.cjs');
|
|
17
18
|
var OrganizationsApi = require('./apis/OrganizationsApi.cjs');
|
|
18
19
|
var OriginsApi = require('./apis/OriginsApi.cjs');
|
|
19
20
|
var ProjectsApi = require('./apis/ProjectsApi.cjs');
|
|
@@ -187,6 +188,8 @@ var Organization = require('./models/Organization.cjs');
|
|
|
187
188
|
var OrganizationFields = require('./models/OrganizationFields.cjs');
|
|
188
189
|
var OrganizationMember = require('./models/OrganizationMember.cjs');
|
|
189
190
|
var OrganizationMembersResponse = require('./models/OrganizationMembersResponse.cjs');
|
|
191
|
+
var OrganizationMfaSettings = require('./models/OrganizationMfaSettings.cjs');
|
|
192
|
+
var OrganizationMfaSettingsResponse = require('./models/OrganizationMfaSettingsResponse.cjs');
|
|
190
193
|
var OrganizationRequest = require('./models/OrganizationRequest.cjs');
|
|
191
194
|
var OrganizationResponse = require('./models/OrganizationResponse.cjs');
|
|
192
195
|
var OrganizationResponseOrganization = require('./models/OrganizationResponseOrganization.cjs');
|
|
@@ -336,6 +339,7 @@ exports.ExportsApi = ExportsApi.ExportsApi;
|
|
|
336
339
|
exports.GatesApi = GatesApi.GatesApi;
|
|
337
340
|
exports.InvitesApi = InvitesApi.InvitesApi;
|
|
338
341
|
exports.MembersApi = MembersApi.MembersApi;
|
|
342
|
+
exports.MfaSettingsApi = MfaSettingsApi.MfaSettingsApi;
|
|
339
343
|
exports.OrganizationsApi = OrganizationsApi.OrganizationsApi;
|
|
340
344
|
exports.OriginsApi = OriginsApi.OriginsApi;
|
|
341
345
|
exports.ProjectsApi = ProjectsApi.ProjectsApi;
|
|
@@ -943,6 +947,12 @@ exports.OrganizationMemberToJSON = OrganizationMember.OrganizationMemberToJSON;
|
|
|
943
947
|
exports.OrganizationMembersResponseFromJSON = OrganizationMembersResponse.OrganizationMembersResponseFromJSON;
|
|
944
948
|
exports.OrganizationMembersResponseFromJSONTyped = OrganizationMembersResponse.OrganizationMembersResponseFromJSONTyped;
|
|
945
949
|
exports.OrganizationMembersResponseToJSON = OrganizationMembersResponse.OrganizationMembersResponseToJSON;
|
|
950
|
+
exports.OrganizationMfaSettingsFromJSON = OrganizationMfaSettings.OrganizationMfaSettingsFromJSON;
|
|
951
|
+
exports.OrganizationMfaSettingsFromJSONTyped = OrganizationMfaSettings.OrganizationMfaSettingsFromJSONTyped;
|
|
952
|
+
exports.OrganizationMfaSettingsToJSON = OrganizationMfaSettings.OrganizationMfaSettingsToJSON;
|
|
953
|
+
exports.OrganizationMfaSettingsResponseFromJSON = OrganizationMfaSettingsResponse.OrganizationMfaSettingsResponseFromJSON;
|
|
954
|
+
exports.OrganizationMfaSettingsResponseFromJSONTyped = OrganizationMfaSettingsResponse.OrganizationMfaSettingsResponseFromJSONTyped;
|
|
955
|
+
exports.OrganizationMfaSettingsResponseToJSON = OrganizationMfaSettingsResponse.OrganizationMfaSettingsResponseToJSON;
|
|
946
956
|
exports.OrganizationRequestFromJSON = OrganizationRequest.OrganizationRequestFromJSON;
|
|
947
957
|
exports.OrganizationRequestFromJSONTyped = OrganizationRequest.OrganizationRequestFromJSONTyped;
|
|
948
958
|
exports.OrganizationRequestToJSON = OrganizationRequest.OrganizationRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export { ExportsApi } from './apis/ExportsApi.js';
|
|
|
10
10
|
export { GatesApi } from './apis/GatesApi.js';
|
|
11
11
|
export { InvitesApi } from './apis/InvitesApi.js';
|
|
12
12
|
export { MembersApi } from './apis/MembersApi.js';
|
|
13
|
+
export { MfaSettingsApi } from './apis/MfaSettingsApi.js';
|
|
13
14
|
export { OrganizationsApi } from './apis/OrganizationsApi.js';
|
|
14
15
|
export { OriginsApi } from './apis/OriginsApi.js';
|
|
15
16
|
export { ProjectsApi } from './apis/ProjectsApi.js';
|
|
@@ -183,6 +184,8 @@ export { OrganizationFromJSON, OrganizationFromJSONTyped, OrganizationToJSON } f
|
|
|
183
184
|
export { OrganizationFieldsFromJSON, OrganizationFieldsFromJSONTyped, OrganizationFieldsToJSON } from './models/OrganizationFields.js';
|
|
184
185
|
export { OrganizationMemberFromJSON, OrganizationMemberFromJSONTyped, OrganizationMemberToJSON } from './models/OrganizationMember.js';
|
|
185
186
|
export { OrganizationMembersResponseFromJSON, OrganizationMembersResponseFromJSONTyped, OrganizationMembersResponseToJSON } from './models/OrganizationMembersResponse.js';
|
|
187
|
+
export { OrganizationMfaSettingsFromJSON, OrganizationMfaSettingsFromJSONTyped, OrganizationMfaSettingsToJSON } from './models/OrganizationMfaSettings.js';
|
|
188
|
+
export { OrganizationMfaSettingsResponseFromJSON, OrganizationMfaSettingsResponseFromJSONTyped, OrganizationMfaSettingsResponseToJSON } from './models/OrganizationMfaSettingsResponse.js';
|
|
186
189
|
export { OrganizationRequestFromJSON, OrganizationRequestFromJSONTyped, OrganizationRequestToJSON } from './models/OrganizationRequest.js';
|
|
187
190
|
export { OrganizationResponseFromJSON, OrganizationResponseFromJSONTyped, OrganizationResponseToJSON } from './models/OrganizationResponse.js';
|
|
188
191
|
export { OrganizationResponseOrganizationFromJSON, OrganizationResponseOrganizationFromJSONTyped, OrganizationResponseOrganizationToJSON } from './models/OrganizationResponseOrganization.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var MFADeviceType = require('./MFADeviceType.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function OrganizationMfaSettingsFromJSON(json) {
|
|
10
|
+
return OrganizationMfaSettingsFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function OrganizationMfaSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'enabledAt': !runtime.exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
|
|
18
|
+
'mfaDeviceType': MFADeviceType.MFADeviceTypeFromJSON(json['mfaDeviceType']),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function OrganizationMfaSettingsToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
|
|
30
|
+
'mfaDeviceType': MFADeviceType.MFADeviceTypeToJSON(value.mfaDeviceType),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
exports.OrganizationMfaSettingsFromJSON = OrganizationMfaSettingsFromJSON;
|
|
35
|
+
exports.OrganizationMfaSettingsFromJSONTyped = OrganizationMfaSettingsFromJSONTyped;
|
|
36
|
+
exports.OrganizationMfaSettingsToJSON = OrganizationMfaSettingsToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { MFADeviceType } from './MFADeviceType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrganizationMfaSettings
|
|
17
|
+
*/
|
|
18
|
+
export interface OrganizationMfaSettings {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Date}
|
|
22
|
+
* @memberof OrganizationMfaSettings
|
|
23
|
+
*/
|
|
24
|
+
enabledAt?: Date | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MFADeviceType}
|
|
28
|
+
* @memberof OrganizationMfaSettings
|
|
29
|
+
*/
|
|
30
|
+
mfaDeviceType: MFADeviceType;
|
|
31
|
+
}
|
|
32
|
+
export declare function OrganizationMfaSettingsFromJSON(json: any): OrganizationMfaSettings;
|
|
33
|
+
export declare function OrganizationMfaSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationMfaSettings;
|
|
34
|
+
export declare function OrganizationMfaSettingsToJSON(value?: OrganizationMfaSettings | null): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { MFADeviceTypeFromJSON, MFADeviceTypeToJSON } from './MFADeviceType.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function OrganizationMfaSettingsFromJSON(json) {
|
|
6
|
+
return OrganizationMfaSettingsFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function OrganizationMfaSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'enabledAt': !exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
|
|
14
|
+
'mfaDeviceType': MFADeviceTypeFromJSON(json['mfaDeviceType']),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function OrganizationMfaSettingsToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
|
|
26
|
+
'mfaDeviceType': MFADeviceTypeToJSON(value.mfaDeviceType),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { OrganizationMfaSettingsFromJSON, OrganizationMfaSettingsFromJSONTyped, OrganizationMfaSettingsToJSON };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var OrganizationMfaSettings = require('./OrganizationMfaSettings.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function OrganizationMfaSettingsResponseFromJSON(json) {
|
|
10
|
+
return OrganizationMfaSettingsResponseFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function OrganizationMfaSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'mfaSettings': !runtime.exists(json, 'mfaSettings') ? undefined : (json['mfaSettings'].map(OrganizationMfaSettings.OrganizationMfaSettingsFromJSON)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function OrganizationMfaSettingsResponseToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'mfaSettings': value.mfaSettings === undefined ? undefined : (value.mfaSettings.map(OrganizationMfaSettings.OrganizationMfaSettingsToJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
exports.OrganizationMfaSettingsResponseFromJSON = OrganizationMfaSettingsResponseFromJSON;
|
|
33
|
+
exports.OrganizationMfaSettingsResponseFromJSONTyped = OrganizationMfaSettingsResponseFromJSONTyped;
|
|
34
|
+
exports.OrganizationMfaSettingsResponseToJSON = OrganizationMfaSettingsResponseToJSON;
|
|
@@ -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 { OrganizationMfaSettings } from './OrganizationMfaSettings';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OrganizationMfaSettingsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface OrganizationMfaSettingsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<OrganizationMfaSettings>}
|
|
22
|
+
* @memberof OrganizationMfaSettingsResponse
|
|
23
|
+
*/
|
|
24
|
+
mfaSettings?: Array<OrganizationMfaSettings>;
|
|
25
|
+
}
|
|
26
|
+
export declare function OrganizationMfaSettingsResponseFromJSON(json: any): OrganizationMfaSettingsResponse;
|
|
27
|
+
export declare function OrganizationMfaSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationMfaSettingsResponse;
|
|
28
|
+
export declare function OrganizationMfaSettingsResponseToJSON(value?: OrganizationMfaSettingsResponse | null): any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { OrganizationMfaSettingsFromJSON, OrganizationMfaSettingsToJSON } from './OrganizationMfaSettings.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function OrganizationMfaSettingsResponseFromJSON(json) {
|
|
6
|
+
return OrganizationMfaSettingsResponseFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function OrganizationMfaSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'mfaSettings': !exists(json, 'mfaSettings') ? undefined : (json['mfaSettings'].map(OrganizationMfaSettingsFromJSON)),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function OrganizationMfaSettingsResponseToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'mfaSettings': value.mfaSettings === undefined ? undefined : (value.mfaSettings.map(OrganizationMfaSettingsToJSON)),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { OrganizationMfaSettingsResponseFromJSON, OrganizationMfaSettingsResponseFromJSONTyped, OrganizationMfaSettingsResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -159,6 +159,8 @@ export * from './Organization';
|
|
|
159
159
|
export * from './OrganizationFields';
|
|
160
160
|
export * from './OrganizationMember';
|
|
161
161
|
export * from './OrganizationMembersResponse';
|
|
162
|
+
export * from './OrganizationMfaSettings';
|
|
163
|
+
export * from './OrganizationMfaSettingsResponse';
|
|
162
164
|
export * from './OrganizationRequest';
|
|
163
165
|
export * from './OrganizationResponse';
|
|
164
166
|
export * from './OrganizationResponseOrganization';
|