feat: add DomainSession and DepositSession types
- Add type definitions for domain and deposit agent sessions - Follow existing ServerSession pattern Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
46
src/types.ts
46
src/types.ts
@@ -295,6 +295,52 @@ export interface TroubleshootSession {
|
||||
updatedAt: number;
|
||||
}
|
||||
|
||||
// Domain Agent Session Status
|
||||
export type DomainSessionStatus =
|
||||
| 'gathering' // 정보 수집 중 (추천용 키워드, 용도)
|
||||
| 'suggesting' // 추천 결과 표시 중
|
||||
| 'confirming' // 등록 확인 대기
|
||||
| 'setting_ns' // 네임서버 변경 확인 대기
|
||||
| 'completed'; // 완료
|
||||
|
||||
// Domain Agent Session
|
||||
export interface DomainSession {
|
||||
user_id: string;
|
||||
status: DomainSessionStatus;
|
||||
collected_info: {
|
||||
keywords?: string;
|
||||
purpose?: string;
|
||||
budget?: number;
|
||||
preferred_tlds?: string[];
|
||||
};
|
||||
target_domain?: string;
|
||||
messages: Array<{ role: 'user' | 'assistant'; content: string }>;
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
expires_at: number;
|
||||
}
|
||||
|
||||
// Deposit Agent Session Status
|
||||
export type DepositSessionStatus =
|
||||
| 'collecting_amount' // 금액 수집 중
|
||||
| 'collecting_name' // 입금자명 수집 중
|
||||
| 'confirming' // 입금 신고 확인 대기
|
||||
| 'completed'; // 완료
|
||||
|
||||
// Deposit Agent Session
|
||||
export interface DepositSession {
|
||||
user_id: string;
|
||||
status: DepositSessionStatus;
|
||||
collected_info: {
|
||||
amount?: number;
|
||||
depositor_name?: string;
|
||||
};
|
||||
messages: Array<{ role: 'user' | 'assistant'; content: string }>;
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
expires_at: number;
|
||||
}
|
||||
|
||||
// Deposit Agent 결과 타입
|
||||
export interface DepositBalanceResult {
|
||||
balance: number;
|
||||
|
||||
Reference in New Issue
Block a user