import { APIClient } from '@agentuity/api'; import { OAuthScopesResponseSchema, type OAuthScopesData } from './types.ts'; import { OAuthResponseError } from './util.ts'; export async function oauthScopes(client: APIClient): Promise { const resp = await client.get('/oidc/scopes', OAuthScopesResponseSchema); if (resp.success) { return resp.data; } throw new OAuthResponseError({ message: resp.message }); }