Skip to content

Commit 279fd80

Browse files
fern-api[bot]amitsingh05667ankita10119
authored
feat: add org role members, third-party client access, passwordless type fixes, and OIDC connection updates (#1363)
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Amit Singh <amitsingh05667@gmail.com> Co-authored-by: Ankita Tripathi <51994119+ankita10119@users.noreply.github.com>
1 parent ec645b1 commit 279fd80

24 files changed

Lines changed: 5794 additions & 375 deletions

File tree

reference.md

Lines changed: 105 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3965,7 +3965,7 @@ await client.eventStreams.update("id");
39653965

39663966
```typescript
39673967
await client.eventStreams.test("id", {
3968-
event_type: "group.created",
3968+
event_type: "connection.created",
39693969
});
39703970
```
39713971

@@ -4042,7 +4042,7 @@ Subscribe to events via Server-Sent Events (SSE)
40424042
const response = await client.events.subscribe({
40434043
from: "from",
40444044
from_timestamp: "from_timestamp",
4045-
event_type: ["group.created"],
4045+
event_type: ["connection.created"],
40464046
});
40474047
for await (const item of response) {
40484048
console.log(item);
@@ -25692,6 +25692,109 @@ const response = page.response;
2569225692
</dl>
2569325693
</details>
2569425694

25695+
## Organizations Roles Members
25696+
25697+
<details><summary><code>client.organizations.roles.members.<a href="/src/management/api/resources/organizations/resources/roles/resources/members/client/Client.ts">list</a>(id, role_id, { ...params }) -> core.Page&lt;Management.RoleMember, Management.ListOrganizationRoleMembersResponseContent&gt;</code></summary>
25698+
<dl>
25699+
<dd>
25700+
25701+
#### 📝 Description
25702+
25703+
<dl>
25704+
<dd>
25705+
25706+
<dl>
25707+
<dd>
25708+
25709+
List the organization members assigned a specific role within the context of an organization.
25710+
25711+
</dd>
25712+
</dl>
25713+
</dd>
25714+
</dl>
25715+
25716+
#### 🔌 Usage
25717+
25718+
<dl>
25719+
<dd>
25720+
25721+
<dl>
25722+
<dd>
25723+
25724+
```typescript
25725+
const pageableResponse = await client.organizations.roles.members.list("id", "role_id", {
25726+
from: "from",
25727+
take: 1,
25728+
fields: "fields",
25729+
include_fields: true,
25730+
});
25731+
for await (const item of pageableResponse) {
25732+
console.log(item);
25733+
}
25734+
25735+
// Or you can manually iterate page-by-page
25736+
let page = await client.organizations.roles.members.list("id", "role_id", {
25737+
from: "from",
25738+
take: 1,
25739+
fields: "fields",
25740+
include_fields: true,
25741+
});
25742+
while (page.hasNextPage()) {
25743+
page = page.getNextPage();
25744+
}
25745+
25746+
// You can also access the underlying response
25747+
const response = page.response;
25748+
```
25749+
25750+
</dd>
25751+
</dl>
25752+
</dd>
25753+
</dl>
25754+
25755+
#### ⚙️ Parameters
25756+
25757+
<dl>
25758+
<dd>
25759+
25760+
<dl>
25761+
<dd>
25762+
25763+
**id:** `string` — ID of the organization.
25764+
25765+
</dd>
25766+
</dl>
25767+
25768+
<dl>
25769+
<dd>
25770+
25771+
**role_id:** `string` — ID of the role to retrieve the assigned members for.
25772+
25773+
</dd>
25774+
</dl>
25775+
25776+
<dl>
25777+
<dd>
25778+
25779+
**request:** `Management.ListOrganizationRoleMembersRequestParameters`
25780+
25781+
</dd>
25782+
</dl>
25783+
25784+
<dl>
25785+
<dd>
25786+
25787+
**requestOptions:** `MembersClient.RequestOptions`
25788+
25789+
</dd>
25790+
</dl>
25791+
</dd>
25792+
</dl>
25793+
25794+
</dd>
25795+
</dl>
25796+
</details>
25797+
2569525798
## Prompts Rendering
2569625799

2569725800
<details><summary><code>client.prompts.rendering.<a href="/src/management/api/resources/prompts/resources/rendering/client/Client.ts">list</a>({ ...params }) -> core.Page&lt;Management.ListAculsResponseContentItem, Management.ListAculsOffsetPaginatedResponseContent&gt;</code></summary>

src/management/api/requests/requests.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ export interface UpdateEventStreamRequestContent {
808808
/**
809809
* @example
810810
* {
811-
* event_type: "group.created"
811+
* event_type: "connection.created"
812812
* }
813813
*/
814814
export interface CreateEventStreamTestEventRequestContent {
@@ -821,7 +821,7 @@ export interface CreateEventStreamTestEventRequestContent {
821821
* {
822822
* from: "from",
823823
* from_timestamp: "from_timestamp",
824-
* event_type: ["group.created"]
824+
* event_type: ["connection.created"]
825825
* }
826826
*/
827827
export interface SubscribeEventsRequestParameters {
@@ -1252,6 +1252,7 @@ export interface CreateOrganizationRequestContent {
12521252
/** Connections that will be enabled for this organization. See POST enabled_connections endpoint for the object format. (Max of 10 connections allowed) */
12531253
enabled_connections?: Management.ConnectionForOrganization[];
12541254
token_quota?: Management.CreateTokenQuota;
1255+
third_party_client_access?: Management.OrganizationThirdPartyClientAccessEnum;
12551256
}
12561257

12571258
/**
@@ -1266,6 +1267,7 @@ export interface UpdateOrganizationRequestContent {
12661267
branding?: Management.OrganizationBranding;
12671268
metadata?: Management.OrganizationMetadata;
12681269
token_quota?: Management.UpdateTokenQuota | null;
1270+
third_party_client_access?: Management.OrganizationThirdPartyClientAccessEnum;
12691271
}
12701272

12711273
/**
@@ -3644,6 +3646,26 @@ export interface ListOrganizationMemberRoleSourceGroupsRequestParameters {
36443646
role_id: string;
36453647
}
36463648

3649+
/**
3650+
* @example
3651+
* {
3652+
* from: "from",
3653+
* take: 1,
3654+
* fields: "fields",
3655+
* include_fields: true
3656+
* }
3657+
*/
3658+
export interface ListOrganizationRoleMembersRequestParameters {
3659+
/** Optional Id from which to start selection. */
3660+
from?: string | null;
3661+
/** Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. */
3662+
take?: number | null;
3663+
/** 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. */
3664+
fields?: string | null;
3665+
/** Whether specified fields are to be included (true) or excluded (false). Defaults to true. */
3666+
include_fields?: boolean | null;
3667+
}
3668+
36473669
/**
36483670
* @example
36493671
* {

src/management/api/resources/eventStreams/client/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export class EventStreamsClient {
461461
*
462462
* @example
463463
* await client.eventStreams.test("id", {
464-
* event_type: "group.created"
464+
* event_type: "connection.created"
465465
* })
466466
*/
467467
public test(

src/management/api/resources/organizations/client/Client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { EnabledConnectionsClient } from "../resources/enabledConnections/client
1515
import { GroupsClient } from "../resources/groups/client/Client.js";
1616
import { InvitationsClient } from "../resources/invitations/client/Client.js";
1717
import { MembersClient } from "../resources/members/client/Client.js";
18+
import { RolesClient } from "../resources/roles/client/Client.js";
1819

1920
export declare namespace OrganizationsClient {
2021
export type Options = BaseClientOptions;
@@ -31,6 +32,7 @@ export class OrganizationsClient {
3132
protected _invitations: InvitationsClient | undefined;
3233
protected _members: MembersClient | undefined;
3334
protected _groups: GroupsClient | undefined;
35+
protected _roles: RolesClient | undefined;
3436

3537
constructor(options: OrganizationsClient.Options) {
3638
this._options = normalizeClientOptionsWithAuth(options);
@@ -64,6 +66,10 @@ export class OrganizationsClient {
6466
return (this._groups ??= new GroupsClient(this._options));
6567
}
6668

69+
public get roles(): RolesClient {
70+
return (this._roles ??= new RolesClient(this._options));
71+
}
72+
6773
/**
6874
* Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations.
6975
*

src/management/api/resources/organizations/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export * as enabledConnections from "./enabledConnections/index.js";
55
export * as groups from "./groups/index.js";
66
export * as invitations from "./invitations/index.js";
77
export * as members from "./members/index.js";
8+
export * as roles from "./roles/index.js";
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
import type { BaseClientOptions } from "../../../../../../BaseClient.js";
4+
import { normalizeClientOptionsWithAuth, type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
5+
import * as core from "../../../../../../core/index.js";
6+
import * as environments from "../../../../../../environments.js";
7+
import { MembersClient } from "../resources/members/client/Client.js";
8+
9+
export declare namespace RolesClient {
10+
export type Options = BaseClientOptions;
11+
}
12+
13+
export class RolesClient {
14+
protected readonly _options: NormalizedClientOptionsWithAuth<RolesClient.Options>;
15+
protected _members: MembersClient | undefined;
16+
17+
constructor(options: RolesClient.Options) {
18+
this._options = normalizeClientOptionsWithAuth(options);
19+
}
20+
21+
public get members(): MembersClient {
22+
return (this._members ??= new MembersClient(this._options));
23+
}
24+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./client/index.js";
2+
export * from "./resources/index.js";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * as members from "./members/index.js";

0 commit comments

Comments
 (0)