INNER CODE UNIT · TypeScript

body

stablyai/orca · cloud/apps/relay/src/app.ts:1247

    const body = AdminCellStatusSchema.safeParse(await context.req.json().catch(() => null))
    if (!body.success) return context.json({ error: 'invalid_request' }, 400)
    try {
      const status = await operations.assignments.cellDeploymentStatus(body.data.cellId)
      return context.json({ v: 1, status })
    } catch (error) {
      return context.json({ error: operationError(error) }, 404)
    }
  })
  return app
}

const AdminAssignmentMoveSchema = z
  .object({
    v: z.literal(1),
    userId: z.string().min(1).max(256),
    relayHostId: z.string().regex(/^[A-Za-z0-9_-]{16}$/),
    targetCellId: z.string().min(1).max(128)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…