@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.
Files changed (137) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/CoreApi.d.ts +14 -1
  3. package/dist/apis/CoreApi.js +37 -0
  4. package/dist/apis/SourcesApi.d.ts +1 -0
  5. package/dist/apis/SourcesApi.js +3 -0
  6. package/dist/apis/StagesApi.d.ts +1 -0
  7. package/dist/apis/StagesApi.js +3 -0
  8. package/dist/esm/apis/CoreApi.d.ts +14 -1
  9. package/dist/esm/apis/CoreApi.js +38 -1
  10. package/dist/esm/apis/SourcesApi.d.ts +1 -0
  11. package/dist/esm/apis/SourcesApi.js +3 -0
  12. package/dist/esm/apis/StagesApi.d.ts +1 -0
  13. package/dist/esm/apis/StagesApi.js +3 -0
  14. package/dist/esm/models/LDAPSource.d.ts +6 -0
  15. package/dist/esm/models/LDAPSource.js +2 -0
  16. package/dist/esm/models/LDAPSourceRequest.d.ts +6 -0
  17. package/dist/esm/models/LDAPSourceRequest.js +2 -0
  18. package/dist/esm/models/OAuthSource.d.ts +6 -0
  19. package/dist/esm/models/OAuthSource.js +2 -0
  20. package/dist/esm/models/OAuthSourceRequest.d.ts +6 -0
  21. package/dist/esm/models/OAuthSourceRequest.js +2 -0
  22. package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +6 -0
  23. package/dist/esm/models/PatchedLDAPSourceRequest.js +2 -0
  24. package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +6 -0
  25. package/dist/esm/models/PatchedOAuthSourceRequest.js +2 -0
  26. package/dist/esm/models/PatchedPlexSourceRequest.d.ts +6 -0
  27. package/dist/esm/models/PatchedPlexSourceRequest.js +2 -0
  28. package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +6 -0
  29. package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -0
  30. package/dist/esm/models/PatchedUserRequest.d.ts +6 -0
  31. package/dist/esm/models/PatchedUserRequest.js +2 -0
  32. package/dist/esm/models/PatchedUserWriteStageRequest.d.ts +6 -0
  33. package/dist/esm/models/PatchedUserWriteStageRequest.js +2 -0
  34. package/dist/esm/models/PlexSource.d.ts +6 -0
  35. package/dist/esm/models/PlexSource.js +2 -0
  36. package/dist/esm/models/PlexSourceConnectionSource.d.ts +6 -0
  37. package/dist/esm/models/PlexSourceConnectionSource.js +2 -0
  38. package/dist/esm/models/PlexSourceRequest.d.ts +6 -0
  39. package/dist/esm/models/PlexSourceRequest.js +2 -0
  40. package/dist/esm/models/PolicyBindingUserObj.d.ts +6 -0
  41. package/dist/esm/models/PolicyBindingUserObj.js +2 -0
  42. package/dist/esm/models/SAMLSource.d.ts +6 -0
  43. package/dist/esm/models/SAMLSource.js +2 -0
  44. package/dist/esm/models/SAMLSourceRequest.d.ts +6 -0
  45. package/dist/esm/models/SAMLSourceRequest.js +2 -0
  46. package/dist/esm/models/Source.d.ts +6 -0
  47. package/dist/esm/models/Source.js +2 -0
  48. package/dist/esm/models/SourceRequest.d.ts +6 -0
  49. package/dist/esm/models/SourceRequest.js +2 -0
  50. package/dist/esm/models/User.d.ts +6 -0
  51. package/dist/esm/models/User.js +2 -0
  52. package/dist/esm/models/UserPath.d.ts +27 -0
  53. package/dist/esm/models/UserPath.js +33 -0
  54. package/dist/esm/models/UserRequest.d.ts +6 -0
  55. package/dist/esm/models/UserRequest.js +2 -0
  56. package/dist/esm/models/UserWriteStage.d.ts +6 -0
  57. package/dist/esm/models/UserWriteStage.js +2 -0
  58. package/dist/esm/models/UserWriteStageRequest.d.ts +6 -0
  59. package/dist/esm/models/UserWriteStageRequest.js +2 -0
  60. package/dist/esm/models/index.d.ts +1 -0
  61. package/dist/esm/models/index.js +1 -0
  62. package/dist/models/LDAPSource.d.ts +6 -0
  63. package/dist/models/LDAPSource.js +2 -0
  64. package/dist/models/LDAPSourceRequest.d.ts +6 -0
  65. package/dist/models/LDAPSourceRequest.js +2 -0
  66. package/dist/models/OAuthSource.d.ts +6 -0
  67. package/dist/models/OAuthSource.js +2 -0
  68. package/dist/models/OAuthSourceRequest.d.ts +6 -0
  69. package/dist/models/OAuthSourceRequest.js +2 -0
  70. package/dist/models/PatchedLDAPSourceRequest.d.ts +6 -0
  71. package/dist/models/PatchedLDAPSourceRequest.js +2 -0
  72. package/dist/models/PatchedOAuthSourceRequest.d.ts +6 -0
  73. package/dist/models/PatchedOAuthSourceRequest.js +2 -0
  74. package/dist/models/PatchedPlexSourceRequest.d.ts +6 -0
  75. package/dist/models/PatchedPlexSourceRequest.js +2 -0
  76. package/dist/models/PatchedSAMLSourceRequest.d.ts +6 -0
  77. package/dist/models/PatchedSAMLSourceRequest.js +2 -0
  78. package/dist/models/PatchedUserRequest.d.ts +6 -0
  79. package/dist/models/PatchedUserRequest.js +2 -0
  80. package/dist/models/PatchedUserWriteStageRequest.d.ts +6 -0
  81. package/dist/models/PatchedUserWriteStageRequest.js +2 -0
  82. package/dist/models/PlexSource.d.ts +6 -0
  83. package/dist/models/PlexSource.js +2 -0
  84. package/dist/models/PlexSourceConnectionSource.d.ts +6 -0
  85. package/dist/models/PlexSourceConnectionSource.js +2 -0
  86. package/dist/models/PlexSourceRequest.d.ts +6 -0
  87. package/dist/models/PlexSourceRequest.js +2 -0
  88. package/dist/models/PolicyBindingUserObj.d.ts +6 -0
  89. package/dist/models/PolicyBindingUserObj.js +2 -0
  90. package/dist/models/SAMLSource.d.ts +6 -0
  91. package/dist/models/SAMLSource.js +2 -0
  92. package/dist/models/SAMLSourceRequest.d.ts +6 -0
  93. package/dist/models/SAMLSourceRequest.js +2 -0
  94. package/dist/models/Source.d.ts +6 -0
  95. package/dist/models/Source.js +2 -0
  96. package/dist/models/SourceRequest.d.ts +6 -0
  97. package/dist/models/SourceRequest.js +2 -0
  98. package/dist/models/User.d.ts +6 -0
  99. package/dist/models/User.js +2 -0
  100. package/dist/models/UserPath.d.ts +27 -0
  101. package/dist/models/UserPath.js +39 -0
  102. package/dist/models/UserRequest.d.ts +6 -0
  103. package/dist/models/UserRequest.js +2 -0
  104. package/dist/models/UserWriteStage.d.ts +6 -0
  105. package/dist/models/UserWriteStage.js +2 -0
  106. package/dist/models/UserWriteStageRequest.d.ts +6 -0
  107. package/dist/models/UserWriteStageRequest.js +2 -0
  108. package/dist/models/index.d.ts +1 -0
  109. package/dist/models/index.js +1 -0
  110. package/package.json +1 -1
  111. package/src/apis/CoreApi.ts +51 -0
  112. package/src/apis/SourcesApi.ts +5 -0
  113. package/src/apis/StagesApi.ts +5 -0
  114. package/src/models/LDAPSource.ts +8 -0
  115. package/src/models/LDAPSourceRequest.ts +8 -0
  116. package/src/models/OAuthSource.ts +8 -0
  117. package/src/models/OAuthSourceRequest.ts +8 -0
  118. package/src/models/PatchedLDAPSourceRequest.ts +8 -0
  119. package/src/models/PatchedOAuthSourceRequest.ts +8 -0
  120. package/src/models/PatchedPlexSourceRequest.ts +8 -0
  121. package/src/models/PatchedSAMLSourceRequest.ts +8 -0
  122. package/src/models/PatchedUserRequest.ts +8 -0
  123. package/src/models/PatchedUserWriteStageRequest.ts +8 -0
  124. package/src/models/PlexSource.ts +8 -0
  125. package/src/models/PlexSourceConnectionSource.ts +8 -0
  126. package/src/models/PlexSourceRequest.ts +8 -0
  127. package/src/models/PolicyBindingUserObj.ts +8 -0
  128. package/src/models/SAMLSource.ts +8 -0
  129. package/src/models/SAMLSourceRequest.ts +8 -0
  130. package/src/models/Source.ts +8 -0
  131. package/src/models/SourceRequest.ts +8 -0
  132. package/src/models/User.ts +8 -0
  133. package/src/models/UserPath.ts +55 -0
  134. package/src/models/UserRequest.ts +8 -0
  135. package/src/models/UserWriteStage.ts +8 -0
  136. package/src/models/UserWriteStageRequest.ts +8 -0
  137. package/src/models/index.ts +1 -0
@@ -95,6 +95,12 @@ export interface PlexSourceConnectionSource {
95
95
  * @memberof PlexSourceConnectionSource
96
96
  */
97
97
  readonly managed: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof PlexSourceConnectionSource
102
+ */
103
+ userPathTemplate?: string;
98
104
  }
99
105
  export declare function PlexSourceConnectionSourceFromJSON(json: any): PlexSourceConnectionSource;
100
106
  export declare function PlexSourceConnectionSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexSourceConnectionSource;
@@ -35,6 +35,7 @@ export function PlexSourceConnectionSourceFromJSONTyped(json, ignoreDiscriminato
35
35
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
36
36
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
37
37
  'managed': json['managed'],
38
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
38
39
  };
39
40
  }
40
41
  export function PlexSourceConnectionSourceToJSON(value) {
@@ -52,5 +53,6 @@ export function PlexSourceConnectionSourceToJSON(value) {
52
53
  'enrollment_flow': value.enrollmentFlow,
53
54
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
54
55
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
56
+ 'user_path_template': value.userPathTemplate,
55
57
  };
56
58
  }
@@ -59,6 +59,12 @@ export interface PlexSourceRequest {
59
59
  * @memberof PlexSourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PlexSourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  /**
63
69
  * Client identifier used to talk to Plex.
64
70
  * @type {string}
@@ -29,6 +29,7 @@ export function PlexSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
30
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
31
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
32
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
32
33
  'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],
33
34
  'allowedServers': !exists(json, 'allowed_servers') ? undefined : json['allowed_servers'],
34
35
  'allowFriends': !exists(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -50,6 +51,7 @@ export function PlexSourceRequestToJSON(value) {
50
51
  'enrollment_flow': value.enrollmentFlow,
51
52
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
52
53
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
54
+ 'user_path_template': value.userPathTemplate,
53
55
  'client_id': value.clientId,
54
56
  'allowed_servers': value.allowedServers,
55
57
  'allow_friends': value.allowFriends,
@@ -90,6 +90,12 @@ export interface PolicyBindingUserObj {
90
90
  * @memberof PolicyBindingUserObj
91
91
  */
92
92
  readonly uid: string;
93
+ /**
94
+ *
95
+ * @type {string}
96
+ * @memberof PolicyBindingUserObj
97
+ */
98
+ path?: string;
93
99
  }
94
100
  export declare function PolicyBindingUserObjFromJSON(json: any): PolicyBindingUserObj;
95
101
  export declare function PolicyBindingUserObjFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyBindingUserObj;
@@ -33,6 +33,7 @@ export function PolicyBindingUserObjFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'avatar': json['avatar'],
34
34
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
35
35
  'uid': json['uid'],
36
+ 'path': !exists(json, 'path') ? undefined : json['path'],
36
37
  };
37
38
  }
38
39
  export function PolicyBindingUserObjToJSON(value) {
@@ -50,5 +51,6 @@ export function PolicyBindingUserObjToJSON(value) {
50
51
  'groups': value.groups,
51
52
  'email': value.email,
52
53
  'attributes': value.attributes,
54
+ 'path': value.path,
53
55
  };
54
56
  }
@@ -99,6 +99,12 @@ export interface SAMLSource {
99
99
  * @memberof SAMLSource
100
100
  */
101
101
  readonly managed: string | null;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof SAMLSource
106
+ */
107
+ userPathTemplate?: string;
102
108
  /**
103
109
  * Flow used before authentication.
104
110
  * @type {string}
@@ -39,6 +39,7 @@ export function SAMLSourceFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
40
40
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
41
41
  'managed': json['managed'],
42
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
42
43
  'preAuthenticationFlow': json['pre_authentication_flow'],
43
44
  'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
44
45
  'ssoUrl': json['sso_url'],
@@ -67,6 +68,7 @@ export function SAMLSourceToJSON(value) {
67
68
  'enrollment_flow': value.enrollmentFlow,
68
69
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
69
70
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
71
+ 'user_path_template': value.userPathTemplate,
70
72
  'pre_authentication_flow': value.preAuthenticationFlow,
71
73
  'issuer': value.issuer,
72
74
  'sso_url': value.ssoUrl,
@@ -63,6 +63,12 @@ export interface SAMLSourceRequest {
63
63
  * @memberof SAMLSourceRequest
64
64
  */
65
65
  userMatchingMode?: UserMatchingModeEnum | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof SAMLSourceRequest
70
+ */
71
+ userPathTemplate?: string;
66
72
  /**
67
73
  * Flow used before authentication.
68
74
  * @type {string}
@@ -33,6 +33,7 @@ export function SAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
34
34
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
35
35
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
36
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
36
37
  'preAuthenticationFlow': json['pre_authentication_flow'],
37
38
  'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
38
39
  'ssoUrl': json['sso_url'],
@@ -61,6 +62,7 @@ export function SAMLSourceRequestToJSON(value) {
61
62
  'enrollment_flow': value.enrollmentFlow,
62
63
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
63
64
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
65
+ 'user_path_template': value.userPathTemplate,
64
66
  'pre_authentication_flow': value.preAuthenticationFlow,
65
67
  'issuer': value.issuer,
66
68
  'sso_url': value.ssoUrl,
@@ -95,6 +95,12 @@ export interface Source {
95
95
  * @memberof Source
96
96
  */
97
97
  readonly managed: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof Source
102
+ */
103
+ userPathTemplate?: string;
98
104
  }
99
105
  export declare function SourceFromJSON(json: any): Source;
100
106
  export declare function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Source;
@@ -35,6 +35,7 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
36
36
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
37
37
  'managed': json['managed'],
38
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
38
39
  };
39
40
  }
40
41
  export function SourceToJSON(value) {
@@ -52,5 +53,6 @@ export function SourceToJSON(value) {
52
53
  'enrollment_flow': value.enrollmentFlow,
53
54
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
54
55
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
56
+ 'user_path_template': value.userPathTemplate,
55
57
  };
56
58
  }
@@ -59,6 +59,12 @@ export interface SourceRequest {
59
59
  * @memberof SourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof SourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  }
63
69
  export declare function SourceRequestFromJSON(json: any): SourceRequest;
64
70
  export declare function SourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceRequest;
@@ -29,6 +29,7 @@ export function SourceRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'enrollmentFlow': !exists(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
30
30
  'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
31
31
  'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
32
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
32
33
  };
33
34
  }
34
35
  export function SourceRequestToJSON(value) {
@@ -46,5 +47,6 @@ export function SourceRequestToJSON(value) {
46
47
  'enrollment_flow': value.enrollmentFlow,
47
48
  'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
48
49
  'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
50
+ 'user_path_template': value.userPathTemplate,
49
51
  };
50
52
  }
@@ -90,6 +90,12 @@ export interface User {
90
90
  * @memberof User
91
91
  */
92
92
  readonly uid: string;
93
+ /**
94
+ *
95
+ * @type {string}
96
+ * @memberof User
97
+ */
98
+ path?: string;
93
99
  }
94
100
  export declare function UserFromJSON(json: any): User;
95
101
  export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
@@ -33,6 +33,7 @@ export function UserFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'avatar': json['avatar'],
34
34
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
35
35
  'uid': json['uid'],
36
+ 'path': !exists(json, 'path') ? undefined : json['path'],
36
37
  };
37
38
  }
38
39
  export function UserToJSON(value) {
@@ -50,5 +51,6 @@ export function UserToJSON(value) {
50
51
  'groups': value.groups,
51
52
  'email': value.email,
52
53
  'attributes': value.attributes,
54
+ 'path': value.path,
53
55
  };
54
56
  }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.6.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UserPath
16
+ */
17
+ export interface UserPath {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof UserPath
22
+ */
23
+ readonly paths: Array<string>;
24
+ }
25
+ export declare function UserPathFromJSON(json: any): UserPath;
26
+ export declare function UserPathFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPath;
27
+ export declare function UserPathToJSON(value?: UserPath | null): any;
@@ -0,0 +1,33 @@
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
+ export function UserPathFromJSON(json) {
15
+ return UserPathFromJSONTyped(json, false);
16
+ }
17
+ export function UserPathFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'paths': json['paths'],
23
+ };
24
+ }
25
+ export function UserPathToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {};
33
+ }
@@ -59,6 +59,12 @@ export interface UserRequest {
59
59
  attributes?: {
60
60
  [key: string]: any;
61
61
  };
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof UserRequest
66
+ */
67
+ path?: string;
62
68
  }
63
69
  export declare function UserRequestFromJSON(json: any): UserRequest;
64
70
  export declare function UserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRequest;
@@ -27,6 +27,7 @@ export function UserRequestFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'groups': json['groups'],
28
28
  'email': !exists(json, 'email') ? undefined : json['email'],
29
29
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
30
+ 'path': !exists(json, 'path') ? undefined : json['path'],
30
31
  };
31
32
  }
32
33
  export function UserRequestToJSON(value) {
@@ -44,5 +45,6 @@ export function UserRequestToJSON(value) {
44
45
  'groups': value.groups,
45
46
  'email': value.email,
46
47
  'attributes': value.attributes,
48
+ 'path': value.path,
47
49
  };
48
50
  }
@@ -70,6 +70,12 @@ export interface UserWriteStage {
70
70
  * @memberof UserWriteStage
71
71
  */
72
72
  createUsersGroup?: string | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof UserWriteStage
77
+ */
78
+ userPathTemplate?: string;
73
79
  }
74
80
  export declare function UserWriteStageFromJSON(json: any): UserWriteStage;
75
81
  export declare function UserWriteStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserWriteStage;
@@ -30,6 +30,7 @@ export function UserWriteStageFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowFromJSON)),
31
31
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
32
32
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
33
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
33
34
  };
34
35
  }
35
36
  export function UserWriteStageToJSON(value) {
@@ -44,5 +45,6 @@ export function UserWriteStageToJSON(value) {
44
45
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowToJSON)),
45
46
  'create_users_as_inactive': value.createUsersAsInactive,
46
47
  'create_users_group': value.createUsersGroup,
48
+ 'user_path_template': value.userPathTemplate,
47
49
  };
48
50
  }
@@ -40,6 +40,12 @@ export interface UserWriteStageRequest {
40
40
  * @memberof UserWriteStageRequest
41
41
  */
42
42
  createUsersGroup?: string | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof UserWriteStageRequest
47
+ */
48
+ userPathTemplate?: string;
43
49
  }
44
50
  export declare function UserWriteStageRequestFromJSON(json: any): UserWriteStageRequest;
45
51
  export declare function UserWriteStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserWriteStageRequest;
@@ -25,6 +25,7 @@ export function UserWriteStageRequestFromJSONTyped(json, ignoreDiscriminator) {
25
25
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequestFromJSON)),
26
26
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
27
27
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
28
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
28
29
  };
29
30
  }
30
31
  export function UserWriteStageRequestToJSON(value) {
@@ -39,5 +40,6 @@ export function UserWriteStageRequestToJSON(value) {
39
40
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequestToJSON)),
40
41
  'create_users_as_inactive': value.createUsersAsInactive,
41
42
  'create_users_group': value.createUsersGroup,
43
+ 'user_path_template': value.userPathTemplate,
42
44
  };
43
45
  }
@@ -421,6 +421,7 @@ export * from './UserMetrics';
421
421
  export * from './UserOAuthSourceConnection';
422
422
  export * from './UserOAuthSourceConnectionRequest';
423
423
  export * from './UserPasswordSetRequest';
424
+ export * from './UserPath';
424
425
  export * from './UserRequest';
425
426
  export * from './UserSelf';
426
427
  export * from './UserSelfGroups';
@@ -423,6 +423,7 @@ export * from './UserMetrics';
423
423
  export * from './UserOAuthSourceConnection';
424
424
  export * from './UserOAuthSourceConnectionRequest';
425
425
  export * from './UserPasswordSetRequest';
426
+ export * from './UserPath';
426
427
  export * from './UserRequest';
427
428
  export * from './UserSelf';
428
429
  export * from './UserSelfGroups';
@@ -95,6 +95,12 @@ export interface LDAPSource {
95
95
  * @memberof LDAPSource
96
96
  */
97
97
  readonly managed: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof LDAPSource
102
+ */
103
+ userPathTemplate?: string;
98
104
  /**
99
105
  *
100
106
  * @type {string}
@@ -39,6 +39,7 @@ function LDAPSourceFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
40
40
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
41
41
  'managed': json['managed'],
42
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
42
43
  'serverUri': json['server_uri'],
43
44
  'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
44
45
  'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
@@ -74,6 +75,7 @@ function LDAPSourceToJSON(value) {
74
75
  'enrollment_flow': value.enrollmentFlow,
75
76
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
76
77
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
78
+ 'user_path_template': value.userPathTemplate,
77
79
  'server_uri': value.serverUri,
78
80
  'peer_certificate': value.peerCertificate,
79
81
  'bind_cn': value.bindCn,
@@ -59,6 +59,12 @@ export interface LDAPSourceRequest {
59
59
  * @memberof LDAPSourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof LDAPSourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  /**
63
69
  *
64
70
  * @type {string}
@@ -33,6 +33,7 @@ function LDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
34
34
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
35
35
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
36
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
36
37
  'serverUri': json['server_uri'],
37
38
  'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
38
39
  'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
@@ -69,6 +70,7 @@ function LDAPSourceRequestToJSON(value) {
69
70
  'enrollment_flow': value.enrollmentFlow,
70
71
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
71
72
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
73
+ 'user_path_template': value.userPathTemplate,
72
74
  'server_uri': value.serverUri,
73
75
  'peer_certificate': value.peerCertificate,
74
76
  'bind_cn': value.bindCn,
@@ -97,6 +97,12 @@ export interface OAuthSource {
97
97
  * @memberof OAuthSource
98
98
  */
99
99
  readonly managed: string | null;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof OAuthSource
104
+ */
105
+ userPathTemplate?: string;
100
106
  /**
101
107
  *
102
108
  * @type {ProviderTypeEnum}
@@ -41,6 +41,7 @@ function OAuthSourceFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
42
42
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
43
43
  'managed': json['managed'],
44
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
44
45
  'providerType': (0, ProviderTypeEnum_1.ProviderTypeEnumFromJSON)(json['provider_type']),
45
46
  'requestTokenUrl': !(0, runtime_1.exists)(json, 'request_token_url') ? undefined : json['request_token_url'],
46
47
  'authorizationUrl': !(0, runtime_1.exists)(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -71,6 +72,7 @@ function OAuthSourceToJSON(value) {
71
72
  'enrollment_flow': value.enrollmentFlow,
72
73
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
73
74
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
75
+ 'user_path_template': value.userPathTemplate,
74
76
  'provider_type': (0, ProviderTypeEnum_1.ProviderTypeEnumToJSON)(value.providerType),
75
77
  'request_token_url': value.requestTokenUrl,
76
78
  'authorization_url': value.authorizationUrl,
@@ -60,6 +60,12 @@ export interface OAuthSourceRequest {
60
60
  * @memberof OAuthSourceRequest
61
61
  */
62
62
  userMatchingMode?: UserMatchingModeEnum | null;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof OAuthSourceRequest
67
+ */
68
+ userPathTemplate?: string;
63
69
  /**
64
70
  *
65
71
  * @type {ProviderTypeEnum}
@@ -34,6 +34,7 @@ function OAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
35
35
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
36
36
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
37
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
37
38
  'providerType': (0, ProviderTypeEnum_1.ProviderTypeEnumFromJSON)(json['provider_type']),
38
39
  'requestTokenUrl': !(0, runtime_1.exists)(json, 'request_token_url') ? undefined : json['request_token_url'],
39
40
  'authorizationUrl': !(0, runtime_1.exists)(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -63,6 +64,7 @@ function OAuthSourceRequestToJSON(value) {
63
64
  'enrollment_flow': value.enrollmentFlow,
64
65
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
65
66
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
67
+ 'user_path_template': value.userPathTemplate,
66
68
  'provider_type': (0, ProviderTypeEnum_1.ProviderTypeEnumToJSON)(value.providerType),
67
69
  'request_token_url': value.requestTokenUrl,
68
70
  'authorization_url': value.authorizationUrl,
@@ -59,6 +59,12 @@ export interface PatchedLDAPSourceRequest {
59
59
  * @memberof PatchedLDAPSourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PatchedLDAPSourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  /**
63
69
  *
64
70
  * @type {string}
@@ -33,6 +33,7 @@ function PatchedLDAPSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
34
34
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
35
35
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
36
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
36
37
  'serverUri': !(0, runtime_1.exists)(json, 'server_uri') ? undefined : json['server_uri'],
37
38
  'peerCertificate': !(0, runtime_1.exists)(json, 'peer_certificate') ? undefined : json['peer_certificate'],
38
39
  'bindCn': !(0, runtime_1.exists)(json, 'bind_cn') ? undefined : json['bind_cn'],
@@ -69,6 +70,7 @@ function PatchedLDAPSourceRequestToJSON(value) {
69
70
  'enrollment_flow': value.enrollmentFlow,
70
71
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
71
72
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
73
+ 'user_path_template': value.userPathTemplate,
72
74
  'server_uri': value.serverUri,
73
75
  'peer_certificate': value.peerCertificate,
74
76
  'bind_cn': value.bindCn,
@@ -60,6 +60,12 @@ export interface PatchedOAuthSourceRequest {
60
60
  * @memberof PatchedOAuthSourceRequest
61
61
  */
62
62
  userMatchingMode?: UserMatchingModeEnum | null;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof PatchedOAuthSourceRequest
67
+ */
68
+ userPathTemplate?: string;
63
69
  /**
64
70
  *
65
71
  * @type {ProviderTypeEnum}
@@ -34,6 +34,7 @@ function PatchedOAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
35
35
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
36
36
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
37
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
37
38
  'providerType': !(0, runtime_1.exists)(json, 'provider_type') ? undefined : (0, ProviderTypeEnum_1.ProviderTypeEnumFromJSON)(json['provider_type']),
38
39
  'requestTokenUrl': !(0, runtime_1.exists)(json, 'request_token_url') ? undefined : json['request_token_url'],
39
40
  'authorizationUrl': !(0, runtime_1.exists)(json, 'authorization_url') ? undefined : json['authorization_url'],
@@ -63,6 +64,7 @@ function PatchedOAuthSourceRequestToJSON(value) {
63
64
  'enrollment_flow': value.enrollmentFlow,
64
65
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
65
66
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
67
+ 'user_path_template': value.userPathTemplate,
66
68
  'provider_type': (0, ProviderTypeEnum_1.ProviderTypeEnumToJSON)(value.providerType),
67
69
  'request_token_url': value.requestTokenUrl,
68
70
  'authorization_url': value.authorizationUrl,
@@ -59,6 +59,12 @@ export interface PatchedPlexSourceRequest {
59
59
  * @memberof PatchedPlexSourceRequest
60
60
  */
61
61
  userMatchingMode?: UserMatchingModeEnum | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PatchedPlexSourceRequest
66
+ */
67
+ userPathTemplate?: string;
62
68
  /**
63
69
  * Client identifier used to talk to Plex.
64
70
  * @type {string}
@@ -33,6 +33,7 @@ function PatchedPlexSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
34
34
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
35
35
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
36
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
36
37
  'clientId': !(0, runtime_1.exists)(json, 'client_id') ? undefined : json['client_id'],
37
38
  'allowedServers': !(0, runtime_1.exists)(json, 'allowed_servers') ? undefined : json['allowed_servers'],
38
39
  'allowFriends': !(0, runtime_1.exists)(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -55,6 +56,7 @@ function PatchedPlexSourceRequestToJSON(value) {
55
56
  'enrollment_flow': value.enrollmentFlow,
56
57
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
57
58
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
59
+ 'user_path_template': value.userPathTemplate,
58
60
  'client_id': value.clientId,
59
61
  'allowed_servers': value.allowedServers,
60
62
  'allow_friends': value.allowFriends,