@goauthentik/api 2024.10.2-1731628438 → 2024.10.2-1732196831

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +4 -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/TransactionApplicationRequest.d.ts +7 -0
  19. package/dist/esm/models/TransactionApplicationRequest.js +4 -0
  20. package/dist/esm/models/TransactionPolicyBindingRequest.d.ts +73 -0
  21. package/dist/esm/models/TransactionPolicyBindingRequest.js +58 -0
  22. package/dist/esm/models/index.d.ts +4 -0
  23. package/dist/esm/models/index.js +4 -0
  24. package/dist/models/MatchingModeEnum.d.ts +24 -0
  25. package/dist/models/MatchingModeEnum.js +37 -0
  26. package/dist/models/OAuth2Provider.d.ts +4 -3
  27. package/dist/models/OAuth2Provider.js +4 -2
  28. package/dist/models/OAuth2ProviderRequest.d.ts +4 -3
  29. package/dist/models/OAuth2ProviderRequest.js +4 -2
  30. package/dist/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
  31. package/dist/models/PatchedOAuth2ProviderRequest.js +3 -2
  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/TransactionApplicationRequest.d.ts +7 -0
  37. package/dist/models/TransactionApplicationRequest.js +4 -0
  38. package/dist/models/TransactionPolicyBindingRequest.d.ts +73 -0
  39. package/dist/models/TransactionPolicyBindingRequest.js +65 -0
  40. package/dist/models/index.d.ts +4 -0
  41. package/dist/models/index.js +4 -0
  42. package/package.json +1 -1
  43. package/src/apis/ProvidersApi.ts +0 -10
  44. package/src/models/MatchingModeEnum.ts +39 -0
  45. package/src/models/OAuth2Provider.ts +12 -5
  46. package/src/models/OAuth2ProviderRequest.ts +12 -5
  47. package/src/models/PatchedOAuth2ProviderRequest.ts +11 -5
  48. package/src/models/RedirectURI.ts +82 -0
  49. package/src/models/RedirectURIRequest.ts +82 -0
  50. package/src/models/TransactionApplicationRequest.ts +14 -0
  51. package/src/models/TransactionPolicyBindingRequest.ts +122 -0
  52. package/src/models/index.ts +4 -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
@@ -646,6 +649,7 @@ src/models/TokenSetKeyRequest.ts
646
649
  src/models/TokenView.ts
647
650
  src/models/TransactionApplicationRequest.ts
648
651
  src/models/TransactionApplicationResponse.ts
652
+ src/models/TransactionPolicyBindingRequest.ts
649
653
  src/models/TypeCreate.ts
650
654
  src/models/UiThemeEnum.ts
651
655
  src/models/UsedBy.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
+ }
@@ -12,6 +12,7 @@
12
12
  import type { ApplicationRequest } from './ApplicationRequest';
13
13
  import type { ModelRequest } from './ModelRequest';
14
14
  import type { ProviderModelEnum } from './ProviderModelEnum';
15
+ import type { TransactionPolicyBindingRequest } from './TransactionPolicyBindingRequest';
15
16
  /**
16
17
  * Serializer for creating a provider and an application in one transaction
17
18
  * @export
@@ -36,6 +37,12 @@ export interface TransactionApplicationRequest {
36
37
  * @memberof TransactionApplicationRequest
37
38
  */
38
39
  provider: ModelRequest;
40
+ /**
41
+ *
42
+ * @type {Array<TransactionPolicyBindingRequest>}
43
+ * @memberof TransactionApplicationRequest
44
+ */
45
+ policyBindings?: Array<TransactionPolicyBindingRequest>;
39
46
  }
40
47
  /**
41
48
  * Check if a given object implements the TransactionApplicationRequest interface.
@@ -11,9 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  import { ApplicationRequestFromJSON, ApplicationRequestToJSON, } from './ApplicationRequest';
15
16
  import { ModelRequestFromJSON, ModelRequestToJSON, } from './ModelRequest';
16
17
  import { ProviderModelEnumFromJSON, ProviderModelEnumToJSON, } from './ProviderModelEnum';
18
+ import { TransactionPolicyBindingRequestFromJSON, TransactionPolicyBindingRequestToJSON, } from './TransactionPolicyBindingRequest';
17
19
  /**
18
20
  * Check if a given object implements the TransactionApplicationRequest interface.
19
21
  */
@@ -35,6 +37,7 @@ export function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscrimin
35
37
  'app': ApplicationRequestFromJSON(json['app']),
36
38
  'providerModel': ProviderModelEnumFromJSON(json['provider_model']),
37
39
  'provider': ModelRequestFromJSON(json['provider']),
40
+ 'policyBindings': !exists(json, 'policy_bindings') ? undefined : (json['policy_bindings'].map(TransactionPolicyBindingRequestFromJSON)),
38
41
  };
39
42
  }
40
43
  export function TransactionApplicationRequestToJSON(value) {
@@ -48,5 +51,6 @@ export function TransactionApplicationRequestToJSON(value) {
48
51
  'app': ApplicationRequestToJSON(value.app),
49
52
  'provider_model': ProviderModelEnumToJSON(value.providerModel),
50
53
  'provider': ModelRequestToJSON(value.provider),
54
+ 'policy_bindings': value.policyBindings === undefined ? undefined : (value.policyBindings.map(TransactionPolicyBindingRequestToJSON)),
51
55
  };
52
56
  }
@@ -0,0 +1,73 @@
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
+ * PolicyBindingSerializer which does not require target as target is set implicitly
14
+ * @export
15
+ * @interface TransactionPolicyBindingRequest
16
+ */
17
+ export interface TransactionPolicyBindingRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TransactionPolicyBindingRequest
22
+ */
23
+ policy?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionPolicyBindingRequest
28
+ */
29
+ group?: string | null;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof TransactionPolicyBindingRequest
34
+ */
35
+ user?: number | null;
36
+ /**
37
+ * Negates the outcome of the policy. Messages are unaffected.
38
+ * @type {boolean}
39
+ * @memberof TransactionPolicyBindingRequest
40
+ */
41
+ negate?: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof TransactionPolicyBindingRequest
46
+ */
47
+ enabled?: boolean;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof TransactionPolicyBindingRequest
52
+ */
53
+ order: number;
54
+ /**
55
+ * Timeout after which Policy execution is terminated.
56
+ * @type {number}
57
+ * @memberof TransactionPolicyBindingRequest
58
+ */
59
+ timeout?: number;
60
+ /**
61
+ * Result if the Policy execution fails.
62
+ * @type {boolean}
63
+ * @memberof TransactionPolicyBindingRequest
64
+ */
65
+ failureResult?: boolean;
66
+ }
67
+ /**
68
+ * Check if a given object implements the TransactionPolicyBindingRequest interface.
69
+ */
70
+ export declare function instanceOfTransactionPolicyBindingRequest(value: object): boolean;
71
+ export declare function TransactionPolicyBindingRequestFromJSON(json: any): TransactionPolicyBindingRequest;
72
+ export declare function TransactionPolicyBindingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionPolicyBindingRequest;
73
+ export declare function TransactionPolicyBindingRequestToJSON(value?: TransactionPolicyBindingRequest | null): any;