@goauthentik/api 2024.6.1-1721654810 → 2024.6.1-1721909829
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/SourcesApi.d.ts +4 -0
- package/dist/apis/SourcesApi.js +12 -0
- package/dist/esm/apis/SourcesApi.d.ts +4 -0
- package/dist/esm/apis/SourcesApi.js +12 -0
- package/dist/esm/models/Brand.d.ts +6 -0
- package/dist/esm/models/Brand.js +2 -0
- package/dist/esm/models/BrandRequest.d.ts +6 -0
- package/dist/esm/models/BrandRequest.js +2 -0
- package/dist/esm/models/PatchedBrandRequest.d.ts +6 -0
- package/dist/esm/models/PatchedBrandRequest.js +2 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
- package/dist/esm/models/PlexSourceConnection.d.ts +3 -3
- package/dist/esm/models/PlexSourceConnection.js +2 -3
- package/dist/esm/models/UserOAuthSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserOAuthSourceConnection.js +2 -1
- package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/UserOAuthSourceConnectionRequest.js +0 -3
- package/dist/esm/models/UserSAMLSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserSAMLSourceConnection.js +2 -1
- package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/UserSAMLSourceConnectionRequest.js +0 -3
- package/dist/models/Brand.d.ts +6 -0
- package/dist/models/Brand.js +2 -0
- package/dist/models/BrandRequest.d.ts +6 -0
- package/dist/models/BrandRequest.js +2 -0
- package/dist/models/PatchedBrandRequest.d.ts +6 -0
- package/dist/models/PatchedBrandRequest.js +2 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
- package/dist/models/PlexSourceConnection.d.ts +3 -3
- package/dist/models/PlexSourceConnection.js +2 -3
- package/dist/models/UserOAuthSourceConnection.d.ts +7 -1
- package/dist/models/UserOAuthSourceConnection.js +2 -1
- package/dist/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/models/UserOAuthSourceConnectionRequest.js +0 -3
- package/dist/models/UserSAMLSourceConnection.d.ts +7 -1
- package/dist/models/UserSAMLSourceConnection.js +2 -1
- package/dist/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/models/UserSAMLSourceConnectionRequest.js +0 -3
- package/package.json +1 -1
- package/src/apis/SourcesApi.ts +20 -0
- package/src/models/Brand.ts +8 -0
- package/src/models/BrandRequest.ts +8 -0
- package/src/models/PatchedBrandRequest.ts +8 -0
- package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +0 -8
- package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +0 -8
- package/src/models/PlexSourceConnection.ts +5 -6
- package/src/models/UserOAuthSourceConnection.ts +9 -2
- package/src/models/UserOAuthSourceConnectionRequest.ts +0 -9
- package/src/models/UserSAMLSourceConnection.ts +9 -2
- package/src/models/UserSAMLSourceConnectionRequest.ts +0 -9
@@ -323,6 +323,7 @@ export interface SourcesUserConnectionsAllListRequest {
|
|
323
323
|
page?: number;
|
324
324
|
pageSize?: number;
|
325
325
|
search?: string;
|
326
|
+
sourceSlug?: string;
|
326
327
|
user?: number;
|
327
328
|
}
|
328
329
|
export interface SourcesUserConnectionsAllPartialUpdateRequest {
|
@@ -349,6 +350,7 @@ export interface SourcesUserConnectionsOauthListRequest {
|
|
349
350
|
pageSize?: number;
|
350
351
|
search?: string;
|
351
352
|
sourceSlug?: string;
|
353
|
+
user?: number;
|
352
354
|
}
|
353
355
|
export interface SourcesUserConnectionsOauthPartialUpdateRequest {
|
354
356
|
id: number;
|
@@ -376,6 +378,7 @@ export interface SourcesUserConnectionsPlexListRequest {
|
|
376
378
|
pageSize?: number;
|
377
379
|
search?: string;
|
378
380
|
sourceSlug?: string;
|
381
|
+
user?: number;
|
379
382
|
}
|
380
383
|
export interface SourcesUserConnectionsPlexPartialUpdateRequest {
|
381
384
|
id: number;
|
@@ -403,6 +406,7 @@ export interface SourcesUserConnectionsSamlListRequest {
|
|
403
406
|
pageSize?: number;
|
404
407
|
search?: string;
|
405
408
|
sourceSlug?: string;
|
409
|
+
user?: number;
|
406
410
|
}
|
407
411
|
export interface SourcesUserConnectionsSamlPartialUpdateRequest {
|
408
412
|
id: number;
|
package/dist/apis/SourcesApi.js
CHANGED
@@ -2675,6 +2675,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
2675
2675
|
if (requestParameters.search !== undefined) {
|
2676
2676
|
queryParameters['search'] = requestParameters.search;
|
2677
2677
|
}
|
2678
|
+
if (requestParameters.sourceSlug !== undefined) {
|
2679
|
+
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
2680
|
+
}
|
2678
2681
|
if (requestParameters.user !== undefined) {
|
2679
2682
|
queryParameters['user'] = requestParameters.user;
|
2680
2683
|
}
|
@@ -2936,6 +2939,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
2936
2939
|
if (requestParameters.sourceSlug !== undefined) {
|
2937
2940
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
2938
2941
|
}
|
2942
|
+
if (requestParameters.user !== undefined) {
|
2943
|
+
queryParameters['user'] = requestParameters.user;
|
2944
|
+
}
|
2939
2945
|
const headerParameters = {};
|
2940
2946
|
if (this.configuration && this.configuration.accessToken) {
|
2941
2947
|
const token = this.configuration.accessToken;
|
@@ -3201,6 +3207,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
3201
3207
|
if (requestParameters.sourceSlug !== undefined) {
|
3202
3208
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
3203
3209
|
}
|
3210
|
+
if (requestParameters.user !== undefined) {
|
3211
|
+
queryParameters['user'] = requestParameters.user;
|
3212
|
+
}
|
3204
3213
|
const headerParameters = {};
|
3205
3214
|
if (this.configuration && this.configuration.accessToken) {
|
3206
3215
|
const token = this.configuration.accessToken;
|
@@ -3466,6 +3475,9 @@ class SourcesApi extends runtime.BaseAPI {
|
|
3466
3475
|
if (requestParameters.sourceSlug !== undefined) {
|
3467
3476
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
3468
3477
|
}
|
3478
|
+
if (requestParameters.user !== undefined) {
|
3479
|
+
queryParameters['user'] = requestParameters.user;
|
3480
|
+
}
|
3469
3481
|
const headerParameters = {};
|
3470
3482
|
if (this.configuration && this.configuration.accessToken) {
|
3471
3483
|
const token = this.configuration.accessToken;
|
@@ -323,6 +323,7 @@ export interface SourcesUserConnectionsAllListRequest {
|
|
323
323
|
page?: number;
|
324
324
|
pageSize?: number;
|
325
325
|
search?: string;
|
326
|
+
sourceSlug?: string;
|
326
327
|
user?: number;
|
327
328
|
}
|
328
329
|
export interface SourcesUserConnectionsAllPartialUpdateRequest {
|
@@ -349,6 +350,7 @@ export interface SourcesUserConnectionsOauthListRequest {
|
|
349
350
|
pageSize?: number;
|
350
351
|
search?: string;
|
351
352
|
sourceSlug?: string;
|
353
|
+
user?: number;
|
352
354
|
}
|
353
355
|
export interface SourcesUserConnectionsOauthPartialUpdateRequest {
|
354
356
|
id: number;
|
@@ -376,6 +378,7 @@ export interface SourcesUserConnectionsPlexListRequest {
|
|
376
378
|
pageSize?: number;
|
377
379
|
search?: string;
|
378
380
|
sourceSlug?: string;
|
381
|
+
user?: number;
|
379
382
|
}
|
380
383
|
export interface SourcesUserConnectionsPlexPartialUpdateRequest {
|
381
384
|
id: number;
|
@@ -403,6 +406,7 @@ export interface SourcesUserConnectionsSamlListRequest {
|
|
403
406
|
pageSize?: number;
|
404
407
|
search?: string;
|
405
408
|
sourceSlug?: string;
|
409
|
+
user?: number;
|
406
410
|
}
|
407
411
|
export interface SourcesUserConnectionsSamlPartialUpdateRequest {
|
408
412
|
id: number;
|
@@ -2672,6 +2672,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2672
2672
|
if (requestParameters.search !== undefined) {
|
2673
2673
|
queryParameters['search'] = requestParameters.search;
|
2674
2674
|
}
|
2675
|
+
if (requestParameters.sourceSlug !== undefined) {
|
2676
|
+
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
2677
|
+
}
|
2675
2678
|
if (requestParameters.user !== undefined) {
|
2676
2679
|
queryParameters['user'] = requestParameters.user;
|
2677
2680
|
}
|
@@ -2933,6 +2936,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
2933
2936
|
if (requestParameters.sourceSlug !== undefined) {
|
2934
2937
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
2935
2938
|
}
|
2939
|
+
if (requestParameters.user !== undefined) {
|
2940
|
+
queryParameters['user'] = requestParameters.user;
|
2941
|
+
}
|
2936
2942
|
const headerParameters = {};
|
2937
2943
|
if (this.configuration && this.configuration.accessToken) {
|
2938
2944
|
const token = this.configuration.accessToken;
|
@@ -3198,6 +3204,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3198
3204
|
if (requestParameters.sourceSlug !== undefined) {
|
3199
3205
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
3200
3206
|
}
|
3207
|
+
if (requestParameters.user !== undefined) {
|
3208
|
+
queryParameters['user'] = requestParameters.user;
|
3209
|
+
}
|
3201
3210
|
const headerParameters = {};
|
3202
3211
|
if (this.configuration && this.configuration.accessToken) {
|
3203
3212
|
const token = this.configuration.accessToken;
|
@@ -3463,6 +3472,9 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3463
3472
|
if (requestParameters.sourceSlug !== undefined) {
|
3464
3473
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
3465
3474
|
}
|
3475
|
+
if (requestParameters.user !== undefined) {
|
3476
|
+
queryParameters['user'] = requestParameters.user;
|
3477
|
+
}
|
3466
3478
|
const headerParameters = {};
|
3467
3479
|
if (this.configuration && this.configuration.accessToken) {
|
3468
3480
|
const token = this.configuration.accessToken;
|
@@ -87,6 +87,12 @@ export interface Brand {
|
|
87
87
|
* @memberof Brand
|
88
88
|
*/
|
89
89
|
flowDeviceCode?: string | null;
|
90
|
+
/**
|
91
|
+
* When set, external users will be redirected to this application after authenticating.
|
92
|
+
* @type {string}
|
93
|
+
* @memberof Brand
|
94
|
+
*/
|
95
|
+
defaultApplication?: string | null;
|
90
96
|
/**
|
91
97
|
* Web Certificate used by the authentik Core webserver.
|
92
98
|
* @type {string}
|
package/dist/esm/models/Brand.js
CHANGED
@@ -41,6 +41,7 @@ export function BrandFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
41
|
'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
42
42
|
'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
43
43
|
'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
44
|
+
'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
|
44
45
|
'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
|
45
46
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
46
47
|
};
|
@@ -64,6 +65,7 @@ export function BrandToJSON(value) {
|
|
64
65
|
'flow_unenrollment': value.flowUnenrollment,
|
65
66
|
'flow_user_settings': value.flowUserSettings,
|
66
67
|
'flow_device_code': value.flowDeviceCode,
|
68
|
+
'default_application': value.defaultApplication,
|
67
69
|
'web_certificate': value.webCertificate,
|
68
70
|
'attributes': value.attributes,
|
69
71
|
};
|
@@ -81,6 +81,12 @@ export interface BrandRequest {
|
|
81
81
|
* @memberof BrandRequest
|
82
82
|
*/
|
83
83
|
flowDeviceCode?: string | null;
|
84
|
+
/**
|
85
|
+
* When set, external users will be redirected to this application after authenticating.
|
86
|
+
* @type {string}
|
87
|
+
* @memberof BrandRequest
|
88
|
+
*/
|
89
|
+
defaultApplication?: string | null;
|
84
90
|
/**
|
85
91
|
* Web Certificate used by the authentik Core webserver.
|
86
92
|
* @type {string}
|
@@ -39,6 +39,7 @@ export function BrandRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
39
|
'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
40
40
|
'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
41
41
|
'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
42
|
+
'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
|
42
43
|
'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
|
43
44
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
44
45
|
};
|
@@ -62,6 +63,7 @@ export function BrandRequestToJSON(value) {
|
|
62
63
|
'flow_unenrollment': value.flowUnenrollment,
|
63
64
|
'flow_user_settings': value.flowUserSettings,
|
64
65
|
'flow_device_code': value.flowDeviceCode,
|
66
|
+
'default_application': value.defaultApplication,
|
65
67
|
'web_certificate': value.webCertificate,
|
66
68
|
'attributes': value.attributes,
|
67
69
|
};
|
@@ -81,6 +81,12 @@ export interface PatchedBrandRequest {
|
|
81
81
|
* @memberof PatchedBrandRequest
|
82
82
|
*/
|
83
83
|
flowDeviceCode?: string | null;
|
84
|
+
/**
|
85
|
+
* When set, external users will be redirected to this application after authenticating.
|
86
|
+
* @type {string}
|
87
|
+
* @memberof PatchedBrandRequest
|
88
|
+
*/
|
89
|
+
defaultApplication?: string | null;
|
84
90
|
/**
|
85
91
|
* Web Certificate used by the authentik Core webserver.
|
86
92
|
* @type {string}
|
@@ -38,6 +38,7 @@ export function PatchedBrandRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
38
|
'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
39
39
|
'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
40
40
|
'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
41
|
+
'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],
|
41
42
|
'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],
|
42
43
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
43
44
|
};
|
@@ -61,6 +62,7 @@ export function PatchedBrandRequestToJSON(value) {
|
|
61
62
|
'flow_unenrollment': value.flowUnenrollment,
|
62
63
|
'flow_user_settings': value.flowUserSettings,
|
63
64
|
'flow_device_code': value.flowDeviceCode,
|
65
|
+
'default_application': value.defaultApplication,
|
64
66
|
'web_certificate': value.webCertificate,
|
65
67
|
'attributes': value.attributes,
|
66
68
|
};
|
@@ -15,12 +15,6 @@
|
|
15
15
|
* @interface PatchedUserOAuthSourceConnectionRequest
|
16
16
|
*/
|
17
17
|
export interface PatchedUserOAuthSourceConnectionRequest {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {number}
|
21
|
-
* @memberof PatchedUserOAuthSourceConnectionRequest
|
22
|
-
*/
|
23
|
-
user?: number;
|
24
18
|
/**
|
25
19
|
*
|
26
20
|
* @type {string}
|
@@ -27,7 +27,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignor
|
|
27
27
|
return json;
|
28
28
|
}
|
29
29
|
return {
|
30
|
-
'user': !exists(json, 'user') ? undefined : json['user'],
|
31
30
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
32
31
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
33
32
|
};
|
@@ -40,7 +39,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
|
|
40
39
|
return null;
|
41
40
|
}
|
42
41
|
return {
|
43
|
-
'user': value.user,
|
44
42
|
'identifier': value.identifier,
|
45
43
|
'access_token': value.accessToken,
|
46
44
|
};
|
@@ -15,12 +15,6 @@
|
|
15
15
|
* @interface PatchedUserSAMLSourceConnectionRequest
|
16
16
|
*/
|
17
17
|
export interface PatchedUserSAMLSourceConnectionRequest {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {number}
|
21
|
-
* @memberof PatchedUserSAMLSourceConnectionRequest
|
22
|
-
*/
|
23
|
-
user?: number;
|
24
18
|
/**
|
25
19
|
*
|
26
20
|
* @type {string}
|
@@ -27,7 +27,6 @@ export function PatchedUserSAMLSourceConnectionRequestFromJSONTyped(json, ignore
|
|
27
27
|
return json;
|
28
28
|
}
|
29
29
|
return {
|
30
|
-
'user': !exists(json, 'user') ? undefined : json['user'],
|
31
30
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
32
31
|
};
|
33
32
|
}
|
@@ -39,7 +38,6 @@ export function PatchedUserSAMLSourceConnectionRequestToJSON(value) {
|
|
39
38
|
return null;
|
40
39
|
}
|
41
40
|
return {
|
42
|
-
'user': value.user,
|
43
41
|
'identifier': value.identifier,
|
44
42
|
};
|
45
43
|
}
|
@@ -36,16 +36,16 @@ export interface PlexSourceConnection {
|
|
36
36
|
readonly source: Source;
|
37
37
|
/**
|
38
38
|
*
|
39
|
-
* @type {
|
39
|
+
* @type {Date}
|
40
40
|
* @memberof PlexSourceConnection
|
41
41
|
*/
|
42
|
-
|
42
|
+
readonly created: Date;
|
43
43
|
/**
|
44
44
|
*
|
45
45
|
* @type {string}
|
46
46
|
* @memberof PlexSourceConnection
|
47
47
|
*/
|
48
|
-
|
48
|
+
identifier: string;
|
49
49
|
}
|
50
50
|
/**
|
51
51
|
* Check if a given object implements the PlexSourceConnection interface.
|
@@ -20,8 +20,8 @@ export function instanceOfPlexSourceConnection(value) {
|
|
20
20
|
isInstance = isInstance && "pk" in value;
|
21
21
|
isInstance = isInstance && "user" in value;
|
22
22
|
isInstance = isInstance && "source" in value;
|
23
|
+
isInstance = isInstance && "created" in value;
|
23
24
|
isInstance = isInstance && "identifier" in value;
|
24
|
-
isInstance = isInstance && "plexToken" in value;
|
25
25
|
return isInstance;
|
26
26
|
}
|
27
27
|
export function PlexSourceConnectionFromJSON(json) {
|
@@ -35,8 +35,8 @@ export function PlexSourceConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
'pk': json['pk'],
|
36
36
|
'user': json['user'],
|
37
37
|
'source': SourceFromJSON(json['source']),
|
38
|
+
'created': (new Date(json['created'])),
|
38
39
|
'identifier': json['identifier'],
|
39
|
-
'plexToken': json['plex_token'],
|
40
40
|
};
|
41
41
|
}
|
42
42
|
export function PlexSourceConnectionToJSON(value) {
|
@@ -48,6 +48,5 @@ export function PlexSourceConnectionToJSON(value) {
|
|
48
48
|
}
|
49
49
|
return {
|
50
50
|
'identifier': value.identifier,
|
51
|
-
'plex_token': value.plexToken,
|
52
51
|
};
|
53
52
|
}
|
@@ -27,13 +27,19 @@ export interface UserOAuthSourceConnection {
|
|
27
27
|
* @type {number}
|
28
28
|
* @memberof UserOAuthSourceConnection
|
29
29
|
*/
|
30
|
-
user: number;
|
30
|
+
readonly user: number;
|
31
31
|
/**
|
32
32
|
*
|
33
33
|
* @type {Source}
|
34
34
|
* @memberof UserOAuthSourceConnection
|
35
35
|
*/
|
36
36
|
readonly source: Source;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {Date}
|
40
|
+
* @memberof UserOAuthSourceConnection
|
41
|
+
*/
|
42
|
+
readonly created: Date;
|
37
43
|
/**
|
38
44
|
*
|
39
45
|
* @type {string}
|
@@ -20,6 +20,7 @@ export function instanceOfUserOAuthSourceConnection(value) {
|
|
20
20
|
isInstance = isInstance && "pk" in value;
|
21
21
|
isInstance = isInstance && "user" in value;
|
22
22
|
isInstance = isInstance && "source" in value;
|
23
|
+
isInstance = isInstance && "created" in value;
|
23
24
|
isInstance = isInstance && "identifier" in value;
|
24
25
|
return isInstance;
|
25
26
|
}
|
@@ -34,6 +35,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json, ignoreDiscriminator
|
|
34
35
|
'pk': json['pk'],
|
35
36
|
'user': json['user'],
|
36
37
|
'source': SourceFromJSON(json['source']),
|
38
|
+
'created': (new Date(json['created'])),
|
37
39
|
'identifier': json['identifier'],
|
38
40
|
};
|
39
41
|
}
|
@@ -45,7 +47,6 @@ export function UserOAuthSourceConnectionToJSON(value) {
|
|
45
47
|
return null;
|
46
48
|
}
|
47
49
|
return {
|
48
|
-
'user': value.user,
|
49
50
|
'identifier': value.identifier,
|
50
51
|
};
|
51
52
|
}
|
@@ -17,7 +17,6 @@ import { exists } from '../runtime';
|
|
17
17
|
*/
|
18
18
|
export function instanceOfUserOAuthSourceConnectionRequest(value) {
|
19
19
|
let isInstance = true;
|
20
|
-
isInstance = isInstance && "user" in value;
|
21
20
|
isInstance = isInstance && "identifier" in value;
|
22
21
|
return isInstance;
|
23
22
|
}
|
@@ -29,7 +28,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
|
|
29
28
|
return json;
|
30
29
|
}
|
31
30
|
return {
|
32
|
-
'user': json['user'],
|
33
31
|
'identifier': json['identifier'],
|
34
32
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
35
33
|
};
|
@@ -42,7 +40,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value) {
|
|
42
40
|
return null;
|
43
41
|
}
|
44
42
|
return {
|
45
|
-
'user': value.user,
|
46
43
|
'identifier': value.identifier,
|
47
44
|
'access_token': value.accessToken,
|
48
45
|
};
|
@@ -27,13 +27,19 @@ export interface UserSAMLSourceConnection {
|
|
27
27
|
* @type {number}
|
28
28
|
* @memberof UserSAMLSourceConnection
|
29
29
|
*/
|
30
|
-
user: number;
|
30
|
+
readonly user: number;
|
31
31
|
/**
|
32
32
|
*
|
33
33
|
* @type {Source}
|
34
34
|
* @memberof UserSAMLSourceConnection
|
35
35
|
*/
|
36
36
|
readonly source: Source;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {Date}
|
40
|
+
* @memberof UserSAMLSourceConnection
|
41
|
+
*/
|
42
|
+
readonly created: Date;
|
37
43
|
/**
|
38
44
|
*
|
39
45
|
* @type {string}
|
@@ -20,6 +20,7 @@ export function instanceOfUserSAMLSourceConnection(value) {
|
|
20
20
|
isInstance = isInstance && "pk" in value;
|
21
21
|
isInstance = isInstance && "user" in value;
|
22
22
|
isInstance = isInstance && "source" in value;
|
23
|
+
isInstance = isInstance && "created" in value;
|
23
24
|
isInstance = isInstance && "identifier" in value;
|
24
25
|
return isInstance;
|
25
26
|
}
|
@@ -34,6 +35,7 @@ export function UserSAMLSourceConnectionFromJSONTyped(json, ignoreDiscriminator)
|
|
34
35
|
'pk': json['pk'],
|
35
36
|
'user': json['user'],
|
36
37
|
'source': SourceFromJSON(json['source']),
|
38
|
+
'created': (new Date(json['created'])),
|
37
39
|
'identifier': json['identifier'],
|
38
40
|
};
|
39
41
|
}
|
@@ -45,7 +47,6 @@ export function UserSAMLSourceConnectionToJSON(value) {
|
|
45
47
|
return null;
|
46
48
|
}
|
47
49
|
return {
|
48
|
-
'user': value.user,
|
49
50
|
'identifier': value.identifier,
|
50
51
|
};
|
51
52
|
}
|
@@ -16,7 +16,6 @@
|
|
16
16
|
*/
|
17
17
|
export function instanceOfUserSAMLSourceConnectionRequest(value) {
|
18
18
|
let isInstance = true;
|
19
|
-
isInstance = isInstance && "user" in value;
|
20
19
|
isInstance = isInstance && "identifier" in value;
|
21
20
|
return isInstance;
|
22
21
|
}
|
@@ -28,7 +27,6 @@ export function UserSAMLSourceConnectionRequestFromJSONTyped(json, ignoreDiscrim
|
|
28
27
|
return json;
|
29
28
|
}
|
30
29
|
return {
|
31
|
-
'user': json['user'],
|
32
30
|
'identifier': json['identifier'],
|
33
31
|
};
|
34
32
|
}
|
@@ -40,7 +38,6 @@ export function UserSAMLSourceConnectionRequestToJSON(value) {
|
|
40
38
|
return null;
|
41
39
|
}
|
42
40
|
return {
|
43
|
-
'user': value.user,
|
44
41
|
'identifier': value.identifier,
|
45
42
|
};
|
46
43
|
}
|
package/dist/models/Brand.d.ts
CHANGED
@@ -87,6 +87,12 @@ export interface Brand {
|
|
87
87
|
* @memberof Brand
|
88
88
|
*/
|
89
89
|
flowDeviceCode?: string | null;
|
90
|
+
/**
|
91
|
+
* When set, external users will be redirected to this application after authenticating.
|
92
|
+
* @type {string}
|
93
|
+
* @memberof Brand
|
94
|
+
*/
|
95
|
+
defaultApplication?: string | null;
|
90
96
|
/**
|
91
97
|
* Web Certificate used by the authentik Core webserver.
|
92
98
|
* @type {string}
|
package/dist/models/Brand.js
CHANGED
@@ -46,6 +46,7 @@ function BrandFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
46
|
'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
47
47
|
'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
48
48
|
'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
49
|
+
'defaultApplication': !(0, runtime_1.exists)(json, 'default_application') ? undefined : json['default_application'],
|
49
50
|
'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
|
50
51
|
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
51
52
|
};
|
@@ -70,6 +71,7 @@ function BrandToJSON(value) {
|
|
70
71
|
'flow_unenrollment': value.flowUnenrollment,
|
71
72
|
'flow_user_settings': value.flowUserSettings,
|
72
73
|
'flow_device_code': value.flowDeviceCode,
|
74
|
+
'default_application': value.defaultApplication,
|
73
75
|
'web_certificate': value.webCertificate,
|
74
76
|
'attributes': value.attributes,
|
75
77
|
};
|
@@ -81,6 +81,12 @@ export interface BrandRequest {
|
|
81
81
|
* @memberof BrandRequest
|
82
82
|
*/
|
83
83
|
flowDeviceCode?: string | null;
|
84
|
+
/**
|
85
|
+
* When set, external users will be redirected to this application after authenticating.
|
86
|
+
* @type {string}
|
87
|
+
* @memberof BrandRequest
|
88
|
+
*/
|
89
|
+
defaultApplication?: string | null;
|
84
90
|
/**
|
85
91
|
* Web Certificate used by the authentik Core webserver.
|
86
92
|
* @type {string}
|
@@ -44,6 +44,7 @@ function BrandRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
44
|
'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
45
45
|
'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
46
46
|
'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
47
|
+
'defaultApplication': !(0, runtime_1.exists)(json, 'default_application') ? undefined : json['default_application'],
|
47
48
|
'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
|
48
49
|
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
49
50
|
};
|
@@ -68,6 +69,7 @@ function BrandRequestToJSON(value) {
|
|
68
69
|
'flow_unenrollment': value.flowUnenrollment,
|
69
70
|
'flow_user_settings': value.flowUserSettings,
|
70
71
|
'flow_device_code': value.flowDeviceCode,
|
72
|
+
'default_application': value.defaultApplication,
|
71
73
|
'web_certificate': value.webCertificate,
|
72
74
|
'attributes': value.attributes,
|
73
75
|
};
|
@@ -81,6 +81,12 @@ export interface PatchedBrandRequest {
|
|
81
81
|
* @memberof PatchedBrandRequest
|
82
82
|
*/
|
83
83
|
flowDeviceCode?: string | null;
|
84
|
+
/**
|
85
|
+
* When set, external users will be redirected to this application after authenticating.
|
86
|
+
* @type {string}
|
87
|
+
* @memberof PatchedBrandRequest
|
88
|
+
*/
|
89
|
+
defaultApplication?: string | null;
|
84
90
|
/**
|
85
91
|
* Web Certificate used by the authentik Core webserver.
|
86
92
|
* @type {string}
|
@@ -43,6 +43,7 @@ function PatchedBrandRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
43
|
'flowUnenrollment': !(0, runtime_1.exists)(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],
|
44
44
|
'flowUserSettings': !(0, runtime_1.exists)(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],
|
45
45
|
'flowDeviceCode': !(0, runtime_1.exists)(json, 'flow_device_code') ? undefined : json['flow_device_code'],
|
46
|
+
'defaultApplication': !(0, runtime_1.exists)(json, 'default_application') ? undefined : json['default_application'],
|
46
47
|
'webCertificate': !(0, runtime_1.exists)(json, 'web_certificate') ? undefined : json['web_certificate'],
|
47
48
|
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
48
49
|
};
|
@@ -67,6 +68,7 @@ function PatchedBrandRequestToJSON(value) {
|
|
67
68
|
'flow_unenrollment': value.flowUnenrollment,
|
68
69
|
'flow_user_settings': value.flowUserSettings,
|
69
70
|
'flow_device_code': value.flowDeviceCode,
|
71
|
+
'default_application': value.defaultApplication,
|
70
72
|
'web_certificate': value.webCertificate,
|
71
73
|
'attributes': value.attributes,
|
72
74
|
};
|
@@ -15,12 +15,6 @@
|
|
15
15
|
* @interface PatchedUserOAuthSourceConnectionRequest
|
16
16
|
*/
|
17
17
|
export interface PatchedUserOAuthSourceConnectionRequest {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {number}
|
21
|
-
* @memberof PatchedUserOAuthSourceConnectionRequest
|
22
|
-
*/
|
23
|
-
user?: number;
|
24
18
|
/**
|
25
19
|
*
|
26
20
|
* @type {string}
|
@@ -32,7 +32,6 @@ function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json, ignoreDiscri
|
|
32
32
|
return json;
|
33
33
|
}
|
34
34
|
return {
|
35
|
-
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
36
35
|
'identifier': !(0, runtime_1.exists)(json, 'identifier') ? undefined : json['identifier'],
|
37
36
|
'accessToken': !(0, runtime_1.exists)(json, 'access_token') ? undefined : json['access_token'],
|
38
37
|
};
|
@@ -46,7 +45,6 @@ function PatchedUserOAuthSourceConnectionRequestToJSON(value) {
|
|
46
45
|
return null;
|
47
46
|
}
|
48
47
|
return {
|
49
|
-
'user': value.user,
|
50
48
|
'identifier': value.identifier,
|
51
49
|
'access_token': value.accessToken,
|
52
50
|
};
|
@@ -15,12 +15,6 @@
|
|
15
15
|
* @interface PatchedUserSAMLSourceConnectionRequest
|
16
16
|
*/
|
17
17
|
export interface PatchedUserSAMLSourceConnectionRequest {
|
18
|
-
/**
|
19
|
-
*
|
20
|
-
* @type {number}
|
21
|
-
* @memberof PatchedUserSAMLSourceConnectionRequest
|
22
|
-
*/
|
23
|
-
user?: number;
|
24
18
|
/**
|
25
19
|
*
|
26
20
|
* @type {string}
|