Skip to content

Commit 7f9f45d

Browse files
Feat: Update shields field to enum in Patch Request payload and enabled_locales to enum in Update TenantSetting payload and Add pagination for Action Module Versions (#825)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
1 parent af87c10 commit 7f9f45d

File tree

305 files changed

+15871
-15652
lines changed

Some content is hidden

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

305 files changed

+15871
-15652
lines changed

reference.md

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5232,7 +5232,7 @@ client.eventStreams().test(
52325232

52335233
```java
52345234
client.flows().list(
5235-
FlowsListRequest
5235+
ListFlowsRequestParameters
52365236
.builder()
52375237
.page(
52385238
OptionalNullable.of(1)
@@ -5286,7 +5286,7 @@ client.flows().list(
52865286
<dl>
52875287
<dd>
52885288

5289-
**hydrate:** `Optional<FlowsListRequestHydrateItem>` — hydration param
5289+
**hydrate:** `Optional<ListFlowsRequestParametersHydrateEnum>` — hydration param
52905290

52915291
</dd>
52925292
</dl>
@@ -13738,7 +13738,7 @@ client.actions().versions().deploy(
1373813738
<dl>
1373913739
<dd>
1374013740

13741-
**request:** `Optional<DeployActionVersionRequestBodyParams>`
13741+
**request:** `Optional<DeployActionVersionRequestContent>`
1374213742

1374313743
</dd>
1374413744
</dl>
@@ -14359,7 +14359,7 @@ client.actions().triggers().list();
1435914359
</details>
1436014360

1436114361
## Actions Modules Versions
14362-
<details><summary><code>client.actions.modules.versions.list(id) -> GetActionModuleVersionsResponseContent</code></summary>
14362+
<details><summary><code>client.actions.modules.versions.list(id) -> SyncPagingIterable&amp;lt;ActionModuleVersion&amp;gt;</code></summary>
1436314363
<dl>
1436414364
<dd>
1436514365

@@ -14386,7 +14386,18 @@ List all published versions of a specific Actions Module.
1438614386
<dd>
1438714387

1438814388
```java
14389-
client.actions().modules().versions().list("id");
14389+
client.actions().modules().versions().list(
14390+
"id",
14391+
GetActionModuleVersionsRequestParameters
14392+
.builder()
14393+
.page(
14394+
OptionalNullable.of(1)
14395+
)
14396+
.perPage(
14397+
OptionalNullable.of(1)
14398+
)
14399+
.build()
14400+
);
1439014401
```
1439114402
</dd>
1439214403
</dl>
@@ -14403,6 +14414,22 @@ client.actions().modules().versions().list("id");
1440314414

1440414415
**id:** `String` — The unique ID of the module.
1440514416

14417+
</dd>
14418+
</dl>
14419+
14420+
<dl>
14421+
<dd>
14422+
14423+
**page:** `Optional<Integer>` — Use this field to request a specific page of the list results.
14424+
14425+
</dd>
14426+
</dl>
14427+
14428+
<dl>
14429+
<dd>
14430+
14431+
**perPage:** `Optional<Integer>` — The maximum number of results to be returned by the server in a single response. 20 by default.
14432+
1440614433
</dd>
1440714434
</dl>
1440814435
</dd>
@@ -15155,7 +15182,7 @@ client.attackProtection().bruteForceProtection().update(
1515515182
<dl>
1515615183
<dd>
1515715184

15158-
**shields:** `Optional<List<UpdateBruteForceSettingsRequestContentShieldsItem>>`
15185+
**shields:** `Optional<List<BruteForceProtectionShieldsEnum>>`
1515915186

1516015187
Action to take when a brute force protection threshold is violated.
1516115188
Possible values: <code>block</code>, <code>user_notification</code>.
@@ -15174,10 +15201,7 @@ Action to take when a brute force protection threshold is violated.
1517415201
<dl>
1517515202
<dd>
1517615203

15177-
**mode:** `Optional<UpdateBruteForceSettingsRequestContentMode>`
15178-
15179-
Account Lockout: Determines whether or not IP address is used when counting failed attempts.
15180-
Possible values: <code>count_per_identifier_and_ip</code>, <code>count_per_identifier</code>.
15204+
**mode:** `Optional<BruteForceProtectionModeEnum>`
1518115205

1518215206
</dd>
1518315207
</dl>
@@ -19473,7 +19497,7 @@ client.eventStreams().redeliveries().createById("id", "event_id");
1947319497
```java
1947419498
client.flows().executions().list(
1947519499
"flow_id",
19476-
ExecutionsListRequest
19500+
ListFlowExecutionsRequestParameters
1947719501
.builder()
1947819502
.from(
1947919503
OptionalNullable.of("from")
@@ -19541,7 +19565,7 @@ client.flows().executions().list(
1954119565
client.flows().executions().get(
1954219566
"flow_id",
1954319567
"execution_id",
19544-
ExecutionsGetRequest
19568+
GetFlowExecutionRequestParameters
1954519569
.builder()
1954619570
.build()
1954719571
);
@@ -19575,7 +19599,7 @@ client.flows().executions().get(
1957519599
<dl>
1957619600
<dd>
1957719601

19578-
**hydrate:** `Optional<ExecutionsGetRequestHydrateItem>` — Hydration param
19602+
**hydrate:** `Optional<GetFlowExecutionRequestParametersHydrateEnum>` — Hydration param
1957919603

1958019604
</dd>
1958119605
</dl>
@@ -27217,7 +27241,7 @@ client.tenants().settings().update(
2721727241
<dl>
2721827242
<dd>
2721927243

27220-
**enabledLocales:** `Optional<List<UpdateTenantSettingsRequestContentEnabledLocalesItem>>` — Supported locales for the user interface
27244+
**enabledLocales:** `Optional<List<TenantSettingsSupportedLocalesEnum>>` — Supported locales for the user interface
2722127245

2722227246
</dd>
2722327247
</dl>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import com.auth0.client.mgmt.types.CreateFlowRequestContent;
1313
import com.auth0.client.mgmt.types.CreateFlowResponseContent;
1414
import com.auth0.client.mgmt.types.FlowSummary;
15-
import com.auth0.client.mgmt.types.FlowsListRequest;
1615
import com.auth0.client.mgmt.types.GetFlowRequestParameters;
1716
import com.auth0.client.mgmt.types.GetFlowResponseContent;
17+
import com.auth0.client.mgmt.types.ListFlowsRequestParameters;
1818
import com.auth0.client.mgmt.types.UpdateFlowRequestContent;
1919
import com.auth0.client.mgmt.types.UpdateFlowResponseContent;
2020
import java.util.concurrent.CompletableFuture;
@@ -47,12 +47,12 @@ public CompletableFuture<SyncPagingIterable<FlowSummary>> list() {
4747
return this.rawClient.list().thenApply(response -> response.body());
4848
}
4949

50-
public CompletableFuture<SyncPagingIterable<FlowSummary>> list(FlowsListRequest request) {
50+
public CompletableFuture<SyncPagingIterable<FlowSummary>> list(ListFlowsRequestParameters request) {
5151
return this.rawClient.list(request).thenApply(response -> response.body());
5252
}
5353

5454
public CompletableFuture<SyncPagingIterable<FlowSummary>> list(
55-
FlowsListRequest request, RequestOptions requestOptions) {
55+
ListFlowsRequestParameters request, RequestOptions requestOptions) {
5656
return this.rawClient.list(request, requestOptions).thenApply(response -> response.body());
5757
}
5858

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
import com.auth0.client.mgmt.types.CreateFlowRequestContent;
2121
import com.auth0.client.mgmt.types.CreateFlowResponseContent;
2222
import com.auth0.client.mgmt.types.FlowSummary;
23-
import com.auth0.client.mgmt.types.FlowsListRequest;
2423
import com.auth0.client.mgmt.types.GetFlowRequestParameters;
2524
import com.auth0.client.mgmt.types.GetFlowResponseContent;
2625
import com.auth0.client.mgmt.types.ListFlowsOffsetPaginatedResponseContent;
26+
import com.auth0.client.mgmt.types.ListFlowsRequestParameters;
2727
import com.auth0.client.mgmt.types.UpdateFlowRequestContent;
2828
import com.auth0.client.mgmt.types.UpdateFlowResponseContent;
2929
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -51,16 +51,16 @@ public AsyncRawFlowsClient(ClientOptions clientOptions) {
5151
}
5252

5353
public CompletableFuture<ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>>> list() {
54-
return list(FlowsListRequest.builder().build());
54+
return list(ListFlowsRequestParameters.builder().build());
5555
}
5656

5757
public CompletableFuture<ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>>> list(
58-
FlowsListRequest request) {
58+
ListFlowsRequestParameters request) {
5959
return list(request, null);
6060
}
6161

6262
public CompletableFuture<ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>>> list(
63-
FlowsListRequest request, RequestOptions requestOptions) {
63+
ListFlowsRequestParameters request, RequestOptions requestOptions) {
6464
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
6565
.newBuilder()
6666
.addPathSegments("flows");
@@ -100,7 +100,7 @@ public void onResponse(@NotNull Call call, @NotNull Response response) throws IO
100100
int newPageNumber = request.getPage()
101101
.map((Integer page) -> page + 1)
102102
.orElse(1);
103-
FlowsListRequest nextRequest = FlowsListRequest.builder()
103+
ListFlowsRequestParameters nextRequest = ListFlowsRequestParameters.builder()
104104
.from(request)
105105
.page(newPageNumber)
106106
.build();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import com.auth0.client.mgmt.types.CreateFlowRequestContent;
1313
import com.auth0.client.mgmt.types.CreateFlowResponseContent;
1414
import com.auth0.client.mgmt.types.FlowSummary;
15-
import com.auth0.client.mgmt.types.FlowsListRequest;
1615
import com.auth0.client.mgmt.types.GetFlowRequestParameters;
1716
import com.auth0.client.mgmt.types.GetFlowResponseContent;
17+
import com.auth0.client.mgmt.types.ListFlowsRequestParameters;
1818
import com.auth0.client.mgmt.types.UpdateFlowRequestContent;
1919
import com.auth0.client.mgmt.types.UpdateFlowResponseContent;
2020
import java.util.function.Supplier;
@@ -46,11 +46,11 @@ public SyncPagingIterable<FlowSummary> list() {
4646
return this.rawClient.list().body();
4747
}
4848

49-
public SyncPagingIterable<FlowSummary> list(FlowsListRequest request) {
49+
public SyncPagingIterable<FlowSummary> list(ListFlowsRequestParameters request) {
5050
return this.rawClient.list(request).body();
5151
}
5252

53-
public SyncPagingIterable<FlowSummary> list(FlowsListRequest request, RequestOptions requestOptions) {
53+
public SyncPagingIterable<FlowSummary> list(ListFlowsRequestParameters request, RequestOptions requestOptions) {
5454
return this.rawClient.list(request, requestOptions).body();
5555
}
5656

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
import com.auth0.client.mgmt.types.CreateFlowRequestContent;
2121
import com.auth0.client.mgmt.types.CreateFlowResponseContent;
2222
import com.auth0.client.mgmt.types.FlowSummary;
23-
import com.auth0.client.mgmt.types.FlowsListRequest;
2423
import com.auth0.client.mgmt.types.GetFlowRequestParameters;
2524
import com.auth0.client.mgmt.types.GetFlowResponseContent;
2625
import com.auth0.client.mgmt.types.ListFlowsOffsetPaginatedResponseContent;
26+
import com.auth0.client.mgmt.types.ListFlowsRequestParameters;
2727
import com.auth0.client.mgmt.types.UpdateFlowRequestContent;
2828
import com.auth0.client.mgmt.types.UpdateFlowResponseContent;
2929
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -46,15 +46,15 @@ public RawFlowsClient(ClientOptions clientOptions) {
4646
}
4747

4848
public ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>> list() {
49-
return list(FlowsListRequest.builder().build());
49+
return list(ListFlowsRequestParameters.builder().build());
5050
}
5151

52-
public ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>> list(FlowsListRequest request) {
52+
public ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>> list(ListFlowsRequestParameters request) {
5353
return list(request, null);
5454
}
5555

5656
public ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>> list(
57-
FlowsListRequest request, RequestOptions requestOptions) {
57+
ListFlowsRequestParameters request, RequestOptions requestOptions) {
5858
HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
5959
.newBuilder()
6060
.addPathSegments("flows");
@@ -89,7 +89,7 @@ public ManagementApiHttpResponse<SyncPagingIterable<FlowSummary>> list(
8989
responseBodyString, ListFlowsOffsetPaginatedResponseContent.class);
9090
int newPageNumber =
9191
request.getPage().map((Integer page) -> page + 1).orElse(1);
92-
FlowsListRequest nextRequest = FlowsListRequest.builder()
92+
ListFlowsRequestParameters nextRequest = ListFlowsRequestParameters.builder()
9393
.from(request)
9494
.page(newPageNumber)
9595
.build();

src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import com.auth0.client.mgmt.errors.TooManyRequestsError;
2121
import com.auth0.client.mgmt.errors.UnauthorizedError;
2222
import com.auth0.client.mgmt.types.ActionVersion;
23-
import com.auth0.client.mgmt.types.DeployActionVersionRequestBodyParams;
23+
import com.auth0.client.mgmt.types.DeployActionVersionRequestContent;
2424
import com.auth0.client.mgmt.types.DeployActionVersionResponseContent;
2525
import com.auth0.client.mgmt.types.GetActionVersionResponseContent;
2626
import com.auth0.client.mgmt.types.ListActionVersionsPaginatedResponseContent;
@@ -258,14 +258,14 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
258258
*/
259259
public CompletableFuture<ManagementApiHttpResponse<DeployActionVersionResponseContent>> deploy(
260260
String actionId, String id) {
261-
return deploy(actionId, id, OptionalNullable.<DeployActionVersionRequestBodyParams>absent());
261+
return deploy(actionId, id, OptionalNullable.<DeployActionVersionRequestContent>absent());
262262
}
263263

264264
/**
265265
* Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.
266266
*/
267267
public CompletableFuture<ManagementApiHttpResponse<DeployActionVersionResponseContent>> deploy(
268-
String actionId, String id, OptionalNullable<DeployActionVersionRequestBodyParams> request) {
268+
String actionId, String id, OptionalNullable<DeployActionVersionRequestContent> request) {
269269
return deploy(actionId, id, request, null);
270270
}
271271

@@ -275,7 +275,7 @@ public CompletableFuture<ManagementApiHttpResponse<DeployActionVersionResponseCo
275275
public CompletableFuture<ManagementApiHttpResponse<DeployActionVersionResponseContent>> deploy(
276276
String actionId,
277277
String id,
278-
OptionalNullable<DeployActionVersionRequestBodyParams> request,
278+
OptionalNullable<DeployActionVersionRequestContent> request,
279279
RequestOptions requestOptions) {
280280
HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
281281
.newBuilder()

src/main/java/com/auth0/client/mgmt/actions/AsyncVersionsClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.auth0.client.mgmt.core.RequestOptions;
1010
import com.auth0.client.mgmt.core.SyncPagingIterable;
1111
import com.auth0.client.mgmt.types.ActionVersion;
12-
import com.auth0.client.mgmt.types.DeployActionVersionRequestBodyParams;
12+
import com.auth0.client.mgmt.types.DeployActionVersionRequestContent;
1313
import com.auth0.client.mgmt.types.DeployActionVersionResponseContent;
1414
import com.auth0.client.mgmt.types.GetActionVersionResponseContent;
1515
import java.util.concurrent.CompletableFuture;
@@ -80,7 +80,7 @@ public CompletableFuture<DeployActionVersionResponseContent> deploy(String actio
8080
* Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.
8181
*/
8282
public CompletableFuture<DeployActionVersionResponseContent> deploy(
83-
String actionId, String id, OptionalNullable<DeployActionVersionRequestBodyParams> request) {
83+
String actionId, String id, OptionalNullable<DeployActionVersionRequestContent> request) {
8484
return this.rawClient.deploy(actionId, id, request).thenApply(response -> response.body());
8585
}
8686

@@ -90,7 +90,7 @@ public CompletableFuture<DeployActionVersionResponseContent> deploy(
9090
public CompletableFuture<DeployActionVersionResponseContent> deploy(
9191
String actionId,
9292
String id,
93-
OptionalNullable<DeployActionVersionRequestBodyParams> request,
93+
OptionalNullable<DeployActionVersionRequestContent> request,
9494
RequestOptions requestOptions) {
9595
return this.rawClient.deploy(actionId, id, request, requestOptions).thenApply(response -> response.body());
9696
}

src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import com.auth0.client.mgmt.errors.TooManyRequestsError;
2121
import com.auth0.client.mgmt.errors.UnauthorizedError;
2222
import com.auth0.client.mgmt.types.ActionVersion;
23-
import com.auth0.client.mgmt.types.DeployActionVersionRequestBodyParams;
23+
import com.auth0.client.mgmt.types.DeployActionVersionRequestContent;
2424
import com.auth0.client.mgmt.types.DeployActionVersionResponseContent;
2525
import com.auth0.client.mgmt.types.GetActionVersionResponseContent;
2626
import com.auth0.client.mgmt.types.ListActionVersionsPaginatedResponseContent;
@@ -196,14 +196,14 @@ public ManagementApiHttpResponse<GetActionVersionResponseContent> get(
196196
* Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.
197197
*/
198198
public ManagementApiHttpResponse<DeployActionVersionResponseContent> deploy(String actionId, String id) {
199-
return deploy(actionId, id, OptionalNullable.<DeployActionVersionRequestBodyParams>absent());
199+
return deploy(actionId, id, OptionalNullable.<DeployActionVersionRequestContent>absent());
200200
}
201201

202202
/**
203203
* Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.
204204
*/
205205
public ManagementApiHttpResponse<DeployActionVersionResponseContent> deploy(
206-
String actionId, String id, OptionalNullable<DeployActionVersionRequestBodyParams> request) {
206+
String actionId, String id, OptionalNullable<DeployActionVersionRequestContent> request) {
207207
return deploy(actionId, id, request, null);
208208
}
209209

@@ -213,7 +213,7 @@ public ManagementApiHttpResponse<DeployActionVersionResponseContent> deploy(
213213
public ManagementApiHttpResponse<DeployActionVersionResponseContent> deploy(
214214
String actionId,
215215
String id,
216-
OptionalNullable<DeployActionVersionRequestBodyParams> request,
216+
OptionalNullable<DeployActionVersionRequestContent> request,
217217
RequestOptions requestOptions) {
218218
HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
219219
.newBuilder()

src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.auth0.client.mgmt.core.RequestOptions;
1010
import com.auth0.client.mgmt.core.SyncPagingIterable;
1111
import com.auth0.client.mgmt.types.ActionVersion;
12-
import com.auth0.client.mgmt.types.DeployActionVersionRequestBodyParams;
12+
import com.auth0.client.mgmt.types.DeployActionVersionRequestContent;
1313
import com.auth0.client.mgmt.types.DeployActionVersionResponseContent;
1414
import com.auth0.client.mgmt.types.GetActionVersionResponseContent;
1515

@@ -77,7 +77,7 @@ public DeployActionVersionResponseContent deploy(String actionId, String id) {
7777
* Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately.
7878
*/
7979
public DeployActionVersionResponseContent deploy(
80-
String actionId, String id, OptionalNullable<DeployActionVersionRequestBodyParams> request) {
80+
String actionId, String id, OptionalNullable<DeployActionVersionRequestContent> request) {
8181
return this.rawClient.deploy(actionId, id, request).body();
8282
}
8383

@@ -87,7 +87,7 @@ public DeployActionVersionResponseContent deploy(
8787
public DeployActionVersionResponseContent deploy(
8888
String actionId,
8989
String id,
90-
OptionalNullable<DeployActionVersionRequestBodyParams> request,
90+
OptionalNullable<DeployActionVersionRequestContent> request,
9191
RequestOptions requestOptions) {
9292
return this.rawClient.deploy(actionId, id, request, requestOptions).body();
9393
}

0 commit comments

Comments
 (0)