Add prompt() plugin API (#121)

This commit is contained in:
Gregory Schier authored and GitHub committed 2024-10-01 08:32:42 -07:00
1 parent be60e4648a
commit 7e4f807f75
26 files changed
+220 -82

No files matched your search

+9 -1
View File
@@ -1,4 +1,9 @@
import { TemplateRenderRequest, TemplateRenderResponse } from '@yaakapp-internal/plugin';
import {
ShowPromptRequest,
ShowPromptResponse,
TemplateRenderRequest,
TemplateRenderResponse,
} from '@yaakapp-internal/plugin';
import {
FindHttpResponsesRequest,
FindHttpResponsesResponse,
@@ -18,6 +23,9 @@ export type Context = {
toast: {
show(args: ShowToastRequest): void;
};
prompt: {
show(args: ShowPromptRequest): Promise<ShowPromptResponse['value']>;
};
httpRequest: {
send(args: SendHttpRequestRequest): Promise<SendHttpRequestResponse['httpResponse']>;
getById(args: GetHttpRequestByIdRequest): Promise<GetHttpRequestByIdResponse['httpRequest']>;