@k-msg/provider 0.1.4 → 0.1.6
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/adapters/iwinv.adapter.d.ts +2 -5
- package/dist/index.js +23 -23
- package/dist/index.js.map +6 -5
- package/dist/index.mjs +23 -23
- package/dist/index.mjs.map +6 -5
- package/dist/iwinv/types/iwinv.d.ts +12 -4
- package/package.json +2 -2
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* IWINV API TypeScript 타입 정의
|
|
3
3
|
* IWINV 알림톡 REST API 규격서 기반
|
|
4
4
|
*/
|
|
5
|
+
import type { ProviderConfig } from "@k-msg/core";
|
|
5
6
|
export interface IWINVBaseResponse {
|
|
6
7
|
code: number;
|
|
7
8
|
message: string;
|
|
@@ -113,21 +114,28 @@ export type CancelReservationResponse = IWINVBaseResponse;
|
|
|
113
114
|
export interface BalanceResponse extends IWINVBaseResponse {
|
|
114
115
|
charge: number;
|
|
115
116
|
}
|
|
116
|
-
export interface IWINVConfig {
|
|
117
|
-
apiKey: string;
|
|
118
|
-
baseUrl: string;
|
|
117
|
+
export interface IWINVConfig extends ProviderConfig {
|
|
119
118
|
smsApiKey?: string;
|
|
120
119
|
smsAuthKey?: string;
|
|
121
120
|
smsBaseUrl?: string;
|
|
122
121
|
senderNumber?: string;
|
|
123
122
|
smsSenderNumber?: string;
|
|
124
123
|
sendEndpoint?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Optional proxy/IP override header for IP-restricted IWINV endpoints.
|
|
126
|
+
* Intended for testing or controlled environments; production should whitelist real egress IPs.
|
|
127
|
+
*/
|
|
128
|
+
xForwardedFor?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Extra HTTP headers merged into outgoing requests.
|
|
131
|
+
* Use with care: overriding AUTH/secret can break requests.
|
|
132
|
+
*/
|
|
133
|
+
extraHeaders?: Record<string, string>;
|
|
125
134
|
ipRetryCount?: number;
|
|
126
135
|
ipRetryDelayMs?: number;
|
|
127
136
|
ipAlertWebhookUrl?: string;
|
|
128
137
|
onIpRestrictionAlert?: (payload: IWINVIPRestrictionAlert) => void | Promise<void>;
|
|
129
138
|
debug?: boolean;
|
|
130
|
-
[key: string]: unknown;
|
|
131
139
|
}
|
|
132
140
|
export interface IWINVIPRestrictionAlert {
|
|
133
141
|
provider: "iwinv";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-msg/provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"packageManager": "bun@1.3.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Complete provider system with adapters and implementations for K-Message platform",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"publish": "bun publish --access public"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@k-msg/core": "0.1.
|
|
58
|
+
"@k-msg/core": "0.1.6",
|
|
59
59
|
"zod": "^4.0.14"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|