UNPKG

@langchain/community

Version:
1 lines • 1.23 kB
{"version":3,"file":"common.d.cts","names":["service","signedHeaders","getDate","sign","Record"],"sources":["../../../src/utils/tencent_hunyuan/common.d.ts"],"sourcesContent":["export declare const service = \"hunyuan\";\nexport declare const signedHeaders = \"content-type;host\";\nexport declare const getDate: (timestamp: number) => string;\n/**\n * Method that calculate Tencent Cloud API v3 signature\n * for making requests to the Tencent Cloud API.\n * See https://cloud.tencent.com/document/api/1729/101843.\n * @param host Tencent Cloud API host.\n * @param payload HTTP request body.\n * @param timestamp Sign timestamp in seconds.\n * @param secretId Tencent Cloud Secret ID, which can be obtained from https://console.cloud.tencent.com/cam/capi.\n * @param secretKey Tencent Cloud Secret Key, which can be obtained from https://console.cloud.tencent.com/cam/capi.\n * @param headers HTTP request headers.\n * @returns The signature for making requests to the Tencent API.\n */\nexport type sign = (host: string, payload: object, timestamp: number, secretId: string, secretKey: string, headers: Record<string, string>) => string;\n//# sourceMappingURL=common.d.ts.map"],"mappings":";;;;;;;;;;;;;;KAeYG,IAAAA,oGAAwGC"}