@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.
Files changed (47) 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/ProxyProvider.d.ts +3 -2
  15. package/dist/esm/models/ProxyProvider.js +2 -1
  16. package/dist/esm/models/RedirectURI.d.ts +38 -0
  17. package/dist/esm/models/RedirectURI.js +47 -0
  18. package/dist/esm/models/RedirectURIRequest.d.ts +38 -0
  19. package/dist/esm/models/RedirectURIRequest.js +47 -0
  20. package/dist/esm/models/index.d.ts +3 -0
  21. package/dist/esm/models/index.js +3 -0
  22. package/dist/models/MatchingModeEnum.d.ts +24 -0
  23. package/dist/models/MatchingModeEnum.js +37 -0
  24. package/dist/models/OAuth2Provider.d.ts +4 -3
  25. package/dist/models/OAuth2Provider.js +4 -2
  26. package/dist/models/OAuth2ProviderRequest.d.ts +4 -3
  27. package/dist/models/OAuth2ProviderRequest.js +4 -2
  28. package/dist/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
  29. package/dist/models/PatchedOAuth2ProviderRequest.js +3 -2
  30. package/dist/models/ProxyProvider.d.ts +3 -2
  31. package/dist/models/ProxyProvider.js +2 -1
  32. package/dist/models/RedirectURI.d.ts +38 -0
  33. package/dist/models/RedirectURI.js +54 -0
  34. package/dist/models/RedirectURIRequest.d.ts +38 -0
  35. package/dist/models/RedirectURIRequest.js +54 -0
  36. package/dist/models/index.d.ts +3 -0
  37. package/dist/models/index.js +3 -0
  38. package/package.json +1 -1
  39. package/src/apis/ProvidersApi.ts +0 -10
  40. package/src/models/MatchingModeEnum.ts +39 -0
  41. package/src/models/OAuth2Provider.ts +12 -5
  42. package/src/models/OAuth2ProviderRequest.ts +12 -5
  43. package/src/models/PatchedOAuth2ProviderRequest.ts +11 -5
  44. package/src/models/ProxyProvider.ts +9 -3
  45. package/src/models/RedirectURI.ts +82 -0
  46. package/src/models/RedirectURIRequest.ts +82 -0
  47. 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 {string}
187
+ * @type {Array<RedirectURI>}
182
188
  * @memberof ProxyProvider
183
189
  */
184
- readonly redirectUris: string;
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
+
@@ -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';