@k-msg/channel 0.7.0 → 0.7.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/dist/index.js +7 -7
- package/dist/index.js.map +9 -9
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +9 -9
- package/dist/management/crud.d.ts +1 -1
- package/dist/management/permissions.d.ts +1 -1
- package/dist/types/channel.types.d.ts +5 -0
- package/dist/verification/business.verify.d.ts +1 -1
- package/dist/verification/number.verify.d.ts +7 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Channel CRUD Operations
|
|
3
3
|
* 채널 생성, 조회, 수정, 삭제 통합 관리
|
|
4
4
|
*/
|
|
5
|
-
import { EventEmitter } from "events";
|
|
5
|
+
import { EventEmitter } from "node:events";
|
|
6
6
|
import { type Channel, type ChannelCreateRequest, type ChannelFilters, type SenderNumber, type SenderNumberCreateRequest, type SenderNumberFilters } from "../types/channel.types";
|
|
7
7
|
export interface PaginationOptions {
|
|
8
8
|
page: number;
|
|
@@ -29,6 +29,11 @@ export declare enum ChannelStatus {
|
|
|
29
29
|
}
|
|
30
30
|
export interface SenderNumber {
|
|
31
31
|
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Optional association to a Channel.
|
|
34
|
+
* Some managers (e.g. KakaoSenderNumberManager) are channel-scoped.
|
|
35
|
+
*/
|
|
36
|
+
channelId?: string;
|
|
32
37
|
phoneNumber: string;
|
|
33
38
|
status: SenderNumberStatus;
|
|
34
39
|
verificationCode?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Business Verification System
|
|
3
3
|
* 사업자 정보 및 서류 검증 시스템
|
|
4
4
|
*/
|
|
5
|
-
import { EventEmitter } from "events";
|
|
5
|
+
import { EventEmitter } from "node:events";
|
|
6
6
|
import { DocumentType, type VerificationDocument, VerificationStatus } from "../types/channel.types";
|
|
7
7
|
export interface BusinessInfo {
|
|
8
8
|
businessName: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Phone Number Verification System
|
|
3
3
|
* 발신번호 인증 및 검증 시스템
|
|
4
4
|
*/
|
|
5
|
-
import { EventEmitter } from "events";
|
|
5
|
+
import { EventEmitter } from "node:events";
|
|
6
6
|
export interface PhoneVerificationRequest {
|
|
7
7
|
id: string;
|
|
8
8
|
senderNumberId: string;
|
|
@@ -23,6 +23,11 @@ export interface PhoneVerificationRequest {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export interface VerificationAttempt {
|
|
26
|
+
/**
|
|
27
|
+
* Distinguish provider/send attempts from user verification attempts.
|
|
28
|
+
* This prevents send failures from consuming user attempt limits.
|
|
29
|
+
*/
|
|
30
|
+
purpose?: "send" | "verify";
|
|
26
31
|
attemptNumber: number;
|
|
27
32
|
attemptedAt: Date;
|
|
28
33
|
method: VerificationMethod;
|
|
@@ -177,6 +182,7 @@ export declare class NumberVerifier extends EventEmitter {
|
|
|
177
182
|
private isDailyLimitExceeded;
|
|
178
183
|
private updateRateLimit;
|
|
179
184
|
private updateDailyAttempts;
|
|
185
|
+
private normalizePhoneNumber;
|
|
180
186
|
private validateCode;
|
|
181
187
|
private generateVerificationCode;
|
|
182
188
|
private generateRequestId;
|