Files
vue-driven-cloud-storage/backend/node_modules/@alicloud/openapi-util/dist/client.d.ts
237899745 b135987fe8 feat: 添加多项功能和修复
功能新增:
- 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>
2026-01-22 21:04:22 +08:00

109 lines
3.6 KiB
TypeScript

/// <reference types="node" />
/**
* This is for OpenApi Util
*/
import * as $tea from '@alicloud/tea-typescript';
export default class Client {
/**
* Convert all params of body other than type of readable into content
* @param input source Model
* @param output target Model
* @return void
*/
static convert(input: $tea.Model, output: $tea.Model): void;
/**
* Get the string to be signed according to request
* @param request which contains signed messages
* @return the signed string
*/
static getStringToSign(request: $tea.Request): string;
/**
* Get signature according to stringToSign, secret
* @param stringToSign the signed string
* @param secret accesskey secret
* @return the signature
*/
static getROASignature(stringToSign: string, secret: string): string;
/**
* Parse filter into a form string
* @param filter object
* @return the string
*/
static toForm(filter: {
[key: string]: any;
}): string;
/**
* Get timestamp
* @return the timestamp string
*/
static getTimestamp(): string;
/**
* Parse filter into a object which's type is map[string]string
* @param filter query param
* @return the object
*/
static query(filter: {
[key: string]: any;
}): {
[key: string]: string;
};
/**
* Get signature according to signedParams, method and secret
* @param signedParams params which need to be signed
* @param method http method e.g. GET
* @param secret AccessKeySecret
* @return the signature
*/
static getRPCSignature(signedParams: {
[key: string]: string;
}, method: string, secret: string): string;
/**
* Parse array into a string with specified style
* @param array the array
* @param prefix the prefix string
* @style specified style e.g. repeatList
* @return the string
*/
static arrayToStringWithSpecifiedStyle(array: any, prefix: string, style: string): string;
/**
* Transform input as map.
*/
static parseToMap(input: any): {
[key: string]: any;
};
static getEndpoint(endpoint: string, serverUse: boolean, endpointType: string): string;
/**
* Encode raw with base16
* @param raw encoding data
* @return encoded string
*/
static hexEncode(raw: Buffer): string;
/**
* Hash the raw data with signatureAlgorithm
* @param raw hashing data
* @param signatureAlgorithm the autograph method
* @return hashed bytes
*/
static hash(raw: Buffer, signatureAlgorithm: string): Buffer;
static signatureMethod(secret: string, source: string, signatureAlgorithm: string): Buffer;
/**
* Get the authorization
* @param request request params
* @param signatureAlgorithm the autograph method
* @param payload the hashed request
* @param acesskey the acesskey string
* @param accessKeySecret the accessKeySecret string
* @return authorization string
*/
static getAuthorization(request: $tea.Request, signatureAlgorithm: string, payload: string, acesskey: string, accessKeySecret: string): string;
static getEncodePath(path: string): string;
static getEncodeParam(param: string): string;
/**
* Transform a map to a flat style map where keys are prefixed with length info.
* Map keys are transformed from "key" to "#length#key" format.
* @param object the input object (can be a Model, Array, Map, or other types)
* @return the transformed object
*/
static mapToFlatStyle(object: any): any;
}