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.

15 lines (14 loc) 884 B
import { CallHttpAuthenticationActionArgs, CallHttpAuthenticationRequest, CallHttpAuthenticationResponse, FormInput, GetHttpAuthenticationConfigRequest, GetHttpAuthenticationSummaryResponse, HttpAuthenticationAction } from '../bindings/gen_events'; import { MaybePromise } from '../helpers'; import { Context } from './Context'; type DynamicFormInput = FormInput & { dynamic(ctx: Context, args: GetHttpAuthenticationConfigRequest): MaybePromise<Partial<FormInput> | undefined | null>; }; export type AuthenticationPlugin = GetHttpAuthenticationSummaryResponse & { args: (FormInput | DynamicFormInput)[]; onApply(ctx: Context, args: CallHttpAuthenticationRequest): MaybePromise<CallHttpAuthenticationResponse>; actions?: (HttpAuthenticationAction & { onSelect(ctx: Context, args: CallHttpAuthenticationActionArgs): Promise<void> | void; })[]; }; export {};