@goauthentik/api 2024.10.5-1734006367 → 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 +16 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/SourcesApi.d.ts +21 -5
- package/dist/apis/SourcesApi.js +51 -6
- package/dist/apis/StagesApi.d.ts +84 -1
- package/dist/apis/StagesApi.js +265 -0
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/SourcesApi.d.ts +21 -5
- package/dist/esm/apis/SourcesApi.js +52 -7
- package/dist/esm/apis/StagesApi.d.ts +84 -1
- package/dist/esm/apis/StagesApi.js +266 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticationEnum.d.ts +1 -0
- package/dist/esm/models/AuthenticationEnum.js +1 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- 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/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedRedirectStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedRedirectStageList.js +48 -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/PatchedRedirectStageRequest.d.ts +63 -0
- package/dist/esm/models/PatchedRedirectStageRequest.js +55 -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/RedirectChallengeResponseRequest.d.ts +37 -0
- package/dist/esm/models/RedirectChallengeResponseRequest.js +46 -0
- package/dist/esm/models/RedirectStage.d.ts +93 -0
- package/dist/esm/models/RedirectStage.js +67 -0
- package/dist/esm/models/RedirectStageModeEnum.d.ts +24 -0
- package/dist/esm/models/RedirectStageModeEnum.js +31 -0
- package/dist/esm/models/RedirectStageRequest.d.ts +63 -0
- package/dist/esm/models/RedirectStageRequest.js +57 -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 +16 -0
- package/dist/esm/models/index.js +16 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticationEnum.d.ts +1 -0
- package/dist/models/AuthenticationEnum.js +1 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/models/FlowChallengeResponseRequest.js +5 -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/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedRedirectStageList.d.ts +39 -0
- package/dist/models/PaginatedRedirectStageList.js +55 -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/PatchedRedirectStageRequest.d.ts +63 -0
- package/dist/models/PatchedRedirectStageRequest.js +62 -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/RedirectChallengeResponseRequest.d.ts +37 -0
- package/dist/models/RedirectChallengeResponseRequest.js +53 -0
- package/dist/models/RedirectStage.d.ts +93 -0
- package/dist/models/RedirectStage.js +74 -0
- package/dist/models/RedirectStageModeEnum.d.ts +24 -0
- package/dist/models/RedirectStageModeEnum.js +37 -0
- package/dist/models/RedirectStageRequest.d.ts +63 -0
- package/dist/models/RedirectStageRequest.js +64 -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 +16 -0
- package/dist/models/index.js +16 -0
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/SourcesApi.ts +118 -6
- package/src/apis/StagesApi.ts +340 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticationEnum.ts +1 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- 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/ModelEnum.ts +1 -0
- package/src/models/PaginatedRedirectStageList.ts +88 -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/PatchedRedirectStageRequest.ts +118 -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/RedirectChallengeResponseRequest.ts +74 -0
- package/src/models/RedirectStage.ts +160 -0
- package/src/models/RedirectStageModeEnum.ts +39 -0
- package/src/models/RedirectStageRequest.ts +120 -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 +16 -0
|
@@ -0,0 +1,160 @@
|
|
|
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
|
+
import type { FlowSet } from './FlowSet';
|
|
17
|
+
import {
|
|
18
|
+
FlowSetFromJSON,
|
|
19
|
+
FlowSetFromJSONTyped,
|
|
20
|
+
FlowSetToJSON,
|
|
21
|
+
} from './FlowSet';
|
|
22
|
+
import type { RedirectStageModeEnum } from './RedirectStageModeEnum';
|
|
23
|
+
import {
|
|
24
|
+
RedirectStageModeEnumFromJSON,
|
|
25
|
+
RedirectStageModeEnumFromJSONTyped,
|
|
26
|
+
RedirectStageModeEnumToJSON,
|
|
27
|
+
} from './RedirectStageModeEnum';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* RedirectStage Serializer
|
|
31
|
+
* @export
|
|
32
|
+
* @interface RedirectStage
|
|
33
|
+
*/
|
|
34
|
+
export interface RedirectStage {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RedirectStage
|
|
39
|
+
*/
|
|
40
|
+
readonly pk: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof RedirectStage
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* Get object type so that we know how to edit the object
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof RedirectStage
|
|
51
|
+
*/
|
|
52
|
+
readonly component: string;
|
|
53
|
+
/**
|
|
54
|
+
* Return object's verbose_name
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof RedirectStage
|
|
57
|
+
*/
|
|
58
|
+
readonly verboseName: string;
|
|
59
|
+
/**
|
|
60
|
+
* Return object's plural verbose_name
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof RedirectStage
|
|
63
|
+
*/
|
|
64
|
+
readonly verboseNamePlural: string;
|
|
65
|
+
/**
|
|
66
|
+
* Return internal model name
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof RedirectStage
|
|
69
|
+
*/
|
|
70
|
+
readonly metaModelName: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<FlowSet>}
|
|
74
|
+
* @memberof RedirectStage
|
|
75
|
+
*/
|
|
76
|
+
flowSet?: Array<FlowSet>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof RedirectStage
|
|
81
|
+
*/
|
|
82
|
+
keepContext?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {RedirectStageModeEnum}
|
|
86
|
+
* @memberof RedirectStage
|
|
87
|
+
*/
|
|
88
|
+
mode: RedirectStageModeEnum;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof RedirectStage
|
|
93
|
+
*/
|
|
94
|
+
targetStatic?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof RedirectStage
|
|
99
|
+
*/
|
|
100
|
+
targetFlow?: string | null;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the RedirectStage interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfRedirectStage(value: object): boolean {
|
|
107
|
+
let isInstance = true;
|
|
108
|
+
isInstance = isInstance && "pk" in value;
|
|
109
|
+
isInstance = isInstance && "name" in value;
|
|
110
|
+
isInstance = isInstance && "component" in value;
|
|
111
|
+
isInstance = isInstance && "verboseName" in value;
|
|
112
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
113
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
114
|
+
isInstance = isInstance && "mode" in value;
|
|
115
|
+
|
|
116
|
+
return isInstance;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function RedirectStageFromJSON(json: any): RedirectStage {
|
|
120
|
+
return RedirectStageFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function RedirectStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStage {
|
|
124
|
+
if ((json === undefined) || (json === null)) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'pk': json['pk'],
|
|
130
|
+
'name': json['name'],
|
|
131
|
+
'component': json['component'],
|
|
132
|
+
'verboseName': json['verbose_name'],
|
|
133
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
134
|
+
'metaModelName': json['meta_model_name'],
|
|
135
|
+
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
|
|
136
|
+
'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
|
|
137
|
+
'mode': RedirectStageModeEnumFromJSON(json['mode']),
|
|
138
|
+
'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
|
|
139
|
+
'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function RedirectStageToJSON(value?: RedirectStage | null): any {
|
|
144
|
+
if (value === undefined) {
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
if (value === null) {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'name': value.name,
|
|
153
|
+
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
|
|
154
|
+
'keep_context': value.keepContext,
|
|
155
|
+
'mode': RedirectStageModeEnumToJSON(value.mode),
|
|
156
|
+
'target_static': value.targetStatic,
|
|
157
|
+
'target_flow': value.targetFlow,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
@@ -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.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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const RedirectStageModeEnum = {
|
|
21
|
+
Static: 'static',
|
|
22
|
+
Flow: 'flow',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type RedirectStageModeEnum = typeof RedirectStageModeEnum[keyof typeof RedirectStageModeEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function RedirectStageModeEnumFromJSON(json: any): RedirectStageModeEnum {
|
|
29
|
+
return RedirectStageModeEnumFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function RedirectStageModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStageModeEnum {
|
|
33
|
+
return json as RedirectStageModeEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function RedirectStageModeEnumToJSON(value?: RedirectStageModeEnum | null): any {
|
|
37
|
+
return value as any;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
import type { FlowSetRequest } from './FlowSetRequest';
|
|
17
|
+
import {
|
|
18
|
+
FlowSetRequestFromJSON,
|
|
19
|
+
FlowSetRequestFromJSONTyped,
|
|
20
|
+
FlowSetRequestToJSON,
|
|
21
|
+
} from './FlowSetRequest';
|
|
22
|
+
import type { RedirectStageModeEnum } from './RedirectStageModeEnum';
|
|
23
|
+
import {
|
|
24
|
+
RedirectStageModeEnumFromJSON,
|
|
25
|
+
RedirectStageModeEnumFromJSONTyped,
|
|
26
|
+
RedirectStageModeEnumToJSON,
|
|
27
|
+
} from './RedirectStageModeEnum';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* RedirectStage Serializer
|
|
31
|
+
* @export
|
|
32
|
+
* @interface RedirectStageRequest
|
|
33
|
+
*/
|
|
34
|
+
export interface RedirectStageRequest {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RedirectStageRequest
|
|
39
|
+
*/
|
|
40
|
+
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<FlowSetRequest>}
|
|
44
|
+
* @memberof RedirectStageRequest
|
|
45
|
+
*/
|
|
46
|
+
flowSet?: Array<FlowSetRequest>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof RedirectStageRequest
|
|
51
|
+
*/
|
|
52
|
+
keepContext?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {RedirectStageModeEnum}
|
|
56
|
+
* @memberof RedirectStageRequest
|
|
57
|
+
*/
|
|
58
|
+
mode: RedirectStageModeEnum;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof RedirectStageRequest
|
|
63
|
+
*/
|
|
64
|
+
targetStatic?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof RedirectStageRequest
|
|
69
|
+
*/
|
|
70
|
+
targetFlow?: string | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the RedirectStageRequest interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfRedirectStageRequest(value: object): boolean {
|
|
77
|
+
let isInstance = true;
|
|
78
|
+
isInstance = isInstance && "name" in value;
|
|
79
|
+
isInstance = isInstance && "mode" in value;
|
|
80
|
+
|
|
81
|
+
return isInstance;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function RedirectStageRequestFromJSON(json: any): RedirectStageRequest {
|
|
85
|
+
return RedirectStageRequestFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function RedirectStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStageRequest {
|
|
89
|
+
if ((json === undefined) || (json === null)) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'name': json['name'],
|
|
95
|
+
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
|
96
|
+
'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
|
|
97
|
+
'mode': RedirectStageModeEnumFromJSON(json['mode']),
|
|
98
|
+
'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
|
|
99
|
+
'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function RedirectStageRequestToJSON(value?: RedirectStageRequest | null): any {
|
|
104
|
+
if (value === undefined) {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
if (value === null) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'name': value.name,
|
|
113
|
+
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
|
|
114
|
+
'keep_context': value.keepContext,
|
|
115
|
+
'mode': RedirectStageModeEnumToJSON(value.mode),
|
|
116
|
+
'target_static': value.targetStatic,
|
|
117
|
+
'target_flow': value.targetFlow,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -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
|
}
|