import { LambdaInvoker } from "./LambdaInvoker";

const createAsset = new LambdaInvoker("assets", "create", {
  type: "object",
  properties: {
    dir: { type: "string" },
    content: { type: "string", format: "base64" },
  },
  required: ["dir", "content"],
});

const getAsset = new LambdaInvoker("assets", "get", {
  type: "object",
  properties: {
    id: { type: "string" },
  },
  required: ["id"],
});

export { createAsset, getAsset };
