docs: update AI Studio design token audits

Refresh design token inventory files to reflect the latest UI sizing and layout configurations from the sandbox prototype.
This commit is contained in:
Md Najmul committed 2026-10-23 11:43:49 -05:00
1 parent 50449e96ad
commit d39d9f92f9
139 files changed
+10982 -6

No files matched your search

+54
View File
@@ -0,0 +1,54 @@
import { NextRequest, NextResponse } from 'next/server';
import { SDKManager } from '@/core/sdk/sdkManager';
export async function GET(
_req: NextRequest,
{ params }: { params: Promise<{ id: string }> }
) {
const { id } = await params;
const client = SDKManager.getClient(id);
if (!client) {
return NextResponse.json({ error: 'Client not found' }, { status: 404 });
}
return NextResponse.json({ client });
}
export async function PATCH(
req: NextRequest,
{ params }: { params: Promise<{ id: string }> }
) {
const { id } = await params;
try {
const body = await req.json();
// Special action: regenerate token
if (body.action === 'regenerate_token') {
const refreshed = SDKManager.regenerateToken(id);
if (!refreshed) {
return NextResponse.json({ error: 'Client not found' }, { status: 404 });
}
return NextResponse.json({ client: refreshed });
}
const updated = SDKManager.updateClient(id, body);
if (!updated) {
return NextResponse.json({ error: 'Client not found' }, { status: 404 });
}
return NextResponse.json({ client: updated });
} catch (err: unknown) {
const message = err instanceof Error ? err.message : 'Update failed';
return NextResponse.json({ error: message }, { status: 500 });
}
}
export async function DELETE(
_req: NextRequest,
{ params }: { params: Promise<{ id: string }> }
) {
const { id } = await params;
const deleted = SDKManager.deleteClient(id);
if (!deleted) {
return NextResponse.json({ error: 'Client not found' }, { status: 404 });
}
return NextResponse.json({ success: true, message: `Client ${id} deleted` });
}