@k-msg/core 0.3.0 → 0.4.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.
@@ -1,4 +1,4 @@
1
- export type MessageType = "ALIMTALK" | "FRIENDTALK" | "SMS" | "LMS" | "MMS" | "RCS_SMS" | "RCS_LMS" | "RCS_MMS" | "RCS_TPL" | "RCS_ITPL" | "RCS_LTPL";
1
+ export type MessageType = "ALIMTALK" | "FRIENDTALK" | "SMS" | "LMS" | "MMS" | "NSA" | "VOICE" | "FAX" | "RCS_SMS" | "RCS_LMS" | "RCS_MMS" | "RCS_TPL" | "RCS_ITPL" | "RCS_LTPL";
2
2
  export interface BaseOptions {
3
3
  to: string;
4
4
  from: string;
@@ -38,6 +38,57 @@ export interface UnifiedMessageSendOptions {
38
38
  scheduledAt?: Date;
39
39
  senderNumber?: string;
40
40
  subject?: string;
41
+ country?: string;
42
+ customFields?: Record<string, string>;
43
+ kakaoOptions?: {
44
+ pfId?: string;
45
+ templateId?: string;
46
+ variables?: Record<string, string>;
47
+ disableSms?: boolean;
48
+ adFlag?: boolean;
49
+ buttons?: unknown[];
50
+ imageId?: string;
51
+ [key: string]: unknown;
52
+ };
53
+ naverOptions?: {
54
+ talkId?: string;
55
+ templateId?: string;
56
+ disableSms?: boolean;
57
+ variables?: Record<string, string>;
58
+ buttons?: unknown[];
59
+ [key: string]: unknown;
60
+ };
61
+ voiceOptions?: {
62
+ voiceType: "FEMALE" | "MALE";
63
+ headerMessage?: string;
64
+ tailMessage?: string;
65
+ replyRange?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
66
+ counselorNumber?: string;
67
+ [key: string]: unknown;
68
+ };
69
+ faxOptions?: {
70
+ fileIds?: string[];
71
+ fileUrls?: string[];
72
+ [key: string]: unknown;
73
+ };
74
+ rcsOptions?: {
75
+ brandId?: string;
76
+ templateId?: string;
77
+ copyAllowed?: boolean;
78
+ variables?: Record<string, string>;
79
+ mmsType?: "M3" | "S3" | "M4" | "S4" | "M5" | "S5" | "M6" | "S6";
80
+ commercialType?: boolean;
81
+ disableSms?: boolean;
82
+ buttons?: unknown[];
83
+ additionalBody?: {
84
+ title?: string;
85
+ description?: string;
86
+ imageId?: string;
87
+ buttons?: unknown[];
88
+ [key: string]: unknown;
89
+ };
90
+ [key: string]: unknown;
91
+ };
41
92
  [key: string]: unknown;
42
93
  };
43
94
  }
@@ -39,6 +39,14 @@ export interface StandardRequest {
39
39
  scheduledAt?: Date;
40
40
  senderNumber?: string;
41
41
  subject?: string;
42
+ /**
43
+ * Optional international country code for providers that support it (e.g. SOLAPI).
44
+ */
45
+ country?: string;
46
+ /**
47
+ * Provider-supported custom fields (string values only).
48
+ */
49
+ customFields?: Record<string, string>;
42
50
  /**
43
51
  * Provider-specific KakaoTalk options (e.g. SOLAPI kakaoOptions).
44
52
  */
@@ -52,16 +60,55 @@ export interface StandardRequest {
52
60
  imageId?: string;
53
61
  [key: string]: unknown;
54
62
  };
63
+ /**
64
+ * Provider-specific Naver SmartAlert options (e.g. SOLAPI naverOptions).
65
+ */
66
+ naverOptions?: {
67
+ talkId?: string;
68
+ templateId?: string;
69
+ disableSms?: boolean;
70
+ variables?: Record<string, string>;
71
+ buttons?: unknown[];
72
+ [key: string]: unknown;
73
+ };
74
+ /**
75
+ * Provider-specific voice(TTS) options (e.g. SOLAPI voiceOptions).
76
+ */
77
+ voiceOptions?: {
78
+ voiceType: "FEMALE" | "MALE";
79
+ headerMessage?: string;
80
+ tailMessage?: string;
81
+ replyRange?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
82
+ counselorNumber?: string;
83
+ [key: string]: unknown;
84
+ };
85
+ /**
86
+ * Provider-specific fax options (e.g. SOLAPI faxOptions).
87
+ */
88
+ faxOptions?: {
89
+ fileIds?: string[];
90
+ fileUrls?: string[];
91
+ [key: string]: unknown;
92
+ };
55
93
  /**
56
94
  * Provider-specific RCS options (e.g. SOLAPI rcsOptions).
57
95
  */
58
96
  rcsOptions?: {
59
97
  brandId?: string;
60
98
  templateId?: string;
99
+ copyAllowed?: boolean;
61
100
  variables?: Record<string, string>;
101
+ mmsType?: "M3" | "S3" | "M4" | "S4" | "M5" | "S5" | "M6" | "S6";
102
+ commercialType?: boolean;
62
103
  disableSms?: boolean;
63
104
  buttons?: unknown[];
64
- additionalBody?: unknown;
105
+ additionalBody?: {
106
+ title?: string;
107
+ description?: string;
108
+ imageId?: string;
109
+ buttons?: unknown[];
110
+ [key: string]: unknown;
111
+ };
65
112
  [key: string]: unknown;
66
113
  };
67
114
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-msg/core",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "packageManager": "bun@1.3.8",
5
5
  "description": "Core types and interfaces for K-Message platform",
6
6
  "type": "module",