UNPKG

@yaakapp/api

Version:

Yaak is a desktop [API client](https://yaak.app/blog/yet-another-api-client) for interacting with REST, GraphQL, Server Sent Events (SSE), WebSocket, and gRPC APIs. It's built using Tauri, Rust, and ReactJS.

139 lines (138 loc) 3.47 kB
export type Environment = { model: "environment"; id: string; workspaceId: string; createdAt: string; updatedAt: string; name: string; public: boolean; base: boolean; variables: Array<EnvironmentVariable>; color: string | null; }; export type EnvironmentVariable = { enabled?: boolean; name: string; value: string; id?: string; }; export type Folder = { model: "folder"; id: string; createdAt: string; updatedAt: string; workspaceId: string; folderId: string | null; authentication: Record<string, any>; authenticationType: string | null; description: string; headers: Array<HttpRequestHeader>; name: string; sortPriority: number; }; export type GrpcRequest = { model: "grpc_request"; id: string; createdAt: string; updatedAt: string; workspaceId: string; folderId: string | null; authenticationType: string | null; authentication: Record<string, any>; description: string; message: string; metadata: Array<HttpRequestHeader>; method: string | null; name: string; service: string | null; sortPriority: number; url: string; }; export type HttpRequest = { model: "http_request"; id: string; createdAt: string; updatedAt: string; workspaceId: string; folderId: string | null; authentication: Record<string, any>; authenticationType: string | null; body: Record<string, any>; bodyType: string | null; description: string; headers: Array<HttpRequestHeader>; method: string; name: string; sortPriority: number; url: string; urlParameters: Array<HttpUrlParameter>; }; export type HttpRequestHeader = { enabled?: boolean; name: string; value: string; id?: string; }; export type HttpResponse = { model: "http_response"; id: string; createdAt: string; updatedAt: string; workspaceId: string; requestId: string; bodyPath: string | null; contentLength: number | null; elapsed: number; elapsedHeaders: number; error: string | null; headers: Array<HttpResponseHeader>; remoteAddr: string | null; status: number; statusReason: string | null; state: HttpResponseState; url: string; version: string | null; }; export type HttpResponseHeader = { name: string; value: string; }; export type HttpResponseState = "initialized" | "connected" | "closed"; export type HttpUrlParameter = { enabled?: boolean; name: string; value: string; id?: string; }; export type WebsocketRequest = { model: "websocket_request"; id: string; createdAt: string; updatedAt: string; workspaceId: string; folderId: string | null; authentication: Record<string, any>; authenticationType: string | null; description: string; headers: Array<HttpRequestHeader>; message: string; name: string; sortPriority: number; url: string; urlParameters: Array<HttpUrlParameter>; }; export type Workspace = { model: "workspace"; id: string; createdAt: string; updatedAt: string; authentication: Record<string, any>; authenticationType: string | null; description: string; headers: Array<HttpRequestHeader>; name: string; encryptionKeyChallenge: string | null; settingValidateCertificates: boolean; settingFollowRedirects: boolean; settingRequestTimeout: number; };