Skip to content

Commit b9a36bb

Browse files
SDK regeneration
1 parent 49667fd commit b9a36bb

125 files changed

Lines changed: 1188 additions & 1949 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

reference.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12569,7 +12569,7 @@ client.userAttributeProfiles().list(
1256912569
<dl>
1257012570
<dd>
1257112571

12572-
Retrieve details about a single User Attribute Profile specified by ID.
12572+
Create a User Attribute Profile
1257312573
</dd>
1257412574
</dl>
1257512575
</dd>
@@ -17514,9 +17514,12 @@ client.branding().phone().templates().update(
1751417514
<dd>
1751517515

1751617516
```java
17517-
client.branding().phone().templates().reset("id", new
17518-
HashMap<String, Object>() {{put("key", "value");
17519-
}});
17517+
client.branding().phone().templates().reset(
17518+
"id",
17519+
ResetPhoneTemplateRequestContent.of(new
17520+
HashMap<String, Object>() {{put("key", "value");
17521+
}})
17522+
);
1752017523
```
1752117524
</dd>
1752217525
</dl>
@@ -31029,7 +31032,7 @@ client.users().sessions().delete("user_id");
3102931032
<dl>
3103031033
<dd>
3103131034

31032-
List a verifiable credential templates.
31035+
List verifiable credential templates.
3103331036
</dd>
3103431037
</dl>
3103531038
</dd>
@@ -31420,3 +31423,4 @@ client.verifiableCredentials().verification().templates().update(
3142031423
</dd>
3142131424
</dl>
3142231425
</details>
31426+

src/main/java/com/auth0/client/mgmt/AsyncManagementApiBuilder.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import com.auth0.client.mgmt.core.ClientOptions;
77
import com.auth0.client.mgmt.core.Environment;
8+
import com.auth0.client.mgmt.core.LogConfig;
89
import java.util.HashMap;
910
import java.util.Map;
1011
import java.util.Optional;
@@ -23,6 +24,8 @@ public class AsyncManagementApiBuilder {
2324

2425
private OkHttpClient httpClient;
2526

27+
private Optional<LogConfig> logging = Optional.empty();
28+
2629
private String tenantDomain;
2730

2831
/**
@@ -67,6 +70,14 @@ public AsyncManagementApiBuilder httpClient(OkHttpClient httpClient) {
6770
return this;
6871
}
6972

73+
/**
74+
* Configure logging for the SDK. Silent by default — no log output unless explicitly configured.
75+
*/
76+
public AsyncManagementApiBuilder logging(LogConfig logging) {
77+
this.logging = Optional.of(logging);
78+
return this;
79+
}
80+
7081
/**
7182
* Add a custom header to be sent with all requests.
7283
* For headers that need to be computed dynamically or conditionally, use the setAdditional() method override instead.
@@ -92,6 +103,7 @@ protected ClientOptions buildClientOptions() {
92103
setHttpClient(builder);
93104
setTimeouts(builder);
94105
setRetries(builder);
106+
setLogging(builder);
95107
for (Map.Entry<String, String> header : this.customHeaders.entrySet()) {
96108
builder.addHeader(header.getKey(), header.getValue());
97109
}
@@ -171,6 +183,18 @@ protected void setHttpClient(ClientOptions.Builder builder) {
171183
}
172184
}
173185

186+
/**
187+
* Sets the logging configuration for the SDK.
188+
* Override this method to customize logging behavior.
189+
*
190+
* @param builder The ClientOptions.Builder to configure
191+
*/
192+
protected void setLogging(ClientOptions.Builder builder) {
193+
if (this.logging.isPresent()) {
194+
builder.logging(this.logging.get());
195+
}
196+
}
197+
174198
/**
175199
* Override this method to add any additional configuration to the client.
176200
* This method is called at the end of the configuration chain, allowing you to add

src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
222222
}
223223
try {
224224
switch (response.code()) {
225+
case 400:
226+
future.completeExceptionally(new BadRequestError(
227+
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
228+
response));
229+
return;
225230
case 401:
226231
future.completeExceptionally(new UnauthorizedError(
227232
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),

src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
181181
}
182182

183183
/**
184-
* Retrieve details about a single User Attribute Profile specified by ID.
184+
* Create a User Attribute Profile
185185
*/
186186
public CompletableFuture<ManagementApiHttpResponse<CreateUserAttributeProfileResponseContent>> create(
187187
CreateUserAttributeProfileRequestContent request) {
188188
return create(request, null);
189189
}
190190

191191
/**
192-
* Retrieve details about a single User Attribute Profile specified by ID.
192+
* Create a User Attribute Profile
193193
*/
194194
public CompletableFuture<ManagementApiHttpResponse<CreateUserAttributeProfileResponseContent>> create(
195195
CreateUserAttributeProfileRequestContent request, RequestOptions requestOptions) {

src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ public CompletableFuture<SyncPagingIterable<UserAttributeProfile>> list(
6565
}
6666

6767
/**
68-
* Retrieve details about a single User Attribute Profile specified by ID.
68+
* Create a User Attribute Profile
6969
*/
7070
public CompletableFuture<CreateUserAttributeProfileResponseContent> create(
7171
CreateUserAttributeProfileRequestContent request) {
7272
return this.rawClient.create(request).thenApply(response -> response.body());
7373
}
7474

7575
/**
76-
* Retrieve details about a single User Attribute Profile specified by ID.
76+
* Create a User Attribute Profile
7777
*/
7878
public CompletableFuture<CreateUserAttributeProfileResponseContent> create(
7979
CreateUserAttributeProfileRequestContent request, RequestOptions requestOptions) {

src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ public ManagementApiHttpResponse<GetRefreshTokenResponseContent> get(String id,
181181
}
182182
try {
183183
switch (response.code()) {
184+
case 400:
185+
throw new BadRequestError(
186+
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
184187
case 401:
185188
throw new UnauthorizedError(
186189
ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);

src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ public ManagementApiHttpResponse<SyncPagingIterable<UserAttributeProfile>> list(
146146
}
147147

148148
/**
149-
* Retrieve details about a single User Attribute Profile specified by ID.
149+
* Create a User Attribute Profile
150150
*/
151151
public ManagementApiHttpResponse<CreateUserAttributeProfileResponseContent> create(
152152
CreateUserAttributeProfileRequestContent request) {
153153
return create(request, null);
154154
}
155155

156156
/**
157-
* Retrieve details about a single User Attribute Profile specified by ID.
157+
* Create a User Attribute Profile
158158
*/
159159
public ManagementApiHttpResponse<CreateUserAttributeProfileResponseContent> create(
160160
CreateUserAttributeProfileRequestContent request, RequestOptions requestOptions) {

src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ public SyncPagingIterable<UserAttributeProfile> list(
6363
}
6464

6565
/**
66-
* Retrieve details about a single User Attribute Profile specified by ID.
66+
* Create a User Attribute Profile
6767
*/
6868
public CreateUserAttributeProfileResponseContent create(CreateUserAttributeProfileRequestContent request) {
6969
return this.rawClient.create(request).body();
7070
}
7171

7272
/**
73-
* Retrieve details about a single User Attribute Profile specified by ID.
73+
* Create a User Attribute Profile
7474
*/
7575
public CreateUserAttributeProfileResponseContent create(
7676
CreateUserAttributeProfileRequestContent request, RequestOptions requestOptions) {

src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
package com.auth0.client.mgmt.actions.modules.types;
55

66
import com.auth0.client.mgmt.core.Nullable;
7-
import com.auth0.client.mgmt.core.NullableNonemptyFilter;
87
import com.auth0.client.mgmt.core.ObjectMappers;
98
import com.auth0.client.mgmt.core.OptionalNullable;
109
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1110
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonIgnore;
1212
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
1313
import com.fasterxml.jackson.annotation.JsonInclude;
14-
import com.fasterxml.jackson.annotation.JsonProperty;
1514
import com.fasterxml.jackson.annotation.JsonSetter;
1615
import com.fasterxml.jackson.annotation.Nulls;
1716
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
@@ -41,17 +40,15 @@ private GetActionModuleVersionsRequestParameters(
4140
/**
4241
* @return Use this field to request a specific page of the list results.
4342
*/
44-
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
45-
@JsonProperty("page")
43+
@JsonIgnore
4644
public OptionalNullable<Integer> getPage() {
4745
return page;
4846
}
4947

5048
/**
5149
* @return The maximum number of results to be returned by the server in a single response. 20 by default.
5250
*/
53-
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
54-
@JsonProperty("per_page")
51+
@JsonIgnore
5552
public OptionalNullable<Integer> getPerPage() {
5653
return perPage;
5754
}

src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
package com.auth0.client.mgmt.actions.triggers.types;
55

66
import com.auth0.client.mgmt.core.Nullable;
7-
import com.auth0.client.mgmt.core.NullableNonemptyFilter;
87
import com.auth0.client.mgmt.core.ObjectMappers;
98
import com.auth0.client.mgmt.core.OptionalNullable;
109
import com.fasterxml.jackson.annotation.JsonAnyGetter;
1110
import com.fasterxml.jackson.annotation.JsonAnySetter;
11+
import com.fasterxml.jackson.annotation.JsonIgnore;
1212
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
1313
import com.fasterxml.jackson.annotation.JsonInclude;
14-
import com.fasterxml.jackson.annotation.JsonProperty;
1514
import com.fasterxml.jackson.annotation.JsonSetter;
1615
import com.fasterxml.jackson.annotation.Nulls;
1716
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
@@ -41,17 +40,15 @@ private ListActionTriggerBindingsRequestParameters(
4140
/**
4241
* @return Use this field to request a specific page of the list results.
4342
*/
44-
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
45-
@JsonProperty("page")
43+
@JsonIgnore
4644
public OptionalNullable<Integer> getPage() {
4745
return page;
4846
}
4947

5048
/**
5149
* @return The maximum number of results to be returned in a single request. 20 by default
5250
*/
53-
@JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class)
54-
@JsonProperty("per_page")
51+
@JsonIgnore
5552
public OptionalNullable<Integer> getPerPage() {
5653
return perPage;
5754
}

0 commit comments

Comments
 (0)