@sonatype/nexus-repo-api-client 3.95.0 → 3.95.2
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/.openapi-generator/FILES +3 -0
- package/dist/apis/CleanupPoliciesApi.d.ts +4 -4
- package/dist/apis/CleanupPoliciesApi.js +6 -4
- package/dist/apis/SecurityManagementJWTApi.d.ts +25 -0
- package/dist/apis/SecurityManagementJWTApi.js +60 -0
- package/dist/apis/SecurityOAuth2OIDCApi.d.ts +45 -0
- package/dist/apis/SecurityOAuth2OIDCApi.js +123 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/CleanupPoliciesApi.d.ts +4 -4
- package/dist/esm/apis/CleanupPoliciesApi.js +7 -5
- package/dist/esm/apis/SecurityManagementJWTApi.d.ts +25 -0
- package/dist/esm/apis/SecurityManagementJWTApi.js +56 -0
- package/dist/esm/apis/SecurityOAuth2OIDCApi.d.ts +45 -0
- package/dist/esm/apis/SecurityOAuth2OIDCApi.js +119 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/OAuth2OidcConfigurationXO.d.ts +134 -0
- package/dist/esm/models/OAuth2OidcConfigurationXO.js +77 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/OAuth2OidcConfigurationXO.d.ts +134 -0
- package/dist/models/OAuth2OidcConfigurationXO.js +84 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/CleanupPoliciesApi.ts +10 -8
- package/src/apis/SecurityManagementJWTApi.ts +54 -0
- package/src/apis/SecurityOAuth2OIDCApi.ts +138 -0
- package/src/apis/index.ts +2 -0
- package/src/models/OAuth2OidcConfigurationXO.ts +195 -0
- package/src/models/index.ts +1 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sonatype Nexus Repository Manager
|
|
5
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.95.0-07.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.95.0-07
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { OAuth2OidcConfigurationXOFromJSON, OAuth2OidcConfigurationXOToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class SecurityOAuth2OIDCApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Remove OAuth2/OIDC configuration
|
|
31
|
+
*/
|
|
32
|
+
deleteSecurityOauth2Raw(initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
37
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
38
|
+
}
|
|
39
|
+
let urlPath = `/v1/security/oauth2`;
|
|
40
|
+
const response = yield this.request({
|
|
41
|
+
path: urlPath,
|
|
42
|
+
method: 'DELETE',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
}, initOverrides);
|
|
46
|
+
return new runtime.VoidApiResponse(response);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Remove OAuth2/OIDC configuration
|
|
51
|
+
*/
|
|
52
|
+
deleteSecurityOauth2(initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
yield this.deleteSecurityOauth2Raw(initOverrides);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Retrieve the current OAuth2/OIDC configuration
|
|
59
|
+
*/
|
|
60
|
+
listSecurityOauth2Raw(initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const queryParameters = {};
|
|
63
|
+
const headerParameters = {};
|
|
64
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
65
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
66
|
+
}
|
|
67
|
+
let urlPath = `/v1/security/oauth2`;
|
|
68
|
+
const response = yield this.request({
|
|
69
|
+
path: urlPath,
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
}, initOverrides);
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OAuth2OidcConfigurationXOFromJSON(jsonValue));
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Retrieve the current OAuth2/OIDC configuration
|
|
79
|
+
*/
|
|
80
|
+
listSecurityOauth2(initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const response = yield this.listSecurityOauth2Raw(initOverrides);
|
|
83
|
+
return yield response.value();
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Create or update OAuth2/OIDC configuration
|
|
88
|
+
*/
|
|
89
|
+
updateSecurityOauth2Raw(requestParameters, initOverrides) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
if (requestParameters['oAuth2OidcConfigurationXO'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('oAuth2OidcConfigurationXO', 'Required parameter "oAuth2OidcConfigurationXO" was null or undefined when calling updateSecurityOauth2().');
|
|
93
|
+
}
|
|
94
|
+
const queryParameters = {};
|
|
95
|
+
const headerParameters = {};
|
|
96
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
98
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
99
|
+
}
|
|
100
|
+
let urlPath = `/v1/security/oauth2`;
|
|
101
|
+
const response = yield this.request({
|
|
102
|
+
path: urlPath,
|
|
103
|
+
method: 'PUT',
|
|
104
|
+
headers: headerParameters,
|
|
105
|
+
query: queryParameters,
|
|
106
|
+
body: OAuth2OidcConfigurationXOToJSON(requestParameters['oAuth2OidcConfigurationXO']),
|
|
107
|
+
}, initOverrides);
|
|
108
|
+
return new runtime.VoidApiResponse(response);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Create or update OAuth2/OIDC configuration
|
|
113
|
+
*/
|
|
114
|
+
updateSecurityOauth2(requestParameters, initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
yield this.updateSecurityOauth2Raw(requestParameters, initOverrides);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './SecurityManagementApi';
|
|
|
31
31
|
export * from './SecurityManagementAPIAccessApi';
|
|
32
32
|
export * from './SecurityManagementAnonymousAccessApi';
|
|
33
33
|
export * from './SecurityManagementApiKeysPrincipalsEncryptionApi';
|
|
34
|
+
export * from './SecurityManagementJWTApi';
|
|
34
35
|
export * from './SecurityManagementLDAPApi';
|
|
35
36
|
export * from './SecurityManagementPrivilegesApi';
|
|
36
37
|
export * from './SecurityManagementRealmsApi';
|
|
@@ -41,6 +42,7 @@ export * from './SecurityManagementSSRFProtectionApi';
|
|
|
41
42
|
export * from './SecurityManagementSecretsEncryptionApi';
|
|
42
43
|
export * from './SecurityManagementUserTokensApi';
|
|
43
44
|
export * from './SecurityManagementUsersApi';
|
|
45
|
+
export * from './SecurityOAuth2OIDCApi';
|
|
44
46
|
export * from './StagingApi';
|
|
45
47
|
export * from './StatusApi';
|
|
46
48
|
export * from './SupportApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -33,6 +33,7 @@ export * from './SecurityManagementApi';
|
|
|
33
33
|
export * from './SecurityManagementAPIAccessApi';
|
|
34
34
|
export * from './SecurityManagementAnonymousAccessApi';
|
|
35
35
|
export * from './SecurityManagementApiKeysPrincipalsEncryptionApi';
|
|
36
|
+
export * from './SecurityManagementJWTApi';
|
|
36
37
|
export * from './SecurityManagementLDAPApi';
|
|
37
38
|
export * from './SecurityManagementPrivilegesApi';
|
|
38
39
|
export * from './SecurityManagementRealmsApi';
|
|
@@ -43,6 +44,7 @@ export * from './SecurityManagementSSRFProtectionApi';
|
|
|
43
44
|
export * from './SecurityManagementSecretsEncryptionApi';
|
|
44
45
|
export * from './SecurityManagementUserTokensApi';
|
|
45
46
|
export * from './SecurityManagementUsersApi';
|
|
47
|
+
export * from './SecurityOAuth2OIDCApi';
|
|
46
48
|
export * from './StagingApi';
|
|
47
49
|
export * from './StatusApi';
|
|
48
50
|
export * from './SupportApi';
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sonatype Nexus Repository Manager
|
|
3
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.95.0-07.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.95.0-07
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuth2OidcConfigurationXO
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuth2OidcConfigurationXO {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: string; }}
|
|
21
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
22
|
+
*/
|
|
23
|
+
authorizationCustomParams?: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
30
|
+
*/
|
|
31
|
+
clientId?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
36
|
+
*/
|
|
37
|
+
clientSecret?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
42
|
+
*/
|
|
43
|
+
emailClaim?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: string; }}
|
|
47
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
48
|
+
*/
|
|
49
|
+
exactMatchClaims?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
56
|
+
*/
|
|
57
|
+
firstNameClaim?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
62
|
+
*/
|
|
63
|
+
groupsClaim?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
68
|
+
*/
|
|
69
|
+
idpAuthorizationUrl?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
74
|
+
*/
|
|
75
|
+
idpJwks?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
80
|
+
*/
|
|
81
|
+
idpJwksUrl?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
86
|
+
*/
|
|
87
|
+
idpJwsAlgorithm: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
92
|
+
*/
|
|
93
|
+
idpLogoutUrl?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
98
|
+
*/
|
|
99
|
+
idpTokenUrl?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
104
|
+
*/
|
|
105
|
+
lastNameClaim?: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {{ [key: string]: string; }}
|
|
109
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
110
|
+
*/
|
|
111
|
+
tokenRequestCustomParams?: {
|
|
112
|
+
[key: string]: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
118
|
+
*/
|
|
119
|
+
useTrustStore?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
124
|
+
*/
|
|
125
|
+
usernameClaim: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the OAuth2OidcConfigurationXO interface.
|
|
129
|
+
*/
|
|
130
|
+
export declare function instanceOfOAuth2OidcConfigurationXO(value: object): value is OAuth2OidcConfigurationXO;
|
|
131
|
+
export declare function OAuth2OidcConfigurationXOFromJSON(json: any): OAuth2OidcConfigurationXO;
|
|
132
|
+
export declare function OAuth2OidcConfigurationXOFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuth2OidcConfigurationXO;
|
|
133
|
+
export declare function OAuth2OidcConfigurationXOToJSON(json: any): OAuth2OidcConfigurationXO;
|
|
134
|
+
export declare function OAuth2OidcConfigurationXOToJSONTyped(value?: OAuth2OidcConfigurationXO | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sonatype Nexus Repository Manager
|
|
5
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.95.0-07.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.95.0-07
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the OAuth2OidcConfigurationXO interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOAuth2OidcConfigurationXO(value) {
|
|
18
|
+
if (!('idpJwsAlgorithm' in value) || value['idpJwsAlgorithm'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('usernameClaim' in value) || value['usernameClaim'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function OAuth2OidcConfigurationXOFromJSON(json) {
|
|
25
|
+
return OAuth2OidcConfigurationXOFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function OAuth2OidcConfigurationXOFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'authorizationCustomParams': json['authorizationCustomParams'] == null ? undefined : json['authorizationCustomParams'],
|
|
33
|
+
'clientId': json['clientId'] == null ? undefined : json['clientId'],
|
|
34
|
+
'clientSecret': json['clientSecret'] == null ? undefined : json['clientSecret'],
|
|
35
|
+
'emailClaim': json['emailClaim'] == null ? undefined : json['emailClaim'],
|
|
36
|
+
'exactMatchClaims': json['exactMatchClaims'] == null ? undefined : json['exactMatchClaims'],
|
|
37
|
+
'firstNameClaim': json['firstNameClaim'] == null ? undefined : json['firstNameClaim'],
|
|
38
|
+
'groupsClaim': json['groupsClaim'] == null ? undefined : json['groupsClaim'],
|
|
39
|
+
'idpAuthorizationUrl': json['idpAuthorizationUrl'] == null ? undefined : json['idpAuthorizationUrl'],
|
|
40
|
+
'idpJwks': json['idpJwks'] == null ? undefined : json['idpJwks'],
|
|
41
|
+
'idpJwksUrl': json['idpJwksUrl'] == null ? undefined : json['idpJwksUrl'],
|
|
42
|
+
'idpJwsAlgorithm': json['idpJwsAlgorithm'],
|
|
43
|
+
'idpLogoutUrl': json['idpLogoutUrl'] == null ? undefined : json['idpLogoutUrl'],
|
|
44
|
+
'idpTokenUrl': json['idpTokenUrl'] == null ? undefined : json['idpTokenUrl'],
|
|
45
|
+
'lastNameClaim': json['lastNameClaim'] == null ? undefined : json['lastNameClaim'],
|
|
46
|
+
'tokenRequestCustomParams': json['tokenRequestCustomParams'] == null ? undefined : json['tokenRequestCustomParams'],
|
|
47
|
+
'useTrustStore': json['useTrustStore'] == null ? undefined : json['useTrustStore'],
|
|
48
|
+
'usernameClaim': json['usernameClaim'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function OAuth2OidcConfigurationXOToJSON(json) {
|
|
52
|
+
return OAuth2OidcConfigurationXOToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function OAuth2OidcConfigurationXOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'authorizationCustomParams': value['authorizationCustomParams'],
|
|
60
|
+
'clientId': value['clientId'],
|
|
61
|
+
'clientSecret': value['clientSecret'],
|
|
62
|
+
'emailClaim': value['emailClaim'],
|
|
63
|
+
'exactMatchClaims': value['exactMatchClaims'],
|
|
64
|
+
'firstNameClaim': value['firstNameClaim'],
|
|
65
|
+
'groupsClaim': value['groupsClaim'],
|
|
66
|
+
'idpAuthorizationUrl': value['idpAuthorizationUrl'],
|
|
67
|
+
'idpJwks': value['idpJwks'],
|
|
68
|
+
'idpJwksUrl': value['idpJwksUrl'],
|
|
69
|
+
'idpJwsAlgorithm': value['idpJwsAlgorithm'],
|
|
70
|
+
'idpLogoutUrl': value['idpLogoutUrl'],
|
|
71
|
+
'idpTokenUrl': value['idpTokenUrl'],
|
|
72
|
+
'lastNameClaim': value['lastNameClaim'],
|
|
73
|
+
'tokenRequestCustomParams': value['tokenRequestCustomParams'],
|
|
74
|
+
'useTrustStore': value['useTrustStore'],
|
|
75
|
+
'usernameClaim': value['usernameClaim'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -195,6 +195,7 @@ export * from './NugetHostedApiRepository';
|
|
|
195
195
|
export * from './NugetHostedRepositoryApiRequest';
|
|
196
196
|
export * from './NugetProxyApiRepository';
|
|
197
197
|
export * from './NugetProxyRepositoryApiRequest';
|
|
198
|
+
export * from './OAuth2OidcConfigurationXO';
|
|
198
199
|
export * from './OciAttributes';
|
|
199
200
|
export * from './OciCosignConfiguration';
|
|
200
201
|
export * from './OciGroupApiRepository';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -197,6 +197,7 @@ export * from './NugetHostedApiRepository';
|
|
|
197
197
|
export * from './NugetHostedRepositoryApiRequest';
|
|
198
198
|
export * from './NugetProxyApiRepository';
|
|
199
199
|
export * from './NugetProxyRepositoryApiRequest';
|
|
200
|
+
export * from './OAuth2OidcConfigurationXO';
|
|
200
201
|
export * from './OciAttributes';
|
|
201
202
|
export * from './OciCosignConfiguration';
|
|
202
203
|
export * from './OciGroupApiRepository';
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sonatype Nexus Repository Manager
|
|
3
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.95.0-07.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.95.0-07
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OAuth2OidcConfigurationXO
|
|
16
|
+
*/
|
|
17
|
+
export interface OAuth2OidcConfigurationXO {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: string; }}
|
|
21
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
22
|
+
*/
|
|
23
|
+
authorizationCustomParams?: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
30
|
+
*/
|
|
31
|
+
clientId?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
36
|
+
*/
|
|
37
|
+
clientSecret?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
42
|
+
*/
|
|
43
|
+
emailClaim?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: string; }}
|
|
47
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
48
|
+
*/
|
|
49
|
+
exactMatchClaims?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
56
|
+
*/
|
|
57
|
+
firstNameClaim?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
62
|
+
*/
|
|
63
|
+
groupsClaim?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
68
|
+
*/
|
|
69
|
+
idpAuthorizationUrl?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
74
|
+
*/
|
|
75
|
+
idpJwks?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
80
|
+
*/
|
|
81
|
+
idpJwksUrl?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
86
|
+
*/
|
|
87
|
+
idpJwsAlgorithm: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
92
|
+
*/
|
|
93
|
+
idpLogoutUrl?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
98
|
+
*/
|
|
99
|
+
idpTokenUrl?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
104
|
+
*/
|
|
105
|
+
lastNameClaim?: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {{ [key: string]: string; }}
|
|
109
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
110
|
+
*/
|
|
111
|
+
tokenRequestCustomParams?: {
|
|
112
|
+
[key: string]: string;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
118
|
+
*/
|
|
119
|
+
useTrustStore?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof OAuth2OidcConfigurationXO
|
|
124
|
+
*/
|
|
125
|
+
usernameClaim: string;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the OAuth2OidcConfigurationXO interface.
|
|
129
|
+
*/
|
|
130
|
+
export declare function instanceOfOAuth2OidcConfigurationXO(value: object): value is OAuth2OidcConfigurationXO;
|
|
131
|
+
export declare function OAuth2OidcConfigurationXOFromJSON(json: any): OAuth2OidcConfigurationXO;
|
|
132
|
+
export declare function OAuth2OidcConfigurationXOFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuth2OidcConfigurationXO;
|
|
133
|
+
export declare function OAuth2OidcConfigurationXOToJSON(json: any): OAuth2OidcConfigurationXO;
|
|
134
|
+
export declare function OAuth2OidcConfigurationXOToJSONTyped(value?: OAuth2OidcConfigurationXO | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sonatype Nexus Repository Manager
|
|
6
|
+
* This documents the available APIs into [Sonatype Nexus Repository Manager](https://www.sonatype.com/products/sonatype-nexus-repository) as of version 3.95.0-07.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.95.0-07
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfOAuth2OidcConfigurationXO = instanceOfOAuth2OidcConfigurationXO;
|
|
17
|
+
exports.OAuth2OidcConfigurationXOFromJSON = OAuth2OidcConfigurationXOFromJSON;
|
|
18
|
+
exports.OAuth2OidcConfigurationXOFromJSONTyped = OAuth2OidcConfigurationXOFromJSONTyped;
|
|
19
|
+
exports.OAuth2OidcConfigurationXOToJSON = OAuth2OidcConfigurationXOToJSON;
|
|
20
|
+
exports.OAuth2OidcConfigurationXOToJSONTyped = OAuth2OidcConfigurationXOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the OAuth2OidcConfigurationXO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfOAuth2OidcConfigurationXO(value) {
|
|
25
|
+
if (!('idpJwsAlgorithm' in value) || value['idpJwsAlgorithm'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('usernameClaim' in value) || value['usernameClaim'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function OAuth2OidcConfigurationXOFromJSON(json) {
|
|
32
|
+
return OAuth2OidcConfigurationXOFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function OAuth2OidcConfigurationXOFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'authorizationCustomParams': json['authorizationCustomParams'] == null ? undefined : json['authorizationCustomParams'],
|
|
40
|
+
'clientId': json['clientId'] == null ? undefined : json['clientId'],
|
|
41
|
+
'clientSecret': json['clientSecret'] == null ? undefined : json['clientSecret'],
|
|
42
|
+
'emailClaim': json['emailClaim'] == null ? undefined : json['emailClaim'],
|
|
43
|
+
'exactMatchClaims': json['exactMatchClaims'] == null ? undefined : json['exactMatchClaims'],
|
|
44
|
+
'firstNameClaim': json['firstNameClaim'] == null ? undefined : json['firstNameClaim'],
|
|
45
|
+
'groupsClaim': json['groupsClaim'] == null ? undefined : json['groupsClaim'],
|
|
46
|
+
'idpAuthorizationUrl': json['idpAuthorizationUrl'] == null ? undefined : json['idpAuthorizationUrl'],
|
|
47
|
+
'idpJwks': json['idpJwks'] == null ? undefined : json['idpJwks'],
|
|
48
|
+
'idpJwksUrl': json['idpJwksUrl'] == null ? undefined : json['idpJwksUrl'],
|
|
49
|
+
'idpJwsAlgorithm': json['idpJwsAlgorithm'],
|
|
50
|
+
'idpLogoutUrl': json['idpLogoutUrl'] == null ? undefined : json['idpLogoutUrl'],
|
|
51
|
+
'idpTokenUrl': json['idpTokenUrl'] == null ? undefined : json['idpTokenUrl'],
|
|
52
|
+
'lastNameClaim': json['lastNameClaim'] == null ? undefined : json['lastNameClaim'],
|
|
53
|
+
'tokenRequestCustomParams': json['tokenRequestCustomParams'] == null ? undefined : json['tokenRequestCustomParams'],
|
|
54
|
+
'useTrustStore': json['useTrustStore'] == null ? undefined : json['useTrustStore'],
|
|
55
|
+
'usernameClaim': json['usernameClaim'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function OAuth2OidcConfigurationXOToJSON(json) {
|
|
59
|
+
return OAuth2OidcConfigurationXOToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function OAuth2OidcConfigurationXOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'authorizationCustomParams': value['authorizationCustomParams'],
|
|
67
|
+
'clientId': value['clientId'],
|
|
68
|
+
'clientSecret': value['clientSecret'],
|
|
69
|
+
'emailClaim': value['emailClaim'],
|
|
70
|
+
'exactMatchClaims': value['exactMatchClaims'],
|
|
71
|
+
'firstNameClaim': value['firstNameClaim'],
|
|
72
|
+
'groupsClaim': value['groupsClaim'],
|
|
73
|
+
'idpAuthorizationUrl': value['idpAuthorizationUrl'],
|
|
74
|
+
'idpJwks': value['idpJwks'],
|
|
75
|
+
'idpJwksUrl': value['idpJwksUrl'],
|
|
76
|
+
'idpJwsAlgorithm': value['idpJwsAlgorithm'],
|
|
77
|
+
'idpLogoutUrl': value['idpLogoutUrl'],
|
|
78
|
+
'idpTokenUrl': value['idpTokenUrl'],
|
|
79
|
+
'lastNameClaim': value['lastNameClaim'],
|
|
80
|
+
'tokenRequestCustomParams': value['tokenRequestCustomParams'],
|
|
81
|
+
'useTrustStore': value['useTrustStore'],
|
|
82
|
+
'usernameClaim': value['usernameClaim'],
|
|
83
|
+
};
|
|
84
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ export * from './NugetHostedApiRepository';
|
|
|
195
195
|
export * from './NugetHostedRepositoryApiRequest';
|
|
196
196
|
export * from './NugetProxyApiRepository';
|
|
197
197
|
export * from './NugetProxyRepositoryApiRequest';
|
|
198
|
+
export * from './OAuth2OidcConfigurationXO';
|
|
198
199
|
export * from './OciAttributes';
|
|
199
200
|
export * from './OciCosignConfiguration';
|
|
200
201
|
export * from './OciGroupApiRepository';
|
package/dist/models/index.js
CHANGED
|
@@ -213,6 +213,7 @@ __exportStar(require("./NugetHostedApiRepository"), exports);
|
|
|
213
213
|
__exportStar(require("./NugetHostedRepositoryApiRequest"), exports);
|
|
214
214
|
__exportStar(require("./NugetProxyApiRepository"), exports);
|
|
215
215
|
__exportStar(require("./NugetProxyRepositoryApiRequest"), exports);
|
|
216
|
+
__exportStar(require("./OAuth2OidcConfigurationXO"), exports);
|
|
216
217
|
__exportStar(require("./OciAttributes"), exports);
|
|
217
218
|
__exportStar(require("./OciCosignConfiguration"), exports);
|
|
218
219
|
__exportStar(require("./OciGroupApiRepository"), exports);
|