{"version":3,"file":"files.mjs","names":[],"sources":["../src/files.ts"],"sourcesContent":["import { Context } from 'effect'\nimport type { Effect } from 'effect'\nimport type { KnowledgeFileError } from './errors.ts'\n\nexport type PutKnowledgeFileInput = {\n  readonly storageKey: string\n  readonly mediaType?: string\n  readonly bytes: Uint8Array\n}\n\nexport type GetKnowledgeFileInput = {\n  readonly storageKey: string\n}\n\nexport type KnowledgeFileBlobStoreApi = {\n  readonly putFile: (input: PutKnowledgeFileInput) => Effect.Effect<void, KnowledgeFileError>\n  readonly getFile: (input: GetKnowledgeFileInput) => Effect.Effect<Uint8Array, KnowledgeFileError>\n  readonly deleteFile: (input: GetKnowledgeFileInput) => Effect.Effect<void, KnowledgeFileError>\n}\n\nexport class KnowledgeFileBlobStore extends Context.Service<\n  KnowledgeFileBlobStore,\n  KnowledgeFileBlobStoreApi\n>()('@yolk-sdk/knowledge/KnowledgeFileBlobStore') {}\n"],"mappings":";;AAoBA,IAAa,yBAAb,cAA4C,QAAQ,QAGlD,EAAE,4CAA4C,EAAE,CAAC"}