Skip to main content
Glama
iarchive.d.ts•1.51 kB
/// <reference types="node" /> /// <reference types="node" /> import ArchiveJszip from '../helper/archive/archive-jszip'; import { AutomizerParams } from '../types/types'; import JSZip, { InputType } from 'jszip'; import { XmlDocument } from '../types/xml-types'; import ArchiveFs from '../helper/archive/archive-fs'; export type ArchivedFile = { name: string; relativePath: string; content?: XmlDocument; }; export type ArchiveMode = 'jszip' | 'fs'; export type ArchiveType = ArchiveJszip | ArchiveFs; export type ArchivedFolderCallback = (file: ArchivedFile) => boolean; export type ArchiveInput = InputType; export default interface IArchive { filename: string; read: (file: string, type: any) => Promise<string | Buffer>; write: (file: string, data: string | Buffer) => Promise<ArchiveType>; readXml: (file: string) => Promise<XmlDocument>; writeXml: (file: string, XmlDocument: XmlDocument) => void; folder: (folder: string) => Promise<ArchivedFile[]>; fileExists: (file: string) => boolean; extract: (file: string) => Promise<ArchiveType>; remove: (file: string) => Promise<void>; output: (location: string, params: AutomizerParams) => Promise<void>; getContent?: (params: AutomizerParams) => Promise<Buffer>; getArchive?: (params: AutomizerParams) => Promise<Buffer>; stream?: (params: AutomizerParams, options: JSZip.JSZipGeneratorOptions<'nodebuffer'>) => Promise<NodeJS.ReadableStream>; getFinalArchive?: () => Promise<JSZip>; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guangxiangdebizi/PPT-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server