import { LambdaInvoker } from "./LambdaInvoker";

const getPlatforms = new LambdaInvoker("platform", "list", {
  type: "object",
  properties: {},
});

const createPlatform = new LambdaInvoker("platform", "create", {
  type: "object",
  properties: {
    icon: {
      type: "object",
      properties: {
        id: { type: "string" },
      },
      required: ["id"],
    },
    os: { type: "string" },
    dist: { type: "string" },
    codename: { type: "string" },
    dockerImage: { type: "string" },
  },
  required: ["os", "dist", "codename", "dockerImage"],
});

export { getPlatforms, createPlatform };
