@k-msg/core 0.1.6 → 0.3.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.
- package/dist/config.d.ts +4 -2
- package/dist/index.js +25 -25
- package/dist/index.js.map +5 -5
- package/dist/index.mjs +25 -25
- package/dist/index.mjs.map +5 -5
- package/dist/platform.d.ts +20 -10
- package/dist/types/balance.d.ts +12 -0
- package/dist/types/history.d.ts +40 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/message.d.ts +1 -1
- package/dist/types/platform.d.ts +19 -7
- package/dist/types/standard.d.ts +28 -3
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare const SMSConfigSchema: z.ZodObject<{
|
|
|
50
50
|
provider: z.ZodEnum<{
|
|
51
51
|
iwinv: "iwinv";
|
|
52
52
|
aligo: "aligo";
|
|
53
|
+
solapi: "solapi";
|
|
53
54
|
coolsms: "coolsms";
|
|
54
55
|
}>;
|
|
55
56
|
apiKey: z.ZodString;
|
|
@@ -155,6 +156,7 @@ export declare const KMessageConfigSchema: z.ZodObject<{
|
|
|
155
156
|
provider: z.ZodEnum<{
|
|
156
157
|
iwinv: "iwinv";
|
|
157
158
|
aligo: "aligo";
|
|
159
|
+
solapi: "solapi";
|
|
158
160
|
coolsms: "coolsms";
|
|
159
161
|
}>;
|
|
160
162
|
apiKey: z.ZodString;
|
|
@@ -193,7 +195,7 @@ export type KMessageConfig = z.infer<typeof KMessageConfigSchema>;
|
|
|
193
195
|
export declare class ConfigLoader {
|
|
194
196
|
static loadFromEnv(): KMessageConfig;
|
|
195
197
|
static loadFromFile(filePath: string): Promise<KMessageConfig>;
|
|
196
|
-
static validate(config:
|
|
198
|
+
static validate(config: unknown): KMessageConfig;
|
|
197
199
|
static getDefaults(): KMessageConfig;
|
|
198
200
|
}
|
|
199
201
|
type DeepPartial<T> = {
|
|
@@ -202,5 +204,5 @@ type DeepPartial<T> = {
|
|
|
202
204
|
export declare const developmentConfig: DeepPartial<KMessageConfig>;
|
|
203
205
|
export declare const productionConfig: DeepPartial<KMessageConfig>;
|
|
204
206
|
export declare function mergeConfigs(base: KMessageConfig, override: Partial<KMessageConfig>): KMessageConfig;
|
|
205
|
-
export declare function validateProviderConfig(provider: "iwinv" | "sms", config:
|
|
207
|
+
export declare function validateProviderConfig(provider: "iwinv" | "sms", config: unknown): IWINVConfig | SMSConfig;
|
|
206
208
|
export {};
|