INNER CODE UNIT · TypeScript
body
stablyai/orca · cloud/apps/relay/src/app.ts:495
const body = RuntimeStatusSchema.safeParse(await context.req.json().catch(() => null))
if (!body.success) return context.json({ error: 'invalid_request' }, 400)
return context.json({
v: 1,
role: config.role,
cellId: config.cellId,
cellUrl: config.cellUrl,
region: config.region ?? RELAY_DEFAULT_REGION,
imageDigest: config.imageDigest ?? null,
draining: operations.isDraining?.() ?? false,
regionalRehomeProtocol:
config.rehomeAudience && config.rehomeDirectorServiceAccount ? 1 : 0,
connectionCapacity:
config.connectionHardCap === undefined
? null
: {
hardCap: config.connectionHardCap,
controlRebindReserve: RELAY_ADMISSION_BUDGETS.reservedHostControls,