@vibexnpm/talkx 6.1.0 → 7.0.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
  /**
@@ -2358,7 +2367,17 @@ export default class TalkFlowClient implements SdkEventEmitter<TalkFlowClientEve
2358
2367
  getMyProfile(): Promise<MyProfile>;
2359
2368
 
2360
2369
  /** 내 정보 수정 — 응답의 새 토큰을 자동 채택한다(name/profileUrl 이 토큰 claim). */
2361
- updateMyProfile(profile: { name?: string; phone?: string; profileUrl?: string }): Promise<MyProfile>;
2370
+ updateMyProfile(profile: {
2371
+ name?: string;
2372
+ phone?: string;
2373
+ profileUrl?: string;
2374
+ /** **전체 교체** — 부분 수정은 `getMyProfile()` 로 읽어 병합한 뒤 통째로 보낸다. */
2375
+ metadata?: Record<string, unknown> | null;
2376
+ /** BCP-47 코드 / 'OFF'(원문) / null */
2377
+ preferredLanguage?: string | null;
2378
+ /** IANA zone id — `Intl.DateTimeFormat().resolvedOptions().timeZone` */
2379
+ timeZone?: string;
2380
+ }): Promise<MyProfile>;
2362
2381
 
2363
2382
  /** 비밀번호 변경 — 현재 비밀번호 재확인. 토큰은 그대로 유효해 재로그인이 필요 없다. */
2364
2383
  changeMyPassword(params: { currentPassword: string; newPassword: string }): Promise<unknown>;