tencentcloud-sdk-nodejs 4.1.299 → 4.1.301

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.
Files changed (90) hide show
  1. package/es/common/sdk_version.js +1 -1
  2. package/es/services/ags/v20250920/ags_client.js +37 -19
  3. package/es/services/bdrc/index.js +4 -0
  4. package/es/services/bdrc/v20260330/bdrc_client.js +234 -0
  5. package/es/services/bdrc/v20260330/bdrc_models.js +1 -0
  6. package/es/services/bdrc/v20260330/index.js +6 -0
  7. package/es/services/csip/v20221121/csip_client.js +489 -72
  8. package/es/services/cynosdb/v20190107/cynosdb_client.js +3 -0
  9. package/es/services/index.js +1 -0
  10. package/es/services/iotexplorer/v20190423/iotexplorer_client.js +37 -10
  11. package/es/services/monitor/v20180724/monitor_client.js +20 -8
  12. package/es/services/monitor/v20230616/monitor_client.js +77 -8
  13. package/es/services/redis/v20180412/redis_client.js +10 -4
  14. package/es/services/tke/v20220501/tke_client.js +3 -0
  15. package/es/services/waf/v20180125/waf_client.js +6 -0
  16. package/package.json +2 -3
  17. package/tencentcloud/common/sdk_version.d.ts +1 -1
  18. package/tencentcloud/common/sdk_version.js +1 -1
  19. package/tencentcloud/services/adp/v20260520/adp_models.d.ts +1 -1
  20. package/tencentcloud/services/ags/v20250920/ags_client.d.ts +47 -23
  21. package/tencentcloud/services/ags/v20250920/ags_client.js +69 -33
  22. package/tencentcloud/services/ags/v20250920/ags_models.d.ts +412 -110
  23. package/tencentcloud/services/bdrc/index.d.ts +6 -0
  24. package/tencentcloud/services/bdrc/index.js +7 -0
  25. package/tencentcloud/services/bdrc/v20260330/bdrc_client.d.ts +314 -0
  26. package/tencentcloud/services/bdrc/v20260330/bdrc_client.js +487 -0
  27. package/tencentcloud/services/bdrc/v20260330/bdrc_models.d.ts +4803 -0
  28. package/tencentcloud/services/bdrc/v20260330/bdrc_models.js +18 -0
  29. package/tencentcloud/services/bdrc/v20260330/index.d.ts +6 -0
  30. package/tencentcloud/services/bdrc/v20260330/index.js +10 -0
  31. package/tencentcloud/services/bh/v20230418/bh_models.d.ts +5 -5
  32. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +12 -12
  33. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +7 -8
  34. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +17 -19
  35. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +10 -12
  36. package/tencentcloud/services/cngw/v20230418/cngw_client.d.ts +1 -1
  37. package/tencentcloud/services/cngw/v20230418/cngw_models.d.ts +996 -570
  38. package/tencentcloud/services/csip/v20221121/csip_client.d.ts +629 -73
  39. package/tencentcloud/services/csip/v20221121/csip_client.js +942 -108
  40. package/tencentcloud/services/csip/v20221121/csip_models.d.ts +10589 -2076
  41. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +6 -2
  42. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +6 -0
  43. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +84 -16
  44. package/tencentcloud/services/dbdc/v20201029/dbdc_models.d.ts +4 -0
  45. package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +42 -37
  46. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +126 -33
  47. package/tencentcloud/services/es/v20180416/es_models.d.ts +8 -0
  48. package/tencentcloud/services/es/v20250101/es_models.d.ts +14 -14
  49. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +8 -2
  50. package/tencentcloud/services/ess/v20201111/ess_client.js +8 -2
  51. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +10 -4
  52. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +10 -4
  53. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
  54. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +2 -2
  55. package/tencentcloud/services/index.d.ts +1 -0
  56. package/tencentcloud/services/index.js +8 -6
  57. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +47 -11
  58. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +69 -15
  59. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +648 -181
  60. package/tencentcloud/services/kms/v20190118/kms_models.d.ts +27 -27
  61. package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +25 -9
  62. package/tencentcloud/services/monitor/v20180724/monitor_client.js +36 -12
  63. package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +860 -513
  64. package/tencentcloud/services/monitor/v20230616/monitor_client.d.ts +101 -9
  65. package/tencentcloud/services/monitor/v20230616/monitor_client.js +150 -12
  66. package/tencentcloud/services/monitor/v20230616/monitor_models.d.ts +1921 -463
  67. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +39 -25
  68. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +5 -1
  69. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +65 -1
  70. package/tencentcloud/services/rce/v20260130/rce_client.d.ts +2 -2
  71. package/tencentcloud/services/rce/v20260130/rce_client.js +2 -2
  72. package/tencentcloud/services/rce/v20260130/rce_models.d.ts +6 -6
  73. package/tencentcloud/services/redis/v20180412/redis_client.d.ts +13 -5
  74. package/tencentcloud/services/redis/v20180412/redis_client.js +18 -6
  75. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +130 -86
  76. package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +39 -10
  77. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +29 -34
  78. package/tencentcloud/services/tione/v20211111/tione_models.d.ts +57 -15
  79. package/tencentcloud/services/tke/v20220501/tke_client.d.ts +5 -1
  80. package/tencentcloud/services/tke/v20220501/tke_client.js +6 -0
  81. package/tencentcloud/services/tke/v20220501/tke_models.d.ts +33 -11
  82. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +6 -54
  83. package/tencentcloud/services/tse/v20201207/tse_client.d.ts +1 -1
  84. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +616 -205
  85. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +4 -0
  86. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +11 -2
  87. package/tencentcloud/services/waf/v20180125/waf_client.js +14 -1
  88. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +155 -58
  89. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +8 -0
  90. package/tencentcloud/services/wedata/v20250806/wedata_models.d.ts +42 -14
@@ -115,6 +115,10 @@ export interface CreateCloudNativeAPIGatewayMCPServerRequest {
115
115
  * <p>健康检查配置</p>
116
116
  */
117
117
  HealthCheck?: AIGWHealthCheckSetting;
118
+ /**
119
+ * <p>是否开启保留原Host功能</p>
120
+ */
121
+ PreserveHost?: boolean;
118
122
  }
119
123
  /**
120
124
  * DeleteCloudNativeAPIGatewaySecretKey请求参数结构体
@@ -173,6 +177,10 @@ export interface AIGWMCPUpstreamInfo {
173
177
  * <p>message端点路径,SSE协议时配置</p>
174
178
  */
175
179
  MessageEndpoint?: string;
180
+ /**
181
+ * <p>TLS认证配置</p>
182
+ */
183
+ TLSConfig?: AIGWUpstreamTLSConfig;
176
184
  }
177
185
  /**
178
186
  * 单个消费者 Token 用量查询结果
@@ -299,11 +307,11 @@ export interface AIGWIntentRoute {
299
307
  */
300
308
  export interface Filter {
301
309
  /**
302
- * <p>过滤参数名</p>
310
+ * 过滤参数名
303
311
  */
304
312
  Name: string;
305
313
  /**
306
- * <p>过滤参数值</p>
314
+ * 过滤参数值
307
315
  */
308
316
  Values: Array<string>;
309
317
  }
@@ -342,6 +350,19 @@ export interface AIGWLatencyPriorityRouteRule {
342
350
  */
343
351
  ModelServiceId: string;
344
352
  }
353
+ /**
354
+ * AI网关 Basic Auth 凭证物料配置
355
+ */
356
+ export interface AIGWBasicCredentialConfig {
357
+ /**
358
+ * <p>密码</p>
359
+ */
360
+ Password?: string;
361
+ /**
362
+ * <p>用户名</p>
363
+ */
364
+ Username?: string;
365
+ }
345
366
  /**
346
367
  * AI 网关中消费者组简要信息
347
368
  */
@@ -374,74 +395,38 @@ export interface RemoveCloudNativeAPIGatewayConsumerGroupAuthResponse {
374
395
  RequestId?: string;
375
396
  }
376
397
  /**
377
- * ModifyCloudNativeAPIGatewayMCPServer请求参数结构体
398
+ * AI 网关Rerank场景最大文档数限制配置
378
399
  */
379
- export interface ModifyCloudNativeAPIGatewayMCPServerRequest {
380
- /**
381
- * <p>实例 ID</p>
382
- */
383
- GatewayId: string;
384
- /**
385
- * <p>展示名字</p>
386
- */
387
- DisplayName: string;
388
- /**
389
- * <p>服务 id</p>
390
- */
391
- ServerId: string;
392
- /**
393
- * <p>后端类型</p><p>枚举值:</p><ul><li>HostIP: 域名 ip</li><li>MCPRegistry: MCP 注册中心</li><li>VirtualMCPServer: 虚拟MCP 服务</li></ul>
394
- */
395
- UpstreamType: string;
396
- /**
397
- * <p>超时时间,单位ms,最大60000</p>
398
- */
399
- Timeout?: number;
400
- /**
401
- * <p>重试次数,最大3次</p>
402
- */
403
- RetryCount?: number;
404
- /**
405
- * <p>注册中心来源信息</p>
406
- */
407
- UpstreamInfo?: AIGWMCPUpstreamInfo;
408
- /**
409
- * <p>会话配置</p>
410
- */
411
- SessionConfig?: AIGWMCPSessionConfig;
412
- /**
413
- * <p>描述</p>
414
- */
415
- Description?: string;
400
+ export interface AIGWRerankMaxDocumentsConfig {
416
401
  /**
417
- * <p>是否启用健康检查</p>
402
+ * <p>启用最大文档数限制</p>
418
403
  */
419
- EnableHealthCheck?: boolean;
404
+ EnableMaxDocuments: boolean;
420
405
  /**
421
- * <p>健康检查配置</p>
406
+ * <p>Rerank场景最大文档数限制</p>
422
407
  */
423
- HealthCheck?: AIGWHealthCheckSetting;
408
+ MaxDocumentValue?: number;
424
409
  }
425
410
  /**
426
- * AI 网关 MCP Server 认证配置详情
411
+ * 默认kong路由,目前只在 LLM 模型 API相 关接口使用
427
412
  */
428
- export interface AIGWMCPServerAuthResult {
413
+ export interface DefaultKongRoute {
429
414
  /**
430
- * <p>MCP服务认证类型</p><p>枚举值:</p><ul><li>None: 无认证</li><li>ApiKey: API Key认证</li></ul>
415
+ * <p>服务名字</p>
431
416
  */
432
- AuthType?: string;
417
+ Name: string;
433
418
  /**
434
- * <p>JWT认证配置</p>
419
+ * <p>服务ID</p>
435
420
  */
436
- JWTAuthConfig?: AIGWJWTAuthPluginConfig;
421
+ ID?: string;
437
422
  /**
438
- * <p>OAuth2认证配置</p>
423
+ * <p>HTTP Method</p>
439
424
  */
440
- OAuthAuthConfig?: AIGWOAuthAuthPluginConfig;
425
+ Methods?: Array<string>;
441
426
  /**
442
- * <p>OIDC认证配置</p>
427
+ * <p>Http Path</p>
443
428
  */
444
- OIDCAuthConfig?: AIGWOIDCAuthPluginConfig;
429
+ Paths?: Array<string>;
445
430
  }
446
431
  /**
447
432
  * Key/Value结构
@@ -538,6 +523,19 @@ export interface CloudNativeAPIGatewayLLMModelServiceRouteWeightedStrategy {
538
523
  */
539
524
  Weight: number;
540
525
  }
526
+ /**
527
+ * DescribeCloudNativeAPIGatewayMCPToolsFromFile接口的出参
528
+ */
529
+ export interface CNAPIGwParseMCPToolsResult {
530
+ /**
531
+ * <p>MCP Tools列表</p>
532
+ */
533
+ DataList?: Array<CNAPIGwMCPToolPreview>;
534
+ /**
535
+ * <p>MCP tools的数量</p>
536
+ */
537
+ TotalCount?: number;
538
+ }
541
539
  /**
542
540
  * ModifyCloudNativeAPIGatewaySecretKey返回参数结构体
543
541
  */
@@ -687,7 +685,7 @@ export interface CNAPIGwSecretKey {
687
685
  */
688
686
  Name?: string;
689
687
  /**
690
- * <p>OAuth凭证配置</p>
688
+ * <p>OAuth2凭证配置</p>
691
689
  */
692
690
  OAuthCredentialConfig?: AIGWOAuthCredentialConfig;
693
691
  /**
@@ -695,7 +693,7 @@ export interface CNAPIGwSecretKey {
695
693
  */
696
694
  OIDCCredentialConfig?: AIGWOIDCCredentialConfig;
697
695
  /**
698
- * <p>secret key provider方</p><p>枚举值:</p><ul><li>Dify: Dify</li></ul>
696
+ * <p>Agent 密钥类型</p>
699
697
  */
700
698
  Provider?: string;
701
699
  /**
@@ -718,6 +716,42 @@ export interface CNAPIGwSecretKey {
718
716
  * <p>状态。</p><p>枚举值:</p><ul><li>Enable: 启用</li><li>Disable: 禁用</li></ul>
719
717
  */
720
718
  Status?: string;
719
+ /**
720
+ * <p>同步状态</p><p>枚举值:</p><ul><li>Fail: 失败</li><li>Success: 成功</li></ul>
721
+ */
722
+ SyncStatus?: string;
723
+ /**
724
+ * <p>资源类型</p><p>枚举值:</p><ul><li>Public: 公共</li><li>Private: 私有</li><li>SourceDeleted: 资源删除</li></ul>
725
+ */
726
+ SourceType?: string;
727
+ /**
728
+ * <p>同步版本</p>
729
+ */
730
+ SyncedVersion?: string;
731
+ /**
732
+ * <p>AK/SK凭证配置</p>
733
+ */
734
+ AKSKCredentialConfig?: AIGWAKSKCredentialConfig;
735
+ /**
736
+ * <p>CAM凭证配置</p>
737
+ */
738
+ CAMCredentialConfig?: AIGWCAMCredentialConfig;
739
+ /**
740
+ * <p>Bearer Token凭证配置</p>
741
+ */
742
+ BearerTokenCredentialConfig?: AIGWBearerTokenCredentialConfig;
743
+ /**
744
+ * <p>Basic Auth凭证配置</p>
745
+ */
746
+ BasicCredentialConfig?: AIGWBasicCredentialConfig;
747
+ /**
748
+ * <p>自定义Header凭证配置</p>
749
+ */
750
+ CustomHeaderCredentialConfig?: AIGWCustomHeaderCredentialConfig;
751
+ /**
752
+ * <p>自定义Query参数凭证配置</p>
753
+ */
754
+ QueryParamCredentialConfig?: AIGWQueryParamCredentialConfig;
721
755
  }
722
756
  /**
723
757
  * ModifyCloudNativeAPIGatewayLLMModelAPI返回参数结构体
@@ -752,6 +786,10 @@ export interface CNAPIGwConsumer {
752
786
  * <p>更新时间 yyyy-MM-dd hh:mm:ss</p>
753
787
  */
754
788
  ModifyTime: string;
789
+ /**
790
+ * <p>消费者优先级</p><p>枚举值:</p><ul><li>High: 高优</li><li>Medium: 中优</li><li>Low: 低优</li></ul>
791
+ */
792
+ Priority?: string;
755
793
  /**
756
794
  * <p>描述</p>
757
795
  注意:此字段可能返回 null,表示取不到有效值。
@@ -762,6 +800,18 @@ export interface CNAPIGwConsumer {
762
800
  注意:此字段可能返回 null,表示取不到有效值。
763
801
  */
764
802
  ConsumerGroups?: Array<CNAPIGwConsumerGroup>;
803
+ /**
804
+ * <p>同步状态</p><p>枚举值:</p><ul><li>Fail: 失败</li></ul>
805
+ */
806
+ SyncStatus?: string;
807
+ /**
808
+ * <p>资源类型</p><p>枚举值:</p><ul><li>ModelService: 模型服务</li><li>Consumer: 消费者</li><li>SecretKey: 密钥</li></ul>
809
+ */
810
+ SourceType?: string;
811
+ /**
812
+ * <p>同步版本</p>
813
+ */
814
+ SyncedVersion?: string;
765
815
  }
766
816
  /**
767
817
  * AI 网关日志输出配置
@@ -791,6 +841,14 @@ export interface AIGWLogConfig {
791
841
  * <p>上游原始 payload access log 输出模式</p><p>枚举值:</p><ul><li>raw: access log 中 body 记录客户端原始上游响应</li><li>processed: access log 中 body 记录 AI 网关协议适配、改写、归一化后的 OpenAI-compatible 内容</li></ul>
792
842
  */
793
843
  ResponseLogPayloadMode?: string;
844
+ /**
845
+ * <p>请求 Body 大小裁剪策略</p><p>枚举值:</p><ul><li>Bounded: 裁剪大小</li><li>UnBounded: 不裁剪大小</li></ul>
846
+ */
847
+ RequestLogPayloadTruncationPolicy?: string;
848
+ /**
849
+ * <p>响应 Body 大小裁剪策略</p><p>枚举值:</p><ul><li>Bounded: 裁剪大小</li><li>UnBounded: 不裁剪大小</li></ul>
850
+ */
851
+ ResponseLogPayloadTruncationPolicy?: string;
794
852
  }
795
853
  /**
796
854
  * 云原生网关服务预览信息
@@ -845,17 +903,25 @@ export interface AIGWMCPServerList {
845
903
  DataList?: Array<AIGWMCPServer>;
846
904
  }
847
905
  /**
848
- * AI 网关意图路由规则
906
+ * AI网关 JWT 凭证物料配置
849
907
  */
850
- export interface AIGWIntentRouteRule {
908
+ export interface AIGWJWTCredentialConfig {
851
909
  /**
852
- * <p>意图编码</p><p>枚举值:</p><ul><li>Coder: 代码编写</li><li>Math: 数学计算</li><li>Translation: 翻译</li><li>Flash: 快速问答</li><li>Complex: 复杂推理</li></ul>
910
+ * <p>签名算法,取值:HS256 HS384 HS512 RS256 RS384 RS512 ES256 ES384 ES512</p>
853
911
  */
854
- IntentCode?: string;
912
+ Algorithm: string;
855
913
  /**
856
- * <p>模型服务id</p>
914
+ * <p>JWT 消费者标识,iss claim</p>
857
915
  */
858
- ModelServiceId?: string;
916
+ Key: string;
917
+ /**
918
+ * <p>RS/ES PEM 格式公钥,仅 Algorithm 为 RS256/RS384/RS512/ES256/ES384/ES512 时必填;HS* 时留空</p>
919
+ */
920
+ RSAPublicKey?: string;
921
+ /**
922
+ * <p>HS 对称密钥,仅 Algorithm 为 HS256/HS384/HS512 时必填;RS/ES* 时留空</p>
923
+ */
924
+ Secret?: string;
859
925
  }
860
926
  /**
861
927
  * ModifyCloudNativeAPIGatewayLLMModelService返回参数结构体
@@ -871,21 +937,57 @@ export interface ModifyCloudNativeAPIGatewayLLMModelServiceResponse {
871
937
  RequestId?: string;
872
938
  }
873
939
  /**
874
- * CreateCloudNativeAPIGatewayLLMModelService返回参数结构体
940
+ * 资源端 OIDC 认证插件配置
875
941
  */
876
- export interface CreateCloudNativeAPIGatewayLLMModelServiceResponse {
942
+ export interface AIGWOIDCAuthPluginConfig {
877
943
  /**
878
- * <p>是否成功</p>
944
+ * <p>目标受众</p>
879
945
  */
880
- Result?: boolean;
946
+ Audience?: string;
881
947
  /**
882
- * <p>模型服务 ID,全局唯一标识。</p>
948
+ * <p>是否BearerOnly</p><p>目前只能为true</p>
883
949
  */
884
- ModelServiceId?: string;
950
+ BearerOnly?: boolean;
885
951
  /**
886
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
952
+ * <p>授权范围</p>
887
953
  */
888
- RequestId?: string;
954
+ Scopes?: Array<string>;
955
+ /**
956
+ * <p>消费者标识</p>
957
+ */
958
+ ConsumerClaim?: string;
959
+ /**
960
+ * <p>认证域</p>
961
+ */
962
+ Realm?: string;
963
+ /**
964
+ * <p>超时时间</p>
965
+ */
966
+ Timeout?: number;
967
+ /**
968
+ * <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>
969
+ */
970
+ TokenEndpointAuthMethod?: string;
971
+ /**
972
+ * <p>令牌内省端点</p>
973
+ */
974
+ IntrospectionEndpoint?: string;
975
+ /**
976
+ * <p>令牌内省端点认证方法</p><p>枚举值:</p><ul><li>client_secret_basic: client_secret_basic</li><li>client_secret_post: client_secret_post</li></ul>
977
+ */
978
+ IntrospectionEndpointAuthMethod?: string;
979
+ /**
980
+ * <p>签发者地址</p>
981
+ */
982
+ IssuerURL?: string;
983
+ /**
984
+ * <p>客户端 ID</p>
985
+ */
986
+ ClientId?: string;
987
+ /**
988
+ * <p>客户端密钥</p>
989
+ */
990
+ ClientSecret?: string;
889
991
  }
890
992
  /**
891
993
  * 最高Token用量消费者
@@ -922,67 +1024,183 @@ export interface RemoveCloudNativeAPIGatewayConsumerInGroupRequest {
922
1024
  ConsumerIds: Array<string>;
923
1025
  }
924
1026
  /**
925
- * AI网关 JWT 凭证物料配置
1027
+ * CreateCloudNativeAPIGatewayLLMModelService请求参数结构体
926
1028
  */
927
- export interface AIGWJWTCredentialConfig {
1029
+ export interface CreateCloudNativeAPIGatewayLLMModelServiceRequest {
928
1030
  /**
929
- * <p>签名算法,取值:HS256 HS384 HS512 RS256 RS384 RS512 ES256 ES384 ES512</p>
1031
+ * <p>网关 id。</p>
930
1032
  */
931
- Algorithm: string;
1033
+ GatewayId: string;
932
1034
  /**
933
- * <p>JWT 消费者标识,iss claim</p>
1035
+ * <p>服务名称,最长60个字符,支持中英文大小写、数字及分隔符(“-”、“_”),不能以数字和分隔符开头,不能以分隔符结尾。</p>
934
1036
  */
935
- Key: string;
1037
+ Name: string;
936
1038
  /**
937
- * <p>RS/ES PEM 格式公钥,仅 Algorithm 为 RS256/RS384/RS512/ES256/ES384/ES512 时必填;HS* 时留空</p>
1039
+ * <p>服务类型。目前仅支持 LLMService。</p><p>枚举值:</p><ul><li>LLMService: 大语言模型服务</li></ul>
938
1040
  */
939
- RSAPublicKey?: string;
1041
+ ServiceType: string;
940
1042
  /**
941
- * <p>HS 对称密钥,仅 Algorithm 为 HS256/HS384/HS512 时必填;RS/ES* 时留空</p>
1043
+ * <p>选择模型提供商, 选项:OpenAI、Anthropic、Azure OpenAI等。</p>
942
1044
  */
943
- Secret?: string;
944
- }
945
- /**
946
- * DescribeCloudNativeAPIGatewayLLMModelServices请求参数结构体
947
- */
948
- export interface DescribeCloudNativeAPIGatewayLLMModelServicesRequest {
1045
+ ModelProvider: string;
949
1046
  /**
950
- * <p>网关 id。</p>
1047
+ * <p>API协议标准,根据供应商动态变化:OpenAI→OpenAI/v1,Anthropic→Anthropic/v1等</p>
951
1048
  */
952
- GatewayId: string;
1049
+ ModelProtocol: string;
953
1050
  /**
954
- * <p>返回数量,默认为 10,最大值为 1000。</p>
1051
+ * <p>模型选择方式,选项:Specify(指定模型)、PassThrough(透传请求模型)。</p>
955
1052
  */
956
- Limit?: number;
1053
+ ModelSelector: string;
957
1054
  /**
958
- * <p>偏移量,默认为 0。</p>
1055
+ * <p>LLM 厂商颁发的认证信息 token 。</p>
959
1056
  */
960
- Offset?: number;
1057
+ SecretKeyIds?: Array<string>;
961
1058
  /**
962
- * <p>过滤条件,多个过滤条件之间是“与”的关系,支持 Name</p>
1059
+ * <p>默认模型,模型选择方式为 Specify 时必填。</p>
963
1060
  */
964
- Filters?: Array<Filter>;
1061
+ DefaultModel?: string;
965
1062
  /**
966
- * <p>通过模型 API 筛选模型服务</p>
1063
+ * <p>开启模型降级,模型选择方式为 Specify 时必填。</p>
967
1064
  */
968
- ModelAPIId?: string;
1065
+ EnableModelFallback?: boolean;
969
1066
  /**
970
- * <p>通过密匙查询绑定的模型服务</p>
1067
+ * <p>可以配置备用模型规则,EnableSpecifyModelFallbackxa0为 true 时必填。</p>
971
1068
  */
972
- SecretKeyId?: string;
1069
+ ModelFallbackRule?: CloudNativeAPIGatewayLLMModelFallbackRule;
973
1070
  /**
974
- * <p>搜索关键词,模糊匹配 name description</p>
1071
+ * <p>开启模型参数校验,是否校验客户端传递的 model 参数,xa0模型选择方式为 PassThrough 时必填</p>
975
1072
  */
976
- Keyword?: string;
977
- }
978
- /**
979
- * CreateCloudNativeAPIGatewayLLMModelAPI请求参数结构体
980
- */
981
- export interface CreateCloudNativeAPIGatewayLLMModelAPIRequest {
1073
+ EnableModelParamCheck?: boolean;
982
1074
  /**
983
- * <p>网关 id。</p>
1075
+ * <p>模型检验信息,EnableModelParamCheckxa0为 true 时必填。</p>
984
1076
  */
985
- GatewayId: string;
1077
+ ModelParamCheckRule?: CloudNativeAPIGatewayLLMModelParamCheckInfo;
1078
+ /**
1079
+ * <p>描述。</p>
1080
+ */
1081
+ Description?: string;
1082
+ /**
1083
+ * <p>服务提供商自定义 url</p>
1084
+ */
1085
+ UpstreamURL?: string;
1086
+ /**
1087
+ * <p>连接超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:10000</p>
1088
+ */
1089
+ ConnectTimeout?: number;
1090
+ /**
1091
+ * <p>写入超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
1092
+ */
1093
+ WriteTimeout?: number;
1094
+ /**
1095
+ * <p>读取超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
1096
+ */
1097
+ ReadTimeout?: number;
1098
+ /**
1099
+ * <p>重试次数</p><p>取值范围:[0, 5]</p><p>单位:次</p><p>默认值:0</p>
1100
+ */
1101
+ Retries?: number;
1102
+ /**
1103
+ * <p>路径拼接模式</p><p>枚举值:</p><ul><li>FixedPath: 固定地址</li><li>AutoConcat: 自动拼接</li></ul>
1104
+ */
1105
+ UpstreamUrlMode?: string;
1106
+ /**
1107
+ * <p>sni</p>
1108
+ */
1109
+ SNI?: string;
1110
+ /**
1111
+ * <p>模型服务级别的配额上限(RPM/TPM)。需要网关版本 ≥ 3.9.4。</p>
1112
+ */
1113
+ QuotaLimit?: AIGWLLMQuotaLimit;
1114
+ /**
1115
+ * <p>标签</p>
1116
+ */
1117
+ Tags?: Array<string>;
1118
+ /**
1119
+ * <p>参数改写规则</p>
1120
+ */
1121
+ ModelRewriteRules?: Array<AIGWModelRewriteRule>;
1122
+ /**
1123
+ * <p>模型自定义供应商名称</p>
1124
+ */
1125
+ CustomProviderName?: string;
1126
+ /**
1127
+ * <p>外部服务来源ID</p>
1128
+ */
1129
+ ExternalInstanceId?: string;
1130
+ /**
1131
+ * <p>其他参数</p>
1132
+ */
1133
+ ExtParams?: Array<KeyValue>;
1134
+ /**
1135
+ * <p>密钥轮转开关</p>
1136
+ */
1137
+ KeyRotationEnabled?: boolean;
1138
+ /**
1139
+ * <p>密钥轮转周期</p><p>单位:天数</p>
1140
+ */
1141
+ KeyRotationPeriodDays?: number;
1142
+ /**
1143
+ * <p>来源服务 ID。</p>
1144
+ */
1145
+ SourceId?: string;
1146
+ /**
1147
+ * <p>命名空间。</p>
1148
+ */
1149
+ Namespace?: string;
1150
+ /**
1151
+ * <p>服务名称。</p>
1152
+ */
1153
+ ServiceName?: string;
1154
+ /**
1155
+ * <p>协议类型,如 OpenAI、Custom。</p>
1156
+ */
1157
+ Protocol?: string;
1158
+ /**
1159
+ * <p>负载均衡配置</p>
1160
+ */
1161
+ LoadBalanceConfig?: AIGWLoadBalanceConfig;
1162
+ }
1163
+ /**
1164
+ * DescribeCloudNativeAPIGatewayLLMModelServices请求参数结构体
1165
+ */
1166
+ export interface DescribeCloudNativeAPIGatewayLLMModelServicesRequest {
1167
+ /**
1168
+ * <p>网关 id。</p>
1169
+ */
1170
+ GatewayId: string;
1171
+ /**
1172
+ * <p>返回数量,默认为 10,最大值为 1000。</p>
1173
+ */
1174
+ Limit?: number;
1175
+ /**
1176
+ * <p>偏移量,默认为 0。</p>
1177
+ */
1178
+ Offset?: number;
1179
+ /**
1180
+ * <p>过滤条件,多个过滤条件之间是“与”的关系,支持 Name</p>
1181
+ */
1182
+ Filters?: Array<Filter>;
1183
+ /**
1184
+ * <p>通过模型 API 筛选模型服务</p>
1185
+ */
1186
+ ModelAPIId?: string;
1187
+ /**
1188
+ * <p>通过密匙查询绑定的模型服务</p>
1189
+ */
1190
+ SecretKeyId?: string;
1191
+ /**
1192
+ * <p>搜索关键词,模糊匹配 name 和 description</p>
1193
+ */
1194
+ Keyword?: string;
1195
+ }
1196
+ /**
1197
+ * CreateCloudNativeAPIGatewayLLMModelAPI请求参数结构体
1198
+ */
1199
+ export interface CreateCloudNativeAPIGatewayLLMModelAPIRequest {
1200
+ /**
1201
+ * <p>网关 id。</p>
1202
+ */
1203
+ GatewayId: string;
986
1204
  /**
987
1205
  * <p>模型 API 名称,最长 60 字符。同一网关下唯一。</p>
988
1206
  */
@@ -1035,6 +1253,27 @@ export interface CreateCloudNativeAPIGatewayLLMModelAPIRequest {
1035
1253
  * <p>日志输出配置(请求/响应 payload 落 LLM Log)。需要网关版本 ≥ 3.9.4。</p>
1036
1254
  */
1037
1255
  LogConfig?: AIGWLogConfig;
1256
+ /**
1257
+ * <p>Rerank场景最大文档数高级配置</p>
1258
+ */
1259
+ MaxDocumentsConfig?: AIGWRerankMaxDocumentsConfig;
1260
+ /**
1261
+ * <p>敏感词路由配置</p>
1262
+ */
1263
+ SensitiveWordRoute?: AIGWSensitiveWordRoute;
1264
+ }
1265
+ /**
1266
+ * AI网关自定义 Header 凭证配置
1267
+ */
1268
+ export interface AIGWCustomHeaderCredentialConfig {
1269
+ /**
1270
+ * <p>Header名</p>
1271
+ */
1272
+ HeaderName?: string;
1273
+ /**
1274
+ * <p>Header值</p>
1275
+ */
1276
+ HeaderValue?: string;
1038
1277
  }
1039
1278
  /**
1040
1279
  * MCP tool 参数
@@ -1112,102 +1351,29 @@ export interface DescribeCloudNativeAPIGatewayConsumerGroupRequest {
1112
1351
  ConsumerGroupId: string;
1113
1352
  }
1114
1353
  /**
1115
- * 服务的后端配置
1354
+ * DescribeCloudNativeAPIGatewayMCPToolACLList请求参数结构体
1116
1355
  */
1117
- export interface KongUpstreamInfo {
1118
- /**
1119
- * 负载均衡算法,默认为 round-robin,还支持 least-connections,consisten_hashing
1120
- */
1121
- Algorithm?: string;
1122
- /**
1123
- * CVM弹性伸缩组端口
1124
- */
1125
- AutoScalingCvmPort?: number;
1126
- /**
1127
- * CVM弹性伸缩组ID
1128
- */
1129
- AutoScalingGroupID?: string;
1130
- /**
1131
- * CVM弹性伸缩组生命周期挂钩状态
1132
- */
1133
- AutoScalingHookStatus?: string;
1134
- /**
1135
- * CVM弹性伸缩组使用的CVM TAT命令状态
1136
- */
1137
- AutoScalingTatCmdStatus?: string;
1138
- /**
1139
- * upstream健康状态HEALTHY(健康), UNHEALTHY(异常), HEALTHCHECKS_OFF(未开启)和NONE(不支持健康检查)
1140
- */
1141
- HealthStatus?: string;
1142
- /**
1143
- * IP或域名
1144
- */
1145
- Host?: string;
1146
- /**
1147
- * 命名空间
1148
- */
1149
- Namespace?: string;
1150
- /**
1151
- * 端口
1152
- */
1153
- Port?: number;
1154
- /**
1155
- * 精确的服务来源类型,新建服务来源时候传入的类型
1156
- */
1157
- RealSourceType?: string;
1158
- /**
1159
- * 云函数是否开启CAM鉴权,不填时默认为开启(true)
1160
- */
1161
- ScfCamAuthEnable?: boolean;
1162
- /**
1163
- * 云函数是否开启Base64编码,默认为false
1164
- */
1165
- ScfIsBase64Encoded?: boolean;
1166
- /**
1167
- * 云函数是否开启响应集成,默认为false
1168
- */
1169
- ScfIsIntegratedResponse?: boolean;
1170
- /**
1171
- * SCF函数名
1172
- */
1173
- ScfLambdaName?: string;
1174
- /**
1175
- * SCF函数版本
1176
- */
1177
- ScfLambdaQualifier?: string;
1178
- /**
1179
- * SCF函数命名空间
1180
- */
1181
- ScfNamespace?: string;
1182
- /**
1183
- * SCF函数类型
1184
- */
1185
- ScfType?: string;
1186
- /**
1187
- * 服务(注册中心或Kubernetes中的服务)名字
1188
- */
1189
- ServiceName?: string;
1356
+ export interface DescribeCloudNativeAPIGatewayMCPToolACLListRequest {
1190
1357
  /**
1191
- * 冷启动时间,单位秒
1358
+ * <p>网关实例ID</p>
1192
1359
  */
1193
- SlowStart?: number;
1360
+ GatewayId: string;
1194
1361
  /**
1195
- * 服务来源ID
1362
+ * <p>MCP 服务ID</p>
1196
1363
  */
1197
- SourceID?: string;
1364
+ ServerId: string;
1198
1365
  /**
1199
- * 服务来源的名字
1366
+ * <p>分页大小</p>
1200
1367
  */
1201
- SourceName?: string;
1368
+ Limit: number;
1202
1369
  /**
1203
- * 服务来源类型
1370
+ * <p>分页偏移</p>
1204
1371
  */
1205
- SourceType?: string;
1372
+ Offset: number;
1206
1373
  /**
1207
- * 服务后端类型是IPList时提供
1208
- 注意:此字段可能返回 null,表示取不到有效值。
1374
+ * <p>搜索关键词</p>
1209
1375
  */
1210
- Targets?: Array<KongTarget>;
1376
+ Keyword?: string;
1211
1377
  }
1212
1378
  /**
1213
1379
  * 返回kong的服务和路由列表
@@ -1360,6 +1526,22 @@ export interface CloudNativeAPIGatewayLLMModelAPI {
1360
1526
  * <p>转发脱敏规则</p>
1361
1527
  */
1362
1528
  ForwardDesensitizeConfig?: AIGWForwardDesensitizeConfig;
1529
+ /**
1530
+ * <p>rerank documents 上限</p>
1531
+ */
1532
+ MaxDocumentsConfig?: AIGWRerankMaxDocumentsConfig;
1533
+ /**
1534
+ * <p>敏感词路由配置</p>
1535
+ */
1536
+ SensitiveWordRoute?: AIGWSensitiveWordRoute;
1537
+ /**
1538
+ * <p>消费者组模型范围</p>
1539
+ */
1540
+ ConsumerGroupModelScopes?: Array<AIGWAuthModelScopeItem>;
1541
+ /**
1542
+ * <p>消费者继承的模型范围</p>
1543
+ */
1544
+ ConsumerInheritModelScope?: AIGWConsumerModelScope;
1363
1545
  }
1364
1546
  /**
1365
1547
  * DescribeCloudNativeAPIGatewayLLMModelAPIs请求参数结构体
@@ -1487,87 +1669,63 @@ export interface CloudNativeAPIGatewayLLMModelServiceRoute {
1487
1669
  */
1488
1670
  export interface CNAPIGwConsumerGroup {
1489
1671
  /**
1490
- * 分组id
1672
+ * <p>分组id</p>
1491
1673
  */
1492
1674
  ConsumerGroupId: string;
1493
1675
  /**
1494
- * 名字
1676
+ * <p>名字</p>
1495
1677
  */
1496
1678
  Name: string;
1497
1679
  /**
1498
- * 状态Disable/Enable
1680
+ * <p>状态Disable/Enable</p>
1499
1681
  */
1500
1682
  Status: string;
1501
1683
  /**
1502
- * 描述
1684
+ * <p>描述</p>
1503
1685
  */
1504
1686
  Description: string;
1505
1687
  /**
1506
- * 创建时间
1688
+ * <p>创建时间</p>
1507
1689
  */
1508
1690
  CreateTime?: string;
1509
1691
  /**
1510
- * 更新时间 yyyy-MM-dd hh:mm:ss
1692
+ * <p>更新时间 yyyy-MM-dd hh:mm:ss</p>
1511
1693
  */
1512
1694
  ModifyTime?: string;
1513
1695
  /**
1514
- * 绑定的消费者数量
1696
+ * <p>绑定的消费者数量</p>
1515
1697
  注意:此字段可能返回 null,表示取不到有效值。
1516
1698
  */
1517
1699
  BindCount?: number;
1518
- }
1519
- /**
1520
- * 资源端 OIDC 认证插件配置
1521
- */
1522
- export interface AIGWOIDCAuthPluginConfig {
1523
1700
  /**
1524
- * <p>目标受众</p>
1701
+ * <p>同步状态</p><p>枚举值:</p><ul><li>Fail: 失败</li><li>Succes: 成功</li></ul>
1525
1702
  */
1526
- Audience?: string;
1703
+ SyncStatus?: string;
1527
1704
  /**
1528
- * <p>是否BearerOnly</p><p>目前只能为true</p>
1705
+ * <p>资源类型</p><p>枚举值:</p><ul><li>Public: 公共</li><li>Private: 私有</li><li>SourceDeleted: 资源已删除</li></ul>
1529
1706
  */
1530
- BearerOnly?: boolean;
1707
+ SourceType?: string;
1531
1708
  /**
1532
- * <p>授权范围</p>
1533
- */
1534
- Scopes?: Array<string>;
1535
- /**
1536
- * <p>消费者标识</p>
1537
- */
1538
- ConsumerClaim?: string;
1539
- /**
1540
- * <p>认证域</p>
1541
- */
1542
- Realm?: string;
1543
- /**
1544
- * <p>超时时间</p>
1545
- */
1546
- Timeout?: number;
1547
- /**
1548
- * <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>
1549
- */
1550
- TokenEndpointAuthMethod?: string;
1551
- /**
1552
- * <p>令牌内省端点</p>
1553
- */
1554
- IntrospectionEndpoint?: string;
1555
- /**
1556
- * <p>令牌内省端点认证方法</p><p>枚举值:</p><ul><li>client_secret_basic: client_secret_basic</li><li>client_secret_post: client_secret_post</li></ul>
1709
+ * <p>同步版本</p>
1557
1710
  */
1558
- IntrospectionEndpointAuthMethod?: string;
1711
+ SyncedVersion?: string;
1712
+ }
1713
+ /**
1714
+ * CreateCloudNativeAPIGatewayLLMModelService返回参数结构体
1715
+ */
1716
+ export interface CreateCloudNativeAPIGatewayLLMModelServiceResponse {
1559
1717
  /**
1560
- * <p>签发者地址</p>
1718
+ * <p>是否成功</p>
1561
1719
  */
1562
- IssuerURL?: string;
1720
+ Result?: boolean;
1563
1721
  /**
1564
- * <p>客户端 ID</p>
1722
+ * <p>模型服务 ID,全局唯一标识。</p>
1565
1723
  */
1566
- ClientId?: string;
1724
+ ModelServiceId?: string;
1567
1725
  /**
1568
- * <p>客户端密钥</p>
1726
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1569
1727
  */
1570
- ClientSecret?: string;
1728
+ RequestId?: string;
1571
1729
  }
1572
1730
  /**
1573
1731
  * AI 网关 MCP Server ACL 配置详情
@@ -1595,7 +1753,7 @@ export interface AIGWMCPServerACLResult {
1595
1753
  */
1596
1754
  export interface ModifyCloudNativeAPIGatewayConsumerRequest {
1597
1755
  /**
1598
- * 网关实例id
1756
+ * <p>网关实例id</p>
1599
1757
  */
1600
1758
  GatewayId: string;
1601
1759
  /**
@@ -1606,29 +1764,33 @@ export interface ModifyCloudNativeAPIGatewayConsumerRequest {
1606
1764
  * <p>消费者名称,最长 60 字符。</p>
1607
1765
  */
1608
1766
  Name: string;
1767
+ /**
1768
+ * <p>消费者优先级</p><p>枚举值:</p><ul><li>High: 高优</li><li>Medium: 中优</li><li>Low: 低优</li></ul>
1769
+ */
1770
+ Priority?: string;
1609
1771
  /**
1610
1772
  * <p>消费者描述。最长 200 字符。</p>
1611
1773
  */
1612
1774
  Description?: string;
1613
1775
  }
1614
1776
  /**
1615
- * AI 网关 B 层日志脱敏配置(写入 LLM Log 前对 payload 掩码)
1777
+ * AI 网关日志脱敏配置
1616
1778
  */
1617
1779
  export interface AIGWLogDesensitizeConfig {
1618
1780
  /**
1619
- * <p>日志脱敏开关</p>
1781
+ * <p>日志脱敏配置总开关</p>
1620
1782
  */
1621
1783
  Enabled: boolean;
1622
1784
  /**
1623
- * <p>预定义规则类型</p><p>枚举值:</p><ul><li>Phone: 电话号码</li><li>IdCard: 身份证号</li><li>BankCard: 银行卡号</li><li>Email: 邮箱地址</li><li>IP: IP地址</li><li>Name: 姓名</li></ul>
1785
+ * <p>内置规则类型:PhoneIdCardBankCardEmailIPName</p>
1624
1786
  */
1625
1787
  PredefinedRuleTypes?: Array<string>;
1626
1788
  /**
1627
- * <p>自定义脱敏规则</p>
1789
+ * <p>自定义规则,最多 20 条</p>
1628
1790
  */
1629
1791
  CustomRules?: Array<AIGWCustomDesensitizeRule>;
1630
1792
  /**
1631
- * <p>日志脱敏范围</p><p>枚举值:</p><ul><li>Request: 请求</li><li>Response: 响应</li></ul>
1793
+ * <p>脱敏方向:RequestResponse;为空时默认两者</p>
1632
1794
  */
1633
1795
  Scope?: Array<string>;
1634
1796
  }
@@ -1672,25 +1834,25 @@ export interface AIGWMCPSessionConfig {
1672
1834
  RedisConfig?: AIGWRedisConfig;
1673
1835
  }
1674
1836
  /**
1675
- * 默认kong路由,目前只在 LLM 模型 API相 关接口使用
1837
+ * AI 网关 MCP Server 认证配置详情
1676
1838
  */
1677
- export interface DefaultKongRoute {
1839
+ export interface AIGWMCPServerAuthResult {
1678
1840
  /**
1679
- * <p>服务名字</p>
1841
+ * <p>MCP服务认证类型</p><p>枚举值:</p><ul><li>None: 无认证</li><li>ApiKey: API Key认证</li></ul>
1680
1842
  */
1681
- Name: string;
1843
+ AuthType?: string;
1682
1844
  /**
1683
- * <p>服务ID</p>
1845
+ * <p>JWT认证配置</p>
1684
1846
  */
1685
- ID?: string;
1847
+ JWTAuthConfig?: AIGWJWTAuthPluginConfig;
1686
1848
  /**
1687
- * <p>HTTP Method</p>
1849
+ * <p>OAuth2认证配置</p>
1688
1850
  */
1689
- Methods?: Array<string>;
1851
+ OAuthAuthConfig?: AIGWOAuthAuthPluginConfig;
1690
1852
  /**
1691
- * <p>Http Path</p>
1853
+ * <p>OIDC认证配置</p>
1692
1854
  */
1693
- Paths?: Array<string>;
1855
+ OIDCAuthConfig?: AIGWOIDCAuthPluginConfig;
1694
1856
  }
1695
1857
  /**
1696
1858
  * DescribeCloudNativeAPIGatewayMCPToolList请求参数结构体
@@ -1723,17 +1885,34 @@ export interface DeleteCloudNativeAPIGatewayMCPServerResponse {
1723
1885
  RequestId?: string;
1724
1886
  }
1725
1887
  /**
1726
- * DescribeCloudNativeAPIGatewayMCPToolsFromFile接口的出参
1888
+ * AI网关模型可用范围
1727
1889
  */
1728
- export interface CNAPIGwParseMCPToolsResult {
1890
+ export interface AIGWModelScope {
1729
1891
  /**
1730
- * <p>MCP Tools列表</p>
1892
+ * <p>范围类型</p><p>枚举值:</p><ul><li>ALL: 允许全部访问</li><li>ALLOWLIST: 允许访问的模型列表</li><li>MAG: 模型访问组</li></ul>
1731
1893
  */
1732
- DataList?: Array<CNAPIGwMCPToolPreview>;
1894
+ ScopeType?: string;
1733
1895
  /**
1734
- * <p>MCP tools的数量</p>
1896
+ * <p>允许访问的模型列表,ScopeType=ALLOWLIST时设置</p>
1735
1897
  */
1736
- TotalCount?: number;
1898
+ AllowList?: Array<string>;
1899
+ /**
1900
+ * <p>模型访问组,ScopeType=MAG时设置</p>
1901
+ */
1902
+ MagRefs?: Array<string>;
1903
+ }
1904
+ /**
1905
+ * AI 网关意图路由规则
1906
+ */
1907
+ export interface AIGWIntentRouteRule {
1908
+ /**
1909
+ * <p>意图编码</p><p>枚举值:</p><ul><li>Coder: 代码编写</li><li>Math: 数学计算</li><li>Translation: 翻译</li><li>Flash: 快速问答</li><li>Complex: 复杂推理</li></ul>
1910
+ */
1911
+ IntentCode?: string;
1912
+ /**
1913
+ * <p>模型服务id</p>
1914
+ */
1915
+ ModelServiceId?: string;
1737
1916
  }
1738
1917
  /**
1739
1918
  * 云原生网关路由信息
@@ -1875,29 +2054,17 @@ export interface ModifyCloudNativeAPIGatewayMCPToolRequest {
1875
2054
  ToolVersion?: string;
1876
2055
  }
1877
2056
  /**
1878
- * DescribeCloudNativeAPIGatewayMCPToolACLList请求参数结构体
2057
+ * DeleteCloudNativeAPIGatewayLLMModelAPI请求参数结构体
1879
2058
  */
1880
- export interface DescribeCloudNativeAPIGatewayMCPToolACLListRequest {
2059
+ export interface DeleteCloudNativeAPIGatewayLLMModelAPIRequest {
1881
2060
  /**
1882
- * <p>网关实例ID</p>
2061
+ * 网关 id。
1883
2062
  */
1884
2063
  GatewayId: string;
1885
2064
  /**
1886
- * <p>MCP 服务ID</p>
1887
- */
1888
- ServerId: string;
1889
- /**
1890
- * <p>分页大小</p>
1891
- */
1892
- Limit: number;
1893
- /**
1894
- * <p>分页偏移</p>
1895
- */
1896
- Offset: number;
1897
- /**
1898
- * <p>搜索关键词</p>
2065
+ * 模型 API ID,全局唯一标识。
1899
2066
  */
1900
- Keyword?: string;
2067
+ ModelAPIId: string;
1901
2068
  }
1902
2069
  /**
1903
2070
  * LLM 模型 API 列表
@@ -1985,6 +2152,15 @@ export interface AIGWOIDCCredentialConfig {
1985
2152
  */
1986
2153
  ConsumerClaimValue?: string;
1987
2154
  }
2155
+ /**
2156
+ * 负载均衡配置,仅服务来源(ServiceSource,SourceId 非空)场景生效。
2157
+ */
2158
+ export interface AIGWLoadBalanceConfig {
2159
+ /**
2160
+ * <p>负载均衡类型</p><p>枚举值:</p><ul><li>RoundRobin: 轮询</li><li>WeightedRoundRobin: 加权轮询</li><li>LeastConnections: 最少连接</li><li>Random: 随机</li></ul><p>默认值:RoundRobin</p>
2161
+ */
2162
+ Algorithm?: string;
2163
+ }
1988
2164
  /**
1989
2165
  * CreateCloudNativeAPIGatewayConsumerGroup返回参数结构体
1990
2166
  */
@@ -2076,6 +2252,10 @@ export interface AIGWMCPUpstreamInfoDetail {
2076
2252
  * <p>SSE message路径</p>
2077
2253
  */
2078
2254
  MessageEndpoint?: string;
2255
+ /**
2256
+ * <p>TLS配置</p>
2257
+ */
2258
+ TLSConfig?: AIGWUpstreamTLSConfig;
2079
2259
  }
2080
2260
  /**
2081
2261
  * Kong Upstream中的Target
@@ -2145,21 +2325,13 @@ export interface KVMapping {
2145
2325
  Value?: string;
2146
2326
  }
2147
2327
  /**
2148
- * CreateCloudNativeAPIGatewayConsumer请求参数结构体
2328
+ * AI网关 Bearer Token 凭证配置
2149
2329
  */
2150
- export interface CreateCloudNativeAPIGatewayConsumerRequest {
2151
- /**
2152
- * 网关实例id
2153
- */
2154
- GatewayId: string;
2155
- /**
2156
- * <p>消费者名称,最长 60 字符。同一网关下唯一。</p>
2157
- */
2158
- Name: string;
2330
+ export interface AIGWBearerTokenCredentialConfig {
2159
2331
  /**
2160
- * <p>消费者描述。最长 200 字符。</p>
2332
+ * <p>Token凭证</p>
2161
2333
  */
2162
- Description?: string;
2334
+ Token?: string;
2163
2335
  }
2164
2336
  /**
2165
2337
  * AI 网关token长度路由配置
@@ -2359,6 +2531,30 @@ export interface CreateCloudNativeAPIGatewaySecretKeyRequest {
2359
2531
  * <p>密钥值,长度 8-256。GenerateType=Custom 时必填。</p>
2360
2532
  */
2361
2533
  SecretValue?: string;
2534
+ /**
2535
+ * <p>AK/SK凭证配置</p>
2536
+ */
2537
+ AKSKCredentialConfig?: AIGWAKSKCredentialConfig;
2538
+ /**
2539
+ * <p>CAM凭证配置</p>
2540
+ */
2541
+ CAMCredentialConfig?: AIGWCAMCredentialConfig;
2542
+ /**
2543
+ * <p>Bearer Token凭证配置</p>
2544
+ */
2545
+ BearerTokenCredentialConfig?: AIGWBearerTokenCredentialConfig;
2546
+ /**
2547
+ * <p>自定义Header凭证配置</p>
2548
+ */
2549
+ CustomHeaderCredentialConfig?: AIGWCustomHeaderCredentialConfig;
2550
+ /**
2551
+ * <p>自定义Query参数凭证配置</p>
2552
+ */
2553
+ QueryParamCredentialConfig?: AIGWQueryParamCredentialConfig;
2554
+ /**
2555
+ * <p>Basic Auth凭证配置</p>
2556
+ */
2557
+ BasicCredentialConfig?: AIGWBasicCredentialConfig;
2362
2558
  }
2363
2559
  /**
2364
2560
  * DescribeCloudNativeAPIGatewayMCPServer返回参数结构体
@@ -2508,17 +2704,25 @@ export interface AIGWLLMTokenUsageStatisticsResult {
2508
2704
  TopConsumers?: Array<AIGWTopConsumersItem>;
2509
2705
  }
2510
2706
  /**
2511
- * DeleteCloudNativeAPIGatewayLLMModelAPI请求参数结构体
2707
+ * CreateCloudNativeAPIGatewayConsumer请求参数结构体
2512
2708
  */
2513
- export interface DeleteCloudNativeAPIGatewayLLMModelAPIRequest {
2709
+ export interface CreateCloudNativeAPIGatewayConsumerRequest {
2514
2710
  /**
2515
- * 网关 id
2711
+ * <p>网关实例id</p>
2516
2712
  */
2517
2713
  GatewayId: string;
2518
2714
  /**
2519
- * 模型 API ID,全局唯一标识。
2715
+ * <p>消费者名称,最长 60 字符。同一网关下唯一。</p>
2520
2716
  */
2521
- ModelAPIId: string;
2717
+ Name: string;
2718
+ /**
2719
+ * <p>优先级</p><p>枚举值:</p><ul><li>High: 高优</li><li>Medium: 中优</li><li>Low: 低优</li></ul>
2720
+ */
2721
+ Priority?: string;
2722
+ /**
2723
+ * <p>消费者描述。最长 200 字符。</p>
2724
+ */
2725
+ Description?: string;
2522
2726
  }
2523
2727
  /**
2524
2728
  * ModifyCloudNativeAPIGatewayMCPServerStatus请求参数结构体
@@ -2585,6 +2789,36 @@ export interface AIGWCrossServiceFallbackConfig {
2585
2789
  */
2586
2790
  QuotaFallbackTrigger?: AIGWLLMQuotaFallbackTrigger;
2587
2791
  }
2792
+ /**
2793
+ * AI网关Upstream TLS配置
2794
+ */
2795
+ export interface AIGWUpstreamTLSConfig {
2796
+ /**
2797
+ * <p>是否校验上游服务端证书</p><p>默认值:false</p>
2798
+ */
2799
+ TLSVerify?: boolean;
2800
+ /**
2801
+ * <p>客户端证书 ID(mTLS 用)</p>
2802
+ */
2803
+ ClientCertId?: string;
2804
+ /**
2805
+ * <p>信任的 CA 证书 ID 列表</p>
2806
+ */
2807
+ UpstreamCACertIds?: Array<string>;
2808
+ }
2809
+ /**
2810
+ * AI网关消费者模型范围
2811
+ */
2812
+ export interface AIGWConsumerModelScope {
2813
+ /**
2814
+ * <p>消费者模型生效范围类型</p><p>枚举值:</p><ul><li>INHERIT: 继承所在消费者组的生效模型范围</li><li>ALLOWLIST: 自定义白名单,必须 ⊆ 所在组针对该资源的生效模型集合</li></ul>
2815
+ */
2816
+ ScopeType?: string;
2817
+ /**
2818
+ * <p>模型授权白名单列表</p>
2819
+ */
2820
+ AllowList?: Array<string>;
2821
+ }
2588
2822
  /**
2589
2823
  * DescribeCloudNativeAPIGatewayLLMModelAPIs返回参数结构体
2590
2824
  */
@@ -2949,6 +3183,59 @@ export interface DescribeCloudNativeAPIGatewaySecretKeyRequest {
2949
3183
  */
2950
3184
  SecretKeyId: string;
2951
3185
  }
3186
+ /**
3187
+ * ModifyCloudNativeAPIGatewayMCPServer请求参数结构体
3188
+ */
3189
+ export interface ModifyCloudNativeAPIGatewayMCPServerRequest {
3190
+ /**
3191
+ * <p>实例 ID</p>
3192
+ */
3193
+ GatewayId: string;
3194
+ /**
3195
+ * <p>展示名字</p>
3196
+ */
3197
+ DisplayName: string;
3198
+ /**
3199
+ * <p>服务 id</p>
3200
+ */
3201
+ ServerId: string;
3202
+ /**
3203
+ * <p>后端类型</p><p>枚举值:</p><ul><li>HostIP: 域名 ip</li><li>MCPRegistry: MCP 注册中心</li><li>VirtualMCPServer: 虚拟MCP 服务</li></ul>
3204
+ */
3205
+ UpstreamType: string;
3206
+ /**
3207
+ * <p>超时时间,单位ms,最大60000</p>
3208
+ */
3209
+ Timeout?: number;
3210
+ /**
3211
+ * <p>重试次数,最大3次</p>
3212
+ */
3213
+ RetryCount?: number;
3214
+ /**
3215
+ * <p>注册中心来源信息</p>
3216
+ */
3217
+ UpstreamInfo?: AIGWMCPUpstreamInfo;
3218
+ /**
3219
+ * <p>会话配置</p>
3220
+ */
3221
+ SessionConfig?: AIGWMCPSessionConfig;
3222
+ /**
3223
+ * <p>描述</p>
3224
+ */
3225
+ Description?: string;
3226
+ /**
3227
+ * <p>是否启用健康检查</p>
3228
+ */
3229
+ EnableHealthCheck?: boolean;
3230
+ /**
3231
+ * <p>健康检查配置</p>
3232
+ */
3233
+ HealthCheck?: AIGWHealthCheckSetting;
3234
+ /**
3235
+ * <p>是否开启保留原Host功能</p>
3236
+ */
3237
+ PreserveHost?: boolean;
3238
+ }
2952
3239
  /**
2953
3240
  * AI 网关 mcp server 下所有 tool 的 ACL 状态
2954
3241
  */
@@ -2976,35 +3263,167 @@ export interface AddCloudNativeAPIGatewayConsumerGroupAuthResponse {
2976
3263
  RequestId?: string;
2977
3264
  }
2978
3265
  /**
2979
- * DeleteCloudNativeAPIGatewayConsumer请求参数结构体
3266
+ * 服务的后端配置
2980
3267
  */
2981
- export interface DeleteCloudNativeAPIGatewayConsumerRequest {
3268
+ export interface KongUpstreamInfo {
2982
3269
  /**
2983
- * 网关实例id
3270
+ * 负载均衡算法,默认为 round-robin,还支持 least-connections,consisten_hashing
2984
3271
  */
2985
- GatewayId: string;
3272
+ Algorithm?: string;
2986
3273
  /**
2987
- * 消费者ID
3274
+ * CVM弹性伸缩组端口
2988
3275
  */
2989
- ConsumerId: string;
2990
- }
2991
- /**
2992
- * LLM-单模型内降级规则
2993
- */
2994
- export interface CloudNativeAPIGatewayLLMModelFallbackRule {
3276
+ AutoScalingCvmPort?: number;
2995
3277
  /**
2996
- * 备选模型,主模型不可用时将依次按顺序尝试。
3278
+ * CVM弹性伸缩组ID
2997
3279
  */
2998
- FallbackModels?: Array<string>;
2999
- }
3000
- /**
3001
- * ModifyCloudNativeAPIGatewayMCPToolStatus返回参数结构体
3002
- */
3003
- export interface ModifyCloudNativeAPIGatewayMCPToolStatusResponse {
3280
+ AutoScalingGroupID?: string;
3004
3281
  /**
3005
- * <p>创建结果</p>
3282
+ * CVM弹性伸缩组生命周期挂钩状态
3006
3283
  */
3007
- Result?: boolean;
3284
+ AutoScalingHookStatus?: string;
3285
+ /**
3286
+ * CVM弹性伸缩组使用的CVM TAT命令状态
3287
+ */
3288
+ AutoScalingTatCmdStatus?: string;
3289
+ /**
3290
+ * upstream健康状态HEALTHY(健康), UNHEALTHY(异常), HEALTHCHECKS_OFF(未开启)和NONE(不支持健康检查)
3291
+ */
3292
+ HealthStatus?: string;
3293
+ /**
3294
+ * IP或域名
3295
+ */
3296
+ Host?: string;
3297
+ /**
3298
+ * 命名空间
3299
+ */
3300
+ Namespace?: string;
3301
+ /**
3302
+ * 端口
3303
+ */
3304
+ Port?: number;
3305
+ /**
3306
+ * 精确的服务来源类型,新建服务来源时候传入的类型
3307
+ */
3308
+ RealSourceType?: string;
3309
+ /**
3310
+ * 云函数是否开启CAM鉴权,不填时默认为开启(true)
3311
+ */
3312
+ ScfCamAuthEnable?: boolean;
3313
+ /**
3314
+ * 云函数是否开启Base64编码,默认为false
3315
+ */
3316
+ ScfIsBase64Encoded?: boolean;
3317
+ /**
3318
+ * 云函数是否开启响应集成,默认为false
3319
+ */
3320
+ ScfIsIntegratedResponse?: boolean;
3321
+ /**
3322
+ * SCF函数名
3323
+ */
3324
+ ScfLambdaName?: string;
3325
+ /**
3326
+ * SCF函数版本
3327
+ */
3328
+ ScfLambdaQualifier?: string;
3329
+ /**
3330
+ * SCF函数命名空间
3331
+ */
3332
+ ScfNamespace?: string;
3333
+ /**
3334
+ * SCF函数类型
3335
+ */
3336
+ ScfType?: string;
3337
+ /**
3338
+ * 服务(注册中心或Kubernetes中的服务)名字
3339
+ */
3340
+ ServiceName?: string;
3341
+ /**
3342
+ * 冷启动时间,单位秒
3343
+ */
3344
+ SlowStart?: number;
3345
+ /**
3346
+ * 服务来源ID
3347
+ */
3348
+ SourceID?: string;
3349
+ /**
3350
+ * 服务来源的名字
3351
+ */
3352
+ SourceName?: string;
3353
+ /**
3354
+ * 服务来源类型
3355
+ */
3356
+ SourceType?: string;
3357
+ /**
3358
+ * 服务后端类型是IPList时提供
3359
+ 注意:此字段可能返回 null,表示取不到有效值。
3360
+ */
3361
+ Targets?: Array<KongTarget>;
3362
+ }
3363
+ /**
3364
+ * DescribeCloudNativeAPIGatewaySecretKeyValue返回参数结构体
3365
+ */
3366
+ export interface DescribeCloudNativeAPIGatewaySecretKeyValueResponse {
3367
+ /**
3368
+ * 密钥值
3369
+ */
3370
+ Result?: string;
3371
+ /**
3372
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3373
+ */
3374
+ RequestId?: string;
3375
+ }
3376
+ /**
3377
+ * AI网关授权模型访问范围
3378
+ */
3379
+ export interface AIGWAuthModelScopeItem {
3380
+ /**
3381
+ * <p>授权主体 ID,如消费者组、消费者</p>
3382
+ */
3383
+ PrincipalId?: string;
3384
+ /**
3385
+ * <p>授权主体名称,如消费者组、消费者</p>
3386
+ */
3387
+ PrincipalName?: string;
3388
+ /**
3389
+ * <p>模型范围原始配置</p>
3390
+ */
3391
+ ModelScope?: AIGWModelScope;
3392
+ /**
3393
+ * <p>MAG 已展开、保序去重后的可用模型名称列表</p>
3394
+ */
3395
+ EffectiveModelNames?: Array<string>;
3396
+ }
3397
+ /**
3398
+ * DeleteCloudNativeAPIGatewayConsumer请求参数结构体
3399
+ */
3400
+ export interface DeleteCloudNativeAPIGatewayConsumerRequest {
3401
+ /**
3402
+ * 网关实例id
3403
+ */
3404
+ GatewayId: string;
3405
+ /**
3406
+ * 消费者ID
3407
+ */
3408
+ ConsumerId: string;
3409
+ }
3410
+ /**
3411
+ * LLM-单模型内降级规则
3412
+ */
3413
+ export interface CloudNativeAPIGatewayLLMModelFallbackRule {
3414
+ /**
3415
+ * 备选模型,主模型不可用时将依次按顺序尝试。
3416
+ */
3417
+ FallbackModels?: Array<string>;
3418
+ }
3419
+ /**
3420
+ * ModifyCloudNativeAPIGatewayMCPToolStatus返回参数结构体
3421
+ */
3422
+ export interface ModifyCloudNativeAPIGatewayMCPToolStatusResponse {
3423
+ /**
3424
+ * <p>创建结果</p>
3425
+ */
3426
+ Result?: boolean;
3008
3427
  /**
3009
3428
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3010
3429
  */
@@ -3028,23 +3447,23 @@ export interface AIGWLLMQuotaLimit {
3028
3447
  ConcurrentCountLimit?: number;
3029
3448
  }
3030
3449
  /**
3031
- * AI 网关自定义脱敏规则(A 层 / B 层共用结构体,MaskFormat 含义随所属层不同)
3450
+ * AI 网关自定义脱敏规则
3032
3451
  */
3033
3452
  export interface AIGWCustomDesensitizeRule {
3034
3453
  /**
3035
- * <p>自定义脱敏规则名称</p>
3454
+ * <p>规则名称,同一配置内唯一,最长 64</p>
3036
3455
  */
3037
3456
  Name: string;
3038
3457
  /**
3039
- * <p>自定义脱敏规则匹配正则</p>
3458
+ * <p>RE2 兼容的正则表达式</p>
3040
3459
  */
3041
3460
  Pattern: string;
3042
3461
  /**
3043
- * <p>自定义脱敏规则掩码</p>
3462
+ * <p>日志场景为掩码格式,转发场景为占位符;最长 64</p>
3044
3463
  */
3045
3464
  MaskFormat: string;
3046
3465
  /**
3047
- * <p>自定义脱敏规则开关</p>
3466
+ * <p>单条自定义规则是否启用</p>
3048
3467
  */
3049
3468
  Enabled: boolean;
3050
3469
  }
@@ -3162,6 +3581,19 @@ export interface UnbindCloudNativeAPIGatewaySecretKeyRequest {
3162
3581
  */
3163
3582
  SecretKeyId: string;
3164
3583
  }
3584
+ /**
3585
+ * AI网关 Query Param 凭证物料配置
3586
+ */
3587
+ export interface AIGWQueryParamCredentialConfig {
3588
+ /**
3589
+ * <p>参数名</p>
3590
+ */
3591
+ ParamName?: string;
3592
+ /**
3593
+ * <p>参数值</p>
3594
+ */
3595
+ ParamValue?: string;
3596
+ }
3165
3597
  /**
3166
3598
  * BindCloudNativeAPIGatewaySecretKey返回参数结构体
3167
3599
  */
@@ -3328,6 +3760,42 @@ export interface CloudNativeAPIGatewayLLMModelService {
3328
3760
  * <p>外部服务来源ID</p>
3329
3761
  */
3330
3762
  ExternalInstanceId?: string;
3763
+ /**
3764
+ * <p>负载均衡配置。</p>
3765
+ */
3766
+ LoadBalanceConfig?: AIGWLoadBalanceConfig;
3767
+ /**
3768
+ * <p>是否可以发布到广场</p>
3769
+ */
3770
+ CanPublish?: boolean;
3771
+ /**
3772
+ * <p>发布状态</p><p>枚举值:</p><ul><li>Unpublished: 未发布</li><li>Published: 已发布</li></ul>
3773
+ */
3774
+ PublishStatus?: string;
3775
+ /**
3776
+ * <p>同步状态</p><p>枚举值:</p><ul><li>Success: 成功</li><li>Fail: 失败</li></ul>
3777
+ */
3778
+ SyncStatus?: string;
3779
+ /**
3780
+ * <p>资源类型</p><p>枚举值:</p><ul><li>Public: 公共</li><li>Private: 私有</li><li>SourceDeleted: 资源删除</li></ul>
3781
+ */
3782
+ SourceType?: string;
3783
+ /**
3784
+ * <p>同步版本</p>
3785
+ */
3786
+ SyncedVersion?: string;
3787
+ /**
3788
+ * <p>模型服务状态</p><p>枚举值:</p><ul><li>Online: 已上线</li><li>Offline: 已下线</li><li>Error: 健康检查异常</li></ul>
3789
+ */
3790
+ Status?: string;
3791
+ /**
3792
+ * <p>是否启用健康检查</p>
3793
+ */
3794
+ EnableHealthCheck?: boolean;
3795
+ /**
3796
+ * <p>健康检查配置</p>
3797
+ */
3798
+ HealthCheck?: AIGWLLMHealthCheckSetting;
3331
3799
  }
3332
3800
  /**
3333
3801
  * DeleteCloudNativeAPIGatewayConsumerGroup请求参数结构体
@@ -3379,6 +3847,10 @@ export interface DescribeCloudNativeAPIGatewayMCPServerListRequest {
3379
3847
  * <p>分页偏移</p>
3380
3848
  */
3381
3849
  Offset: number;
3850
+ /**
3851
+ * <p>密钥凭证ID</p>
3852
+ */
3853
+ SecretKeyId?: string;
3382
3854
  }
3383
3855
  /**
3384
3856
  * DescribeCloudNativeAPIGatewayConsumerGroup返回参数结构体
@@ -3481,6 +3953,31 @@ export interface DescribeCloudNativeAPIGatewayLLMTokenUsageListRequest {
3481
3953
  */
3482
3954
  Offset?: number;
3483
3955
  }
3956
+ /**
3957
+ * AI网关LLM健康检查配置
3958
+ */
3959
+ export interface AIGWLLMHealthCheckSetting {
3960
+ /**
3961
+ * <p>检查失败阈值</p>
3962
+ */
3963
+ HealthCheckFailThreshold: number;
3964
+ /**
3965
+ * <p>检查间隔</p>
3966
+ */
3967
+ HealthCheckIntervalSecond: number;
3968
+ /**
3969
+ * <p>检查恢复阈值</p>
3970
+ */
3971
+ HealthCheckRecoverThreshold: number;
3972
+ /**
3973
+ * <p>检查超时时间</p>
3974
+ */
3975
+ HealthCheckTimeout: number;
3976
+ /**
3977
+ * <p>检查路径</p>
3978
+ */
3979
+ HealthCheckPath?: string;
3980
+ }
3484
3981
  /**
3485
3982
  * ModifyCloudNativeAPIGatewayMCPToolStatus请求参数结构体
3486
3983
  */
@@ -3503,217 +4000,113 @@ export interface ModifyCloudNativeAPIGatewayMCPToolStatusRequest {
3503
4000
  ToolId: string;
3504
4001
  }
3505
4002
  /**
3506
- * CreateCloudNativeAPIGatewayLLMModelService请求参数结构体
4003
+ * AddCloudNativeAPIGatewayConsumerGroupAuth请求参数结构体
3507
4004
  */
3508
- export interface CreateCloudNativeAPIGatewayLLMModelServiceRequest {
4005
+ export interface AddCloudNativeAPIGatewayConsumerGroupAuthRequest {
3509
4006
  /**
3510
- * <p>网关 id。</p>
4007
+ * <p>网关实例id</p>
3511
4008
  */
3512
4009
  GatewayId: string;
3513
4010
  /**
3514
- * <p>服务名称,最长60个字符,支持中英文大小写、数字及分隔符(“-”、“_”),不能以数字和分隔符开头,不能以分隔符结尾。</p>
4011
+ * <p>授权资源类型。</p><p>枚举值:</p><ul><li>ModelAPI:模型 API</li><li>MCPServer:MCP Server</li></ul>
3515
4012
  */
3516
- Name: string;
4013
+ ResourceType: string;
3517
4014
  /**
3518
- * <p>服务类型。目前仅支持 LLMService。</p><p>枚举值:</p><ul><li>LLMService: 大语言模型服务</li></ul>
4015
+ * <p>对应资源的 ID。</p><ul><li>ResourceType=ModelAPI 时是模型 API ID</li><li>ResourceType=MCPServer 时是 MCP Server ID</li></ul>
3519
4016
  */
3520
- ServiceType: string;
4017
+ ResourceId: string;
3521
4018
  /**
3522
- * <p>选择模型提供商, 选项:OpenAI、Anthropic、Azure OpenAI等。</p>
4019
+ * <p>消费者组 ID 列表(每个 ID 以 cg- 开头),长度 1-10。</p>
3523
4020
  */
3524
- ModelProvider: string;
4021
+ ConsumerGroupIds: Array<string>;
4022
+ }
4023
+ /**
4024
+ * 模型服务二级路由配置
4025
+ */
4026
+ export interface AIGWLLMModelServiceSubRoute {
3525
4027
  /**
3526
- * <p>API协议标准,根据供应商动态变化:OpenAI→OpenAI/v1,Anthropic→Anthropic/v1等</p>
4028
+ * <p>生效的路由算法类型:权重路由,模型名称路由、参数路由等Weighted/ModelName/Query (预留多个,暂时只能填写一个)</p>
3527
4029
  */
3528
- ModelProtocol: string;
4030
+ SelectedTypes: Array<string>;
3529
4031
  /**
3530
- * <p>模型选择方式,选项:Specify(指定模型)、PassThrough(透传请求模型)。</p>
4032
+ * <p>权重路由配置,最多10个</p>
3531
4033
  */
3532
- ModelSelector: string;
4034
+ WeightedConfig?: Array<CloudNativeAPIGatewayLLMModelServiceRouteWeightedStrategy>;
3533
4035
  /**
3534
- * <p>LLM 厂商颁发的认证信息 token 。</p>
4036
+ * <p>延迟路由</p>
3535
4037
  */
3536
- SecretKeyIds?: Array<string>;
4038
+ LatencyPriorityConfig?: AIGWLatencyPriorityConfig;
3537
4039
  /**
3538
- * <p>默认模型,模型选择方式为 Specify 时必填。</p>
4040
+ * <p>指定模型路由(暂时只用在Token长度路由时的子路由选择)</p>
3539
4041
  */
3540
- DefaultModel?: string;
4042
+ ModelServiceConfig?: AIGWRouteModelServiceConfig;
4043
+ }
4044
+ /**
4045
+ * AI 网关转发脱敏配置
4046
+ */
4047
+ export interface AIGWForwardDesensitizeConfig {
3541
4048
  /**
3542
- * <p>开启模型降级,模型选择方式为 Specify 时必填。</p>
4049
+ * <p>转发脱敏配置总开关</p>
3543
4050
  */
3544
- EnableModelFallback?: boolean;
4051
+ Enabled: boolean;
3545
4052
  /**
3546
- * <p>可以配置备用模型规则,EnableSpecifyModelFallbackxa0为 true 时必填。</p>
4053
+ * <p>内置规则类型:Phone、IdCard、BankCard、Email、IP、Name</p>
3547
4054
  */
3548
- ModelFallbackRule?: CloudNativeAPIGatewayLLMModelFallbackRule;
4055
+ PredefinedRuleTypes?: Array<string>;
3549
4056
  /**
3550
- * <p>开启模型参数校验,是否校验客户端传递的 model 参数,xa0模型选择方式为 PassThrough 时必填</p>
4057
+ * <p>自定义规则,最多 20 条</p>
3551
4058
  */
3552
- EnableModelParamCheck?: boolean;
4059
+ CustomRules?: Array<AIGWCustomDesensitizeRule>;
3553
4060
  /**
3554
- * <p>模型检验信息,EnableModelParamCheckxa0为 true 时必填。</p>
4061
+ * <p>内置规则占位符格式,最长 32;为空时默认 [{type}]</p>
3555
4062
  */
3556
- ModelParamCheckRule?: CloudNativeAPIGatewayLLMModelParamCheckInfo;
4063
+ PlaceholderFormat?: string;
3557
4064
  /**
3558
- * <p>描述。</p>
4065
+ * <p>脱敏失败处理:Reject(拒绝请求)或 Skip(跳过脱敏并转发)</p>
3559
4066
  */
3560
- Description?: string;
4067
+ OnFailure?: string;
4068
+ }
4069
+ /**
4070
+ * AI GW Sensitive Word Route
4071
+ */
4072
+ export interface AIGWSensitiveWordRoute {
3561
4073
  /**
3562
- * <p>服务提供商自定义 url</p>
4074
+ * <p>是否开启</p>
3563
4075
  */
3564
- UpstreamURL?: string;
4076
+ Enabled?: boolean;
3565
4077
  /**
3566
- * <p>连接超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:10000</p>
4078
+ * <p>模型API ID列表</p>
3567
4079
  */
3568
- ConnectTimeout?: number;
4080
+ ModelServiceRefs?: Array<string>;
3569
4081
  /**
3570
- * <p>写入超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
4082
+ * <p>查询接口会返回模型API的Name列表</p>
3571
4083
  */
3572
- WriteTimeout?: number;
4084
+ ModelServiceNames?: Array<string>;
3573
4085
  /**
3574
- * <p>读取超时时间</p><p>取值范围:[1, 3600000]</p><p>单位:毫秒</p><p>默认值:60000</p>
4086
+ * <p>路由方式</p><p>枚举值:</p><ul><li>Weighted: 权重路由</li><li>ModelName: 按模型名称路由</li></ul>
3575
4087
  */
3576
- ReadTimeout?: number;
3577
- /**
3578
- * <p>重试次数</p><p>取值范围:[0, 5]</p><p>单位:次</p><p>默认值:0</p>
3579
- */
3580
- Retries?: number;
3581
- /**
3582
- * <p>路径拼接模式</p><p>枚举值:</p><ul><li>FixedPath: 固定地址</li><li>AutoConcat: 自动拼接</li></ul>
3583
- */
3584
- UpstreamUrlMode?: string;
3585
- /**
3586
- * <p>sni</p>
3587
- */
3588
- SNI?: string;
3589
- /**
3590
- * <p>模型服务级别的配额上限(RPM/TPM)。需要网关版本 ≥ 3.9.4。</p>
3591
- */
3592
- QuotaLimit?: AIGWLLMQuotaLimit;
3593
- /**
3594
- * <p>标签</p>
3595
- */
3596
- Tags?: Array<string>;
3597
- /**
3598
- * <p>参数改写规则</p>
3599
- */
3600
- ModelRewriteRules?: Array<AIGWModelRewriteRule>;
3601
- /**
3602
- * <p>模型自定义供应商名称</p>
3603
- */
3604
- CustomProviderName?: string;
3605
- /**
3606
- * <p>外部服务来源ID</p>
3607
- */
3608
- ExternalInstanceId?: string;
3609
- /**
3610
- * <p>其他参数</p>
3611
- */
3612
- ExtParams?: Array<KeyValue>;
3613
- /**
3614
- * <p>密钥轮转开关</p>
3615
- */
3616
- KeyRotationEnabled?: boolean;
3617
- /**
3618
- * <p>密钥轮转周期</p><p>单位:天数</p>
3619
- */
3620
- KeyRotationPeriodDays?: number;
3621
- /**
3622
- * <p>来源服务 ID。</p>
3623
- */
3624
- SourceId?: string;
3625
- /**
3626
- * <p>命名空间。</p>
3627
- */
3628
- Namespace?: string;
3629
- /**
3630
- * <p>服务名称。</p>
3631
- */
3632
- ServiceName?: string;
3633
- /**
3634
- * <p>协议类型,如 OpenAI、Custom。</p>
3635
- */
3636
- Protocol?: string;
3637
- }
3638
- /**
3639
- * AddCloudNativeAPIGatewayConsumerGroupAuth请求参数结构体
3640
- */
3641
- export interface AddCloudNativeAPIGatewayConsumerGroupAuthRequest {
3642
- /**
3643
- * <p>网关实例id</p>
3644
- */
3645
- GatewayId: string;
4088
+ SelectedTypes?: Array<string>;
3646
4089
  /**
3647
- * <p>授权资源类型。</p><p>枚举值:</p><ul><li>ModelAPI:模型 API</li><li>MCPServer:MCP Server</li></ul>
3648
- */
3649
- ResourceType: string;
3650
- /**
3651
- * <p>对应资源的 ID。</p><ul><li>ResourceType=ModelAPI 时是模型 API ID</li><li>ResourceType=MCPServer 时是 MCP Server ID</li></ul>
3652
- */
3653
- ResourceId: string;
3654
- /**
3655
- * <p>消费者组 ID 列表(每个 ID 以 cg- 开头),长度 1-10。</p>
3656
- */
3657
- ConsumerGroupIds: Array<string>;
3658
- }
3659
- /**
3660
- * 模型服务二级路由配置
3661
- */
3662
- export interface AIGWLLMModelServiceSubRoute {
3663
- /**
3664
- * <p>生效的路由算法类型:权重路由,模型名称路由、参数路由等Weighted/ModelName/Query (预留多个,暂时只能填写一个)</p>
3665
- */
3666
- SelectedTypes: Array<string>;
3667
- /**
3668
- * <p>权重路由配置,最多10个</p>
4090
+ * <p>权重路由配置</p>
3669
4091
  */
3670
4092
  WeightedConfig?: Array<CloudNativeAPIGatewayLLMModelServiceRouteWeightedStrategy>;
3671
4093
  /**
3672
- * <p>延迟路由</p>
3673
- */
3674
- LatencyPriorityConfig?: AIGWLatencyPriorityConfig;
3675
- /**
3676
- * <p>指定模型路由(暂时只用在Token长度路由时的子路由选择)</p>
4094
+ * <p>路由名称路由配置</p>
3677
4095
  */
3678
- ModelServiceConfig?: AIGWRouteModelServiceConfig;
4096
+ ModelNameConfig?: Array<CloudNativeAPIGatewayLLMModelServiceRouteModelNameStrategy>;
3679
4097
  }
3680
4098
  /**
3681
- * AI 网关 A 层转发脱敏配置(请求转发到 LLM 供应商前对 messages 替换为占位符)
4099
+ * aksk类型密钥
3682
4100
  */
3683
- export interface AIGWForwardDesensitizeConfig {
4101
+ export interface AIGWAKSKCredentialConfig {
3684
4102
  /**
3685
- * <p>转发脱敏开关</p>
4103
+ * <p>AccessKeyId</p>
3686
4104
  */
3687
- Enabled: boolean;
3688
- /**
3689
- * <p>预定义规则类型</p><p>枚举值:</p><ul><li>Phone: 电话号码</li><li>IdCard: 身份证号</li><li>BankCard: 银行卡号</li><li>Email: 电子邮箱地址</li><li>IP: IP地址</li><li>Name: 姓名</li></ul>
3690
- */
3691
- PredefinedRuleTypes?: Array<string>;
3692
- /**
3693
- * <p>自定义脱敏规则</p>
3694
- */
3695
- CustomRules?: Array<AIGWCustomDesensitizeRule>;
3696
- /**
3697
- * <p>掩码</p>
3698
- */
3699
- PlaceholderFormat?: string;
4105
+ AccessKeyId?: string;
3700
4106
  /**
3701
- * <p>脱敏异常处理</p><p>枚举值:</p><ul><li>Reject: 拒绝请求</li><li>Skip: 跳过</li></ul>
4107
+ * <p>SecretAccessKey</p>
3702
4108
  */
3703
- OnFailure?: string;
3704
- }
3705
- /**
3706
- * DescribeCloudNativeAPIGatewaySecretKeyValue返回参数结构体
3707
- */
3708
- export interface DescribeCloudNativeAPIGatewaySecretKeyValueResponse {
3709
- /**
3710
- * 密钥值
3711
- */
3712
- Result?: string;
3713
- /**
3714
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3715
- */
3716
- RequestId?: string;
4109
+ SecretAccessKey?: string;
3717
4110
  }
3718
4111
  /**
3719
4112
  * CreateCloudNativeAPIGatewayMCPTool返回参数结构体
@@ -3844,6 +4237,14 @@ export interface ModifyCloudNativeAPIGatewayLLMModelServiceRequest {
3844
4237
  * <p>协议类型,如 OpenAI、Custom。</p>
3845
4238
  */
3846
4239
  Protocol?: string;
4240
+ /**
4241
+ * <p>自定义供应商名称</p>
4242
+ */
4243
+ CustomProviderName?: string;
4244
+ /**
4245
+ * <p>负载均衡配置</p>
4246
+ */
4247
+ LoadBalanceConfig?: AIGWLoadBalanceConfig;
3847
4248
  }
3848
4249
  /**
3849
4250
  * DescribeCloudNativeAPIGatewayMCPServerList返回参数结构体
@@ -3876,92 +4277,17 @@ export interface CreateCloudNativeAPIGatewayLLMModelAPIResponse {
3876
4277
  RequestId?: string;
3877
4278
  }
3878
4279
  /**
3879
- * MCP Server详情
4280
+ * CreateCloudNativeAPIGatewaySecretKey返回参数结构体
3880
4281
  */
3881
- export interface AIGWMCPServer {
3882
- /**
3883
- * <p>MCP Server ID</p>
3884
- */
3885
- ServerId: string;
3886
- /**
3887
- * <p>MCP Server名称</p>
3888
- */
3889
- Name: string;
3890
- /**
3891
- * <p>MCP Server类型,取值:MCP/Rest2MCP</p>
3892
- */
3893
- ServerType: string;
3894
- /**
3895
- * <p>协议类型,取值: StreamableHttp</p>
3896
- */
3897
- Transport: string;
3898
- /**
3899
- * <p>服务类型:</p><ul><li>Registry </li><li>HostIP</li></ul>
3900
- */
3901
- UpstreamType: string;
3902
- /**
3903
- * <p>展示名字</p>
3904
- */
3905
- DisplayName?: string;
3906
- /**
3907
- * <p>MCP提供给客户端的Endpoint</p>
3908
- */
3909
- MCPEndpoint?: string;
3910
- /**
3911
- * <p>注册中心来源信息</p>
3912
- 注意:此字段可能返回 null,表示取不到有效值。
3913
- */
3914
- UpstreamInfo?: AIGWMCPUpstreamInfoDetail;
3915
- /**
3916
- * <p>会话配置</p>
3917
- 注意:此字段可能返回 null,表示取不到有效值。
3918
- */
3919
- SessionConfig?: AIGWMCPSessionConfig;
3920
- /**
3921
- * <p>超时时间,单位ms</p>
3922
- */
3923
- Timeout?: number;
3924
- /**
3925
- * <p>失败重试次数</p>
3926
- */
3927
- RetryCount?: number;
3928
- /**
3929
- * <p>创建时间</p>
3930
- */
3931
- CreateTime?: string;
3932
- /**
3933
- * <p>更新时间</p>
3934
- */
3935
- UpdateTime?: string;
3936
- /**
3937
- * <p>描述</p>
3938
- */
3939
- Description?: string;
3940
- /**
3941
- * <p>运行状态</p><p>枚举值:</p><ul><li>Online: 在线</li><li>Offline: 离线</li><li>Error: 错误</li></ul>
3942
- */
3943
- Status?: string;
3944
- /**
3945
- * <p>是否启用健康检查</p>
3946
- */
3947
- EnableHealthCheck?: boolean;
3948
- /**
3949
- * <p>健康检查配置</p>
3950
- 注意:此字段可能返回 null,表示取不到有效值。
3951
- */
3952
- HealthCheck?: AIGWHealthCheckSetting;
3953
- /**
3954
- * <p>Tool分组内工具数量限制</p>
3955
- */
3956
- ToolCountLimit?: number;
4282
+ export interface CreateCloudNativeAPIGatewaySecretKeyResponse {
3957
4283
  /**
3958
- * <p>Tool分组内工具命名冲突策略</p><p>枚举值:</p><ul><li>AutoPrefix: 自动前缀</li><li>Reject: 拒绝</li></ul>
4284
+ * <p>创建结果。包含成功标识与新建资源 ID。</p>
3959
4285
  */
3960
- ConflictStrategy?: string;
4286
+ Result?: CNAPIGwCreateCommonResult;
3961
4287
  /**
3962
- * <p>MCP 市场发布状态</p><p>枚举值:</p><ul><li>None: 未发布</li><li>Published: 已发布</li></ul>
4288
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3963
4289
  */
3964
- MarketStatus?: string;
4290
+ RequestId?: string;
3965
4291
  }
3966
4292
  /**
3967
4293
  * DescribeCloudNativeAPIGatewayMCPServerAuth请求参数结构体
@@ -4050,19 +4376,119 @@ export interface ModifyCloudNativeAPIGatewayLLMModelAPIRequest {
4050
4376
  * <p>日志输出配置。需要网关版本 ≥ 3.9.4。</p>
4051
4377
  */
4052
4378
  LogConfig?: AIGWLogConfig;
4379
+ /**
4380
+ * <p>AI 网关Rerank场景最大文档数限制配置</p>
4381
+ */
4382
+ MaxDocumentsConfig?: AIGWRerankMaxDocumentsConfig;
4383
+ /**
4384
+ * <p>敏感词路由配置</p>
4385
+ */
4386
+ SensitiveWordRoute?: AIGWSensitiveWordRoute;
4053
4387
  }
4054
4388
  /**
4055
- * CreateCloudNativeAPIGatewaySecretKey返回参数结构体
4389
+ * CAM类型密钥
4056
4390
  */
4057
- export interface CreateCloudNativeAPIGatewaySecretKeyResponse {
4391
+ export interface AIGWCAMCredentialConfig {
4058
4392
  /**
4059
- * <p>创建结果。包含成功标识与新建资源 ID。</p>
4393
+ * <p>SecretId</p>
4060
4394
  */
4061
- Result?: CNAPIGwCreateCommonResult;
4395
+ SecretId?: string;
4062
4396
  /**
4063
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4397
+ * <p>SecretKey</p>
4064
4398
  */
4065
- RequestId?: string;
4399
+ SecretKey?: string;
4400
+ }
4401
+ /**
4402
+ * MCP Server详情
4403
+ */
4404
+ export interface AIGWMCPServer {
4405
+ /**
4406
+ * <p>MCP Server ID</p>
4407
+ */
4408
+ ServerId: string;
4409
+ /**
4410
+ * <p>MCP Server名称</p>
4411
+ */
4412
+ Name: string;
4413
+ /**
4414
+ * <p>MCP Server类型,取值:MCP/Rest2MCP</p>
4415
+ */
4416
+ ServerType: string;
4417
+ /**
4418
+ * <p>协议类型,取值: StreamableHttp</p>
4419
+ */
4420
+ Transport: string;
4421
+ /**
4422
+ * <p>服务类型:</p><ul><li>Registry </li><li>HostIP</li></ul>
4423
+ */
4424
+ UpstreamType: string;
4425
+ /**
4426
+ * <p>展示名字</p>
4427
+ */
4428
+ DisplayName?: string;
4429
+ /**
4430
+ * <p>MCP提供给客户端的Endpoint</p>
4431
+ */
4432
+ MCPEndpoint?: string;
4433
+ /**
4434
+ * <p>注册中心来源信息</p>
4435
+ 注意:此字段可能返回 null,表示取不到有效值。
4436
+ */
4437
+ UpstreamInfo?: AIGWMCPUpstreamInfoDetail;
4438
+ /**
4439
+ * <p>会话配置</p>
4440
+ 注意:此字段可能返回 null,表示取不到有效值。
4441
+ */
4442
+ SessionConfig?: AIGWMCPSessionConfig;
4443
+ /**
4444
+ * <p>超时时间,单位ms</p>
4445
+ */
4446
+ Timeout?: number;
4447
+ /**
4448
+ * <p>失败重试次数</p>
4449
+ */
4450
+ RetryCount?: number;
4451
+ /**
4452
+ * <p>创建时间</p>
4453
+ */
4454
+ CreateTime?: string;
4455
+ /**
4456
+ * <p>更新时间</p>
4457
+ */
4458
+ UpdateTime?: string;
4459
+ /**
4460
+ * <p>描述</p>
4461
+ */
4462
+ Description?: string;
4463
+ /**
4464
+ * <p>运行状态</p><p>枚举值:</p><ul><li>Online: 在线</li><li>Offline: 离线</li><li>Error: 错误</li></ul>
4465
+ */
4466
+ Status?: string;
4467
+ /**
4468
+ * <p>是否启用健康检查</p>
4469
+ */
4470
+ EnableHealthCheck?: boolean;
4471
+ /**
4472
+ * <p>健康检查配置</p>
4473
+ 注意:此字段可能返回 null,表示取不到有效值。
4474
+ */
4475
+ HealthCheck?: AIGWHealthCheckSetting;
4476
+ /**
4477
+ * <p>Tool分组内工具数量限制</p>
4478
+ */
4479
+ ToolCountLimit?: number;
4480
+ /**
4481
+ * <p>Tool分组内工具命名冲突策略</p><p>枚举值:</p><ul><li>AutoPrefix: 自动前缀</li><li>Reject: 拒绝</li></ul>
4482
+ */
4483
+ ConflictStrategy?: string;
4484
+ /**
4485
+ * <p>MCP 市场发布状态</p><p>枚举值:</p><ul><li>None: 未发布</li><li>Published: 已发布</li></ul>
4486
+ */
4487
+ MarketStatus?: string;
4488
+ /**
4489
+ * <p>是否开启保留原Host功能</p>
4490
+ */
4491
+ PreserveHost?: boolean;
4066
4492
  }
4067
4493
  /**
4068
4494
  * DescribeCloudNativeAPIGatewayLLMTokenUsageList返回参数结构体