BrandApp Control

SDK operations

Environment

preview

Last SDK check 48 seconds ago. Secrets stay in route handlers.

connectedbrandapp_8f2c...21ad · synced 48 seconds ago

SDK-backed admin center

EH
live

1,248

OAuth sessions

99.98% success · secret due

live

18

EAV entities

3 synced today

live

8,420

AI credits

of 10,000 left

live

3/4

Published terms

refund policy draft

Runtime contract

lazy clients
// lib/brandapp-sdk.ts
import { createReoptEavClient } from "@reopt-ai/brandapp-sdk/eav";
import { createReoptTermsClient } from "@reopt-ai/brandapp-sdk/terms";

type BrandappClients = {
  eav: ReturnType<typeof createReoptEavClient>;
  terms: ReturnType<typeof createReoptTermsClient>;
};

let cachedClients: BrandappClients | undefined;

function readConfig() {
  return {
    clientId: process.env.BRANDAPP_CLIENT_ID!,
    clientSecret: process.env.BRANDAPP_CLIENT_SECRET!,
    brandappId: process.env.BRANDAPP_ID!,
    baseUrl: process.env.REOPT_BASE_URL,
  };
}

export function getBrandappClients() {
  if (!cachedClients) {
    const config = readConfig();
    cachedClients = {
      eav: createReoptEavClient(config),
      terms: createReoptTermsClient(config),
    };
  }
  return cachedClients;
}

Health checks

SDK verifier

verifies server-only config before release

ready

AI provider

Vercel AI SDK UIMessage stream

streaming

AI budget guard

enable before image or long reasoning runs

watch

Webhook delivery

terms.published failed at customer endpoint

failed

EAV schema

2 optional attrs need review

watch

Terms fallback

refund draft falls back to i18n copy

review

Auth session

expires in 58 minutes

fresh

OAuth secret

rotation due within 7 days

due

SDK client cache

route handlers reuse server clients

ready

BrandApp doctor

run before publishing config changes

ready

Operations log

2 of 2 events

SDK sync completed

ok

EAV, terms, auth, and AI clients checked 48 seconds ago

Schema drift detected

check

2 optional EAV attrs need owner review

reopt design 예제실제 서비스가 아닌 데모 화면입니다템플릿 목록

예제 안내

이 화면은 실제 서비스가 아니라 독립 앱처럼 구성한 reopt design 예제입니다.

구성요소와 사용법 보기내 프로젝트에 설치하기

직접 적용하기

위 구성요소 안내에서 라이브 예제와 import 코드를 확인하고, 설치 가이드로 스타일과 테마를 연결하세요.

실제 서비스 연결

인증·API·저장 방식을 확인한 뒤 자신의 환경에 연결하세요. 예제마다 지원하는 동작과 샘플 데이터 범위가 다릅니다.