mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-11 22:30:59 +04:30
Expose POST /public/sms/send with API key + domain allowlist for external backends like Balout, wire Meshkee OTP/message sends to Gama, and publish Partner SMS docs on /docs/website. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
328 B
TypeScript
20 lines
328 B
TypeScript
import { IsNotEmpty, IsString, MaxLength, MinLength } from 'class-validator';
|
|
|
|
export class SendPublicSmsDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(253)
|
|
domain!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MaxLength(32)
|
|
to!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@MinLength(1)
|
|
@MaxLength(700)
|
|
message!: string;
|
|
}
|