import type { Static } from "@sinclair/typebox"
import { Type } from "@sinclair/typebox"

export const CommonHeadersSchema = Type.Object(
  {},
  {
    properties: {
      "app-session-id": Type.Optional(Type.String()),
      "app-request-code": Type.Optional(Type.String()),
      "current-project": Type.Optional(Type.String()),
      "app-broadcast-channels": Type.Optional(Type.Array(Type.String())),
    },
    additionalProperties: false,
  },
)

export type CommonHeaders = Static<typeof CommonHeadersSchema>
