feat: add platform capability contracts

This commit is contained in:
2026-04-28 11:17:07 +00:00
parent 251e08894a
commit 95a053d6bb
19 changed files with 340 additions and 3 deletions
+34
View File
@@ -0,0 +1,34 @@
import * as plugins from '../plugins.js';
export interface IReq_SendSms extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IReq_SendSms
> {
method: 'sendSms';
request: {
toNumber: number;
fromName: string;
messageText: string;
};
response: {
status: 'ok' | 'not ok';
};
}
export interface IReq_SendVerificationCode extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IReq_SendVerificationCode
> {
method: 'sendVerificationCode';
request: {
toNumber: number;
fromName: string;
};
response: {
status: 'ok' | 'not ok';
verificationCode: string;
};
}
export type IRequest_SendSms = IReq_SendSms;
export type IRequest_SendVerificationCode = IReq_SendVerificationCode;