Skip to content

Commit d07a8df

Browse files
feat: add Organization Role Members, thirdPartyClientAccess, optional fields and contains breaking changes (#893)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Tanya Sinha <sinha.tanya26@gmail.com>
1 parent 95f8d51 commit d07a8df

416 files changed

Lines changed: 84778 additions & 650 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.

.fern/replay.lock

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference.md

Lines changed: 131 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5520,7 +5520,7 @@ client.eventStreams().test(
55205520
"id",
55215521
CreateEventStreamTestEventRequestContent
55225522
.builder()
5523-
.eventType(EventStreamTestEventTypeEnum.GROUP_CREATED)
5523+
.eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED)
55245524
.build()
55255525
);
55265526
```
@@ -5603,7 +5603,7 @@ client.events().subscribe(
56035603
OptionalNullable.of("from_timestamp")
56045604
)
56055605
.eventType(
5606-
Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)
5606+
Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED)
56075607
)
56085608
.build()
56095609
);
@@ -8989,6 +8989,14 @@ client.organizations().create(
89898989

89908990
**tokenQuota:** `Optional<CreateTokenQuota>`
89918991

8992+
</dd>
8993+
</dl>
8994+
8995+
<dl>
8996+
<dd>
8997+
8998+
**thirdPartyClientAccess:** `Optional<OrganizationThirdPartyClientAccessEnum>`
8999+
89929000
</dd>
89939001
</dl>
89949002
</dd>
@@ -9252,6 +9260,14 @@ client.organizations().update(
92529260

92539261
**tokenQuota:** `Optional<UpdateTokenQuota>`
92549262

9263+
</dd>
9264+
</dl>
9265+
9266+
<dl>
9267+
<dd>
9268+
9269+
**thirdPartyClientAccess:** `Optional<OrganizationThirdPartyClientAccessEnum>`
9270+
92559271
</dd>
92569272
</dl>
92579273
</dd>
@@ -28128,6 +28144,119 @@ client.organizations().members().effectiveRoles().sources().groups().list(
2812828144
</dl>
2812928145

2813028146

28147+
</dd>
28148+
</dl>
28149+
</details>
28150+
28151+
## Organizations Roles Members
28152+
<details><summary><code>client.organizations.roles.members.list(id, roleId) -> SyncPagingIterable&amp;lt;RoleMember&amp;gt;</code></summary>
28153+
<dl>
28154+
<dd>
28155+
28156+
#### 📝 Description
28157+
28158+
<dl>
28159+
<dd>
28160+
28161+
<dl>
28162+
<dd>
28163+
28164+
List the organization members assigned a specific role within the context of an organization.
28165+
</dd>
28166+
</dl>
28167+
</dd>
28168+
</dl>
28169+
28170+
#### 🔌 Usage
28171+
28172+
<dl>
28173+
<dd>
28174+
28175+
<dl>
28176+
<dd>
28177+
28178+
```java
28179+
client.organizations().roles().members().list(
28180+
"id",
28181+
"role_id",
28182+
ListOrganizationRoleMembersRequestParameters
28183+
.builder()
28184+
.from(
28185+
OptionalNullable.of("from")
28186+
)
28187+
.take(
28188+
OptionalNullable.of(1)
28189+
)
28190+
.fields(
28191+
OptionalNullable.of("fields")
28192+
)
28193+
.includeFields(
28194+
OptionalNullable.of(true)
28195+
)
28196+
.build()
28197+
);
28198+
```
28199+
</dd>
28200+
</dl>
28201+
</dd>
28202+
</dl>
28203+
28204+
#### ⚙️ Parameters
28205+
28206+
<dl>
28207+
<dd>
28208+
28209+
<dl>
28210+
<dd>
28211+
28212+
**id:** `String` — ID of the organization.
28213+
28214+
</dd>
28215+
</dl>
28216+
28217+
<dl>
28218+
<dd>
28219+
28220+
**roleId:** `String` — ID of the role to retrieve the assigned members for.
28221+
28222+
</dd>
28223+
</dl>
28224+
28225+
<dl>
28226+
<dd>
28227+
28228+
**from:** `Optional<String>` — Optional Id from which to start selection.
28229+
28230+
</dd>
28231+
</dl>
28232+
28233+
<dl>
28234+
<dd>
28235+
28236+
**take:** `Optional<Integer>` — Number of results per page. Defaults to 50. Values above the maximum permitted size are capped.
28237+
28238+
</dd>
28239+
</dl>
28240+
28241+
<dl>
28242+
<dd>
28243+
28244+
**fields:** `Optional<String>` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
28245+
28246+
</dd>
28247+
</dl>
28248+
28249+
<dl>
28250+
<dd>
28251+
28252+
**includeFields:** `Optional<Boolean>` — Whether specified fields are to be included (true) or excluded (false). Defaults to true.
28253+
28254+
</dd>
28255+
</dl>
28256+
</dd>
28257+
</dl>
28258+
28259+
2813128260
</dd>
2813228261
</dl>
2813328262
</details>

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.auth0.client.mgmt.organizations.AsyncGroupsClient;
1515
import com.auth0.client.mgmt.organizations.AsyncInvitationsClient;
1616
import com.auth0.client.mgmt.organizations.AsyncMembersClient;
17+
import com.auth0.client.mgmt.organizations.roles.AsyncRolesClient;
1718
import com.auth0.client.mgmt.types.CreateOrganizationRequestContent;
1819
import com.auth0.client.mgmt.types.CreateOrganizationResponseContent;
1920
import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent;
@@ -44,6 +45,8 @@ public class AsyncOrganizationsClient {
4445

4546
protected final Supplier<AsyncGroupsClient> groupsClient;
4647

48+
protected final Supplier<AsyncRolesClient> rolesClient;
49+
4750
public AsyncOrganizationsClient(ClientOptions clientOptions) {
4851
this.clientOptions = clientOptions;
4952
this.rawClient = new AsyncRawOrganizationsClient(clientOptions);
@@ -54,6 +57,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) {
5457
this.invitationsClient = Suppliers.memoize(() -> new AsyncInvitationsClient(clientOptions));
5558
this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions));
5659
this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions));
60+
this.rolesClient = Suppliers.memoize(() -> new AsyncRolesClient(clientOptions));
5761
}
5862

5963
/**
@@ -261,4 +265,8 @@ public AsyncMembersClient members() {
261265
public AsyncGroupsClient groups() {
262266
return this.groupsClient.get();
263267
}
268+
269+
public AsyncRolesClient roles() {
270+
return this.rolesClient.get();
271+
}
264272
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.auth0.client.mgmt.organizations.GroupsClient;
1515
import com.auth0.client.mgmt.organizations.InvitationsClient;
1616
import com.auth0.client.mgmt.organizations.MembersClient;
17+
import com.auth0.client.mgmt.organizations.roles.RolesClient;
1718
import com.auth0.client.mgmt.types.CreateOrganizationRequestContent;
1819
import com.auth0.client.mgmt.types.CreateOrganizationResponseContent;
1920
import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent;
@@ -43,6 +44,8 @@ public class OrganizationsClient {
4344

4445
protected final Supplier<GroupsClient> groupsClient;
4546

47+
protected final Supplier<RolesClient> rolesClient;
48+
4649
public OrganizationsClient(ClientOptions clientOptions) {
4750
this.clientOptions = clientOptions;
4851
this.rawClient = new RawOrganizationsClient(clientOptions);
@@ -53,6 +56,7 @@ public OrganizationsClient(ClientOptions clientOptions) {
5356
this.invitationsClient = Suppliers.memoize(() -> new InvitationsClient(clientOptions));
5457
this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions));
5558
this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions));
59+
this.rolesClient = Suppliers.memoize(() -> new RolesClient(clientOptions));
5660
}
5761

5862
/**
@@ -258,4 +262,8 @@ public MembersClient members() {
258262
public GroupsClient groups() {
259263
return this.groupsClient.get();
260264
}
265+
266+
public RolesClient roles() {
267+
return this.rolesClient.get();
268+
}
261269
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.auth0.client.mgmt.organizations.roles;
5+
6+
import com.auth0.client.mgmt.core.ClientOptions;
7+
import com.auth0.client.mgmt.core.RequestOptions;
8+
import com.auth0.client.mgmt.core.SyncPagingIterable;
9+
import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters;
10+
import com.auth0.client.mgmt.types.RoleMember;
11+
import java.util.concurrent.CompletableFuture;
12+
13+
public class AsyncMembersClient {
14+
protected final ClientOptions clientOptions;
15+
16+
private final AsyncRawMembersClient rawClient;
17+
18+
public AsyncMembersClient(ClientOptions clientOptions) {
19+
this.clientOptions = clientOptions;
20+
this.rawClient = new AsyncRawMembersClient(clientOptions);
21+
}
22+
23+
/**
24+
* Get responses with HTTP metadata like headers
25+
*/
26+
public AsyncRawMembersClient withRawResponse() {
27+
return this.rawClient;
28+
}
29+
30+
/**
31+
* List the organization members assigned a specific role within the context of an organization.
32+
*/
33+
public CompletableFuture<SyncPagingIterable<RoleMember>> list(String id, String roleId) {
34+
return this.rawClient.list(id, roleId).thenApply(response -> response.body());
35+
}
36+
37+
/**
38+
* List the organization members assigned a specific role within the context of an organization.
39+
*/
40+
public CompletableFuture<SyncPagingIterable<RoleMember>> list(
41+
String id, String roleId, RequestOptions requestOptions) {
42+
return this.rawClient.list(id, roleId, requestOptions).thenApply(response -> response.body());
43+
}
44+
45+
/**
46+
* List the organization members assigned a specific role within the context of an organization.
47+
*/
48+
public CompletableFuture<SyncPagingIterable<RoleMember>> list(
49+
String id, String roleId, ListOrganizationRoleMembersRequestParameters request) {
50+
return this.rawClient.list(id, roleId, request).thenApply(response -> response.body());
51+
}
52+
53+
/**
54+
* List the organization members assigned a specific role within the context of an organization.
55+
*/
56+
public CompletableFuture<SyncPagingIterable<RoleMember>> list(
57+
String id,
58+
String roleId,
59+
ListOrganizationRoleMembersRequestParameters request,
60+
RequestOptions requestOptions) {
61+
return this.rawClient.list(id, roleId, request, requestOptions).thenApply(response -> response.body());
62+
}
63+
}

0 commit comments

Comments
 (0)