@tier0/sdk-v2 0.6.3 → 0.7.2
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/README.md +31 -9
- package/dist/cjs/capabilities.d.ts +20 -4
- package/dist/cjs/capabilities.js +66 -6
- package/dist/cjs/capabilities.js.map +1 -1
- package/dist/cjs/client.d.ts +9 -7
- package/dist/cjs/client.js +0 -2
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/cloud-transport.d.ts +3 -2
- package/dist/cjs/cloud-transport.js +8 -7
- package/dist/cjs/cloud-transport.js.map +1 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/openapi/api.generated.d.ts +9 -5
- package/dist/cjs/openapi/codecs.generated.d.ts +943 -684
- package/dist/cjs/openapi/codecs.generated.js +1 -1
- package/dist/cjs/openapi/codecs.generated.js.map +1 -1
- package/dist/cjs/openapi/types.generated.d.ts +638 -508
- package/dist/cjs/openapi/types.generated.js.map +1 -1
- package/dist/cjs/uns-v2/client.js +2 -2
- package/dist/cjs/uns-v2/client.js.map +1 -1
- package/dist/cjs/uns-v2/generated.d.ts +182 -253
- package/dist/cjs/uns-v2/generated.js +16 -19
- package/dist/cjs/uns-v2/generated.js.map +1 -1
- package/dist/esm/capabilities.d.ts +20 -4
- package/dist/esm/capabilities.js +66 -6
- package/dist/esm/capabilities.js.map +1 -1
- package/dist/esm/client.d.ts +9 -7
- package/dist/esm/client.js +0 -2
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/cloud-transport.d.ts +3 -2
- package/dist/esm/cloud-transport.js +8 -7
- package/dist/esm/cloud-transport.js.map +1 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/openapi/api.generated.d.ts +9 -5
- package/dist/esm/openapi/codecs.generated.d.ts +943 -684
- package/dist/esm/openapi/codecs.generated.js +1 -1
- package/dist/esm/openapi/codecs.generated.js.map +1 -1
- package/dist/esm/openapi/types.generated.d.ts +638 -508
- package/dist/esm/openapi/types.generated.js.map +1 -1
- package/dist/esm/uns-v2/client.js +2 -2
- package/dist/esm/uns-v2/client.js.map +1 -1
- package/dist/esm/uns-v2/generated.d.ts +182 -253
- package/dist/esm/uns-v2/generated.js +16 -19
- package/dist/esm/uns-v2/generated.js.map +1 -1
- package/package.json +5 -7
- package/skills/tier0-sdk-v2/SKILL.md +14 -4
- package/skills/tier0-sdk-v2/tier0-sdk-v2-mq/SKILL.md +1 -1
- package/skills/tier0-sdk-v2/tier0-sdk-v2-mq/references/quickstart.md +1 -1
- package/skills/tier0-sdk-v2/tier0-sdk-v2-source/SKILL.md +2 -2
- package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/create.md +10 -6
- package/skills/tier0-sdk-v2/tier0-sdk-v2-source/references/protocols.md +1 -1
- package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/SKILL.md +1 -1
- package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/create.md +6 -2
- package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/http-server.md +1 -1
- package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/lifecycle.md +2 -0
- package/skills/tier0-sdk-v2/tier0-sdk-v2-stream/references/read.md +4 -0
- package/skills/tier0-sdk-v2/tier0-sdk-v2-system/SKILL.md +7 -2
- package/dist/cjs/controls.d.ts +0 -105
- package/dist/cjs/controls.js +0 -172
- package/dist/cjs/controls.js.map +0 -1
- package/dist/esm/controls.d.ts +0 -105
- package/dist/esm/controls.js +0 -166
- package/dist/esm/controls.js.map +0 -1
- package/skills/tier0-sdk-v2/tier0-sdk-v2-controls/SKILL.md +0 -65
|
@@ -335,7 +335,7 @@ export interface paths {
|
|
|
335
335
|
put?: never;
|
|
336
336
|
/**
|
|
337
337
|
* 发现当前 Workspace 的公开能力与版本合同
|
|
338
|
-
* @description 需要有效 Workspace API Key,Body 仅接受空 JSON 对象,最大 4KiB UTF-8 字节,不接受查询参数或 Workspace 覆盖。成功响应直接为 CapabilityDiscoverResp,不包裹 code/msg/data。能力由默认关闭的公开发布开关、Workspace FeatureGate、Key 显式授权共同裁决;
|
|
338
|
+
* @description 需要有效 Workspace API Key,Body 仅接受空 JSON 对象,最大 4KiB UTF-8 字节,不接受查询参数或 Workspace 覆盖。成功响应直接为 CapabilityDiscoverResp,不包裹 code/msg/data。能力由默认关闭的公开发布开关、Workspace FeatureGate、Key 显式授权共同裁决;Stream request 能力仅报告当前发布与授权,运行可用性保持 readiness_unknown,不触发运行时探针。实际操作由后端执行安全检查,失败返回真实错误。响应允许客户端忽略未知扩展字段;版本标签不表示设备 ACK 或 npm 包版本。错误直接返回 CapabilityErrorResp 和真实 HTTP 状态,不泄漏内部异常。
|
|
339
339
|
*/
|
|
340
340
|
post: operations["PlatformV2CapabilityDiscover"];
|
|
341
341
|
delete?: never;
|
|
@@ -868,257 +868,464 @@ export interface paths {
|
|
|
868
868
|
export type webhooks = Record<string, never>;
|
|
869
869
|
export interface components {
|
|
870
870
|
schemas: {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
task: unknown;
|
|
871
|
+
InfoResp: {
|
|
872
|
+
capabilities: string[];
|
|
873
|
+
mqttBroker: string;
|
|
874
|
+
name: string;
|
|
875
|
+
/** @description API version of the requested HTTP entry point */
|
|
876
|
+
version: string;
|
|
878
877
|
};
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
878
|
+
AuthWhoamiResp: {
|
|
879
|
+
apiKeyName: string;
|
|
880
|
+
email: string;
|
|
881
|
+
keyPrefix: string;
|
|
882
|
+
keyType: string;
|
|
883
|
+
permissions: string[];
|
|
884
|
+
roles: string[];
|
|
885
|
+
userID: number | bigint;
|
|
886
|
+
userName: string;
|
|
887
|
+
workspaceID: number | bigint;
|
|
888
|
+
workspaceName: string;
|
|
884
889
|
};
|
|
885
|
-
|
|
886
|
-
|
|
890
|
+
AssetFileUploadReq: {
|
|
891
|
+
appInstanceId?: string;
|
|
892
|
+
business?: string;
|
|
893
|
+
contentType?: string;
|
|
894
|
+
fileName: string;
|
|
895
|
+
sessionId?: string;
|
|
896
|
+
size: number | bigint;
|
|
897
|
+
useBy?: string;
|
|
898
|
+
visibility?: string;
|
|
887
899
|
};
|
|
888
|
-
|
|
889
|
-
|
|
900
|
+
AssetFileUploadResp: {
|
|
901
|
+
expiresAt?: number | bigint;
|
|
902
|
+
fileId?: number | bigint;
|
|
903
|
+
filePath: string;
|
|
904
|
+
fileUrl?: string;
|
|
905
|
+
/** @description 先写入全部签名字段,再追加 file;policy 约束 key 和大小 */
|
|
906
|
+
postFields: {
|
|
907
|
+
[key: string]: string;
|
|
908
|
+
};
|
|
909
|
+
/** @description 预签名 POST 地址;multipart/form-data 上传 */
|
|
910
|
+
postUrl: string;
|
|
890
911
|
};
|
|
891
|
-
|
|
892
|
-
|
|
912
|
+
AssetFileUrlResp: {
|
|
913
|
+
expiresAt?: number | bigint;
|
|
914
|
+
fileUrl: string;
|
|
915
|
+
};
|
|
916
|
+
AssetFileDeleteReq: {
|
|
917
|
+
filePath: string;
|
|
918
|
+
};
|
|
919
|
+
AssetFileDeleteResp: {
|
|
920
|
+
deleted: boolean;
|
|
921
|
+
};
|
|
922
|
+
AssetFileMultipartInitReq: {
|
|
923
|
+
appInstanceId?: string;
|
|
924
|
+
bizId?: string;
|
|
925
|
+
business?: string;
|
|
926
|
+
contentType?: string;
|
|
927
|
+
fileName: string;
|
|
928
|
+
partSize?: number | bigint;
|
|
893
929
|
sessionId?: string;
|
|
894
930
|
size: number | bigint;
|
|
931
|
+
useBy?: string;
|
|
932
|
+
visibility?: string;
|
|
895
933
|
};
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
934
|
+
AssetFileMultipartInitResp: {
|
|
935
|
+
expiresAt: number | bigint;
|
|
936
|
+
fileKey: string;
|
|
937
|
+
filePath: string;
|
|
938
|
+
partCount: number | bigint;
|
|
939
|
+
partSize: number | bigint;
|
|
940
|
+
uploadId: string;
|
|
901
941
|
};
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
sessionId: string;
|
|
907
|
-
updatedAt: number | bigint;
|
|
942
|
+
AssetFileMultipartPartUrlsReq: {
|
|
943
|
+
fileKey: string;
|
|
944
|
+
partNumbers: (number | bigint)[];
|
|
945
|
+
uploadId: string;
|
|
908
946
|
};
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
cardId: string;
|
|
912
|
-
expectedCardSpec: unknown;
|
|
947
|
+
AssetFileMultipartPartUrlsResp: {
|
|
948
|
+
partUrls: components["schemas"]["AssetFileMultipartPartUrl"][];
|
|
913
949
|
};
|
|
914
|
-
|
|
915
|
-
|
|
950
|
+
AssetFileMultipartPartUrl: {
|
|
951
|
+
expiresAt: number | bigint;
|
|
952
|
+
partNumber: number | bigint;
|
|
953
|
+
url: string;
|
|
916
954
|
};
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
955
|
+
AssetFileMultipartCompleteReq: {
|
|
956
|
+
fileKey: string;
|
|
957
|
+
parts: components["schemas"]["AssetFileMultipartPart"][];
|
|
958
|
+
uploadId: string;
|
|
920
959
|
};
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
cardKey: string;
|
|
925
|
-
cardSpec: unknown;
|
|
926
|
-
updatedAt: number | bigint;
|
|
960
|
+
AssetFileMultipartPart: {
|
|
961
|
+
etag: string;
|
|
962
|
+
partNumber: number | bigint;
|
|
927
963
|
};
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
964
|
+
AssetFileMultipartCompleteResp: {
|
|
965
|
+
expiresAt?: number | bigint;
|
|
966
|
+
filePath: string;
|
|
967
|
+
fileUrl?: string;
|
|
968
|
+
sizeBytes: number | bigint;
|
|
932
969
|
};
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
size: number | bigint;
|
|
937
|
-
total: number | bigint;
|
|
970
|
+
AssetFileMultipartAbortReq: {
|
|
971
|
+
fileKey: string;
|
|
972
|
+
uploadId: string;
|
|
938
973
|
};
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
cardId: string;
|
|
942
|
-
cardSpec: unknown;
|
|
943
|
-
/** @description 读取到的完整原卡内容,变化时返回HTTP409 */
|
|
944
|
-
expectedCardSpec: unknown;
|
|
945
|
-
/** @description 画布内顺序:不传 = 不改(转调 unssvr 时补 -1),传了原样透传;用指针区分「没传」和「传 0」 */
|
|
946
|
-
ord?: number | bigint;
|
|
947
|
-
position?: unknown;
|
|
974
|
+
AssetFileMultipartAbortResp: {
|
|
975
|
+
aborted: number | bigint;
|
|
948
976
|
};
|
|
949
|
-
|
|
950
|
-
|
|
977
|
+
AssetUploadReq: {
|
|
978
|
+
business?: string;
|
|
979
|
+
contentType?: string;
|
|
980
|
+
fileName: string;
|
|
981
|
+
isPublic?: boolean;
|
|
982
|
+
sha256?: string;
|
|
983
|
+
size?: number | bigint;
|
|
984
|
+
sizeBytes: number | bigint;
|
|
985
|
+
storageKey?: string;
|
|
986
|
+
useBy?: string;
|
|
951
987
|
};
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
sourceBlockId?: string;
|
|
962
|
-
sourceId?: string;
|
|
963
|
-
sourceName?: string;
|
|
964
|
-
sourceType: string;
|
|
965
|
-
task: unknown;
|
|
966
|
-
type?: string;
|
|
988
|
+
AssetUploadResp: {
|
|
989
|
+
filePath: string;
|
|
990
|
+
fileUrl?: string;
|
|
991
|
+
/** @description 先写入全部签名字段,再追加 file;policy 约束 key 和大小 */
|
|
992
|
+
postFields: {
|
|
993
|
+
[key: string]: string;
|
|
994
|
+
};
|
|
995
|
+
/** @description 预签名 POST 地址;multipart/form-data 上传 */
|
|
996
|
+
postUrl: string;
|
|
967
997
|
};
|
|
968
|
-
|
|
969
|
-
|
|
998
|
+
SendNotificationReq: {
|
|
999
|
+
channels?: ("web" | "mobile")[];
|
|
1000
|
+
content: string;
|
|
1001
|
+
idempotencyKey: string;
|
|
1002
|
+
link?: string;
|
|
1003
|
+
mode?: string;
|
|
1004
|
+
recipientUserId: string;
|
|
1005
|
+
sender?: components["schemas"]["NotificationSender"];
|
|
1006
|
+
/** @description 已废弃:过渡期作 sender.name 别名(sender.name 优先),后续移除 */
|
|
1007
|
+
source?: string;
|
|
1008
|
+
title: string;
|
|
1009
|
+
type: string;
|
|
970
1010
|
};
|
|
971
|
-
|
|
972
|
-
|
|
1011
|
+
NotificationSender: {
|
|
1012
|
+
/** @description app 必填=appId(agent-platform UUID);other 可选;system 可选;字符集 [0-9a-zA-Z-]{1,128} */
|
|
1013
|
+
id?: string;
|
|
1014
|
+
/** @description 类型专属附加信息,序列化后≤500字节 */
|
|
1015
|
+
meta?: {
|
|
1016
|
+
[key: string]: string;
|
|
1017
|
+
};
|
|
1018
|
+
/** @description 人读显示名(接替废弃的 source),≤100字符 */
|
|
1019
|
+
name?: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* @description 枚举 app/other/system,缺省 other;system=平台内部服务,仅 usage_type=internal 的 API key 可用(否则 400),建信归 workspace 分组(System tab)
|
|
1022
|
+
* @default other
|
|
1023
|
+
* @enum {string}
|
|
1024
|
+
*/
|
|
1025
|
+
type?: "app" | "other" | "system";
|
|
973
1026
|
};
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
size: number | bigint;
|
|
979
|
-
sourceId?: string;
|
|
980
|
-
sourceType?: string;
|
|
981
|
-
status?: string;
|
|
982
|
-
type?: string;
|
|
1027
|
+
SendNotificationResp: {
|
|
1028
|
+
createdAt: string;
|
|
1029
|
+
messageId: string;
|
|
1030
|
+
status: string;
|
|
983
1031
|
};
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
size: number | bigint;
|
|
988
|
-
total: number | bigint;
|
|
1032
|
+
NotificationError: {
|
|
1033
|
+
errorCode: string;
|
|
1034
|
+
message: string;
|
|
989
1035
|
};
|
|
990
|
-
|
|
991
|
-
|
|
1036
|
+
GetNotificationReq: {
|
|
1037
|
+
messageId: string;
|
|
992
1038
|
};
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
intervalSeconds: number | bigint;
|
|
1000
|
-
jobId: string;
|
|
1001
|
-
lastFiredAt: number | bigint;
|
|
1002
|
-
name: string;
|
|
1003
|
-
nextRunAt: number | bigint;
|
|
1004
|
-
notify?: unknown;
|
|
1005
|
-
orphanedAt: number | bigint;
|
|
1006
|
-
scheduleKind: string;
|
|
1007
|
-
sessionId: string;
|
|
1008
|
-
sourceBlockId: string;
|
|
1009
|
-
sourceId: string;
|
|
1010
|
-
sourceName: string;
|
|
1011
|
-
sourceType: string;
|
|
1039
|
+
GetNotificationResp: {
|
|
1040
|
+
completedAt?: string;
|
|
1041
|
+
createdAt: string;
|
|
1042
|
+
errorCode?: string;
|
|
1043
|
+
message?: string;
|
|
1044
|
+
messageId: string;
|
|
1012
1045
|
status: string;
|
|
1013
|
-
task: unknown;
|
|
1014
1046
|
type: string;
|
|
1015
|
-
updatedAt: number | bigint;
|
|
1016
1047
|
};
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1048
|
+
PlatformGetMembersReq: {
|
|
1049
|
+
keyword?: string;
|
|
1050
|
+
page?: number | bigint;
|
|
1051
|
+
roleKey?: string;
|
|
1052
|
+
roles?: string[];
|
|
1053
|
+
size?: number | bigint;
|
|
1054
|
+
statuses?: string[];
|
|
1055
|
+
updatedAtEnd?: string;
|
|
1056
|
+
updatedAtStart?: string;
|
|
1023
1057
|
};
|
|
1024
|
-
|
|
1025
|
-
|
|
1058
|
+
PlatformMembersResp: {
|
|
1059
|
+
list: components["schemas"]["PlatformMemberResp"][];
|
|
1026
1060
|
page: number | bigint;
|
|
1027
1061
|
size: number | bigint;
|
|
1028
|
-
|
|
1062
|
+
total: number | bigint;
|
|
1029
1063
|
};
|
|
1030
|
-
|
|
1031
|
-
|
|
1064
|
+
PlatformMemberResp: {
|
|
1065
|
+
email?: string;
|
|
1066
|
+
nickName?: string;
|
|
1067
|
+
roles: components["schemas"]["PlatformMemberRoleResp"][];
|
|
1068
|
+
status: string;
|
|
1069
|
+
updatedAt: string;
|
|
1070
|
+
userId: string;
|
|
1071
|
+
userName?: string;
|
|
1072
|
+
};
|
|
1073
|
+
PlatformMemberRoleResp: {
|
|
1074
|
+
description?: string;
|
|
1075
|
+
roleId: string;
|
|
1076
|
+
roleKey: string;
|
|
1077
|
+
roleName?: string;
|
|
1078
|
+
};
|
|
1079
|
+
AppAccessMembersListReq: {
|
|
1080
|
+
appId: string;
|
|
1081
|
+
/** @description 毫秒,闭区间,精度为秒 */
|
|
1082
|
+
grantedAtEnd?: number | bigint;
|
|
1083
|
+
/** @description 毫秒,闭区间,精度为秒 */
|
|
1084
|
+
grantedAtStart?: number | bigint;
|
|
1085
|
+
page?: number | bigint;
|
|
1086
|
+
/** @description 任一命中即可,大小写不敏感 */
|
|
1087
|
+
roleKeys?: string[];
|
|
1088
|
+
size?: number | bigint;
|
|
1089
|
+
};
|
|
1090
|
+
AppAccessMembersListResp: {
|
|
1091
|
+
/** @description 1:所有 active 成员都可访问 2:按角色授权 */
|
|
1092
|
+
allActiveMembers: number | bigint;
|
|
1093
|
+
appId: string;
|
|
1094
|
+
list: components["schemas"]["AppAccessMemberResp"][];
|
|
1032
1095
|
page: number | bigint;
|
|
1096
|
+
productionVersionId?: string;
|
|
1097
|
+
/** @description 1:已发布 2:未发布 */
|
|
1098
|
+
published: number | bigint;
|
|
1099
|
+
roles: components["schemas"]["AppAccessRoleResp"][];
|
|
1033
1100
|
size: number | bigint;
|
|
1034
1101
|
total: number | bigint;
|
|
1035
1102
|
};
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
jobRunId: string;
|
|
1044
|
-
resultId?: string;
|
|
1045
|
-
resultSummary?: unknown;
|
|
1046
|
-
severity?: string;
|
|
1047
|
-
status: string;
|
|
1048
|
-
trigger?: string;
|
|
1049
|
-
};
|
|
1050
|
-
AgentJobTriggerResp: {
|
|
1051
|
-
dispatchState: string;
|
|
1052
|
-
jobId: string;
|
|
1053
|
-
jobRunId: string;
|
|
1103
|
+
AppAccessMemberResp: {
|
|
1104
|
+
email?: string;
|
|
1105
|
+
/** @description 毫秒 */
|
|
1106
|
+
grantedAt: number | bigint;
|
|
1107
|
+
roles: components["schemas"]["AppAccessMemberRoleResp"][];
|
|
1108
|
+
userId: string;
|
|
1109
|
+
userName?: string;
|
|
1054
1110
|
};
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
jobId: string;
|
|
1061
|
-
name?: string;
|
|
1062
|
-
notify?: unknown;
|
|
1063
|
-
/** @description 省略沿用原通知,1必须提供notify对象,2关闭通知且不提供notify */
|
|
1064
|
-
notifyEnabled?: number | bigint;
|
|
1065
|
-
scheduleKind?: string;
|
|
1066
|
-
sessionId?: string;
|
|
1067
|
-
sourceBlockId?: string;
|
|
1068
|
-
sourceId?: string;
|
|
1069
|
-
sourceName?: string;
|
|
1070
|
-
sourceType?: string;
|
|
1071
|
-
task?: unknown;
|
|
1072
|
-
type?: string;
|
|
1111
|
+
AppAccessMemberRoleResp: {
|
|
1112
|
+
roleId: string;
|
|
1113
|
+
roleKey: string;
|
|
1114
|
+
roleName: string;
|
|
1115
|
+
sources: components["schemas"]["AppAccessRoleSourceResp"][];
|
|
1073
1116
|
};
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1117
|
+
AppAccessRoleSourceResp: {
|
|
1118
|
+
groupId?: string;
|
|
1119
|
+
groupName?: string;
|
|
1120
|
+
/** @description direct / group */
|
|
1121
|
+
type: string;
|
|
1079
1122
|
};
|
|
1080
|
-
|
|
1081
|
-
|
|
1123
|
+
AppAccessRoleResp: {
|
|
1124
|
+
description?: string;
|
|
1125
|
+
memberCount: number | bigint;
|
|
1126
|
+
roleId: string;
|
|
1127
|
+
roleKey: string;
|
|
1128
|
+
roleName: string;
|
|
1129
|
+
/** @description active / retired */
|
|
1130
|
+
status: string;
|
|
1082
1131
|
};
|
|
1083
|
-
|
|
1084
|
-
|
|
1132
|
+
MqttAuthCreateReq: {
|
|
1133
|
+
clientIDRandomSuffixEnabled?: boolean;
|
|
1134
|
+
description?: string;
|
|
1135
|
+
name: string;
|
|
1085
1136
|
};
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
updatedAt: number | bigint;
|
|
1137
|
+
MqttAuthCreateResp: {
|
|
1138
|
+
clientID: string;
|
|
1139
|
+
clientIDRandomSuffixEnabled: boolean;
|
|
1140
|
+
id: number | bigint;
|
|
1141
|
+
name: string;
|
|
1142
|
+
password: string;
|
|
1143
|
+
username: string;
|
|
1094
1144
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
search?: string;
|
|
1098
|
-
size: number | bigint;
|
|
1099
|
-
tags?: string[];
|
|
1145
|
+
MqttAuthDeleteReq: {
|
|
1146
|
+
id: number | bigint;
|
|
1100
1147
|
};
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
page: number | bigint;
|
|
1104
|
-
size: number | bigint;
|
|
1105
|
-
total: number | bigint;
|
|
1148
|
+
MqttAuthDeleteResp: {
|
|
1149
|
+
success: boolean;
|
|
1106
1150
|
};
|
|
1107
|
-
|
|
1108
|
-
|
|
1151
|
+
/**
|
|
1152
|
+
* Tier0 capability discovery
|
|
1153
|
+
* @description OpenAPI 3.0 wire schema. Array contains/cardinality annotations and cross-field proof ordering require the shared JSON Schema plus SDK semantic checks; this projection alone is not full contract acceptance.
|
|
1154
|
+
*/
|
|
1155
|
+
CapabilityDiscoverV2Resp: {
|
|
1156
|
+
/** @enum {unknown} */
|
|
1157
|
+
product: "cloud" | "enterprise";
|
|
1158
|
+
productVersion?: string;
|
|
1159
|
+
/** @enum {unknown} */
|
|
1160
|
+
contractVersion: "1.0";
|
|
1161
|
+
apiContractVersions: string[];
|
|
1162
|
+
sdkContractVersions: string[];
|
|
1163
|
+
capabilities: components["schemas"]["CapabilityDiscoverycapability"][] & (unknown & unknown & unknown & unknown & unknown);
|
|
1164
|
+
deprecations: {
|
|
1165
|
+
contract: string;
|
|
1166
|
+
replacement?: string;
|
|
1167
|
+
sunsetAt?: string;
|
|
1168
|
+
}[];
|
|
1169
|
+
} & (unknown | {
|
|
1170
|
+
apiContractVersions?: unknown[];
|
|
1171
|
+
});
|
|
1172
|
+
/** @description Unknown capability codes are ignored; only recognized codes use the frozen assessment contract. */
|
|
1173
|
+
CapabilityDiscoverycapability: {
|
|
1174
|
+
code: string;
|
|
1175
|
+
} & (unknown | components["schemas"]["CapabilityDiscoveryknownCapability"]);
|
|
1176
|
+
CapabilityDiscoveryknownCapability: {
|
|
1177
|
+
releaseEnabled: boolean;
|
|
1178
|
+
enabled: boolean;
|
|
1179
|
+
allowed: boolean;
|
|
1180
|
+
/** @enum {unknown} */
|
|
1181
|
+
state: "disabled" | "not_supported" | "unavailable" | "readiness_unknown" | "ready";
|
|
1182
|
+
/** @enum {unknown} */
|
|
1183
|
+
availability: "unavailable" | "unknown" | "available";
|
|
1184
|
+
reasonCode?: string;
|
|
1185
|
+
/** Format: date-time */
|
|
1186
|
+
checkedAt?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* Format: date-time
|
|
1189
|
+
* @description Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
|
|
1190
|
+
*/
|
|
1191
|
+
validUntil?: string;
|
|
1192
|
+
retryAfterMs?: number | bigint;
|
|
1193
|
+
code: string;
|
|
1194
|
+
contractVersions: string[];
|
|
1195
|
+
operations?: components["schemas"]["CapabilityDiscoveryoperation"][];
|
|
1196
|
+
} & (((unknown | {
|
|
1197
|
+
/** @enum {unknown} */
|
|
1198
|
+
enabled?: true;
|
|
1199
|
+
/** @enum {unknown} */
|
|
1200
|
+
releaseEnabled?: true;
|
|
1201
|
+
/** @enum {unknown} */
|
|
1202
|
+
allowed?: true;
|
|
1203
|
+
/** @enum {unknown} */
|
|
1204
|
+
availability?: "available";
|
|
1205
|
+
}) & ({
|
|
1206
|
+
/** @enum {unknown} */
|
|
1207
|
+
state?: "ready";
|
|
1208
|
+
} | {
|
|
1209
|
+
/** @enum {unknown} */
|
|
1210
|
+
enabled?: false;
|
|
1211
|
+
})) & ((unknown | {
|
|
1212
|
+
/** @enum {unknown} */
|
|
1213
|
+
releaseEnabled?: false;
|
|
1214
|
+
}) & ({
|
|
1215
|
+
/** @enum {unknown} */
|
|
1216
|
+
state?: "disabled";
|
|
1217
|
+
} | {
|
|
1218
|
+
/** @enum {unknown} */
|
|
1219
|
+
releaseEnabled?: true;
|
|
1220
|
+
})) & (unknown | {
|
|
1221
|
+
/** @enum {unknown} */
|
|
1222
|
+
availability?: "unknown";
|
|
1223
|
+
}) & (unknown | {
|
|
1224
|
+
/** @enum {unknown} */
|
|
1225
|
+
availability?: "unavailable";
|
|
1226
|
+
}) & (unknown | {
|
|
1227
|
+
/** @enum {unknown} */
|
|
1228
|
+
state?: "ready";
|
|
1229
|
+
checkedAt: unknown;
|
|
1230
|
+
}) & (unknown | ({
|
|
1231
|
+
operations?: ((unknown | components["schemas"]["CapabilityDiscoveryknownOperation"]) & (unknown | {
|
|
1232
|
+
/** @enum {unknown} */
|
|
1233
|
+
requiresResourceCheck?: true;
|
|
1234
|
+
}))[] & (unknown & unknown & unknown & unknown & unknown & unknown);
|
|
1235
|
+
} & (unknown | {
|
|
1236
|
+
operations?: (unknown | {
|
|
1237
|
+
/** @enum {unknown} */
|
|
1238
|
+
releaseEnabled?: false;
|
|
1239
|
+
})[];
|
|
1240
|
+
}))) & (unknown | ({
|
|
1241
|
+
operations?: ((unknown | components["schemas"]["CapabilityDiscoveryknownOperation"]) & (unknown | {
|
|
1242
|
+
/** @enum {unknown} */
|
|
1243
|
+
requiresResourceCheck?: true;
|
|
1244
|
+
}))[] & (unknown & unknown & unknown & unknown & unknown & unknown);
|
|
1245
|
+
} & (unknown | {
|
|
1246
|
+
operations?: (unknown | {
|
|
1247
|
+
/** @enum {unknown} */
|
|
1248
|
+
releaseEnabled?: false;
|
|
1249
|
+
})[];
|
|
1250
|
+
}))) & (unknown | {
|
|
1251
|
+
contractVersions?: unknown[];
|
|
1252
|
+
}) & (unknown | {
|
|
1253
|
+
contractVersions?: unknown[] & (unknown & unknown);
|
|
1254
|
+
}));
|
|
1255
|
+
/** @description Unknown operation names are ignored within their parent capability; known names are validated by that capability. */
|
|
1256
|
+
CapabilityDiscoveryoperation: {
|
|
1257
|
+
operation: string;
|
|
1258
|
+
};
|
|
1259
|
+
CapabilityDiscoveryknownOperation: {
|
|
1260
|
+
releaseEnabled: boolean;
|
|
1261
|
+
enabled: boolean;
|
|
1262
|
+
allowed: boolean;
|
|
1263
|
+
/** @enum {unknown} */
|
|
1264
|
+
state: "disabled" | "not_supported" | "unavailable" | "readiness_unknown" | "ready";
|
|
1265
|
+
/** @enum {unknown} */
|
|
1266
|
+
availability: "unavailable" | "unknown" | "available";
|
|
1267
|
+
reasonCode?: string;
|
|
1268
|
+
/** Format: date-time */
|
|
1269
|
+
checkedAt?: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* Format: date-time
|
|
1272
|
+
* @description Proof expiry must follow checkedAt. Cross-field chronological ordering is a semantic constraint checked by consumers in addition to this structural JSON Schema.
|
|
1273
|
+
*/
|
|
1274
|
+
validUntil?: string;
|
|
1275
|
+
retryAfterMs?: number | bigint;
|
|
1276
|
+
operation: string;
|
|
1277
|
+
requiresResourceCheck: boolean;
|
|
1278
|
+
} & (((unknown | {
|
|
1279
|
+
/** @enum {unknown} */
|
|
1280
|
+
enabled?: true;
|
|
1281
|
+
/** @enum {unknown} */
|
|
1282
|
+
releaseEnabled?: true;
|
|
1283
|
+
/** @enum {unknown} */
|
|
1284
|
+
allowed?: true;
|
|
1285
|
+
/** @enum {unknown} */
|
|
1286
|
+
availability?: "available";
|
|
1287
|
+
}) & ({
|
|
1288
|
+
/** @enum {unknown} */
|
|
1289
|
+
state?: "ready";
|
|
1290
|
+
} | {
|
|
1291
|
+
/** @enum {unknown} */
|
|
1292
|
+
enabled?: false;
|
|
1293
|
+
})) & ((unknown | {
|
|
1294
|
+
/** @enum {unknown} */
|
|
1295
|
+
releaseEnabled?: false;
|
|
1296
|
+
}) & ({
|
|
1297
|
+
/** @enum {unknown} */
|
|
1298
|
+
state?: "disabled";
|
|
1299
|
+
} | {
|
|
1300
|
+
/** @enum {unknown} */
|
|
1301
|
+
releaseEnabled?: true;
|
|
1302
|
+
})) & (unknown | {
|
|
1303
|
+
/** @enum {unknown} */
|
|
1304
|
+
availability?: "unknown";
|
|
1305
|
+
}) & (unknown | {
|
|
1306
|
+
/** @enum {unknown} */
|
|
1307
|
+
availability?: "unavailable";
|
|
1308
|
+
}) & (unknown | {
|
|
1309
|
+
/** @enum {unknown} */
|
|
1310
|
+
state?: "ready";
|
|
1311
|
+
checkedAt: unknown;
|
|
1312
|
+
}));
|
|
1313
|
+
CapabilityErrorResp: {
|
|
1314
|
+
/** @description INVALID_CREDENTIAL / CAPABILITY_INVALID_REQUEST / CAPABILITY_FORBIDDEN / CAPABILITY_UNAVAILABLE / CAPABILITY_INTERNAL_ERROR */
|
|
1315
|
+
errorCode: string;
|
|
1316
|
+
/** @description 固定公开消息,不透传内部异常 */
|
|
1317
|
+
message: string;
|
|
1109
1318
|
};
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
sourceSessionId: string;
|
|
1114
|
-
tags: string[];
|
|
1319
|
+
AgentCardGetReq: {
|
|
1320
|
+
canvasId: string;
|
|
1321
|
+
cardId: string;
|
|
1115
1322
|
};
|
|
1116
|
-
|
|
1323
|
+
AgentCardGetResp: {
|
|
1324
|
+
canvasId: string;
|
|
1325
|
+
cardId: string;
|
|
1326
|
+
cardKey: string;
|
|
1117
1327
|
cardSpec: unknown;
|
|
1118
|
-
|
|
1119
|
-
libraryItemId: string;
|
|
1120
|
-
sourceSessionId?: string;
|
|
1121
|
-
tags?: string[];
|
|
1328
|
+
updatedAt: number | bigint;
|
|
1122
1329
|
};
|
|
1123
1330
|
AgentResultCreateReq: {
|
|
1124
1331
|
cardSpec?: unknown;
|
|
@@ -1134,6 +1341,13 @@ export interface components {
|
|
|
1134
1341
|
title: string;
|
|
1135
1342
|
warnings?: string[];
|
|
1136
1343
|
};
|
|
1344
|
+
AgentResultSource: {
|
|
1345
|
+
agentId: string;
|
|
1346
|
+
platformRunId?: string;
|
|
1347
|
+
platformSessionId: string;
|
|
1348
|
+
platformUserId?: string;
|
|
1349
|
+
skillVersion?: string;
|
|
1350
|
+
};
|
|
1137
1351
|
AgentResultCreateResp: {
|
|
1138
1352
|
jobRunId: string;
|
|
1139
1353
|
resultId: string;
|
|
@@ -1146,32 +1360,6 @@ export interface components {
|
|
|
1146
1360
|
AgentResultGetResp: {
|
|
1147
1361
|
result: components["schemas"]["AgentStoredResult"];
|
|
1148
1362
|
};
|
|
1149
|
-
AgentResultListReq: {
|
|
1150
|
-
page: number | bigint;
|
|
1151
|
-
platformSessionId?: string;
|
|
1152
|
-
size: number | bigint;
|
|
1153
|
-
};
|
|
1154
|
-
AgentResultListResp: {
|
|
1155
|
-
list: components["schemas"]["AgentStoredResult"][];
|
|
1156
|
-
page: number | bigint;
|
|
1157
|
-
size: number | bigint;
|
|
1158
|
-
total: number | bigint;
|
|
1159
|
-
};
|
|
1160
|
-
AgentResultPinReq: {
|
|
1161
|
-
canvasId: string;
|
|
1162
|
-
position?: unknown;
|
|
1163
|
-
resultId: string;
|
|
1164
|
-
};
|
|
1165
|
-
AgentResultPinResp: {
|
|
1166
|
-
cardId: string;
|
|
1167
|
-
};
|
|
1168
|
-
AgentResultSource: {
|
|
1169
|
-
agentId: string;
|
|
1170
|
-
platformRunId?: string;
|
|
1171
|
-
platformSessionId: string;
|
|
1172
|
-
platformUserId?: string;
|
|
1173
|
-
skillVersion?: string;
|
|
1174
|
-
};
|
|
1175
1363
|
AgentStoredResult: {
|
|
1176
1364
|
agentId: string;
|
|
1177
1365
|
byteSize: number | bigint;
|
|
@@ -1185,324 +1373,266 @@ export interface components {
|
|
|
1185
1373
|
skillVersion: string;
|
|
1186
1374
|
sourceKind: string;
|
|
1187
1375
|
};
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
roles: components["schemas"]["AppAccessMemberRoleResp"][];
|
|
1193
|
-
userId: string;
|
|
1194
|
-
userName?: string;
|
|
1195
|
-
};
|
|
1196
|
-
AppAccessMemberRoleResp: {
|
|
1197
|
-
roleId: string;
|
|
1198
|
-
roleKey: string;
|
|
1199
|
-
roleName: string;
|
|
1200
|
-
sources: components["schemas"]["AppAccessRoleSourceResp"][];
|
|
1201
|
-
};
|
|
1202
|
-
AppAccessMembersListReq: {
|
|
1203
|
-
appId: string;
|
|
1204
|
-
/** @description 毫秒,闭区间,精度为秒 */
|
|
1205
|
-
grantedAtEnd?: number | bigint;
|
|
1206
|
-
/** @description 毫秒,闭区间,精度为秒 */
|
|
1207
|
-
grantedAtStart?: number | bigint;
|
|
1208
|
-
page?: number | bigint;
|
|
1209
|
-
/** @description 任一命中即可,大小写不敏感 */
|
|
1210
|
-
roleKeys?: string[];
|
|
1211
|
-
size?: number | bigint;
|
|
1376
|
+
AgentResultListReq: {
|
|
1377
|
+
page: number | bigint;
|
|
1378
|
+
platformSessionId?: string;
|
|
1379
|
+
size: number | bigint;
|
|
1212
1380
|
};
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
allActiveMembers: number | bigint;
|
|
1216
|
-
appId: string;
|
|
1217
|
-
list: components["schemas"]["AppAccessMemberResp"][];
|
|
1381
|
+
AgentResultListResp: {
|
|
1382
|
+
list: components["schemas"]["AgentStoredResult"][];
|
|
1218
1383
|
page: number | bigint;
|
|
1219
|
-
productionVersionId?: string;
|
|
1220
|
-
/** @description 1:已发布 2:未发布 */
|
|
1221
|
-
published: number | bigint;
|
|
1222
|
-
roles: components["schemas"]["AppAccessRoleResp"][];
|
|
1223
1384
|
size: number | bigint;
|
|
1224
1385
|
total: number | bigint;
|
|
1225
1386
|
};
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
/** @description
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
AppAccessRoleSourceResp: {
|
|
1236
|
-
groupId?: string;
|
|
1237
|
-
groupName?: string;
|
|
1238
|
-
/** @description direct / group */
|
|
1239
|
-
type: string;
|
|
1387
|
+
AgentCardUpdateReq: {
|
|
1388
|
+
canvasId?: string;
|
|
1389
|
+
cardId: string;
|
|
1390
|
+
cardSpec: unknown;
|
|
1391
|
+
/** @description 读取到的完整原卡内容,变化时返回HTTP409 */
|
|
1392
|
+
expectedCardSpec: unknown;
|
|
1393
|
+
/** @description 画布内顺序:不传 = 不改(转调 unssvr 时补 -1),传了原样透传;用指针区分「没传」和「传 0」 */
|
|
1394
|
+
ord?: number | bigint;
|
|
1395
|
+
position?: unknown;
|
|
1240
1396
|
};
|
|
1241
|
-
|
|
1242
|
-
|
|
1397
|
+
AgentCardUpdateResp: {
|
|
1398
|
+
cardId: string;
|
|
1243
1399
|
};
|
|
1244
|
-
|
|
1245
|
-
|
|
1400
|
+
AgentCardListReq: {
|
|
1401
|
+
canvasId: string;
|
|
1402
|
+
page: number | bigint;
|
|
1403
|
+
size: number | bigint;
|
|
1246
1404
|
};
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1405
|
+
AgentCardListResp: {
|
|
1406
|
+
list: components["schemas"]["AgentCardGetResp"][];
|
|
1407
|
+
page: number | bigint;
|
|
1408
|
+
size: number | bigint;
|
|
1409
|
+
total: number | bigint;
|
|
1250
1410
|
};
|
|
1251
|
-
|
|
1252
|
-
|
|
1411
|
+
AgentResultPinReq: {
|
|
1412
|
+
canvasId: string;
|
|
1413
|
+
position?: unknown;
|
|
1414
|
+
resultId: string;
|
|
1253
1415
|
};
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
parts: components["schemas"]["AssetFileMultipartPart"][];
|
|
1257
|
-
uploadId: string;
|
|
1416
|
+
AgentResultPinResp: {
|
|
1417
|
+
cardId: string;
|
|
1258
1418
|
};
|
|
1259
|
-
|
|
1419
|
+
AgentJobCreateReq: {
|
|
1420
|
+
cardId?: string;
|
|
1421
|
+
cronExpr?: string;
|
|
1260
1422
|
expiresAt?: number | bigint;
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1423
|
+
intervalSeconds?: number | bigint;
|
|
1424
|
+
name: string;
|
|
1425
|
+
notify?: unknown;
|
|
1426
|
+
scheduleKind: string;
|
|
1427
|
+
sessionId: string;
|
|
1428
|
+
sourceBlockId?: string;
|
|
1429
|
+
sourceId?: string;
|
|
1430
|
+
sourceName?: string;
|
|
1431
|
+
sourceType: string;
|
|
1432
|
+
task: unknown;
|
|
1433
|
+
type?: string;
|
|
1264
1434
|
};
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1435
|
+
AgentJobMutationResp: {
|
|
1436
|
+
jobId: string;
|
|
1437
|
+
};
|
|
1438
|
+
AgentJobUpdateReq: {
|
|
1439
|
+
cardId?: string;
|
|
1440
|
+
cronExpr?: string;
|
|
1441
|
+
expiresAt?: number | bigint;
|
|
1442
|
+
intervalSeconds?: number | bigint;
|
|
1443
|
+
jobId: string;
|
|
1444
|
+
name?: string;
|
|
1445
|
+
notify?: unknown;
|
|
1446
|
+
/** @description 省略沿用原通知,1必须提供notify对象,2关闭通知且不提供notify */
|
|
1447
|
+
notifyEnabled?: number | bigint;
|
|
1448
|
+
scheduleKind?: string;
|
|
1272
1449
|
sessionId?: string;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1450
|
+
sourceBlockId?: string;
|
|
1451
|
+
sourceId?: string;
|
|
1452
|
+
sourceName?: string;
|
|
1453
|
+
sourceType?: string;
|
|
1454
|
+
task?: unknown;
|
|
1455
|
+
type?: string;
|
|
1276
1456
|
};
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
fileKey: string;
|
|
1280
|
-
filePath: string;
|
|
1281
|
-
partCount: number | bigint;
|
|
1282
|
-
partSize: number | bigint;
|
|
1283
|
-
uploadId: string;
|
|
1457
|
+
AgentJobIDReq: {
|
|
1458
|
+
jobId: string;
|
|
1284
1459
|
};
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
partNumber: number | bigint;
|
|
1460
|
+
AgentJobGetResp: {
|
|
1461
|
+
job: components["schemas"]["AgentJobRecord"];
|
|
1288
1462
|
};
|
|
1289
|
-
|
|
1463
|
+
AgentJobRecord: {
|
|
1464
|
+
attentionReason: string;
|
|
1465
|
+
cardId: string;
|
|
1466
|
+
createdAt: number | bigint;
|
|
1467
|
+
cronExpr: string;
|
|
1290
1468
|
expiresAt: number | bigint;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
size: number | bigint;
|
|
1309
|
-
useBy?: string;
|
|
1310
|
-
visibility?: string;
|
|
1469
|
+
intervalSeconds: number | bigint;
|
|
1470
|
+
jobId: string;
|
|
1471
|
+
lastFiredAt: number | bigint;
|
|
1472
|
+
name: string;
|
|
1473
|
+
nextRunAt: number | bigint;
|
|
1474
|
+
notify?: unknown;
|
|
1475
|
+
orphanedAt: number | bigint;
|
|
1476
|
+
scheduleKind: string;
|
|
1477
|
+
sessionId: string;
|
|
1478
|
+
sourceBlockId: string;
|
|
1479
|
+
sourceId: string;
|
|
1480
|
+
sourceName: string;
|
|
1481
|
+
sourceType: string;
|
|
1482
|
+
status: string;
|
|
1483
|
+
task: unknown;
|
|
1484
|
+
type: string;
|
|
1485
|
+
updatedAt: number | bigint;
|
|
1311
1486
|
};
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
postUrl: string;
|
|
1487
|
+
AgentJobListReq: {
|
|
1488
|
+
cardId?: string;
|
|
1489
|
+
page: number | bigint;
|
|
1490
|
+
search?: string;
|
|
1491
|
+
size: number | bigint;
|
|
1492
|
+
sourceId?: string;
|
|
1493
|
+
sourceType?: string;
|
|
1494
|
+
/** @description active / paused / needs_attention / expired */
|
|
1495
|
+
status?: string;
|
|
1496
|
+
type?: string;
|
|
1323
1497
|
};
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1498
|
+
AgentJobListResp: {
|
|
1499
|
+
list: components["schemas"]["AgentJobRecord"][];
|
|
1500
|
+
page: number | bigint;
|
|
1501
|
+
size: number | bigint;
|
|
1502
|
+
total: number | bigint;
|
|
1327
1503
|
};
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
fileName: string;
|
|
1332
|
-
isPublic?: boolean;
|
|
1333
|
-
sha256?: string;
|
|
1334
|
-
size?: number | bigint;
|
|
1335
|
-
sizeBytes: number | bigint;
|
|
1336
|
-
storageKey?: string;
|
|
1337
|
-
useBy?: string;
|
|
1504
|
+
AgentJobRunGetReq: {
|
|
1505
|
+
jobId: string;
|
|
1506
|
+
jobRunId: string;
|
|
1338
1507
|
};
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
fileUrl?: string;
|
|
1342
|
-
/** @description 先写入全部签名字段,再追加 file;policy 约束 key 和大小 */
|
|
1343
|
-
postFields: {
|
|
1344
|
-
[key: string]: string;
|
|
1345
|
-
};
|
|
1346
|
-
/** @description 预签名 POST 地址;multipart/form-data 上传 */
|
|
1347
|
-
postUrl: string;
|
|
1508
|
+
AgentJobRunGetResp: {
|
|
1509
|
+
run: components["schemas"]["AgentJobRunRecord"];
|
|
1348
1510
|
};
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1511
|
+
AgentJobRunRecord: {
|
|
1512
|
+
dispatchState: string;
|
|
1513
|
+
errorCode?: string;
|
|
1514
|
+
errorMessage?: string;
|
|
1515
|
+
finishedAt?: number | bigint;
|
|
1516
|
+
firedAt: number | bigint;
|
|
1517
|
+
jobId: string;
|
|
1518
|
+
jobRunId: string;
|
|
1519
|
+
resultId?: string;
|
|
1520
|
+
resultSummary?: unknown;
|
|
1521
|
+
severity?: string;
|
|
1522
|
+
status: string;
|
|
1523
|
+
trigger?: string;
|
|
1360
1524
|
};
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1525
|
+
AgentJobRunListReq: {
|
|
1526
|
+
jobId: string;
|
|
1527
|
+
page: number | bigint;
|
|
1528
|
+
size: number | bigint;
|
|
1529
|
+
status?: string;
|
|
1365
1530
|
};
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
/** @description 本发现响应合同版本,与单个 Control 的冻结合同版本独立 */
|
|
1372
|
-
contractVersion: string;
|
|
1373
|
-
deprecations: components["schemas"]["CapabilityDeprecation"][];
|
|
1374
|
-
product: string;
|
|
1375
|
-
/** @description 仅返回显式配置的可信产品发布版本,未配置时省略 */
|
|
1376
|
-
productVersion?: string;
|
|
1377
|
-
/** @description control/v1 公共 SDK 合同,不是 npm 版本 */
|
|
1378
|
-
sdkContractVersions: string[];
|
|
1531
|
+
AgentJobRunListResp: {
|
|
1532
|
+
list: components["schemas"]["AgentJobRunRecord"][];
|
|
1533
|
+
page: number | bigint;
|
|
1534
|
+
size: number | bigint;
|
|
1535
|
+
total: number | bigint;
|
|
1379
1536
|
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
message: string;
|
|
1537
|
+
AgentJobTriggerResp: {
|
|
1538
|
+
dispatchState: string;
|
|
1539
|
+
jobId: string;
|
|
1540
|
+
jobRunId: string;
|
|
1385
1541
|
};
|
|
1386
|
-
|
|
1387
|
-
|
|
1542
|
+
AgentCanvasListReq: {
|
|
1543
|
+
page: number | bigint;
|
|
1544
|
+
sessionId?: string;
|
|
1545
|
+
size: number | bigint;
|
|
1388
1546
|
};
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
messageId: string;
|
|
1395
|
-
status: string;
|
|
1396
|
-
type: string;
|
|
1547
|
+
AgentCanvasListResp: {
|
|
1548
|
+
list: components["schemas"]["AgentCanvasRecord"][];
|
|
1549
|
+
page: number | bigint;
|
|
1550
|
+
size: number | bigint;
|
|
1551
|
+
total: number | bigint;
|
|
1397
1552
|
};
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1553
|
+
AgentCanvasRecord: {
|
|
1554
|
+
canvasId: string;
|
|
1555
|
+
createdAt: number | bigint;
|
|
1401
1556
|
name: string;
|
|
1402
|
-
|
|
1403
|
-
|
|
1557
|
+
sessionId: string;
|
|
1558
|
+
updatedAt: number | bigint;
|
|
1404
1559
|
};
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1560
|
+
AgentLibraryListReq: {
|
|
1561
|
+
page: number | bigint;
|
|
1562
|
+
search?: string;
|
|
1563
|
+
size: number | bigint;
|
|
1564
|
+
tags?: string[];
|
|
1409
1565
|
};
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
password: string;
|
|
1416
|
-
username: string;
|
|
1566
|
+
AgentLibraryListResp: {
|
|
1567
|
+
list: components["schemas"]["AgentLibraryItem"][];
|
|
1568
|
+
page: number | bigint;
|
|
1569
|
+
size: number | bigint;
|
|
1570
|
+
total: number | bigint;
|
|
1417
1571
|
};
|
|
1418
|
-
|
|
1419
|
-
|
|
1572
|
+
AgentLibraryItem: {
|
|
1573
|
+
cardKey: string;
|
|
1574
|
+
cardSpec: unknown;
|
|
1575
|
+
createdAt: number | bigint;
|
|
1576
|
+
libraryItemId: string;
|
|
1577
|
+
sourceSessionId: string;
|
|
1578
|
+
tags: string[];
|
|
1579
|
+
updatedAt: number | bigint;
|
|
1420
1580
|
};
|
|
1421
|
-
|
|
1422
|
-
|
|
1581
|
+
AgentLibraryGetReq: {
|
|
1582
|
+
libraryItemId: string;
|
|
1423
1583
|
};
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
id?: string;
|
|
1427
|
-
/** @description 类型专属附加信息,序列化后≤500字节 */
|
|
1428
|
-
meta?: {
|
|
1429
|
-
[key: string]: string;
|
|
1430
|
-
};
|
|
1431
|
-
/** @description 人读显示名(接替废弃的 source),≤100字符 */
|
|
1432
|
-
name?: string;
|
|
1433
|
-
/**
|
|
1434
|
-
* @description 枚举 app/other/system,缺省 other;system=平台内部服务,仅 usage_type=internal 的 API key 可用(否则 400),建信归 workspace 分组(System tab)
|
|
1435
|
-
* @default other
|
|
1436
|
-
* @enum {string}
|
|
1437
|
-
*/
|
|
1438
|
-
type?: "app" | "other" | "system";
|
|
1584
|
+
AgentLibraryGetResp: {
|
|
1585
|
+
item: components["schemas"]["AgentLibraryItem"];
|
|
1439
1586
|
};
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
size?: number | bigint;
|
|
1446
|
-
statuses?: string[];
|
|
1447
|
-
updatedAtEnd?: string;
|
|
1448
|
-
updatedAtStart?: string;
|
|
1587
|
+
AgentLibraryCreateReq: {
|
|
1588
|
+
cardKey: string;
|
|
1589
|
+
cardSpec: unknown;
|
|
1590
|
+
sourceSessionId?: string;
|
|
1591
|
+
tags?: string[];
|
|
1449
1592
|
};
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
nickName?: string;
|
|
1453
|
-
roles: components["schemas"]["PlatformMemberRoleResp"][];
|
|
1454
|
-
status: string;
|
|
1455
|
-
updatedAt: string;
|
|
1456
|
-
userId: string;
|
|
1457
|
-
userName?: string;
|
|
1593
|
+
AgentLibraryMutationResp: {
|
|
1594
|
+
libraryItemId: string;
|
|
1458
1595
|
};
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1596
|
+
AgentLibraryUpdateReq: {
|
|
1597
|
+
cardSpec: unknown;
|
|
1598
|
+
expectedItem: components["schemas"]["AgentLibrarySnapshot"];
|
|
1599
|
+
libraryItemId: string;
|
|
1600
|
+
sourceSessionId?: string;
|
|
1601
|
+
tags?: string[];
|
|
1464
1602
|
};
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1603
|
+
AgentLibrarySnapshot: {
|
|
1604
|
+
cardKey: string;
|
|
1605
|
+
cardSpec: unknown;
|
|
1606
|
+
sourceSessionId: string;
|
|
1607
|
+
tags: string[];
|
|
1470
1608
|
};
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
availability: string;
|
|
1476
|
-
code: string;
|
|
1477
|
-
contractVersions: string[];
|
|
1478
|
-
/** @description 仅发布、实现和 readiness 均满足时为 true */
|
|
1479
|
-
enabled: boolean;
|
|
1480
|
-
/** @description 公开发布开关与当前 Workspace 灰度的交集,不表示 runtime 就绪 */
|
|
1481
|
-
releaseEnabled: boolean;
|
|
1482
|
-
/** @description disabled / not_supported / unavailable / readiness_unknown / ready */
|
|
1483
|
-
state: string;
|
|
1609
|
+
AgentCardDeleteReq: {
|
|
1610
|
+
canvasId: string;
|
|
1611
|
+
cardId: string;
|
|
1612
|
+
expectedCardSpec: unknown;
|
|
1484
1613
|
};
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
content: string;
|
|
1488
|
-
idempotencyKey: string;
|
|
1489
|
-
link?: string;
|
|
1490
|
-
mode?: string;
|
|
1491
|
-
recipientUserId: string;
|
|
1492
|
-
sender?: components["schemas"]["NotificationSender"];
|
|
1493
|
-
/** @description 已废弃:过渡期作 sender.name 别名(sender.name 优先),后续移除 */
|
|
1494
|
-
source?: string;
|
|
1495
|
-
title: string;
|
|
1496
|
-
type: string;
|
|
1614
|
+
AgentCardDeleteResp: {
|
|
1615
|
+
cardId: string;
|
|
1497
1616
|
};
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1617
|
+
AgentAnalysisDispatchReq: {
|
|
1618
|
+
canvasId?: string;
|
|
1619
|
+
cardId?: string;
|
|
1620
|
+
kind: string;
|
|
1621
|
+
operationId: string;
|
|
1622
|
+
resultId?: string;
|
|
1623
|
+
task: unknown;
|
|
1502
1624
|
};
|
|
1503
|
-
|
|
1625
|
+
AgentAnalysisDispatchResp: {
|
|
1626
|
+
dispatchState: string;
|
|
1504
1627
|
errorCode: string;
|
|
1505
|
-
|
|
1628
|
+
errorMessage: string;
|
|
1629
|
+
runId: string;
|
|
1630
|
+
};
|
|
1631
|
+
AgentAnalysisGetReq: {
|
|
1632
|
+
runId: string;
|
|
1633
|
+
};
|
|
1634
|
+
AgentAnalysisGetResp: {
|
|
1635
|
+
run: components["schemas"]["AgentJobRunRecord"];
|
|
1506
1636
|
};
|
|
1507
1637
|
SdksystemInfoData: components["schemas"]["InfoResp"];
|
|
1508
1638
|
SdksystemInfoWire: {
|
|
@@ -1615,7 +1745,7 @@ export interface components {
|
|
|
1615
1745
|
msg: string;
|
|
1616
1746
|
data: components["schemas"]["SdkmqttAuthDeleteData"];
|
|
1617
1747
|
};
|
|
1618
|
-
SdkcapabilitiesDiscoverData: components["schemas"]["
|
|
1748
|
+
SdkcapabilitiesDiscoverData: components["schemas"]["CapabilityDiscoverV2Resp"];
|
|
1619
1749
|
SdkcapabilitiesDiscoverWire: components["schemas"]["SdkcapabilitiesDiscoverData"];
|
|
1620
1750
|
SdkagentCardsGetRequest: components["schemas"]["AgentCardGetReq"];
|
|
1621
1751
|
SdkagentCardsGetData: components["schemas"]["AgentCardGetResp"];
|