bailian-cli-core 1.15.0 → 1.16.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 +469 -14
- package/dist/index.mjs +19 -19
- package/package.json +1 -1
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";
|
|
@@ -1399,7 +1720,11 @@ declare function imageText2ImagePath(): string;
|
|
|
1399
1720
|
/** Legacy async image-to-image / edit API (wan2.5-i2i, *imageedit*). */
|
|
1400
1721
|
declare function image2ImagePath(): string;
|
|
1401
1722
|
declare function videoGeneratePath(): string;
|
|
1723
|
+
/** POST /api/v1/services/aigc/image2video/video-synthesis — kf2v (first+last frame). */
|
|
1724
|
+
declare function image2videoPath(): string;
|
|
1402
1725
|
declare function taskPath(taskId: string): string;
|
|
1726
|
+
declare function modelsLimitsPath(): string;
|
|
1727
|
+
declare function modelsPermissionsPath(): string;
|
|
1403
1728
|
declare function appCompletionPath(appId: string): string;
|
|
1404
1729
|
declare function memoryAddPath(): string;
|
|
1405
1730
|
declare function memorySearchPath(): string;
|
|
@@ -1413,6 +1738,41 @@ declare function knowledgeRetrievePath(): string;
|
|
|
1413
1738
|
declare function knowledgeSearchEndpoint(workspaceId: string): string;
|
|
1414
1739
|
declare function knowledgeChatEndpoint(workspaceId: string): string;
|
|
1415
1740
|
declare function mcpWebSearchPath(): string;
|
|
1741
|
+
declare function ragEndpoint(workspaceId: string, path: string): string;
|
|
1742
|
+
declare const RAG_PATHS: {
|
|
1743
|
+
readonly indexList: "/api/v1/indices/rag/index/list";
|
|
1744
|
+
readonly indexCreateV2: "/api/v1/indices/rag/index/create_v2";
|
|
1745
|
+
readonly indexUpdate: "/api/v1/indices/rag/index/update";
|
|
1746
|
+
readonly indexDelete: "/api/v1/indices/rag/index/delete";
|
|
1747
|
+
readonly indexMonitor: "/api/v1/indices/rag/index/monitor";
|
|
1748
|
+
readonly indexFiles: "/api/v1/indices/rag/index/files";
|
|
1749
|
+
readonly indexDeleteFile: "/api/v1/indices/rag/index/delete_file";
|
|
1750
|
+
readonly indexJobCreate: "/api/v1/indices/rag/index/job/create";
|
|
1751
|
+
readonly indexJobStatus: "/api/v1/indices/rag/index_job/status";
|
|
1752
|
+
readonly chunkList: "/api/v1/indices/rag/index/chunklist";
|
|
1753
|
+
readonly chunkCreate: "/api/v1/indices/rag/index/chunk/create";
|
|
1754
|
+
readonly chunkUpdate: "/api/v1/indices/rag/index/chunk/update";
|
|
1755
|
+
readonly chunkDelete: "/api/v1/indices/rag/index/chunk/delete";
|
|
1756
|
+
readonly agentList: "/api/v1/indices/rag/app/list";
|
|
1757
|
+
readonly agentGet: "/api/v1/indices/rag/app/get";
|
|
1758
|
+
readonly agentCreate: "/api/v1/indices/rag/app/create";
|
|
1759
|
+
readonly agentUpdate: "/api/v1/indices/rag/app/update";
|
|
1760
|
+
readonly agentDeploy: "/api/v1/indices/rag/app/deploy";
|
|
1761
|
+
readonly agentDelete: "/api/v1/indices/rag/app/delete";
|
|
1762
|
+
readonly agentCopy: "/api/v1/indices/rag/app/copy";
|
|
1763
|
+
readonly applyFileUploadLease: "/api/v1/connector/dash/applyFileUploadLease";
|
|
1764
|
+
readonly addFile: "/api/v1/connector/dash/addFile";
|
|
1765
|
+
readonly addFilesFromAuthorizedOss: "/api/v1/connector/dash/addFilesFromAuthorizedOss";
|
|
1766
|
+
readonly batchUpdateFileTag: "/api/v1/connector/dash/batchUpdateFileTag";
|
|
1767
|
+
readonly listFile: "/api/v1/connector/dash/listFile";
|
|
1768
|
+
readonly describeFile: "/api/v1/connector/dash/describeFile";
|
|
1769
|
+
readonly deleteFile: "/api/v1/connector/dash/deleteFile";
|
|
1770
|
+
readonly addConnector: "/api/v1/connector/dash/addConnector";
|
|
1771
|
+
readonly getConnector: "/api/v1/connector/dash/getConnector";
|
|
1772
|
+
readonly listCategory: "/api/v1/connector/dash/listCategory";
|
|
1773
|
+
readonly addCategory: "/api/v1/connector/dash/addCategory";
|
|
1774
|
+
readonly deleteCategory: "/api/v1/connector/dash/deleteCategory";
|
|
1775
|
+
};
|
|
1416
1776
|
//#endregion
|
|
1417
1777
|
//#region src/client/image-routes.d.ts
|
|
1418
1778
|
/**
|
|
@@ -1560,6 +1920,8 @@ declare function collectAsrTranscriptionItems(output: {
|
|
|
1560
1920
|
//#endregion
|
|
1561
1921
|
//#region src/client/headers.d.ts
|
|
1562
1922
|
declare const CHANNEL = "bailian-cli";
|
|
1923
|
+
/** Static source identifier advertised to the DashScope/Bailian OpenAPI gateway. */
|
|
1924
|
+
declare const OPEN_API_SOURCE = "BailianCLI";
|
|
1563
1925
|
type TrackingIdentity = Pick<Identity, "binName" | "version">;
|
|
1564
1926
|
declare function sourceConfig(identity: TrackingIdentity): string;
|
|
1565
1927
|
/** Tracking headers for Bailian/DashScope API requests. */
|
|
@@ -1637,10 +1999,17 @@ declare function effectiveConsoleGatewayConfig(config: Pick<Settings, "consoleRe
|
|
|
1637
1999
|
consoleSwitchAgent?: number;
|
|
1638
2000
|
};
|
|
1639
2001
|
interface ConsoleGatewayRequest {
|
|
1640
|
-
/** Console API name, e.g. zeldaEasy.bailian
|
|
2002
|
+
/** Console API name, e.g. zeldaEasy.broadscope-bailian.freeTrial.queryFreeTierQuota */
|
|
1641
2003
|
api: string;
|
|
1642
2004
|
data: Record<string, unknown>;
|
|
1643
2005
|
}
|
|
2006
|
+
/** Console-call signature shared by catalog helpers (`client.console` or an anonymous call). */
|
|
2007
|
+
type ConsoleCall = (api: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
2008
|
+
/**
|
|
2009
|
+
* Build an anonymous (token-less) gateway caller for public catalog APIs such
|
|
2010
|
+
* as `listFoundationModels` — no console login required.
|
|
2011
|
+
*/
|
|
2012
|
+
declare function anonymousConsoleCall(config: Pick<Settings, "consoleRegion" | "consoleSite" | "consoleSwitchAgent" | "timeout">): ConsoleCall;
|
|
1644
2013
|
/**
|
|
1645
2014
|
* Invoke a Bailian **console** OpenAPI via the CLI gateway (`/cli/api.json`).
|
|
1646
2015
|
* 目标(region/site/switchAgent)与 token 均由调用方解析后传入:Client.console 传
|
|
@@ -1660,7 +2029,6 @@ declare function callConsoleGateway(target: ConsoleGatewayTarget, timeoutSec: nu
|
|
|
1660
2029
|
//#region src/console/models.d.ts
|
|
1661
2030
|
declare const MODEL_LIST_API = "zeldaHttp.dashscopeModel./zelda/api/v1/modelCenter/listFoundationModels";
|
|
1662
2031
|
declare const PREDICT_CONFIG_API = "zeldaEasy.bmp.modelPredictRpcService.getPredictParamConfig";
|
|
1663
|
-
type ConsoleCall = (api: string, data: Record<string, unknown>) => Promise<unknown>;
|
|
1664
2032
|
/** Unwrap the DataV2 double-envelope that console gateway returns. */
|
|
1665
2033
|
declare function unwrapResponse(result: Record<string, unknown>): Record<string, unknown>;
|
|
1666
2034
|
interface ModelListParams {
|
|
@@ -1676,6 +2044,14 @@ interface ModelListResult {
|
|
|
1676
2044
|
}
|
|
1677
2045
|
/** Page the console model-list API. `call` makes the gateway request (e.g. `client.console`). */
|
|
1678
2046
|
declare function fetchModelList(call: ConsoleCall, params?: ModelListParams): Promise<ModelListResult>;
|
|
2047
|
+
/** Page through every model-list page and return all raw model items. */
|
|
2048
|
+
declare function fetchModelListAll(call: ConsoleCall, params?: Omit<ModelListParams, "pageNo">): Promise<Record<string, unknown>[]>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Look up a single model by exact id. The server's `name` filter is a
|
|
2051
|
+
* substring match, so an exact `model` equality check narrows the result
|
|
2052
|
+
* (e.g. avoids `qwen3-8b` matching `qwen3-8b-v2`).
|
|
2053
|
+
*/
|
|
2054
|
+
declare function findModelByName(call: ConsoleCall, modelName: string): Promise<Record<string, unknown> | null>;
|
|
1679
2055
|
interface ModelPriceInfo {
|
|
1680
2056
|
type?: string;
|
|
1681
2057
|
priceUnit?: string;
|
|
@@ -2107,15 +2483,20 @@ declare function listSupportedFormats(): {
|
|
|
2107
2483
|
//#endregion
|
|
2108
2484
|
//#region src/dataset/validate/common.d.ts
|
|
2109
2485
|
/**
|
|
2110
|
-
* The platform caps dataset uploads at
|
|
2111
|
-
* enforces this client-side so users learn early.
|
|
2112
|
-
*
|
|
2486
|
+
* The platform caps SFT/DPO text dataset uploads at 200MB per file.
|
|
2487
|
+
* `bl dataset upload` enforces this client-side so users learn early.
|
|
2488
|
+
* CPT uses 300MB (see MAX_CPT_BYTES); API general upload is also 300MB.
|
|
2113
2489
|
*/
|
|
2114
2490
|
declare const MAX_DATASET_BYTES: number;
|
|
2115
2491
|
/**
|
|
2116
|
-
*
|
|
2117
|
-
*
|
|
2118
|
-
|
|
2492
|
+
* CPT text dataset size cap — 300 MB per the platform docs.
|
|
2493
|
+
* CPT requires at least 50M tokens; larger files are expected.
|
|
2494
|
+
*/
|
|
2495
|
+
declare const MAX_CPT_BYTES: number;
|
|
2496
|
+
/**
|
|
2497
|
+
* Image / video ZIP size cap — 2 GB per the platform docs. Used by
|
|
2498
|
+
* `bl dataset upload` for media schemas and by the `sft-lora` training
|
|
2499
|
+
* profile for image / video validation.
|
|
2119
2500
|
*/
|
|
2120
2501
|
declare const MAX_MEDIA_ZIP_BYTES: number;
|
|
2121
2502
|
/**
|
|
@@ -2335,6 +2716,8 @@ interface ListFineTunesParams {
|
|
|
2335
2716
|
pageNo?: number;
|
|
2336
2717
|
pageSize?: number;
|
|
2337
2718
|
status?: string;
|
|
2719
|
+
/** Filter by base model ID (server-side). */
|
|
2720
|
+
model?: string;
|
|
2338
2721
|
signal?: AbortSignal;
|
|
2339
2722
|
}
|
|
2340
2723
|
/** GET /api/v1/fine-tunes */
|
|
@@ -2507,6 +2890,48 @@ declare function getProfile(clientTrainingType: string): TrainingProfile;
|
|
|
2507
2890
|
/** All registered CLI training-type names (for help text / whitelisting). */
|
|
2508
2891
|
declare function listTrainingTypes(): string[];
|
|
2509
2892
|
//#endregion
|
|
2893
|
+
//#region src/finetune/price.d.ts
|
|
2894
|
+
declare const TRAINING_MODEL_PRICE_API = "zeldaEasy.broadscope-platform.modelCenter.getModelPrice";
|
|
2895
|
+
declare const CALC_DATASETS_TOKENS_API = "zeldaEasy.broadscope-platform.modelInstance.calculateDatasetsTotalTokens";
|
|
2896
|
+
declare const ESTIMATE_FINETUNE_TOKENS_API = "zeldaEasy.broadscope-platform.modelInstance.estimateFinetuneTokens";
|
|
2897
|
+
interface TrainingModelPrice {
|
|
2898
|
+
price?: string;
|
|
2899
|
+
priceUnit?: string;
|
|
2900
|
+
modelId?: string;
|
|
2901
|
+
[key: string]: unknown;
|
|
2902
|
+
}
|
|
2903
|
+
interface TokenEstimate {
|
|
2904
|
+
estimatedDatasetConsumedTokensMinPerEpoch?: number;
|
|
2905
|
+
estimatedDatasetConsumedTokensMaxPerEpoch?: number;
|
|
2906
|
+
estimatedMixedConsumedTokensMinPerEpoch?: number;
|
|
2907
|
+
estimatedMixedConsumedTokensMaxPerEpoch?: number;
|
|
2908
|
+
[key: string]: unknown;
|
|
2909
|
+
}
|
|
2910
|
+
/**
|
|
2911
|
+
* Training unit price for a model. `price` is denominated in `priceUnit`
|
|
2912
|
+
* (typically "千Token" — yuan per 1000 tokens).
|
|
2913
|
+
*/
|
|
2914
|
+
declare function fetchTrainingModelPrice(client: Client, modelId: string): Promise<TrainingModelPrice>;
|
|
2915
|
+
/**
|
|
2916
|
+
* Estimate training tokens for SFT / DPO jobs.
|
|
2917
|
+
* Returns a per-epoch min/max range; multiply by `n_epochs` for the total.
|
|
2918
|
+
*/
|
|
2919
|
+
declare function estimateSftDpoTokens(client: Client, datasetIds: string[], hyperParams: {
|
|
2920
|
+
nEpochs: number;
|
|
2921
|
+
batchSize: number;
|
|
2922
|
+
maxLength: number;
|
|
2923
|
+
}): Promise<TokenEstimate>;
|
|
2924
|
+
/**
|
|
2925
|
+
* Estimate training tokens for CPT jobs.
|
|
2926
|
+
*
|
|
2927
|
+
* The console API requires `hyperParams` as a **JSON string** with a full
|
|
2928
|
+
* `userDefinedObj` payload (captured from the console frontend), plus several
|
|
2929
|
+
* top-level fields (`algorithmType`, `bizType`, `priority`, …). Only
|
|
2930
|
+
* `n_epochs` / `max_length` materially affect the estimate; the remaining
|
|
2931
|
+
* hyper-parameters are fixed defaults.
|
|
2932
|
+
*/
|
|
2933
|
+
declare function estimateCptTokens(client: Client, model: string, datasetIdsCsv: string, nEpochs: number): Promise<TokenEstimate>;
|
|
2934
|
+
//#endregion
|
|
2510
2935
|
//#region src/deploy/types.d.ts
|
|
2511
2936
|
/**
|
|
2512
2937
|
* Model-deployment API types.
|
|
@@ -2889,6 +3314,36 @@ declare const STRATEGIES: Record<string, PlanStrategy>;
|
|
|
2889
3314
|
/** Throws USAGE if `plan` is not in the strategy table. */
|
|
2890
3315
|
declare function pickPlanStrategy(plan: string): PlanStrategy;
|
|
2891
3316
|
//#endregion
|
|
3317
|
+
//#region src/deploy/lifecycle.d.ts
|
|
3318
|
+
declare const DEPLOY_START_API = "zeldaEasy.broadscope-platform.modelInstance.startModelService";
|
|
3319
|
+
declare const DEPLOY_STOP_API = "zeldaEasy.broadscope-platform.modelInstance.stopModelService";
|
|
3320
|
+
declare const DEPLOY_LIST_INDEPENDENT_API = "zeldaEasy.broadscope-platform.modelInstance.listIndependentDeployedModel";
|
|
3321
|
+
interface ModelServiceEntry {
|
|
3322
|
+
modelServiceId?: string;
|
|
3323
|
+
deployedModel?: string;
|
|
3324
|
+
deployed_model?: string;
|
|
3325
|
+
status?: string;
|
|
3326
|
+
modelName?: string;
|
|
3327
|
+
model_name?: string;
|
|
3328
|
+
plan?: string;
|
|
3329
|
+
[key: string]: unknown;
|
|
3330
|
+
}
|
|
3331
|
+
/** Start (bring online) a stopped deployment. */
|
|
3332
|
+
declare function startModelService(client: Client, modelServiceId: string): Promise<Record<string, unknown>>;
|
|
3333
|
+
/** Stop (take offline) a running deployment. Stops billing for mu/ptu plans. */
|
|
3334
|
+
declare function stopModelService(client: Client, modelServiceId: string): Promise<Record<string, unknown>>;
|
|
3335
|
+
/**
|
|
3336
|
+
* List independently deployed models (console domain).
|
|
3337
|
+
* Used for precheck status verification and ID mapping.
|
|
3338
|
+
* Paginates internally to return all entries.
|
|
3339
|
+
*/
|
|
3340
|
+
declare function listIndependentDeployedModels(client: Client): Promise<ModelServiceEntry[]>;
|
|
3341
|
+
/**
|
|
3342
|
+
* Find a deployment entry by its identifier in the console-domain list.
|
|
3343
|
+
* Matches against `modelServiceId`, `deployedModel`, or `deployed_model`.
|
|
3344
|
+
*/
|
|
3345
|
+
declare function findDeploymentEntry(entries: ModelServiceEntry[], deployedModel: string): ModelServiceEntry | undefined;
|
|
3346
|
+
//#endregion
|
|
2892
3347
|
//#region src/types/command-pack.d.ts
|
|
2893
3348
|
/** Current Command Pack protocol version understood by this release. */
|
|
2894
3349
|
declare const COMMAND_PACK_API_VERSION: 1;
|
|
@@ -3649,4 +4104,4 @@ declare function installSkillWithFanout(name: string, entry: SkillIndexEntry, ag
|
|
|
3649
4104
|
declare function listSkillDirsOnDisk(): string[];
|
|
3650
4105
|
declare function computeSkillStatuses(index: SkillsIndex, lock: SkillLockFile, diskNames: string[]): SkillStatusRow[];
|
|
3651
4106
|
//#endregion
|
|
3652
|
-
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, 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, 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, fetchPredictConfig, fetchSkillsIndex, 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, 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 };
|
|
4107
|
+
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_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, LinkResult, ListCheckpointsResponse, ListDeployableModelsParams, ListDeployableModelsResponse, ListDeploymentsParams, ListDeploymentsResponse, ListFineTunesParams, ListFineTunesResponse, 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, 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 };
|