@goauthentik/api 2024.10.2-1731887740 → 2024.10.2-1732206118
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/ProvidersApi.d.ts +0 -2
- package/dist/apis/ProvidersApi.js +0 -6
- package/dist/esm/apis/ProvidersApi.d.ts +0 -2
- package/dist/esm/apis/ProvidersApi.js +0 -6
- package/dist/esm/models/MatchingModeEnum.d.ts +24 -0
- package/dist/esm/models/MatchingModeEnum.js +31 -0
- package/dist/esm/models/OAuth2Provider.d.ts +4 -3
- package/dist/esm/models/OAuth2Provider.js +4 -2
- package/dist/esm/models/OAuth2ProviderRequest.d.ts +4 -3
- package/dist/esm/models/OAuth2ProviderRequest.js +4 -2
- package/dist/esm/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
- package/dist/esm/models/PatchedOAuth2ProviderRequest.js +3 -2
- package/dist/esm/models/ProxyProvider.d.ts +3 -2
- package/dist/esm/models/ProxyProvider.js +2 -1
- package/dist/esm/models/RedirectURI.d.ts +38 -0
- package/dist/esm/models/RedirectURI.js +47 -0
- package/dist/esm/models/RedirectURIRequest.d.ts +38 -0
- package/dist/esm/models/RedirectURIRequest.js +47 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/MatchingModeEnum.d.ts +24 -0
- package/dist/models/MatchingModeEnum.js +37 -0
- package/dist/models/OAuth2Provider.d.ts +4 -3
- package/dist/models/OAuth2Provider.js +4 -2
- package/dist/models/OAuth2ProviderRequest.d.ts +4 -3
- package/dist/models/OAuth2ProviderRequest.js +4 -2
- package/dist/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
- package/dist/models/PatchedOAuth2ProviderRequest.js +3 -2
- package/dist/models/ProxyProvider.d.ts +3 -2
- package/dist/models/ProxyProvider.js +2 -1
- package/dist/models/RedirectURI.d.ts +38 -0
- package/dist/models/RedirectURI.js +54 -0
- package/dist/models/RedirectURIRequest.d.ts +38 -0
- package/dist/models/RedirectURIRequest.js +54 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ProvidersApi.ts +0 -10
- package/src/models/MatchingModeEnum.ts +39 -0
- package/src/models/OAuth2Provider.ts +12 -5
- package/src/models/OAuth2ProviderRequest.ts +12 -5
- package/src/models/PatchedOAuth2ProviderRequest.ts +11 -5
- package/src/models/ProxyProvider.ts +9 -3
- package/src/models/RedirectURI.ts +82 -0
- package/src/models/RedirectURIRequest.ts +82 -0
- package/src/models/index.ts +3 -0
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
ProxyModeFromJSONTyped,
|
|
20
20
|
ProxyModeToJSON,
|
|
21
21
|
} from './ProxyMode';
|
|
22
|
+
import type { RedirectURI } from './RedirectURI';
|
|
23
|
+
import {
|
|
24
|
+
RedirectURIFromJSON,
|
|
25
|
+
RedirectURIFromJSONTyped,
|
|
26
|
+
RedirectURIToJSON,
|
|
27
|
+
} from './RedirectURI';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
* ProxyProvider Serializer
|
|
@@ -178,10 +184,10 @@ export interface ProxyProvider {
|
|
|
178
184
|
interceptHeaderAuth?: boolean;
|
|
179
185
|
/**
|
|
180
186
|
*
|
|
181
|
-
* @type {
|
|
187
|
+
* @type {Array<RedirectURI>}
|
|
182
188
|
* @memberof ProxyProvider
|
|
183
189
|
*/
|
|
184
|
-
readonly redirectUris:
|
|
190
|
+
readonly redirectUris: Array<RedirectURI>;
|
|
185
191
|
/**
|
|
186
192
|
*
|
|
187
193
|
* @type {string}
|
|
@@ -274,7 +280,7 @@ export function ProxyProviderFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
274
280
|
'basicAuthUserAttribute': !exists(json, 'basic_auth_user_attribute') ? undefined : json['basic_auth_user_attribute'],
|
|
275
281
|
'mode': !exists(json, 'mode') ? undefined : ProxyModeFromJSON(json['mode']),
|
|
276
282
|
'interceptHeaderAuth': !exists(json, 'intercept_header_auth') ? undefined : json['intercept_header_auth'],
|
|
277
|
-
'redirectUris': json['redirect_uris'],
|
|
283
|
+
'redirectUris': ((json['redirect_uris'] as Array<any>).map(RedirectURIFromJSON)),
|
|
278
284
|
'cookieDomain': !exists(json, 'cookie_domain') ? undefined : json['cookie_domain'],
|
|
279
285
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
|
280
286
|
'accessTokenValidity': !exists(json, 'access_token_validity') ? undefined : json['access_token_validity'],
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.2
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MatchingModeEnum } from './MatchingModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
MatchingModeEnumFromJSON,
|
|
19
|
+
MatchingModeEnumFromJSONTyped,
|
|
20
|
+
MatchingModeEnumToJSON,
|
|
21
|
+
} from './MatchingModeEnum';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A single allowed redirect URI entry
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RedirectURI
|
|
27
|
+
*/
|
|
28
|
+
export interface RedirectURI {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MatchingModeEnum}
|
|
32
|
+
* @memberof RedirectURI
|
|
33
|
+
*/
|
|
34
|
+
matchingMode: MatchingModeEnum;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RedirectURI
|
|
39
|
+
*/
|
|
40
|
+
url: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the RedirectURI interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfRedirectURI(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "matchingMode" in value;
|
|
49
|
+
isInstance = isInstance && "url" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function RedirectURIFromJSON(json: any): RedirectURI {
|
|
55
|
+
return RedirectURIFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function RedirectURIFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectURI {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'matchingMode': MatchingModeEnumFromJSON(json['matching_mode']),
|
|
65
|
+
'url': json['url'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RedirectURIToJSON(value?: RedirectURI | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'matching_mode': MatchingModeEnumToJSON(value.matchingMode),
|
|
79
|
+
'url': value.url,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.2
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
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
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { MatchingModeEnum } from './MatchingModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
MatchingModeEnumFromJSON,
|
|
19
|
+
MatchingModeEnumFromJSONTyped,
|
|
20
|
+
MatchingModeEnumToJSON,
|
|
21
|
+
} from './MatchingModeEnum';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A single allowed redirect URI entry
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RedirectURIRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface RedirectURIRequest {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MatchingModeEnum}
|
|
32
|
+
* @memberof RedirectURIRequest
|
|
33
|
+
*/
|
|
34
|
+
matchingMode: MatchingModeEnum;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RedirectURIRequest
|
|
39
|
+
*/
|
|
40
|
+
url: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the RedirectURIRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfRedirectURIRequest(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "matchingMode" in value;
|
|
49
|
+
isInstance = isInstance && "url" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function RedirectURIRequestFromJSON(json: any): RedirectURIRequest {
|
|
55
|
+
return RedirectURIRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function RedirectURIRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectURIRequest {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'matchingMode': MatchingModeEnumFromJSON(json['matching_mode']),
|
|
65
|
+
'url': json['url'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RedirectURIRequestToJSON(value?: RedirectURIRequest | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'matching_mode': MatchingModeEnumToJSON(value.matchingMode),
|
|
79
|
+
'url': value.url,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -213,6 +213,7 @@ export * from './LogLevelEnum';
|
|
|
213
213
|
export * from './LoginChallengeTypes';
|
|
214
214
|
export * from './LoginMetrics';
|
|
215
215
|
export * from './LoginSource';
|
|
216
|
+
export * from './MatchingModeEnum';
|
|
216
217
|
export * from './Metadata';
|
|
217
218
|
export * from './MicrosoftEntraProvider';
|
|
218
219
|
export * from './MicrosoftEntraProviderGroup';
|
|
@@ -537,6 +538,8 @@ export * from './RadiusProviderPropertyMapping';
|
|
|
537
538
|
export * from './RadiusProviderPropertyMappingRequest';
|
|
538
539
|
export * from './RadiusProviderRequest';
|
|
539
540
|
export * from './RedirectChallenge';
|
|
541
|
+
export * from './RedirectURI';
|
|
542
|
+
export * from './RedirectURIRequest';
|
|
540
543
|
export * from './Reputation';
|
|
541
544
|
export * from './ReputationPolicy';
|
|
542
545
|
export * from './ReputationPolicyRequest';
|