@vibexnpm/talkx 6.1.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1038,6 +1038,15 @@ export interface MyProfile {
1038
1038
  orgNodeId?: string | null;
1039
1039
  orgName?: string | null;
1040
1040
  preferredLanguage?: string | null;
1041
+ /**
1042
+ * 확장 메타데이터 — 내 값을 볼 수 있는 **유일한** 곳이다.
1043
+ *
1044
+ * 고치는 문은 `updateMyProfile({ metadata })` 하나뿐이고 **전체 교체**다 —
1045
+ * 서버는 병합하지 않는다. 부분 수정하려면 이 값을 먼저 읽어 병합한 뒤 통째로 보내라.
1046
+ */
1047
+ metadata?: Record<string, unknown> | null;
1048
+ /** IANA zone id — 어시가 대화 시각을 이 기준으로 렌더한다. 읽을 수 없으면 설정 화면이 현재 값을 못 보여준다. */
1049
+ timeZone?: string | null;
1041
1050
  projectId: string;
1042
1051
  joinedAt?: string | null;
1043
1052
  /**
@@ -1255,6 +1264,18 @@ export interface TypingEvent {
1255
1264
  senderType: 'USER' | 'ASSISTANT';
1256
1265
  }
1257
1266
 
1267
+ /** 문서 분석의 재입장 복원 가능한 실측 진행률. */
1268
+ export interface DocumentAnalysisProgress {
1269
+ /** ANALYZING=페이지/텍스트 구간 처리, SUMMARIZING=확보한 근거 종합. */
1270
+ stage: 'ANALYZING' | 'SUMMARIZING';
1271
+ /** ANALYZING일 때 처리 완료 수. */
1272
+ current: number | null;
1273
+ /** ANALYZING일 때 전체 수. */
1274
+ total: number | null;
1275
+ /** 진행 단위. SUMMARIZING일 때 null. */
1276
+ unit: 'DOCUMENT' | 'PAGE' | 'TEXT_CHUNK' | null;
1277
+ }
1278
+
1258
1279
  /**
1259
1280
  * AI 진행 표시 이벤트 — `/topic/chat/{roomId}/assistant-stream` 의 PHASE/DONE.
1260
1281
  *
@@ -1272,6 +1293,7 @@ export interface TypingEvent {
1272
1293
  *
1273
1294
  * 현재는 PM_BACKSTAGE(방당 단일 PM) 만 phase 를 발행 — 멘션/버튼/14인 경로는 본 이벤트 없이 typing 만.
1274
1295
  */
1296
+
1275
1297
  export interface AssistantProgressEvent {
1276
1298
  /** 채팅방 ID. */
1277
1299
  roomId: string;
@@ -1285,7 +1307,9 @@ export interface AssistantProgressEvent {
1285
1307
  /** 진행 주체 페르소나 ID. */
1286
1308
  personaId: string | null;
1287
1309
  /** 진행 단계 — `active:true` 일 때. 종료 시 null. */
1288
- phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'WRITING' | null;
1310
+ phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'DOCUMENT_ANALYSIS' | 'WRITING' | null;
1311
+ /** DOCUMENT_ANALYSIS의 실측 진행률. 같은 phase heartbeat 사이와 재입장 후에도 보존된다. */
1312
+ progress?: DocumentAnalysisProgress | null;
1289
1313
  /** phase 의 기본 표시 라벨(예: "생각 중…"). SDK 매핑 — 커스텀하려면 `phase` 사용. 종료 시 null. */
1290
1314
  label: string | null;
1291
1315
  /** true=진행중(PHASE/DELTA) / false=종료(DONE·TTL). */
@@ -1351,7 +1375,8 @@ export interface AssistantRoomProgressEvent {
1351
1375
  /** 표시 기준이 된 stream (가장 최근 갱신). 없으면 null. */
1352
1376
  streamId: string | null;
1353
1377
  personaId: string | null;
1354
- phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'WRITING' | null;
1378
+ phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'DOCUMENT_ANALYSIS' | 'WRITING' | null;
1379
+ progress?: DocumentAnalysisProgress | null;
1355
1380
  label: string | null;
1356
1381
  /** 표시 기준 stream 의 누적 본문. `textAvailable:false` 거나 진행 중이 아니면 null. */
1357
1382
  text?: string | null;
@@ -1363,7 +1388,8 @@ export interface AssistantRoomProgressEvent {
1363
1388
  export interface AssistantProgressStreamSnapshot {
1364
1389
  streamId: string;
1365
1390
  personaId: string | null;
1366
- phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'WRITING' | null;
1391
+ phase: 'THINKING' | 'SEARCHING' | 'PLANNING' | 'DOCUMENT_ANALYSIS' | 'WRITING' | null;
1392
+ progress?: DocumentAnalysisProgress | null;
1367
1393
  label: string | null;
1368
1394
  text: string | null;
1369
1395
  textAvailable: boolean;
@@ -2358,7 +2384,17 @@ export default class TalkFlowClient implements SdkEventEmitter<TalkFlowClientEve
2358
2384
  getMyProfile(): Promise<MyProfile>;
2359
2385
 
2360
2386
  /** 내 정보 수정 — 응답의 새 토큰을 자동 채택한다(name/profileUrl 이 토큰 claim). */
2361
- updateMyProfile(profile: { name?: string; phone?: string; profileUrl?: string }): Promise<MyProfile>;
2387
+ updateMyProfile(profile: {
2388
+ name?: string;
2389
+ phone?: string;
2390
+ profileUrl?: string;
2391
+ /** **전체 교체** — 부분 수정은 `getMyProfile()` 로 읽어 병합한 뒤 통째로 보낸다. */
2392
+ metadata?: Record<string, unknown> | null;
2393
+ /** BCP-47 코드 / 'OFF'(원문) / null */
2394
+ preferredLanguage?: string | null;
2395
+ /** IANA zone id — `Intl.DateTimeFormat().resolvedOptions().timeZone` */
2396
+ timeZone?: string;
2397
+ }): Promise<MyProfile>;
2362
2398
 
2363
2399
  /** 비밀번호 변경 — 현재 비밀번호 재확인. 토큰은 그대로 유효해 재로그인이 필요 없다. */
2364
2400
  changeMyPassword(params: { currentPassword: string; newPassword: string }): Promise<unknown>;