@goauthentik/api 2022.6.2-1654969708 → 2022.6.2-1655288048
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 +1 -0
- package/dist/apis/CoreApi.d.ts +14 -1
- package/dist/apis/CoreApi.js +37 -0
- package/dist/apis/SourcesApi.d.ts +1 -0
- package/dist/apis/SourcesApi.js +3 -0
- package/dist/apis/StagesApi.d.ts +1 -0
- package/dist/apis/StagesApi.js +3 -0
- package/dist/esm/apis/CoreApi.d.ts +14 -1
- package/dist/esm/apis/CoreApi.js +38 -1
- package/dist/esm/apis/SourcesApi.d.ts +1 -0
- package/dist/esm/apis/SourcesApi.js +3 -0
- package/dist/esm/apis/StagesApi.d.ts +1 -0
- package/dist/esm/apis/StagesApi.js +3 -0
- package/dist/esm/models/LDAPSource.d.ts +6 -0
- package/dist/esm/models/LDAPSource.js +2 -0
- package/dist/esm/models/LDAPSourceRequest.d.ts +6 -0
- package/dist/esm/models/LDAPSourceRequest.js +2 -0
- package/dist/esm/models/OAuthSource.d.ts +6 -0
- package/dist/esm/models/OAuthSource.js +2 -0
- package/dist/esm/models/OAuthSourceRequest.d.ts +6 -0
- package/dist/esm/models/OAuthSourceRequest.js +2 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.js +2 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.js +2 -0
- package/dist/esm/models/PatchedPlexSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedPlexSourceRequest.js +2 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -0
- package/dist/esm/models/PatchedUserRequest.d.ts +6 -0
- package/dist/esm/models/PatchedUserRequest.js +2 -0
- package/dist/esm/models/PatchedUserWriteStageRequest.d.ts +6 -0
- package/dist/esm/models/PatchedUserWriteStageRequest.js +2 -0
- package/dist/esm/models/PlexSource.d.ts +6 -0
- package/dist/esm/models/PlexSource.js +2 -0
- package/dist/esm/models/PlexSourceConnectionSource.d.ts +6 -0
- package/dist/esm/models/PlexSourceConnectionSource.js +2 -0
- package/dist/esm/models/PlexSourceRequest.d.ts +6 -0
- package/dist/esm/models/PlexSourceRequest.js +2 -0
- package/dist/esm/models/PolicyBindingUserObj.d.ts +6 -0
- package/dist/esm/models/PolicyBindingUserObj.js +2 -0
- package/dist/esm/models/SAMLSource.d.ts +6 -0
- package/dist/esm/models/SAMLSource.js +2 -0
- package/dist/esm/models/SAMLSourceRequest.d.ts +6 -0
- package/dist/esm/models/SAMLSourceRequest.js +2 -0
- package/dist/esm/models/Source.d.ts +6 -0
- package/dist/esm/models/Source.js +2 -0
- package/dist/esm/models/SourceRequest.d.ts +6 -0
- package/dist/esm/models/SourceRequest.js +2 -0
- package/dist/esm/models/User.d.ts +6 -0
- package/dist/esm/models/User.js +2 -0
- package/dist/esm/models/UserPath.d.ts +27 -0
- package/dist/esm/models/UserPath.js +33 -0
- package/dist/esm/models/UserRequest.d.ts +6 -0
- package/dist/esm/models/UserRequest.js +2 -0
- package/dist/esm/models/UserWriteStage.d.ts +6 -0
- package/dist/esm/models/UserWriteStage.js +2 -0
- package/dist/esm/models/UserWriteStageRequest.d.ts +6 -0
- package/dist/esm/models/UserWriteStageRequest.js +2 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/LDAPSource.d.ts +6 -0
- package/dist/models/LDAPSource.js +2 -0
- package/dist/models/LDAPSourceRequest.d.ts +6 -0
- package/dist/models/LDAPSourceRequest.js +2 -0
- package/dist/models/OAuthSource.d.ts +6 -0
- package/dist/models/OAuthSource.js +2 -0
- package/dist/models/OAuthSourceRequest.d.ts +6 -0
- package/dist/models/OAuthSourceRequest.js +2 -0
- package/dist/models/PatchedLDAPSourceRequest.d.ts +6 -0
- package/dist/models/PatchedLDAPSourceRequest.js +2 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts +6 -0
- package/dist/models/PatchedOAuthSourceRequest.js +2 -0
- package/dist/models/PatchedPlexSourceRequest.d.ts +6 -0
- package/dist/models/PatchedPlexSourceRequest.js +2 -0
- package/dist/models/PatchedSAMLSourceRequest.d.ts +6 -0
- package/dist/models/PatchedSAMLSourceRequest.js +2 -0
- package/dist/models/PatchedUserRequest.d.ts +6 -0
- package/dist/models/PatchedUserRequest.js +2 -0
- package/dist/models/PatchedUserWriteStageRequest.d.ts +6 -0
- package/dist/models/PatchedUserWriteStageRequest.js +2 -0
- package/dist/models/PlexSource.d.ts +6 -0
- package/dist/models/PlexSource.js +2 -0
- package/dist/models/PlexSourceConnectionSource.d.ts +6 -0
- package/dist/models/PlexSourceConnectionSource.js +2 -0
- package/dist/models/PlexSourceRequest.d.ts +6 -0
- package/dist/models/PlexSourceRequest.js +2 -0
- package/dist/models/PolicyBindingUserObj.d.ts +6 -0
- package/dist/models/PolicyBindingUserObj.js +2 -0
- package/dist/models/SAMLSource.d.ts +6 -0
- package/dist/models/SAMLSource.js +2 -0
- package/dist/models/SAMLSourceRequest.d.ts +6 -0
- package/dist/models/SAMLSourceRequest.js +2 -0
- package/dist/models/Source.d.ts +6 -0
- package/dist/models/Source.js +2 -0
- package/dist/models/SourceRequest.d.ts +6 -0
- package/dist/models/SourceRequest.js +2 -0
- package/dist/models/User.d.ts +6 -0
- package/dist/models/User.js +2 -0
- package/dist/models/UserPath.d.ts +27 -0
- package/dist/models/UserPath.js +39 -0
- package/dist/models/UserRequest.d.ts +6 -0
- package/dist/models/UserRequest.js +2 -0
- package/dist/models/UserWriteStage.d.ts +6 -0
- package/dist/models/UserWriteStage.js +2 -0
- package/dist/models/UserWriteStageRequest.d.ts +6 -0
- package/dist/models/UserWriteStageRequest.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +51 -0
- package/src/apis/SourcesApi.ts +5 -0
- package/src/apis/StagesApi.ts +5 -0
- package/src/models/LDAPSource.ts +8 -0
- package/src/models/LDAPSourceRequest.ts +8 -0
- package/src/models/OAuthSource.ts +8 -0
- package/src/models/OAuthSourceRequest.ts +8 -0
- package/src/models/PatchedLDAPSourceRequest.ts +8 -0
- package/src/models/PatchedOAuthSourceRequest.ts +8 -0
- package/src/models/PatchedPlexSourceRequest.ts +8 -0
- package/src/models/PatchedSAMLSourceRequest.ts +8 -0
- package/src/models/PatchedUserRequest.ts +8 -0
- package/src/models/PatchedUserWriteStageRequest.ts +8 -0
- package/src/models/PlexSource.ts +8 -0
- package/src/models/PlexSourceConnectionSource.ts +8 -0
- package/src/models/PlexSourceRequest.ts +8 -0
- package/src/models/PolicyBindingUserObj.ts +8 -0
- package/src/models/SAMLSource.ts +8 -0
- package/src/models/SAMLSourceRequest.ts +8 -0
- package/src/models/Source.ts +8 -0
- package/src/models/SourceRequest.ts +8 -0
- package/src/models/User.ts +8 -0
- package/src/models/UserPath.ts +55 -0
- package/src/models/UserRequest.ts +8 -0
- package/src/models/UserWriteStage.ts +8 -0
- package/src/models/UserWriteStageRequest.ts +8 -0
- package/src/models/index.ts +1 -0
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -342,6 +342,7 @@ export interface SourcesSamlListRequest {
|
|
|
342
342
|
ssoUrl?: string;
|
|
343
343
|
temporaryUserDeleteAfter?: string;
|
|
344
344
|
userMatchingMode?: SourcesSamlListUserMatchingModeEnum;
|
|
345
|
+
userPathTemplate?: string;
|
|
345
346
|
}
|
|
346
347
|
|
|
347
348
|
export interface SourcesSamlMetadataRetrieveRequest {
|
|
@@ -1972,6 +1973,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
|
1972
1973
|
queryParameters['user_matching_mode'] = requestParameters.userMatchingMode;
|
|
1973
1974
|
}
|
|
1974
1975
|
|
|
1976
|
+
if (requestParameters.userPathTemplate !== undefined) {
|
|
1977
|
+
queryParameters['user_path_template'] = requestParameters.userPathTemplate;
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1975
1980
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1976
1981
|
|
|
1977
1982
|
if (this.configuration && this.configuration.apiKey) {
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -1079,6 +1079,7 @@ export interface StagesUserWriteListRequest {
|
|
|
1079
1079
|
pageSize?: number;
|
|
1080
1080
|
search?: string;
|
|
1081
1081
|
stageUuid?: string;
|
|
1082
|
+
userPathTemplate?: string;
|
|
1082
1083
|
}
|
|
1083
1084
|
|
|
1084
1085
|
export interface StagesUserWritePartialUpdateRequest {
|
|
@@ -7122,6 +7123,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
7122
7123
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
7123
7124
|
}
|
|
7124
7125
|
|
|
7126
|
+
if (requestParameters.userPathTemplate !== undefined) {
|
|
7127
|
+
queryParameters['user_path_template'] = requestParameters.userPathTemplate;
|
|
7128
|
+
}
|
|
7129
|
+
|
|
7125
7130
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
7126
7131
|
|
|
7127
7132
|
if (this.configuration && this.configuration.apiKey) {
|
package/src/models/LDAPSource.ts
CHANGED
|
@@ -110,6 +110,12 @@ export interface LDAPSource {
|
|
|
110
110
|
* @memberof LDAPSource
|
|
111
111
|
*/
|
|
112
112
|
readonly managed: string | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof LDAPSource
|
|
117
|
+
*/
|
|
118
|
+
userPathTemplate?: string;
|
|
113
119
|
/**
|
|
114
120
|
*
|
|
115
121
|
* @type {string}
|
|
@@ -237,6 +243,7 @@ export function LDAPSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
237
243
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
238
244
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
239
245
|
'managed': json['managed'],
|
|
246
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
240
247
|
'serverUri': json['server_uri'],
|
|
241
248
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
242
249
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
@@ -273,6 +280,7 @@ export function LDAPSourceToJSON(value?: LDAPSource | null): any {
|
|
|
273
280
|
'enrollment_flow': value.enrollmentFlow,
|
|
274
281
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
275
282
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
283
|
+
'user_path_template': value.userPathTemplate,
|
|
276
284
|
'server_uri': value.serverUri,
|
|
277
285
|
'peer_certificate': value.peerCertificate,
|
|
278
286
|
'bind_cn': value.bindCn,
|
|
@@ -74,6 +74,12 @@ export interface LDAPSourceRequest {
|
|
|
74
74
|
* @memberof LDAPSourceRequest
|
|
75
75
|
*/
|
|
76
76
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof LDAPSourceRequest
|
|
81
|
+
*/
|
|
82
|
+
userPathTemplate?: string;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {string}
|
|
@@ -201,6 +207,7 @@ export function LDAPSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
201
207
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
202
208
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
203
209
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
210
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
204
211
|
'serverUri': json['server_uri'],
|
|
205
212
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
206
213
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
@@ -238,6 +245,7 @@ export function LDAPSourceRequestToJSON(value?: LDAPSourceRequest | null): any {
|
|
|
238
245
|
'enrollment_flow': value.enrollmentFlow,
|
|
239
246
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
240
247
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
248
|
+
'user_path_template': value.userPathTemplate,
|
|
241
249
|
'server_uri': value.serverUri,
|
|
242
250
|
'peer_certificate': value.peerCertificate,
|
|
243
251
|
'bind_cn': value.bindCn,
|
|
@@ -122,6 +122,12 @@ export interface OAuthSource {
|
|
|
122
122
|
* @memberof OAuthSource
|
|
123
123
|
*/
|
|
124
124
|
readonly managed: string | null;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof OAuthSource
|
|
129
|
+
*/
|
|
130
|
+
userPathTemplate?: string;
|
|
125
131
|
/**
|
|
126
132
|
*
|
|
127
133
|
* @type {ProviderTypeEnum}
|
|
@@ -219,6 +225,7 @@ export function OAuthSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
219
225
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
220
226
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
221
227
|
'managed': json['managed'],
|
|
228
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
222
229
|
'providerType': ProviderTypeEnumFromJSON(json['provider_type']),
|
|
223
230
|
'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
|
|
224
231
|
'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
|
|
@@ -250,6 +257,7 @@ export function OAuthSourceToJSON(value?: OAuthSource | null): any {
|
|
|
250
257
|
'enrollment_flow': value.enrollmentFlow,
|
|
251
258
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
252
259
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
260
|
+
'user_path_template': value.userPathTemplate,
|
|
253
261
|
'provider_type': ProviderTypeEnumToJSON(value.providerType),
|
|
254
262
|
'request_token_url': value.requestTokenUrl,
|
|
255
263
|
'authorization_url': value.authorizationUrl,
|
|
@@ -80,6 +80,12 @@ export interface OAuthSourceRequest {
|
|
|
80
80
|
* @memberof OAuthSourceRequest
|
|
81
81
|
*/
|
|
82
82
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof OAuthSourceRequest
|
|
87
|
+
*/
|
|
88
|
+
userPathTemplate?: string;
|
|
83
89
|
/**
|
|
84
90
|
*
|
|
85
91
|
* @type {ProviderTypeEnum}
|
|
@@ -165,6 +171,7 @@ export function OAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
165
171
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
166
172
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
167
173
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
174
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
168
175
|
'providerType': ProviderTypeEnumFromJSON(json['provider_type']),
|
|
169
176
|
'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
|
|
170
177
|
'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
|
|
@@ -195,6 +202,7 @@ export function OAuthSourceRequestToJSON(value?: OAuthSourceRequest | null): any
|
|
|
195
202
|
'enrollment_flow': value.enrollmentFlow,
|
|
196
203
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
197
204
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
205
|
+
'user_path_template': value.userPathTemplate,
|
|
198
206
|
'provider_type': ProviderTypeEnumToJSON(value.providerType),
|
|
199
207
|
'request_token_url': value.requestTokenUrl,
|
|
200
208
|
'authorization_url': value.authorizationUrl,
|
|
@@ -74,6 +74,12 @@ export interface PatchedLDAPSourceRequest {
|
|
|
74
74
|
* @memberof PatchedLDAPSourceRequest
|
|
75
75
|
*/
|
|
76
76
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof PatchedLDAPSourceRequest
|
|
81
|
+
*/
|
|
82
|
+
userPathTemplate?: string;
|
|
77
83
|
/**
|
|
78
84
|
*
|
|
79
85
|
* @type {string}
|
|
@@ -201,6 +207,7 @@ export function PatchedLDAPSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
201
207
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
202
208
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
203
209
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
210
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
204
211
|
'serverUri': !exists(json, 'server_uri') ? undefined : json['server_uri'],
|
|
205
212
|
'peerCertificate': !exists(json, 'peer_certificate') ? undefined : json['peer_certificate'],
|
|
206
213
|
'bindCn': !exists(json, 'bind_cn') ? undefined : json['bind_cn'],
|
|
@@ -238,6 +245,7 @@ export function PatchedLDAPSourceRequestToJSON(value?: PatchedLDAPSourceRequest
|
|
|
238
245
|
'enrollment_flow': value.enrollmentFlow,
|
|
239
246
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
240
247
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
248
|
+
'user_path_template': value.userPathTemplate,
|
|
241
249
|
'server_uri': value.serverUri,
|
|
242
250
|
'peer_certificate': value.peerCertificate,
|
|
243
251
|
'bind_cn': value.bindCn,
|
|
@@ -80,6 +80,12 @@ export interface PatchedOAuthSourceRequest {
|
|
|
80
80
|
* @memberof PatchedOAuthSourceRequest
|
|
81
81
|
*/
|
|
82
82
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof PatchedOAuthSourceRequest
|
|
87
|
+
*/
|
|
88
|
+
userPathTemplate?: string;
|
|
83
89
|
/**
|
|
84
90
|
*
|
|
85
91
|
* @type {ProviderTypeEnum}
|
|
@@ -165,6 +171,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
165
171
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
166
172
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
167
173
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
174
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
168
175
|
'providerType': !exists(json, 'provider_type') ? undefined : ProviderTypeEnumFromJSON(json['provider_type']),
|
|
169
176
|
'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
|
|
170
177
|
'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
|
|
@@ -195,6 +202,7 @@ export function PatchedOAuthSourceRequestToJSON(value?: PatchedOAuthSourceReques
|
|
|
195
202
|
'enrollment_flow': value.enrollmentFlow,
|
|
196
203
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
197
204
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
205
|
+
'user_path_template': value.userPathTemplate,
|
|
198
206
|
'provider_type': ProviderTypeEnumToJSON(value.providerType),
|
|
199
207
|
'request_token_url': value.requestTokenUrl,
|
|
200
208
|
'authorization_url': value.authorizationUrl,
|
|
@@ -74,6 +74,12 @@ export interface PatchedPlexSourceRequest {
|
|
|
74
74
|
* @memberof PatchedPlexSourceRequest
|
|
75
75
|
*/
|
|
76
76
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof PatchedPlexSourceRequest
|
|
81
|
+
*/
|
|
82
|
+
userPathTemplate?: string;
|
|
77
83
|
/**
|
|
78
84
|
* Client identifier used to talk to Plex.
|
|
79
85
|
* @type {string}
|
|
@@ -117,6 +123,7 @@ export function PatchedPlexSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
117
123
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
118
124
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
119
125
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
126
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
120
127
|
'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
|
|
121
128
|
'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
|
122
129
|
'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
|
|
@@ -140,6 +147,7 @@ export function PatchedPlexSourceRequestToJSON(value?: PatchedPlexSourceRequest
|
|
|
140
147
|
'enrollment_flow': value.enrollmentFlow,
|
|
141
148
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
142
149
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
150
|
+
'user_path_template': value.userPathTemplate,
|
|
143
151
|
'client_id': value.clientId,
|
|
144
152
|
'allowed_servers': value.allowedServers,
|
|
145
153
|
'allow_friends': value.allowFriends,
|
|
@@ -98,6 +98,12 @@ export interface PatchedSAMLSourceRequest {
|
|
|
98
98
|
* @memberof PatchedSAMLSourceRequest
|
|
99
99
|
*/
|
|
100
100
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof PatchedSAMLSourceRequest
|
|
105
|
+
*/
|
|
106
|
+
userPathTemplate?: string;
|
|
101
107
|
/**
|
|
102
108
|
* Flow used before authentication.
|
|
103
109
|
* @type {string}
|
|
@@ -183,6 +189,7 @@ export function PatchedSAMLSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
183
189
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
184
190
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
185
191
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
192
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
186
193
|
'preAuthenticationFlow': !exists(json, 'pre_authentication_flow') ? undefined : json['pre_authentication_flow'],
|
|
187
194
|
'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
|
|
188
195
|
'ssoUrl': !exists(json, 'sso_url') ? undefined : json['sso_url'],
|
|
@@ -213,6 +220,7 @@ export function PatchedSAMLSourceRequestToJSON(value?: PatchedSAMLSourceRequest
|
|
|
213
220
|
'enrollment_flow': value.enrollmentFlow,
|
|
214
221
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
215
222
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
223
|
+
'user_path_template': value.userPathTemplate,
|
|
216
224
|
'pre_authentication_flow': value.preAuthenticationFlow,
|
|
217
225
|
'issuer': value.issuer,
|
|
218
226
|
'sso_url': value.ssoUrl,
|
|
@@ -61,6 +61,12 @@ export interface PatchedUserRequest {
|
|
|
61
61
|
* @memberof PatchedUserRequest
|
|
62
62
|
*/
|
|
63
63
|
attributes?: { [key: string]: any; };
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof PatchedUserRequest
|
|
68
|
+
*/
|
|
69
|
+
path?: string;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
export function PatchedUserRequestFromJSON(json: any): PatchedUserRequest {
|
|
@@ -80,6 +86,7 @@ export function PatchedUserRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
80
86
|
'groups': !exists(json, 'groups') ? undefined : json['groups'],
|
|
81
87
|
'email': !exists(json, 'email') ? undefined : json['email'],
|
|
82
88
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
89
|
+
'path': !exists(json, 'path') ? undefined : json['path'],
|
|
83
90
|
};
|
|
84
91
|
}
|
|
85
92
|
|
|
@@ -99,6 +106,7 @@ export function PatchedUserRequestToJSON(value?: PatchedUserRequest | null): any
|
|
|
99
106
|
'groups': value.groups,
|
|
100
107
|
'email': value.email,
|
|
101
108
|
'attributes': value.attributes,
|
|
109
|
+
'path': value.path,
|
|
102
110
|
};
|
|
103
111
|
}
|
|
104
112
|
|
|
@@ -50,6 +50,12 @@ export interface PatchedUserWriteStageRequest {
|
|
|
50
50
|
* @memberof PatchedUserWriteStageRequest
|
|
51
51
|
*/
|
|
52
52
|
createUsersGroup?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PatchedUserWriteStageRequest
|
|
57
|
+
*/
|
|
58
|
+
userPathTemplate?: string;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
export function PatchedUserWriteStageRequestFromJSON(json: any): PatchedUserWriteStageRequest {
|
|
@@ -66,6 +72,7 @@ export function PatchedUserWriteStageRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
66
72
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowRequestFromJSON)),
|
|
67
73
|
'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
|
|
68
74
|
'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
|
|
75
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
69
76
|
};
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -82,6 +89,7 @@ export function PatchedUserWriteStageRequestToJSON(value?: PatchedUserWriteStage
|
|
|
82
89
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowRequestToJSON)),
|
|
83
90
|
'create_users_as_inactive': value.createUsersAsInactive,
|
|
84
91
|
'create_users_group': value.createUsersGroup,
|
|
92
|
+
'user_path_template': value.userPathTemplate,
|
|
85
93
|
};
|
|
86
94
|
}
|
|
87
95
|
|
package/src/models/PlexSource.ts
CHANGED
|
@@ -110,6 +110,12 @@ export interface PlexSource {
|
|
|
110
110
|
* @memberof PlexSource
|
|
111
111
|
*/
|
|
112
112
|
readonly managed: string | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof PlexSource
|
|
117
|
+
*/
|
|
118
|
+
userPathTemplate?: string;
|
|
113
119
|
/**
|
|
114
120
|
* Client identifier used to talk to Plex.
|
|
115
121
|
* @type {string}
|
|
@@ -159,6 +165,7 @@ export function PlexSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
159
165
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
160
166
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
161
167
|
'managed': json['managed'],
|
|
168
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
162
169
|
'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
|
|
163
170
|
'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
|
164
171
|
'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
|
|
@@ -182,6 +189,7 @@ export function PlexSourceToJSON(value?: PlexSource | null): any {
|
|
|
182
189
|
'enrollment_flow': value.enrollmentFlow,
|
|
183
190
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
184
191
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
192
|
+
'user_path_template': value.userPathTemplate,
|
|
185
193
|
'client_id': value.clientId,
|
|
186
194
|
'allowed_servers': value.allowedServers,
|
|
187
195
|
'allow_friends': value.allowFriends,
|
|
@@ -116,6 +116,12 @@ export interface PlexSourceConnectionSource {
|
|
|
116
116
|
* @memberof PlexSourceConnectionSource
|
|
117
117
|
*/
|
|
118
118
|
readonly managed: string | null;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof PlexSourceConnectionSource
|
|
123
|
+
*/
|
|
124
|
+
userPathTemplate?: string;
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
export function PlexSourceConnectionSourceFromJSON(json: any): PlexSourceConnectionSource {
|
|
@@ -141,6 +147,7 @@ export function PlexSourceConnectionSourceFromJSONTyped(json: any, ignoreDiscrim
|
|
|
141
147
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
142
148
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
143
149
|
'managed': json['managed'],
|
|
150
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
144
151
|
};
|
|
145
152
|
}
|
|
146
153
|
|
|
@@ -160,6 +167,7 @@ export function PlexSourceConnectionSourceToJSON(value?: PlexSourceConnectionSou
|
|
|
160
167
|
'enrollment_flow': value.enrollmentFlow,
|
|
161
168
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
162
169
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
170
|
+
'user_path_template': value.userPathTemplate,
|
|
163
171
|
};
|
|
164
172
|
}
|
|
165
173
|
|
|
@@ -74,6 +74,12 @@ export interface PlexSourceRequest {
|
|
|
74
74
|
* @memberof PlexSourceRequest
|
|
75
75
|
*/
|
|
76
76
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof PlexSourceRequest
|
|
81
|
+
*/
|
|
82
|
+
userPathTemplate?: string;
|
|
77
83
|
/**
|
|
78
84
|
* Client identifier used to talk to Plex.
|
|
79
85
|
* @type {string}
|
|
@@ -117,6 +123,7 @@ export function PlexSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
117
123
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
118
124
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
119
125
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
126
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
120
127
|
'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
|
|
121
128
|
'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
|
|
122
129
|
'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
|
|
@@ -140,6 +147,7 @@ export function PlexSourceRequestToJSON(value?: PlexSourceRequest | null): any {
|
|
|
140
147
|
'enrollment_flow': value.enrollmentFlow,
|
|
141
148
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
142
149
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
150
|
+
'user_path_template': value.userPathTemplate,
|
|
143
151
|
'client_id': value.clientId,
|
|
144
152
|
'allowed_servers': value.allowedServers,
|
|
145
153
|
'allow_friends': value.allowFriends,
|
|
@@ -104,6 +104,12 @@ export interface PolicyBindingUserObj {
|
|
|
104
104
|
* @memberof PolicyBindingUserObj
|
|
105
105
|
*/
|
|
106
106
|
readonly uid: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof PolicyBindingUserObj
|
|
111
|
+
*/
|
|
112
|
+
path?: string;
|
|
107
113
|
}
|
|
108
114
|
|
|
109
115
|
export function PolicyBindingUserObjFromJSON(json: any): PolicyBindingUserObj {
|
|
@@ -128,6 +134,7 @@ export function PolicyBindingUserObjFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
128
134
|
'avatar': json['avatar'],
|
|
129
135
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
130
136
|
'uid': json['uid'],
|
|
137
|
+
'path': !exists(json, 'path') ? undefined : json['path'],
|
|
131
138
|
};
|
|
132
139
|
}
|
|
133
140
|
|
|
@@ -147,6 +154,7 @@ export function PolicyBindingUserObjToJSON(value?: PolicyBindingUserObj | null):
|
|
|
147
154
|
'groups': value.groups,
|
|
148
155
|
'email': value.email,
|
|
149
156
|
'attributes': value.attributes,
|
|
157
|
+
'path': value.path,
|
|
150
158
|
};
|
|
151
159
|
}
|
|
152
160
|
|
package/src/models/SAMLSource.ts
CHANGED
|
@@ -134,6 +134,12 @@ export interface SAMLSource {
|
|
|
134
134
|
* @memberof SAMLSource
|
|
135
135
|
*/
|
|
136
136
|
readonly managed: string | null;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof SAMLSource
|
|
141
|
+
*/
|
|
142
|
+
userPathTemplate?: string;
|
|
137
143
|
/**
|
|
138
144
|
* Flow used before authentication.
|
|
139
145
|
* @type {string}
|
|
@@ -225,6 +231,7 @@ export function SAMLSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
225
231
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
226
232
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
227
233
|
'managed': json['managed'],
|
|
234
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
228
235
|
'preAuthenticationFlow': json['pre_authentication_flow'],
|
|
229
236
|
'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
|
|
230
237
|
'ssoUrl': json['sso_url'],
|
|
@@ -255,6 +262,7 @@ export function SAMLSourceToJSON(value?: SAMLSource | null): any {
|
|
|
255
262
|
'enrollment_flow': value.enrollmentFlow,
|
|
256
263
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
257
264
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
265
|
+
'user_path_template': value.userPathTemplate,
|
|
258
266
|
'pre_authentication_flow': value.preAuthenticationFlow,
|
|
259
267
|
'issuer': value.issuer,
|
|
260
268
|
'sso_url': value.ssoUrl,
|
|
@@ -98,6 +98,12 @@ export interface SAMLSourceRequest {
|
|
|
98
98
|
* @memberof SAMLSourceRequest
|
|
99
99
|
*/
|
|
100
100
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof SAMLSourceRequest
|
|
105
|
+
*/
|
|
106
|
+
userPathTemplate?: string;
|
|
101
107
|
/**
|
|
102
108
|
* Flow used before authentication.
|
|
103
109
|
* @type {string}
|
|
@@ -183,6 +189,7 @@ export function SAMLSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
183
189
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
184
190
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
185
191
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
192
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
186
193
|
'preAuthenticationFlow': json['pre_authentication_flow'],
|
|
187
194
|
'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
|
|
188
195
|
'ssoUrl': json['sso_url'],
|
|
@@ -213,6 +220,7 @@ export function SAMLSourceRequestToJSON(value?: SAMLSourceRequest | null): any {
|
|
|
213
220
|
'enrollment_flow': value.enrollmentFlow,
|
|
214
221
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
215
222
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
223
|
+
'user_path_template': value.userPathTemplate,
|
|
216
224
|
'pre_authentication_flow': value.preAuthenticationFlow,
|
|
217
225
|
'issuer': value.issuer,
|
|
218
226
|
'sso_url': value.ssoUrl,
|
package/src/models/Source.ts
CHANGED
|
@@ -110,6 +110,12 @@ export interface Source {
|
|
|
110
110
|
* @memberof Source
|
|
111
111
|
*/
|
|
112
112
|
readonly managed: string | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof Source
|
|
117
|
+
*/
|
|
118
|
+
userPathTemplate?: string;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
export function SourceFromJSON(json: any): Source {
|
|
@@ -135,6 +141,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
135
141
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
136
142
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
137
143
|
'managed': json['managed'],
|
|
144
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
138
145
|
};
|
|
139
146
|
}
|
|
140
147
|
|
|
@@ -154,6 +161,7 @@ export function SourceToJSON(value?: Source | null): any {
|
|
|
154
161
|
'enrollment_flow': value.enrollmentFlow,
|
|
155
162
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
156
163
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
164
|
+
'user_path_template': value.userPathTemplate,
|
|
157
165
|
};
|
|
158
166
|
}
|
|
159
167
|
|
|
@@ -74,6 +74,12 @@ export interface SourceRequest {
|
|
|
74
74
|
* @memberof SourceRequest
|
|
75
75
|
*/
|
|
76
76
|
userMatchingMode?: UserMatchingModeEnum | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof SourceRequest
|
|
81
|
+
*/
|
|
82
|
+
userPathTemplate?: string;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
export function SourceRequestFromJSON(json: any): SourceRequest {
|
|
@@ -93,6 +99,7 @@ export function SourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
93
99
|
'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
|
|
94
100
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
|
95
101
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
|
102
|
+
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
|
96
103
|
};
|
|
97
104
|
}
|
|
98
105
|
|
|
@@ -112,6 +119,7 @@ export function SourceRequestToJSON(value?: SourceRequest | null): any {
|
|
|
112
119
|
'enrollment_flow': value.enrollmentFlow,
|
|
113
120
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
|
114
121
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
|
122
|
+
'user_path_template': value.userPathTemplate,
|
|
115
123
|
};
|
|
116
124
|
}
|
|
117
125
|
|
package/src/models/User.ts
CHANGED
|
@@ -98,6 +98,12 @@ export interface User {
|
|
|
98
98
|
* @memberof User
|
|
99
99
|
*/
|
|
100
100
|
readonly uid: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof User
|
|
105
|
+
*/
|
|
106
|
+
path?: string;
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
export function UserFromJSON(json: any): User {
|
|
@@ -122,6 +128,7 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
|
|
|
122
128
|
'avatar': json['avatar'],
|
|
123
129
|
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
|
124
130
|
'uid': json['uid'],
|
|
131
|
+
'path': !exists(json, 'path') ? undefined : json['path'],
|
|
125
132
|
};
|
|
126
133
|
}
|
|
127
134
|
|
|
@@ -141,6 +148,7 @@ export function UserToJSON(value?: User | null): any {
|
|
|
141
148
|
'groups': value.groups,
|
|
142
149
|
'email': value.email,
|
|
143
150
|
'attributes': value.attributes,
|
|
151
|
+
'path': value.path,
|
|
144
152
|
};
|
|
145
153
|
}
|
|
146
154
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.6.2
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserPath
|
|
20
|
+
*/
|
|
21
|
+
export interface UserPath {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof UserPath
|
|
26
|
+
*/
|
|
27
|
+
readonly paths: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function UserPathFromJSON(json: any): UserPath {
|
|
31
|
+
return UserPathFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function UserPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPath {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'paths': json['paths'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function UserPathToJSON(value?: UserPath | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|