|
189 | 189 | import io.fusionauth.domain.api.identity.verify.VerifyStartRequest; |
190 | 190 | import io.fusionauth.domain.api.identity.verify.VerifyStartResponse; |
191 | 191 | import io.fusionauth.domain.api.identity.verify.VerifySendRequest; |
| 192 | +import io.fusionauth.domain.api.identityProvider.IdentityProviderConnectionTestRequest; |
| 193 | +import io.fusionauth.domain.api.identityProvider.IdentityProviderConnectionTestResponse; |
192 | 194 | import io.fusionauth.domain.api.identityProvider.IdentityProviderLinkRequest; |
193 | 195 | import io.fusionauth.domain.api.identityProvider.IdentityProviderLinkResponse; |
194 | 196 | import io.fusionauth.domain.api.identityProvider.IdentityProviderLoginRequest; |
|
213 | 215 | import io.fusionauth.domain.api.report.MonthlyActiveUserReportResponse; |
214 | 216 | import io.fusionauth.domain.api.report.RegistrationReportResponse; |
215 | 217 | import io.fusionauth.domain.api.report.TotalsReportResponse; |
| 218 | +import io.fusionauth.domain.api.tenantManager.TenantManagerConfigurationRequest; |
| 219 | +import io.fusionauth.domain.api.tenantManager.TenantManagerConfigurationResponse; |
| 220 | +import io.fusionauth.domain.api.tenantManager.TenantManagerIdentityProviderTypeConfigurationRequest; |
| 221 | +import io.fusionauth.domain.api.tenantManager.TenantManagerIdentityProviderTypeConfigurationResponse; |
216 | 222 | import io.fusionauth.domain.api.twoFactor.SecretResponse; |
217 | 223 | import io.fusionauth.domain.api.twoFactor.TwoFactorLoginRequest; |
218 | 224 | import io.fusionauth.domain.api.twoFactor.TwoFactorSendRequest; |
@@ -1186,6 +1192,22 @@ public ClientResponse<TenantResponse, Errors> createTenant(UUID tenantId, Tenant |
1186 | 1192 | .go(); |
1187 | 1193 | } |
1188 | 1194 |
|
| 1195 | + /** |
| 1196 | + * Creates a tenant manager identity provider type configuration for the given identity provider type. |
| 1197 | + * |
| 1198 | + * @param type The type of the identity provider. |
| 1199 | + * @param request The request object that contains all the information used to create the tenant manager identity provider type configuration. |
| 1200 | + * @return The ClientResponse object. |
| 1201 | + */ |
| 1202 | + public ClientResponse<TenantManagerIdentityProviderTypeConfigurationResponse, Errors> createTenantManagerIdentityProviderTypeConfiguration(IdentityProviderType type, TenantManagerIdentityProviderTypeConfigurationRequest request) { |
| 1203 | + return start(TenantManagerIdentityProviderTypeConfigurationResponse.class, Errors.class) |
| 1204 | + .uri("/api/tenant-manager/identity-provider") |
| 1205 | + .urlSegment(type) |
| 1206 | + .bodyHandler(new JSONBodyHandler(request, objectMapper())) |
| 1207 | + .post() |
| 1208 | + .go(); |
| 1209 | + } |
| 1210 | + |
1189 | 1211 | /** |
1190 | 1212 | * Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated. |
1191 | 1213 | * |
@@ -1766,6 +1788,20 @@ public ClientResponse<Void, Errors> deleteTenantAsync(UUID tenantId) { |
1766 | 1788 | .go(); |
1767 | 1789 | } |
1768 | 1790 |
|
| 1791 | + /** |
| 1792 | + * Deletes the tenant manager identity provider type configuration for the given identity provider type. |
| 1793 | + * |
| 1794 | + * @param type The type of the identity provider. |
| 1795 | + * @return The ClientResponse object. |
| 1796 | + */ |
| 1797 | + public ClientResponse<Void, Errors> deleteTenantManagerIdentityProviderTypeConfiguration(IdentityProviderType type) { |
| 1798 | + return start(Void.TYPE, Errors.class) |
| 1799 | + .uri("/api/tenant-manager/identity-provider") |
| 1800 | + .urlSegment(type) |
| 1801 | + .delete() |
| 1802 | + .go(); |
| 1803 | + } |
| 1804 | + |
1769 | 1805 | /** |
1770 | 1806 | * Deletes the tenant based on the given request (sent to the API as JSON). This permanently deletes all information, metrics, reports and data associated |
1771 | 1807 | * with the tenant and everything under the tenant (applications, users, etc). |
@@ -3068,6 +3104,36 @@ public ClientResponse<TenantResponse, Errors> patchTenant(UUID tenantId, Map<Str |
3068 | 3104 | .go(); |
3069 | 3105 | } |
3070 | 3106 |
|
| 3107 | + /** |
| 3108 | + * Updates, via PATCH, the Tenant Manager configuration. |
| 3109 | + * |
| 3110 | + * @param request The request that contains just the new Tenant Manager configuration information. |
| 3111 | + * @return The ClientResponse object. |
| 3112 | + */ |
| 3113 | + public ClientResponse<TenantManagerConfigurationResponse, Errors> patchTenantManagerConfiguration(Map<String, Object> request) { |
| 3114 | + return start(TenantManagerConfigurationResponse.class, Errors.class) |
| 3115 | + .uri("/api/tenant-manager") |
| 3116 | + .bodyHandler(new JSONBodyHandler(request, objectMapper())) |
| 3117 | + .patch() |
| 3118 | + .go(); |
| 3119 | + } |
| 3120 | + |
| 3121 | + /** |
| 3122 | + * Patches the tenant manager identity provider type configuration for the given identity provider type. |
| 3123 | + * |
| 3124 | + * @param type The type of the identity provider. |
| 3125 | + * @param request The request object that contains the new tenant manager identity provider type configuration information. |
| 3126 | + * @return The ClientResponse object. |
| 3127 | + */ |
| 3128 | + public ClientResponse<TenantManagerIdentityProviderTypeConfigurationResponse, Errors> patchTenantManagerIdentityProviderTypeConfiguration(IdentityProviderType type, Map<String, Object> request) { |
| 3129 | + return start(TenantManagerIdentityProviderTypeConfigurationResponse.class, Errors.class) |
| 3130 | + .uri("/api/tenant-manager/identity-provider") |
| 3131 | + .urlSegment(type) |
| 3132 | + .bodyHandler(new JSONBodyHandler(request, objectMapper())) |
| 3133 | + .patch() |
| 3134 | + .go(); |
| 3135 | + } |
| 3136 | + |
3071 | 3137 | /** |
3072 | 3138 | * Updates, via PATCH, the theme with the given Id. |
3073 | 3139 | * |
@@ -3816,6 +3882,20 @@ public ClientResponse<IdentityProviderResponse, Errors> retrieveIdentityProvider |
3816 | 3882 | .go(); |
3817 | 3883 | } |
3818 | 3884 |
|
| 3885 | + /** |
| 3886 | + * Retrieves the results for an identity provider connection test. |
| 3887 | + * |
| 3888 | + * @param connectionTestId The connection test id to retrieve results for. |
| 3889 | + * @return The ClientResponse object. |
| 3890 | + */ |
| 3891 | + public ClientResponse<IdentityProviderConnectionTestResponse, Errors> retrieveIdentityProviderConnectionTestResults(String connectionTestId) { |
| 3892 | + return start(IdentityProviderConnectionTestResponse.class, Errors.class) |
| 3893 | + .uri("/api/identity-provider/test") |
| 3894 | + .urlParameter("connectionTestId", connectionTestId) |
| 3895 | + .get() |
| 3896 | + .go(); |
| 3897 | + } |
| 3898 | + |
3819 | 3899 | /** |
3820 | 3900 | * Retrieves all the identity providers. |
3821 | 3901 | * |
@@ -4387,6 +4467,18 @@ public ClientResponse<TenantResponse, Errors> retrieveTenant(UUID tenantId) { |
4387 | 4467 | .go(); |
4388 | 4468 | } |
4389 | 4469 |
|
| 4470 | + /** |
| 4471 | + * Retrieves the Tenant Manager configuration. |
| 4472 | + * |
| 4473 | + * @return The ClientResponse object. |
| 4474 | + */ |
| 4475 | + public ClientResponse<TenantManagerConfigurationResponse, Void> retrieveTenantManagerConfiguration() { |
| 4476 | + return start(TenantManagerConfigurationResponse.class, Void.TYPE) |
| 4477 | + .uri("/api/tenant-manager") |
| 4478 | + .get() |
| 4479 | + .go(); |
| 4480 | + } |
| 4481 | + |
4390 | 4482 | /** |
4391 | 4483 | * Retrieves all the tenants. |
4392 | 4484 | * |
@@ -5635,6 +5727,20 @@ public ClientResponse<Void, Errors> sendVerifyIdentity(VerifySendRequest request |
5635 | 5727 | .go(); |
5636 | 5728 | } |
5637 | 5729 |
|
| 5730 | + /** |
| 5731 | + * Begins an identity provider connection test. |
| 5732 | + * |
| 5733 | + * @param request The request that contains information on the connection test. |
| 5734 | + * @return The ClientResponse object. |
| 5735 | + */ |
| 5736 | + public ClientResponse<IdentityProviderConnectionTestResponse, Errors> startIdentityProviderConnectionTest(IdentityProviderConnectionTestRequest request) { |
| 5737 | + return start(IdentityProviderConnectionTestResponse.class, Errors.class) |
| 5738 | + .uri("/api/identity-provider/test") |
| 5739 | + .bodyHandler(new JSONBodyHandler(request, objectMapper())) |
| 5740 | + .post() |
| 5741 | + .go(); |
| 5742 | + } |
| 5743 | + |
5638 | 5744 | /** |
5639 | 5745 | * Begins a login request for a 3rd party login that requires user interaction such as HYPR. |
5640 | 5746 | * |
@@ -6144,6 +6250,36 @@ public ClientResponse<TenantResponse, Errors> updateTenant(UUID tenantId, Tenant |
6144 | 6250 | .go(); |
6145 | 6251 | } |
6146 | 6252 |
|
| 6253 | + /** |
| 6254 | + * Updates the Tenant Manager configuration. |
| 6255 | + * |
| 6256 | + * @param request The request that contains all the new Tenant Manager configuration information. |
| 6257 | + * @return The ClientResponse object. |
| 6258 | + */ |
| 6259 | + public ClientResponse<TenantManagerConfigurationResponse, Errors> updateTenantManagerConfiguration(TenantManagerConfigurationRequest request) { |
| 6260 | + return start(TenantManagerConfigurationResponse.class, Errors.class) |
| 6261 | + .uri("/api/tenant-manager") |
| 6262 | + .bodyHandler(new JSONBodyHandler(request, objectMapper())) |
| 6263 | + .put() |
| 6264 | + .go(); |
| 6265 | + } |
| 6266 | + |
| 6267 | + /** |
| 6268 | + * Updates the tenant manager identity provider type configuration for the given identity provider type. |
| 6269 | + * |
| 6270 | + * @param type The type of the identity provider. |
| 6271 | + * @param request The request object that contains the updated tenant manager identity provider type configuration. |
| 6272 | + * @return The ClientResponse object. |
| 6273 | + */ |
| 6274 | + public ClientResponse<TenantManagerIdentityProviderTypeConfigurationResponse, Errors> updateTenantManagerIdentityProviderTypeConfiguration(IdentityProviderType type, TenantManagerIdentityProviderTypeConfigurationRequest request) { |
| 6275 | + return start(TenantManagerIdentityProviderTypeConfigurationResponse.class, Errors.class) |
| 6276 | + .uri("/api/tenant-manager/identity-provider") |
| 6277 | + .urlSegment(type) |
| 6278 | + .bodyHandler(new JSONBodyHandler(request, objectMapper())) |
| 6279 | + .put() |
| 6280 | + .go(); |
| 6281 | + } |
| 6282 | + |
6147 | 6283 | /** |
6148 | 6284 | * Updates the theme with the given Id. |
6149 | 6285 | * |
|
0 commit comments