@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
package/.openapi-generator/FILES
CHANGED
|
@@ -238,6 +238,7 @@ src/models/LogLevelEnum.ts
|
|
|
238
238
|
src/models/LoginChallengeTypes.ts
|
|
239
239
|
src/models/LoginMetrics.ts
|
|
240
240
|
src/models/LoginSource.ts
|
|
241
|
+
src/models/MatchingModeEnum.ts
|
|
241
242
|
src/models/Metadata.ts
|
|
242
243
|
src/models/MicrosoftEntraProvider.ts
|
|
243
244
|
src/models/MicrosoftEntraProviderGroup.ts
|
|
@@ -562,6 +563,8 @@ src/models/RadiusProviderPropertyMapping.ts
|
|
|
562
563
|
src/models/RadiusProviderPropertyMappingRequest.ts
|
|
563
564
|
src/models/RadiusProviderRequest.ts
|
|
564
565
|
src/models/RedirectChallenge.ts
|
|
566
|
+
src/models/RedirectURI.ts
|
|
567
|
+
src/models/RedirectURIRequest.ts
|
|
565
568
|
src/models/Reputation.ts
|
|
566
569
|
src/models/ReputationPolicy.ts
|
|
567
570
|
src/models/ReputationPolicyRequest.ts
|
|
@@ -240,7 +240,6 @@ export interface ProvidersOauth2ListRequest {
|
|
|
240
240
|
page?: number;
|
|
241
241
|
pageSize?: number;
|
|
242
242
|
propertyMappings?: Array<string>;
|
|
243
|
-
redirectUris?: string;
|
|
244
243
|
refreshTokenValidity?: string;
|
|
245
244
|
search?: string;
|
|
246
245
|
signingKey?: string;
|
|
@@ -291,7 +290,6 @@ export interface ProvidersProxyListRequest {
|
|
|
291
290
|
page?: number;
|
|
292
291
|
pageSize?: number;
|
|
293
292
|
propertyMappingsIexact?: Array<string>;
|
|
294
|
-
redirectUrisIexact?: string;
|
|
295
293
|
search?: string;
|
|
296
294
|
skipPathRegexIexact?: string;
|
|
297
295
|
}
|
|
@@ -2091,9 +2091,6 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
|
2091
2091
|
if (requestParameters.propertyMappings) {
|
|
2092
2092
|
queryParameters['property_mappings'] = requestParameters.propertyMappings;
|
|
2093
2093
|
}
|
|
2094
|
-
if (requestParameters.redirectUris !== undefined) {
|
|
2095
|
-
queryParameters['redirect_uris'] = requestParameters.redirectUris;
|
|
2096
|
-
}
|
|
2097
2094
|
if (requestParameters.refreshTokenValidity !== undefined) {
|
|
2098
2095
|
queryParameters['refresh_token_validity'] = requestParameters.refreshTokenValidity;
|
|
2099
2096
|
}
|
|
@@ -2480,9 +2477,6 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
|
2480
2477
|
if (requestParameters.propertyMappingsIexact) {
|
|
2481
2478
|
queryParameters['property_mappings__iexact'] = requestParameters.propertyMappingsIexact;
|
|
2482
2479
|
}
|
|
2483
|
-
if (requestParameters.redirectUrisIexact !== undefined) {
|
|
2484
|
-
queryParameters['redirect_uris__iexact'] = requestParameters.redirectUrisIexact;
|
|
2485
|
-
}
|
|
2486
2480
|
if (requestParameters.search !== undefined) {
|
|
2487
2481
|
queryParameters['search'] = requestParameters.search;
|
|
2488
2482
|
}
|
|
@@ -240,7 +240,6 @@ export interface ProvidersOauth2ListRequest {
|
|
|
240
240
|
page?: number;
|
|
241
241
|
pageSize?: number;
|
|
242
242
|
propertyMappings?: Array<string>;
|
|
243
|
-
redirectUris?: string;
|
|
244
243
|
refreshTokenValidity?: string;
|
|
245
244
|
search?: string;
|
|
246
245
|
signingKey?: string;
|
|
@@ -291,7 +290,6 @@ export interface ProvidersProxyListRequest {
|
|
|
291
290
|
page?: number;
|
|
292
291
|
pageSize?: number;
|
|
293
292
|
propertyMappingsIexact?: Array<string>;
|
|
294
|
-
redirectUrisIexact?: string;
|
|
295
293
|
search?: string;
|
|
296
294
|
skipPathRegexIexact?: string;
|
|
297
295
|
}
|
|
@@ -2088,9 +2088,6 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
2088
2088
|
if (requestParameters.propertyMappings) {
|
|
2089
2089
|
queryParameters['property_mappings'] = requestParameters.propertyMappings;
|
|
2090
2090
|
}
|
|
2091
|
-
if (requestParameters.redirectUris !== undefined) {
|
|
2092
|
-
queryParameters['redirect_uris'] = requestParameters.redirectUris;
|
|
2093
|
-
}
|
|
2094
2091
|
if (requestParameters.refreshTokenValidity !== undefined) {
|
|
2095
2092
|
queryParameters['refresh_token_validity'] = requestParameters.refreshTokenValidity;
|
|
2096
2093
|
}
|
|
@@ -2477,9 +2474,6 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
2477
2474
|
if (requestParameters.propertyMappingsIexact) {
|
|
2478
2475
|
queryParameters['property_mappings__iexact'] = requestParameters.propertyMappingsIexact;
|
|
2479
2476
|
}
|
|
2480
|
-
if (requestParameters.redirectUrisIexact !== undefined) {
|
|
2481
|
-
queryParameters['redirect_uris__iexact'] = requestParameters.redirectUrisIexact;
|
|
2482
|
-
}
|
|
2483
2477
|
if (requestParameters.search !== undefined) {
|
|
2484
2478
|
queryParameters['search'] = requestParameters.search;
|
|
2485
2479
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
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
|
+
*/
|
|
16
|
+
export declare const MatchingModeEnum: {
|
|
17
|
+
readonly Strict: "strict";
|
|
18
|
+
readonly Regex: "regex";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type MatchingModeEnum = typeof MatchingModeEnum[keyof typeof MatchingModeEnum];
|
|
22
|
+
export declare function MatchingModeEnumFromJSON(json: any): MatchingModeEnum;
|
|
23
|
+
export declare function MatchingModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchingModeEnum;
|
|
24
|
+
export declare function MatchingModeEnumToJSON(value?: MatchingModeEnum | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const MatchingModeEnum = {
|
|
19
|
+
Strict: 'strict',
|
|
20
|
+
Regex: 'regex',
|
|
21
|
+
UnknownDefaultOpenApi: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function MatchingModeEnumFromJSON(json) {
|
|
24
|
+
return MatchingModeEnumFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function MatchingModeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
export function MatchingModeEnumToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ClientTypeEnum } from './ClientTypeEnum';
|
|
13
13
|
import type { IssuerModeEnum } from './IssuerModeEnum';
|
|
14
|
+
import type { RedirectURI } from './RedirectURI';
|
|
14
15
|
import type { SubModeEnum } from './SubModeEnum';
|
|
15
16
|
/**
|
|
16
17
|
* OAuth2Provider Serializer
|
|
@@ -157,11 +158,11 @@ export interface OAuth2Provider {
|
|
|
157
158
|
*/
|
|
158
159
|
encryptionKey?: string | null;
|
|
159
160
|
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {
|
|
161
|
+
*
|
|
162
|
+
* @type {Array<RedirectURI>}
|
|
162
163
|
* @memberof OAuth2Provider
|
|
163
164
|
*/
|
|
164
|
-
redirectUris
|
|
165
|
+
redirectUris: Array<RedirectURI>;
|
|
165
166
|
/**
|
|
166
167
|
*
|
|
167
168
|
* @type {SubModeEnum}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { ClientTypeEnumFromJSON, ClientTypeEnumToJSON, } from './ClientTypeEnum';
|
|
16
16
|
import { IssuerModeEnumFromJSON, IssuerModeEnumToJSON, } from './IssuerModeEnum';
|
|
17
|
+
import { RedirectURIFromJSON, RedirectURIToJSON, } from './RedirectURI';
|
|
17
18
|
import { SubModeEnumFromJSON, SubModeEnumToJSON, } from './SubModeEnum';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the OAuth2Provider interface.
|
|
@@ -32,6 +33,7 @@ export function instanceOfOAuth2Provider(value) {
|
|
|
32
33
|
isInstance = isInstance && "verboseName" in value;
|
|
33
34
|
isInstance = isInstance && "verboseNamePlural" in value;
|
|
34
35
|
isInstance = isInstance && "metaModelName" in value;
|
|
36
|
+
isInstance = isInstance && "redirectUris" in value;
|
|
35
37
|
return isInstance;
|
|
36
38
|
}
|
|
37
39
|
export function OAuth2ProviderFromJSON(json) {
|
|
@@ -65,7 +67,7 @@ export function OAuth2ProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
|
66
68
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
|
67
69
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
|
68
|
-
'redirectUris':
|
|
70
|
+
'redirectUris': (json['redirect_uris'].map(RedirectURIFromJSON)),
|
|
69
71
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
|
70
72
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
|
71
73
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
|
@@ -93,7 +95,7 @@ export function OAuth2ProviderToJSON(value) {
|
|
|
93
95
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
|
94
96
|
'signing_key': value.signingKey,
|
|
95
97
|
'encryption_key': value.encryptionKey,
|
|
96
|
-
'redirect_uris': value.redirectUris,
|
|
98
|
+
'redirect_uris': (value.redirectUris.map(RedirectURIToJSON)),
|
|
97
99
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
|
98
100
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
|
99
101
|
'jwks_sources': value.jwksSources,
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ClientTypeEnum } from './ClientTypeEnum';
|
|
13
13
|
import type { IssuerModeEnum } from './IssuerModeEnum';
|
|
14
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
|
14
15
|
import type { SubModeEnum } from './SubModeEnum';
|
|
15
16
|
/**
|
|
16
17
|
* OAuth2Provider Serializer
|
|
@@ -103,11 +104,11 @@ export interface OAuth2ProviderRequest {
|
|
|
103
104
|
*/
|
|
104
105
|
encryptionKey?: string | null;
|
|
105
106
|
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {
|
|
107
|
+
*
|
|
108
|
+
* @type {Array<RedirectURIRequest>}
|
|
108
109
|
* @memberof OAuth2ProviderRequest
|
|
109
110
|
*/
|
|
110
|
-
redirectUris
|
|
111
|
+
redirectUris: Array<RedirectURIRequest>;
|
|
111
112
|
/**
|
|
112
113
|
*
|
|
113
114
|
* @type {SubModeEnum}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { ClientTypeEnumFromJSON, ClientTypeEnumToJSON, } from './ClientTypeEnum';
|
|
16
16
|
import { IssuerModeEnumFromJSON, IssuerModeEnumToJSON, } from './IssuerModeEnum';
|
|
17
|
+
import { RedirectURIRequestFromJSON, RedirectURIRequestToJSON, } from './RedirectURIRequest';
|
|
17
18
|
import { SubModeEnumFromJSON, SubModeEnumToJSON, } from './SubModeEnum';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the OAuth2ProviderRequest interface.
|
|
@@ -23,6 +24,7 @@ export function instanceOfOAuth2ProviderRequest(value) {
|
|
|
23
24
|
isInstance = isInstance && "name" in value;
|
|
24
25
|
isInstance = isInstance && "authorizationFlow" in value;
|
|
25
26
|
isInstance = isInstance && "invalidationFlow" in value;
|
|
27
|
+
isInstance = isInstance && "redirectUris" in value;
|
|
26
28
|
return isInstance;
|
|
27
29
|
}
|
|
28
30
|
export function OAuth2ProviderRequestFromJSON(json) {
|
|
@@ -47,7 +49,7 @@ export function OAuth2ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
49
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
|
48
50
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
|
49
51
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
|
50
|
-
'redirectUris':
|
|
52
|
+
'redirectUris': (json['redirect_uris'].map(RedirectURIRequestFromJSON)),
|
|
51
53
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
|
52
54
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
|
53
55
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
|
@@ -75,7 +77,7 @@ export function OAuth2ProviderRequestToJSON(value) {
|
|
|
75
77
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
|
76
78
|
'signing_key': value.signingKey,
|
|
77
79
|
'encryption_key': value.encryptionKey,
|
|
78
|
-
'redirect_uris': value.redirectUris,
|
|
80
|
+
'redirect_uris': (value.redirectUris.map(RedirectURIRequestToJSON)),
|
|
79
81
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
|
80
82
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
|
81
83
|
'jwks_sources': value.jwksSources,
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ClientTypeEnum } from './ClientTypeEnum';
|
|
13
13
|
import type { IssuerModeEnum } from './IssuerModeEnum';
|
|
14
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
|
14
15
|
import type { SubModeEnum } from './SubModeEnum';
|
|
15
16
|
/**
|
|
16
17
|
* OAuth2Provider Serializer
|
|
@@ -103,11 +104,11 @@ export interface PatchedOAuth2ProviderRequest {
|
|
|
103
104
|
*/
|
|
104
105
|
encryptionKey?: string | null;
|
|
105
106
|
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {
|
|
107
|
+
*
|
|
108
|
+
* @type {Array<RedirectURIRequest>}
|
|
108
109
|
* @memberof PatchedOAuth2ProviderRequest
|
|
109
110
|
*/
|
|
110
|
-
redirectUris?:
|
|
111
|
+
redirectUris?: Array<RedirectURIRequest>;
|
|
111
112
|
/**
|
|
112
113
|
*
|
|
113
114
|
* @type {SubModeEnum}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { ClientTypeEnumFromJSON, ClientTypeEnumToJSON, } from './ClientTypeEnum';
|
|
16
16
|
import { IssuerModeEnumFromJSON, IssuerModeEnumToJSON, } from './IssuerModeEnum';
|
|
17
|
+
import { RedirectURIRequestFromJSON, RedirectURIRequestToJSON, } from './RedirectURIRequest';
|
|
17
18
|
import { SubModeEnumFromJSON, SubModeEnumToJSON, } from './SubModeEnum';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the PatchedOAuth2ProviderRequest interface.
|
|
@@ -44,7 +45,7 @@ export function PatchedOAuth2ProviderRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
44
45
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
|
45
46
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
|
46
47
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
|
47
|
-
'redirectUris': !exists(json, 'redirect_uris') ? undefined : json['redirect_uris'],
|
|
48
|
+
'redirectUris': !exists(json, 'redirect_uris') ? undefined : (json['redirect_uris'].map(RedirectURIRequestFromJSON)),
|
|
48
49
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
|
49
50
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
|
50
51
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
|
@@ -72,7 +73,7 @@ export function PatchedOAuth2ProviderRequestToJSON(value) {
|
|
|
72
73
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
|
73
74
|
'signing_key': value.signingKey,
|
|
74
75
|
'encryption_key': value.encryptionKey,
|
|
75
|
-
'redirect_uris': value.redirectUris,
|
|
76
|
+
'redirect_uris': value.redirectUris === undefined ? undefined : (value.redirectUris.map(RedirectURIRequestToJSON)),
|
|
76
77
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
|
77
78
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
|
78
79
|
'jwks_sources': value.jwksSources,
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ProxyMode } from './ProxyMode';
|
|
13
|
+
import type { RedirectURI } from './RedirectURI';
|
|
13
14
|
/**
|
|
14
15
|
* ProxyProvider Serializer
|
|
15
16
|
* @export
|
|
@@ -168,10 +169,10 @@ export interface ProxyProvider {
|
|
|
168
169
|
interceptHeaderAuth?: boolean;
|
|
169
170
|
/**
|
|
170
171
|
*
|
|
171
|
-
* @type {
|
|
172
|
+
* @type {Array<RedirectURI>}
|
|
172
173
|
* @memberof ProxyProvider
|
|
173
174
|
*/
|
|
174
|
-
readonly redirectUris:
|
|
175
|
+
readonly redirectUris: Array<RedirectURI>;
|
|
175
176
|
/**
|
|
176
177
|
*
|
|
177
178
|
* @type {string}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { ProxyModeFromJSON, ProxyModeToJSON, } from './ProxyMode';
|
|
16
|
+
import { RedirectURIFromJSON, } from './RedirectURI';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the ProxyProvider interface.
|
|
18
19
|
*/
|
|
@@ -69,7 +70,7 @@ export function ProxyProviderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
70
|
'basicAuthUserAttribute': !exists(json, 'basic_auth_user_attribute') ? undefined : json['basic_auth_user_attribute'],
|
|
70
71
|
'mode': !exists(json, 'mode') ? undefined : ProxyModeFromJSON(json['mode']),
|
|
71
72
|
'interceptHeaderAuth': !exists(json, 'intercept_header_auth') ? undefined : json['intercept_header_auth'],
|
|
72
|
-
'redirectUris': json['redirect_uris'],
|
|
73
|
+
'redirectUris': (json['redirect_uris'].map(RedirectURIFromJSON)),
|
|
73
74
|
'cookieDomain': !exists(json, 'cookie_domain') ? undefined : json['cookie_domain'],
|
|
74
75
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
|
75
76
|
'accessTokenValidity': !exists(json, 'access_token_validity') ? undefined : json['access_token_validity'],
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
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 type { MatchingModeEnum } from './MatchingModeEnum';
|
|
13
|
+
/**
|
|
14
|
+
* A single allowed redirect URI entry
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RedirectURI
|
|
17
|
+
*/
|
|
18
|
+
export interface RedirectURI {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MatchingModeEnum}
|
|
22
|
+
* @memberof RedirectURI
|
|
23
|
+
*/
|
|
24
|
+
matchingMode: MatchingModeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RedirectURI
|
|
29
|
+
*/
|
|
30
|
+
url: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RedirectURI interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRedirectURI(value: object): boolean;
|
|
36
|
+
export declare function RedirectURIFromJSON(json: any): RedirectURI;
|
|
37
|
+
export declare function RedirectURIFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectURI;
|
|
38
|
+
export declare function RedirectURIToJSON(value?: RedirectURI | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { MatchingModeEnumFromJSON, MatchingModeEnumToJSON, } from './MatchingModeEnum';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RedirectURI interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRedirectURI(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "matchingMode" in value;
|
|
21
|
+
isInstance = isInstance && "url" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function RedirectURIFromJSON(json) {
|
|
25
|
+
return RedirectURIFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function RedirectURIFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'matchingMode': MatchingModeEnumFromJSON(json['matching_mode']),
|
|
33
|
+
'url': json['url'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function RedirectURIToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'matching_mode': MatchingModeEnumToJSON(value.matchingMode),
|
|
45
|
+
'url': value.url,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
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 type { MatchingModeEnum } from './MatchingModeEnum';
|
|
13
|
+
/**
|
|
14
|
+
* A single allowed redirect URI entry
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RedirectURIRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface RedirectURIRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MatchingModeEnum}
|
|
22
|
+
* @memberof RedirectURIRequest
|
|
23
|
+
*/
|
|
24
|
+
matchingMode: MatchingModeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RedirectURIRequest
|
|
29
|
+
*/
|
|
30
|
+
url: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RedirectURIRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRedirectURIRequest(value: object): boolean;
|
|
36
|
+
export declare function RedirectURIRequestFromJSON(json: any): RedirectURIRequest;
|
|
37
|
+
export declare function RedirectURIRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectURIRequest;
|
|
38
|
+
export declare function RedirectURIRequestToJSON(value?: RedirectURIRequest | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
import { MatchingModeEnumFromJSON, MatchingModeEnumToJSON, } from './MatchingModeEnum';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RedirectURIRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRedirectURIRequest(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "matchingMode" in value;
|
|
21
|
+
isInstance = isInstance && "url" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function RedirectURIRequestFromJSON(json) {
|
|
25
|
+
return RedirectURIRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function RedirectURIRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'matchingMode': MatchingModeEnumFromJSON(json['matching_mode']),
|
|
33
|
+
'url': json['url'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function RedirectURIRequestToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'matching_mode': MatchingModeEnumToJSON(value.matchingMode),
|
|
45
|
+
'url': value.url,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -211,6 +211,7 @@ export * from './LogLevelEnum';
|
|
|
211
211
|
export * from './LoginChallengeTypes';
|
|
212
212
|
export * from './LoginMetrics';
|
|
213
213
|
export * from './LoginSource';
|
|
214
|
+
export * from './MatchingModeEnum';
|
|
214
215
|
export * from './Metadata';
|
|
215
216
|
export * from './MicrosoftEntraProvider';
|
|
216
217
|
export * from './MicrosoftEntraProviderGroup';
|
|
@@ -535,6 +536,8 @@ export * from './RadiusProviderPropertyMapping';
|
|
|
535
536
|
export * from './RadiusProviderPropertyMappingRequest';
|
|
536
537
|
export * from './RadiusProviderRequest';
|
|
537
538
|
export * from './RedirectChallenge';
|
|
539
|
+
export * from './RedirectURI';
|
|
540
|
+
export * from './RedirectURIRequest';
|
|
538
541
|
export * from './Reputation';
|
|
539
542
|
export * from './ReputationPolicy';
|
|
540
543
|
export * from './ReputationPolicyRequest';
|
package/dist/esm/models/index.js
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';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
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
|
+
*/
|
|
16
|
+
export declare const MatchingModeEnum: {
|
|
17
|
+
readonly Strict: "strict";
|
|
18
|
+
readonly Regex: "regex";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type MatchingModeEnum = typeof MatchingModeEnum[keyof typeof MatchingModeEnum];
|
|
22
|
+
export declare function MatchingModeEnumFromJSON(json: any): MatchingModeEnum;
|
|
23
|
+
export declare function MatchingModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchingModeEnum;
|
|
24
|
+
export declare function MatchingModeEnumToJSON(value?: MatchingModeEnum | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.10.2
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
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.MatchingModeEnumToJSON = exports.MatchingModeEnumFromJSONTyped = exports.MatchingModeEnumFromJSON = exports.MatchingModeEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.MatchingModeEnum = {
|
|
22
|
+
Strict: 'strict',
|
|
23
|
+
Regex: 'regex',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
|
+
};
|
|
26
|
+
function MatchingModeEnumFromJSON(json) {
|
|
27
|
+
return MatchingModeEnumFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.MatchingModeEnumFromJSON = MatchingModeEnumFromJSON;
|
|
30
|
+
function MatchingModeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
exports.MatchingModeEnumFromJSONTyped = MatchingModeEnumFromJSONTyped;
|
|
34
|
+
function MatchingModeEnumToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
exports.MatchingModeEnumToJSON = MatchingModeEnumToJSON;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ClientTypeEnum } from './ClientTypeEnum';
|
|
13
13
|
import type { IssuerModeEnum } from './IssuerModeEnum';
|
|
14
|
+
import type { RedirectURI } from './RedirectURI';
|
|
14
15
|
import type { SubModeEnum } from './SubModeEnum';
|
|
15
16
|
/**
|
|
16
17
|
* OAuth2Provider Serializer
|
|
@@ -157,11 +158,11 @@ export interface OAuth2Provider {
|
|
|
157
158
|
*/
|
|
158
159
|
encryptionKey?: string | null;
|
|
159
160
|
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {
|
|
161
|
+
*
|
|
162
|
+
* @type {Array<RedirectURI>}
|
|
162
163
|
* @memberof OAuth2Provider
|
|
163
164
|
*/
|
|
164
|
-
redirectUris
|
|
165
|
+
redirectUris: Array<RedirectURI>;
|
|
165
166
|
/**
|
|
166
167
|
*
|
|
167
168
|
* @type {SubModeEnum}
|