@goauthentik/api 2024.10.2-1731628438 → 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 (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
@@ -0,0 +1,58 @@
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 { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the TransactionPolicyBindingRequest interface.
17
+ */
18
+ export function instanceOfTransactionPolicyBindingRequest(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "order" in value;
21
+ return isInstance;
22
+ }
23
+ export function TransactionPolicyBindingRequestFromJSON(json) {
24
+ return TransactionPolicyBindingRequestFromJSONTyped(json, false);
25
+ }
26
+ export function TransactionPolicyBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'policy': !exists(json, 'policy') ? undefined : json['policy'],
32
+ 'group': !exists(json, 'group') ? undefined : json['group'],
33
+ 'user': !exists(json, 'user') ? undefined : json['user'],
34
+ 'negate': !exists(json, 'negate') ? undefined : json['negate'],
35
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
36
+ 'order': json['order'],
37
+ 'timeout': !exists(json, 'timeout') ? undefined : json['timeout'],
38
+ 'failureResult': !exists(json, 'failure_result') ? undefined : json['failure_result'],
39
+ };
40
+ }
41
+ export function TransactionPolicyBindingRequestToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'policy': value.policy,
50
+ 'group': value.group,
51
+ 'user': value.user,
52
+ 'negate': value.negate,
53
+ 'enabled': value.enabled,
54
+ 'order': value.order,
55
+ 'timeout': value.timeout,
56
+ 'failure_result': value.failureResult,
57
+ };
58
+ }
@@ -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';
@@ -619,6 +622,7 @@ export * from './TokenSetKeyRequest';
619
622
  export * from './TokenView';
620
623
  export * from './TransactionApplicationRequest';
621
624
  export * from './TransactionApplicationResponse';
625
+ export * from './TransactionPolicyBindingRequest';
622
626
  export * from './TypeCreate';
623
627
  export * from './UiThemeEnum';
624
628
  export * from './UsedBy';
@@ -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';
@@ -621,6 +624,7 @@ export * from './TokenSetKeyRequest';
621
624
  export * from './TokenView';
622
625
  export * from './TransactionApplicationRequest';
623
626
  export * from './TransactionApplicationResponse';
627
+ export * from './TransactionPolicyBindingRequest';
624
628
  export * from './TypeCreate';
625
629
  export * from './UiThemeEnum';
626
630
  export * from './UsedBy';
@@ -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,
@@ -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}
@@ -17,6 +17,7 @@ exports.OAuth2ProviderRequestToJSON = exports.OAuth2ProviderRequestFromJSONTyped
17
17
  const runtime_1 = require("../runtime");
18
18
  const ClientTypeEnum_1 = require("./ClientTypeEnum");
19
19
  const IssuerModeEnum_1 = require("./IssuerModeEnum");
20
+ const RedirectURIRequest_1 = require("./RedirectURIRequest");
20
21
  const SubModeEnum_1 = require("./SubModeEnum");
21
22
  /**
22
23
  * Check if a given object implements the OAuth2ProviderRequest interface.
@@ -26,6 +27,7 @@ function instanceOfOAuth2ProviderRequest(value) {
26
27
  isInstance = isInstance && "name" in value;
27
28
  isInstance = isInstance && "authorizationFlow" in value;
28
29
  isInstance = isInstance && "invalidationFlow" in value;
30
+ isInstance = isInstance && "redirectUris" in value;
29
31
  return isInstance;
30
32
  }
31
33
  exports.instanceOfOAuth2ProviderRequest = instanceOfOAuth2ProviderRequest;
@@ -52,7 +54,7 @@ function OAuth2ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
52
54
  'includeClaimsInIdToken': !(0, runtime_1.exists)(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
53
55
  'signingKey': !(0, runtime_1.exists)(json, 'signing_key') ? undefined : json['signing_key'],
54
56
  'encryptionKey': !(0, runtime_1.exists)(json, 'encryption_key') ? undefined : json['encryption_key'],
55
- 'redirectUris': !(0, runtime_1.exists)(json, 'redirect_uris') ? undefined : json['redirect_uris'],
57
+ 'redirectUris': (json['redirect_uris'].map(RedirectURIRequest_1.RedirectURIRequestFromJSON)),
56
58
  'subMode': !(0, runtime_1.exists)(json, 'sub_mode') ? undefined : (0, SubModeEnum_1.SubModeEnumFromJSON)(json['sub_mode']),
57
59
  'issuerMode': !(0, runtime_1.exists)(json, 'issuer_mode') ? undefined : (0, IssuerModeEnum_1.IssuerModeEnumFromJSON)(json['issuer_mode']),
58
60
  'jwksSources': !(0, runtime_1.exists)(json, 'jwks_sources') ? undefined : json['jwks_sources'],
@@ -81,7 +83,7 @@ function OAuth2ProviderRequestToJSON(value) {
81
83
  'include_claims_in_id_token': value.includeClaimsInIdToken,
82
84
  'signing_key': value.signingKey,
83
85
  'encryption_key': value.encryptionKey,
84
- 'redirect_uris': value.redirectUris,
86
+ 'redirect_uris': (value.redirectUris.map(RedirectURIRequest_1.RedirectURIRequestToJSON)),
85
87
  'sub_mode': (0, SubModeEnum_1.SubModeEnumToJSON)(value.subMode),
86
88
  'issuer_mode': (0, IssuerModeEnum_1.IssuerModeEnumToJSON)(value.issuerMode),
87
89
  '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}
@@ -17,6 +17,7 @@ exports.PatchedOAuth2ProviderRequestToJSON = exports.PatchedOAuth2ProviderReques
17
17
  const runtime_1 = require("../runtime");
18
18
  const ClientTypeEnum_1 = require("./ClientTypeEnum");
19
19
  const IssuerModeEnum_1 = require("./IssuerModeEnum");
20
+ const RedirectURIRequest_1 = require("./RedirectURIRequest");
20
21
  const SubModeEnum_1 = require("./SubModeEnum");
21
22
  /**
22
23
  * Check if a given object implements the PatchedOAuth2ProviderRequest interface.
@@ -49,7 +50,7 @@ function PatchedOAuth2ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
49
50
  'includeClaimsInIdToken': !(0, runtime_1.exists)(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
50
51
  'signingKey': !(0, runtime_1.exists)(json, 'signing_key') ? undefined : json['signing_key'],
51
52
  'encryptionKey': !(0, runtime_1.exists)(json, 'encryption_key') ? undefined : json['encryption_key'],
52
- 'redirectUris': !(0, runtime_1.exists)(json, 'redirect_uris') ? undefined : json['redirect_uris'],
53
+ 'redirectUris': !(0, runtime_1.exists)(json, 'redirect_uris') ? undefined : (json['redirect_uris'].map(RedirectURIRequest_1.RedirectURIRequestFromJSON)),
53
54
  'subMode': !(0, runtime_1.exists)(json, 'sub_mode') ? undefined : (0, SubModeEnum_1.SubModeEnumFromJSON)(json['sub_mode']),
54
55
  'issuerMode': !(0, runtime_1.exists)(json, 'issuer_mode') ? undefined : (0, IssuerModeEnum_1.IssuerModeEnumFromJSON)(json['issuer_mode']),
55
56
  'jwksSources': !(0, runtime_1.exists)(json, 'jwks_sources') ? undefined : json['jwks_sources'],
@@ -78,7 +79,7 @@ function PatchedOAuth2ProviderRequestToJSON(value) {
78
79
  'include_claims_in_id_token': value.includeClaimsInIdToken,
79
80
  'signing_key': value.signingKey,
80
81
  'encryption_key': value.encryptionKey,
81
- 'redirect_uris': value.redirectUris,
82
+ 'redirect_uris': value.redirectUris === undefined ? undefined : (value.redirectUris.map(RedirectURIRequest_1.RedirectURIRequestToJSON)),
82
83
  'sub_mode': (0, SubModeEnum_1.SubModeEnumToJSON)(value.subMode),
83
84
  'issuer_mode': (0, IssuerModeEnum_1.IssuerModeEnumToJSON)(value.issuerMode),
84
85
  '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,54 @@
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.RedirectURIToJSON = exports.RedirectURIFromJSONTyped = exports.RedirectURIFromJSON = exports.instanceOfRedirectURI = void 0;
17
+ const MatchingModeEnum_1 = require("./MatchingModeEnum");
18
+ /**
19
+ * Check if a given object implements the RedirectURI interface.
20
+ */
21
+ function instanceOfRedirectURI(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "matchingMode" in value;
24
+ isInstance = isInstance && "url" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfRedirectURI = instanceOfRedirectURI;
28
+ function RedirectURIFromJSON(json) {
29
+ return RedirectURIFromJSONTyped(json, false);
30
+ }
31
+ exports.RedirectURIFromJSON = RedirectURIFromJSON;
32
+ function RedirectURIFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'matchingMode': (0, MatchingModeEnum_1.MatchingModeEnumFromJSON)(json['matching_mode']),
38
+ 'url': json['url'],
39
+ };
40
+ }
41
+ exports.RedirectURIFromJSONTyped = RedirectURIFromJSONTyped;
42
+ function RedirectURIToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'matching_mode': (0, MatchingModeEnum_1.MatchingModeEnumToJSON)(value.matchingMode),
51
+ 'url': value.url,
52
+ };
53
+ }
54
+ exports.RedirectURIToJSON = RedirectURIToJSON;
@@ -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,54 @@
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.RedirectURIRequestToJSON = exports.RedirectURIRequestFromJSONTyped = exports.RedirectURIRequestFromJSON = exports.instanceOfRedirectURIRequest = void 0;
17
+ const MatchingModeEnum_1 = require("./MatchingModeEnum");
18
+ /**
19
+ * Check if a given object implements the RedirectURIRequest interface.
20
+ */
21
+ function instanceOfRedirectURIRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "matchingMode" in value;
24
+ isInstance = isInstance && "url" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfRedirectURIRequest = instanceOfRedirectURIRequest;
28
+ function RedirectURIRequestFromJSON(json) {
29
+ return RedirectURIRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.RedirectURIRequestFromJSON = RedirectURIRequestFromJSON;
32
+ function RedirectURIRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'matchingMode': (0, MatchingModeEnum_1.MatchingModeEnumFromJSON)(json['matching_mode']),
38
+ 'url': json['url'],
39
+ };
40
+ }
41
+ exports.RedirectURIRequestFromJSONTyped = RedirectURIRequestFromJSONTyped;
42
+ function RedirectURIRequestToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'matching_mode': (0, MatchingModeEnum_1.MatchingModeEnumToJSON)(value.matchingMode),
51
+ 'url': value.url,
52
+ };
53
+ }
54
+ exports.RedirectURIRequestToJSON = RedirectURIRequestToJSON;
@@ -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.
@@ -14,9 +14,11 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TransactionApplicationRequestToJSON = exports.TransactionApplicationRequestFromJSONTyped = exports.TransactionApplicationRequestFromJSON = exports.instanceOfTransactionApplicationRequest = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  const ApplicationRequest_1 = require("./ApplicationRequest");
18
19
  const ModelRequest_1 = require("./ModelRequest");
19
20
  const ProviderModelEnum_1 = require("./ProviderModelEnum");
21
+ const TransactionPolicyBindingRequest_1 = require("./TransactionPolicyBindingRequest");
20
22
  /**
21
23
  * Check if a given object implements the TransactionApplicationRequest interface.
22
24
  */
@@ -40,6 +42,7 @@ function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {
40
42
  'app': (0, ApplicationRequest_1.ApplicationRequestFromJSON)(json['app']),
41
43
  'providerModel': (0, ProviderModelEnum_1.ProviderModelEnumFromJSON)(json['provider_model']),
42
44
  'provider': (0, ModelRequest_1.ModelRequestFromJSON)(json['provider']),
45
+ 'policyBindings': !(0, runtime_1.exists)(json, 'policy_bindings') ? undefined : (json['policy_bindings'].map(TransactionPolicyBindingRequest_1.TransactionPolicyBindingRequestFromJSON)),
43
46
  };
44
47
  }
45
48
  exports.TransactionApplicationRequestFromJSONTyped = TransactionApplicationRequestFromJSONTyped;
@@ -54,6 +57,7 @@ function TransactionApplicationRequestToJSON(value) {
54
57
  'app': (0, ApplicationRequest_1.ApplicationRequestToJSON)(value.app),
55
58
  'provider_model': (0, ProviderModelEnum_1.ProviderModelEnumToJSON)(value.providerModel),
56
59
  'provider': (0, ModelRequest_1.ModelRequestToJSON)(value.provider),
60
+ 'policy_bindings': value.policyBindings === undefined ? undefined : (value.policyBindings.map(TransactionPolicyBindingRequest_1.TransactionPolicyBindingRequestToJSON)),
57
61
  };
58
62
  }
59
63
  exports.TransactionApplicationRequestToJSON = TransactionApplicationRequestToJSON;
@@ -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;