@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
@@ -63,6 +63,12 @@ export interface PatchedSAMLSourceRequest {
63
63
  * @memberof PatchedSAMLSourceRequest
64
64
  */
65
65
  userMatchingMode?: UserMatchingModeEnum | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PatchedSAMLSourceRequest
70
+ */
71
+ userPathTemplate?: string;
66
72
  /**
67
73
  * Flow used before authentication.
68
74
  * @type {string}
@@ -37,6 +37,7 @@ function PatchedSAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
38
38
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
39
39
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
40
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
40
41
  'preAuthenticationFlow': !(0, runtime_1.exists)(json, 'pre_authentication_flow') ? undefined : json['pre_authentication_flow'],
41
42
  'issuer': !(0, runtime_1.exists)(json, 'issuer') ? undefined : json['issuer'],
42
43
  'ssoUrl': !(0, runtime_1.exists)(json, 'sso_url') ? undefined : json['sso_url'],
@@ -66,6 +67,7 @@ function PatchedSAMLSourceRequestToJSON(value) {
66
67
  'enrollment_flow': value.enrollmentFlow,
67
68
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
68
69
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
70
+ 'user_path_template': value.userPathTemplate,
69
71
  'pre_authentication_flow': value.preAuthenticationFlow,
70
72
  'issuer': value.issuer,
71
73
  'sso_url': value.ssoUrl,
@@ -59,6 +59,12 @@ export interface PatchedUserRequest {
59
59
  attributes?: {
60
60
  [key: string]: any;
61
61
  };
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PatchedUserRequest
66
+ */
67
+ path?: string;
62
68
  }
63
69
  export declare function PatchedUserRequestFromJSON(json: any): PatchedUserRequest;
64
70
  export declare function PatchedUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserRequest;
@@ -31,6 +31,7 @@ function PatchedUserRequestFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : json['groups'],
32
32
  'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
33
33
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
34
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
34
35
  };
35
36
  }
36
37
  exports.PatchedUserRequestFromJSONTyped = PatchedUserRequestFromJSONTyped;
@@ -49,6 +50,7 @@ function PatchedUserRequestToJSON(value) {
49
50
  'groups': value.groups,
50
51
  'email': value.email,
51
52
  'attributes': value.attributes,
53
+ 'path': value.path,
52
54
  };
53
55
  }
54
56
  exports.PatchedUserRequestToJSON = PatchedUserRequestToJSON;
@@ -40,6 +40,12 @@ export interface PatchedUserWriteStageRequest {
40
40
  * @memberof PatchedUserWriteStageRequest
41
41
  */
42
42
  createUsersGroup?: string | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PatchedUserWriteStageRequest
47
+ */
48
+ userPathTemplate?: string;
43
49
  }
44
50
  export declare function PatchedUserWriteStageRequestFromJSON(json: any): PatchedUserWriteStageRequest;
45
51
  export declare function PatchedUserWriteStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserWriteStageRequest;
@@ -29,6 +29,7 @@ function PatchedUserWriteStageRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequest_1.FlowRequestFromJSON)),
30
30
  'createUsersAsInactive': !(0, runtime_1.exists)(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
31
31
  'createUsersGroup': !(0, runtime_1.exists)(json, 'create_users_group') ? undefined : json['create_users_group'],
32
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
32
33
  };
33
34
  }
34
35
  exports.PatchedUserWriteStageRequestFromJSONTyped = PatchedUserWriteStageRequestFromJSONTyped;
@@ -44,6 +45,7 @@ function PatchedUserWriteStageRequestToJSON(value) {
44
45
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequest_1.FlowRequestToJSON)),
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
  }
49
51
  exports.PatchedUserWriteStageRequestToJSON = PatchedUserWriteStageRequestToJSON;
@@ -95,6 +95,12 @@ export interface PlexSource {
95
95
  * @memberof PlexSource
96
96
  */
97
97
  readonly managed: string | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof PlexSource
102
+ */
103
+ userPathTemplate?: string;
98
104
  /**
99
105
  * Client identifier used to talk to Plex.
100
106
  * @type {string}
@@ -39,6 +39,7 @@ function PlexSourceFromJSONTyped(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
  'clientId': !(0, runtime_1.exists)(json, 'client_id') ? undefined : json['client_id'],
43
44
  'allowedServers': !(0, runtime_1.exists)(json, 'allowed_servers') ? undefined : json['allowed_servers'],
44
45
  'allowFriends': !(0, runtime_1.exists)(json, 'allow_friends') ? undefined : json['allow_friends'],
@@ -61,6 +62,7 @@ function PlexSourceToJSON(value) {
61
62
  'enrollment_flow': value.enrollmentFlow,
62
63
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
63
64
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
65
+ 'user_path_template': value.userPathTemplate,
64
66
  'client_id': value.clientId,
65
67
  'allowed_servers': value.allowedServers,
66
68
  'allow_friends': value.allowFriends,
@@ -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;
@@ -39,6 +39,7 @@ function PlexSourceConnectionSourceFromJSONTyped(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
  };
43
44
  }
44
45
  exports.PlexSourceConnectionSourceFromJSONTyped = PlexSourceConnectionSourceFromJSONTyped;
@@ -57,6 +58,7 @@ function PlexSourceConnectionSourceToJSON(value) {
57
58
  'enrollment_flow': value.enrollmentFlow,
58
59
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
59
60
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
61
+ 'user_path_template': value.userPathTemplate,
60
62
  };
61
63
  }
62
64
  exports.PlexSourceConnectionSourceToJSON = PlexSourceConnectionSourceToJSON;
@@ -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}
@@ -33,6 +33,7 @@ function PlexSourceRequestFromJSONTyped(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 PlexSourceRequestToJSON(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,
@@ -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;
@@ -37,6 +37,7 @@ function PolicyBindingUserObjFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'avatar': json['avatar'],
38
38
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
39
39
  'uid': json['uid'],
40
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
40
41
  };
41
42
  }
42
43
  exports.PolicyBindingUserObjFromJSONTyped = PolicyBindingUserObjFromJSONTyped;
@@ -55,6 +56,7 @@ function PolicyBindingUserObjToJSON(value) {
55
56
  'groups': value.groups,
56
57
  'email': value.email,
57
58
  'attributes': value.attributes,
59
+ 'path': value.path,
58
60
  };
59
61
  }
60
62
  exports.PolicyBindingUserObjToJSON = PolicyBindingUserObjToJSON;
@@ -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}
@@ -43,6 +43,7 @@ function SAMLSourceFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
44
44
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
45
45
  'managed': json['managed'],
46
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
46
47
  'preAuthenticationFlow': json['pre_authentication_flow'],
47
48
  'issuer': !(0, runtime_1.exists)(json, 'issuer') ? undefined : json['issuer'],
48
49
  'ssoUrl': json['sso_url'],
@@ -72,6 +73,7 @@ function SAMLSourceToJSON(value) {
72
73
  'enrollment_flow': value.enrollmentFlow,
73
74
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
74
75
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
76
+ 'user_path_template': value.userPathTemplate,
75
77
  'pre_authentication_flow': value.preAuthenticationFlow,
76
78
  'issuer': value.issuer,
77
79
  '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}
@@ -37,6 +37,7 @@ function SAMLSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'enrollmentFlow': !(0, runtime_1.exists)(json, 'enrollment_flow') ? undefined : json['enrollment_flow'],
38
38
  'policyEngineMode': !(0, runtime_1.exists)(json, 'policy_engine_mode') ? undefined : (0, PolicyEngineMode_1.PolicyEngineModeFromJSON)(json['policy_engine_mode']),
39
39
  'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
40
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
40
41
  'preAuthenticationFlow': json['pre_authentication_flow'],
41
42
  'issuer': !(0, runtime_1.exists)(json, 'issuer') ? undefined : json['issuer'],
42
43
  'ssoUrl': json['sso_url'],
@@ -66,6 +67,7 @@ function SAMLSourceRequestToJSON(value) {
66
67
  'enrollment_flow': value.enrollmentFlow,
67
68
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
68
69
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
70
+ 'user_path_template': value.userPathTemplate,
69
71
  'pre_authentication_flow': value.preAuthenticationFlow,
70
72
  'issuer': value.issuer,
71
73
  '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;
@@ -39,6 +39,7 @@ function SourceFromJSONTyped(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
  };
43
44
  }
44
45
  exports.SourceFromJSONTyped = SourceFromJSONTyped;
@@ -57,6 +58,7 @@ function SourceToJSON(value) {
57
58
  'enrollment_flow': value.enrollmentFlow,
58
59
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
59
60
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
61
+ 'user_path_template': value.userPathTemplate,
60
62
  };
61
63
  }
62
64
  exports.SourceToJSON = SourceToJSON;
@@ -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;
@@ -33,6 +33,7 @@ function SourceRequestFromJSONTyped(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
  };
37
38
  }
38
39
  exports.SourceRequestFromJSONTyped = SourceRequestFromJSONTyped;
@@ -51,6 +52,7 @@ function SourceRequestToJSON(value) {
51
52
  'enrollment_flow': value.enrollmentFlow,
52
53
  'policy_engine_mode': (0, PolicyEngineMode_1.PolicyEngineModeToJSON)(value.policyEngineMode),
53
54
  'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
55
+ 'user_path_template': value.userPathTemplate,
54
56
  };
55
57
  }
56
58
  exports.SourceRequestToJSON = SourceRequestToJSON;
@@ -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;
@@ -37,6 +37,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'avatar': json['avatar'],
38
38
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
39
39
  'uid': json['uid'],
40
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
40
41
  };
41
42
  }
42
43
  exports.UserFromJSONTyped = UserFromJSONTyped;
@@ -55,6 +56,7 @@ function UserToJSON(value) {
55
56
  'groups': value.groups,
56
57
  'email': value.email,
57
58
  'attributes': value.attributes,
59
+ 'path': value.path,
58
60
  };
59
61
  }
60
62
  exports.UserToJSON = UserToJSON;
@@ -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,39 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2022.6.2
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UserPathToJSON = exports.UserPathFromJSONTyped = exports.UserPathFromJSON = void 0;
17
+ function UserPathFromJSON(json) {
18
+ return UserPathFromJSONTyped(json, false);
19
+ }
20
+ exports.UserPathFromJSON = UserPathFromJSON;
21
+ function UserPathFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'paths': json['paths'],
27
+ };
28
+ }
29
+ exports.UserPathFromJSONTyped = UserPathFromJSONTyped;
30
+ function UserPathToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {};
38
+ }
39
+ exports.UserPathToJSON = UserPathToJSON;
@@ -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;
@@ -31,6 +31,7 @@ function UserRequestFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'groups': json['groups'],
32
32
  'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
33
33
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
34
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
34
35
  };
35
36
  }
36
37
  exports.UserRequestFromJSONTyped = UserRequestFromJSONTyped;
@@ -49,6 +50,7 @@ function UserRequestToJSON(value) {
49
50
  'groups': value.groups,
50
51
  'email': value.email,
51
52
  'attributes': value.attributes,
53
+ 'path': value.path,
52
54
  };
53
55
  }
54
56
  exports.UserRequestToJSON = UserRequestToJSON;
@@ -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;
@@ -34,6 +34,7 @@ function UserWriteStageFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(Flow_1.FlowFromJSON)),
35
35
  'createUsersAsInactive': !(0, runtime_1.exists)(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
36
36
  'createUsersGroup': !(0, runtime_1.exists)(json, 'create_users_group') ? undefined : json['create_users_group'],
37
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
37
38
  };
38
39
  }
39
40
  exports.UserWriteStageFromJSONTyped = UserWriteStageFromJSONTyped;
@@ -49,6 +50,7 @@ function UserWriteStageToJSON(value) {
49
50
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(Flow_1.FlowToJSON)),
50
51
  'create_users_as_inactive': value.createUsersAsInactive,
51
52
  'create_users_group': value.createUsersGroup,
53
+ 'user_path_template': value.userPathTemplate,
52
54
  };
53
55
  }
54
56
  exports.UserWriteStageToJSON = UserWriteStageToJSON;
@@ -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;
@@ -29,6 +29,7 @@ function UserWriteStageRequestFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequest_1.FlowRequestFromJSON)),
30
30
  'createUsersAsInactive': !(0, runtime_1.exists)(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
31
31
  'createUsersGroup': !(0, runtime_1.exists)(json, 'create_users_group') ? undefined : json['create_users_group'],
32
+ 'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
32
33
  };
33
34
  }
34
35
  exports.UserWriteStageRequestFromJSONTyped = UserWriteStageRequestFromJSONTyped;
@@ -44,6 +45,7 @@ function UserWriteStageRequestToJSON(value) {
44
45
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequest_1.FlowRequestToJSON)),
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
  }
49
51
  exports.UserWriteStageRequestToJSON = UserWriteStageRequestToJSON;
@@ -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';
@@ -439,6 +439,7 @@ __exportStar(require("./UserMetrics"), exports);
439
439
  __exportStar(require("./UserOAuthSourceConnection"), exports);
440
440
  __exportStar(require("./UserOAuthSourceConnectionRequest"), exports);
441
441
  __exportStar(require("./UserPasswordSetRequest"), exports);
442
+ __exportStar(require("./UserPath"), exports);
442
443
  __exportStar(require("./UserRequest"), exports);
443
444
  __exportStar(require("./UserSelf"), exports);
444
445
  __exportStar(require("./UserSelfGroups"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.6.2-1654969708",
3
+ "version": "2022.6.2-1655288048",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -117,6 +117,9 @@ import {
117
117
  UserPasswordSetRequest,
118
118
  UserPasswordSetRequestFromJSON,
119
119
  UserPasswordSetRequestToJSON,
120
+ UserPath,
121
+ UserPathFromJSON,
122
+ UserPathToJSON,
120
123
  UserRequest,
121
124
  UserRequestFromJSON,
122
125
  UserRequestToJSON,
@@ -379,6 +382,8 @@ export interface CoreUsersListRequest {
379
382
  ordering?: string;
380
383
  page?: number;
381
384
  pageSize?: number;
385
+ path?: string;
386
+ pathStartswith?: string;
382
387
  search?: string;
383
388
  username?: string;
384
389
  uuid?: string;
@@ -393,6 +398,10 @@ export interface CoreUsersPartialUpdateRequest {
393
398
  patchedUserRequest?: PatchedUserRequest;
394
399
  }
395
400
 
401
+ export interface CoreUsersPathsRetrieveRequest {
402
+ search?: string;
403
+ }
404
+
396
405
  export interface CoreUsersRecoveryEmailRetrieveRequest {
397
406
  emailStage: string;
398
407
  id: number;
@@ -2293,6 +2302,14 @@ export class CoreApi extends runtime.BaseAPI {
2293
2302
  queryParameters['page_size'] = requestParameters.pageSize;
2294
2303
  }
2295
2304
 
2305
+ if (requestParameters.path !== undefined) {
2306
+ queryParameters['path'] = requestParameters.path;
2307
+ }
2308
+
2309
+ if (requestParameters.pathStartswith !== undefined) {
2310
+ queryParameters['path_startswith'] = requestParameters.pathStartswith;
2311
+ }
2312
+
2296
2313
  if (requestParameters.search !== undefined) {
2297
2314
  queryParameters['search'] = requestParameters.search;
2298
2315
  }
@@ -2430,6 +2447,40 @@ export class CoreApi extends runtime.BaseAPI {
2430
2447
  return await response.value();
2431
2448
  }
2432
2449
 
2450
+ /**
2451
+ * Get all user paths
2452
+ */
2453
+ async coreUsersPathsRetrieveRaw(requestParameters: CoreUsersPathsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<UserPath>> {
2454
+ const queryParameters: any = {};
2455
+
2456
+ if (requestParameters.search !== undefined) {
2457
+ queryParameters['search'] = requestParameters.search;
2458
+ }
2459
+
2460
+ const headerParameters: runtime.HTTPHeaders = {};
2461
+
2462
+ if (this.configuration && this.configuration.apiKey) {
2463
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
2464
+ }
2465
+
2466
+ const response = await this.request({
2467
+ path: `/core/users/paths/`,
2468
+ method: 'GET',
2469
+ headers: headerParameters,
2470
+ query: queryParameters,
2471
+ }, initOverrides);
2472
+
2473
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserPathFromJSON(jsonValue));
2474
+ }
2475
+
2476
+ /**
2477
+ * Get all user paths
2478
+ */
2479
+ async coreUsersPathsRetrieve(requestParameters: CoreUsersPathsRetrieveRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<UserPath> {
2480
+ const response = await this.coreUsersPathsRetrieveRaw(requestParameters, initOverrides);
2481
+ return await response.value();
2482
+ }
2483
+
2433
2484
  /**
2434
2485
  * Create a temporary link that a user can use to recover their accounts
2435
2486
  */