naverseries-sdk 1.0.0 → 1.0.2

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/LICENSE CHANGED
@@ -1,21 +1,202 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 re0nyaa
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 re0nyaa
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  > 네이버 시리즈(series.naver.com) 비공식 TypeScript SDK
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/naverseries-sdk.svg)](https://www.npmjs.com/package/naverseries-sdk)
6
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
7
7
 
8
8
  - **Undici** 커넥션 풀링 기반 고성능 HTTP
9
9
  - **Full-Jitter** 지수백오프 자동 재시도
@@ -72,11 +72,11 @@ await client.close()
72
72
 
73
73
  | 메서드 | 반환 | 설명 |
74
74
  |---|---|---|
75
- | `search(options)` | `SearchResult` | 키워드 검색 (page, type 지원) |
75
+ | `search(options)` | `SearchResult` | 키워드 검색 (목록용 `m79` 소형 썸네일 제공) |
76
76
  | `searchStream(options)` | `AsyncIterableIterator` | 스트리밍 검색 제너레이터 |
77
77
  | `getTop100()` | `RankingNovelItem[]` | 실시간 TOP 100 랭킹 |
78
78
  | `getRankingByGenre(code)` | `RankingNovelItem[]` | 장르별 랭킹 |
79
- | `getNovelDetail(novelId)` | `NovelDetail` | 작품 상세 정보 |
79
+ | `getNovelDetail(novelId)` | `NovelDetail` | 작품 상세 정보 (`og:image` 기반 `m600x314` 고해상도 썸네일, 장르/태그, 줄거리 제공) |
80
80
  | `getEpisodes(novelId)` | `EpisodeListResult` | 에피소드 목록 |
81
81
  | `getGenres()` | `CategoryItem[]` | 장르 카테고리 목록 |
82
82
  | `getNovelByName(keyword)` | `{ searchItem, detail }` | 이름 검색 + 상세 일괄 조회 |
@@ -84,6 +84,10 @@ await client.close()
84
84
  | `clearCache()` | `void` | 캐시 초기화 |
85
85
  | `close()` | `Promise<void>` | 커넥션 풀 종료 |
86
86
 
87
+ > **💡 썸네일 해상도 안내**:
88
+ > - `search()` / `getTop100()` 등의 목록 검색: `?type=m79` (79×119px 목록용 소형)
89
+ > - `getNovelDetail()`: `?type=m600x314` (600×314px 고해상도 대표 이미지)
90
+
87
91
  ---
88
92
 
89
93
  ## 사용 예제
@@ -155,4 +159,4 @@ import { MemoryTtlCache } from 'naverseries-sdk/cache'
155
159
 
156
160
  ## License
157
161
 
158
- [MIT](LICENSE)
162
+ [Apache-2.0](LICENSE)
@@ -1,24 +1,68 @@
1
1
  /**
2
- * LRU + TTL 인메모리 캐시 구현체
2
+ * LRU 및 만료 시간(TTL) 기반 인메모리 캐시 통계 메트릭
3
3
  */
4
4
  export interface CacheStats {
5
+ /** 캐시 적중 횟수 */
5
6
  hits: number;
7
+ /** 캐시 누락 횟수 */
6
8
  misses: number;
9
+ /** 캐시 적중률 (0.0 ~ 1.0) */
7
10
  hitRatio: number;
11
+ /** TTL 만료로 인한 제거 횟수 */
8
12
  evictions: number;
13
+ /** 현재 캐시된 항목 수 */
9
14
  size: number;
10
15
  }
16
+ /**
17
+ * 네이버 시리즈 SDK 내장 메모리 TTL 캐시 클래스
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const cache = new MemoryTtlCache({ defaultTtlMs: 60000 })
22
+ * cache.set("myKey", { foo: "bar" })
23
+ * const val = cache.get("myKey")
24
+ * ```
25
+ */
11
26
  export declare class MemoryTtlCache {
12
27
  private store;
13
28
  private stats;
14
29
  private defaultTtlMs;
30
+ /**
31
+ * @param options 캐시 기본 설정 옵션
32
+ * @param options.defaultTtlMs 기본 캐시 만료 시간 (ms, 기본값: 60000)
33
+ */
15
34
  constructor(options?: {
16
35
  defaultTtlMs?: number;
17
36
  });
37
+ /**
38
+ * 캐시에서 키에 해당하는 값을 조회합니다.
39
+ * 만료된 경우 자동으로 삭제되고 undefined를 반환합니다.
40
+ *
41
+ * @param key 캐시 키
42
+ * @returns 캐시된 값 또는 undefined
43
+ */
18
44
  get<T>(key: string): T | undefined;
45
+ /**
46
+ * 캐시에 키-값을 저장합니다.
47
+ *
48
+ * @param key 캐시 키
49
+ * @param value 저장할 값
50
+ * @param ttlMs 개별 만료 시간 (ms, 미지정 시 기본 TTL 적용)
51
+ */
19
52
  set<T>(key: string, value: T, ttlMs?: number): void;
53
+ /**
54
+ * 특정 키의 캐시를 삭제합니다.
55
+ *
56
+ * @param key 삭제할 캐시 키
57
+ */
20
58
  delete(key: string): void;
59
+ /**
60
+ * 모든 캐시 데이터를 비우고 통계를 리셋합니다.
61
+ */
21
62
  clear(): void;
63
+ /**
64
+ * 캐시 적중률 및 상태 메트릭 통계를 반환합니다.
65
+ */
22
66
  getStats(): CacheStats;
23
67
  }
24
68
  //# sourceMappingURL=cache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/cache.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACf;AAOD,qBAAa,cAAc;IACvB,OAAO,CAAC,KAAK,CAAqC;IAClD,OAAO,CAAC,KAAK,CAAuC;IACpD,OAAO,CAAC,YAAY,CAAQ;gBAEhB,OAAO,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAO;IAInD,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAgBlC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAOnD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB,KAAK,IAAI,IAAI;IAKb,QAAQ,IAAI,UAAU;CAUzB"}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/cache.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,eAAe;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe;IACf,MAAM,EAAE,MAAM,CAAA;IACd,yBAAyB;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,uBAAuB;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAA;CACf;AAOD;;;;;;;;;GASG;AACH,qBAAa,cAAc;IACvB,OAAO,CAAC,KAAK,CAAqC;IAClD,OAAO,CAAC,KAAK,CAAuC;IACpD,OAAO,CAAC,YAAY,CAAQ;IAE5B;;;OAGG;gBACS,OAAO,GAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAO;IAInD;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAgBlC;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAOnD;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB;;OAEG;IACH,KAAK,IAAI,IAAI;IAKb;;OAEG;IACH,QAAQ,IAAI,UAAU;CAUzB"}
package/dist/src/cache.js CHANGED
@@ -1,10 +1,31 @@
1
+ /**
2
+ * 네이버 시리즈 SDK 내장 메모리 TTL 캐시 클래스
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * const cache = new MemoryTtlCache({ defaultTtlMs: 60000 })
7
+ * cache.set("myKey", { foo: "bar" })
8
+ * const val = cache.get("myKey")
9
+ * ```
10
+ */
1
11
  export class MemoryTtlCache {
2
12
  store = new Map();
3
13
  stats = { hits: 0, misses: 0, evictions: 0 };
4
14
  defaultTtlMs;
15
+ /**
16
+ * @param options 캐시 기본 설정 옵션
17
+ * @param options.defaultTtlMs 기본 캐시 만료 시간 (ms, 기본값: 60000)
18
+ */
5
19
  constructor(options = {}) {
6
20
  this.defaultTtlMs = options.defaultTtlMs ?? 60000;
7
21
  }
22
+ /**
23
+ * 캐시에서 키에 해당하는 값을 조회합니다.
24
+ * 만료된 경우 자동으로 삭제되고 undefined를 반환합니다.
25
+ *
26
+ * @param key 캐시 키
27
+ * @returns 캐시된 값 또는 undefined
28
+ */
8
29
  get(key) {
9
30
  const entry = this.store.get(key);
10
31
  if (!entry) {
@@ -20,19 +41,37 @@ export class MemoryTtlCache {
20
41
  this.stats.hits++;
21
42
  return entry.value;
22
43
  }
44
+ /**
45
+ * 캐시에 키-값을 저장합니다.
46
+ *
47
+ * @param key 캐시 키
48
+ * @param value 저장할 값
49
+ * @param ttlMs 개별 만료 시간 (ms, 미지정 시 기본 TTL 적용)
50
+ */
23
51
  set(key, value, ttlMs) {
24
52
  this.store.set(key, {
25
53
  value,
26
54
  expiresAt: Date.now() + (ttlMs ?? this.defaultTtlMs),
27
55
  });
28
56
  }
57
+ /**
58
+ * 특정 키의 캐시를 삭제합니다.
59
+ *
60
+ * @param key 삭제할 캐시 키
61
+ */
29
62
  delete(key) {
30
63
  this.store.delete(key);
31
64
  }
65
+ /**
66
+ * 모든 캐시 데이터를 비우고 통계를 리셋합니다.
67
+ */
32
68
  clear() {
33
69
  this.store.clear();
34
70
  this.stats = { hits: 0, misses: 0, evictions: 0 };
35
71
  }
72
+ /**
73
+ * 캐시 적중률 및 상태 메트릭 통계를 반환합니다.
74
+ */
36
75
  getStats() {
37
76
  const total = this.stats.hits + this.stats.misses;
38
77
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/cache.ts"],"names":[],"mappings":"AAgBA,MAAM,OAAO,cAAc;IACf,KAAK,GAAG,IAAI,GAAG,EAA2B,CAAA;IAC1C,KAAK,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;IAC5C,YAAY,CAAQ;IAE5B,YAAY,UAAqC,EAAE;QAC/C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,KAAK,CAAA;IACrD,CAAC;IAED,GAAG,CAAI,GAAW;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QACjC,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAA;YACnB,OAAO,SAAS,CAAA;QACpB,CAAC;QACD,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,SAAS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AI,IAAI,CAAC,YAAY,CAAC;SACvD,CAAC,CAAA;IACN,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,GAAW;QACd,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IAC1B,CAAC;IAED;;OAEG;IACH,KAAK;QACD,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;QAClB,IAAI,CAAC,KAAK,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;IACrD,CAAC;IAED;;OAEG;IACH,QAAQ;QACJ,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAA;QACjD,OAAO;YACH,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;YACrB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;YACzB,QAAQ,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK;YACnD,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;YAC/B,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;SACxB,CAAA;IACL,CAAC;CACJ"}
@@ -1,21 +1,38 @@
1
1
  import type { CacheStats } from "./cache.js";
2
2
  import type { CategoryItem, EpisodeListResult, NaverSeriesClientOptions, NovelDetail, NovelSearchResultItem, RankingNovelItem, SearchOptions, SearchResult, SearchStreamOptions } from "./types.js";
3
+ /** 개별 HTTP 요청에 대한 오버라이드 옵션 */
3
4
  export interface RequestOptions {
5
+ /** 이 요청에만 적용할 타임아웃 (ms). 미설정 시 클라이언트 기본값 사용. */
4
6
  timeout?: number;
7
+ /** 이 요청에만 적용할 최대 재시도 횟수. 미설정 시 클라이언트 기본값 사용. */
5
8
  maxRetries?: number;
9
+ /** `true`이면 캐시를 읽거나 쓰지 않고 항상 네트워크 요청을 수행합니다. */
6
10
  skipCache?: boolean;
11
+ /** 이 요청의 응답을 캐시에 저장할 TTL (ms). 미설정 시 클라이언트 기본값 사용. */
7
12
  cacheTtlMs?: number;
13
+ /** 추가 커스텀 요청 헤더 */
8
14
  headers?: Record<string, string>;
15
+ /** 요청 취소를 위한 `AbortSignal` */
9
16
  signal?: AbortSignal;
10
17
  }
11
18
  /**
12
19
  * 네이버 시리즈(series.naver.com) 비공식 TypeScript 클라이언트
13
20
  *
14
- * - Undici 커넥션 풀링
15
- * - Full-Jitter 지수백오프 재시도
16
- * - LRU+TTL 인메모리 캐시
17
- * - 인터셉터 (onRequest / onResponse / onError / onRetry)
18
- * - 비동기 제너레이터 스트리밍 검색 (searchStream)
21
+ * @remarks
22
+ * - **Undici** 커넥션 풀링으로 고성능 HTTP 처리
23
+ * - **Full-Jitter** 지수백오프 자동 재시도
24
+ * - **LRU+TTL** 인메모리 캐시 (`cache: true` 옵션)
25
+ * - 인터셉터: `onRequest` / `onResponse` / `onError` / `onRetry`
26
+ * - 비동기 제너레이터 스트리밍 검색: `searchStream()`
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * import NaverSeriesClient from 'naverseries-sdk'
31
+ *
32
+ * const client = new NaverSeriesClient({ cache: true, maxRetries: 3 })
33
+ * const top100 = await client.getTop100()
34
+ * await client.close()
35
+ * ```
19
36
  */
20
37
  export declare class NaverSeriesClient {
21
38
  private baseUrl;
@@ -34,68 +51,166 @@ export declare class NaverSeriesClient {
34
51
  */
35
52
  request<T = string>(endpoint: string, method?: "GET" | "POST", params?: Record<string, any>, options?: RequestOptions): Promise<T>;
36
53
  /**
37
- * 소설 / 웹툰 통합 검색
54
+ * 소설 / 웹툰 통합 키워드 검색
55
+ *
56
+ * @param options - 검색 옵션 (`keyword` 필수)
57
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
58
+ * @returns 검색 결과 목록 및 다음 페이지 존재 여부
59
+ * @throws {NaverSeriesValidationError} `keyword`가 빈 문자열인 경우
60
+ *
38
61
  * @example
62
+ * ```ts
39
63
  * const result = await client.search({ keyword: '환생', page: 1, type: 'novel' })
64
+ * console.log(result.items[0].title) // "66666년 만에 환생한 흑마법사 [독점]"
65
+ * console.log(result.hasNext) // true
66
+ * ```
40
67
  */
41
68
  search(options: SearchOptions, requestOptions?: RequestOptions): Promise<SearchResult>;
42
69
  /**
43
- * 검색 결과를 비동기 제너레이터로 스트리밍 순회
70
+ * 검색 결과를 비동기 제너레이터(AsyncIterator)로 스트리밍 순회
71
+ *
72
+ * 여러 페이지를 자동으로 넘기며 작품을 하나씩 yield합니다.
73
+ * `maxPages`를 지정하면 해당 페이지 수 이후 자동 종료됩니다.
74
+ *
75
+ * @param options - 스트림 검색 옵션 (`keyword` 필수)
76
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
77
+ * @throws {NaverSeriesValidationError} `keyword`가 빈 문자열인 경우
78
+ *
44
79
  * @example
80
+ * ```ts
45
81
  * for await (const novel of client.searchStream({ keyword: '환생', maxPages: 3 })) {
46
- * console.log(novel.title)
82
+ * console.log(novel.title, novel.authorName)
83
+ * // 필요할 때 break 가능
47
84
  * }
85
+ * ```
48
86
  */
49
87
  searchStream(options: SearchStreamOptions, requestOptions?: RequestOptions): AsyncIterableIterator<NovelSearchResultItem>;
50
88
  /**
51
- * 소설 TOP 100 랭킹 조회
89
+ * 실시간 소설 TOP 100 랭킹 조회
90
+ *
91
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
92
+ * @returns 순위 / 순위변동 / 평점 등이 포함된 랭킹 항목 배열
93
+ *
52
94
  * @example
95
+ * ```ts
53
96
  * const top100 = await client.getTop100()
97
+ * console.log(top100[0].rank, top100[0].title) // 1 "비경수선전 [독점]"
98
+ * console.log(top100[0].rankChange) // "new" | "up" | "down" | "same"
99
+ * ```
54
100
  */
55
101
  getTop100(requestOptions?: RequestOptions): Promise<RankingNovelItem[]>;
56
102
  /**
57
- * 장르별 랭킹 목록 조회
58
- * @param genreCode 장르 코드 (예: "romance", "fantasy", "bl")
103
+ * 장르별 인기 작품 랭킹 조회
104
+ *
105
+ * @param genreCode - 장르 코드. `getGenres()`로 조회 가능.
106
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
107
+ * @returns 해당 장르의 랭킹 항목 배열
108
+ * @throws {NaverSeriesValidationError} `genreCode`가 빈 문자열인 경우
109
+ *
59
110
  * @example
111
+ * ```ts
60
112
  * const items = await client.getRankingByGenre('romance')
113
+ * const items = await client.getRankingByGenre('fantasy')
114
+ * ```
61
115
  */
62
116
  getRankingByGenre(genreCode: string, requestOptions?: RequestOptions): Promise<RankingNovelItem[]>;
63
117
  /** 랭킹 HTML 공통 파서 */
64
118
  private _parseRankingList;
65
119
  /**
66
120
  * 작품 상세 정보 조회
67
- * @param novelId productNo (예: "5553059")
121
+ *
122
+ * @remarks
123
+ * 상세 페이지는 일부 JS 렌더링이 포함되어 `score`는 `undefined`일 수 있습니다.
124
+ * 평점이 필요하면 `search()` 또는 `getNovelByName()`의 `searchItem.score`를 사용하세요.
125
+ *
126
+ * 장르/태그는 meta description의 `#해시태그`에서 추출합니다.
127
+ * 썸네일은 `og:image` (600×314px 고해상도)에서 추출합니다.
128
+ *
129
+ * @param novelId - 작품 고유 ID (`productNo`). 문자열 또는 숫자.
130
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
131
+ * @returns 제목 / 작가 / 줄거리 / 장르 / 에피소드 수 / 썸네일 등
132
+ * @throws {NaverSeriesValidationError} `novelId`가 빈 값인 경우
133
+ * @throws {NaverSeriesNotFoundError} 존재하지 않는 `novelId`인 경우
134
+ *
68
135
  * @example
69
- * const detail = await client.getNovelDetail('5553059')
136
+ * ```ts
137
+ * const detail = await client.getNovelDetail('3400123')
138
+ * console.log(detail.title) // "전지적 독자 시점"
139
+ * console.log(detail.genres) // ["현판", "초월존재판무", "각성자"]
140
+ * console.log(detail.description) // "[오직 나만이, 이 세계의 결말을 알고 있다.]..."
141
+ * console.log(detail.thumbnailUrl) // "https://...?type=m600x314" (고해상도)
142
+ * ```
70
143
  */
71
144
  getNovelDetail(novelId: string | number, requestOptions?: RequestOptions): Promise<NovelDetail>;
72
145
  /**
73
- * 작품의 에피소드 목록 조회
74
- * @param novelId productNo
146
+ * 작품의 에피소드 목록 메타데이터 조회
147
+ *
148
+ * @param novelId - 작품 고유 ID (`productNo`). 문자열 또는 숫자.
149
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
150
+ * @returns novelId 및 에피소드 메타데이터 목록 (`EpisodeListResult`)
151
+ * @throws {NaverSeriesValidationError} `novelId`가 빈 값인 경우
152
+ *
75
153
  * @example
154
+ * ```ts
76
155
  * const eps = await client.getEpisodes('5553059')
156
+ * console.log(`총 ${eps.items.length}화 수신`)
157
+ * console.log(eps.items[0].title, eps.items[0].isFree)
158
+ * ```
77
159
  */
78
160
  getEpisodes(novelId: string | number, requestOptions?: RequestOptions): Promise<EpisodeListResult>;
79
161
  /**
80
162
  * 장르 카테고리 목록 조회
163
+ *
164
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
165
+ * @returns 장르 목록 배열 (`CategoryItem[]`)
166
+ *
81
167
  * @example
168
+ * ```ts
82
169
  * const genres = await client.getGenres()
170
+ * genres.forEach(g => console.log(g.name, g.code))
171
+ * ```
83
172
  */
84
173
  getGenres(requestOptions?: RequestOptions): Promise<CategoryItem[]>;
85
174
  /**
86
- * 키워드로 검색 후 첫 번째 결과의 상세 정보까지 반환 (편의 메서드)
175
+ * 키워드로 검색 후 첫 번째 매칭 결과의 상세 정보를 한 번에 반환 (편의 메서드)
176
+ *
177
+ * @param keyword - 검색할 작품명/키워드
178
+ * @param requestOptions - 이 요청에만 적용할 오버라이드 옵션
179
+ * @returns 검색 항목(`searchItem`) 및 상세 정보(`detail`) 객체
180
+ * @throws {NaverSeriesNotFoundError} 검색 결과가 존재하지 않을 때
181
+ *
87
182
  * @example
183
+ * ```ts
88
184
  * const { searchItem, detail } = await client.getNovelByName('전지적 독자 시점')
185
+ * console.log(detail.title, detail.authorName, searchItem.score)
186
+ * ```
89
187
  */
90
188
  getNovelByName(keyword: string, requestOptions?: RequestOptions): Promise<{
91
189
  searchItem: NovelSearchResultItem;
92
190
  detail: NovelDetail;
93
191
  }>;
94
- /** 캐시 통계 반환 */
192
+ /**
193
+ * 현재 활성화된 캐시 스토어의 성능 메트릭 통계를 반환합니다.
194
+ * 캐시가 활성화되지 않았거나 통계를 지원하지 않는 스토어인 경우 `undefined`를 반환합니다.
195
+ *
196
+ * @returns 캐시 히트/미스/적중률 통계 객체 또는 `undefined`
197
+ *
198
+ * @example
199
+ * ```ts
200
+ * const stats = client.getCacheStats()
201
+ * if (stats) {
202
+ * console.log(`히트율: ${(stats.hitRatio * 100).toFixed(1)}%`)
203
+ * }
204
+ * ```
205
+ */
95
206
  getCacheStats(): CacheStats | undefined;
96
- /** 캐시 전체 비우기 */
207
+ /**
208
+ * 인메모리 캐시 데이터를 전체 초기화(삭제)합니다.
209
+ */
97
210
  clearCache(): void;
98
- /** 커넥션 풀 정상 종료 */
211
+ /**
212
+ * 클라이언트 커넥션 풀(Undici Agent)을 정상 종료하고 시스템 리소스를 정리합니다.
213
+ */
99
214
  close(): Promise<void>;
100
215
  }
101
216
  export default NaverSeriesClient;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAW5C,OAAO,KAAK,EAER,YAAY,EAIZ,iBAAiB,EAGjB,wBAAwB,EACxB,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAEhB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACtB,MAAM,YAAY,CAAA;AAwBnB,MAAM,WAAW,cAAc;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,E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