Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 5.2.1 - 2025-12-17
* SDK regeneration
* Unable to analyze changes with AI, incrementing PATCH version.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth0",
"version": "5.2.0",
"version": "5.2.1",
"private": false,
"repository": {
"type": "git",
Expand Down
207 changes: 10 additions & 197 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2378,6 +2378,8 @@ Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domai

```typescript
await client.customDomains.list({
take: 1,
from: "from",
q: "q",
fields: "fields",
include_fields: true,
Expand Down Expand Up @@ -17413,69 +17415,6 @@ await client.guardian.factors.pushNotification.getApnsProvider();
<dl>
<dd>

Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant.

</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.guardian.factors.pushNotification.setApnsProvider();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `PushNotificationClient.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

<details><summary><code>client.guardian.factors.pushNotification.<a href="/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts">updateApnsProvider</a>({ ...params }) -> Management.UpdateGuardianFactorsProviderPushNotificationApnsResponseContent</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Modify configuration details of the multi-factor authentication APNS provider associated with your tenant.

</dd>
Expand All @@ -17492,7 +17431,7 @@ Modify configuration details of the multi-factor authentication APNS provider as
<dd>

```typescript
await client.guardian.factors.pushNotification.updateApnsProvider();
await client.guardian.factors.pushNotification.setApnsProvider({});
```

</dd>
Expand All @@ -17508,7 +17447,7 @@ await client.guardian.factors.pushNotification.updateApnsProvider();
<dl>
<dd>

**request:** `Management.UpdateGuardianFactorsProviderPushNotificationApnsRequestContent`
**request:** `Management.SetGuardianFactorsProviderPushNotificationApnsRequestContent`

</dd>
</dl>
Expand Down Expand Up @@ -17539,69 +17478,6 @@ await client.guardian.factors.pushNotification.updateApnsProvider();
<dl>
<dd>

Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant.

</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.guardian.factors.pushNotification.setFcmProvider();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `PushNotificationClient.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

<details><summary><code>client.guardian.factors.pushNotification.<a href="/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts">updateFcmProvider</a>({ ...params }) -> Management.UpdateGuardianFactorsProviderPushNotificationFcmResponseContent</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Modify configuration details of the multi-factor authentication FCM provider associated with your tenant.

</dd>
Expand All @@ -17618,7 +17494,7 @@ Modify configuration details of the multi-factor authentication FCM provider ass
<dd>

```typescript
await client.guardian.factors.pushNotification.updateFcmProvider();
await client.guardian.factors.pushNotification.setFcmProvider({});
```

</dd>
Expand All @@ -17634,7 +17510,7 @@ await client.guardian.factors.pushNotification.updateFcmProvider();
<dl>
<dd>

**request:** `Management.UpdateGuardianFactorsProviderPushNotificationFcmRequestContent`
**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmRequestContent`

</dd>
</dl>
Expand Down Expand Up @@ -17665,69 +17541,6 @@ await client.guardian.factors.pushNotification.updateFcmProvider();
<dl>
<dd>

Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.

</dd>
</dl>
</dd>
</dl>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.guardian.factors.pushNotification.setFcmv1Provider();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `PushNotificationClient.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

<details><summary><code>client.guardian.factors.pushNotification.<a href="/src/management/api/resources/guardian/resources/factors/resources/pushNotification/client/Client.ts">updateFcmv1Provider</a>({ ...params }) -> Management.UpdateGuardianFactorsProviderPushNotificationFcmv1ResponseContent</code></summary>
<dl>
<dd>

#### 📝 Description

<dl>
<dd>

<dl>
<dd>

Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant.

</dd>
Expand All @@ -17744,7 +17557,7 @@ Modify configuration details of the multi-factor authentication FCMV1 provider a
<dd>

```typescript
await client.guardian.factors.pushNotification.updateFcmv1Provider();
await client.guardian.factors.pushNotification.setFcmv1Provider({});
```

</dd>
Expand All @@ -17760,7 +17573,7 @@ await client.guardian.factors.pushNotification.updateFcmv1Provider();
<dl>
<dd>

**request:** `Management.UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent`
**request:** `Management.SetGuardianFactorsProviderPushNotificationFcmv1RequestContent`

</dd>
</dl>
Expand Down Expand Up @@ -20355,7 +20168,7 @@ const response = page.response;
<dl>
<dd>

Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>).
Update the verification status for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>.

</dd>
</dl>
Expand Down Expand Up @@ -20570,7 +20383,7 @@ await client.organizations.discoveryDomains.delete("id", "discovery_domain_id");
<dl>
<dd>

Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>).
Update the verification status for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>.

</dd>
</dl>
Expand Down
17 changes: 10 additions & 7 deletions src/management/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,26 @@ export interface BaseRequestOptions {
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
}

export type NormalizedClientOptions<T extends BaseClientOptions> = T & {
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
logging: core.logging.Logger;
authProvider?: core.AuthProvider;
};

export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions> = NormalizedClientOptions<T> & {
authProvider: core.AuthProvider;
};
export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> =
NormalizedClientOptions<T> & {
authProvider: core.AuthProvider;
};

export function normalizeClientOptions<T extends BaseClientOptions>(options: T): NormalizedClientOptions<T> {
export function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(
options: T,
): NormalizedClientOptions<T> {
return {
...options,
logging: core.logging.createLogger(options?.logging),
} as NormalizedClientOptions<T>;
}

export function normalizeClientOptionsWithAuth<T extends BaseClientOptions>(
export function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(
options: T,
): NormalizedClientOptionsWithAuth<T> {
const normalized = normalizeClientOptions(options) as NormalizedClientOptionsWithAuth<T>;
Expand All @@ -60,7 +63,7 @@ export function normalizeClientOptionsWithAuth<T extends BaseClientOptions>(
return normalized;
}

function withNoOpAuthProvider<T extends BaseClientOptions>(
function withNoOpAuthProvider<T extends BaseClientOptions = BaseClientOptions>(
options: NormalizedClientOptions<T>,
): NormalizedClientOptionsWithAuth<T> {
return {
Expand Down
Loading
Loading