/**
 * ⚠️ WARNING: THIS FILE IS AUTO-GENERATED ⚠️
 * 
 * This file is generated by the type generation system.
 * Any manual changes will be overwritten on next server start and should always be committed.
 * 
 */

import { Type } from "@sinclair/typebox"

export const WorkSessionUpdateSchema = {
  $id: "#workSession/update",
  title: "core/workSession-update",
  type: "object",
  required: [
    "project",
  ],
  properties: {
    _id: {
      type: "string",
    },
    userId: {
      type: "string",
    },
    accessType: {
      default: "anonymous",
      enum: [
        "anonymous",
      ],
      type: "string",
    },
    compositionId: {
      type: "string",
    },
    project: {
      type: "string",
    },
    expiryDate: {
      format: "date-time",
      type: "string",
    },
    isActive: {
      default: true,
      type: "boolean",
    },
    permissions: {
      default: 6,
      type: "number",
    },
    pluginData: {
      default: {},
      type: "object",
      patternProperties: {
        "^(.*)$": {},
      },
    },
    composition: {},
  },
}



export default WorkSessionUpdateSchema
