import type { AxiosRequestConfig } from 'axios'; import type { AppManifestJSON } from '../../common/package'; export interface FetchAppBaseParams extends AxiosRequestConfig { pathMap?: Record; queryMap?: Record; } export interface FetchHostedAbilityBaseParams extends AxiosRequestConfig { pathMap?: Record; queryMap?: Record; } export interface FetchTokenInfoResponse { user?: { name?: string; email?: string; }; org?: { uuid?: string; visibility?: boolean; }; teams?: { uuid?: string; }[]; } export interface FetchHostedTokenParams { app_id: string; scopes: string[]; clear_storage: boolean; } export interface FetchHostedTokenResponse { code?: string; data?: { hosted_token?: string; token_type?: 'Bearer'; expires_in?: number; app_id?: string; scopes?: string[]; }; } export interface FetchHostedAbilityStorageDevDeclareParams { opkx_content: AppManifestJSON; } export interface FetchHostedAbilityStorageDevDeclareResponse { code?: string; } export interface FetchAppListItem { installation_id?: string; app_env?: string; } export interface FetchAppListResponse { data?: FetchAppListItem[]; } export interface FetchAppInstallParams { manifest_url: string; options?: { enable?: boolean; }; } export type FetchAppInstallResponse = { code?: 'OK'; }; export type FetchAppUninstallResponse = { code?: 'OK'; }; export type FetchAppEnableResponse = { code?: 'OK'; }; export type FetchAppDisableResponse = { code?: 'OK'; }; export interface FetchAppRuntimeLogsParams { app_id: string; tail?: number; } export interface FetchAppRuntimeLogsResponse { code?: string; data?: unknown; } export interface FetchAppBaseCall { (params: Params): Promise; } export interface FetchHostedAbilityBaseCall { (params: Params): Promise; } export interface FetchTokenInfoCall { (): Promise; } export interface FetchHostedTokenCall { (params: FetchHostedTokenParams): Promise; } export interface FetchHostedAbilityStorageDevDeclareCall { (appID: string, params: FetchHostedAbilityStorageDevDeclareParams): Promise; } export interface FetchAppListCall { (appID: string): Promise; } export interface FetchAppInstallCall { (appID: string, params: FetchAppInstallParams): Promise; } export interface FetchAppUninstallCall { (appID: string): Promise; } export interface FetchAppEnableCall { (appID: string): Promise; } export interface FetchAppDisableCall { (appID: string): Promise; } export interface FetchAppRuntimeLogsCall { (params: FetchAppRuntimeLogsParams): Promise; } //# sourceMappingURL=types.d.ts.map