@goauthentik/api 2024.10.2-1731887740 → 2024.10.2-1732196831

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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/dist/apis/ProvidersApi.d.ts +0 -2
  3. package/dist/apis/ProvidersApi.js +0 -6
  4. package/dist/esm/apis/ProvidersApi.d.ts +0 -2
  5. package/dist/esm/apis/ProvidersApi.js +0 -6
  6. package/dist/esm/models/MatchingModeEnum.d.ts +24 -0
  7. package/dist/esm/models/MatchingModeEnum.js +31 -0
  8. package/dist/esm/models/OAuth2Provider.d.ts +4 -3
  9. package/dist/esm/models/OAuth2Provider.js +4 -2
  10. package/dist/esm/models/OAuth2ProviderRequest.d.ts +4 -3
  11. package/dist/esm/models/OAuth2ProviderRequest.js +4 -2
  12. package/dist/esm/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
  13. package/dist/esm/models/PatchedOAuth2ProviderRequest.js +3 -2
  14. package/dist/esm/models/RedirectURI.d.ts +38 -0
  15. package/dist/esm/models/RedirectURI.js +47 -0
  16. package/dist/esm/models/RedirectURIRequest.d.ts +38 -0
  17. package/dist/esm/models/RedirectURIRequest.js +47 -0
  18. package/dist/esm/models/index.d.ts +3 -0
  19. package/dist/esm/models/index.js +3 -0
  20. package/dist/models/MatchingModeEnum.d.ts +24 -0
  21. package/dist/models/MatchingModeEnum.js +37 -0
  22. package/dist/models/OAuth2Provider.d.ts +4 -3
  23. package/dist/models/OAuth2Provider.js +4 -2
  24. package/dist/models/OAuth2ProviderRequest.d.ts +4 -3
  25. package/dist/models/OAuth2ProviderRequest.js +4 -2
  26. package/dist/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
  27. package/dist/models/PatchedOAuth2ProviderRequest.js +3 -2
  28. package/dist/models/RedirectURI.d.ts +38 -0
  29. package/dist/models/RedirectURI.js +54 -0
  30. package/dist/models/RedirectURIRequest.d.ts +38 -0
  31. package/dist/models/RedirectURIRequest.js +54 -0
  32. package/dist/models/index.d.ts +3 -0
  33. package/dist/models/index.js +3 -0
  34. package/package.json +1 -1
  35. package/src/apis/ProvidersApi.ts +0 -10
  36. package/src/models/MatchingModeEnum.ts +39 -0
  37. package/src/models/OAuth2Provider.ts +12 -5
  38. package/src/models/OAuth2ProviderRequest.ts +12 -5
  39. package/src/models/PatchedOAuth2ProviderRequest.ts +11 -5
  40. package/src/models/RedirectURI.ts +82 -0
  41. package/src/models/RedirectURIRequest.ts +82 -0
  42. package/src/models/index.ts +3 -0
@@ -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
- * Enter each URI on a new line.
161
- * @type {string}
161
+ *
162
+ * @type {Array<RedirectURI>}
162
163
  * @memberof OAuth2Provider
163
164
  */
164
- redirectUris?: string;
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': !exists(json, 'redirect_uris') ? undefined : json['redirect_uris'],
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
- * Enter each URI on a new line.
107
- * @type {string}
107
+ *
108
+ * @type {Array<RedirectURIRequest>}
108
109
  * @memberof OAuth2ProviderRequest
109
110
  */
110
- redirectUris?: string;
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': !exists(json, 'redirect_uris') ? undefined : json['redirect_uris'],
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
- * Enter each URI on a new line.
107
- * @type {string}
107
+ *
108
+ * @type {Array<RedirectURIRequest>}
108
109
  * @memberof PatchedOAuth2ProviderRequest
109
110
  */
110
- redirectUris?: string;
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,
@@ -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';
@@ -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
- * Enter each URI on a new line.
161
- * @type {string}
161
+ *
162
+ * @type {Array<RedirectURI>}
162
163
  * @memberof OAuth2Provider
163
164
  */
164
- redirectUris?: string;
165
+ redirectUris: Array<RedirectURI>;
165
166
  /**
166
167
  *
167
168
  * @type {SubModeEnum}
@@ -17,6 +17,7 @@ exports.OAuth2ProviderToJSON = exports.OAuth2ProviderFromJSONTyped = exports.OAu
17
17
  const runtime_1 = require("../runtime");
18
18
  const ClientTypeEnum_1 = require("./ClientTypeEnum");
19
19
  const IssuerModeEnum_1 = require("./IssuerModeEnum");
20
+ const RedirectURI_1 = require("./RedirectURI");
20
21
  const SubModeEnum_1 = require("./SubModeEnum");
21
22
  /**
22
23
  * Check if a given object implements the OAuth2Provider interface.
@@ -35,6 +36,7 @@ function instanceOfOAuth2Provider(value) {
35
36
  isInstance = isInstance && "verboseName" in value;
36
37
  isInstance = isInstance && "verboseNamePlural" in value;
37
38
  isInstance = isInstance && "metaModelName" in value;
39
+ isInstance = isInstance && "redirectUris" in value;
38
40
  return isInstance;
39
41
  }
40
42
  exports.instanceOfOAuth2Provider = instanceOfOAuth2Provider;
@@ -70,7 +72,7 @@ function OAuth2ProviderFromJSONTyped(json, ignoreDiscriminator) {
70
72
  'includeClaimsInIdToken': !(0, runtime_1.exists)(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
71
73
  'signingKey': !(0, runtime_1.exists)(json, 'signing_key') ? undefined : json['signing_key'],
72
74
  'encryptionKey': !(0, runtime_1.exists)(json, 'encryption_key') ? undefined : json['encryption_key'],
73
- 'redirectUris': !(0, runtime_1.exists)(json, 'redirect_uris') ? undefined : json['redirect_uris'],
75
+ 'redirectUris': (json['redirect_uris'].map(RedirectURI_1.RedirectURIFromJSON)),
74
76
  'subMode': !(0, runtime_1.exists)(json, 'sub_mode') ? undefined : (0, SubModeEnum_1.SubModeEnumFromJSON)(json['sub_mode']),
75
77
  'issuerMode': !(0, runtime_1.exists)(json, 'issuer_mode') ? undefined : (0, IssuerModeEnum_1.IssuerModeEnumFromJSON)(json['issuer_mode']),
76
78
  'jwksSources': !(0, runtime_1.exists)(json, 'jwks_sources') ? undefined : json['jwks_sources'],
@@ -99,7 +101,7 @@ function OAuth2ProviderToJSON(value) {
99
101
  'include_claims_in_id_token': value.includeClaimsInIdToken,
100
102
  'signing_key': value.signingKey,
101
103
  'encryption_key': value.encryptionKey,
102
- 'redirect_uris': value.redirectUris,
104
+ 'redirect_uris': (value.redirectUris.map(RedirectURI_1.RedirectURIToJSON)),
103
105
  'sub_mode': (0, SubModeEnum_1.SubModeEnumToJSON)(value.subMode),
104
106
  'issuer_mode': (0, IssuerModeEnum_1.IssuerModeEnumToJSON)(value.issuerMode),
105
107
  'jwks_sources': value.jwksSources,