OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

createUser

  • Type: operation (command)
  • Version: 1.0.0
  • File: packages/examples/video-api-showcase/src/sample-specs.ts
  • ```typescript

    export const createUser = defineCommand({

    meta: {

    name: "CreateUser",

    field.key.label
    createUser
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    createUser
    field.description.label
  • Type: operation (command)
  • Version: 1.0.0
  • File: packages/examples/video-api-showcase/src/sample-specs.ts
  • ```typescript

    export const createUser = defineCommand({

    meta: {

    name: "CreateUser",

    field.tags.label
    field.owners.label
    field.stability.label

    Source Definition

    export const createUser = defineCommand({
      meta: {
        name: "CreateUser",
        version: "1.0.0",
        stability: "Stable",
      },
      io: {
        input: z.object({
          email: z.string().email(),
          name: z.string(),
          role: z.enum(["admin", "user"]),
        }),
        output: z.object({
          id: z.string().uuid(),
          email: z.string(),
          createdAt: z.date(),
        }),
      },
    });