mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-08-24 20:34:05 +02:00
254 lines
17 KiB
TypeScript
Generated
254 lines
17 KiB
TypeScript
Generated
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { PluginNameVersion, PluginSearchResponse, PluginUpdatesResponse } from "./gen_api";
|
|
import type { CallFolderActionRequest, CallGrpcRequestActionRequest, CallHttpRequestActionRequest, CallWebsocketRequestActionRequest, CallWorkspaceActionRequest, FilterResponse, GetFolderActionsResponse, GetGrpcRequestActionsResponse, GetHttpAuthenticationConfigResponse, GetHttpAuthenticationSummaryResponse, GetHttpRequestActionsResponse, GetTemplateFunctionConfigResponse, GetTemplateFunctionSummaryResponse, GetThemesResponse, GetWebsocketRequestActionsResponse, GetWorkspaceActionsResponse, JsonPrimitive, RenderPurpose } from "./gen_events";
|
|
import type { BranchDeleteResult, CloneResult, GitBranchInfo, GitCommit, GitFileDiff, GitRemote, GitStatusSummary, GitWorktreeStatus, PullResult, PushResult } from "./gen_git";
|
|
import type { ServiceDefinition } from "./gen_grpc";
|
|
import type { AnyModel, GraphQlIntrospection, GrpcEvent, HttpRequest, HttpRequestHeader, HttpResponse, HttpResponseEvent, Plugin, Settings, WebsocketConnection, WebsocketEvent, WorkspaceMeta } from "./gen_models";
|
|
import type { PluginMetadata } from "./gen_search";
|
|
import type { SyncOp } from "./gen_sync";
|
|
import type { BatchUpsertResult } from "./gen_util";
|
|
import type { Tokens } from "./parser";
|
|
import type { ServerSentEvent } from "./sse";
|
|
|
|
/**
|
|
* What the frontend learns about the host it is talking to.
|
|
*/
|
|
export type AppMetaData = { isDev: boolean, version: string, cliVersion: string | null, name: string, appDataDir: string, appLogDir: string, vendoredPluginDir: string, defaultProjectDir: string, featureUpdater: boolean, featureLicense: boolean, };
|
|
|
|
export type CmdCallFolderActionReq = { req: CallFolderActionRequest, };
|
|
|
|
export type CmdCallGrpcRequestActionReq = { req: CallGrpcRequestActionRequest, };
|
|
|
|
export type CmdCallHttpAuthenticationActionReq = { authName: string, actionIndex: number, values: { [key in string]?: JsonPrimitive }, model: AnyModel, environmentId: string | null, };
|
|
|
|
export type CmdCallHttpRequestActionReq = { req: CallHttpRequestActionRequest, };
|
|
|
|
export type CmdCallWebsocketRequestActionReq = { req: CallWebsocketRequestActionRequest, };
|
|
|
|
export type CmdCallWorkspaceActionReq = { req: CallWorkspaceActionRequest, };
|
|
|
|
export type CmdCheckForUpdatesReq = Record<string, never>;
|
|
|
|
export type CmdCurlToRequestReq = { command: string, workspaceId: string, };
|
|
|
|
export type CmdDecryptTemplateReq = { template: string, };
|
|
|
|
export type CmdDefaultHeadersReq = Record<string, never>;
|
|
|
|
export type CmdDeleteAllGrpcConnectionsReq = { requestId: string, };
|
|
|
|
export type CmdDeleteAllHttpResponsesReq = { requestId: string, };
|
|
|
|
export type CmdDeleteSendHistoryReq = { workspaceId: string, };
|
|
|
|
export type CmdDisableEncryptionReq = { workspaceId: string, };
|
|
|
|
export type CmdDismissNotificationReq = { notificationId: string, };
|
|
|
|
export type CmdEnableEncryptionReq = { workspaceId: string, };
|
|
|
|
export type CmdExportDataReq = { exportPath: string, workspaceIds: Array<string>, includePrivateEnvironments: boolean, };
|
|
|
|
export type CmdFolderActionsReq = Record<string, never>;
|
|
|
|
export type CmdFormatGraphqlReq = { text: string, };
|
|
|
|
export type CmdFormatJsonReq = { text: string, };
|
|
|
|
export type CmdGetHttpAuthenticationConfigReq = { authName: string, values: { [key in string]?: JsonPrimitive }, model: AnyModel, environmentId: string | null, };
|
|
|
|
export type CmdGetHttpAuthenticationSummariesReq = Record<string, never>;
|
|
|
|
export type CmdGetHttpResponseEventsReq = { responseId: string, };
|
|
|
|
export type CmdGetSseEventsReq = { responseId: string, };
|
|
|
|
export type CmdGetThemesReq = Record<string, never>;
|
|
|
|
export type CmdGetWorkspaceMetaReq = { workspaceId: string, };
|
|
|
|
export type CmdGitAddCredentialReq = { remoteUrl: string, username: string, password: string, };
|
|
|
|
export type CmdGitAddRemoteReq = { dir: string, name: string, url: string, };
|
|
|
|
export type CmdGitAddReq = { dir: string, relaPaths: Array<string>, };
|
|
|
|
export type CmdGitBranchInfoReq = { dir: string, };
|
|
|
|
export type CmdGitBranchReq = { dir: string, branch: string, base: string | null, };
|
|
|
|
export type CmdGitCheckoutReq = { dir: string, branch: string, force: boolean, };
|
|
|
|
export type CmdGitCloneReq = { url: string, dir: string, };
|
|
|
|
export type CmdGitCommitReq = { dir: string, message: string, };
|
|
|
|
export type CmdGitDeleteBranchReq = { dir: string, branch: string, force: boolean | null, };
|
|
|
|
export type CmdGitDeleteRemoteBranchReq = { dir: string, branch: string, };
|
|
|
|
export type CmdGitFetchAllReq = { dir: string, };
|
|
|
|
export type CmdGitFileDiffForCommitReq = { dir: string, commitOid: string, relaPath: string, };
|
|
|
|
export type CmdGitInitializeReq = { dir: string, };
|
|
|
|
export type CmdGitLogForFileReq = { dir: string, relaPath: string, };
|
|
|
|
export type CmdGitLogReq = { dir: string, };
|
|
|
|
export type CmdGitMergeBranchReq = { dir: string, branch: string, };
|
|
|
|
export type CmdGitPullForceResetReq = { dir: string, remote: string, branch: string, };
|
|
|
|
export type CmdGitPullMergeReq = { dir: string, remote: string, branch: string, };
|
|
|
|
export type CmdGitPullReq = { dir: string, };
|
|
|
|
export type CmdGitPushReq = { dir: string, };
|
|
|
|
export type CmdGitRemotesReq = { dir: string, };
|
|
|
|
export type CmdGitRenameBranchReq = { dir: string, oldName: string, newName: string, };
|
|
|
|
export type CmdGitResetChangesReq = { dir: string, };
|
|
|
|
export type CmdGitRestoreFileFromCommitReq = { dir: string, commitOid: string, relaPath: string, };
|
|
|
|
export type CmdGitRestoreFilesReq = { dir: string, relaPaths: Array<string>, };
|
|
|
|
export type CmdGitRmRemoteReq = { dir: string, name: string, };
|
|
|
|
export type CmdGitStatusReq = { dir: string, };
|
|
|
|
export type CmdGitUnstageReq = { dir: string, relaPaths: Array<string>, };
|
|
|
|
export type CmdGitWatchWorktreeStatusReq = { dir: string, streamId: string, };
|
|
|
|
export type CmdGitWorktreeStatusReq = { dir: string, };
|
|
|
|
export type CmdGrpcGoReq = { requestId: string, environmentId: string | null, protoFiles: Array<string>, };
|
|
|
|
export type CmdGrpcReflectReq = { requestId: string, environmentId: string | null, protoFiles: Array<string>, };
|
|
|
|
export type CmdGrpcRequestActionsReq = Record<string, never>;
|
|
|
|
export type CmdHttpRequestActionsReq = Record<string, never>;
|
|
|
|
export type CmdHttpRequestBodyReq = { responseId: string, };
|
|
|
|
export type CmdHttpResponseBodyPathReq = { responseId: string, };
|
|
|
|
export type CmdHttpResponseBodyReq = { responseId: string, filter: string | null, };
|
|
|
|
export type CmdImportDataReq = { filePath: string, };
|
|
|
|
export type CmdImportUrlReq = { url: string, };
|
|
|
|
export type CmdMetadataReq = Record<string, never>;
|
|
|
|
export type CmdNewChildWindowReq = { url: string, label: string, title: string, innerSize: [number, number], };
|
|
|
|
export type CmdNewMainWindowReq = { url: string, };
|
|
|
|
export type CmdPluginInfoReq = { id: string, };
|
|
|
|
export type CmdPluginInitErrorsReq = Record<string, never>;
|
|
|
|
export type CmdPluginsInstallFromDirectoryReq = { directory: string, };
|
|
|
|
export type CmdPluginsInstallReq = { name: string, version: string | null, };
|
|
|
|
export type CmdPluginsSearchReq = { query: string, };
|
|
|
|
export type CmdPluginsUninstallReq = { pluginId: string, };
|
|
|
|
export type CmdPluginsUpdateAllReq = Record<string, never>;
|
|
|
|
export type CmdPluginsUpdatesReq = Record<string, never>;
|
|
|
|
export type CmdReloadPluginsReq = Record<string, never>;
|
|
|
|
export type CmdRenderTemplateReq = { template: string, workspaceId: string, environmentId: string | null, purpose: RenderPurpose | null, ignoreError: boolean | null, };
|
|
|
|
export type CmdRestartReq = Record<string, never>;
|
|
|
|
export type CmdRevealWorkspaceKeyReq = { workspaceId: string, };
|
|
|
|
export type CmdSaveBase64ToBinaryReq = { filepath: string, data: string, };
|
|
|
|
export type CmdSaveResponseReq = { responseId: string, filepath: string, };
|
|
|
|
export type CmdSecureTemplateReq = { template: string, };
|
|
|
|
export type CmdSendEphemeralRequestReq = { request: HttpRequest, environmentId: string | null, cookieJarId: string | null, };
|
|
|
|
export type CmdSendFeedbackReq = { feature: string, text: string, };
|
|
|
|
export type CmdSendHttpRequestReq = { environmentId: string | null, cookieJarId: string | null, requestId: string, };
|
|
|
|
export type CmdSetWorkspaceKeyReq = { workspaceId: string, key: string, };
|
|
|
|
export type CmdSyncApplyReq = { syncOps: Array<SyncOp>, syncDir: string, workspaceId: string, };
|
|
|
|
export type CmdSyncCalculateFsReq = { dir: string, };
|
|
|
|
export type CmdSyncCalculateReq = { workspaceId: string, syncDir: string, };
|
|
|
|
export type CmdSyncWatchReq = { syncDir: string, workspaceId: string, streamId: string, };
|
|
|
|
export type CmdTemplateFunctionConfigReq = { functionName: string, values: { [key in string]?: JsonPrimitive }, model: AnyModel, environmentId: string | null, };
|
|
|
|
export type CmdTemplateFunctionSummariesReq = Record<string, never>;
|
|
|
|
export type CmdTemplateTokensToStringReq = { tokens: Tokens, };
|
|
|
|
export type CmdWebsocketRequestActionsReq = Record<string, never>;
|
|
|
|
export type CmdWorkspaceActionsReq = Record<string, never>;
|
|
|
|
export type CmdWsCloseReq = { connectionId: string, };
|
|
|
|
export type CmdWsConnectReq = { requestId: string, environmentId: string | null, cookieJarId: string | null, };
|
|
|
|
export type CmdWsDeleteConnectionsReq = { requestId: string, };
|
|
|
|
export type CmdWsSendReq = { connectionId: string, environmentId: string | null, };
|
|
|
|
/**
|
|
* An unsaved response and its body.
|
|
*
|
|
* The body rides along because nothing stored it: there is no database row to
|
|
* look up later and no file for a host to read, so this is the caller's only
|
|
* copy.
|
|
*/
|
|
export type EphemeralHttpResponse = { response: HttpResponse, body: Array<number>, };
|
|
|
|
/**
|
|
* Returned by the two watch commands: the name of the event to emit to stop
|
|
* the watcher.
|
|
*/
|
|
export type GitWatchResult = { unlistenEvent: string, };
|
|
|
|
export type ModelsDeleteReq = { model: AnyModel, };
|
|
|
|
export type ModelsDuplicateReq = { modelType: string, modelId: string, };
|
|
|
|
export type ModelsGetGraphqlIntrospectionReq = { requestId: string, };
|
|
|
|
export type ModelsGetSettingsReq = Record<string, never>;
|
|
|
|
export type ModelsGrpcEventsReq = { connectionId: string, };
|
|
|
|
export type ModelsUpsertGraphqlIntrospectionReq = { requestId: string, workspaceId: string, content: string | null, };
|
|
|
|
export type ModelsUpsertReq = { model: AnyModel, };
|
|
|
|
export type ModelsWebsocketEventsReq = { connectionId: string, };
|
|
|
|
export type ModelsWorkspaceModelsReq = { workspaceId: string | null, };
|
|
|
|
export type RpcSchema = { cmd_metadata: [CmdMetadataReq, AppMetaData], cmd_template_tokens_to_string: [CmdTemplateTokensToStringReq, string], cmd_render_template: [CmdRenderTemplateReq, string], cmd_send_feedback: [CmdSendFeedbackReq, null], cmd_dismiss_notification: [CmdDismissNotificationReq, null], cmd_grpc_reflect: [CmdGrpcReflectReq, Array<ServiceDefinition>], cmd_grpc_go: [CmdGrpcGoReq, string], cmd_restart: [CmdRestartReq, null], cmd_send_ephemeral_request: [CmdSendEphemeralRequestReq, EphemeralHttpResponse], cmd_format_json: [CmdFormatJsonReq, string], cmd_format_graphql: [CmdFormatGraphqlReq, string], cmd_http_response_body: [CmdHttpResponseBodyReq, FilterResponse], cmd_http_response_body_path: [CmdHttpResponseBodyPathReq, string | null], cmd_http_request_body: [CmdHttpRequestBodyReq, Array<number> | null], cmd_get_sse_events: [CmdGetSseEventsReq, Array<ServerSentEvent>], cmd_get_http_response_events: [CmdGetHttpResponseEventsReq, Array<HttpResponseEvent>], cmd_import_data: [CmdImportDataReq, BatchUpsertResult], cmd_import_url: [CmdImportUrlReq, BatchUpsertResult], cmd_http_request_actions: [CmdHttpRequestActionsReq, Array<GetHttpRequestActionsResponse>], cmd_websocket_request_actions: [CmdWebsocketRequestActionsReq, Array<GetWebsocketRequestActionsResponse>], cmd_call_websocket_request_action: [CmdCallWebsocketRequestActionReq, null], cmd_workspace_actions: [CmdWorkspaceActionsReq, Array<GetWorkspaceActionsResponse>], cmd_call_workspace_action: [CmdCallWorkspaceActionReq, null], cmd_folder_actions: [CmdFolderActionsReq, Array<GetFolderActionsResponse>], cmd_call_folder_action: [CmdCallFolderActionReq, null], cmd_grpc_request_actions: [CmdGrpcRequestActionsReq, Array<GetGrpcRequestActionsResponse>], cmd_template_function_summaries: [CmdTemplateFunctionSummariesReq, Array<GetTemplateFunctionSummaryResponse>], cmd_template_function_config: [CmdTemplateFunctionConfigReq, GetTemplateFunctionConfigResponse], cmd_get_http_authentication_summaries: [CmdGetHttpAuthenticationSummariesReq, Array<GetHttpAuthenticationSummaryResponse>], cmd_get_http_authentication_config: [CmdGetHttpAuthenticationConfigReq, GetHttpAuthenticationConfigResponse], cmd_call_http_request_action: [CmdCallHttpRequestActionReq, null], cmd_call_grpc_request_action: [CmdCallGrpcRequestActionReq, null], cmd_call_http_authentication_action: [CmdCallHttpAuthenticationActionReq, null], cmd_curl_to_request: [CmdCurlToRequestReq, HttpRequest], cmd_export_data: [CmdExportDataReq, null], cmd_save_base64_to_binary: [CmdSaveBase64ToBinaryReq, null], cmd_save_response: [CmdSaveResponseReq, null], cmd_send_http_request: [CmdSendHttpRequestReq, HttpResponse], cmd_reload_plugins: [CmdReloadPluginsReq, Array<[string, string]>], cmd_plugin_info: [CmdPluginInfoReq, PluginMetadata], cmd_delete_all_grpc_connections: [CmdDeleteAllGrpcConnectionsReq, null], cmd_delete_send_history: [CmdDeleteSendHistoryReq, null], cmd_delete_all_http_responses: [CmdDeleteAllHttpResponsesReq, null], cmd_get_workspace_meta: [CmdGetWorkspaceMetaReq, WorkspaceMeta], cmd_new_child_window: [CmdNewChildWindowReq, null], cmd_new_main_window: [CmdNewMainWindowReq, null], cmd_check_for_updates: [CmdCheckForUpdatesReq, boolean], cmd_decrypt_template: [CmdDecryptTemplateReq, string], cmd_secure_template: [CmdSecureTemplateReq, string], cmd_get_themes: [CmdGetThemesReq, Array<GetThemesResponse>], cmd_enable_encryption: [CmdEnableEncryptionReq, null], cmd_reveal_workspace_key: [CmdRevealWorkspaceKeyReq, string], cmd_set_workspace_key: [CmdSetWorkspaceKeyReq, null], cmd_disable_encryption: [CmdDisableEncryptionReq, null], cmd_default_headers: [CmdDefaultHeadersReq, Array<HttpRequestHeader>], models_upsert: [ModelsUpsertReq, string], models_delete: [ModelsDeleteReq, string], models_duplicate: [ModelsDuplicateReq, string], models_websocket_events: [ModelsWebsocketEventsReq, Array<WebsocketEvent>], models_grpc_events: [ModelsGrpcEventsReq, Array<GrpcEvent>], models_get_settings: [ModelsGetSettingsReq, Settings], models_get_graphql_introspection: [ModelsGetGraphqlIntrospectionReq, GraphQlIntrospection | null], models_upsert_graphql_introspection: [ModelsUpsertGraphqlIntrospectionReq, GraphQlIntrospection], models_workspace_models: [ModelsWorkspaceModelsReq, string], cmd_git_checkout: [CmdGitCheckoutReq, string], cmd_git_branch: [CmdGitBranchReq, null], cmd_git_delete_branch: [CmdGitDeleteBranchReq, BranchDeleteResult], cmd_git_delete_remote_branch: [CmdGitDeleteRemoteBranchReq, null], cmd_git_merge_branch: [CmdGitMergeBranchReq, null], cmd_git_rename_branch: [CmdGitRenameBranchReq, null], cmd_git_status: [CmdGitStatusReq, GitStatusSummary], cmd_git_branch_info: [CmdGitBranchInfoReq, GitBranchInfo], cmd_git_worktree_status: [CmdGitWorktreeStatusReq, GitWorktreeStatus], cmd_git_log: [CmdGitLogReq, Array<GitCommit>], cmd_git_log_for_file: [CmdGitLogForFileReq, Array<GitCommit>], cmd_git_file_diff_for_commit: [CmdGitFileDiffForCommitReq, GitFileDiff], cmd_git_initialize: [CmdGitInitializeReq, null], cmd_git_clone: [CmdGitCloneReq, CloneResult], cmd_git_commit: [CmdGitCommitReq, null], cmd_git_fetch_all: [CmdGitFetchAllReq, null], cmd_git_push: [CmdGitPushReq, PushResult], cmd_git_pull: [CmdGitPullReq, PullResult], cmd_git_pull_force_reset: [CmdGitPullForceResetReq, PullResult], cmd_git_pull_merge: [CmdGitPullMergeReq, PullResult], cmd_git_add: [CmdGitAddReq, null], cmd_git_unstage: [CmdGitUnstageReq, null], cmd_git_reset_changes: [CmdGitResetChangesReq, null], cmd_git_restore_files: [CmdGitRestoreFilesReq, null], cmd_git_restore_file_from_commit: [CmdGitRestoreFileFromCommitReq, null], cmd_git_add_credential: [CmdGitAddCredentialReq, null], cmd_git_remotes: [CmdGitRemotesReq, Array<GitRemote>], cmd_git_add_remote: [CmdGitAddRemoteReq, GitRemote], cmd_git_rm_remote: [CmdGitRmRemoteReq, null], cmd_sync_calculate: [CmdSyncCalculateReq, Array<SyncOp>], cmd_sync_calculate_fs: [CmdSyncCalculateFsReq, Array<SyncOp>], cmd_sync_apply: [CmdSyncApplyReq, null], cmd_ws_delete_connections: [CmdWsDeleteConnectionsReq, null], cmd_ws_send: [CmdWsSendReq, WebsocketConnection], cmd_ws_close: [CmdWsCloseReq, WebsocketConnection], cmd_ws_connect: [CmdWsConnectReq, WebsocketConnection], cmd_plugins_search: [CmdPluginsSearchReq, PluginSearchResponse], cmd_plugins_install: [CmdPluginsInstallReq, null], cmd_plugins_install_from_directory: [CmdPluginsInstallFromDirectoryReq, Plugin], cmd_plugins_uninstall: [CmdPluginsUninstallReq, Plugin], cmd_plugin_init_errors: [CmdPluginInitErrorsReq, Array<[string, string]>], cmd_plugins_updates: [CmdPluginsUpdatesReq, PluginUpdatesResponse], cmd_plugins_update_all: [CmdPluginsUpdateAllReq, Array<PluginNameVersion>], cmd_git_watch_worktree_status: [CmdGitWatchWorktreeStatusReq, GitWatchResult], cmd_sync_watch: [CmdSyncWatchReq, WatchResult], };
|
|
|
|
export type WatchResult = { unlistenEvent: string, };
|