feat: 예치금 시스템 추가 (은행 SMS 자동 매칭)
- manage_deposit Function Calling 추가 (잔액조회, 입금신고, 거래내역, 취소) - Email Worker로 은행 SMS 파싱 (하나/KB/신한 지원) - 양방향 자동 매칭: 사용자 신고 ↔ 은행 알림 - D1 테이블: user_deposits, deposit_transactions, bank_notifications - 관리자 전용: 대기목록 조회, 입금 확인/거절 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
22
src/types.ts
22
src/types.ts
@@ -10,6 +10,7 @@ export interface Env {
|
||||
DOMAIN_AGENT_ID?: string;
|
||||
NAMECHEAP_API_KEY?: string;
|
||||
DOMAIN_OWNER_ID?: string;
|
||||
DEPOSIT_ADMIN_ID?: string;
|
||||
}
|
||||
|
||||
export interface IntentAnalysis {
|
||||
@@ -69,3 +70,24 @@ export interface ConversationContext {
|
||||
recentMessages: BufferedMessage[];
|
||||
totalMessages: number;
|
||||
}
|
||||
|
||||
// Cloudflare Email Workers 타입
|
||||
export interface EmailMessage {
|
||||
from: string;
|
||||
to: string;
|
||||
headers: Headers;
|
||||
raw: ReadableStream;
|
||||
rawSize: number;
|
||||
setReject(reason: string): void;
|
||||
forward(to: string): Promise<void>;
|
||||
}
|
||||
|
||||
// 은행 알림 파싱 결과
|
||||
export interface BankNotification {
|
||||
bankName: string;
|
||||
depositorName: string;
|
||||
amount: number;
|
||||
balanceAfter?: number;
|
||||
transactionTime?: Date;
|
||||
rawMessage: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user