apick-api 3.2.0 → 3.4.1

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/CHANGELOG.md CHANGED
@@ -1,77 +1,104 @@
1
1
  # Changelog
2
2
 
3
- ## 3.2.0 — 2026-09-14
4
-
5
- - Seedance 참조 영상 작업에 `referenceAudios`(MP3·WAV) 입력을 추가했습니다.
6
- - Add video generation version selection documentation and compatibility tests.
7
- - 영상 생성 버전 선택, 버전별 옵션·요금 안내와 호환 검증을 추가했습니다.
8
- - Add createVideoJob, getVideoJob, downloadVideoResult and public TypeScript types.
9
- - Document and verify Seedance 2.0 Fast and Mini tier pass-through.
10
-
11
- ## 3.1.0 - 2026-09-08
12
-
13
- - TTS 발화별 검수 이력, 후보 WAV 조회, 멱등 키를 사용하는 같은 작업 재개 메서드를 추가했습니다.
14
- - Added TTS quality history, candidate WAV downloads, and idempotent job recovery methods.
15
-
16
- ## 3.0.0 - 2026-09-05
17
-
18
- - 이미지 프롬프트 허용 길이를 최대 28,000자로 확대했습니다.
19
- - 작업 접수 시 전체 포인트를 먼저 차감하고 실패한 이미지의 포인트를 즉시 환급하는 계약을 반영했습니다.
20
- - 접수된 이미지 작업은 취소할 수 없도록 `cancelImageJob` 메서드와 `cancelled` 상태를 제거했습니다.
21
-
22
- ## 2.4.0 - 2026-09-05
23
-
24
- - 이미지 장수 옵션을 의미가 분명한 `imageCount`로 바꾸고 압축 조정 옵션을 제거했습니다.
25
- - 이미지 크기를 5개 표준 크기 중에서만 선택하도록 타입과 런타임 검증을 강화했습니다.
26
- - 생성 요청에 선택적 `referenceImage`를 더해 참고 이미지와 텍스트를 함께 사용할 수 있습니다.
27
-
28
- ## 2.3.1 - 2026-09-05
29
-
30
- - 이미지 편집 입력에서 마스크 파일을 제거하고 원본 이미지와 프롬프트만 받도록 계약을 단순화했습니다.
31
-
32
- ## 2.3.0 - 2026-09-05
33
-
34
- - 이미지 생성·편집과 최대 50장 비동기 작업 메서드 8종을 추가했습니다.
35
- - 이미지당 25포인트, 성공분 과금, 멱등 키, 24시간 결과 보관 계약을 문서화했습니다.
36
-
37
- ## 2.2.0 - 2026-09-03
38
-
39
- - `maskResidenceCard()`의 개인정보 마스킹 대상을 외국인등록증·영주증·외국국적동포 국내거소신고증으로 확대했습니다.
40
- - 요청·응답 형식과 `document_type: residence_card` 계약은 유지합니다.
41
- - 진위확인 API의 지원 범위는 기존 외국인등록증으로 유지됩니다.
42
-
43
- ## 2.1.0 - 2026-09-01
44
-
45
- - `downloadTtsSubtitles(jobId)`로 발화 타이밍 ASS 자막을 별도 1회 다운로드할 수 있습니다.
46
- - TTS 상태 타입에 `subtitles_available`을 추가했습니다.
47
- - 허용 IP 공란, 단일 IPv4·CIDR 등록, 즉시 반영 규칙을 한영 문서에 추가했습니다.
48
-
49
- ## 2.0.1 - 2026-08-31
50
-
51
- - TTS 작업 취소 범위를 `waiting`과 `processing` 상태로 확장했습니다.
52
- - 실행 중 취소도 접수 시 과금된 금액을 환불하지 않는 계약을 한영 문서에 반영했습니다.
53
- - 17개 TTS `voice_id`의 사용자 표시 이름을 공개 문서에 추가했습니다.
54
-
55
- ## 2.0.0 - 2026-08-30
56
-
57
- - 종료된 동기 `textToSpeech()` 계약을 제거했습니다.
58
- - `createTtsJob()`, `getTtsJob()`, `cancelTtsJob()`, `downloadTtsResult()`로 비동기 한국어 TTS Jobs 계약을 제공합니다.
59
- - 지원 목소리, 최대 800자, 상태 조회, 대기 중 취소, 결과 MP3(`audio/mpeg`) 1회 다운로드를 문서화했습니다.
60
- - 정식 게시 전 지원 목소리를 17개 중립 내레이션 음성으로 확장하고 `TTS_VOICE_IDS`를 추가했습니다.
61
-
62
- ## 1.1.1 - 2026-08-30
63
-
64
- - 공개된 25개 API 계약에 종료 대상 이미지 생성 기능이 포함되지 않았음을 재검증했습니다.
65
- - 기능 및 메서드 호환성 변경 없이 릴리스 메타데이터를 갱신했습니다.
66
-
67
- ## 1.1.0 - 2026-08-29
68
-
69
- - 주민등록번호, 외국인등록증, 여권, 주민등록증, 운전면허증 마스킹 메서드 5종을 추가했습니다.
70
- - 신분증 처리 오류 코드를 `ApickApiError.serviceCode`로 제공합니다.
71
-
72
- ## 1.0.0
73
-
74
- - Initial public release.
75
- - Added 20 focused APICK service methods.
76
- - Added JSON, multipart image upload, and binary file response support.
77
- - Added ESM, CommonJS, and TypeScript declarations.
3
+ ## 3.4.1 — 2026-09-28
4
+
5
+ - README와 한국어·영어 가이드의 간편인증 5종 예제에 모든 진행 상태와 `resultAvailable` 종료 기준을 적용했습니다. 전체·부분 성공, 인증 거부·만료·실패와 `RESULT_EXPIRED`를 구분합니다.
6
+ - Align all five simple-auth polling examples in the README and Korean/English guides with every progress state and the `resultAvailable` completion criterion. Distinguish full/partial success, rejected/expired authentication, failure, and `RESULT_EXPIRED`.
7
+ - 순차 폴링 간격을 5→10→20→30초로 늘린 뒤 30초를 유지하며, 인증·전체 대기시간 제한과 자동 재접수 방지를 안내합니다. 문서 코드를 직접 실행하는 회귀 테스트를 추가했습니다.
8
+ - Document sequential polling at 5→10→20→30 seconds, capped at 30 seconds, with authentication/overall waiting limits and no automatic resubmission. Add regression tests that execute the documentation examples.
9
+
10
+ ## 3.4.0 — 2026-09-27
11
+
12
+ - 간편인증 기반 조회 상품 5종(재직·보험료 확인, 금융소득 조회, 국민연금 가입내역, 운전면허 조회, 국가 건강검진 결과)을 추가했습니다. 각 상품은 `request*()`로 본인 간편인증을 접수하고 `get*()`로 상태·결과를 폴링합니다.
13
+ - Add five simple-auth-based data lookup products (employment/insurance premium check, financial income, National Pension join history, driver's license, national health checkup). Each product accepts a `request*()` call for identity verification and polls status/result with `get*()`.
14
+ - `AUTH_PROVIDERS`(13종 간편인증 수단)와 `AuthProvider`, `DataRequestAcceptedData`, `DataRequestResult<T>` 타입, 상품별 결과 타입(`EmploymentResultPayload` 등)을 공개했습니다.
15
+ - Export `AUTH_PROVIDERS` (13 supported simple-auth providers), the `AuthProvider` type, `DataRequestAcceptedData`/`DataRequestResult<T>` envelopes, and per-product result payload types (e.g. `EmploymentResultPayload`).
16
+ - 재조회 만료(`RESULT_EXPIRED`)·인증 만료·거절·수집 실패는 `data.errorCode`로 구분됩니다.
17
+ - `RESULT_EXPIRED`, `AUTH_EXPIRED`, `AUTH_REJECTED`, and `COLLECT_FAILED` are surfaced through `data.errorCode`.
18
+
19
+ ## 3.3.0 — 2026-09-21
20
+
21
+ - 모든 REST 요청의 인증 헤더를 `CL_AUTH_KEY` 에서 표준 `Authorization: Bearer <API 키>` 로 전환했습니다. 서버가 전환 기간 동안 두 헤더를 모두 받으므로 기존 호출도 계속 동작합니다.
22
+ - Send REST requests with the standard `Authorization: Bearer <API key>` header instead of `CL_AUTH_KEY`. Both headers are accepted during the migration window.
23
+ - Mask bearer tokens in error output alongside the legacy header.
24
+ - Synchronize all 16 current TTS voice IDs and masking type 4 with the public REST contract.
25
+
26
+ - Send all REST request bodies as multipart/form-data, including flattened nested arrays and objects. Keep existing method signatures and JSON/file responses.
27
+ - REST 요청을 multipart/form-data로 통일하고 중첩 입력·파일·불리언의 호환 테스트를 추가했습니다. 기존 메서드와 응답 타입은 유지합니다.
28
+ - Document OpenAPI/Postman downloads and compatibility with older JSON callers.
29
+
30
+ ## 3.2.0 — 2026-09-14
31
+
32
+ - Seedance 참조 영상 작업에 `referenceAudios`(MP3·WAV) 입력을 추가했습니다.
33
+ - Add video generation version selection documentation and compatibility tests.
34
+ - 영상 생성 버전 선택, 버전별 옵션·요금 안내와 호환 검증을 추가했습니다.
35
+ - Add createVideoJob, getVideoJob, downloadVideoResult and public TypeScript types.
36
+ - Document and verify Seedance 2.0 Fast and Mini tier pass-through.
37
+
38
+ ## 3.1.0 - 2026-09-08
39
+
40
+ - TTS 발화별 검수 이력, 후보 WAV 조회, 멱등 키를 사용하는 같은 작업 재개 메서드를 추가했습니다.
41
+ - Added TTS quality history, candidate WAV downloads, and idempotent job recovery methods.
42
+
43
+ ## 3.0.0 - 2026-09-05
44
+
45
+ - 이미지 프롬프트 허용 길이를 최대 28,000자로 확대했습니다.
46
+ - 작업 접수 시 전체 포인트를 먼저 차감하고 실패한 이미지의 포인트를 즉시 환급하는 계약을 반영했습니다.
47
+ - 접수된 이미지 작업은 취소할 수 없도록 `cancelImageJob` 메서드와 `cancelled` 상태를 제거했습니다.
48
+
49
+ ## 2.4.0 - 2026-09-05
50
+
51
+ - 이미지 장수 옵션을 의미가 분명한 `imageCount`로 바꾸고 압축 조정 옵션을 제거했습니다.
52
+ - 이미지 크기를 5개 표준 크기 중에서만 선택하도록 타입과 런타임 검증을 강화했습니다.
53
+ - 생성 요청에 선택적 `referenceImage`를 더해 참고 이미지와 텍스트를 함께 사용할 수 있습니다.
54
+
55
+ ## 2.3.1 - 2026-09-05
56
+
57
+ - 이미지 편집 입력에서 마스크 파일을 제거하고 원본 이미지와 프롬프트만 받도록 계약을 단순화했습니다.
58
+
59
+ ## 2.3.0 - 2026-09-05
60
+
61
+ - 이미지 생성·편집과 최대 50장 비동기 작업 메서드 8종을 추가했습니다.
62
+ - 이미지당 25포인트, 성공분 과금, 멱등 키, 24시간 결과 보관 계약을 문서화했습니다.
63
+
64
+ ## 2.2.0 - 2026-09-03
65
+
66
+ - `maskResidenceCard()`의 개인정보 마스킹 대상을 외국인등록증·영주증·외국국적동포 국내거소신고증으로 확대했습니다.
67
+ - 요청·응답 형식과 `document_type: residence_card` 계약은 유지합니다.
68
+ - 진위확인 API의 지원 범위는 기존 외국인등록증으로 유지됩니다.
69
+
70
+ ## 2.1.0 - 2026-09-01
71
+
72
+ - `downloadTtsSubtitles(jobId)`로 발화 타이밍 ASS 자막을 별도 1회 다운로드할 수 있습니다.
73
+ - TTS 상태 타입에 `subtitles_available`을 추가했습니다.
74
+ - 허용 IP 공란, 단일 IPv4·CIDR 등록, 즉시 반영 규칙을 한영 문서에 추가했습니다.
75
+
76
+ ## 2.0.1 - 2026-08-31
77
+
78
+ - TTS 작업 취소 범위를 `waiting`과 `processing` 상태로 확장했습니다.
79
+ - 실행 중 취소도 접수 시 과금된 금액을 환불하지 않는 계약을 한영 문서에 반영했습니다.
80
+ - 17개 TTS `voice_id`의 사용자 표시 이름을 공개 문서에 추가했습니다.
81
+
82
+ ## 2.0.0 - 2026-08-30
83
+
84
+ - 종료된 동기 `textToSpeech()` 계약을 제거했습니다.
85
+ - `createTtsJob()`, `getTtsJob()`, `cancelTtsJob()`, `downloadTtsResult()`로 비동기 한국어 TTS Jobs 계약을 제공합니다.
86
+ - 지원 목소리, 최대 800자, 상태 조회, 대기 중 취소, 결과 MP3(`audio/mpeg`) 1회 다운로드를 문서화했습니다.
87
+ - 정식 게시 전 지원 목소리를 17개 중립 내레이션 음성으로 확장하고 `TTS_VOICE_IDS`를 추가했습니다.
88
+
89
+ ## 1.1.1 - 2026-08-30
90
+
91
+ - 공개된 25개 API 계약에 종료 대상 이미지 생성 기능이 포함되지 않았음을 재검증했습니다.
92
+ - 기능 및 메서드 호환성 변경 없이 릴리스 메타데이터를 갱신했습니다.
93
+
94
+ ## 1.1.0 - 2026-08-29
95
+
96
+ - 주민등록번호, 외국인등록증, 여권, 주민등록증, 운전면허증 마스킹 메서드 5종을 추가했습니다.
97
+ - 신분증 처리 오류 코드를 `ApickApiError.serviceCode`로 제공합니다.
98
+
99
+ ## 1.0.0
100
+
101
+ - Initial public release.
102
+ - Added 20 focused APICK service methods.
103
+ - Added JSON, multipart image upload, and binary file response support.
104
+ - Added ESM, CommonJS, and TypeScript declarations.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 APICK
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
+ MIT License
2
+
3
+ Copyright (c) 2026 APICK
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.