mirror of
https://github.com/nestriness/nestri.git
synced 2026-08-02 01:35:18 +03:00
fix: For posterity, am committing this
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import z from "zod";
|
||||
import path from "path";
|
||||
import { $ } from "bun";
|
||||
import z from "zod";
|
||||
import { Bus } from "../bus/index.js";
|
||||
import { Log } from "../utils/log.js";
|
||||
import { NamedError } from "../utils/error.js";
|
||||
|
||||
@@ -98,9 +98,9 @@ export namespace Session {
|
||||
id: input.id,
|
||||
// room: input.room || undefined,
|
||||
machine: input.machine,
|
||||
relayUrl: input.relayUrl,
|
||||
retry: input.retry || undefined,
|
||||
queue: input.queue || undefined,
|
||||
relayUrl: input.relayUrl || undefined,
|
||||
description: input.description || undefined,
|
||||
maxDuration: input.maxDuration || undefined,
|
||||
resolution: input.resolution || undefined,
|
||||
|
||||
@@ -38,7 +38,7 @@ export const sessionTable = pgTable("sessions", {
|
||||
.notNull()
|
||||
.default("ns3-micro"),
|
||||
maxDuration: integer("max_duration"),
|
||||
relayUrl: varchar("relay_url", { length: 500 }).notNull(),
|
||||
relayUrl: varchar("relay_url", { length: 500 }),
|
||||
resolution: varchar("resolution", {
|
||||
length: 20,
|
||||
}).$type<ScreenResolutionPresetName>(),
|
||||
|
||||
@@ -135,14 +135,10 @@ export const SessionInfo = z
|
||||
example: Examples.Session.maxDuration,
|
||||
}),
|
||||
/** Nestri relay URL for streaming and signaling */
|
||||
relayUrl: z
|
||||
.url()
|
||||
.optional()
|
||||
.meta({
|
||||
description: "Nestri relay URL for streaming and signaling",
|
||||
example: Examples.Session.relayUrl,
|
||||
})
|
||||
.default("https://relay.nestri.io"),
|
||||
relayUrl: z.url().optional().meta({
|
||||
description: "Nestri relay URL for streaming and signaling",
|
||||
example: Examples.Session.relayUrl,
|
||||
}),
|
||||
/** Display or stream resolution in 'WxH' format */
|
||||
resolution: ScreenResolutionPresetName.optional().meta({
|
||||
description: "Display or stream resolution in 'WxH' format",
|
||||
|
||||
@@ -12,7 +12,7 @@ type Tags = {
|
||||
export namespace Log {
|
||||
const ctx = Context.create<{
|
||||
tags: Record<string, any>;
|
||||
}>();
|
||||
}>("Log");
|
||||
|
||||
export const Level = z
|
||||
.enum(["DEBUG", "INFO", "WARN", "ERROR"])
|
||||
|
||||
Reference in New Issue
Block a user