@k-msg/channel 0.29.0 → 0.29.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.
|
@@ -4,15 +4,12 @@ export declare class KakaoChannelManager {
|
|
|
4
4
|
createChannel(request: ChannelCreateRequest): Promise<Channel>;
|
|
5
5
|
private validateKakaoChannelRequest;
|
|
6
6
|
private isValidPlusFriendId;
|
|
7
|
-
private initiateBusinessVerification;
|
|
8
|
-
completeVerification(channelId: string, approved: boolean, rejectionReason?: string): Promise<void>;
|
|
9
7
|
getChannel(channelId: string): Promise<Channel | null>;
|
|
10
8
|
updateChannel(channelId: string, updates: Partial<Channel>): Promise<Channel>;
|
|
11
9
|
deleteChannel(channelId: string): Promise<boolean>;
|
|
12
10
|
listChannels(filters?: {
|
|
13
11
|
status?: ChannelStatus;
|
|
14
12
|
type?: ChannelType;
|
|
15
|
-
verified?: boolean;
|
|
16
13
|
}): Promise<Channel[]>;
|
|
17
14
|
suspendChannel(channelId: string, reason: string): Promise<void>;
|
|
18
15
|
reactivateChannel(channelId: string): Promise<void>;
|
|
@@ -8,7 +8,6 @@ export interface Channel {
|
|
|
8
8
|
profileKey: string;
|
|
9
9
|
senderNumbers: SenderNumber[];
|
|
10
10
|
metadata: ChannelMetadata;
|
|
11
|
-
verification: ChannelVerification;
|
|
12
11
|
createdAt: Date;
|
|
13
12
|
updatedAt: Date;
|
|
14
13
|
}
|
|
@@ -87,14 +86,6 @@ export interface ChannelMetadata {
|
|
|
87
86
|
maxButtonCount: number;
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
|
-
export interface ChannelVerification {
|
|
91
|
-
status: VerificationStatus;
|
|
92
|
-
documents: VerificationDocument[];
|
|
93
|
-
verifiedAt?: Date;
|
|
94
|
-
rejectedAt?: Date;
|
|
95
|
-
rejectionReason?: string;
|
|
96
|
-
verifiedBy?: string;
|
|
97
|
-
}
|
|
98
89
|
export declare enum VerificationStatus {
|
|
99
90
|
NOT_REQUIRED = "NOT_REQUIRED",
|
|
100
91
|
PENDING = "PENDING",
|
|
@@ -156,7 +147,6 @@ export interface ChannelFilters {
|
|
|
156
147
|
provider?: string;
|
|
157
148
|
type?: ChannelType;
|
|
158
149
|
status?: ChannelStatus;
|
|
159
|
-
verified?: boolean;
|
|
160
150
|
createdAfter?: Date;
|
|
161
151
|
createdBefore?: Date;
|
|
162
152
|
}
|
|
@@ -200,7 +190,6 @@ export declare const ChannelFiltersSchema: z.ZodMiniObject<{
|
|
|
200
190
|
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
201
191
|
type: z.ZodMiniOptional<z.ZodMiniEnum<typeof ChannelType>>;
|
|
202
192
|
status: z.ZodMiniOptional<z.ZodMiniEnum<typeof ChannelStatus>>;
|
|
203
|
-
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
204
193
|
createdAfter: z.ZodMiniOptional<z.ZodMiniDate<Date>>;
|
|
205
194
|
createdBefore: z.ZodMiniOptional<z.ZodMiniDate<Date>>;
|
|
206
195
|
}, z.core.$strip>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-msg/channel",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.2",
|
|
4
4
|
"packageManager": "bun@1.3.8",
|
|
5
5
|
"description": "AlimTalk channel and sender number management",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish": "bun publish --access public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@k-msg/core": "0.29.
|
|
39
|
+
"@k-msg/core": "0.29.2",
|
|
40
40
|
"zod": "^4.0.14"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|