tencentcloud-sdk-nodejs-cngw 4.1.259 → 4.1.269
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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { CreateCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayLLMModelServicesResponse, ModifyCloudNativeAPIGatewayConsumerGroupResponse, DescribeCloudNativeAPIGatewayMCPServerACLRequest, DeleteCloudNativeAPIGatewayMCPToolResponse, CreateCloudNativeAPIGatewayMCPServerRequest, DeleteCloudNativeAPIGatewaySecretKeyRequest, DeleteCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewaySecretKeyValueRequest, DeleteCloudNativeAPIGatewayConsumerResponse, RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse, ModifyCloudNativeAPIGatewayMCPServerRequest, DescribeCloudNativeAPIGatewayMCPServerAuthResponse,
|
|
2
|
+
import { CreateCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayLLMModelServicesResponse, ModifyCloudNativeAPIGatewayConsumerGroupResponse, DescribeCloudNativeAPIGatewayMCPServerACLRequest, DeleteCloudNativeAPIGatewayMCPToolResponse, CreateCloudNativeAPIGatewayMCPServerRequest, DeleteCloudNativeAPIGatewaySecretKeyRequest, DeleteCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewaySecretKeyValueRequest, DeleteCloudNativeAPIGatewayConsumerResponse, RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse, ModifyCloudNativeAPIGatewayMCPServerRequest, DescribeCloudNativeAPIGatewayMCPServerAuthResponse, DescribeCloudNativeAPIGatewayConsumerRequest, DescribeCloudNativeAPIGatewayLLMModelServiceRequest, ModifyCloudNativeAPIGatewaySecretKeyResponse, AddCloudNativeAPIGatewayConsumerInGroupResponse, DescribeCloudNativeAPIGatewayMCPToolACLListResponse, ModifyCloudNativeAPIGatewayMCPServerAuthResponse, CreateCloudNativeAPIGatewayConsumerGroupRequest, ModifyCloudNativeAPIGatewayLLMModelAPIResponse, ModifyCloudNativeAPIGatewayLLMModelServiceResponse, CreateCloudNativeAPIGatewayLLMModelServiceResponse, RemoveCloudNativeAPIGatewayConsumerInGroupRequest, CreateCloudNativeAPIGatewayLLMModelServiceRequest, DescribeCloudNativeAPIGatewayLLMModelServicesRequest, CreateCloudNativeAPIGatewayLLMModelAPIRequest, DescribeCloudNativeAPIGatewayConsumerGroupRequest, DescribeCloudNativeAPIGatewayLLMModelAPIsRequest, ModifyCloudNativeAPIGatewayMCPServerACLRequest, ModifyCloudNativeAPIGatewayConsumerRequest, DescribeCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayConsumerResponse, DescribeCloudNativeAPIGatewayMCPToolListRequest, DeleteCloudNativeAPIGatewayMCPServerResponse, ModifyCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayMCPToolACLListRequest, DeleteCloudNativeAPIGatewayLLMModelServiceResponse, DescribeCloudNativeAPIGatewayMCPToolResponse, ModifyCloudNativeAPIGatewayMCPToolACLResponse, CreateCloudNativeAPIGatewayConsumerGroupResponse, DescribeCloudNativeAPIGatewayLLMModelAPIResponse, ModifyCloudNativeAPIGatewayMCPServerStatusResponse, DescribeCloudNativeAPIGatewayLLMModelAPIRequest, CreateCloudNativeAPIGatewayConsumerRequest, BindCloudNativeAPIGatewaySecretKeyRequest, ModifyCloudNativeAPIGatewayConsumerResponse, ModifyCloudNativeAPIGatewayMCPServerACLResponse, DeleteCloudNativeAPIGatewayMCPServerRequest, DeleteCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayMCPToolRequest, DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsRequest, CreateCloudNativeAPIGatewaySecretKeyRequest, DescribeCloudNativeAPIGatewayMCPServerResponse, ModifyCloudNativeAPIGatewayMCPToolACLRequest, CreateCloudNativeAPIGatewayMCPServerResponse, DeleteCloudNativeAPIGatewayLLMModelAPIRequest, ModifyCloudNativeAPIGatewayMCPServerStatusRequest, ModifyCloudNativeAPIGatewayMCPToolResponse, RemoveCloudNativeAPIGatewayConsumerInGroupResponse, DescribeCloudNativeAPIGatewayLLMModelAPIsResponse, AddCloudNativeAPIGatewayConsumerInGroupRequest, CreateCloudNativeAPIGatewayConsumerResponse, DeleteCloudNativeAPIGatewayLLMModelAPIResponse, UnbindCloudNativeAPIGatewaySecretKeyResponse, ModifyCloudNativeAPIGatewaySecretKeyRequest, DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsResponse, DescribeCloudNativeAPIGatewayMCPServerACLResponse, ModifyCloudNativeAPIGatewayMCPServerResponse, DescribeCloudNativeAPIGatewayLLMModelServiceResponse, DescribeCloudNativeAPIGatewaySecretKeyRequest, AddCloudNativeAPIGatewayConsumerGroupAuthResponse, DeleteCloudNativeAPIGatewayConsumerRequest, ModifyCloudNativeAPIGatewayMCPToolStatusResponse, ModifyCloudNativeAPIGatewayConsumerGroupRequest, UnbindCloudNativeAPIGatewaySecretKeyRequest, BindCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayMCPToolListResponse, DeleteCloudNativeAPIGatewayConsumerGroupRequest, RemoveCloudNativeAPIGatewayConsumerGroupAuthRequest, DescribeCloudNativeAPIGatewayMCPServerListRequest, DescribeCloudNativeAPIGatewayConsumerGroupResponse, ModifyCloudNativeAPIGatewayMCPServerAuthRequest, DescribeCloudNativeAPIGatewayMCPServerRequest, DescribeCloudNativeAPIGatewayLLMTokenUsageListRequest, ModifyCloudNativeAPIGatewayMCPToolStatusRequest, AddCloudNativeAPIGatewayConsumerGroupAuthRequest, DescribeCloudNativeAPIGatewaySecretKeyValueResponse, CreateCloudNativeAPIGatewayMCPToolResponse, ModifyCloudNativeAPIGatewayLLMModelServiceRequest, DescribeCloudNativeAPIGatewayMCPServerListResponse, CreateCloudNativeAPIGatewayLLMModelAPIResponse, DescribeCloudNativeAPIGatewayMCPServerAuthRequest, DeleteCloudNativeAPIGatewayLLMModelServiceRequest, DeleteCloudNativeAPIGatewayConsumerGroupResponse, ModifyCloudNativeAPIGatewayLLMModelAPIRequest, CreateCloudNativeAPIGatewaySecretKeyResponse, DescribeCloudNativeAPIGatewayLLMTokenUsageListResponse } from "./cngw_models";
|
|
3
3
|
/**
|
|
4
4
|
* cngw client
|
|
5
5
|
* @class
|
|
@@ -402,25 +402,38 @@ export interface ModifyCloudNativeAPIGatewayMCPServerRequest {
|
|
|
402
402
|
HealthCheck?: AIGWHealthCheckSetting;
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
|
-
*
|
|
405
|
+
* AI 网关 MCP Server 认证配置详情
|
|
406
406
|
*/
|
|
407
|
-
export interface
|
|
407
|
+
export interface AIGWMCPServerAuthResult {
|
|
408
408
|
/**
|
|
409
|
-
* <p
|
|
409
|
+
* <p>MCP服务认证类型</p><p>枚举值:</p><ul><li>None: 无认证</li><li>ApiKey: API Key认证</li></ul>
|
|
410
410
|
*/
|
|
411
|
-
|
|
411
|
+
AuthType?: string;
|
|
412
412
|
/**
|
|
413
|
-
* <p
|
|
413
|
+
* <p>JWT认证配置</p>
|
|
414
414
|
*/
|
|
415
|
-
|
|
415
|
+
JWTAuthConfig?: AIGWJWTAuthPluginConfig;
|
|
416
416
|
/**
|
|
417
|
-
* <p>
|
|
417
|
+
* <p>OAuth2认证配置</p>
|
|
418
418
|
*/
|
|
419
|
-
|
|
419
|
+
OAuthAuthConfig?: AIGWOAuthAuthPluginConfig;
|
|
420
420
|
/**
|
|
421
|
-
* <p>
|
|
421
|
+
* <p>OIDC认证配置</p>
|
|
422
422
|
*/
|
|
423
|
-
|
|
423
|
+
OIDCAuthConfig?: AIGWOIDCAuthPluginConfig;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Key/Value结构
|
|
427
|
+
*/
|
|
428
|
+
export interface KeyValue {
|
|
429
|
+
/**
|
|
430
|
+
* 条件的Key
|
|
431
|
+
*/
|
|
432
|
+
Key?: string;
|
|
433
|
+
/**
|
|
434
|
+
* 条件的Value
|
|
435
|
+
*/
|
|
436
|
+
Value?: string;
|
|
424
437
|
}
|
|
425
438
|
/**
|
|
426
439
|
* 路由匹配规则
|
|
@@ -453,17 +466,17 @@ export interface DescribeCloudNativeAPIGatewayMCPServerAuthResponse {
|
|
|
453
466
|
RequestId?: string;
|
|
454
467
|
}
|
|
455
468
|
/**
|
|
456
|
-
*
|
|
469
|
+
* DescribeCloudNativeAPIGatewayConsumer请求参数结构体
|
|
457
470
|
*/
|
|
458
|
-
export interface
|
|
471
|
+
export interface DescribeCloudNativeAPIGatewayConsumerRequest {
|
|
459
472
|
/**
|
|
460
|
-
*
|
|
473
|
+
* <p>网关实例id</p>
|
|
461
474
|
*/
|
|
462
475
|
GatewayId: string;
|
|
463
476
|
/**
|
|
464
|
-
*
|
|
477
|
+
* <p>消费者ID</p>
|
|
465
478
|
*/
|
|
466
|
-
|
|
479
|
+
ConsumerId: string;
|
|
467
480
|
}
|
|
468
481
|
/**
|
|
469
482
|
* DescribeCloudNativeAPIGatewayLLMModelService请求参数结构体
|
|
@@ -526,6 +539,15 @@ export interface AddCloudNativeAPIGatewayConsumerInGroupResponse {
|
|
|
526
539
|
*/
|
|
527
540
|
RequestId?: string;
|
|
528
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* AI 网关指定模型路由(暂时只用在Token长度路由时的子路由选择)
|
|
544
|
+
*/
|
|
545
|
+
export interface AIGWRouteModelServiceConfig {
|
|
546
|
+
/**
|
|
547
|
+
* <p>模型服务名字</p>
|
|
548
|
+
*/
|
|
549
|
+
ModelServiceName?: string;
|
|
550
|
+
}
|
|
529
551
|
/**
|
|
530
552
|
* AI网关标签过滤
|
|
531
553
|
*/
|
|
@@ -659,6 +681,22 @@ export interface CNAPIGwSecretKey {
|
|
|
659
681
|
* <p>密钥归属资源类型。</p><p>枚举值:</p><ul><li>Consumer: 消费者</li><li>ModelService: 模型服务</li></ul>
|
|
660
682
|
*/
|
|
661
683
|
ResourceType?: string;
|
|
684
|
+
/**
|
|
685
|
+
* <p>JWT凭证配置</p>
|
|
686
|
+
*/
|
|
687
|
+
JWTCredentialConfig?: AIGWJWTCredentialConfig;
|
|
688
|
+
/**
|
|
689
|
+
* <p>OAuth2凭证配置</p>
|
|
690
|
+
*/
|
|
691
|
+
OAuthCredentialConfig?: AIGWOAuthCredentialConfig;
|
|
692
|
+
/**
|
|
693
|
+
* <p>OIDC凭证配置</p>
|
|
694
|
+
*/
|
|
695
|
+
OIDCCredentialConfig?: AIGWOIDCCredentialConfig;
|
|
696
|
+
/**
|
|
697
|
+
* <p>Agent 密钥类型</p>
|
|
698
|
+
*/
|
|
699
|
+
Provider?: string;
|
|
662
700
|
}
|
|
663
701
|
/**
|
|
664
702
|
* ModifyCloudNativeAPIGatewayLLMModelAPI返回参数结构体
|
|
@@ -724,6 +762,14 @@ export interface AIGWLogConfig {
|
|
|
724
762
|
* <p>日志记录的响应body的最大字节数</p><p>取值范围:[512, 1048576]</p><p>EnableResponseLogPayloads 为true时必填</p>
|
|
725
763
|
*/
|
|
726
764
|
ResponseLogPayloadMaxSize?: number;
|
|
765
|
+
/**
|
|
766
|
+
* <p>请求 payload access log 输出模式</p><p>枚举值:</p><ul><li>raw: access log 中 body 记录客户端原始请求</li><li>processed: access log 中 body 记录 AI 网关协议适配、改写、归一化后的 OpenAI-compatible 内容</li></ul>
|
|
767
|
+
*/
|
|
768
|
+
RequestLogPayloadMode?: string;
|
|
769
|
+
/**
|
|
770
|
+
* <p>上游原始 payload access log 输出模式</p><p>枚举值:</p><ul><li>raw: access log 中 body 记录客户端原始上游响应</li><li>processed: access log 中 body 记录 AI 网关协议适配、改写、归一化后的 OpenAI-compatible 内容</li></ul>
|
|
771
|
+
*/
|
|
772
|
+
ResponseLogPayloadMode?: string;
|
|
727
773
|
}
|
|
728
774
|
/**
|
|
729
775
|
* MCP Server 列表
|
|
@@ -739,6 +785,91 @@ export interface AIGWMCPServerList {
|
|
|
739
785
|
*/
|
|
740
786
|
DataList?: Array<AIGWMCPServer>;
|
|
741
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* AI网关 JWT 凭证物料配置
|
|
790
|
+
*/
|
|
791
|
+
export interface AIGWJWTCredentialConfig {
|
|
792
|
+
/**
|
|
793
|
+
* <p>JWT 消费者标识,iss claim</p>
|
|
794
|
+
*/
|
|
795
|
+
Key: string;
|
|
796
|
+
/**
|
|
797
|
+
* <p>签名算法,取值:HS256 HS384 HS512 RS256 RS384 RS512 ES256 ES384 ES512</p>
|
|
798
|
+
*/
|
|
799
|
+
Algorithm: string;
|
|
800
|
+
/**
|
|
801
|
+
* <p>HS 对称密钥,仅 Algorithm 为 HS256/HS384/HS512 时必填;RS/ES* 时留空</p>
|
|
802
|
+
*/
|
|
803
|
+
Secret?: string;
|
|
804
|
+
/**
|
|
805
|
+
* <p>RS/ES PEM 格式公钥,仅 Algorithm 为 RS256/RS384/RS512/ES256/ES384/ES512 时必填;HS* 时留空</p>
|
|
806
|
+
*/
|
|
807
|
+
RSAPublicKey?: string;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* ModifyCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
811
|
+
*/
|
|
812
|
+
export interface ModifyCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
813
|
+
/**
|
|
814
|
+
* <p>是否成功</p>
|
|
815
|
+
*/
|
|
816
|
+
Result?: boolean;
|
|
817
|
+
/**
|
|
818
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
819
|
+
*/
|
|
820
|
+
RequestId?: string;
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* CreateCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
824
|
+
*/
|
|
825
|
+
export interface CreateCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
826
|
+
/**
|
|
827
|
+
* <p>是否成功</p>
|
|
828
|
+
*/
|
|
829
|
+
Result?: boolean;
|
|
830
|
+
/**
|
|
831
|
+
* <p>模型服务 ID,全局唯一标识。</p>
|
|
832
|
+
*/
|
|
833
|
+
ModelServiceId?: string;
|
|
834
|
+
/**
|
|
835
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
836
|
+
*/
|
|
837
|
+
RequestId?: string;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* 最高Token用量消费者
|
|
841
|
+
*/
|
|
842
|
+
export interface AIGWTopConsumersItem {
|
|
843
|
+
/**
|
|
844
|
+
* <p>消费者Id</p>
|
|
845
|
+
*/
|
|
846
|
+
ConsumerId?: string;
|
|
847
|
+
/**
|
|
848
|
+
* <p>消费者名称</p>
|
|
849
|
+
*/
|
|
850
|
+
ConsumerName?: string;
|
|
851
|
+
/**
|
|
852
|
+
* <p>该消费者花费的Token数</p>
|
|
853
|
+
*/
|
|
854
|
+
TotalTokens?: number;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* RemoveCloudNativeAPIGatewayConsumerInGroup请求参数结构体
|
|
858
|
+
*/
|
|
859
|
+
export interface RemoveCloudNativeAPIGatewayConsumerInGroupRequest {
|
|
860
|
+
/**
|
|
861
|
+
* 网关实例id
|
|
862
|
+
*/
|
|
863
|
+
GatewayId: string;
|
|
864
|
+
/**
|
|
865
|
+
* <p>消费者组 ID(以 cg- 开头)。</p>
|
|
866
|
+
*/
|
|
867
|
+
ConsumerGroupId: string;
|
|
868
|
+
/**
|
|
869
|
+
* <p>消费者 ID 列表,长度 1-10。</p>
|
|
870
|
+
*/
|
|
871
|
+
ConsumerIds: Array<string>;
|
|
872
|
+
}
|
|
742
873
|
/**
|
|
743
874
|
* CreateCloudNativeAPIGatewayLLMModelService请求参数结构体
|
|
744
875
|
*/
|
|
@@ -831,79 +962,63 @@ export interface CreateCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
|
831
962
|
* <p>标签</p>
|
|
832
963
|
*/
|
|
833
964
|
Tags?: Array<string>;
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* ModifyCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
837
|
-
*/
|
|
838
|
-
export interface ModifyCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
839
965
|
/**
|
|
840
|
-
* <p
|
|
966
|
+
* <p>参数改写规则</p>
|
|
841
967
|
*/
|
|
842
|
-
|
|
968
|
+
ModelRewriteRules?: Array<AIGWModelRewriteRule>;
|
|
843
969
|
/**
|
|
844
|
-
*
|
|
970
|
+
* <p>模型自定义供应商名称</p>
|
|
845
971
|
*/
|
|
846
|
-
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* CreateCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
850
|
-
*/
|
|
851
|
-
export interface CreateCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
972
|
+
CustomProviderName?: string;
|
|
852
973
|
/**
|
|
853
|
-
* <p
|
|
974
|
+
* <p>外部服务来源ID</p>
|
|
854
975
|
*/
|
|
855
|
-
|
|
976
|
+
ExternalInstanceId?: string;
|
|
856
977
|
/**
|
|
857
|
-
* <p
|
|
978
|
+
* <p>其他参数</p>
|
|
858
979
|
*/
|
|
859
|
-
|
|
980
|
+
ExtParams?: Array<KeyValue>;
|
|
860
981
|
/**
|
|
861
|
-
*
|
|
982
|
+
* <p>密钥轮转开关</p>
|
|
862
983
|
*/
|
|
863
|
-
|
|
984
|
+
KeyRotationEnabled?: boolean;
|
|
985
|
+
/**
|
|
986
|
+
* <p>密钥轮转周期</p><p>单位:天数</p>
|
|
987
|
+
*/
|
|
988
|
+
KeyRotationPeriodDays?: number;
|
|
864
989
|
}
|
|
865
990
|
/**
|
|
866
|
-
*
|
|
991
|
+
* DescribeCloudNativeAPIGatewayLLMModelServices请求参数结构体
|
|
867
992
|
*/
|
|
868
|
-
export interface
|
|
993
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelServicesRequest {
|
|
869
994
|
/**
|
|
870
|
-
* <p
|
|
995
|
+
* <p>网关 id。</p>
|
|
871
996
|
*/
|
|
872
|
-
|
|
997
|
+
GatewayId: string;
|
|
873
998
|
/**
|
|
874
|
-
* <p
|
|
999
|
+
* <p>返回数量,默认为 10,最大值为 1000。</p>
|
|
875
1000
|
*/
|
|
876
|
-
|
|
1001
|
+
Limit?: number;
|
|
877
1002
|
/**
|
|
878
|
-
* <p
|
|
1003
|
+
* <p>偏移量,默认为 0。</p>
|
|
879
1004
|
*/
|
|
880
|
-
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* RemoveCloudNativeAPIGatewayConsumerInGroup请求参数结构体
|
|
884
|
-
*/
|
|
885
|
-
export interface RemoveCloudNativeAPIGatewayConsumerInGroupRequest {
|
|
1005
|
+
Offset?: number;
|
|
886
1006
|
/**
|
|
887
|
-
*
|
|
1007
|
+
* <p>过滤条件,多个过滤条件之间是“与”的关系,支持 Name</p>
|
|
888
1008
|
*/
|
|
889
|
-
|
|
1009
|
+
Filters?: Array<Filter>;
|
|
890
1010
|
/**
|
|
891
|
-
* <p
|
|
1011
|
+
* <p>通过模型 API 筛选模型服务</p>
|
|
892
1012
|
*/
|
|
893
|
-
|
|
1013
|
+
ModelAPIId?: string;
|
|
894
1014
|
/**
|
|
895
|
-
* <p
|
|
1015
|
+
* <p>通过密匙查询绑定的模型服务</p>
|
|
896
1016
|
*/
|
|
897
|
-
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* AI 网关 MCP Server 认证配置详情
|
|
901
|
-
*/
|
|
902
|
-
export interface AIGWMCPServerAuthResult {
|
|
1017
|
+
SecretKeyId?: string;
|
|
903
1018
|
/**
|
|
904
|
-
* <p
|
|
1019
|
+
* <p>搜索关键词,模糊匹配 name 和 description</p>
|
|
905
1020
|
*/
|
|
906
|
-
|
|
1021
|
+
Keyword?: string;
|
|
907
1022
|
}
|
|
908
1023
|
/**
|
|
909
1024
|
* CreateCloudNativeAPIGatewayLLMModelAPI请求参数结构体
|
|
@@ -1008,13 +1123,25 @@ export interface CNAPIGwMCPToolParam {
|
|
|
1008
1123
|
BackendName?: string;
|
|
1009
1124
|
}
|
|
1010
1125
|
/**
|
|
1011
|
-
*
|
|
1126
|
+
* 资源端 OAuth2 认证插件配置
|
|
1012
1127
|
*/
|
|
1013
|
-
export interface
|
|
1128
|
+
export interface AIGWOAuthAuthPluginConfig {
|
|
1014
1129
|
/**
|
|
1015
|
-
*
|
|
1130
|
+
* <p>取token的头部名称</p>
|
|
1016
1131
|
*/
|
|
1017
|
-
|
|
1132
|
+
HeaderNames?: Array<string>;
|
|
1133
|
+
/**
|
|
1134
|
+
* <p>过期时间</p>
|
|
1135
|
+
*/
|
|
1136
|
+
TokenExpiration?: number;
|
|
1137
|
+
/**
|
|
1138
|
+
* <p>授权范围</p>
|
|
1139
|
+
*/
|
|
1140
|
+
Scopes?: Array<string>;
|
|
1141
|
+
/**
|
|
1142
|
+
* <p>是否强制判断授权范围</p>
|
|
1143
|
+
*/
|
|
1144
|
+
MandatoryScope?: boolean;
|
|
1018
1145
|
}
|
|
1019
1146
|
/**
|
|
1020
1147
|
* DescribeCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
@@ -1030,21 +1157,41 @@ export interface DescribeCloudNativeAPIGatewayConsumerGroupRequest {
|
|
|
1030
1157
|
ConsumerGroupId: string;
|
|
1031
1158
|
}
|
|
1032
1159
|
/**
|
|
1033
|
-
*
|
|
1160
|
+
* JWT 认证插件配置
|
|
1034
1161
|
*/
|
|
1035
|
-
export interface
|
|
1162
|
+
export interface AIGWJWTAuthPluginConfig {
|
|
1036
1163
|
/**
|
|
1037
|
-
*
|
|
1164
|
+
* <p>签名的header名称列表</p>
|
|
1038
1165
|
*/
|
|
1039
|
-
|
|
1166
|
+
HeaderNames?: Array<string>;
|
|
1040
1167
|
/**
|
|
1041
|
-
* <p
|
|
1168
|
+
* <p>签名的cookie名称列表</p>
|
|
1042
1169
|
*/
|
|
1043
|
-
|
|
1170
|
+
CookieNames?: Array<string>;
|
|
1044
1171
|
/**
|
|
1045
|
-
* <p
|
|
1172
|
+
* <p>签名的URL参数名称列表</p>
|
|
1046
1173
|
*/
|
|
1047
|
-
|
|
1174
|
+
URIParamNames?: Array<string>;
|
|
1175
|
+
/**
|
|
1176
|
+
* <p>消费者标识</p>
|
|
1177
|
+
*/
|
|
1178
|
+
KeyClaimName?: string;
|
|
1179
|
+
/**
|
|
1180
|
+
* <p>标准消费者校验</p><p>枚举值:</p><ul><li>exp: exp</li><li>nbf: nbf</li></ul>
|
|
1181
|
+
*/
|
|
1182
|
+
ClaimsToVerify?: Array<string>;
|
|
1183
|
+
/**
|
|
1184
|
+
* <p>最大有效期</p>
|
|
1185
|
+
*/
|
|
1186
|
+
MaximumExpiration?: number;
|
|
1187
|
+
/**
|
|
1188
|
+
* <p>是否Base64编码</p>
|
|
1189
|
+
*/
|
|
1190
|
+
SecretIsBase64?: boolean;
|
|
1191
|
+
/**
|
|
1192
|
+
* <p>CORS预检验证</p>
|
|
1193
|
+
*/
|
|
1194
|
+
RunOnPreFlight?: boolean;
|
|
1048
1195
|
}
|
|
1049
1196
|
/**
|
|
1050
1197
|
* LLM 模型 API
|
|
@@ -1193,6 +1340,19 @@ export interface ModifyCloudNativeAPIGatewayMCPServerACLRequest {
|
|
|
1193
1340
|
*/
|
|
1194
1341
|
ACLConsumerGroupIds?: Array<string>;
|
|
1195
1342
|
}
|
|
1343
|
+
/**
|
|
1344
|
+
* 模型名字重写规则
|
|
1345
|
+
*/
|
|
1346
|
+
export interface AIGWModelRewriteRule {
|
|
1347
|
+
/**
|
|
1348
|
+
* <p>原始模型</p>
|
|
1349
|
+
*/
|
|
1350
|
+
SourceModel?: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* <p>目标模型</p>
|
|
1353
|
+
*/
|
|
1354
|
+
TargetModel?: string;
|
|
1355
|
+
}
|
|
1196
1356
|
/**
|
|
1197
1357
|
* 创建资源通用结果
|
|
1198
1358
|
*/
|
|
@@ -1230,6 +1390,14 @@ export interface CloudNativeAPIGatewayLLMModelServiceRoute {
|
|
|
1230
1390
|
* <p>延迟路由</p>
|
|
1231
1391
|
*/
|
|
1232
1392
|
LatencyPriorityConfig?: AIGWLatencyPriorityConfig;
|
|
1393
|
+
/**
|
|
1394
|
+
* <p>前缀缓存感知路由</p>
|
|
1395
|
+
*/
|
|
1396
|
+
CacheAwareRouteConfig?: AIGWCacheAwareRouteConfig;
|
|
1397
|
+
/**
|
|
1398
|
+
* <p>token 长度路</p>
|
|
1399
|
+
*/
|
|
1400
|
+
TokenLengthRouteConfig?: AIGWTokenLengthRoute;
|
|
1233
1401
|
}
|
|
1234
1402
|
/**
|
|
1235
1403
|
* 消费者组结构
|
|
@@ -1265,6 +1433,59 @@ export interface CNAPIGwConsumerGroup {
|
|
|
1265
1433
|
*/
|
|
1266
1434
|
BindCount?: number;
|
|
1267
1435
|
}
|
|
1436
|
+
/**
|
|
1437
|
+
* 资源端 OIDC 认证插件配置
|
|
1438
|
+
*/
|
|
1439
|
+
export interface AIGWOIDCAuthPluginConfig {
|
|
1440
|
+
/**
|
|
1441
|
+
* <p>目标受众</p>
|
|
1442
|
+
*/
|
|
1443
|
+
Audience?: string;
|
|
1444
|
+
/**
|
|
1445
|
+
* <p>是否BearerOnly</p><p>目前只能为true</p>
|
|
1446
|
+
*/
|
|
1447
|
+
BearerOnly?: boolean;
|
|
1448
|
+
/**
|
|
1449
|
+
* <p>授权范围</p>
|
|
1450
|
+
*/
|
|
1451
|
+
Scopes?: Array<string>;
|
|
1452
|
+
/**
|
|
1453
|
+
* <p>消费者标识</p>
|
|
1454
|
+
*/
|
|
1455
|
+
ConsumerClaim?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* <p>认证域</p>
|
|
1458
|
+
*/
|
|
1459
|
+
Realm?: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* <p>超时时间</p>
|
|
1462
|
+
*/
|
|
1463
|
+
Timeout?: number;
|
|
1464
|
+
/**
|
|
1465
|
+
* <p>令牌端点认证方法</p><p>枚举值:</p><ul><li>client_secret_post: client_secret_post</li><li>client_secret_basic: client_secret_basic</li><li>private_key_jwt: private_key_jwt</li></ul>
|
|
1466
|
+
*/
|
|
1467
|
+
TokenEndpointAuthMethod?: string;
|
|
1468
|
+
/**
|
|
1469
|
+
* <p>令牌内省端点</p>
|
|
1470
|
+
*/
|
|
1471
|
+
IntrospectionEndpoint?: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* <p>令牌内省端点认证方法</p><p>枚举值:</p><ul><li>client_secret_basic: client_secret_basic</li><li>client_secret_post: client_secret_post</li></ul>
|
|
1474
|
+
*/
|
|
1475
|
+
IntrospectionEndpointAuthMethod?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* <p>签发者地址</p>
|
|
1478
|
+
*/
|
|
1479
|
+
IssuerURL?: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* <p>客户端 ID</p>
|
|
1482
|
+
*/
|
|
1483
|
+
ClientId?: string;
|
|
1484
|
+
/**
|
|
1485
|
+
* <p>客户端密钥</p>
|
|
1486
|
+
*/
|
|
1487
|
+
ClientSecret?: string;
|
|
1488
|
+
}
|
|
1268
1489
|
/**
|
|
1269
1490
|
* AI 网关 MCP Server ACL 配置详情
|
|
1270
1491
|
*/
|
|
@@ -1368,17 +1589,25 @@ export interface AIGWMCPSessionConfig {
|
|
|
1368
1589
|
RedisConfig?: AIGWRedisConfig;
|
|
1369
1590
|
}
|
|
1370
1591
|
/**
|
|
1371
|
-
*
|
|
1592
|
+
* 默认kong路由,目前只在 LLM 模型 API相 关接口使用
|
|
1372
1593
|
*/
|
|
1373
|
-
export interface
|
|
1594
|
+
export interface DefaultKongRoute {
|
|
1374
1595
|
/**
|
|
1375
|
-
* <p
|
|
1596
|
+
* <p>服务名字</p>
|
|
1376
1597
|
*/
|
|
1377
|
-
|
|
1598
|
+
Name: string;
|
|
1378
1599
|
/**
|
|
1379
|
-
*
|
|
1600
|
+
* <p>服务ID</p>
|
|
1380
1601
|
*/
|
|
1381
|
-
|
|
1602
|
+
ID?: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* <p>HTTP Method</p>
|
|
1605
|
+
*/
|
|
1606
|
+
Methods?: Array<string>;
|
|
1607
|
+
/**
|
|
1608
|
+
* <p>Http Path</p>
|
|
1609
|
+
*/
|
|
1610
|
+
Paths?: Array<string>;
|
|
1382
1611
|
}
|
|
1383
1612
|
/**
|
|
1384
1613
|
* DescribeCloudNativeAPIGatewayMCPToolList请求参数结构体
|
|
@@ -1510,6 +1739,19 @@ export interface ListCloudNativeAPIGatewayLLMModelAPI {
|
|
|
1510
1739
|
*/
|
|
1511
1740
|
DataList?: Array<CloudNativeAPIGatewayLLMModelAPI>;
|
|
1512
1741
|
}
|
|
1742
|
+
/**
|
|
1743
|
+
* DeleteCloudNativeAPIGatewayLLMModelService返回参数结构体
|
|
1744
|
+
*/
|
|
1745
|
+
export interface DeleteCloudNativeAPIGatewayLLMModelServiceResponse {
|
|
1746
|
+
/**
|
|
1747
|
+
* <p>是否成功。</p>
|
|
1748
|
+
*/
|
|
1749
|
+
Result?: boolean;
|
|
1750
|
+
/**
|
|
1751
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1752
|
+
*/
|
|
1753
|
+
RequestId?: string;
|
|
1754
|
+
}
|
|
1513
1755
|
/**
|
|
1514
1756
|
* DescribeCloudNativeAPIGatewayMCPTool返回参数结构体
|
|
1515
1757
|
*/
|
|
@@ -1528,6 +1770,27 @@ export interface ModifyCloudNativeAPIGatewayMCPToolACLResponse {
|
|
|
1528
1770
|
*/
|
|
1529
1771
|
RequestId?: string;
|
|
1530
1772
|
}
|
|
1773
|
+
/**
|
|
1774
|
+
* OIDC 凭证物料配置
|
|
1775
|
+
*/
|
|
1776
|
+
export interface AIGWOIDCCredentialConfig {
|
|
1777
|
+
/**
|
|
1778
|
+
* <p>IdP 注册的 client_id</p>
|
|
1779
|
+
*/
|
|
1780
|
+
ClientId: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* <p>客户端密钥</p><p>参数格式:IdP 注册的 client_secret</p>
|
|
1783
|
+
*/
|
|
1784
|
+
ClientSecret: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* <p>IdP Issuer URL</p>
|
|
1787
|
+
*/
|
|
1788
|
+
IssuerURL: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* <p>IdP 中该用户的 claim 值</p>
|
|
1791
|
+
*/
|
|
1792
|
+
ConsumerClaimValue?: string;
|
|
1793
|
+
}
|
|
1531
1794
|
/**
|
|
1532
1795
|
* CreateCloudNativeAPIGatewayConsumerGroup返回参数结构体
|
|
1533
1796
|
*/
|
|
@@ -1620,6 +1883,66 @@ export interface ModifyCloudNativeAPIGatewayMCPServerStatusResponse {
|
|
|
1620
1883
|
*/
|
|
1621
1884
|
RequestId?: string;
|
|
1622
1885
|
}
|
|
1886
|
+
/**
|
|
1887
|
+
* DescribeCloudNativeAPIGatewayLLMModelAPI请求参数结构体
|
|
1888
|
+
*/
|
|
1889
|
+
export interface DescribeCloudNativeAPIGatewayLLMModelAPIRequest {
|
|
1890
|
+
/**
|
|
1891
|
+
* <p>网关 id。</p>
|
|
1892
|
+
*/
|
|
1893
|
+
GatewayId: string;
|
|
1894
|
+
/**
|
|
1895
|
+
* <p>模型 API ID,全局唯一标识。</p>
|
|
1896
|
+
*/
|
|
1897
|
+
ModelAPIId: string;
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* CreateCloudNativeAPIGatewayConsumer请求参数结构体
|
|
1901
|
+
*/
|
|
1902
|
+
export interface CreateCloudNativeAPIGatewayConsumerRequest {
|
|
1903
|
+
/**
|
|
1904
|
+
* 网关实例id
|
|
1905
|
+
*/
|
|
1906
|
+
GatewayId: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* <p>消费者名称,最长 60 字符。同一网关下唯一。</p>
|
|
1909
|
+
*/
|
|
1910
|
+
Name: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* <p>消费者描述。最长 200 字符。</p>
|
|
1913
|
+
*/
|
|
1914
|
+
Description?: string;
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* AI 网关token长度路由配置
|
|
1918
|
+
*/
|
|
1919
|
+
export interface AIGWTokenLengthRoute {
|
|
1920
|
+
/**
|
|
1921
|
+
* <p>默认tokenizer编码器</p><p>枚举值:</p><ul><li>o200k_base: OpenApi o200k_base</li><li>cl100k_base: OpenApi cl100k_base</li><li>p50k_base: OpenApi p50k_base</li><li>r50k_base: OpenApi r50k_base</li></ul>
|
|
1922
|
+
*/
|
|
1923
|
+
DefaultEncodingName?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
* <p>token 计数失败、规则为空或未命中任何规则时执行的默认二级路由(暂时只能选择一个指定模型路由)</p>
|
|
1926
|
+
*/
|
|
1927
|
+
DefaultTarget?: AIGWLLMModelServiceSubRoute;
|
|
1928
|
+
/**
|
|
1929
|
+
* <p>规则</p>
|
|
1930
|
+
*/
|
|
1931
|
+
Rules?: Array<AIGWTokenLengthRouteRule>;
|
|
1932
|
+
}
|
|
1933
|
+
/**
|
|
1934
|
+
* 缓存感知路由候选模型服务
|
|
1935
|
+
*/
|
|
1936
|
+
export interface AIGWCacheAwareRouteCandidate {
|
|
1937
|
+
/**
|
|
1938
|
+
* <p>模型服务ID</p>
|
|
1939
|
+
*/
|
|
1940
|
+
ModelServiceId?: string;
|
|
1941
|
+
/**
|
|
1942
|
+
* <p>模型服务名称</p>
|
|
1943
|
+
*/
|
|
1944
|
+
ModelServiceName?: string;
|
|
1945
|
+
}
|
|
1623
1946
|
/**
|
|
1624
1947
|
* BindCloudNativeAPIGatewaySecretKey请求参数结构体
|
|
1625
1948
|
*/
|
|
@@ -1650,6 +1973,15 @@ export interface ModifyCloudNativeAPIGatewayConsumerResponse {
|
|
|
1650
1973
|
*/
|
|
1651
1974
|
RequestId?: string;
|
|
1652
1975
|
}
|
|
1976
|
+
/**
|
|
1977
|
+
* ModifyCloudNativeAPIGatewayMCPServerACL返回参数结构体
|
|
1978
|
+
*/
|
|
1979
|
+
export interface ModifyCloudNativeAPIGatewayMCPServerACLResponse {
|
|
1980
|
+
/**
|
|
1981
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1982
|
+
*/
|
|
1983
|
+
RequestId?: string;
|
|
1984
|
+
}
|
|
1653
1985
|
/**
|
|
1654
1986
|
* DeleteCloudNativeAPIGatewayMCPServer请求参数结构体
|
|
1655
1987
|
*/
|
|
@@ -1715,7 +2047,7 @@ export interface DescribeCloudNativeAPIGatewayLLMTokenUsageStatisticsRequest {
|
|
|
1715
2047
|
*/
|
|
1716
2048
|
export interface CreateCloudNativeAPIGatewaySecretKeyRequest {
|
|
1717
2049
|
/**
|
|
1718
|
-
*
|
|
2050
|
+
* <p>实例 ID</p>
|
|
1719
2051
|
*/
|
|
1720
2052
|
GatewayId: string;
|
|
1721
2053
|
/**
|
|
@@ -1750,6 +2082,18 @@ export interface CreateCloudNativeAPIGatewaySecretKeyRequest {
|
|
|
1750
2082
|
* <p>密钥描述。最长 200 字符。</p>
|
|
1751
2083
|
*/
|
|
1752
2084
|
Description?: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* <p>JWT凭证配置</p>
|
|
2087
|
+
*/
|
|
2088
|
+
JWTCredentialConfig?: AIGWJWTCredentialConfig;
|
|
2089
|
+
/**
|
|
2090
|
+
* <p>Oauth2凭证配置</p>
|
|
2091
|
+
*/
|
|
2092
|
+
OAuthCredentialConfig?: AIGWOAuthCredentialConfig;
|
|
2093
|
+
/**
|
|
2094
|
+
* <p>OIDC凭证配置</p>
|
|
2095
|
+
*/
|
|
2096
|
+
OIDCCredentialConfig?: AIGWOIDCCredentialConfig;
|
|
1753
2097
|
}
|
|
1754
2098
|
/**
|
|
1755
2099
|
* DescribeCloudNativeAPIGatewayMCPServer返回参数结构体
|
|
@@ -1765,37 +2109,13 @@ export interface DescribeCloudNativeAPIGatewayMCPServerResponse {
|
|
|
1765
2109
|
RequestId?: string;
|
|
1766
2110
|
}
|
|
1767
2111
|
/**
|
|
1768
|
-
*
|
|
2112
|
+
* 缓存感知路由
|
|
1769
2113
|
*/
|
|
1770
|
-
export interface
|
|
1771
|
-
/**
|
|
1772
|
-
* <p>网关 id。</p>
|
|
1773
|
-
*/
|
|
1774
|
-
GatewayId: string;
|
|
1775
|
-
/**
|
|
1776
|
-
* <p>返回数量,默认为 10,最大值为 1000。</p>
|
|
1777
|
-
*/
|
|
1778
|
-
Limit?: number;
|
|
1779
|
-
/**
|
|
1780
|
-
* <p>偏移量,默认为 0。</p>
|
|
1781
|
-
*/
|
|
1782
|
-
Offset?: number;
|
|
1783
|
-
/**
|
|
1784
|
-
* <p>过滤条件,多个过滤条件之间是“与”的关系,支持 Name</p>
|
|
1785
|
-
*/
|
|
1786
|
-
Filters?: Array<Filter>;
|
|
1787
|
-
/**
|
|
1788
|
-
* <p>通过模型 API 筛选模型服务</p>
|
|
1789
|
-
*/
|
|
1790
|
-
ModelAPIId?: string;
|
|
1791
|
-
/**
|
|
1792
|
-
* <p>通过密匙查询绑定的模型服务</p>
|
|
1793
|
-
*/
|
|
1794
|
-
SecretKeyId?: string;
|
|
2114
|
+
export interface AIGWCacheAwareRouteConfig {
|
|
1795
2115
|
/**
|
|
1796
|
-
* <p
|
|
2116
|
+
* <p>前缀缓存感知路由模型服务列表</p>
|
|
1797
2117
|
*/
|
|
1798
|
-
|
|
2118
|
+
Candidates?: Array<AIGWCacheAwareRouteCandidate>;
|
|
1799
2119
|
}
|
|
1800
2120
|
/**
|
|
1801
2121
|
* ModifyCloudNativeAPIGatewayMCPToolACL请求参数结构体
|
|
@@ -2378,17 +2698,34 @@ export interface CNAPIGwMCPToolList {
|
|
|
2378
2698
|
TotalCount?: number;
|
|
2379
2699
|
}
|
|
2380
2700
|
/**
|
|
2381
|
-
*
|
|
2701
|
+
* AI 网关Token长度路由规则
|
|
2382
2702
|
*/
|
|
2383
|
-
export interface
|
|
2703
|
+
export interface AIGWTokenLengthRouteRule {
|
|
2384
2704
|
/**
|
|
2385
|
-
* <p
|
|
2705
|
+
* <p>token 长度下界,闭区间;0 合法</p>
|
|
2386
2706
|
*/
|
|
2387
|
-
|
|
2707
|
+
MinTokenLength: number;
|
|
2388
2708
|
/**
|
|
2389
|
-
* <p
|
|
2709
|
+
* <p>token 长度上界,闭区间</p>
|
|
2390
2710
|
*/
|
|
2391
|
-
|
|
2711
|
+
MaxTokenLength: number;
|
|
2712
|
+
/**
|
|
2713
|
+
* <p>命中该分段后执行的二级路由</p>
|
|
2714
|
+
*/
|
|
2715
|
+
Target: AIGWLLMModelServiceSubRoute;
|
|
2716
|
+
}
|
|
2717
|
+
/**
|
|
2718
|
+
* OAuth2 凭证物料配置
|
|
2719
|
+
*/
|
|
2720
|
+
export interface AIGWOAuthCredentialConfig {
|
|
2721
|
+
/**
|
|
2722
|
+
* <p>客户端ID</p>
|
|
2723
|
+
*/
|
|
2724
|
+
ClientId: string;
|
|
2725
|
+
/**
|
|
2726
|
+
* <p>客户端密钥</p>
|
|
2727
|
+
*/
|
|
2728
|
+
ClientSecret: string;
|
|
2392
2729
|
}
|
|
2393
2730
|
/**
|
|
2394
2731
|
* ModifyCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
@@ -2562,19 +2899,59 @@ export interface CloudNativeAPIGatewayLLMModelService {
|
|
|
2562
2899
|
* <p>绑定的模型服务秘钥</p>
|
|
2563
2900
|
*/
|
|
2564
2901
|
SecretKeyIds?: Array<string>;
|
|
2902
|
+
/**
|
|
2903
|
+
* <p>模型改写规则</p>
|
|
2904
|
+
*/
|
|
2905
|
+
ModelRewriteRules?: Array<AIGWModelRewriteRule>;
|
|
2906
|
+
/**
|
|
2907
|
+
* <p>服务来源</p>
|
|
2908
|
+
*/
|
|
2909
|
+
SourceId?: string;
|
|
2910
|
+
/**
|
|
2911
|
+
* <p>命名空间</p>
|
|
2912
|
+
*/
|
|
2913
|
+
Namespace?: string;
|
|
2914
|
+
/**
|
|
2915
|
+
* <p>服务名称</p>
|
|
2916
|
+
*/
|
|
2917
|
+
ServiceName?: string;
|
|
2918
|
+
/**
|
|
2919
|
+
* <p>命名空间</p>
|
|
2920
|
+
*/
|
|
2921
|
+
Protocol?: string;
|
|
2922
|
+
/**
|
|
2923
|
+
* <p>扩展参数</p>
|
|
2924
|
+
*/
|
|
2925
|
+
ExtParams?: Array<KeyValue>;
|
|
2926
|
+
/**
|
|
2927
|
+
* <p>模型自定义供应商名称</p>
|
|
2928
|
+
*/
|
|
2929
|
+
CustomProviderName?: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* <p>是否开启密钥轮转</p>
|
|
2932
|
+
*/
|
|
2933
|
+
KeyRotationEnabled?: boolean;
|
|
2934
|
+
/**
|
|
2935
|
+
* <p>密钥轮转周期</p><p>单位:天</p>
|
|
2936
|
+
*/
|
|
2937
|
+
KeyRotationPeriodDays?: number;
|
|
2938
|
+
/**
|
|
2939
|
+
* <p>外部服务来源ID</p>
|
|
2940
|
+
*/
|
|
2941
|
+
ExternalInstanceId?: string;
|
|
2565
2942
|
}
|
|
2566
2943
|
/**
|
|
2567
|
-
*
|
|
2944
|
+
* DeleteCloudNativeAPIGatewayConsumerGroup请求参数结构体
|
|
2568
2945
|
*/
|
|
2569
|
-
export interface
|
|
2946
|
+
export interface DeleteCloudNativeAPIGatewayConsumerGroupRequest {
|
|
2570
2947
|
/**
|
|
2571
|
-
*
|
|
2948
|
+
* 网关实例id
|
|
2572
2949
|
*/
|
|
2573
2950
|
GatewayId: string;
|
|
2574
2951
|
/**
|
|
2575
|
-
*
|
|
2952
|
+
* 消费者组ID
|
|
2576
2953
|
*/
|
|
2577
|
-
|
|
2954
|
+
ConsumerGroupId: string;
|
|
2578
2955
|
}
|
|
2579
2956
|
/**
|
|
2580
2957
|
* RemoveCloudNativeAPIGatewayConsumerGroupAuth请求参数结构体
|
|
@@ -2660,6 +3037,18 @@ export interface ModifyCloudNativeAPIGatewayMCPServerAuthRequest {
|
|
|
2660
3037
|
* <p>认证类型</p><p>枚举值:</p><ul><li>None: 无认证</li><li>ApiKey: API Key认证</li></ul>
|
|
2661
3038
|
*/
|
|
2662
3039
|
AuthType: string;
|
|
3040
|
+
/**
|
|
3041
|
+
* <p>JWT认证配置</p>
|
|
3042
|
+
*/
|
|
3043
|
+
JWTAuthConfig?: AIGWJWTAuthPluginConfig;
|
|
3044
|
+
/**
|
|
3045
|
+
* <p>OAuth认证配置</p>
|
|
3046
|
+
*/
|
|
3047
|
+
OAuthAuthConfig?: AIGWOAuthAuthPluginConfig;
|
|
3048
|
+
/**
|
|
3049
|
+
* <p>OIDC认证配置</p>
|
|
3050
|
+
*/
|
|
3051
|
+
OIDCAuthConfig?: AIGWOIDCAuthPluginConfig;
|
|
2663
3052
|
}
|
|
2664
3053
|
/**
|
|
2665
3054
|
* DescribeCloudNativeAPIGatewayMCPServer请求参数结构体
|
|
@@ -2745,6 +3134,27 @@ export interface AddCloudNativeAPIGatewayConsumerGroupAuthRequest {
|
|
|
2745
3134
|
*/
|
|
2746
3135
|
ConsumerGroupIds: Array<string>;
|
|
2747
3136
|
}
|
|
3137
|
+
/**
|
|
3138
|
+
* 模型服务二级路由配置
|
|
3139
|
+
*/
|
|
3140
|
+
export interface AIGWLLMModelServiceSubRoute {
|
|
3141
|
+
/**
|
|
3142
|
+
* <p>生效的路由算法类型:权重路由,模型名称路由、参数路由等Weighted/ModelName/Query (预留多个,暂时只能填写一个)</p>
|
|
3143
|
+
*/
|
|
3144
|
+
SelectedTypes: Array<string>;
|
|
3145
|
+
/**
|
|
3146
|
+
* <p>权重路由配置,最多10个</p>
|
|
3147
|
+
*/
|
|
3148
|
+
WeightedConfig?: Array<CloudNativeAPIGatewayLLMModelServiceRouteWeightedStrategy>;
|
|
3149
|
+
/**
|
|
3150
|
+
* <p>延迟路由</p>
|
|
3151
|
+
*/
|
|
3152
|
+
LatencyPriorityConfig?: AIGWLatencyPriorityConfig;
|
|
3153
|
+
/**
|
|
3154
|
+
* <p>指定模型路由(暂时只用在Token长度路由时的子路由选择)</p>
|
|
3155
|
+
*/
|
|
3156
|
+
ModelServiceConfig?: AIGWRouteModelServiceConfig;
|
|
3157
|
+
}
|
|
2748
3158
|
/**
|
|
2749
3159
|
* AI 网关 A 层转发脱敏配置(请求转发到 LLM 供应商前对 messages 替换为占位符)
|
|
2750
3160
|
*/
|
|
@@ -2876,6 +3286,26 @@ export interface ModifyCloudNativeAPIGatewayLLMModelServiceRequest {
|
|
|
2876
3286
|
* <p>标签</p>
|
|
2877
3287
|
*/
|
|
2878
3288
|
Tags?: Array<string>;
|
|
3289
|
+
/**
|
|
3290
|
+
* <p>参数改写规则</p>
|
|
3291
|
+
*/
|
|
3292
|
+
ModelRewriteRules?: Array<AIGWModelRewriteRule>;
|
|
3293
|
+
/**
|
|
3294
|
+
* <p>外部服务来源ID</p>
|
|
3295
|
+
*/
|
|
3296
|
+
ExternalInstanceId?: string;
|
|
3297
|
+
/**
|
|
3298
|
+
* <p>其他参数</p>
|
|
3299
|
+
*/
|
|
3300
|
+
ExtParams?: Array<KeyValue>;
|
|
3301
|
+
/**
|
|
3302
|
+
* <p>密钥轮转开关</p>
|
|
3303
|
+
*/
|
|
3304
|
+
KeyRotationEnabled?: boolean;
|
|
3305
|
+
/**
|
|
3306
|
+
* <p>密钥轮转周期</p><p>单位:天数</p>
|
|
3307
|
+
*/
|
|
3308
|
+
KeyRotationPeriodDays?: number;
|
|
2879
3309
|
}
|
|
2880
3310
|
/**
|
|
2881
3311
|
* DescribeCloudNativeAPIGatewayMCPServerList返回参数结构体
|