@sonatype/nexus-repo-api-client 3.96.0 → 3.96.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/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/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/RawProxyApiRepository.d.ts +7 -0
- package/dist/esm/models/RawProxyApiRepository.js +3 -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/RawProxyApiRepository.d.ts +7 -0
- package/dist/models/RawProxyApiRepository.js +3 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- 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/RawProxyApiRepository.ts +15 -0
- package/src/models/index.ts +1 -0
|
@@ -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.96.0-09.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.96.0-09
|
|
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.96.0-09.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.96.0-09
|
|
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
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NegativeCacheAttributes } from './NegativeCacheAttributes';
|
|
13
|
+
import type { FirewallAttributes } from './FirewallAttributes';
|
|
13
14
|
import type { ProxyAttributes } from './ProxyAttributes';
|
|
14
15
|
import type { RawAttributes } from './RawAttributes';
|
|
15
16
|
import type { StorageAttributes } from './StorageAttributes';
|
|
@@ -28,6 +29,12 @@ export interface RawProxyApiRepository {
|
|
|
28
29
|
* @memberof RawProxyApiRepository
|
|
29
30
|
*/
|
|
30
31
|
cleanup?: CleanupPolicyAttributes;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {FirewallAttributes}
|
|
35
|
+
* @memberof RawProxyApiRepository
|
|
36
|
+
*/
|
|
37
|
+
firewall?: FirewallAttributes;
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
33
40
|
* @type {string}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { NegativeCacheAttributesFromJSON, NegativeCacheAttributesToJSON, } from './NegativeCacheAttributes';
|
|
15
|
+
import { FirewallAttributesFromJSON, FirewallAttributesToJSON, } from './FirewallAttributes';
|
|
15
16
|
import { ProxyAttributesFromJSON, ProxyAttributesToJSON, } from './ProxyAttributes';
|
|
16
17
|
import { RawAttributesFromJSON, RawAttributesToJSON, } from './RawAttributes';
|
|
17
18
|
import { StorageAttributesFromJSON, StorageAttributesToJSON, } from './StorageAttributes';
|
|
@@ -53,6 +54,7 @@ export function RawProxyApiRepositoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
54
|
}
|
|
54
55
|
return {
|
|
55
56
|
'cleanup': json['cleanup'] == null ? undefined : CleanupPolicyAttributesFromJSON(json['cleanup']),
|
|
57
|
+
'firewall': json['firewall'] == null ? undefined : FirewallAttributesFromJSON(json['firewall']),
|
|
56
58
|
'format': json['format'],
|
|
57
59
|
'httpClient': HttpClientAttributesFromJSON(json['httpClient']),
|
|
58
60
|
'name': json['name'],
|
|
@@ -76,6 +78,7 @@ export function RawProxyApiRepositoryToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
76
78
|
}
|
|
77
79
|
return {
|
|
78
80
|
'cleanup': CleanupPolicyAttributesToJSON(value['cleanup']),
|
|
81
|
+
'firewall': FirewallAttributesToJSON(value['firewall']),
|
|
79
82
|
'format': value['format'],
|
|
80
83
|
'httpClient': HttpClientAttributesToJSON(value['httpClient']),
|
|
81
84
|
'name': value['name'],
|
|
@@ -201,6 +201,7 @@ export * from './NugetHostedApiRepository';
|
|
|
201
201
|
export * from './NugetHostedRepositoryApiRequest';
|
|
202
202
|
export * from './NugetProxyApiRepository';
|
|
203
203
|
export * from './NugetProxyRepositoryApiRequest';
|
|
204
|
+
export * from './OAuth2OidcConfigurationXO';
|
|
204
205
|
export * from './OciAttributes';
|
|
205
206
|
export * from './OciCosignConfiguration';
|
|
206
207
|
export * from './OciGroupApiRepository';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -203,6 +203,7 @@ export * from './NugetHostedApiRepository';
|
|
|
203
203
|
export * from './NugetHostedRepositoryApiRequest';
|
|
204
204
|
export * from './NugetProxyApiRepository';
|
|
205
205
|
export * from './NugetProxyRepositoryApiRequest';
|
|
206
|
+
export * from './OAuth2OidcConfigurationXO';
|
|
206
207
|
export * from './OciAttributes';
|
|
207
208
|
export * from './OciCosignConfiguration';
|
|
208
209
|
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.96.0-09.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.96.0-09
|
|
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.96.0-09.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 3.96.0-09
|
|
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
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NegativeCacheAttributes } from './NegativeCacheAttributes';
|
|
13
|
+
import type { FirewallAttributes } from './FirewallAttributes';
|
|
13
14
|
import type { ProxyAttributes } from './ProxyAttributes';
|
|
14
15
|
import type { RawAttributes } from './RawAttributes';
|
|
15
16
|
import type { StorageAttributes } from './StorageAttributes';
|
|
@@ -28,6 +29,12 @@ export interface RawProxyApiRepository {
|
|
|
28
29
|
* @memberof RawProxyApiRepository
|
|
29
30
|
*/
|
|
30
31
|
cleanup?: CleanupPolicyAttributes;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {FirewallAttributes}
|
|
35
|
+
* @memberof RawProxyApiRepository
|
|
36
|
+
*/
|
|
37
|
+
firewall?: FirewallAttributes;
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
33
40
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.RawProxyApiRepositoryFromJSONTyped = RawProxyApiRepositoryFromJSONTyped;
|
|
|
19
19
|
exports.RawProxyApiRepositoryToJSON = RawProxyApiRepositoryToJSON;
|
|
20
20
|
exports.RawProxyApiRepositoryToJSONTyped = RawProxyApiRepositoryToJSONTyped;
|
|
21
21
|
const NegativeCacheAttributes_1 = require("./NegativeCacheAttributes");
|
|
22
|
+
const FirewallAttributes_1 = require("./FirewallAttributes");
|
|
22
23
|
const ProxyAttributes_1 = require("./ProxyAttributes");
|
|
23
24
|
const RawAttributes_1 = require("./RawAttributes");
|
|
24
25
|
const StorageAttributes_1 = require("./StorageAttributes");
|
|
@@ -60,6 +61,7 @@ function RawProxyApiRepositoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
}
|
|
61
62
|
return {
|
|
62
63
|
'cleanup': json['cleanup'] == null ? undefined : (0, CleanupPolicyAttributes_1.CleanupPolicyAttributesFromJSON)(json['cleanup']),
|
|
64
|
+
'firewall': json['firewall'] == null ? undefined : (0, FirewallAttributes_1.FirewallAttributesFromJSON)(json['firewall']),
|
|
63
65
|
'format': json['format'],
|
|
64
66
|
'httpClient': (0, HttpClientAttributes_1.HttpClientAttributesFromJSON)(json['httpClient']),
|
|
65
67
|
'name': json['name'],
|
|
@@ -83,6 +85,7 @@ function RawProxyApiRepositoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
85
|
}
|
|
84
86
|
return {
|
|
85
87
|
'cleanup': (0, CleanupPolicyAttributes_1.CleanupPolicyAttributesToJSON)(value['cleanup']),
|
|
88
|
+
'firewall': (0, FirewallAttributes_1.FirewallAttributesToJSON)(value['firewall']),
|
|
86
89
|
'format': value['format'],
|
|
87
90
|
'httpClient': (0, HttpClientAttributes_1.HttpClientAttributesToJSON)(value['httpClient']),
|
|
88
91
|
'name': value['name'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -201,6 +201,7 @@ export * from './NugetHostedApiRepository';
|
|
|
201
201
|
export * from './NugetHostedRepositoryApiRequest';
|
|
202
202
|
export * from './NugetProxyApiRepository';
|
|
203
203
|
export * from './NugetProxyRepositoryApiRequest';
|
|
204
|
+
export * from './OAuth2OidcConfigurationXO';
|
|
204
205
|
export * from './OciAttributes';
|
|
205
206
|
export * from './OciCosignConfiguration';
|
|
206
207
|
export * from './OciGroupApiRepository';
|
package/dist/models/index.js
CHANGED
|
@@ -219,6 +219,7 @@ __exportStar(require("./NugetHostedApiRepository"), exports);
|
|
|
219
219
|
__exportStar(require("./NugetHostedRepositoryApiRequest"), exports);
|
|
220
220
|
__exportStar(require("./NugetProxyApiRepository"), exports);
|
|
221
221
|
__exportStar(require("./NugetProxyRepositoryApiRequest"), exports);
|
|
222
|
+
__exportStar(require("./OAuth2OidcConfigurationXO"), exports);
|
|
222
223
|
__exportStar(require("./OciAttributes"), exports);
|
|
223
224
|
__exportStar(require("./OciCosignConfiguration"), exports);
|
|
224
225
|
__exportStar(require("./OciGroupApiRepository"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
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.96.0-09.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 3.96.0-09
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export class SecurityManagementJWTApi extends runtime.BaseAPI {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Reset JWT secret (note that session will be expired for the all logged-in users)
|
|
25
|
+
*/
|
|
26
|
+
async updateSecurityJwtRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
27
|
+
const queryParameters: any = {};
|
|
28
|
+
|
|
29
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
30
|
+
|
|
31
|
+
if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
|
|
32
|
+
headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
let urlPath = `/v1/security/jwt`;
|
|
36
|
+
|
|
37
|
+
const response = await this.request({
|
|
38
|
+
path: urlPath,
|
|
39
|
+
method: 'PUT',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
}, initOverrides);
|
|
43
|
+
|
|
44
|
+
return new runtime.VoidApiResponse(response);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Reset JWT secret (note that session will be expired for the all logged-in users)
|
|
49
|
+
*/
|
|
50
|
+
async updateSecurityJwt(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
51
|
+
await this.updateSecurityJwtRaw(initOverrides);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|