agsamantha/node_modules/@langchain/community/dist/utils/tencent_hunyuan/index.d.ts
2024-10-02 15:15:21 -05:00

13 lines
792 B
TypeScript

/**
* Method that calculate Tencent Cloud API v3 signature
* for making requests to the Tencent Cloud API.
* See https://cloud.tencent.com/document/api/1729/101843.
* @param host Tencent Cloud API host.
* @param payload HTTP request body.
* @param timestamp Sign timestamp in seconds.
* @param secretId Tencent Cloud Secret ID, which can be obtained from https://console.cloud.tencent.com/cam/capi.
* @param secretKey Tencent Cloud Secret Key, which can be obtained from https://console.cloud.tencent.com/cam/capi.
* @param headers HTTP request headers.
* @returns The signature for making requests to the Tencent API.
*/
export declare const sign: (host: string, payload: object, timestamp: number, secretId: string, secretKey: string, headers: Record<string, string>) => string;