@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 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: any): KMessageConfig;
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: any): any;
207
+ export declare function validateProviderConfig(provider: "iwinv" | "sms", config: unknown): IWINVConfig | SMSConfig;
206
208
  export {};