功能新增: - OSS 存储使用情况显示(文件页面) - OSS 当日流量统计(阿里云云监控API) - 分享页面路由修复(/s/xxx 格式支持) Bug修复: - 修复分享页面资源路径(相对路径改绝对路径) - 修复分享码获取逻辑(支持路径格式) - 修复OSS配额undefined显示问题 - 修复登录流程OSS配置检查 - 修复文件数为null时的显示问题 依赖更新: - 添加 @alicloud/cms20190101 云监控SDK - 添加 @alicloud/openapi-client Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
109 lines
3.2 KiB
TypeScript
109 lines
3.2 KiB
TypeScript
/// <reference types="node" />
|
|
import { Readable } from 'stream';
|
|
import * as $tea from '@alicloud/tea-typescript';
|
|
export declare class ExtendsParameters extends $tea.Model {
|
|
headers?: {
|
|
[key: string]: string;
|
|
};
|
|
queries?: {
|
|
[key: string]: string;
|
|
};
|
|
static names(): {
|
|
[key: string]: string;
|
|
};
|
|
static types(): {
|
|
[key: string]: any;
|
|
};
|
|
constructor(map?: {
|
|
[key: string]: any;
|
|
});
|
|
}
|
|
export declare class RuntimeOptions extends $tea.Model {
|
|
autoretry?: boolean;
|
|
ignoreSSL?: boolean;
|
|
key?: string;
|
|
cert?: string;
|
|
ca?: string;
|
|
maxAttempts?: number;
|
|
backoffPolicy?: string;
|
|
backoffPeriod?: number;
|
|
readTimeout?: number;
|
|
connectTimeout?: number;
|
|
httpProxy?: string;
|
|
httpsProxy?: string;
|
|
noProxy?: string;
|
|
maxIdleConns?: number;
|
|
keepAlive?: boolean;
|
|
extendsParameters?: ExtendsParameters;
|
|
static names(): {
|
|
[key: string]: string;
|
|
};
|
|
static types(): {
|
|
[key: string]: any;
|
|
};
|
|
constructor(map?: {
|
|
[key: string]: any;
|
|
});
|
|
}
|
|
export default class Client {
|
|
static toString(buff: Buffer): string;
|
|
static parseJSON(text: string): any;
|
|
static readAsBytes(stream: Readable): Promise<Buffer>;
|
|
static readAsString(stream: Readable): Promise<string>;
|
|
static readAsJSON(stream: Readable): Promise<any>;
|
|
static getNonce(): string;
|
|
static getDateUTCString(): string;
|
|
static defaultString(real: string, defaultValue: string): string;
|
|
static defaultNumber(real: number, defaultValue: number): number;
|
|
static toFormString(val: {
|
|
[key: string]: any;
|
|
}): string;
|
|
static toJSONString(val: any): string;
|
|
static toBytes(val: string): Buffer;
|
|
static empty(val: string): boolean;
|
|
static equalString(val1: string, val2: string): boolean;
|
|
static equalNumber(val1: number, val2: number): boolean;
|
|
static isUnset(value: any): boolean;
|
|
static stringifyMapValue(m: {
|
|
[key: string]: any;
|
|
}): {
|
|
[key: string]: string;
|
|
};
|
|
static anyifyMapValue(m: {
|
|
[key: string]: string;
|
|
}): {
|
|
[key: string]: any;
|
|
};
|
|
static assertAsBoolean(value: any): boolean;
|
|
static assertAsString(value: any): string;
|
|
static assertAsNumber(value: any): number;
|
|
/**
|
|
* Assert a value, if it is a integer, return it, otherwise throws
|
|
* @return the integer value
|
|
*/
|
|
static assertAsInteger(value: any): number;
|
|
static assertAsMap(value: any): {
|
|
[key: string]: any;
|
|
};
|
|
static assertAsArray(value: any): any[];
|
|
static assertAsBytes(value: any): Buffer;
|
|
static getUserAgent(userAgent: string): string;
|
|
static is2xx(code: number): boolean;
|
|
static is3xx(code: number): boolean;
|
|
static is4xx(code: number): boolean;
|
|
static is5xx(code: number): boolean;
|
|
static validateModel(m: $tea.Model): void;
|
|
static toMap(inputModel: $tea.Model): {
|
|
[key: string]: any;
|
|
};
|
|
static sleep(millisecond: number): Promise<void>;
|
|
static toArray(input: any): {
|
|
[key: string]: any;
|
|
}[];
|
|
/**
|
|
* Assert a value, if it is a readable, return it, otherwise throws
|
|
* @return the readable value
|
|
*/
|
|
static assertAsReadable(value: any): Readable;
|
|
}
|