bailian-cli-core 1.15.1 → 1.17.0

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/dist/index.d.mts CHANGED
@@ -283,6 +283,8 @@ interface DashScopeVideoRequest {
283
283
  prompt: string;
284
284
  negative_prompt?: string;
285
285
  img_url?: string;
286
+ first_frame_url?: string;
287
+ last_frame_url?: string;
286
288
  media?: Array<{
287
289
  type: "image" | "video" | "first_frame" | "last_frame" | "driving_audio" | "first_clip";
288
290
  url: string;
@@ -496,11 +498,9 @@ interface DashScopeKnowledgeRetrieveResponse {
496
498
  interface KnowledgeSearchRequest {
497
499
  query: string;
498
500
  agent_id: string;
501
+ /** "beta" targets the debug draft; a numeric version targets that published version; defaults to the latest published version */
502
+ agent_version?: string;
499
503
  images?: string[];
500
- query_history?: Array<{
501
- role: "user" | "assistant";
502
- content: string;
503
- }>;
504
504
  }
505
505
  interface KnowledgeSearchResponse {
506
506
  code: string;
@@ -548,7 +548,8 @@ interface KnowledgeChatRequest {
548
548
  };
549
549
  parameters: {
550
550
  agent_options: {
551
- agent_id: string;
551
+ agent_id: string; /** "beta" targets the debug draft; a numeric version targets that published version; defaults to the latest published version */
552
+ agent_version?: string;
552
553
  user?: {
553
554
  user_id?: string;
554
555
  workspace_id?: string;
@@ -698,6 +699,326 @@ interface DashScopeTaskResponse {
698
699
  request_id: string;
699
700
  }
700
701
  //#endregion
702
+ //#region src/types/knowledge-admin.d.ts
703
+ /** Common response envelope for the indices domain (top-level fields are snake_case) */
704
+ interface RagResponse<T> {
705
+ code?: string;
706
+ message?: string;
707
+ status_code?: number;
708
+ request_id?: string;
709
+ data: T;
710
+ [key: string]: unknown;
711
+ }
712
+ /** GET index/list row (fields inside rows are camelCase as-is; full config field set) */
713
+ interface RagIndexRow {
714
+ id: string;
715
+ name: string;
716
+ description?: string;
717
+ dataType?: string;
718
+ embeddingModelName?: string;
719
+ embeddingDimension?: number;
720
+ chunkSize?: number;
721
+ overlapSize?: number;
722
+ chunkMode?: string;
723
+ separator?: string;
724
+ rerankModelName?: string;
725
+ rerankMinScore?: number;
726
+ rerankTopN?: number;
727
+ rerankMode?: string;
728
+ enableRewrite?: boolean;
729
+ denseSimilarityTopK?: number;
730
+ sparseSimilarityTopK?: number;
731
+ sourceType?: string;
732
+ connectorId?: string;
733
+ [key: string]: unknown;
734
+ }
735
+ interface RagIndexListData {
736
+ rows?: RagIndexRow[];
737
+ total?: number;
738
+ [key: string]: unknown;
739
+ }
740
+ type RagIndexListResponse = RagResponse<RagIndexListData>;
741
+ /** GET index/files document row */
742
+ interface RagIndexFileRow {
743
+ doc_id?: string;
744
+ doc_name?: string;
745
+ doc_type?: string;
746
+ status?: string;
747
+ size?: number | string;
748
+ ingestion_id?: string;
749
+ [key: string]: unknown;
750
+ }
751
+ interface RagIndexFilesData {
752
+ rows?: RagIndexFileRow[];
753
+ total_count?: number;
754
+ [key: string]: unknown;
755
+ }
756
+ type RagIndexFilesResponse = RagResponse<RagIndexFilesData>;
757
+ /**
758
+ * GET index_job/status (verified against the live API)
759
+ * Gotcha: the overall job state lives in `ingestion_status` (PENDING/RUNNING/COMPLETED,
760
+ * no FAILED value); the per-document list is `rows[]` (not docs[]), and failures
761
+ * surface via `rows[].code` (e.g. PARSE_FAILED).
762
+ */
763
+ interface RagIndexJobDoc {
764
+ doc_id?: string;
765
+ doc_name?: string;
766
+ doc_type?: string;
767
+ /** Fine-grained processing status code: FINISH / PARSE_FAILED / ... */
768
+ code?: string;
769
+ status?: string;
770
+ message?: string;
771
+ size?: number | string;
772
+ ingestion_id?: string;
773
+ [key: string]: unknown;
774
+ }
775
+ interface RagIndexJobStatusData {
776
+ /** Overall job state: PENDING / RUNNING / COMPLETED */
777
+ ingestion_status?: string;
778
+ ingestion_message?: string;
779
+ rows?: RagIndexJobDoc[];
780
+ total_count?: number;
781
+ [key: string]: unknown;
782
+ }
783
+ type RagIndexJobStatusResponse = RagResponse<RagIndexJobStatusData>;
784
+ /** Common response envelope for the connector domain (top-level requestId is camelCase — unlike the indices domain) */
785
+ interface RagConnectorResponse<T> {
786
+ code?: string;
787
+ message?: string;
788
+ requestId?: string;
789
+ success?: boolean;
790
+ status?: number | string;
791
+ data: T;
792
+ [key: string]: unknown;
793
+ }
794
+ /** POST applyFileUploadLease */
795
+ interface RagUploadLeaseParam {
796
+ url?: string;
797
+ method?: string;
798
+ headers?: Record<string, string>;
799
+ [key: string]: unknown;
800
+ }
801
+ interface RagUploadLeaseData {
802
+ type?: string;
803
+ leaseId?: string;
804
+ param?: RagUploadLeaseParam;
805
+ [key: string]: unknown;
806
+ }
807
+ type RagUploadLeaseResponse = RagConnectorResponse<RagUploadLeaseData>;
808
+ /** POST addFile */
809
+ interface RagAddFileData {
810
+ fileId?: string;
811
+ parser?: string;
812
+ [key: string]: unknown;
813
+ }
814
+ type RagAddFileResponse = RagConnectorResponse<RagAddFileData>;
815
+ /** POST listCategory */
816
+ interface RagCategory {
817
+ categoryId?: string;
818
+ categoryName?: string;
819
+ isDefault?: boolean;
820
+ [key: string]: unknown;
821
+ }
822
+ interface RagListCategoryData {
823
+ categoryList?: RagCategory[];
824
+ nextToken?: string;
825
+ [key: string]: unknown;
826
+ }
827
+ type RagListCategoryResponse = RagConnectorResponse<RagListCategoryData>;
828
+ /** POST index/job/create (incremental import; response field names pending live verification) */
829
+ interface RagJobCreateData {
830
+ ingestionId?: string;
831
+ [key: string]: unknown;
832
+ }
833
+ type RagJobCreateResponse = RagResponse<RagJobCreateData>;
834
+ /** POST index/create_v2 */
835
+ interface RagCreateIndexV2Data {
836
+ pipelineId?: string;
837
+ ingestionId?: string;
838
+ status?: string;
839
+ [key: string]: unknown;
840
+ }
841
+ type RagCreateIndexV2Response = RagResponse<RagCreateIndexV2Data>;
842
+ /** POST index/update and index/delete — data carries no details (empty object or absent) */
843
+ type RagMutationResponse = RagResponse<Record<string, unknown> | undefined>;
844
+ /** POST index/delete_file — data.deleted lists the document IDs actually deleted */
845
+ interface RagDeleteFileData {
846
+ deleted?: string[];
847
+ [key: string]: unknown;
848
+ }
849
+ type RagDeleteFileResponse = RagResponse<RagDeleteFileData>;
850
+ /** POST batchUpdateFileTag — connector-domain envelope, data is an empty object */
851
+ type RagBatchUpdateTagResponse = RagConnectorResponse<Record<string, unknown> | undefined>;
852
+ /** agent_config — chat and search scenes carry different field sets; modeled loosely as one type */
853
+ interface RagAgentConfig {
854
+ agent_policy?: string;
855
+ agent_model?: string;
856
+ enable_session_file?: string;
857
+ enable_refusal?: string;
858
+ enable_anti_leak?: string;
859
+ enable_rich_text?: string;
860
+ enable_citation?: string;
861
+ temperature?: number;
862
+ max_num_llm_calls?: number;
863
+ max_completion_tokens?: number;
864
+ session_file_max_parse_length?: number;
865
+ enable_kb_router?: string;
866
+ kb_router_model?: string;
867
+ rerank_top_n?: number;
868
+ hybrid_rerank?: Record<string, unknown>;
869
+ kb_search_configs?: Array<Record<string, unknown>>;
870
+ [key: string]: unknown;
871
+ }
872
+ /** agent/list row */
873
+ interface RagAgentRow {
874
+ agent_id?: string;
875
+ agent_name?: string;
876
+ agent_scene?: string;
877
+ agent_status?: string;
878
+ agent_version?: string;
879
+ create_time?: string | number;
880
+ modify_time?: string | number;
881
+ pipeline_list?: Array<{
882
+ pipeline_id?: string;
883
+ pipeline_name?: string;
884
+ }>;
885
+ [key: string]: unknown;
886
+ }
887
+ interface RagAgentListData {
888
+ page_number?: number;
889
+ page_size?: number;
890
+ total_count?: number;
891
+ rows?: RagAgentRow[];
892
+ [key: string]: unknown;
893
+ }
894
+ type RagAgentListResponse = RagResponse<RagAgentListData>;
895
+ /** agent/get per-version detail */
896
+ interface RagAgentDetail {
897
+ agent_version?: string;
898
+ agent_version_desc?: string | null;
899
+ publish_time?: string | number;
900
+ agent_config?: RagAgentConfig;
901
+ [key: string]: unknown;
902
+ }
903
+ interface RagAgentGetData {
904
+ agent_id?: string;
905
+ agent_name?: string;
906
+ agent_desc?: string;
907
+ agent_scene?: string;
908
+ agent_status?: string;
909
+ create_time?: string | number;
910
+ modify_time?: string | number;
911
+ agent_details?: RagAgentDetail[];
912
+ [key: string]: unknown;
913
+ }
914
+ type RagAgentGetResponse = RagResponse<RagAgentGetData>;
915
+ /** agent/create · update · deploy · delete · copy — union of the data field sets */
916
+ interface RagAgentMutationData {
917
+ agent_id?: string;
918
+ agent_name?: string;
919
+ agent_version?: string;
920
+ agent_status?: string;
921
+ [key: string]: unknown;
922
+ }
923
+ type RagAgentMutationResponse = RagResponse<RagAgentMutationData>;
924
+ /** POST index/chunklist — nodes[].metadata carries the chunk payload */
925
+ interface RagChunkNodeMetadata {
926
+ _id?: string;
927
+ doc_id?: string;
928
+ doc_name?: string;
929
+ title?: string;
930
+ content?: string;
931
+ hier_title?: string;
932
+ is_displayed_chunk_content?: boolean;
933
+ _chunk_status_message?: string;
934
+ [key: string]: unknown;
935
+ }
936
+ interface RagChunkNode {
937
+ score?: number;
938
+ text?: string;
939
+ metadata?: RagChunkNodeMetadata;
940
+ [key: string]: unknown;
941
+ }
942
+ interface RagChunkListData {
943
+ total?: number;
944
+ nodes?: RagChunkNode[];
945
+ [key: string]: unknown;
946
+ }
947
+ type RagChunkListResponse = RagResponse<RagChunkListData>;
948
+ /** POST index/monitor — timestamps are second-precision strings.
949
+ * Shape verified against the live API: both monitor fields are objects,
950
+ * not arrays as the public docs' empty-array examples suggest. */
951
+ interface RagStorageMonitorData {
952
+ indexStorageLimit?: number;
953
+ indexStorageUsage?: number;
954
+ [key: string]: unknown;
955
+ }
956
+ interface RagQpsMonitorData {
957
+ peakQps?: number;
958
+ monitorData?: Array<Record<string, unknown>>;
959
+ [key: string]: unknown;
960
+ }
961
+ interface RagMonitorData {
962
+ pipelineCommercialType?: string;
963
+ storageMonitorData?: RagStorageMonitorData;
964
+ qpsMonitorData?: RagQpsMonitorData;
965
+ [key: string]: unknown;
966
+ }
967
+ type RagMonitorResponse = RagResponse<RagMonitorData>;
968
+ /** POST addCategory */
969
+ interface RagAddCategoryData {
970
+ categoryId?: string;
971
+ [key: string]: unknown;
972
+ }
973
+ type RagAddCategoryResponse = RagConnectorResponse<RagAddCategoryData>;
974
+ /** POST listFile / describeFile — field names verified against the live API:
975
+ * sizeBytes/uploadTime/category (not sizeInBytes/createTime/categoryId as the public docs state) */
976
+ interface RagDataCenterFile {
977
+ fileId?: string;
978
+ fileName?: string;
979
+ fileType?: string;
980
+ parser?: string;
981
+ sizeBytes?: number | string;
982
+ md5?: string;
983
+ status?: string;
984
+ tags?: string[] | string;
985
+ category?: string;
986
+ uploadTime?: string;
987
+ parseErrorMessage?: string;
988
+ [key: string]: unknown;
989
+ }
990
+ interface RagListFileData {
991
+ fileList?: RagDataCenterFile[];
992
+ nextToken?: string;
993
+ hasNext?: boolean;
994
+ [key: string]: unknown;
995
+ }
996
+ type RagListFileResponse = RagConnectorResponse<RagListFileData>;
997
+ type RagDescribeFileResponse = RagConnectorResponse<RagDataCenterFile>;
998
+ /** POST addConnector response / getConnector response — server does NOT echo fileConnectorConfig (live-verified) */
999
+ interface RagConnectorInfo {
1000
+ connectorId?: string;
1001
+ connectorName?: string;
1002
+ description?: string;
1003
+ connectorType?: string;
1004
+ [key: string]: unknown;
1005
+ }
1006
+ type RagAddConnectorResponse = RagConnectorResponse<RagConnectorInfo>;
1007
+ type RagGetConnectorResponse = RagConnectorResponse<RagConnectorInfo>;
1008
+ /** POST addFilesFromAuthorizedOss — live shape is addFileResultList (the docs' fileIds is not returned) */
1009
+ interface RagOssImportFileResult {
1010
+ fileId?: string;
1011
+ ossKey?: string;
1012
+ status?: string;
1013
+ msg?: string;
1014
+ [key: string]: unknown;
1015
+ }
1016
+ interface RagOssImportData {
1017
+ addFileResultList?: RagOssImportFileResult[];
1018
+ [key: string]: unknown;
1019
+ }
1020
+ type RagOssImportResponse = RagConnectorResponse<RagOssImportData>;
1021
+ //#endregion
701
1022
  //#region src/config/schema.d.ts
702
1023
  declare const REGIONS: {
703
1024
  readonly cn: "https://dashscope.aliyuncs.com";
@@ -711,7 +1032,11 @@ declare const DOCS_HOSTS: {
711
1032
  };
712
1033
  declare const BAILIAN_HOST = "https://bailian.cn-beijing.aliyuncs.com";
713
1034
  type Region = keyof typeof REGIONS;
1035
+ declare const SUPPORTED_LANGUAGES: readonly ["en-US", "zh-CN"];
1036
+ type Language = (typeof SUPPORTED_LANGUAGES)[number];
1037
+ declare const DEFAULT_LANGUAGE: Language;
714
1038
  interface ConfigFile {
1039
+ language?: Language;
715
1040
  api_key?: string;
716
1041
  /** OAuth-style token from `bl auth login --console` callback; sent as `Authorization: Bearer …` */
717
1042
  access_token?: string;
@@ -738,7 +1063,7 @@ interface ConfigFile {
738
1063
  console_switch_agent?: number;
739
1064
  telemetry?: boolean;
740
1065
  }
741
- declare const CONFIG_FILE_KEYS: readonly ["api_key", "access_token", "access_key_id", "access_key_secret", "security_token", "base_url", "output", "output_dir", "timeout", "default_text_model", "default_video_model", "default_image_to_video_model", "default_reference_to_video_model", "default_image_model", "default_speech_model", "default_omni_model", "workspace_id", "console_site", "console_region", "console_switch_agent", "telemetry"];
1066
+ declare const CONFIG_FILE_KEYS: readonly ["language", "api_key", "access_token", "access_key_id", "access_key_secret", "security_token", "base_url", "output", "output_dir", "timeout", "default_text_model", "default_video_model", "default_image_to_video_model", "default_reference_to_video_model", "default_image_model", "default_speech_model", "default_omni_model", "workspace_id", "console_site", "console_region", "console_switch_agent", "telemetry"];
742
1067
  declare function parseConfigFile(raw: unknown): ConfigFile;
743
1068
  /** 静态产品身份,createCli 注入一次(bl/rag 各异,故注入而非模块常量)。 */
744
1069
  interface Identity {
@@ -1098,15 +1423,19 @@ interface CommandPackManager {
1098
1423
  }
1099
1424
  //#endregion
1100
1425
  //#region src/types/command.d.ts
1426
+ type LocalizedText = string | {
1427
+ readonly "en-US": string;
1428
+ readonly "zh-CN": string;
1429
+ };
1101
1430
  /** A presence flag: `--quiet`. No value; absent → false. */
1102
1431
  interface SwitchFlag {
1103
1432
  type: "switch";
1104
- description: string;
1433
+ description: LocalizedText;
1105
1434
  }
1106
1435
  /** A value flag: `--prompt <text>`, `--n <count>`, `--watermark true|false`. */
1107
1436
  interface ValueFlag {
1108
1437
  type: "string" | "number" | "boolean" | "array";
1109
- description: string;
1438
+ description: LocalizedText;
1110
1439
  valueHint: string;
1111
1440
  required?: boolean;
1112
1441
  /**
@@ -1144,37 +1473,61 @@ declare const GLOBAL_FLAGS: {
1144
1473
  output: {
1145
1474
  type: "string";
1146
1475
  valueHint: string;
1147
- description: string;
1476
+ description: {
1477
+ "en-US": string;
1478
+ "zh-CN": string;
1479
+ };
1148
1480
  };
1149
1481
  timeout: {
1150
1482
  type: "number";
1151
1483
  valueHint: string;
1152
- description: string;
1484
+ description: {
1485
+ "en-US": string;
1486
+ "zh-CN": string;
1487
+ };
1153
1488
  };
1154
1489
  quiet: {
1155
1490
  type: "switch";
1156
- description: string;
1491
+ description: {
1492
+ "en-US": string;
1493
+ "zh-CN": string;
1494
+ };
1157
1495
  };
1158
1496
  verbose: {
1159
1497
  type: "switch";
1160
- description: string;
1498
+ description: {
1499
+ "en-US": string;
1500
+ "zh-CN": string;
1501
+ };
1161
1502
  };
1162
1503
  dryRun: {
1163
1504
  type: "switch";
1164
- description: string;
1505
+ description: {
1506
+ "en-US": string;
1507
+ "zh-CN": string;
1508
+ };
1165
1509
  };
1166
1510
  config: {
1167
1511
  type: "string";
1168
1512
  valueHint: string;
1169
- description: string;
1513
+ description: {
1514
+ "en-US": string;
1515
+ "zh-CN": string;
1516
+ };
1170
1517
  };
1171
1518
  help: {
1172
1519
  type: "switch";
1173
- description: string;
1520
+ description: {
1521
+ "en-US": string;
1522
+ "zh-CN": string;
1523
+ };
1174
1524
  };
1175
1525
  version: {
1176
1526
  type: "switch";
1177
- description: string;
1527
+ description: {
1528
+ "en-US": string;
1529
+ "zh-CN": string;
1530
+ };
1178
1531
  };
1179
1532
  };
1180
1533
  /** Command-scoped flag for commands that support parallel API calls. */
@@ -1182,14 +1535,20 @@ declare const CONCURRENT_FLAG: {
1182
1535
  concurrent: {
1183
1536
  type: "number";
1184
1537
  valueHint: string;
1185
- description: string;
1538
+ description: {
1539
+ "en-US": string;
1540
+ "zh-CN": string;
1541
+ };
1186
1542
  };
1187
1543
  };
1188
1544
  /** Command-scoped flag for task-based commands that can return without polling. */
1189
1545
  declare const ASYNC_FLAG: {
1190
1546
  async: {
1191
1547
  type: "switch";
1192
- description: string;
1548
+ description: {
1549
+ "en-US": string;
1550
+ "zh-CN": string;
1551
+ };
1193
1552
  };
1194
1553
  };
1195
1554
  /** Model 域凭证/连接 flag,`auth: "apiKey"` 命令可见。 */
@@ -1197,12 +1556,18 @@ declare const MODEL_AUTH_FLAGS: {
1197
1556
  apiKey: {
1198
1557
  type: "string";
1199
1558
  valueHint: string;
1200
- description: string;
1559
+ description: {
1560
+ "en-US": string;
1561
+ "zh-CN": string;
1562
+ };
1201
1563
  };
1202
1564
  baseUrl: {
1203
1565
  type: "string";
1204
1566
  valueHint: string;
1205
- description: string;
1567
+ description: {
1568
+ "en-US": string;
1569
+ "zh-CN": string;
1570
+ };
1206
1571
  };
1207
1572
  };
1208
1573
  /** Console 域目标/作用域 flag,`auth: "console"` 命令可见。 */
@@ -1210,22 +1575,34 @@ declare const CONSOLE_AUTH_FLAGS: {
1210
1575
  consoleRegion: {
1211
1576
  type: "string";
1212
1577
  valueHint: string;
1213
- description: string;
1578
+ description: {
1579
+ "en-US": string;
1580
+ "zh-CN": string;
1581
+ };
1214
1582
  };
1215
1583
  consoleSite: {
1216
1584
  type: "string";
1217
1585
  valueHint: string;
1218
- description: string;
1586
+ description: {
1587
+ "en-US": string;
1588
+ "zh-CN": string;
1589
+ };
1219
1590
  };
1220
1591
  consoleSwitchAgent: {
1221
1592
  type: "number";
1222
1593
  valueHint: string;
1223
- description: string;
1594
+ description: {
1595
+ "en-US": string;
1596
+ "zh-CN": string;
1597
+ };
1224
1598
  };
1225
1599
  workspaceId: {
1226
1600
  type: "string";
1227
1601
  valueHint: string;
1228
- description: string;
1602
+ description: {
1603
+ "en-US": string;
1604
+ "zh-CN": string;
1605
+ };
1229
1606
  };
1230
1607
  };
1231
1608
  /** Alibaba Cloud OpenAPI AK/SK credential flags, visible to `auth: "openapi"` commands. */
@@ -1233,17 +1610,26 @@ declare const OPENAPI_AUTH_FLAGS: {
1233
1610
  accessKeyId: {
1234
1611
  type: "string";
1235
1612
  valueHint: string;
1236
- description: string;
1613
+ description: {
1614
+ "en-US": string;
1615
+ "zh-CN": string;
1616
+ };
1237
1617
  };
1238
1618
  accessKeySecret: {
1239
1619
  type: "string";
1240
1620
  valueHint: string;
1241
- description: string;
1621
+ description: {
1622
+ "en-US": string;
1623
+ "zh-CN": string;
1624
+ };
1242
1625
  };
1243
1626
  securityToken: {
1244
1627
  type: "string";
1245
1628
  valueHint: string;
1246
- description: string;
1629
+ description: {
1630
+ "en-US": string;
1631
+ "zh-CN": string;
1632
+ };
1247
1633
  };
1248
1634
  };
1249
1635
  /** sources 里可能出现的全部 flag(全局 + 凭证域)。 */
@@ -1280,14 +1666,15 @@ interface CommandContext<F extends FlagsDef = FlagsDef> {
1280
1666
  * {@link AnyCommand}; the precise typing lives at the `defineCommand` call site.
1281
1667
  */
1282
1668
  interface Command<F extends FlagsDef = FlagsDef> {
1283
- description: string;
1669
+ description: LocalizedText;
1284
1670
  /** Credential this command requires. See {@link AuthRequirement}. */
1285
1671
  auth: AuthRequirement;
1286
1672
  /** Usage line arg portion, e.g. "--prompt <text> [flags]". Manually written. */
1287
1673
  usageArgs?: string;
1288
- /** Example arg strings (without the `<bin> <path>` prefix). */
1289
- exampleArgs?: string[];
1290
- notes?: string[];
1674
+ /** Example args (without the `<bin> <path>` prefix). */
1675
+ exampleArgs?: LocalizedText[];
1676
+ /** Additional help paragraphs rendered below flags. */
1677
+ notes?: LocalizedText[];
1291
1678
  flags?: F;
1292
1679
  /**
1293
1680
  * Cross-flag validation, after parsing and before run. Return an error message
@@ -1399,6 +1786,8 @@ declare function imageText2ImagePath(): string;
1399
1786
  /** Legacy async image-to-image / edit API (wan2.5-i2i, *imageedit*). */
1400
1787
  declare function image2ImagePath(): string;
1401
1788
  declare function videoGeneratePath(): string;
1789
+ /** POST /api/v1/services/aigc/image2video/video-synthesis — kf2v (first+last frame). */
1790
+ declare function image2videoPath(): string;
1402
1791
  declare function taskPath(taskId: string): string;
1403
1792
  declare function modelsLimitsPath(): string;
1404
1793
  declare function modelsPermissionsPath(): string;
@@ -1415,6 +1804,41 @@ declare function knowledgeRetrievePath(): string;
1415
1804
  declare function knowledgeSearchEndpoint(workspaceId: string): string;
1416
1805
  declare function knowledgeChatEndpoint(workspaceId: string): string;
1417
1806
  declare function mcpWebSearchPath(): string;
1807
+ declare function ragEndpoint(workspaceId: string, path: string): string;
1808
+ declare const RAG_PATHS: {
1809
+ readonly indexList: "/api/v1/indices/rag/index/list";
1810
+ readonly indexCreateV2: "/api/v1/indices/rag/index/create_v2";
1811
+ readonly indexUpdate: "/api/v1/indices/rag/index/update";
1812
+ readonly indexDelete: "/api/v1/indices/rag/index/delete";
1813
+ readonly indexMonitor: "/api/v1/indices/rag/index/monitor";
1814
+ readonly indexFiles: "/api/v1/indices/rag/index/files";
1815
+ readonly indexDeleteFile: "/api/v1/indices/rag/index/delete_file";
1816
+ readonly indexJobCreate: "/api/v1/indices/rag/index/job/create";
1817
+ readonly indexJobStatus: "/api/v1/indices/rag/index_job/status";
1818
+ readonly chunkList: "/api/v1/indices/rag/index/chunklist";
1819
+ readonly chunkCreate: "/api/v1/indices/rag/index/chunk/create";
1820
+ readonly chunkUpdate: "/api/v1/indices/rag/index/chunk/update";
1821
+ readonly chunkDelete: "/api/v1/indices/rag/index/chunk/delete";
1822
+ readonly agentList: "/api/v1/indices/rag/app/list";
1823
+ readonly agentGet: "/api/v1/indices/rag/app/get";
1824
+ readonly agentCreate: "/api/v1/indices/rag/app/create";
1825
+ readonly agentUpdate: "/api/v1/indices/rag/app/update";
1826
+ readonly agentDeploy: "/api/v1/indices/rag/app/deploy";
1827
+ readonly agentDelete: "/api/v1/indices/rag/app/delete";
1828
+ readonly agentCopy: "/api/v1/indices/rag/app/copy";
1829
+ readonly applyFileUploadLease: "/api/v1/connector/dash/applyFileUploadLease";
1830
+ readonly addFile: "/api/v1/connector/dash/addFile";
1831
+ readonly addFilesFromAuthorizedOss: "/api/v1/connector/dash/addFilesFromAuthorizedOss";
1832
+ readonly batchUpdateFileTag: "/api/v1/connector/dash/batchUpdateFileTag";
1833
+ readonly listFile: "/api/v1/connector/dash/listFile";
1834
+ readonly describeFile: "/api/v1/connector/dash/describeFile";
1835
+ readonly deleteFile: "/api/v1/connector/dash/deleteFile";
1836
+ readonly addConnector: "/api/v1/connector/dash/addConnector";
1837
+ readonly getConnector: "/api/v1/connector/dash/getConnector";
1838
+ readonly listCategory: "/api/v1/connector/dash/listCategory";
1839
+ readonly addCategory: "/api/v1/connector/dash/addCategory";
1840
+ readonly deleteCategory: "/api/v1/connector/dash/deleteCategory";
1841
+ };
1418
1842
  //#endregion
1419
1843
  //#region src/client/image-routes.d.ts
1420
1844
  /**
@@ -1562,6 +1986,8 @@ declare function collectAsrTranscriptionItems(output: {
1562
1986
  //#endregion
1563
1987
  //#region src/client/headers.d.ts
1564
1988
  declare const CHANNEL = "bailian-cli";
1989
+ /** Static source identifier advertised to the DashScope/Bailian OpenAPI gateway. */
1990
+ declare const OPEN_API_SOURCE = "BailianCLI";
1565
1991
  type TrackingIdentity = Pick<Identity, "binName" | "version">;
1566
1992
  declare function sourceConfig(identity: TrackingIdentity): string;
1567
1993
  /** Tracking headers for Bailian/DashScope API requests. */
@@ -2123,15 +2549,20 @@ declare function listSupportedFormats(): {
2123
2549
  //#endregion
2124
2550
  //#region src/dataset/validate/common.d.ts
2125
2551
  /**
2126
- * The platform caps dataset uploads at 300MB per file. `bl dataset upload`
2127
- * enforces this client-side so users learn early. Update if the platform
2128
- * raises the cap or differentiates per-purpose limits.
2552
+ * The platform caps SFT/DPO text dataset uploads at 200MB per file.
2553
+ * `bl dataset upload` enforces this client-side so users learn early.
2554
+ * CPT uses 300MB (see MAX_CPT_BYTES); API general upload is also 300MB.
2129
2555
  */
2130
2556
  declare const MAX_DATASET_BYTES: number;
2131
2557
  /**
2132
- * Image / video ZIP size cap — 1 GB per the platform docs (vs 300 MB for
2133
- * text / audio). Used by `bl dataset upload` for media schemas and by the
2134
- * `sft-lora` training profile for image / video validation.
2558
+ * CPT text dataset size cap — 300 MB per the platform docs.
2559
+ * CPT requires at least 50M tokens; larger files are expected.
2560
+ */
2561
+ declare const MAX_CPT_BYTES: number;
2562
+ /**
2563
+ * Image / video ZIP size cap — 2 GB per the platform docs. Used by
2564
+ * `bl dataset upload` for media schemas and by the `sft-lora` training
2565
+ * profile for image / video validation.
2135
2566
  */
2136
2567
  declare const MAX_MEDIA_ZIP_BYTES: number;
2137
2568
  /**
@@ -2351,6 +2782,8 @@ interface ListFineTunesParams {
2351
2782
  pageNo?: number;
2352
2783
  pageSize?: number;
2353
2784
  status?: string;
2785
+ /** Filter by base model ID (server-side). */
2786
+ model?: string;
2354
2787
  signal?: AbortSignal;
2355
2788
  }
2356
2789
  /** GET /api/v1/fine-tunes */
@@ -2523,6 +2956,48 @@ declare function getProfile(clientTrainingType: string): TrainingProfile;
2523
2956
  /** All registered CLI training-type names (for help text / whitelisting). */
2524
2957
  declare function listTrainingTypes(): string[];
2525
2958
  //#endregion
2959
+ //#region src/finetune/price.d.ts
2960
+ declare const TRAINING_MODEL_PRICE_API = "zeldaEasy.broadscope-platform.modelCenter.getModelPrice";
2961
+ declare const CALC_DATASETS_TOKENS_API = "zeldaEasy.broadscope-platform.modelInstance.calculateDatasetsTotalTokens";
2962
+ declare const ESTIMATE_FINETUNE_TOKENS_API = "zeldaEasy.broadscope-platform.modelInstance.estimateFinetuneTokens";
2963
+ interface TrainingModelPrice {
2964
+ price?: string;
2965
+ priceUnit?: string;
2966
+ modelId?: string;
2967
+ [key: string]: unknown;
2968
+ }
2969
+ interface TokenEstimate {
2970
+ estimatedDatasetConsumedTokensMinPerEpoch?: number;
2971
+ estimatedDatasetConsumedTokensMaxPerEpoch?: number;
2972
+ estimatedMixedConsumedTokensMinPerEpoch?: number;
2973
+ estimatedMixedConsumedTokensMaxPerEpoch?: number;
2974
+ [key: string]: unknown;
2975
+ }
2976
+ /**
2977
+ * Training unit price for a model. `price` is denominated in `priceUnit`
2978
+ * (typically "千Token" — yuan per 1000 tokens).
2979
+ */
2980
+ declare function fetchTrainingModelPrice(client: Client, modelId: string): Promise<TrainingModelPrice>;
2981
+ /**
2982
+ * Estimate training tokens for SFT / DPO jobs.
2983
+ * Returns a per-epoch min/max range; multiply by `n_epochs` for the total.
2984
+ */
2985
+ declare function estimateSftDpoTokens(client: Client, datasetIds: string[], hyperParams: {
2986
+ nEpochs: number;
2987
+ batchSize: number;
2988
+ maxLength: number;
2989
+ }): Promise<TokenEstimate>;
2990
+ /**
2991
+ * Estimate training tokens for CPT jobs.
2992
+ *
2993
+ * The console API requires `hyperParams` as a **JSON string** with a full
2994
+ * `userDefinedObj` payload (captured from the console frontend), plus several
2995
+ * top-level fields (`algorithmType`, `bizType`, `priority`, …). Only
2996
+ * `n_epochs` / `max_length` materially affect the estimate; the remaining
2997
+ * hyper-parameters are fixed defaults.
2998
+ */
2999
+ declare function estimateCptTokens(client: Client, model: string, datasetIdsCsv: string, nEpochs: number): Promise<TokenEstimate>;
3000
+ //#endregion
2526
3001
  //#region src/deploy/types.d.ts
2527
3002
  /**
2528
3003
  * Model-deployment API types.
@@ -2905,6 +3380,36 @@ declare const STRATEGIES: Record<string, PlanStrategy>;
2905
3380
  /** Throws USAGE if `plan` is not in the strategy table. */
2906
3381
  declare function pickPlanStrategy(plan: string): PlanStrategy;
2907
3382
  //#endregion
3383
+ //#region src/deploy/lifecycle.d.ts
3384
+ declare const DEPLOY_START_API = "zeldaEasy.broadscope-platform.modelInstance.startModelService";
3385
+ declare const DEPLOY_STOP_API = "zeldaEasy.broadscope-platform.modelInstance.stopModelService";
3386
+ declare const DEPLOY_LIST_INDEPENDENT_API = "zeldaEasy.broadscope-platform.modelInstance.listIndependentDeployedModel";
3387
+ interface ModelServiceEntry {
3388
+ modelServiceId?: string;
3389
+ deployedModel?: string;
3390
+ deployed_model?: string;
3391
+ status?: string;
3392
+ modelName?: string;
3393
+ model_name?: string;
3394
+ plan?: string;
3395
+ [key: string]: unknown;
3396
+ }
3397
+ /** Start (bring online) a stopped deployment. */
3398
+ declare function startModelService(client: Client, modelServiceId: string): Promise<Record<string, unknown>>;
3399
+ /** Stop (take offline) a running deployment. Stops billing for mu/ptu plans. */
3400
+ declare function stopModelService(client: Client, modelServiceId: string): Promise<Record<string, unknown>>;
3401
+ /**
3402
+ * List independently deployed models (console domain).
3403
+ * Used for precheck status verification and ID mapping.
3404
+ * Paginates internally to return all entries.
3405
+ */
3406
+ declare function listIndependentDeployedModels(client: Client): Promise<ModelServiceEntry[]>;
3407
+ /**
3408
+ * Find a deployment entry by its identifier in the console-domain list.
3409
+ * Matches against `modelServiceId`, `deployedModel`, or `deployed_model`.
3410
+ */
3411
+ declare function findDeploymentEntry(entries: ModelServiceEntry[], deployedModel: string): ModelServiceEntry | undefined;
3412
+ //#endregion
2908
3413
  //#region src/types/command-pack.d.ts
2909
3414
  /** Current Command Pack protocol version understood by this release. */
2910
3415
  declare const COMMAND_PACK_API_VERSION: 1;
@@ -3665,4 +4170,4 @@ declare function installSkillWithFanout(name: string, entry: SkillIndexEntry, ag
3665
4170
  declare function listSkillDirsOnDisk(): string[];
3666
4171
  declare function computeSkillStatuses(index: SkillsIndex, lock: SkillLockFile, diskNames: string[]): SkillStatusRow[];
3667
4172
  //#endregion
3668
- export { ASYNC_FLAG, AcsQueryParams, AcsSignConfig, AgentTarget, AigcConfig, AnyCommand, type ApiErrorBody, ApiKeyCredential, AppCompletionRequest, AppCompletionResponse, AppStreamChunk, AsrApiKind, AsrApiRoute, AsrFlashFamily, AuthPersistPatch, AuthRequirement, AuthState, AuthStore, BAILIAN_HOST, BILLING_METHOD, BINARY_PRODUCT_CLIENT_NAME, BailianControlAuth, BailianError, BatchSizeGateInput, BatchSizeGateResult, BillingMethod, Budget, Budgets, BuildAsrFlashRequestOpts, CHANNEL, CHARGE_TYPE, COMMAND_PACK_API_VERSION, CONCURRENT_FLAG, CONFIG_FILE_KEYS, CONSOLE_AUTH_FLAGS, CancelFineTuneResponse, Capabilities, Capability, ChargeType, ChatChoice, ChatMessage, ChatMessageContent, ChatRequest, ChatResponse, ChatResponseFormat, ChatTool, Client, ClientOpenApiJsonOpts, ClientOpenApiQueryOpts, ClientRequestOpts, Command, CommandContext, CommandPack, CommandPackApiKeyContext, CommandPackCommand, CommandPackContext, CommandPackCredentials, CommandPackErrorOptions, CommandPackErrors, CommandPackManager, CommandPackMeta, CommandPackMutationResult, CommandPackOutput, CommandPackOutputOptions, CommandPackReport, Complexities, Complexity, ConfigFile, ConfigProfiles, ConfigStore, ConnectBailianMcpOptions, ConsoleCall, ConsoleCredential, ConsoleGatewayRequest, ConsoleGatewayTarget, ConsoleSite, ContextNeed, ContextNeeds, CreateDeploymentRequest, CreateDeploymentResponse, CreateFineTuneRequest, CreateFineTuneResponse, CreatePlanFlags, CreateUserReqDTO, CredentialSource, DEFAULT_BILLING_METHOD, DEFAULT_CLI_CDN_BASE, DEFAULT_DEPLOY_PLAN, DEFAULT_INSTALL_PS1_URL, DEFAULT_INSTALL_SCRIPT_URL, DEFAULT_TRAINING_TYPE, DEPLOY_PLAN, DOCS_HOSTS, DashScopeASRRequest, DashScopeASRTaskResult, DashScopeASRTranscriptionItem, DashScopeAsyncResponse, DashScopeImageRequest, DashScopeImageSyncResponse, DashScopeKnowledgeRetrieveRequest, DashScopeKnowledgeRetrieveResponse, DashScopeTTSRequest, DashScopeTTSResponse, DashScopeTTSStreamChunk, DashScopeTaskResponse, DashScopeVideoEditRequest, DashScopeVideoRefRequest, DashScopeVideoRequest, type DataModality, DatasetDeleteResponse, DatasetFile, DatasetGetResponse, DatasetListParams, DatasetListResponse, DatasetSchema, DatasetUploadParams, DatasetUploadResponse, DeleteDeploymentResponse, DeleteFineTuneResponse, DeployModality, DeployPlan, DeployableModel, DeployableTemplate, Deployment, ExitCode, ExportCheckpointResponse, FanoutOutcome, Feature, Features, FetchImplementation, FineTuneCheckpoint, FineTuneHyperParameters, FineTuneJob, FineTuneLogEntry, FlagDef, FlagsDef, GITHUB_RELEASES_BASE, GLOBAL_FLAGS, GetDeploymentResponse, GetFineTuneLogsParams, GetFineTuneLogsResponse, GetFineTuneResponse, GetModelsOptions, HttpDeps, INSUFFICIENT_SAMPLES_CODE, Identity, ImageApiKind, ImageApiRoute, ImageInputStyle, ImageSizeProfile, InstallMethod, InstallMethodIdentity, InstalledSkill, IntentProfile, IntentSegment, KnowledgeChatContentPart, KnowledgeChatMessage, KnowledgeChatRequest, KnowledgeChatStreamChunk, KnowledgeSearchRequest, KnowledgeSearchResponse, LinkResult, ListCheckpointsResponse, ListDeployableModelsParams, ListDeployableModelsResponse, ListDeploymentsParams, ListDeploymentsResponse, ListFineTunesParams, ListFineTunesResponse, MAX_DATASET_BYTES, MAX_MEDIA_ZIP_BYTES, MODEL_AUTH_FLAGS, MODEL_LIST_API, McpClient, McpConnectedClient, McpTool, McpToolResult, MemoryAddRequest, MemoryAddResponse, MemoryMessage, MemoryNode, MemoryNodeListResponse, MemoryNodeUpdateRequest, MemorySearchRequest, MemorySearchResponse, Modalities, Modality, ModelCapability, ModelCategories, ModelCategory, ModelGroup, ModelGroupItem, ModelGroupParams, ModelGroupResult, ModelListParams, ModelListResult, ModelPreference, ModelPrice, ModelPriceInfo, ModelProfile, ModelSource, OPENAPI_AUTH_FLAGS, OpenApiCredential, OutputFormat, PREDICT_CONFIG_API, ParsedFlags, PipelineResult, PipelineStep, PlanContext, PlanResolved, PlanStrategy, PredictConfigEntry, PreferenceMode, ProfileAttribute, ProfileSchemaCreateRequest, ProfileSchemaCreateResponse, PtuCapacity, QpmLimit, QualityPreference, QualityPreferences, REGIONS, RecommendOptions, RecommendResult, RecommendedModel, Region, RequestOpts, ResolutionSources, ResponsesOutputContent, ResponsesOutputItem, ResponsesRequest, ResponsesResponse, ResponsesStreamEvent, SEMANTIC_TOP_K, STRATEGIES, ScaleDeploymentRequest, ScaleDeploymentResponse, ScoredCandidate, ServerSentEvent, Settings, SingleResult, SkillIndexEntry, SkillInstallRecord, SkillLockEntry, SkillLockFile, SkillMeta, SkillStatus, SkillStatusRow, SkillsIndex, SourceFlags, StreamChoice, StreamChunk, TRAINING_TYPES_CLI, TRAINING_TYPE_MAP, TrackingEvent, TrackingIdentity, type TrainingProfile, TrainingTypeCli, UpdateDeploymentRequest, UpdateDeploymentResponse, UsageError, UserProfileResponse, ValidateOpts, ValidationIssue, ValidationResult, ValidationSeverity, ValidationStats, ValidatorSpec, activateConfigProfile, analyzeIntent, anonymousConsoleCall, appCompletionPath, atomicSwap, bailianMcpPath, bailianMcpSsePath, binaryAssetFileName, binaryInnerFileName, buildAcsCanonicalQuery, buildAsrFlashRequest, buildAsyncAsrLanguageFields, buildDocLink, buildSettings, buildSkillLockEntry, buildSources, callConsoleGateway, cancelFineTune, channelManifestUrl, chatPath, collectAsrTranscriptionItems, computeDirContentHash, computeSkillStatuses, connectBailianMcpWithFallback, createBailianControlUser, createDeployment, createFineTune, createInstrumentedFetch, createTrackingEvent, credentialFlagDefs, defaultDeployPlan, defineCommand, deleteConfigProfile, deleteDataset, deleteDeployment, deleteFineTune, describeAuthState, detectBinaryPlatform, detectInstallMethod, detectInstalledAgents, detectModality, detectOutputFormat, downloadSkillAsset, effectiveConsoleGatewayConfig, emptySkillLock, ensureConfigDir, exportCheckpoint, extractAsrFlashText, extractTarBr, extractZipEntryToFile, fanOutSkillToAgents, fetchModelCapability, fetchModelDetail, fetchModelGroups, fetchModelList, fetchModelListAll, fetchPredictConfig, fetchSkillsIndex, findModelByName, flushTelemetry, formatErrorJson, formatIssue, formatJson, formatOutput, formatText, generateCLIAccessToken, generateFilename, getAgentTargets, getCliCdnBase, getConfigDir, getConfigPath, getCredentialsPath, getDataset, getDeployment, getFineTune, getFineTuneLogs, getInstallMethod, getModelProfilePreset, getModels, getProfile, getSkillLockPath, getSkillRegistryBaseUrl, getSkillsDir, getUpdateInstallMethod, image2ImagePath, imageFileToDataUri, imagePath, imageSyncPath, imageText2ImagePath, inferAudioFormatHint, installSkill, installSkillFromBuffer, installSkillWithFanout, isCompiledBinary, isLegacyImage2ImageModel, isLegacyText2ImageModel, isLocalFile, isSafeEntryName, isSafeSkillName, isSemanticAvailable, isStreamableHttpUnsupported, isSyncMultimodalImageModel, isTrainingTypeCli, isUrlOverrideSseFallbackCandidate, isWanxFunctionImageEditModel, knowledgeChatEndpoint, knowledgeRetrievePath, knowledgeSearchEndpoint, linkSkillToAgents, listBailianControlWorkspaces, listCheckpoints, listDatasets, listDeployableModels, listDeployments, listFineTunes, listSkillDirsOnDisk, listSupportedFormats, listSupportedTrainingTypes, listTrainingTypes, localSink, makeAuthStore, makeConfigStore, mapApiError, maskToken, maybeSyncWikiData, mcpWebSearchPath, memoryAddPath, memoryListPath, memoryNodePath, memorySearchPath, modelSupportsTrainingType, modelsLimitsPath, modelsPermissionsPath, normalizeConfigName, normalizeModelBaseUrl, parseBooleanValue, parseConfigFile, parseDatasetSchemaFlag, parseOptionalBooleanValue, parseSSE, parseSkillNames, pickPlanStrategy, pickValidator, preflightBatchSizeGate, profileSchemaPath, rankModels, readConfigFile, readConfigProfiles, readSkillLock, readTextFromPathOrStdin, recallCandidates, recallSemantic, redactDataUri, refreshAccessToken, registerValidator, releaseAssetUrl, remoteSink, removeSkillDir, request, requestJson, resetBailianControlPolicies4Agent, resolveApiKey, resolveAsrApi, resolveAssetFileName, resolveBooleanFlag, resolveConsole, resolveFileUrl, resolveImageEditApi, resolveImageGenerateApi, resolveImageSizeProfile, resolveModelBaseUrl, resolveOpenApi, resolveOutputDir, resolvePromptExtendDefault, resolveWatermark, responsesPath, runWithConcurrency, sanitizeSkillName, scaleDeployment, signAcsRequest, sourceConfig, speechRecognizePath, speechSynthesizePath, stripUndefined, taskPath, trackCommandExecution, trackingHeaders, trainingTypeMethodVariant, unlinkSkillFromAgents, unwrapResponse, updateDeployment, uploadDataset, uploadFile, upsertSkillLockEntry, userProfilePath, validateConfigProfileActivation, validateDataset, validateSkillDir, videoGeneratePath, writeConfigFile, writeInstallMethodSync, writeSkillLock };
4173
+ export { ASYNC_FLAG, AcsQueryParams, AcsSignConfig, AgentTarget, AigcConfig, AnyCommand, type ApiErrorBody, ApiKeyCredential, AppCompletionRequest, AppCompletionResponse, AppStreamChunk, AsrApiKind, AsrApiRoute, AsrFlashFamily, AuthPersistPatch, AuthRequirement, AuthState, AuthStore, BAILIAN_HOST, BILLING_METHOD, BINARY_PRODUCT_CLIENT_NAME, BailianControlAuth, BailianError, BatchSizeGateInput, BatchSizeGateResult, BillingMethod, Budget, Budgets, BuildAsrFlashRequestOpts, CALC_DATASETS_TOKENS_API, CHANNEL, CHARGE_TYPE, COMMAND_PACK_API_VERSION, CONCURRENT_FLAG, CONFIG_FILE_KEYS, CONSOLE_AUTH_FLAGS, CancelFineTuneResponse, Capabilities, Capability, ChargeType, ChatChoice, ChatMessage, ChatMessageContent, ChatRequest, ChatResponse, ChatResponseFormat, ChatTool, Client, ClientOpenApiJsonOpts, ClientOpenApiQueryOpts, ClientRequestOpts, Command, CommandContext, CommandPack, CommandPackApiKeyContext, CommandPackCommand, CommandPackContext, CommandPackCredentials, CommandPackErrorOptions, CommandPackErrors, CommandPackManager, CommandPackMeta, CommandPackMutationResult, CommandPackOutput, CommandPackOutputOptions, CommandPackReport, Complexities, Complexity, ConfigFile, ConfigProfiles, ConfigStore, ConnectBailianMcpOptions, ConsoleCall, ConsoleCredential, ConsoleGatewayRequest, ConsoleGatewayTarget, ConsoleSite, ContextNeed, ContextNeeds, CreateDeploymentRequest, CreateDeploymentResponse, CreateFineTuneRequest, CreateFineTuneResponse, CreatePlanFlags, CreateUserReqDTO, CredentialSource, DEFAULT_BILLING_METHOD, DEFAULT_CLI_CDN_BASE, DEFAULT_DEPLOY_PLAN, DEFAULT_INSTALL_PS1_URL, DEFAULT_INSTALL_SCRIPT_URL, DEFAULT_LANGUAGE, DEFAULT_TRAINING_TYPE, DEPLOY_LIST_INDEPENDENT_API, DEPLOY_PLAN, DEPLOY_START_API, DEPLOY_STOP_API, DOCS_HOSTS, DashScopeASRRequest, DashScopeASRTaskResult, DashScopeASRTranscriptionItem, DashScopeAsyncResponse, DashScopeImageRequest, DashScopeImageSyncResponse, DashScopeKnowledgeRetrieveRequest, DashScopeKnowledgeRetrieveResponse, DashScopeTTSRequest, DashScopeTTSResponse, DashScopeTTSStreamChunk, DashScopeTaskResponse, DashScopeVideoEditRequest, DashScopeVideoRefRequest, DashScopeVideoRequest, type DataModality, DatasetDeleteResponse, DatasetFile, DatasetGetResponse, DatasetListParams, DatasetListResponse, DatasetSchema, DatasetUploadParams, DatasetUploadResponse, DeleteDeploymentResponse, DeleteFineTuneResponse, DeployModality, DeployPlan, DeployableModel, DeployableTemplate, Deployment, ESTIMATE_FINETUNE_TOKENS_API, ExitCode, ExportCheckpointResponse, FanoutOutcome, Feature, Features, FetchImplementation, FineTuneCheckpoint, FineTuneHyperParameters, FineTuneJob, FineTuneLogEntry, FlagDef, FlagsDef, GITHUB_RELEASES_BASE, GLOBAL_FLAGS, GetDeploymentResponse, GetFineTuneLogsParams, GetFineTuneLogsResponse, GetFineTuneResponse, GetModelsOptions, HttpDeps, INSUFFICIENT_SAMPLES_CODE, Identity, ImageApiKind, ImageApiRoute, ImageInputStyle, ImageSizeProfile, InstallMethod, InstallMethodIdentity, InstalledSkill, IntentProfile, IntentSegment, KnowledgeChatContentPart, KnowledgeChatMessage, KnowledgeChatRequest, KnowledgeChatStreamChunk, KnowledgeSearchRequest, KnowledgeSearchResponse, Language, LinkResult, ListCheckpointsResponse, ListDeployableModelsParams, ListDeployableModelsResponse, ListDeploymentsParams, ListDeploymentsResponse, ListFineTunesParams, ListFineTunesResponse, LocalizedText, MAX_CPT_BYTES, MAX_DATASET_BYTES, MAX_MEDIA_ZIP_BYTES, MODEL_AUTH_FLAGS, MODEL_LIST_API, McpClient, McpConnectedClient, McpTool, McpToolResult, MemoryAddRequest, MemoryAddResponse, MemoryMessage, MemoryNode, MemoryNodeListResponse, MemoryNodeUpdateRequest, MemorySearchRequest, MemorySearchResponse, Modalities, Modality, ModelCapability, ModelCategories, ModelCategory, ModelGroup, ModelGroupItem, ModelGroupParams, ModelGroupResult, ModelListParams, ModelListResult, ModelPreference, ModelPrice, ModelPriceInfo, ModelProfile, ModelServiceEntry, ModelSource, OPENAPI_AUTH_FLAGS, OPEN_API_SOURCE, OpenApiCredential, OutputFormat, PREDICT_CONFIG_API, ParsedFlags, PipelineResult, PipelineStep, PlanContext, PlanResolved, PlanStrategy, PredictConfigEntry, PreferenceMode, ProfileAttribute, ProfileSchemaCreateRequest, ProfileSchemaCreateResponse, PtuCapacity, QpmLimit, QualityPreference, QualityPreferences, RAG_PATHS, REGIONS, RagAddCategoryData, RagAddCategoryResponse, RagAddConnectorResponse, RagAddFileData, RagAddFileResponse, RagAgentConfig, RagAgentDetail, RagAgentGetData, RagAgentGetResponse, RagAgentListData, RagAgentListResponse, RagAgentMutationData, RagAgentMutationResponse, RagAgentRow, RagBatchUpdateTagResponse, RagCategory, RagChunkListData, RagChunkListResponse, RagChunkNode, RagChunkNodeMetadata, RagConnectorInfo, RagConnectorResponse, RagCreateIndexV2Data, RagCreateIndexV2Response, RagDataCenterFile, RagDeleteFileData, RagDeleteFileResponse, RagDescribeFileResponse, RagGetConnectorResponse, RagIndexFileRow, RagIndexFilesData, RagIndexFilesResponse, RagIndexJobDoc, RagIndexJobStatusData, RagIndexJobStatusResponse, RagIndexListData, RagIndexListResponse, RagIndexRow, RagJobCreateData, RagJobCreateResponse, RagListCategoryData, RagListCategoryResponse, RagListFileData, RagListFileResponse, RagMonitorData, RagMonitorResponse, RagMutationResponse, RagOssImportData, RagOssImportFileResult, RagOssImportResponse, RagQpsMonitorData, RagResponse, RagStorageMonitorData, RagUploadLeaseData, RagUploadLeaseParam, RagUploadLeaseResponse, RecommendOptions, RecommendResult, RecommendedModel, Region, RequestOpts, ResolutionSources, ResponsesOutputContent, ResponsesOutputItem, ResponsesRequest, ResponsesResponse, ResponsesStreamEvent, SEMANTIC_TOP_K, STRATEGIES, SUPPORTED_LANGUAGES, ScaleDeploymentRequest, ScaleDeploymentResponse, ScoredCandidate, ServerSentEvent, Settings, SingleResult, SkillIndexEntry, SkillInstallRecord, SkillLockEntry, SkillLockFile, SkillMeta, SkillStatus, SkillStatusRow, SkillsIndex, SourceFlags, StreamChoice, StreamChunk, TRAINING_MODEL_PRICE_API, TRAINING_TYPES_CLI, TRAINING_TYPE_MAP, TokenEstimate, TrackingEvent, TrackingIdentity, TrainingModelPrice, type TrainingProfile, TrainingTypeCli, UpdateDeploymentRequest, UpdateDeploymentResponse, UsageError, UserProfileResponse, ValidateOpts, ValidationIssue, ValidationResult, ValidationSeverity, ValidationStats, ValidatorSpec, activateConfigProfile, analyzeIntent, anonymousConsoleCall, appCompletionPath, atomicSwap, bailianMcpPath, bailianMcpSsePath, binaryAssetFileName, binaryInnerFileName, buildAcsCanonicalQuery, buildAsrFlashRequest, buildAsyncAsrLanguageFields, buildDocLink, buildSettings, buildSkillLockEntry, buildSources, callConsoleGateway, cancelFineTune, channelManifestUrl, chatPath, collectAsrTranscriptionItems, computeDirContentHash, computeSkillStatuses, connectBailianMcpWithFallback, createBailianControlUser, createDeployment, createFineTune, createInstrumentedFetch, createTrackingEvent, credentialFlagDefs, defaultDeployPlan, defineCommand, deleteConfigProfile, deleteDataset, deleteDeployment, deleteFineTune, describeAuthState, detectBinaryPlatform, detectInstallMethod, detectInstalledAgents, detectModality, detectOutputFormat, downloadSkillAsset, effectiveConsoleGatewayConfig, emptySkillLock, ensureConfigDir, estimateCptTokens, estimateSftDpoTokens, exportCheckpoint, extractAsrFlashText, extractTarBr, extractZipEntryToFile, fanOutSkillToAgents, fetchModelCapability, fetchModelDetail, fetchModelGroups, fetchModelList, fetchModelListAll, fetchPredictConfig, fetchSkillsIndex, fetchTrainingModelPrice, findDeploymentEntry, findModelByName, flushTelemetry, formatErrorJson, formatIssue, formatJson, formatOutput, formatText, generateCLIAccessToken, generateFilename, getAgentTargets, getCliCdnBase, getConfigDir, getConfigPath, getCredentialsPath, getDataset, getDeployment, getFineTune, getFineTuneLogs, getInstallMethod, getModelProfilePreset, getModels, getProfile, getSkillLockPath, getSkillRegistryBaseUrl, getSkillsDir, getUpdateInstallMethod, image2ImagePath, image2videoPath, imageFileToDataUri, imagePath, imageSyncPath, imageText2ImagePath, inferAudioFormatHint, installSkill, installSkillFromBuffer, installSkillWithFanout, isCompiledBinary, isLegacyImage2ImageModel, isLegacyText2ImageModel, isLocalFile, isSafeEntryName, isSafeSkillName, isSemanticAvailable, isStreamableHttpUnsupported, isSyncMultimodalImageModel, isTrainingTypeCli, isUrlOverrideSseFallbackCandidate, isWanxFunctionImageEditModel, knowledgeChatEndpoint, knowledgeRetrievePath, knowledgeSearchEndpoint, linkSkillToAgents, listBailianControlWorkspaces, listCheckpoints, listDatasets, listDeployableModels, listDeployments, listFineTunes, listIndependentDeployedModels, listSkillDirsOnDisk, listSupportedFormats, listSupportedTrainingTypes, listTrainingTypes, localSink, makeAuthStore, makeConfigStore, mapApiError, maskToken, maybeSyncWikiData, mcpWebSearchPath, memoryAddPath, memoryListPath, memoryNodePath, memorySearchPath, modelSupportsTrainingType, modelsLimitsPath, modelsPermissionsPath, normalizeConfigName, normalizeModelBaseUrl, parseBooleanValue, parseConfigFile, parseDatasetSchemaFlag, parseOptionalBooleanValue, parseSSE, parseSkillNames, pickPlanStrategy, pickValidator, preflightBatchSizeGate, profileSchemaPath, ragEndpoint, rankModels, readConfigFile, readConfigProfiles, readSkillLock, readTextFromPathOrStdin, recallCandidates, recallSemantic, redactDataUri, refreshAccessToken, registerValidator, releaseAssetUrl, remoteSink, removeSkillDir, request, requestJson, resetBailianControlPolicies4Agent, resolveApiKey, resolveAsrApi, resolveAssetFileName, resolveBooleanFlag, resolveConsole, resolveFileUrl, resolveImageEditApi, resolveImageGenerateApi, resolveImageSizeProfile, resolveModelBaseUrl, resolveOpenApi, resolveOutputDir, resolvePromptExtendDefault, resolveWatermark, responsesPath, runWithConcurrency, sanitizeSkillName, scaleDeployment, signAcsRequest, sourceConfig, speechRecognizePath, speechSynthesizePath, startModelService, stopModelService, stripUndefined, taskPath, trackCommandExecution, trackingHeaders, trainingTypeMethodVariant, unlinkSkillFromAgents, unwrapResponse, updateDeployment, uploadDataset, uploadFile, upsertSkillLockEntry, userProfilePath, validateConfigProfileActivation, validateDataset, validateSkillDir, videoGeneratePath, writeConfigFile, writeInstallMethodSync, writeSkillLock };