Skip to content

feat: Add support for async_approval_notification_channels to Client interfaces#1231

Merged
kushalshit27 merged 2 commits intov4from
SDK-7017-ciba-with-rar-async-approval_notification-channels
Nov 3, 2025
Merged

feat: Add support for async_approval_notification_channels to Client interfaces#1231
kushalshit27 merged 2 commits intov4from
SDK-7017-ciba-with-rar-async-approval_notification-channels

Conversation

@kushalshit27
Copy link
Contributor

Changes

Added support for async approval notification channels to Client interfaces

Endpoint Method Function
/api/v2/clients POST create
/api/v2/clients/{id} PATCH update
/api/v2/clients/{id} GET get

Manual Testing Snippet

  1. Install npm install auth0
  2. Get Domain, ClientId and ClientSecret from Auth0 Dashboard
import { ManagementClient } from 'auth0';

const client = new ManagementClient({
  domain: '<DOMAIN>',
  clientId: '<CLIENT_ID>',
  clientSecret: '<CLIENT_SECRET>',
});

// Create a client with async approval notification channels
const createClientPayload: ClientCreate = {
  name: 'test-client-with-async-approval',
  app_type: 'regular_web',
  async_approval_notification_channels: ['guardian-push', 'email']
};

const newClient = await client.clients.create(createClientPayload);
console.log('Created Client:', newClient.data);

// Update a client with async approval notification channels
const updateClientPayload: ClientUpdate = {
  async_approval_notification_channels: ['email']
};

const updatedClient = await client.clients.update(
  { client_id: '<CLIENT_ID>' },
  updateClientPayload
);
console.log('Updated Client:', updatedClient.data);

// Get client and verify async_approval_notification_channels
const clientDetails = await client.clients.get({ client_id: '<CLIENT_ID>' });
console.log('Client Notification Channels:', clientDetails.data.async_approval_notification_channels);

Testing

This change adds type definitions and comprehensive test coverage for the new async approval notification channels feature.

  • This change adds unit test coverage
  • All existing and new tests complete without errors

Checklist

- src/management/__generated/models/index.ts: Introduced AsyncApprovalNotificationsChannelsEnum for notification channels.
- src/management/__generated/models/index.ts: Added async_approval_notification_channels property to Client, ClientCreate, and ClientUpdate interfaces.
- test/management/client.test.ts: Include async_approval_notification_channels in client response mock
- test/management/client.test.ts: Validate async_approval_notification_channels in getAll test
- test/management/client.test.ts: Validate async_approval_notification_channels in create test
- test/management/client.test.ts: Validate async_approval_notification_channels in update test
@kushalshit27 kushalshit27 marked this pull request as ready for review November 3, 2025 10:09
@kushalshit27 kushalshit27 requested a review from a team as a code owner November 3, 2025 10:09
@kushalshit27 kushalshit27 merged commit a769a23 into v4 Nov 3, 2025
1 check passed
@kushalshit27 kushalshit27 deleted the SDK-7017-ciba-with-rar-async-approval_notification-channels branch November 3, 2025 10:22
@tanya732 tanya732 mentioned this pull request Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants