@sonatype/nexus-iq-api-client 0.197.2 → 0.197.3
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/dist/apis/ConfigSAMLApi.d.ts +5 -5
- package/dist/apis/ConfigSAMLApi.js +2 -8
- package/dist/esm/apis/ConfigSAMLApi.d.ts +5 -5
- package/dist/esm/apis/ConfigSAMLApi.js +2 -8
- package/dist/esm/models/InsertOrUpdateSamlConfigurationRequest.d.ts +2 -2
- package/dist/esm/models/InsertOrUpdateSamlConfigurationRequest.js +2 -6
- package/dist/models/InsertOrUpdateSamlConfigurationRequest.d.ts +2 -2
- package/dist/models/InsertOrUpdateSamlConfigurationRequest.js +2 -6
- package/package.json +1 -1
- package/src/apis/ConfigSAMLApi.ts +5 -19
- package/src/models/InsertOrUpdateSamlConfigurationRequest.ts +4 -6
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ApiSamlConfigurationDTO, ApiSamlConfigurationResponseDTO } from '../models/index';
|
|
14
14
|
export interface ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest {
|
|
15
|
-
identityProviderXml
|
|
16
|
-
samlConfiguration
|
|
15
|
+
identityProviderXml?: string;
|
|
16
|
+
samlConfiguration?: ApiSamlConfigurationDTO;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* ConfigSAMLApi - interface
|
|
@@ -57,8 +57,8 @@ export interface ConfigSAMLApiInterface {
|
|
|
57
57
|
getSamlConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSamlConfigurationResponseDTO>;
|
|
58
58
|
/**
|
|
59
59
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
60
|
-
* @param {string} identityProviderXml Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
61
|
-
* @param {ApiSamlConfigurationDTO} samlConfiguration
|
|
60
|
+
* @param {string} [identityProviderXml] Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
61
|
+
* @param {ApiSamlConfigurationDTO} [samlConfiguration]
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
* @memberof ConfigSAMLApiInterface
|
|
@@ -104,5 +104,5 @@ export declare class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAML
|
|
|
104
104
|
/**
|
|
105
105
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
106
106
|
*/
|
|
107
|
-
insertOrUpdateSamlConfiguration(requestParameters
|
|
107
|
+
insertOrUpdateSamlConfiguration(requestParameters?: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
108
108
|
}
|
|
@@ -125,12 +125,6 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
125
125
|
*/
|
|
126
126
|
insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides) {
|
|
127
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
-
if (requestParameters['identityProviderXml'] == null) {
|
|
129
|
-
throw new runtime.RequiredError('identityProviderXml', 'Required parameter "identityProviderXml" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
130
|
-
}
|
|
131
|
-
if (requestParameters['samlConfiguration'] == null) {
|
|
132
|
-
throw new runtime.RequiredError('samlConfiguration', 'Required parameter "samlConfiguration" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
133
|
-
}
|
|
134
128
|
const queryParameters = {};
|
|
135
129
|
const headerParameters = {};
|
|
136
130
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
@@ -169,8 +163,8 @@ class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
169
163
|
/**
|
|
170
164
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
171
165
|
*/
|
|
172
|
-
insertOrUpdateSamlConfiguration(
|
|
173
|
-
return __awaiter(this,
|
|
166
|
+
insertOrUpdateSamlConfiguration() {
|
|
167
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
174
168
|
yield this.insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides);
|
|
175
169
|
});
|
|
176
170
|
}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { ApiSamlConfigurationDTO, ApiSamlConfigurationResponseDTO } from '../models/index';
|
|
14
14
|
export interface ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest {
|
|
15
|
-
identityProviderXml
|
|
16
|
-
samlConfiguration
|
|
15
|
+
identityProviderXml?: string;
|
|
16
|
+
samlConfiguration?: ApiSamlConfigurationDTO;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* ConfigSAMLApi - interface
|
|
@@ -57,8 +57,8 @@ export interface ConfigSAMLApiInterface {
|
|
|
57
57
|
getSamlConfiguration(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiSamlConfigurationResponseDTO>;
|
|
58
58
|
/**
|
|
59
59
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
60
|
-
* @param {string} identityProviderXml Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
61
|
-
* @param {ApiSamlConfigurationDTO} samlConfiguration
|
|
60
|
+
* @param {string} [identityProviderXml] Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
61
|
+
* @param {ApiSamlConfigurationDTO} [samlConfiguration]
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
* @memberof ConfigSAMLApiInterface
|
|
@@ -104,5 +104,5 @@ export declare class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAML
|
|
|
104
104
|
/**
|
|
105
105
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
106
106
|
*/
|
|
107
|
-
insertOrUpdateSamlConfiguration(requestParameters
|
|
107
|
+
insertOrUpdateSamlConfiguration(requestParameters?: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
108
108
|
}
|
|
@@ -122,12 +122,6 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
122
122
|
*/
|
|
123
123
|
insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides) {
|
|
124
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
-
if (requestParameters['identityProviderXml'] == null) {
|
|
126
|
-
throw new runtime.RequiredError('identityProviderXml', 'Required parameter "identityProviderXml" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
127
|
-
}
|
|
128
|
-
if (requestParameters['samlConfiguration'] == null) {
|
|
129
|
-
throw new runtime.RequiredError('samlConfiguration', 'Required parameter "samlConfiguration" was null or undefined when calling insertOrUpdateSamlConfiguration().');
|
|
130
|
-
}
|
|
131
125
|
const queryParameters = {};
|
|
132
126
|
const headerParameters = {};
|
|
133
127
|
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
@@ -166,8 +160,8 @@ export class ConfigSAMLApi extends runtime.BaseAPI {
|
|
|
166
160
|
/**
|
|
167
161
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
168
162
|
*/
|
|
169
|
-
insertOrUpdateSamlConfiguration(
|
|
170
|
-
return __awaiter(this,
|
|
163
|
+
insertOrUpdateSamlConfiguration() {
|
|
164
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
171
165
|
yield this.insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides);
|
|
172
166
|
});
|
|
173
167
|
}
|
|
@@ -21,13 +21,13 @@ export interface InsertOrUpdateSamlConfigurationRequest {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
23
23
|
*/
|
|
24
|
-
identityProviderXml
|
|
24
|
+
identityProviderXml?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ApiSamlConfigurationDTO}
|
|
28
28
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
29
29
|
*/
|
|
30
|
-
samlConfiguration
|
|
30
|
+
samlConfiguration?: ApiSamlConfigurationDTO;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
@@ -16,10 +16,6 @@ import { ApiSamlConfigurationDTOFromJSON, ApiSamlConfigurationDTOToJSON, } from
|
|
|
16
16
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
17
17
|
*/
|
|
18
18
|
export function instanceOfInsertOrUpdateSamlConfigurationRequest(value) {
|
|
19
|
-
if (!('identityProviderXml' in value) || value['identityProviderXml'] === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (!('samlConfiguration' in value) || value['samlConfiguration'] === undefined)
|
|
22
|
-
return false;
|
|
23
19
|
return true;
|
|
24
20
|
}
|
|
25
21
|
export function InsertOrUpdateSamlConfigurationRequestFromJSON(json) {
|
|
@@ -30,8 +26,8 @@ export function InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json, ignore
|
|
|
30
26
|
return json;
|
|
31
27
|
}
|
|
32
28
|
return {
|
|
33
|
-
'identityProviderXml': json['identityProviderXml'],
|
|
34
|
-
'samlConfiguration': ApiSamlConfigurationDTOFromJSON(json['samlConfiguration']),
|
|
29
|
+
'identityProviderXml': json['identityProviderXml'] == null ? undefined : json['identityProviderXml'],
|
|
30
|
+
'samlConfiguration': json['samlConfiguration'] == null ? undefined : ApiSamlConfigurationDTOFromJSON(json['samlConfiguration']),
|
|
35
31
|
};
|
|
36
32
|
}
|
|
37
33
|
export function InsertOrUpdateSamlConfigurationRequestToJSON(json) {
|
|
@@ -21,13 +21,13 @@ export interface InsertOrUpdateSamlConfigurationRequest {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
23
23
|
*/
|
|
24
|
-
identityProviderXml
|
|
24
|
+
identityProviderXml?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ApiSamlConfigurationDTO}
|
|
28
28
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
29
29
|
*/
|
|
30
|
-
samlConfiguration
|
|
30
|
+
samlConfiguration?: ApiSamlConfigurationDTO;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
@@ -23,10 +23,6 @@ const ApiSamlConfigurationDTO_1 = require("./ApiSamlConfigurationDTO");
|
|
|
23
23
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfInsertOrUpdateSamlConfigurationRequest(value) {
|
|
26
|
-
if (!('identityProviderXml' in value) || value['identityProviderXml'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('samlConfiguration' in value) || value['samlConfiguration'] === undefined)
|
|
29
|
-
return false;
|
|
30
26
|
return true;
|
|
31
27
|
}
|
|
32
28
|
function InsertOrUpdateSamlConfigurationRequestFromJSON(json) {
|
|
@@ -37,8 +33,8 @@ function InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json, ignoreDiscrim
|
|
|
37
33
|
return json;
|
|
38
34
|
}
|
|
39
35
|
return {
|
|
40
|
-
'identityProviderXml': json['identityProviderXml'],
|
|
41
|
-
'samlConfiguration': (0, ApiSamlConfigurationDTO_1.ApiSamlConfigurationDTOFromJSON)(json['samlConfiguration']),
|
|
36
|
+
'identityProviderXml': json['identityProviderXml'] == null ? undefined : json['identityProviderXml'],
|
|
37
|
+
'samlConfiguration': json['samlConfiguration'] == null ? undefined : (0, ApiSamlConfigurationDTO_1.ApiSamlConfigurationDTOFromJSON)(json['samlConfiguration']),
|
|
42
38
|
};
|
|
43
39
|
}
|
|
44
40
|
function InsertOrUpdateSamlConfigurationRequestToJSON(json) {
|
package/package.json
CHANGED
|
@@ -26,8 +26,8 @@ import {
|
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest {
|
|
29
|
-
identityProviderXml
|
|
30
|
-
samlConfiguration
|
|
29
|
+
identityProviderXml?: string;
|
|
30
|
+
samlConfiguration?: ApiSamlConfigurationDTO;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -78,8 +78,8 @@ export interface ConfigSAMLApiInterface {
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
81
|
-
* @param {string} identityProviderXml Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
82
|
-
* @param {ApiSamlConfigurationDTO} samlConfiguration
|
|
81
|
+
* @param {string} [identityProviderXml] Enter the SAML metadata XML of your IdP. Refer to the IdP documentation to obtain this metadata.
|
|
82
|
+
* @param {ApiSamlConfigurationDTO} [samlConfiguration]
|
|
83
83
|
* @param {*} [options] Override http request option.
|
|
84
84
|
* @throws {RequiredError}
|
|
85
85
|
* @memberof ConfigSAMLApiInterface
|
|
@@ -201,20 +201,6 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
201
201
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
202
202
|
*/
|
|
203
203
|
async insertOrUpdateSamlConfigurationRaw(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
204
|
-
if (requestParameters['identityProviderXml'] == null) {
|
|
205
|
-
throw new runtime.RequiredError(
|
|
206
|
-
'identityProviderXml',
|
|
207
|
-
'Required parameter "identityProviderXml" was null or undefined when calling insertOrUpdateSamlConfiguration().'
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
if (requestParameters['samlConfiguration'] == null) {
|
|
212
|
-
throw new runtime.RequiredError(
|
|
213
|
-
'samlConfiguration',
|
|
214
|
-
'Required parameter "samlConfiguration" was null or undefined when calling insertOrUpdateSamlConfiguration().'
|
|
215
|
-
);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
204
|
const queryParameters: any = {};
|
|
219
205
|
|
|
220
206
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -261,7 +247,7 @@ export class ConfigSAMLApi extends runtime.BaseAPI implements ConfigSAMLApiInter
|
|
|
261
247
|
/**
|
|
262
248
|
* Use this method to enable SSO using SAML. This request uses the content type multipart/form-data to transmit the configuration to IQ Server. Permissions required: Edit System Configuration and Users
|
|
263
249
|
*/
|
|
264
|
-
async insertOrUpdateSamlConfiguration(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
250
|
+
async insertOrUpdateSamlConfiguration(requestParameters: ConfigSAMLApiInsertOrUpdateSamlConfigurationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
265
251
|
await this.insertOrUpdateSamlConfigurationRaw(requestParameters, initOverrides);
|
|
266
252
|
}
|
|
267
253
|
|
|
@@ -32,21 +32,19 @@ export interface InsertOrUpdateSamlConfigurationRequest {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
34
34
|
*/
|
|
35
|
-
identityProviderXml
|
|
35
|
+
identityProviderXml?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {ApiSamlConfigurationDTO}
|
|
39
39
|
* @memberof InsertOrUpdateSamlConfigurationRequest
|
|
40
40
|
*/
|
|
41
|
-
samlConfiguration
|
|
41
|
+
samlConfiguration?: ApiSamlConfigurationDTO;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Check if a given object implements the InsertOrUpdateSamlConfigurationRequest interface.
|
|
46
46
|
*/
|
|
47
47
|
export function instanceOfInsertOrUpdateSamlConfigurationRequest(value: object): value is InsertOrUpdateSamlConfigurationRequest {
|
|
48
|
-
if (!('identityProviderXml' in value) || value['identityProviderXml'] === undefined) return false;
|
|
49
|
-
if (!('samlConfiguration' in value) || value['samlConfiguration'] === undefined) return false;
|
|
50
48
|
return true;
|
|
51
49
|
}
|
|
52
50
|
|
|
@@ -60,8 +58,8 @@ export function InsertOrUpdateSamlConfigurationRequestFromJSONTyped(json: any, i
|
|
|
60
58
|
}
|
|
61
59
|
return {
|
|
62
60
|
|
|
63
|
-
'identityProviderXml': json['identityProviderXml'],
|
|
64
|
-
'samlConfiguration': ApiSamlConfigurationDTOFromJSON(json['samlConfiguration']),
|
|
61
|
+
'identityProviderXml': json['identityProviderXml'] == null ? undefined : json['identityProviderXml'],
|
|
62
|
+
'samlConfiguration': json['samlConfiguration'] == null ? undefined : ApiSamlConfigurationDTOFromJSON(json['samlConfiguration']),
|
|
65
63
|
};
|
|
66
64
|
}
|
|
67
65
|
|