blob: c7efbdd6cc5afb559e57999f16d0675a749c28fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../core/resource';
import { APIPromise } from '../core/api-promise';
import { RequestOptions } from '../internal/request-options';
export class Tui extends APIResource {
/**
* Append prompt to the TUI
*/
appendPrompt(body: TuiAppendPromptParams, options?: RequestOptions): APIPromise<TuiAppendPromptResponse> {
return this._client.post('/tui/append-prompt', { body, ...options });
}
/**
* Open the help dialog
*/
openHelp(options?: RequestOptions): APIPromise<TuiOpenHelpResponse> {
return this._client.post('/tui/open-help', options);
}
}
export type TuiAppendPromptResponse = boolean;
export type TuiOpenHelpResponse = boolean;
export interface TuiAppendPromptParams {
text: string;
}
export declare namespace Tui {
export {
type TuiAppendPromptResponse as TuiAppendPromptResponse,
type TuiOpenHelpResponse as TuiOpenHelpResponse,
type TuiAppendPromptParams as TuiAppendPromptParams,
};
}
|