@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.
- package/.openapi-generator/FILES +4 -0
- package/dist/apis/ProvidersApi.d.ts +0 -2
- package/dist/apis/ProvidersApi.js +0 -6
- package/dist/esm/apis/ProvidersApi.d.ts +0 -2
- package/dist/esm/apis/ProvidersApi.js +0 -6
- package/dist/esm/models/MatchingModeEnum.d.ts +24 -0
- package/dist/esm/models/MatchingModeEnum.js +31 -0
- package/dist/esm/models/OAuth2Provider.d.ts +4 -3
- package/dist/esm/models/OAuth2Provider.js +4 -2
- package/dist/esm/models/OAuth2ProviderRequest.d.ts +4 -3
- package/dist/esm/models/OAuth2ProviderRequest.js +4 -2
- package/dist/esm/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
- package/dist/esm/models/PatchedOAuth2ProviderRequest.js +3 -2
- package/dist/esm/models/RedirectURI.d.ts +38 -0
- package/dist/esm/models/RedirectURI.js +47 -0
- package/dist/esm/models/RedirectURIRequest.d.ts +38 -0
- package/dist/esm/models/RedirectURIRequest.js +47 -0
- package/dist/esm/models/TransactionApplicationRequest.d.ts +7 -0
- package/dist/esm/models/TransactionApplicationRequest.js +4 -0
- package/dist/esm/models/TransactionPolicyBindingRequest.d.ts +73 -0
- package/dist/esm/models/TransactionPolicyBindingRequest.js +58 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/MatchingModeEnum.d.ts +24 -0
- package/dist/models/MatchingModeEnum.js +37 -0
- package/dist/models/OAuth2Provider.d.ts +4 -3
- package/dist/models/OAuth2Provider.js +4 -2
- package/dist/models/OAuth2ProviderRequest.d.ts +4 -3
- package/dist/models/OAuth2ProviderRequest.js +4 -2
- package/dist/models/PatchedOAuth2ProviderRequest.d.ts +4 -3
- package/dist/models/PatchedOAuth2ProviderRequest.js +3 -2
- package/dist/models/RedirectURI.d.ts +38 -0
- package/dist/models/RedirectURI.js +54 -0
- package/dist/models/RedirectURIRequest.d.ts +38 -0
- package/dist/models/RedirectURIRequest.js +54 -0
- package/dist/models/TransactionApplicationRequest.d.ts +7 -0
- package/dist/models/TransactionApplicationRequest.js +4 -0
- package/dist/models/TransactionPolicyBindingRequest.d.ts +73 -0
- package/dist/models/TransactionPolicyBindingRequest.js +65 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/ProvidersApi.ts +0 -10
- package/src/models/MatchingModeEnum.ts +39 -0
- package/src/models/OAuth2Provider.ts +12 -5
- package/src/models/OAuth2ProviderRequest.ts +12 -5
- package/src/models/PatchedOAuth2ProviderRequest.ts +11 -5
- package/src/models/RedirectURI.ts +82 -0
- package/src/models/RedirectURIRequest.ts +82 -0
- package/src/models/TransactionApplicationRequest.ts +14 -0
- package/src/models/TransactionPolicyBindingRequest.ts +122 -0
- package/src/models/index.ts +4 -0
@@ -0,0 +1,65 @@
|
|
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.TransactionPolicyBindingRequestToJSON = exports.TransactionPolicyBindingRequestFromJSONTyped = exports.TransactionPolicyBindingRequestFromJSON = exports.instanceOfTransactionPolicyBindingRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the TransactionPolicyBindingRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfTransactionPolicyBindingRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "order" in value;
|
24
|
+
return isInstance;
|
25
|
+
}
|
26
|
+
exports.instanceOfTransactionPolicyBindingRequest = instanceOfTransactionPolicyBindingRequest;
|
27
|
+
function TransactionPolicyBindingRequestFromJSON(json) {
|
28
|
+
return TransactionPolicyBindingRequestFromJSONTyped(json, false);
|
29
|
+
}
|
30
|
+
exports.TransactionPolicyBindingRequestFromJSON = TransactionPolicyBindingRequestFromJSON;
|
31
|
+
function TransactionPolicyBindingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
32
|
+
if ((json === undefined) || (json === null)) {
|
33
|
+
return json;
|
34
|
+
}
|
35
|
+
return {
|
36
|
+
'policy': !(0, runtime_1.exists)(json, 'policy') ? undefined : json['policy'],
|
37
|
+
'group': !(0, runtime_1.exists)(json, 'group') ? undefined : json['group'],
|
38
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
39
|
+
'negate': !(0, runtime_1.exists)(json, 'negate') ? undefined : json['negate'],
|
40
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
41
|
+
'order': json['order'],
|
42
|
+
'timeout': !(0, runtime_1.exists)(json, 'timeout') ? undefined : json['timeout'],
|
43
|
+
'failureResult': !(0, runtime_1.exists)(json, 'failure_result') ? undefined : json['failure_result'],
|
44
|
+
};
|
45
|
+
}
|
46
|
+
exports.TransactionPolicyBindingRequestFromJSONTyped = TransactionPolicyBindingRequestFromJSONTyped;
|
47
|
+
function TransactionPolicyBindingRequestToJSON(value) {
|
48
|
+
if (value === undefined) {
|
49
|
+
return undefined;
|
50
|
+
}
|
51
|
+
if (value === null) {
|
52
|
+
return null;
|
53
|
+
}
|
54
|
+
return {
|
55
|
+
'policy': value.policy,
|
56
|
+
'group': value.group,
|
57
|
+
'user': value.user,
|
58
|
+
'negate': value.negate,
|
59
|
+
'enabled': value.enabled,
|
60
|
+
'order': value.order,
|
61
|
+
'timeout': value.timeout,
|
62
|
+
'failure_result': value.failureResult,
|
63
|
+
};
|
64
|
+
}
|
65
|
+
exports.TransactionPolicyBindingRequestToJSON = TransactionPolicyBindingRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
@@ -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';
|
package/dist/models/index.js
CHANGED
@@ -229,6 +229,7 @@ __exportStar(require("./LogLevelEnum"), exports);
|
|
229
229
|
__exportStar(require("./LoginChallengeTypes"), exports);
|
230
230
|
__exportStar(require("./LoginMetrics"), exports);
|
231
231
|
__exportStar(require("./LoginSource"), exports);
|
232
|
+
__exportStar(require("./MatchingModeEnum"), exports);
|
232
233
|
__exportStar(require("./Metadata"), exports);
|
233
234
|
__exportStar(require("./MicrosoftEntraProvider"), exports);
|
234
235
|
__exportStar(require("./MicrosoftEntraProviderGroup"), exports);
|
@@ -553,6 +554,8 @@ __exportStar(require("./RadiusProviderPropertyMapping"), exports);
|
|
553
554
|
__exportStar(require("./RadiusProviderPropertyMappingRequest"), exports);
|
554
555
|
__exportStar(require("./RadiusProviderRequest"), exports);
|
555
556
|
__exportStar(require("./RedirectChallenge"), exports);
|
557
|
+
__exportStar(require("./RedirectURI"), exports);
|
558
|
+
__exportStar(require("./RedirectURIRequest"), exports);
|
556
559
|
__exportStar(require("./Reputation"), exports);
|
557
560
|
__exportStar(require("./ReputationPolicy"), exports);
|
558
561
|
__exportStar(require("./ReputationPolicyRequest"), exports);
|
@@ -637,6 +640,7 @@ __exportStar(require("./TokenSetKeyRequest"), exports);
|
|
637
640
|
__exportStar(require("./TokenView"), exports);
|
638
641
|
__exportStar(require("./TransactionApplicationRequest"), exports);
|
639
642
|
__exportStar(require("./TransactionApplicationResponse"), exports);
|
643
|
+
__exportStar(require("./TransactionPolicyBindingRequest"), exports);
|
640
644
|
__exportStar(require("./TypeCreate"), exports);
|
641
645
|
__exportStar(require("./UiThemeEnum"), exports);
|
642
646
|
__exportStar(require("./UsedBy"), exports);
|
package/package.json
CHANGED
package/src/apis/ProvidersApi.ts
CHANGED
@@ -497,7 +497,6 @@ export interface ProvidersOauth2ListRequest {
|
|
497
497
|
page?: number;
|
498
498
|
pageSize?: number;
|
499
499
|
propertyMappings?: Array<string>;
|
500
|
-
redirectUris?: string;
|
501
500
|
refreshTokenValidity?: string;
|
502
501
|
search?: string;
|
503
502
|
signingKey?: string;
|
@@ -557,7 +556,6 @@ export interface ProvidersProxyListRequest {
|
|
557
556
|
page?: number;
|
558
557
|
pageSize?: number;
|
559
558
|
propertyMappingsIexact?: Array<string>;
|
560
|
-
redirectUrisIexact?: string;
|
561
559
|
search?: string;
|
562
560
|
skipPathRegexIexact?: string;
|
563
561
|
}
|
@@ -3134,10 +3132,6 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
3134
3132
|
queryParameters['property_mappings'] = requestParameters.propertyMappings;
|
3135
3133
|
}
|
3136
3134
|
|
3137
|
-
if (requestParameters.redirectUris !== undefined) {
|
3138
|
-
queryParameters['redirect_uris'] = requestParameters.redirectUris;
|
3139
|
-
}
|
3140
|
-
|
3141
3135
|
if (requestParameters.refreshTokenValidity !== undefined) {
|
3142
3136
|
queryParameters['refresh_token_validity'] = requestParameters.refreshTokenValidity;
|
3143
3137
|
}
|
@@ -3576,10 +3570,6 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
3576
3570
|
queryParameters['property_mappings__iexact'] = requestParameters.propertyMappingsIexact;
|
3577
3571
|
}
|
3578
3572
|
|
3579
|
-
if (requestParameters.redirectUrisIexact !== undefined) {
|
3580
|
-
queryParameters['redirect_uris__iexact'] = requestParameters.redirectUrisIexact;
|
3581
|
-
}
|
3582
|
-
|
3583
3573
|
if (requestParameters.search !== undefined) {
|
3584
3574
|
queryParameters['search'] = requestParameters.search;
|
3585
3575
|
}
|
@@ -0,0 +1,39 @@
|
|
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
|
+
/**
|
17
|
+
*
|
18
|
+
* @export
|
19
|
+
*/
|
20
|
+
export const MatchingModeEnum = {
|
21
|
+
Strict: 'strict',
|
22
|
+
Regex: 'regex',
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
24
|
+
} as const;
|
25
|
+
export type MatchingModeEnum = typeof MatchingModeEnum[keyof typeof MatchingModeEnum];
|
26
|
+
|
27
|
+
|
28
|
+
export function MatchingModeEnumFromJSON(json: any): MatchingModeEnum {
|
29
|
+
return MatchingModeEnumFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
|
32
|
+
export function MatchingModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchingModeEnum {
|
33
|
+
return json as MatchingModeEnum;
|
34
|
+
}
|
35
|
+
|
36
|
+
export function MatchingModeEnumToJSON(value?: MatchingModeEnum | null): any {
|
37
|
+
return value as any;
|
38
|
+
}
|
39
|
+
|
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
IssuerModeEnumFromJSONTyped,
|
26
26
|
IssuerModeEnumToJSON,
|
27
27
|
} from './IssuerModeEnum';
|
28
|
+
import type { RedirectURI } from './RedirectURI';
|
29
|
+
import {
|
30
|
+
RedirectURIFromJSON,
|
31
|
+
RedirectURIFromJSONTyped,
|
32
|
+
RedirectURIToJSON,
|
33
|
+
} from './RedirectURI';
|
28
34
|
import type { SubModeEnum } from './SubModeEnum';
|
29
35
|
import {
|
30
36
|
SubModeEnumFromJSON,
|
@@ -177,11 +183,11 @@ export interface OAuth2Provider {
|
|
177
183
|
*/
|
178
184
|
encryptionKey?: string | null;
|
179
185
|
/**
|
180
|
-
*
|
181
|
-
* @type {
|
186
|
+
*
|
187
|
+
* @type {Array<RedirectURI>}
|
182
188
|
* @memberof OAuth2Provider
|
183
189
|
*/
|
184
|
-
redirectUris
|
190
|
+
redirectUris: Array<RedirectURI>;
|
185
191
|
/**
|
186
192
|
*
|
187
193
|
* @type {SubModeEnum}
|
@@ -219,6 +225,7 @@ export function instanceOfOAuth2Provider(value: object): boolean {
|
|
219
225
|
isInstance = isInstance && "verboseName" in value;
|
220
226
|
isInstance = isInstance && "verboseNamePlural" in value;
|
221
227
|
isInstance = isInstance && "metaModelName" in value;
|
228
|
+
isInstance = isInstance && "redirectUris" in value;
|
222
229
|
|
223
230
|
return isInstance;
|
224
231
|
}
|
@@ -256,7 +263,7 @@ export function OAuth2ProviderFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
256
263
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
257
264
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
258
265
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
259
|
-
'redirectUris':
|
266
|
+
'redirectUris': ((json['redirect_uris'] as Array<any>).map(RedirectURIFromJSON)),
|
260
267
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
261
268
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
262
269
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -286,7 +293,7 @@ export function OAuth2ProviderToJSON(value?: OAuth2Provider | null): any {
|
|
286
293
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
287
294
|
'signing_key': value.signingKey,
|
288
295
|
'encryption_key': value.encryptionKey,
|
289
|
-
'redirect_uris': value.redirectUris,
|
296
|
+
'redirect_uris': ((value.redirectUris as Array<any>).map(RedirectURIToJSON)),
|
290
297
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
291
298
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
292
299
|
'jwks_sources': value.jwksSources,
|
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
IssuerModeEnumFromJSONTyped,
|
26
26
|
IssuerModeEnumToJSON,
|
27
27
|
} from './IssuerModeEnum';
|
28
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
29
|
+
import {
|
30
|
+
RedirectURIRequestFromJSON,
|
31
|
+
RedirectURIRequestFromJSONTyped,
|
32
|
+
RedirectURIRequestToJSON,
|
33
|
+
} from './RedirectURIRequest';
|
28
34
|
import type { SubModeEnum } from './SubModeEnum';
|
29
35
|
import {
|
30
36
|
SubModeEnumFromJSON,
|
@@ -123,11 +129,11 @@ export interface OAuth2ProviderRequest {
|
|
123
129
|
*/
|
124
130
|
encryptionKey?: string | null;
|
125
131
|
/**
|
126
|
-
*
|
127
|
-
* @type {
|
132
|
+
*
|
133
|
+
* @type {Array<RedirectURIRequest>}
|
128
134
|
* @memberof OAuth2ProviderRequest
|
129
135
|
*/
|
130
|
-
redirectUris
|
136
|
+
redirectUris: Array<RedirectURIRequest>;
|
131
137
|
/**
|
132
138
|
*
|
133
139
|
* @type {SubModeEnum}
|
@@ -156,6 +162,7 @@ export function instanceOfOAuth2ProviderRequest(value: object): boolean {
|
|
156
162
|
isInstance = isInstance && "name" in value;
|
157
163
|
isInstance = isInstance && "authorizationFlow" in value;
|
158
164
|
isInstance = isInstance && "invalidationFlow" in value;
|
165
|
+
isInstance = isInstance && "redirectUris" in value;
|
159
166
|
|
160
167
|
return isInstance;
|
161
168
|
}
|
@@ -184,7 +191,7 @@ export function OAuth2ProviderRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
184
191
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
185
192
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
186
193
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
187
|
-
'redirectUris':
|
194
|
+
'redirectUris': ((json['redirect_uris'] as Array<any>).map(RedirectURIRequestFromJSON)),
|
188
195
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
189
196
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
190
197
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -214,7 +221,7 @@ export function OAuth2ProviderRequestToJSON(value?: OAuth2ProviderRequest | null
|
|
214
221
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
215
222
|
'signing_key': value.signingKey,
|
216
223
|
'encryption_key': value.encryptionKey,
|
217
|
-
'redirect_uris': value.redirectUris,
|
224
|
+
'redirect_uris': ((value.redirectUris as Array<any>).map(RedirectURIRequestToJSON)),
|
218
225
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
219
226
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
220
227
|
'jwks_sources': value.jwksSources,
|
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
IssuerModeEnumFromJSONTyped,
|
26
26
|
IssuerModeEnumToJSON,
|
27
27
|
} from './IssuerModeEnum';
|
28
|
+
import type { RedirectURIRequest } from './RedirectURIRequest';
|
29
|
+
import {
|
30
|
+
RedirectURIRequestFromJSON,
|
31
|
+
RedirectURIRequestFromJSONTyped,
|
32
|
+
RedirectURIRequestToJSON,
|
33
|
+
} from './RedirectURIRequest';
|
28
34
|
import type { SubModeEnum } from './SubModeEnum';
|
29
35
|
import {
|
30
36
|
SubModeEnumFromJSON,
|
@@ -123,11 +129,11 @@ export interface PatchedOAuth2ProviderRequest {
|
|
123
129
|
*/
|
124
130
|
encryptionKey?: string | null;
|
125
131
|
/**
|
126
|
-
*
|
127
|
-
* @type {
|
132
|
+
*
|
133
|
+
* @type {Array<RedirectURIRequest>}
|
128
134
|
* @memberof PatchedOAuth2ProviderRequest
|
129
135
|
*/
|
130
|
-
redirectUris?:
|
136
|
+
redirectUris?: Array<RedirectURIRequest>;
|
131
137
|
/**
|
132
138
|
*
|
133
139
|
* @type {SubModeEnum}
|
@@ -181,7 +187,7 @@ export function PatchedOAuth2ProviderRequestFromJSONTyped(json: any, ignoreDiscr
|
|
181
187
|
'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],
|
182
188
|
'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],
|
183
189
|
'encryptionKey': !exists(json, 'encryption_key') ? undefined : json['encryption_key'],
|
184
|
-
'redirectUris': !exists(json, 'redirect_uris') ? undefined : json['redirect_uris'],
|
190
|
+
'redirectUris': !exists(json, 'redirect_uris') ? undefined : ((json['redirect_uris'] as Array<any>).map(RedirectURIRequestFromJSON)),
|
185
191
|
'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),
|
186
192
|
'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),
|
187
193
|
'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],
|
@@ -211,7 +217,7 @@ export function PatchedOAuth2ProviderRequestToJSON(value?: PatchedOAuth2Provider
|
|
211
217
|
'include_claims_in_id_token': value.includeClaimsInIdToken,
|
212
218
|
'signing_key': value.signingKey,
|
213
219
|
'encryption_key': value.encryptionKey,
|
214
|
-
'redirect_uris': value.redirectUris,
|
220
|
+
'redirect_uris': value.redirectUris === undefined ? undefined : ((value.redirectUris as Array<any>).map(RedirectURIRequestToJSON)),
|
215
221
|
'sub_mode': SubModeEnumToJSON(value.subMode),
|
216
222
|
'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),
|
217
223
|
'jwks_sources': value.jwksSources,
|
@@ -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
|
+
|
@@ -31,6 +31,12 @@ import {
|
|
31
31
|
ProviderModelEnumFromJSONTyped,
|
32
32
|
ProviderModelEnumToJSON,
|
33
33
|
} from './ProviderModelEnum';
|
34
|
+
import type { TransactionPolicyBindingRequest } from './TransactionPolicyBindingRequest';
|
35
|
+
import {
|
36
|
+
TransactionPolicyBindingRequestFromJSON,
|
37
|
+
TransactionPolicyBindingRequestFromJSONTyped,
|
38
|
+
TransactionPolicyBindingRequestToJSON,
|
39
|
+
} from './TransactionPolicyBindingRequest';
|
34
40
|
|
35
41
|
/**
|
36
42
|
* Serializer for creating a provider and an application in one transaction
|
@@ -56,6 +62,12 @@ export interface TransactionApplicationRequest {
|
|
56
62
|
* @memberof TransactionApplicationRequest
|
57
63
|
*/
|
58
64
|
provider: ModelRequest;
|
65
|
+
/**
|
66
|
+
*
|
67
|
+
* @type {Array<TransactionPolicyBindingRequest>}
|
68
|
+
* @memberof TransactionApplicationRequest
|
69
|
+
*/
|
70
|
+
policyBindings?: Array<TransactionPolicyBindingRequest>;
|
59
71
|
}
|
60
72
|
|
61
73
|
/**
|
@@ -83,6 +95,7 @@ export function TransactionApplicationRequestFromJSONTyped(json: any, ignoreDisc
|
|
83
95
|
'app': ApplicationRequestFromJSON(json['app']),
|
84
96
|
'providerModel': ProviderModelEnumFromJSON(json['provider_model']),
|
85
97
|
'provider': ModelRequestFromJSON(json['provider']),
|
98
|
+
'policyBindings': !exists(json, 'policy_bindings') ? undefined : ((json['policy_bindings'] as Array<any>).map(TransactionPolicyBindingRequestFromJSON)),
|
86
99
|
};
|
87
100
|
}
|
88
101
|
|
@@ -98,6 +111,7 @@ export function TransactionApplicationRequestToJSON(value?: TransactionApplicati
|
|
98
111
|
'app': ApplicationRequestToJSON(value.app),
|
99
112
|
'provider_model': ProviderModelEnumToJSON(value.providerModel),
|
100
113
|
'provider': ModelRequestToJSON(value.provider),
|
114
|
+
'policy_bindings': value.policyBindings === undefined ? undefined : ((value.policyBindings as Array<any>).map(TransactionPolicyBindingRequestToJSON)),
|
101
115
|
};
|
102
116
|
}
|
103
117
|
|