// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { AnyModel, Environment, Folder, GrpcRequest, HttpRequest, HttpResponse, WebsocketRequest, Workspace } from "./gen_models"; import type { JsonValue } from "./serde_json/JsonValue"; export type BootRequest = { dir: string, watch: boolean, }; export type CallFolderActionArgs = { folder: Folder, }; export type CallFolderActionRequest = { index: number, pluginRefId: string, args: CallFolderActionArgs, }; export type CallGrpcRequestActionArgs = { grpcRequest: GrpcRequest, protoFiles: Array, }; export type CallGrpcRequestActionRequest = { index: number, pluginRefId: string, args: CallGrpcRequestActionArgs, }; export type CallHttpAuthenticationActionArgs = { contextId: string, values: { [key in string]?: JsonPrimitive }, }; export type CallHttpAuthenticationActionRequest = { index: number, pluginRefId: string, args: CallHttpAuthenticationActionArgs, }; export type CallHttpAuthenticationRequest = { contextId: string, values: { [key in string]?: JsonPrimitive }, method: string, url: string, headers: Array, }; export type CallHttpAuthenticationResponse = { /** * HTTP headers to add to the request. Existing headers will be replaced, while * new headers will be added. */ setHeaders?: Array, /** * Query parameters to add to the request. Existing params will be replaced, while * new params will be added. */ setQueryParameters?: Array, }; export type CallHttpRequestActionArgs = { httpRequest: HttpRequest, }; export type CallHttpRequestActionRequest = { index: number, pluginRefId: string, args: CallHttpRequestActionArgs, }; export type CallTemplateFunctionArgs = { purpose: RenderPurpose, values: { [key in string]?: JsonPrimitive }, }; export type CallTemplateFunctionRequest = { name: string, args: CallTemplateFunctionArgs, }; export type CallTemplateFunctionResponse = { value: string | null, error?: string, }; export type CallWebsocketRequestActionArgs = { websocketRequest: WebsocketRequest, }; export type CallWebsocketRequestActionRequest = { index: number, pluginRefId: string, args: CallWebsocketRequestActionArgs, }; export type CallWorkspaceActionArgs = { workspace: Workspace, }; export type CallWorkspaceActionRequest = { index: number, pluginRefId: string, args: CallWorkspaceActionArgs, }; export type CloseWindowRequest = { label: string, }; export type Color = "primary" | "secondary" | "info" | "success" | "notice" | "warning" | "danger"; export type CompletionOptionType = "constant" | "variable"; export type Content = { "type": "text", content: string, } | { "type": "markdown", content: string, }; export type CopyTextRequest = { text: string, }; export type DeleteKeyValueRequest = { key: string, }; export type DeleteKeyValueResponse = { deleted: boolean, }; export type DeleteModelRequest = { model: string, id: string, }; export type DeleteModelResponse = { model: AnyModel, }; export type DialogSize = "sm" | "md" | "lg" | "full" | "dynamic"; export type EditorLanguage = "text" | "javascript" | "json" | "html" | "xml" | "graphql" | "markdown" | "c" | "clojure" | "csharp" | "go" | "http" | "java" | "kotlin" | "objective_c" | "ocaml" | "php" | "powershell" | "python" | "r" | "ruby" | "shell" | "swift"; export type EmptyPayload = {}; export type ErrorResponse = { error: string, }; export type ExportHttpRequestRequest = { httpRequest: HttpRequest, }; export type ExportHttpRequestResponse = { content: string, }; export type FileFilter = { name: string, /** * File extensions to require */ extensions: Array, }; export type FilterRequest = { content: string, filter: string, }; export type FilterResponse = { content: string, error?: string, }; export type FindHttpResponsesRequest = { requestId: string, limit?: number, }; export type FindHttpResponsesResponse = { httpResponses: Array, }; export type FolderAction = { label: string, icon?: Icon, }; export type FormInput = { "type": "text" } & FormInputText | { "type": "editor" } & FormInputEditor | { "type": "select" } & FormInputSelect | { "type": "checkbox" } & FormInputCheckbox | { "type": "file" } & FormInputFile | { "type": "http_request" } & FormInputHttpRequest | { "type": "accordion" } & FormInputAccordion | { "type": "h_stack" } & FormInputHStack | { "type": "banner" } & FormInputBanner | { "type": "markdown" } & FormInputMarkdown | { "type": "key_value" } & FormInputKeyValue; export type FormInputAccordion = { label: string, inputs?: Array, hidden?: boolean, }; export type FormInputBanner = { inputs?: Array, hidden?: boolean, color?: Color, }; export type FormInputBase = { /** * The name of the input. The value will be stored at this object attribute in the resulting data */ name: string, /** * Whether this input is visible for the given configuration. Use this to * make branching forms. */ hidden?: boolean, /** * Whether the user must fill in the argument */ optional?: boolean, /** * The label of the input */ label?: string, /** * Visually hide the label of the input */ hideLabel?: boolean, /** * The default value */ defaultValue?: string, disabled?: boolean, /** * Longer description of the input, likely shown in a tooltip */ description?: string, }; export type FormInputCheckbox = { /** * The name of the input. The value will be stored at this object attribute in the resulting data */ name: string, /** * Whether this input is visible for the given configuration. Use this to * make branching forms. */ hidden?: boolean, /** * Whether the user must fill in the argument */ optional?: boolean, /** * The label of the input */ label?: string, /** * Visually hide the label of the input */ hideLabel?: boolean, /** * The default value */ defaultValue?: string, disabled?: boolean, /** * Longer description of the input, likely shown in a tooltip */ description?: string, }; export type FormInputEditor = { /** * Placeholder for the text input */ placeholder?: string | null, /** * Don't show the editor gutter (line numbers, folds, etc.) */ hideGutter?: boolean, /** * Language for syntax highlighting */ language?: EditorLanguage, readOnly?: boolean, /** * Fixed number of visible rows */ rows?: number, completionOptions?: Array, /** * The name of the input. The value will be stored at this object attribute in the resulting data */ name: string, /** * Whether this input is visible for the given configuration. Use this to * make branching forms. */ hidden?: boolean, /** * Whether the user must fill in the argument */ optional?: boolean, /** * The label of the input */ label?: string, /** * Visually hide the label of the input */ hideLabel?: boolean, /** * The default value */ defaultValue?: string, disabled?: boolean, /** * Longer description of the input, likely shown in a tooltip */ description?: string, }; export type FormInputFile = { /** * The title of the file selection window */ title: string, /** * Allow selecting multiple files */ multiple?: boolean, directory?: boolean, defaultPath?: string, filters?: Array, /** * The name of the input. The value will be stored at this object attribute in the resulting data */ name: string, /** * Whether this input is visible for the given configuration. Use this to * make branching forms. */ hidden?: boolean, /** * Whether the user must fill in the argument */ optional?: boolean, /** * The label of the input */ label?: string, /** * Visually hide the label of the input */ hideLabel?: boolean, /** * The default value */ defaultValue?: string, disabled?: boolean, /** * Longer description of the input, likely shown in a tooltip */ description?: string, }; export type FormInputHStack = { inputs?: Array, hidden?: boolean, }; export type FormInputHttpRequest = { /** * The name of the input. The value will be stored at this object attribute in the resulting data */ name: string, /** * Whether this input is visible for the given configuration. Use this to * make branching forms. */ hidden?: boolean, /** * Whether the user must fill in the argument */ optional?: boolean, /** * The label of the input */ label?: string, /** * Visually hide the label of the input */ hideLabel?: boolean, /** * The default value */ defaultValue?: string, disabled?: boolean, /** * Longer description of the input, likely shown in a tooltip */ description?: string, }; export type FormInputKeyValue = { /** * The name of the input. The value will be stored at this object attribute in the resulting data */ name: string, /** * Whether this input is visible for the given configuration. Use this to * make branching forms. */ hidden?: boolean, /** * Whether the user must fill in the argument */ optional?: boolean, /** * The label of the input */ label?: string, /** * Visually hide the label of the input */ hideLabel?: boolean, /** * The default value */ defaultValue?: string, disabled?: boolean, /** * Longer description of the input, likely shown in a tooltip */ description?: string, }; export type FormInputMarkdown = { content: string, hidden?: boolean, }; export type FormInputSelect = { /** * The options that will be available in the select input */ options: Array, /** * The name of the input. The value will be stored at this object attribute in the resulting data */ name: string, /** * Whether this input is visible for the given configuration. Use this to * make branching forms. */ hidden?: boolean, /** * Whether the user must fill in the argument */ optional?: boolean, /** * The label of the input */ label?: string, /** * Visually hide the label of the input */ hideLabel?: boolean, /** * The default value */ defaultValue?: string, disabled?: boolean, /** * Longer description of the input, likely shown in a tooltip */ description?: string, }; export type FormInputSelectOption = { label: string, value: string, }; export type FormInputText = { /** * Placeholder for the text input */ placeholder?: string | null, /** * Placeholder for the text input */ password?: boolean, /** * Whether to allow newlines in the input, like a