@nexus-cross/crossx-sdk-core 2.6.0-beta.1 → 2.6.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.
@@ -9,7 +9,11 @@ export interface SdkDeprecationInfo {
9
9
  raw: string;
10
10
  }
11
11
  export interface SdkUnsupportedInfo {
12
- /** 서버 봉투의 message (최소 지원 버전 안내 등) */
12
+ /**
13
+ * 서버가 준 안내 문구. 게이트웨이는 -10022 와 같은 형식으로 문구를 `data` 에 넣고
14
+ * `message` 는 비워 보낸다 (`{ code: -10050, message: "", data: "sdk version is not supported" }`,
15
+ * DEV2TF-2754). `data` 가 문자열이 아니면 비어 있지 않은 `message` 를 쓴다.
16
+ */
13
17
  message?: string;
14
18
  }
15
19
  export interface SdkVersionTransportOptions {
@@ -46,7 +46,7 @@ export declare const PIN_KEY_CACHE_TTL_MS: number;
46
46
  */
47
47
  export declare const PIN_KEY_PROBE_RETRY_MS: number;
48
48
  /** Token History API clientVersion (registerTokenHistory 호출 시 전송) */
49
- export declare const SDK_CLIENT_VERSION = "crossx-sdk-js/2.6.0-beta.1";
49
+ export declare const SDK_CLIENT_VERSION = "crossx-sdk-js/2.6.0";
50
50
  /**
51
51
  * 게이트웨이 요청마다 SDK 버전을 실어 보내는 헤더. 값은 {@link SDK_CLIENT_VERSION}.
52
52
  * 게이트웨이(walletGatewayUrl)로 가는 요청에만 붙는다 — 체인 RPC·인증 서버·CDN 은
@@ -56,9 +56,10 @@ export declare const SDK_VERSION_HEADER = "X-SDK-Version";
56
56
  /**
57
57
  * 게이트웨이 요청에 `X-SDK-Version` 헤더를 보낼지 (DEV2TF-2332).
58
58
  *
59
- * 지금은 끈다: 게이트웨이(production · staging · dev) CORS `Access-Control-Allow-Headers` 에
60
- * 이 헤더가 아직 없어(2026-11-11 확인), 보내면 브라우저의 모든 게이트웨이 요청이 preflight 에서 막힌다.
61
- * 게이트웨이 CORS 에 반영된 것을 확인한 뒤 true 로 바꾼다 (docs/20 배포 순서 1번).
59
+ * 지금은 끈다: production 게이트웨이 CORS `Access-Control-Allow-Headers` 에 이 헤더가 아직 없어
60
+ * (2026-11-19 preflight 확인, dev · staging 은 DEV2TF-2754 로 반영됨), 보내면 production 브라우저의
61
+ * 모든 게이트웨이 요청이 preflight 에서 막힌다. production 반영을 확인한 뒤 true 로 바꾼다
62
+ * (docs/20 배포 순서 1번).
62
63
  * 응답 헤더 확인(지원 종료 예정)과 미지원 오류 처리는 켜 둔다.
63
64
  */
64
65
  export declare const SEND_SDK_VERSION_HEADER = false;
@@ -68,8 +69,9 @@ export declare const SEND_SDK_VERSION_HEADER = false;
68
69
  */
69
70
  export declare const SDK_DEPRECATION_HEADER = "x-sdk-deprecation";
70
71
  /**
71
- * 게이트웨이가 미지원 SDK 버전에 주는 봉투 오류 코드.
72
- * TODO(DEV2TF-2115): 백엔드가 번호를 확정하면 이 값만 바꾼다 (임시값).
72
+ * 게이트웨이가 미지원 SDK 버전에 주는 봉투 오류 코드 (DEV2TF-2754 에서 확정, 2026-11-19).
73
+ * 응답은 HTTP 200 + `{ code: -10050, message: "", data: "sdk version is not supported" }` —
74
+ * 문구는 `message` 가 아니라 `data` 에 있다 (-10022 와 같은 형식).
73
75
  */
74
76
  export declare const SDK_VERSION_UNSUPPORTED_SERVER_CODE = -10050;
75
77
  /**
@@ -284,7 +284,8 @@ export interface JWTPayload {
284
284
  */
285
285
  export interface SDKColorOverrides {
286
286
  /**
287
- * Semantic: Primary — 버튼 배경·강조색
287
+ * Semantic: Primary — 버튼 배경·강조색. 지정하면 CTA 버튼 배경과 체크·포커스 색이 함께 바뀐다
288
+ * (포커스 링은 `#RGB`·`#RRGGBB` 값일 때만 따라간다).
288
289
  * @default light '#7E54F4' / dark '#A392FF'
289
290
  */
290
291
  primary?: string;
@@ -294,8 +295,8 @@ export interface SDKColorOverrides {
294
295
  */
295
296
  secondary?: string;
296
297
  /**
297
- * Semantic: OnPrimary — Primary 위 텍스트·아이콘
298
- * @default '#FFFFFF'
298
+ * Semantic: OnPrimary — Primary 위 텍스트·아이콘 (CTA 버튼 글자색 포함)
299
+ * @default light '#FFFFFF' / dark '#000000'
299
300
  */
300
301
  onPrimary?: string;
301
302
  /**