@k-msg/core 0.8.0 → 0.9.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.
@@ -76,6 +76,18 @@ export interface KakaoSendOptions {
76
76
  imageLink?: string;
77
77
  [key: string]: any;
78
78
  }
79
+ export interface AlimTalkFailoverOptions {
80
+ enabled?: boolean;
81
+ fallbackChannel?: "sms" | "lms";
82
+ fallbackContent?: string;
83
+ fallbackTitle?: string;
84
+ }
85
+ export type SendWarningCode = "FAILOVER_UNSUPPORTED_PROVIDER" | "FAILOVER_PARTIAL_PROVIDER" | "FALLBACK_CONTENT_MISSING" | (string & {});
86
+ export interface SendWarning {
87
+ code: SendWarningCode;
88
+ message: string;
89
+ details?: Record<string, unknown>;
90
+ }
79
91
  export interface NaverSendOptions {
80
92
  talkId?: string;
81
93
  /**
@@ -144,6 +156,7 @@ export interface AlimTalkSendOptions extends CommonSendOptions {
144
156
  templateCode: string;
145
157
  variables: MessageVariables;
146
158
  kakao?: KakaoSendOptions;
159
+ failover?: AlimTalkFailoverOptions;
147
160
  }
148
161
  export interface FriendTalkSendOptions extends CommonSendOptions {
149
162
  type: "FRIENDTALK";
@@ -213,5 +226,6 @@ export interface SendResult {
213
226
  status: MessageStatus;
214
227
  type: MessageType;
215
228
  to: string;
229
+ warnings?: SendWarning[];
216
230
  raw?: unknown;
217
231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-msg/core",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "packageManager": "bun@1.3.8",
5
5
  "description": "Core types and interfaces for K-Message platform",
6
6
  "type": "module",