UNPKG

netstorage

Version:

A TypeScript API and CLI for the Akamai NetStorage REST interface

13 lines (12 loc) 535 B
/** * Represents the parsed structure of a NetStorage XML API response. */ export type ParsedNetStorageResponse = Record<string, Record<string, unknown>>; /** * Parses a NetStorage XML response string into a structured JavaScript object. * * @param body - The XML string returned by the NetStorage API. * @param status - The HTTP status code from the response. * @returns A parsed object representing the XML response. */ export declare function parseXmlResponse<T = ParsedNetStorageResponse>(body: string, status: number): T;