add schemas for stream gateway messages

This commit is contained in:
dank074
2025-05-06 19:38:09 -05:00
parent dd079f935f
commit 54f6685082
7 changed files with 66 additions and 21 deletions
+13
View File
@@ -0,0 +1,13 @@
export interface StreamCreateSchema {
type: "guild" | "call";
channel_id: string;
guild_id?: string;
preferred_region?: string;
}
export const StreamCreateSchema = {
type: String,
channel_id: String,
$guild_id: String,
$preferred_region: String,
};
+7
View File
@@ -0,0 +1,7 @@
export interface StreamDeleteSchema {
stream_key: string;
}
export const StreamDeleteSchema = {
stream_key: String,
};
+7
View File
@@ -0,0 +1,7 @@
export interface StreamWatchSchema {
stream_key: string;
}
export const StreamWatchSchema = {
stream_key: String,
};
+3
View File
@@ -68,6 +68,9 @@ export * from "./responses";
export * from "./RoleModifySchema";
export * from "./RolePositionUpdateSchema";
export * from "./SelectProtocolSchema";
export * from "./StreamCreateSchema";
export * from "./StreamDeleteSchema";
export * from "./StreamWatchSchema";
export * from "./TeamCreateSchema";
export * from "./TemplateCreateSchema";
export * from "./TemplateModifySchema";