import { HttpErrorResponse, HttpHeaders, HttpMethod, HttpResponse } from '../http'; import { IpcBusService, WorkspaceSdkBus } from '../ipc-bus'; import { SessionDefinition, SessionRequiredParams } from './session'; export interface ContainerSessionAuthorize { appKey: string; scope: string; isFromApiProxy: boolean; appName?: string; } export interface ContainerSessionAuthorizeStatus { error?: any; } export declare enum ContainerSessionChannel { Authorize = "/data-platform-proxy/csm/authorize", Request = "/data-platform-proxy/csm/request", Stream = "/data-platform-proxy/csm/stream" } export interface ContainerSessionRequest { url: string; appKey: string; scope?: string; handleAutoRedirect?: boolean; method?: HttpMethod; query?: {}; body?: {}; headers?: HttpHeaders; path?: {}; isFromApiProxy?: boolean; } export type ContainerSessionRequestStatus = HttpErrorResponse | HttpResponse; export declare enum ContainerSessionService { ApiProxy = "/data-platform-proxy/csm" } export declare const PIPE_INIT_WAIT_MAX_TIMEOUT_MS = 120000; export interface ContainerSessionParams extends SessionRequiredParams { readonly bus?: IpcBusService | WorkspaceSdkBus; readonly scope?: string; readonly appName?: string; } export interface ContainerSession { Definition(appKey: string): SessionDefinition; Definition(params: string | ContainerSessionParams): SessionDefinition; Definition(params: string | ContainerSessionParams): SessionDefinition; }