Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

456 B
Raw Blame
import { z } from 'zod'

// Why trimmed: the stores trim before saving, so a blank paste must fail here, not as "required".
// Why bounded: a pasted value larger than any real key or Cookie header is a mistake, not a credential.
export const UsageCredentialApiKeyParams = z.strictObject({
  apiKey: z.string().trim().min(1).max(4_096)
})

export const UsageCredentialSessionCookieParams = z.strictObject({
  cookie: z.string().trim().min(1).max(65_536)
})