UNPKG

@iexec/iapp

Version:

A CLI to guide you through the process of building an iExec iApp

15 lines (14 loc) 871 B
type MimeType = 'application/octet-stream' | 'application/pdf' | 'application/xml' | 'application/zip' | 'audio/midi' | 'audio/mpeg' | 'audio/x-wav' | 'image/bmp' | 'image/gif' | 'image/jpeg' | 'image/png' | 'image/webp' | 'video/mp4' | 'video/mpeg' | 'video/x-msvideo'; type ScalarType = 'bool' | 'i128' | 'f64' | 'string'; export type DataSchemaEntryType = ScalarType | MimeType; export type DataSchema = { [key: string]: DataSchema | DataSchemaEntryType; }; export type DataScalarType = boolean | number | bigint | string | Uint8Array | ArrayBuffer | File; export type DataObject = { [key: string]: DataObject | DataScalarType; }; export declare const ALLOWED_KEY_NAMES_REGEXP: RegExp; export declare const extractDataSchema: (data: DataObject) => Promise<DataSchema>; export declare const createZipFromObject: (obj: object) => Promise<Uint8Array>; export {};