2026-05-31 01:41:33 +08:00
|
|
|
import { FormItemProps, IAccessService } from "@certd/pipeline";
|
2026-06-19 17:44:57 +08:00
|
|
|
import type { RuntimeDepsService } from "../../runtime-deps/runtime-deps-service.js";
|
2024-11-28 17:36:45 +08:00
|
|
|
|
|
|
|
|
export interface ISmsService {
|
|
|
|
|
sendSmsCode(opts: { mobile: string; code: string; phoneCode: string }): Promise<void>;
|
2026-06-19 17:44:57 +08:00
|
|
|
setCtx(ctx: { accessService: IAccessService; config: { [key: string]: any }; runtimeDepsService?: RuntimeDepsService }): Promise<void>;
|
2024-11-28 17:36:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PluginInputs<T = any> = {
|
|
|
|
|
[key in keyof T]: FormItemProps;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type SmsPluginCtx<T = any> = {
|
|
|
|
|
accessService: IAccessService;
|
|
|
|
|
config: T;
|
2026-06-19 17:44:57 +08:00
|
|
|
runtimeDepsService?: RuntimeDepsService;
|
2024-11-28 17:36:45 +08:00
|
|
|
};
|