@goauthentik/api 2024.10.5-1734022840 → 2024.10.5-1734524927
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.
- package/.openapi-generator/FILES +10 -0
- package/dist/apis/SourcesApi.d.ts +21 -5
- package/dist/apis/SourcesApi.js +51 -6
- package/dist/esm/apis/SourcesApi.d.ts +21 -5
- package/dist/esm/apis/SourcesApi.js +52 -7
- package/dist/esm/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupKerberosSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupOAuthSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupPlexSourceConnection.js +8 -2
- package/dist/esm/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupPlexSourceConnectionRequest.js +49 -0
- package/dist/esm/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/esm/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/GroupSAMLSourceConnectionRequest.js +49 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupKerberosSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupOAuthSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupPlexSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/esm/models/PatchedGroupSAMLSourceConnectionRequest.js +47 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/PatchedUserSourceConnectionRequest.js +45 -0
- package/dist/esm/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserKerberosSourceConnection.js +4 -1
- package/dist/esm/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/esm/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/esm/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserOAuthSourceConnection.js +5 -1
- package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserPlexSourceConnection.js +5 -1
- package/dist/esm/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/esm/models/UserSAMLSourceConnection.js +5 -1
- package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/esm/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/esm/models/UserSourceConnection.d.ts +9 -3
- package/dist/esm/models/UserSourceConnection.js +7 -2
- package/dist/esm/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/esm/models/UserSourceConnectionRequest.js +46 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/GroupKerberosSourceConnection.d.ts +9 -3
- package/dist/models/GroupKerberosSourceConnection.js +8 -2
- package/dist/models/GroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupKerberosSourceConnectionRequest.js +56 -0
- package/dist/models/GroupOAuthSourceConnection.d.ts +9 -3
- package/dist/models/GroupOAuthSourceConnection.js +8 -2
- package/dist/models/GroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupOAuthSourceConnectionRequest.js +56 -0
- package/dist/models/GroupPlexSourceConnection.d.ts +9 -3
- package/dist/models/GroupPlexSourceConnection.js +8 -2
- package/dist/models/GroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupPlexSourceConnectionRequest.js +56 -0
- package/dist/models/GroupSAMLSourceConnection.d.ts +9 -3
- package/dist/models/GroupSAMLSourceConnection.js +8 -2
- package/dist/models/GroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/GroupSAMLSourceConnectionRequest.js +56 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupKerberosSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupOAuthSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupPlexSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.d.ts +43 -0
- package/dist/models/PatchedGroupSAMLSourceConnectionRequest.js +54 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/PatchedUserKerberosSourceConnectionRequest.js +2 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserPlexSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +4 -0
- package/dist/models/PatchedUserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/PatchedUserSourceConnectionRequest.js +52 -0
- package/dist/models/UserKerberosSourceConnection.d.ts +7 -1
- package/dist/models/UserKerberosSourceConnection.js +4 -1
- package/dist/models/UserKerberosSourceConnectionRequest.d.ts +6 -0
- package/dist/models/UserKerberosSourceConnectionRequest.js +3 -0
- package/dist/models/UserOAuthSourceConnection.d.ts +8 -2
- package/dist/models/UserOAuthSourceConnection.js +5 -1
- package/dist/models/UserOAuthSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserOAuthSourceConnectionRequest.js +6 -0
- package/dist/models/UserPlexSourceConnection.d.ts +8 -2
- package/dist/models/UserPlexSourceConnection.js +5 -1
- package/dist/models/UserPlexSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserPlexSourceConnectionRequest.js +6 -0
- package/dist/models/UserSAMLSourceConnection.d.ts +8 -2
- package/dist/models/UserSAMLSourceConnection.js +5 -1
- package/dist/models/UserSAMLSourceConnectionRequest.d.ts +12 -0
- package/dist/models/UserSAMLSourceConnectionRequest.js +6 -0
- package/dist/models/UserSourceConnection.d.ts +9 -3
- package/dist/models/UserSourceConnection.js +7 -2
- package/dist/models/UserSourceConnectionRequest.d.ts +37 -0
- package/dist/models/UserSourceConnectionRequest.js +53 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/SourcesApi.ts +118 -6
- package/src/models/GroupKerberosSourceConnection.ts +15 -4
- package/src/models/GroupKerberosSourceConnectionRequest.ts +84 -0
- package/src/models/GroupOAuthSourceConnection.ts +15 -4
- package/src/models/GroupOAuthSourceConnectionRequest.ts +84 -0
- package/src/models/GroupPlexSourceConnection.ts +15 -4
- package/src/models/GroupPlexSourceConnectionRequest.ts +84 -0
- package/src/models/GroupSAMLSourceConnection.ts +15 -4
- package/src/models/GroupSAMLSourceConnectionRequest.ts +84 -0
- package/src/models/PatchedGroupKerberosSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupOAuthSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupPlexSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedGroupSAMLSourceConnectionRequest.ts +81 -0
- package/src/models/PatchedUserKerberosSourceConnectionRequest.ts +8 -0
- package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserPlexSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +16 -0
- package/src/models/PatchedUserSourceConnectionRequest.ts +73 -0
- package/src/models/UserKerberosSourceConnection.ts +11 -2
- package/src/models/UserKerberosSourceConnectionRequest.ts +9 -0
- package/src/models/UserOAuthSourceConnection.ts +13 -3
- package/src/models/UserOAuthSourceConnectionRequest.ts +18 -0
- package/src/models/UserPlexSourceConnection.ts +13 -3
- package/src/models/UserPlexSourceConnectionRequest.ts +18 -0
- package/src/models/UserSAMLSourceConnection.ts +13 -3
- package/src/models/UserSAMLSourceConnectionRequest.ts +18 -0
- package/src/models/UserSourceConnection.ts +14 -4
- package/src/models/UserSourceConnectionRequest.ts +75 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
/**
|
|
17
|
+
* OAuth Group-Source connection Serializer
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PatchedGroupSAMLSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedGroupSAMLSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PatchedGroupSAMLSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
group?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedGroupSAMLSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PatchedGroupSAMLSourceConnectionRequest
|
|
38
|
+
*/
|
|
39
|
+
identifier?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PatchedGroupSAMLSourceConnectionRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPatchedGroupSAMLSourceConnectionRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PatchedGroupSAMLSourceConnectionRequestFromJSON(json: any): PatchedGroupSAMLSourceConnectionRequest {
|
|
52
|
+
return PatchedGroupSAMLSourceConnectionRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PatchedGroupSAMLSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedGroupSAMLSourceConnectionRequest {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'group': !exists(json, 'group') ? undefined : json['group'],
|
|
62
|
+
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
63
|
+
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PatchedGroupSAMLSourceConnectionRequestToJSON(value?: PatchedGroupSAMLSourceConnectionRequest | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'group': value.group,
|
|
77
|
+
'source': value.source,
|
|
78
|
+
'identifier': value.identifier,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -25,6 +25,12 @@ export interface PatchedUserKerberosSourceConnectionRequest {
|
|
|
25
25
|
* @memberof PatchedUserKerberosSourceConnectionRequest
|
|
26
26
|
*/
|
|
27
27
|
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedUserKerberosSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -53,6 +59,7 @@ export function PatchedUserKerberosSourceConnectionRequestFromJSONTyped(json: an
|
|
|
53
59
|
return {
|
|
54
60
|
|
|
55
61
|
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
62
|
+
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
56
63
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
57
64
|
};
|
|
58
65
|
}
|
|
@@ -67,6 +74,7 @@ export function PatchedUserKerberosSourceConnectionRequestToJSON(value?: Patched
|
|
|
67
74
|
return {
|
|
68
75
|
|
|
69
76
|
'user': value.user,
|
|
77
|
+
'source': value.source,
|
|
70
78
|
'identifier': value.identifier,
|
|
71
79
|
};
|
|
72
80
|
}
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PatchedUserOAuthSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface PatchedUserOAuthSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedUserOAuthSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -52,6 +64,8 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json: any,
|
|
|
52
64
|
}
|
|
53
65
|
return {
|
|
54
66
|
|
|
67
|
+
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
68
|
+
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
55
69
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
56
70
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
|
57
71
|
};
|
|
@@ -66,6 +80,8 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value?: PatchedUse
|
|
|
66
80
|
}
|
|
67
81
|
return {
|
|
68
82
|
|
|
83
|
+
'user': value.user,
|
|
84
|
+
'source': value.source,
|
|
69
85
|
'identifier': value.identifier,
|
|
70
86
|
'access_token': value.accessToken,
|
|
71
87
|
};
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PatchedUserPlexSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface PatchedUserPlexSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PatchedUserPlexSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedUserPlexSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -52,6 +64,8 @@ export function PatchedUserPlexSourceConnectionRequestFromJSONTyped(json: any, i
|
|
|
52
64
|
}
|
|
53
65
|
return {
|
|
54
66
|
|
|
67
|
+
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
68
|
+
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
55
69
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
56
70
|
'plexToken': !exists(json, 'plex_token') ? undefined : json['plex_token'],
|
|
57
71
|
};
|
|
@@ -66,6 +80,8 @@ export function PatchedUserPlexSourceConnectionRequestToJSON(value?: PatchedUser
|
|
|
66
80
|
}
|
|
67
81
|
return {
|
|
68
82
|
|
|
83
|
+
'user': value.user,
|
|
84
|
+
'source': value.source,
|
|
69
85
|
'identifier': value.identifier,
|
|
70
86
|
'plex_token': value.plexToken,
|
|
71
87
|
};
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PatchedUserSAMLSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface PatchedUserSAMLSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PatchedUserSAMLSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedUserSAMLSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -46,6 +58,8 @@ export function PatchedUserSAMLSourceConnectionRequestFromJSONTyped(json: any, i
|
|
|
46
58
|
}
|
|
47
59
|
return {
|
|
48
60
|
|
|
61
|
+
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
62
|
+
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
49
63
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
|
50
64
|
};
|
|
51
65
|
}
|
|
@@ -59,6 +73,8 @@ export function PatchedUserSAMLSourceConnectionRequestToJSON(value?: PatchedUser
|
|
|
59
73
|
}
|
|
60
74
|
return {
|
|
61
75
|
|
|
76
|
+
'user': value.user,
|
|
77
|
+
'source': value.source,
|
|
62
78
|
'identifier': value.identifier,
|
|
63
79
|
};
|
|
64
80
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
/**
|
|
17
|
+
* User source connection
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PatchedUserSourceConnectionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PatchedUserSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PatchedUserSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PatchedUserSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PatchedUserSourceConnectionRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPatchedUserSourceConnectionRequest(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PatchedUserSourceConnectionRequestFromJSON(json: any): PatchedUserSourceConnectionRequest {
|
|
46
|
+
return PatchedUserSourceConnectionRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PatchedUserSourceConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserSourceConnectionRequest {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
56
|
+
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PatchedUserSourceConnectionRequestToJSON(value?: PatchedUserSourceConnectionRequest | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'user': value.user,
|
|
70
|
+
'source': value.source,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -38,12 +38,18 @@ export interface UserKerberosSourceConnection {
|
|
|
38
38
|
* @memberof UserKerberosSourceConnection
|
|
39
39
|
*/
|
|
40
40
|
user: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UserKerberosSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof UserKerberosSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfUserKerberosSourceConnection(value: object): boolean {
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "user" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "created" in value;
|
|
70
77
|
isInstance = isInstance && "identifier" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function UserKerberosSourceConnectionFromJSONTyped(json: any, ignoreDiscr
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'user': json['user'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'created': (new Date(json['created'])),
|
|
89
97
|
'identifier': json['identifier'],
|
|
90
98
|
};
|
|
@@ -100,6 +108,7 @@ export function UserKerberosSourceConnectionToJSON(value?: UserKerberosSourceCon
|
|
|
100
108
|
return {
|
|
101
109
|
|
|
102
110
|
'user': value.user,
|
|
111
|
+
'source': value.source,
|
|
103
112
|
'identifier': value.identifier,
|
|
104
113
|
};
|
|
105
114
|
}
|
|
@@ -25,6 +25,12 @@ export interface UserKerberosSourceConnectionRequest {
|
|
|
25
25
|
* @memberof UserKerberosSourceConnectionRequest
|
|
26
26
|
*/
|
|
27
27
|
user: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserKerberosSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -39,6 +45,7 @@ export interface UserKerberosSourceConnectionRequest {
|
|
|
39
45
|
export function instanceOfUserKerberosSourceConnectionRequest(value: object): boolean {
|
|
40
46
|
let isInstance = true;
|
|
41
47
|
isInstance = isInstance && "user" in value;
|
|
48
|
+
isInstance = isInstance && "source" in value;
|
|
42
49
|
isInstance = isInstance && "identifier" in value;
|
|
43
50
|
|
|
44
51
|
return isInstance;
|
|
@@ -55,6 +62,7 @@ export function UserKerberosSourceConnectionRequestFromJSONTyped(json: any, igno
|
|
|
55
62
|
return {
|
|
56
63
|
|
|
57
64
|
'user': json['user'],
|
|
65
|
+
'source': json['source'],
|
|
58
66
|
'identifier': json['identifier'],
|
|
59
67
|
};
|
|
60
68
|
}
|
|
@@ -69,6 +77,7 @@ export function UserKerberosSourceConnectionRequestToJSON(value?: UserKerberosSo
|
|
|
69
77
|
return {
|
|
70
78
|
|
|
71
79
|
'user': value.user,
|
|
80
|
+
'source': value.source,
|
|
72
81
|
'identifier': value.identifier,
|
|
73
82
|
};
|
|
74
83
|
}
|
|
@@ -37,13 +37,19 @@ export interface UserOAuthSourceConnection {
|
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof UserOAuthSourceConnection
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
user: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UserOAuthSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof UserOAuthSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfUserOAuthSourceConnection(value: object): boolean {
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "user" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "created" in value;
|
|
70
77
|
isInstance = isInstance && "identifier" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function UserOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'user': json['user'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'created': (new Date(json['created'])),
|
|
89
97
|
'identifier': json['identifier'],
|
|
90
98
|
};
|
|
@@ -99,6 +107,8 @@ export function UserOAuthSourceConnectionToJSON(value?: UserOAuthSourceConnectio
|
|
|
99
107
|
}
|
|
100
108
|
return {
|
|
101
109
|
|
|
110
|
+
'user': value.user,
|
|
111
|
+
'source': value.source,
|
|
102
112
|
'identifier': value.identifier,
|
|
103
113
|
};
|
|
104
114
|
}
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface UserOAuthSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface UserOAuthSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserOAuthSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserOAuthSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -38,6 +50,8 @@ export interface UserOAuthSourceConnectionRequest {
|
|
|
38
50
|
*/
|
|
39
51
|
export function instanceOfUserOAuthSourceConnectionRequest(value: object): boolean {
|
|
40
52
|
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "user" in value;
|
|
54
|
+
isInstance = isInstance && "source" in value;
|
|
41
55
|
isInstance = isInstance && "identifier" in value;
|
|
42
56
|
|
|
43
57
|
return isInstance;
|
|
@@ -53,6 +67,8 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json: any, ignoreD
|
|
|
53
67
|
}
|
|
54
68
|
return {
|
|
55
69
|
|
|
70
|
+
'user': json['user'],
|
|
71
|
+
'source': json['source'],
|
|
56
72
|
'identifier': json['identifier'],
|
|
57
73
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
|
58
74
|
};
|
|
@@ -67,6 +83,8 @@ export function UserOAuthSourceConnectionRequestToJSON(value?: UserOAuthSourceCo
|
|
|
67
83
|
}
|
|
68
84
|
return {
|
|
69
85
|
|
|
86
|
+
'user': value.user,
|
|
87
|
+
'source': value.source,
|
|
70
88
|
'identifier': value.identifier,
|
|
71
89
|
'access_token': value.accessToken,
|
|
72
90
|
};
|
|
@@ -37,13 +37,19 @@ export interface UserPlexSourceConnection {
|
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof UserPlexSourceConnection
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
user: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UserPlexSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof UserPlexSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfUserPlexSourceConnection(value: object): boolean {
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "user" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "created" in value;
|
|
70
77
|
isInstance = isInstance && "identifier" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function UserPlexSourceConnectionFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'user': json['user'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'created': (new Date(json['created'])),
|
|
89
97
|
'identifier': json['identifier'],
|
|
90
98
|
};
|
|
@@ -99,6 +107,8 @@ export function UserPlexSourceConnectionToJSON(value?: UserPlexSourceConnection
|
|
|
99
107
|
}
|
|
100
108
|
return {
|
|
101
109
|
|
|
110
|
+
'user': value.user,
|
|
111
|
+
'source': value.source,
|
|
102
112
|
'identifier': value.identifier,
|
|
103
113
|
};
|
|
104
114
|
}
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface UserPlexSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface UserPlexSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserPlexSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserPlexSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -38,6 +50,8 @@ export interface UserPlexSourceConnectionRequest {
|
|
|
38
50
|
*/
|
|
39
51
|
export function instanceOfUserPlexSourceConnectionRequest(value: object): boolean {
|
|
40
52
|
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "user" in value;
|
|
54
|
+
isInstance = isInstance && "source" in value;
|
|
41
55
|
isInstance = isInstance && "identifier" in value;
|
|
42
56
|
isInstance = isInstance && "plexToken" in value;
|
|
43
57
|
|
|
@@ -54,6 +68,8 @@ export function UserPlexSourceConnectionRequestFromJSONTyped(json: any, ignoreDi
|
|
|
54
68
|
}
|
|
55
69
|
return {
|
|
56
70
|
|
|
71
|
+
'user': json['user'],
|
|
72
|
+
'source': json['source'],
|
|
57
73
|
'identifier': json['identifier'],
|
|
58
74
|
'plexToken': json['plex_token'],
|
|
59
75
|
};
|
|
@@ -68,6 +84,8 @@ export function UserPlexSourceConnectionRequestToJSON(value?: UserPlexSourceConn
|
|
|
68
84
|
}
|
|
69
85
|
return {
|
|
70
86
|
|
|
87
|
+
'user': value.user,
|
|
88
|
+
'source': value.source,
|
|
71
89
|
'identifier': value.identifier,
|
|
72
90
|
'plex_token': value.plexToken,
|
|
73
91
|
};
|
|
@@ -37,13 +37,19 @@ export interface UserSAMLSourceConnection {
|
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof UserSAMLSourceConnection
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
user: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof UserSAMLSourceConnection
|
|
45
|
+
*/
|
|
46
|
+
source: string;
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
* @type {Source}
|
|
44
50
|
* @memberof UserSAMLSourceConnection
|
|
45
51
|
*/
|
|
46
|
-
readonly
|
|
52
|
+
readonly sourceObj: Source;
|
|
47
53
|
/**
|
|
48
54
|
*
|
|
49
55
|
* @type {Date}
|
|
@@ -66,6 +72,7 @@ export function instanceOfUserSAMLSourceConnection(value: object): boolean {
|
|
|
66
72
|
isInstance = isInstance && "pk" in value;
|
|
67
73
|
isInstance = isInstance && "user" in value;
|
|
68
74
|
isInstance = isInstance && "source" in value;
|
|
75
|
+
isInstance = isInstance && "sourceObj" in value;
|
|
69
76
|
isInstance = isInstance && "created" in value;
|
|
70
77
|
isInstance = isInstance && "identifier" in value;
|
|
71
78
|
|
|
@@ -84,7 +91,8 @@ export function UserSAMLSourceConnectionFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
84
91
|
|
|
85
92
|
'pk': json['pk'],
|
|
86
93
|
'user': json['user'],
|
|
87
|
-
'source':
|
|
94
|
+
'source': json['source'],
|
|
95
|
+
'sourceObj': SourceFromJSON(json['source_obj']),
|
|
88
96
|
'created': (new Date(json['created'])),
|
|
89
97
|
'identifier': json['identifier'],
|
|
90
98
|
};
|
|
@@ -99,6 +107,8 @@ export function UserSAMLSourceConnectionToJSON(value?: UserSAMLSourceConnection
|
|
|
99
107
|
}
|
|
100
108
|
return {
|
|
101
109
|
|
|
110
|
+
'user': value.user,
|
|
111
|
+
'source': value.source,
|
|
102
112
|
'identifier': value.identifier,
|
|
103
113
|
};
|
|
104
114
|
}
|
|
@@ -19,6 +19,18 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface UserSAMLSourceConnectionRequest
|
|
20
20
|
*/
|
|
21
21
|
export interface UserSAMLSourceConnectionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserSAMLSourceConnectionRequest
|
|
26
|
+
*/
|
|
27
|
+
user: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserSAMLSourceConnectionRequest
|
|
32
|
+
*/
|
|
33
|
+
source: string;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -32,6 +44,8 @@ export interface UserSAMLSourceConnectionRequest {
|
|
|
32
44
|
*/
|
|
33
45
|
export function instanceOfUserSAMLSourceConnectionRequest(value: object): boolean {
|
|
34
46
|
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "user" in value;
|
|
48
|
+
isInstance = isInstance && "source" in value;
|
|
35
49
|
isInstance = isInstance && "identifier" in value;
|
|
36
50
|
|
|
37
51
|
return isInstance;
|
|
@@ -47,6 +61,8 @@ export function UserSAMLSourceConnectionRequestFromJSONTyped(json: any, ignoreDi
|
|
|
47
61
|
}
|
|
48
62
|
return {
|
|
49
63
|
|
|
64
|
+
'user': json['user'],
|
|
65
|
+
'source': json['source'],
|
|
50
66
|
'identifier': json['identifier'],
|
|
51
67
|
};
|
|
52
68
|
}
|
|
@@ -60,6 +76,8 @@ export function UserSAMLSourceConnectionRequestToJSON(value?: UserSAMLSourceConn
|
|
|
60
76
|
}
|
|
61
77
|
return {
|
|
62
78
|
|
|
79
|
+
'user': value.user,
|
|
80
|
+
'source': value.source,
|
|
63
81
|
'identifier': value.identifier,
|
|
64
82
|
};
|
|
65
83
|
}
|