|
10 | 10 | import com.auth0.client.mgmt.core.Suppliers; |
11 | 11 | import com.auth0.client.mgmt.core.SyncPagingIterable; |
12 | 12 | import com.auth0.client.mgmt.types.Client; |
| 13 | +import com.auth0.client.mgmt.types.ClientSearchResponse; |
13 | 14 | import com.auth0.client.mgmt.types.CreateClientRequestContent; |
14 | 15 | import com.auth0.client.mgmt.types.CreateClientResponseContent; |
15 | 16 | import com.auth0.client.mgmt.types.GetClientRequestParameters; |
|
20 | 21 | import com.auth0.client.mgmt.types.RegisterCimdClientRequestContent; |
21 | 22 | import com.auth0.client.mgmt.types.RegisterCimdClientResponseContent; |
22 | 23 | import com.auth0.client.mgmt.types.RotateClientSecretResponseContent; |
| 24 | +import com.auth0.client.mgmt.types.SearchClientsRequestParameters; |
23 | 25 | import com.auth0.client.mgmt.types.UpdateClientRequestContent; |
24 | 26 | import com.auth0.client.mgmt.types.UpdateClientResponseContent; |
25 | 27 | import java.util.concurrent.CompletableFuture; |
@@ -274,6 +276,95 @@ public CompletableFuture<RegisterCimdClientResponseContent> registerCimdClient( |
274 | 276 | return this.rawClient.registerCimdClient(request, requestOptions).thenApply(response -> response.body()); |
275 | 277 | } |
276 | 278 |
|
| 279 | + /** |
| 280 | + * Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. |
| 281 | + * Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). |
| 282 | + * This endpoint provides an alternative to the standard GET /clients endpoint with better performance |
| 283 | + * for complex queries. Results may not reflect recent updates immediately. |
| 284 | + * <ul> |
| 285 | + * <li>This endpoint only supports <code>read:clients</code> and <code>read:client_summary</code> scopes. The <code>read:client_keys</code> and <code>read:client_credentials</code> scopes are not supported.</li> |
| 286 | + * <li>The following fields are never returned by this endpoint: |
| 287 | + * <ul> |
| 288 | + * <li><code>client_secret</code></li> |
| 289 | + * <li><code>encryption_key</code></li> |
| 290 | + * <li><code>signing_keys</code></li> |
| 291 | + * <li><code>owners</code></li> |
| 292 | + * <li><code>addons</code></li> |
| 293 | + * </ul> |
| 294 | + * </li> |
| 295 | + * </ul> |
| 296 | + */ |
| 297 | + public CompletableFuture<SyncPagingIterable<ClientSearchResponse>> search() { |
| 298 | + return this.rawClient.search().thenApply(response -> response.body()); |
| 299 | + } |
| 300 | + |
| 301 | + /** |
| 302 | + * Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. |
| 303 | + * Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). |
| 304 | + * This endpoint provides an alternative to the standard GET /clients endpoint with better performance |
| 305 | + * for complex queries. Results may not reflect recent updates immediately. |
| 306 | + * <ul> |
| 307 | + * <li>This endpoint only supports <code>read:clients</code> and <code>read:client_summary</code> scopes. The <code>read:client_keys</code> and <code>read:client_credentials</code> scopes are not supported.</li> |
| 308 | + * <li>The following fields are never returned by this endpoint: |
| 309 | + * <ul> |
| 310 | + * <li><code>client_secret</code></li> |
| 311 | + * <li><code>encryption_key</code></li> |
| 312 | + * <li><code>signing_keys</code></li> |
| 313 | + * <li><code>owners</code></li> |
| 314 | + * <li><code>addons</code></li> |
| 315 | + * </ul> |
| 316 | + * </li> |
| 317 | + * </ul> |
| 318 | + */ |
| 319 | + public CompletableFuture<SyncPagingIterable<ClientSearchResponse>> search(RequestOptions requestOptions) { |
| 320 | + return this.rawClient.search(requestOptions).thenApply(response -> response.body()); |
| 321 | + } |
| 322 | + |
| 323 | + /** |
| 324 | + * Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. |
| 325 | + * Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). |
| 326 | + * This endpoint provides an alternative to the standard GET /clients endpoint with better performance |
| 327 | + * for complex queries. Results may not reflect recent updates immediately. |
| 328 | + * <ul> |
| 329 | + * <li>This endpoint only supports <code>read:clients</code> and <code>read:client_summary</code> scopes. The <code>read:client_keys</code> and <code>read:client_credentials</code> scopes are not supported.</li> |
| 330 | + * <li>The following fields are never returned by this endpoint: |
| 331 | + * <ul> |
| 332 | + * <li><code>client_secret</code></li> |
| 333 | + * <li><code>encryption_key</code></li> |
| 334 | + * <li><code>signing_keys</code></li> |
| 335 | + * <li><code>owners</code></li> |
| 336 | + * <li><code>addons</code></li> |
| 337 | + * </ul> |
| 338 | + * </li> |
| 339 | + * </ul> |
| 340 | + */ |
| 341 | + public CompletableFuture<SyncPagingIterable<ClientSearchResponse>> search(SearchClientsRequestParameters request) { |
| 342 | + return this.rawClient.search(request).thenApply(response -> response.body()); |
| 343 | + } |
| 344 | + |
| 345 | + /** |
| 346 | + * Search clients using SCIM or Lucene filter syntax with low-latency, eventually consistent results. |
| 347 | + * Use the parser parameter to specify "scim" or "lucene" syntax (default: "lucene"). |
| 348 | + * This endpoint provides an alternative to the standard GET /clients endpoint with better performance |
| 349 | + * for complex queries. Results may not reflect recent updates immediately. |
| 350 | + * <ul> |
| 351 | + * <li>This endpoint only supports <code>read:clients</code> and <code>read:client_summary</code> scopes. The <code>read:client_keys</code> and <code>read:client_credentials</code> scopes are not supported.</li> |
| 352 | + * <li>The following fields are never returned by this endpoint: |
| 353 | + * <ul> |
| 354 | + * <li><code>client_secret</code></li> |
| 355 | + * <li><code>encryption_key</code></li> |
| 356 | + * <li><code>signing_keys</code></li> |
| 357 | + * <li><code>owners</code></li> |
| 358 | + * <li><code>addons</code></li> |
| 359 | + * </ul> |
| 360 | + * </li> |
| 361 | + * </ul> |
| 362 | + */ |
| 363 | + public CompletableFuture<SyncPagingIterable<ClientSearchResponse>> search( |
| 364 | + SearchClientsRequestParameters request, RequestOptions requestOptions) { |
| 365 | + return this.rawClient.search(request, requestOptions).thenApply(response -> response.body()); |
| 366 | + } |
| 367 | + |
277 | 368 | /** |
278 | 369 | * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. |
279 | 370 | * For more information, read <a href="https://www.auth0.com/docs/get-started/applications">Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on">Single Sign-On</a>. |
|
0 commit comments