tencentcloud-sdk-nodejs-tokenhub 4.1.241 → 4.1.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
53
53
|
|
|
54
54
|
从 CLS 日志服务查询套餐下的调用明细,按 pkg_id 过滤,支持游标分页。
|
|
55
55
|
*/
|
|
56
|
-
DescribeTokenPlanApiKeyUsageDetail(req
|
|
56
|
+
DescribeTokenPlanApiKeyUsageDetail(req: DescribeTokenPlanApiKeyUsageDetailRequest, cb?: (error: string, rep: DescribeTokenPlanApiKeyUsageDetailResponse) => void): Promise<DescribeTokenPlanApiKeyUsageDetailResponse>;
|
|
57
57
|
/**
|
|
58
58
|
* 查询 TokenPlan 套餐列表。
|
|
59
59
|
|
|
@@ -554,6 +554,22 @@ export interface TokenSummaryBillingItem {
|
|
|
554
554
|
* DescribeTokenPlanApiKeyUsageDetail返回参数结构体
|
|
555
555
|
*/
|
|
556
556
|
export interface DescribeTokenPlanApiKeyUsageDetailResponse {
|
|
557
|
+
/**
|
|
558
|
+
* 翻页上下文,传入下一次请求的 Context 参数继续翻页。
|
|
559
|
+
*/
|
|
560
|
+
Context?: string;
|
|
561
|
+
/**
|
|
562
|
+
* 是否已到末尾,为 true 时无需继续翻页。
|
|
563
|
+
*/
|
|
564
|
+
ListOver?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* 调用明细列表。
|
|
567
|
+
*/
|
|
568
|
+
List?: Array<UsageDetailItem>;
|
|
569
|
+
/**
|
|
570
|
+
* 套餐类型。取值:enterprise(企业版专业套餐)、enterprise-auto(企业版轻享套餐)
|
|
571
|
+
*/
|
|
572
|
+
ProductType?: string;
|
|
557
573
|
/**
|
|
558
574
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
559
575
|
*/
|
|
@@ -748,7 +764,44 @@ export interface DeleteTokenPlanApiKeyResponse {
|
|
|
748
764
|
/**
|
|
749
765
|
* DescribeTokenPlanApiKeyUsageDetail请求参数结构体
|
|
750
766
|
*/
|
|
751
|
-
export
|
|
767
|
+
export interface DescribeTokenPlanApiKeyUsageDetailRequest {
|
|
768
|
+
/**
|
|
769
|
+
* 套餐 ID。可通过DescribeTokenPlanList接口获取。
|
|
770
|
+
*/
|
|
771
|
+
TeamId: string;
|
|
772
|
+
/**
|
|
773
|
+
* 起始时间,RFC3339 格式。不传默认为结束时间前 15 分钟。
|
|
774
|
+
*/
|
|
775
|
+
From?: string;
|
|
776
|
+
/**
|
|
777
|
+
* 结束时间,RFC3339 格式。不传默认为当前时间。
|
|
778
|
+
*/
|
|
779
|
+
To?: string;
|
|
780
|
+
/**
|
|
781
|
+
* 排序方式。取值:asc(升序)、desc(降序),默认为 desc。
|
|
782
|
+
*/
|
|
783
|
+
Sort?: string;
|
|
784
|
+
/**
|
|
785
|
+
* 返回条数,默认为 20,最大值为 100。
|
|
786
|
+
*/
|
|
787
|
+
Limit?: number;
|
|
788
|
+
/**
|
|
789
|
+
* 翻页上下文,首次查询不传,后续传入上次返回的 Context,直到 ListOver 为 true。
|
|
790
|
+
*/
|
|
791
|
+
Context?: string;
|
|
792
|
+
/**
|
|
793
|
+
* 按 API Key ID 精确过滤。最大 128 字符。与 ApiKeyName 至少需传入其一,都传时以 ApiKeyId 为准。可通过 DescribeTokenPlanApiKeyList 接口获取。
|
|
794
|
+
*/
|
|
795
|
+
ApiKeyId?: string;
|
|
796
|
+
/**
|
|
797
|
+
* 按 API Key 名称模糊过滤。最大 64 字符。与 ApiKeyId 至少需传入其一,都传时以 ApiKeyId 为准。
|
|
798
|
+
*/
|
|
799
|
+
ApiKeyName?: string;
|
|
800
|
+
/**
|
|
801
|
+
* 按模型 ID (Model ID) 精确过滤。需要按模型名称过滤时传入该字段。
|
|
802
|
+
*/
|
|
803
|
+
ModelName?: string;
|
|
804
|
+
}
|
|
752
805
|
/**
|
|
753
806
|
* API 密钥详情
|
|
754
807
|
*/
|
|
@@ -818,6 +871,75 @@ export interface ApiKeyDetail {
|
|
|
818
871
|
*/
|
|
819
872
|
Creator?: string;
|
|
820
873
|
}
|
|
874
|
+
/**
|
|
875
|
+
* Token Plan 企业版套餐调用明细项(字段与 CLS 日志对齐)
|
|
876
|
+
*/
|
|
877
|
+
export interface UsageDetailItem {
|
|
878
|
+
/**
|
|
879
|
+
* 主账号 UIN。
|
|
880
|
+
*/
|
|
881
|
+
Uin?: string;
|
|
882
|
+
/**
|
|
883
|
+
* 模型名称。
|
|
884
|
+
*/
|
|
885
|
+
ModelName?: string;
|
|
886
|
+
/**
|
|
887
|
+
* APIKey ID。
|
|
888
|
+
*/
|
|
889
|
+
ApiKeyId?: string;
|
|
890
|
+
/**
|
|
891
|
+
* APIKey 名称。
|
|
892
|
+
*/
|
|
893
|
+
ApiKeyName?: string;
|
|
894
|
+
/**
|
|
895
|
+
* 请求 ID。
|
|
896
|
+
*/
|
|
897
|
+
RequestId?: string;
|
|
898
|
+
/**
|
|
899
|
+
* 请求时间(RFC3339 格式)。
|
|
900
|
+
*/
|
|
901
|
+
RequestTime?: string;
|
|
902
|
+
/**
|
|
903
|
+
* 输入 token 数。
|
|
904
|
+
*/
|
|
905
|
+
InputToken?: number;
|
|
906
|
+
/**
|
|
907
|
+
* 缓存 token 数。
|
|
908
|
+
*/
|
|
909
|
+
CacheToken?: number;
|
|
910
|
+
/**
|
|
911
|
+
* 输出 token 数。
|
|
912
|
+
*/
|
|
913
|
+
OutputToken?: number;
|
|
914
|
+
/**
|
|
915
|
+
* 总 token 数。
|
|
916
|
+
*/
|
|
917
|
+
TotalToken?: number;
|
|
918
|
+
/**
|
|
919
|
+
* 未命中缓存输入消耗额度。单位说明如下:
|
|
920
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
921
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
922
|
+
*/
|
|
923
|
+
InputQuota?: string;
|
|
924
|
+
/**
|
|
925
|
+
* 缓存消耗额度。单位说明如下:
|
|
926
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
927
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
928
|
+
*/
|
|
929
|
+
CacheQuota?: string;
|
|
930
|
+
/**
|
|
931
|
+
* 输出消耗额度。单位说明如下:
|
|
932
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
933
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
934
|
+
*/
|
|
935
|
+
OutputQuota?: string;
|
|
936
|
+
/**
|
|
937
|
+
* 总消耗额度。单位说明如下:
|
|
938
|
+
- 套餐类型为专业套餐(enterprise),单位取值为积分;
|
|
939
|
+
- 套餐类型轻享套餐(enterprise-auto),单位取值为 token。
|
|
940
|
+
*/
|
|
941
|
+
TotalQuota?: string;
|
|
942
|
+
}
|
|
821
943
|
/**
|
|
822
944
|
* 批量创建失败项
|
|
823
945
|
*/
|