@lobehub/market-sdk 0.28.0 → 0.28.2-beta.1
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 +580 -3
- package/dist/index.mjs +443 -147
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -255,7 +255,7 @@ interface AgentListQuery {
|
|
|
255
255
|
/** Search query string */
|
|
256
256
|
q?: string;
|
|
257
257
|
/** Sort field */
|
|
258
|
-
sort?: 'createdAt' | 'updatedAt' | 'name';
|
|
258
|
+
sort?: 'createdAt' | 'updatedAt' | 'name' | 'tokenUsage' | 'knowledgeCount' | 'pluginCount' | 'recommended';
|
|
259
259
|
/** Publication status filter */
|
|
260
260
|
status?: 'published' | 'unpublished' | 'archived' | 'deprecated' | 'all';
|
|
261
261
|
/** Visibility filter */
|
|
@@ -802,6 +802,408 @@ interface OwnAgentListQuery {
|
|
|
802
802
|
status?: AgentStatus;
|
|
803
803
|
}
|
|
804
804
|
|
|
805
|
+
/**
|
|
806
|
+
* Agent Group Types
|
|
807
|
+
*
|
|
808
|
+
* Type definitions for agent group-related API requests and responses
|
|
809
|
+
*/
|
|
810
|
+
/**
|
|
811
|
+
* Agent group list query parameters
|
|
812
|
+
*/
|
|
813
|
+
interface AgentGroupListQuery {
|
|
814
|
+
/** Filter by category */
|
|
815
|
+
category?: string;
|
|
816
|
+
/** Filter by official status */
|
|
817
|
+
isOfficial?: 'true' | 'false';
|
|
818
|
+
/** Locale for localized content */
|
|
819
|
+
locale?: string;
|
|
820
|
+
/** Sort order */
|
|
821
|
+
order?: 'asc' | 'desc';
|
|
822
|
+
/** Filter by owner ID */
|
|
823
|
+
ownerId?: number | string;
|
|
824
|
+
/** Current page number (1-based) */
|
|
825
|
+
page?: number;
|
|
826
|
+
/** Number of items per page */
|
|
827
|
+
pageSize?: number;
|
|
828
|
+
/** Search query string */
|
|
829
|
+
q?: string;
|
|
830
|
+
/** Sort field */
|
|
831
|
+
sort?: 'createdAt' | 'updatedAt' | 'name' | 'recommended';
|
|
832
|
+
/** Publication status filter */
|
|
833
|
+
status?: 'published' | 'unpublished' | 'archived' | 'deprecated' | 'all';
|
|
834
|
+
/** Visibility filter */
|
|
835
|
+
visibility?: 'public' | 'private' | 'internal' | 'all';
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Own agent groups list query parameters (authenticated)
|
|
839
|
+
*/
|
|
840
|
+
interface OwnAgentGroupListQuery {
|
|
841
|
+
/** Locale for localized content */
|
|
842
|
+
locale?: string;
|
|
843
|
+
/** Sort order */
|
|
844
|
+
order?: 'asc' | 'desc';
|
|
845
|
+
/** Current page number (1-based) */
|
|
846
|
+
page?: number;
|
|
847
|
+
/** Number of items per page */
|
|
848
|
+
pageSize?: number;
|
|
849
|
+
/** Search query string */
|
|
850
|
+
q?: string;
|
|
851
|
+
/** Sort field */
|
|
852
|
+
sort?: 'createdAt' | 'updatedAt' | 'name';
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Agent group item in list
|
|
856
|
+
* Aligned with AgentItem structure for consistency
|
|
857
|
+
*/
|
|
858
|
+
interface AgentGroupItem {
|
|
859
|
+
/** Avatar URL (from current version) */
|
|
860
|
+
avatar?: string;
|
|
861
|
+
/** Background color (from current version) */
|
|
862
|
+
backgroundColor?: string;
|
|
863
|
+
/** Category (from current version) */
|
|
864
|
+
category?: string;
|
|
865
|
+
/** Comment count */
|
|
866
|
+
commentCount?: number;
|
|
867
|
+
/** Creation timestamp */
|
|
868
|
+
createdAt: string;
|
|
869
|
+
/** Current version ID */
|
|
870
|
+
currentVersionId?: number;
|
|
871
|
+
/** Description (from current version) */
|
|
872
|
+
description?: string;
|
|
873
|
+
/** Favorite count */
|
|
874
|
+
favoriteCount?: number;
|
|
875
|
+
/** Homepage URL */
|
|
876
|
+
homepage?: string;
|
|
877
|
+
/** Unique identifier (used as id for consistency) */
|
|
878
|
+
id: string;
|
|
879
|
+
/** Unique identifier */
|
|
880
|
+
identifier: string;
|
|
881
|
+
/** Install count */
|
|
882
|
+
installCount?: number;
|
|
883
|
+
/** Whether this is a featured group */
|
|
884
|
+
isFeatured?: boolean;
|
|
885
|
+
/** Whether this is official */
|
|
886
|
+
isOfficial?: boolean;
|
|
887
|
+
/** Like count */
|
|
888
|
+
likeCount?: number;
|
|
889
|
+
/** Group name */
|
|
890
|
+
name: string;
|
|
891
|
+
/** Owner account ID */
|
|
892
|
+
ownerId: number;
|
|
893
|
+
/** Average rating */
|
|
894
|
+
ratingAverage?: number;
|
|
895
|
+
/** Rating count */
|
|
896
|
+
ratingCount?: number;
|
|
897
|
+
/** Safety check status */
|
|
898
|
+
safetyCheck?: string;
|
|
899
|
+
/** Publication status */
|
|
900
|
+
status?: 'published' | 'unpublished' | 'archived' | 'deprecated';
|
|
901
|
+
/** Last update timestamp */
|
|
902
|
+
updatedAt: string;
|
|
903
|
+
/** Version number (from current version) */
|
|
904
|
+
versionNumber?: number;
|
|
905
|
+
/** Visibility */
|
|
906
|
+
visibility?: 'public' | 'private' | 'internal';
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Agent group list response
|
|
910
|
+
* Aligned with AgentListResponse structure for consistency
|
|
911
|
+
*/
|
|
912
|
+
interface AgentGroupListResponse {
|
|
913
|
+
currentPage: number;
|
|
914
|
+
items: AgentGroupItem[];
|
|
915
|
+
pageSize: number;
|
|
916
|
+
totalCount: number;
|
|
917
|
+
totalPages: number;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Agent group detail query parameters
|
|
921
|
+
*/
|
|
922
|
+
interface AgentGroupDetailQuery {
|
|
923
|
+
/** Group identifier */
|
|
924
|
+
identifier: string;
|
|
925
|
+
/** Locale for localized content */
|
|
926
|
+
locale?: string;
|
|
927
|
+
/** Specific version number to retrieve */
|
|
928
|
+
version?: number;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Member agent in group
|
|
932
|
+
*/
|
|
933
|
+
interface MemberAgent {
|
|
934
|
+
/** A2A protocol version */
|
|
935
|
+
a2aProtocolVersion?: string;
|
|
936
|
+
/** Avatar */
|
|
937
|
+
avatar?: string;
|
|
938
|
+
/** Category */
|
|
939
|
+
category?: string;
|
|
940
|
+
/** Configuration */
|
|
941
|
+
config: any;
|
|
942
|
+
/** Default input modes */
|
|
943
|
+
defaultInputModes?: string[];
|
|
944
|
+
/** Default output modes */
|
|
945
|
+
defaultOutputModes?: string[];
|
|
946
|
+
/** Description */
|
|
947
|
+
description: string;
|
|
948
|
+
/** Display order */
|
|
949
|
+
displayOrder: number;
|
|
950
|
+
/** Documentation URL */
|
|
951
|
+
documentationUrl?: string;
|
|
952
|
+
/** Whether enabled */
|
|
953
|
+
enabled: boolean;
|
|
954
|
+
/** Extensions */
|
|
955
|
+
extensions?: any[];
|
|
956
|
+
/** Whether push notifications are supported */
|
|
957
|
+
hasPushNotifications?: boolean;
|
|
958
|
+
/** Whether state transition history is supported */
|
|
959
|
+
hasStateTransitionHistory?: boolean;
|
|
960
|
+
/** Whether streaming is supported */
|
|
961
|
+
hasStreaming?: boolean;
|
|
962
|
+
/** Unique identifier */
|
|
963
|
+
identifier: string;
|
|
964
|
+
/** Interfaces */
|
|
965
|
+
interfaces?: any[];
|
|
966
|
+
/** Name */
|
|
967
|
+
name: string;
|
|
968
|
+
/** Preferred transport */
|
|
969
|
+
preferredTransport?: string;
|
|
970
|
+
/** Role */
|
|
971
|
+
role: 'supervisor' | 'participant';
|
|
972
|
+
/** Security requirements */
|
|
973
|
+
securityRequirements?: any[];
|
|
974
|
+
/** Security schemes */
|
|
975
|
+
securitySchemes?: any;
|
|
976
|
+
/** Summary */
|
|
977
|
+
summary?: string;
|
|
978
|
+
/** Whether authenticated extended card is supported */
|
|
979
|
+
supportsAuthenticatedExtendedCard?: boolean;
|
|
980
|
+
/** Tags */
|
|
981
|
+
tags?: any;
|
|
982
|
+
/** URL */
|
|
983
|
+
url: string;
|
|
984
|
+
/** Version */
|
|
985
|
+
version: string;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Agent group detail response
|
|
989
|
+
*/
|
|
990
|
+
interface AgentGroupDetail {
|
|
991
|
+
group: {
|
|
992
|
+
avatar?: string;
|
|
993
|
+
backgroundColor?: string;
|
|
994
|
+
category?: string;
|
|
995
|
+
config?: any;
|
|
996
|
+
createdAt: string;
|
|
997
|
+
currentVersionId?: number;
|
|
998
|
+
description: string;
|
|
999
|
+
homepage?: string;
|
|
1000
|
+
identifier: string;
|
|
1001
|
+
isFeatured?: boolean;
|
|
1002
|
+
isOfficial?: boolean;
|
|
1003
|
+
name: string;
|
|
1004
|
+
ownerId: number;
|
|
1005
|
+
status: string;
|
|
1006
|
+
tags?: any;
|
|
1007
|
+
updatedAt: string;
|
|
1008
|
+
version: string;
|
|
1009
|
+
versionNumber: number;
|
|
1010
|
+
visibility: string;
|
|
1011
|
+
};
|
|
1012
|
+
memberAgents: MemberAgent[];
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Member agent for creation
|
|
1016
|
+
*/
|
|
1017
|
+
interface CreateMemberAgent {
|
|
1018
|
+
a2aProtocolVersion?: string;
|
|
1019
|
+
avatar?: string;
|
|
1020
|
+
category?: string;
|
|
1021
|
+
config: any;
|
|
1022
|
+
defaultInputModes?: string[];
|
|
1023
|
+
defaultOutputModes?: string[];
|
|
1024
|
+
description: string;
|
|
1025
|
+
displayOrder?: number;
|
|
1026
|
+
documentationUrl?: string;
|
|
1027
|
+
extensions?: any[];
|
|
1028
|
+
hasPushNotifications?: boolean;
|
|
1029
|
+
hasStateTransitionHistory?: boolean;
|
|
1030
|
+
hasStreaming?: boolean;
|
|
1031
|
+
identifier: string;
|
|
1032
|
+
interfaces?: any[];
|
|
1033
|
+
name: string;
|
|
1034
|
+
preferredTransport?: string;
|
|
1035
|
+
role: 'supervisor' | 'participant';
|
|
1036
|
+
securityRequirements?: any[];
|
|
1037
|
+
securitySchemes?: any;
|
|
1038
|
+
summary?: string;
|
|
1039
|
+
supportsAuthenticatedExtendedCard?: boolean;
|
|
1040
|
+
tags?: any;
|
|
1041
|
+
url: string;
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Create agent group request
|
|
1045
|
+
*/
|
|
1046
|
+
interface AgentGroupCreateRequest {
|
|
1047
|
+
avatar?: string;
|
|
1048
|
+
backgroundColor?: string;
|
|
1049
|
+
category?: string;
|
|
1050
|
+
config?: any;
|
|
1051
|
+
description: string;
|
|
1052
|
+
homepage?: string;
|
|
1053
|
+
identifier: string;
|
|
1054
|
+
memberAgents: CreateMemberAgent[];
|
|
1055
|
+
name: string;
|
|
1056
|
+
versionName?: string;
|
|
1057
|
+
visibility?: 'public' | 'private' | 'internal';
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Create agent group response
|
|
1061
|
+
*/
|
|
1062
|
+
interface AgentGroupCreateResponse {
|
|
1063
|
+
group: {
|
|
1064
|
+
avatar?: string;
|
|
1065
|
+
backgroundColor?: string;
|
|
1066
|
+
category?: string;
|
|
1067
|
+
createdAt: string;
|
|
1068
|
+
currentVersionId?: number;
|
|
1069
|
+
description: string;
|
|
1070
|
+
homepage?: string;
|
|
1071
|
+
id: number;
|
|
1072
|
+
identifier: string;
|
|
1073
|
+
isFeatured: boolean;
|
|
1074
|
+
isOfficial: boolean;
|
|
1075
|
+
name: string;
|
|
1076
|
+
ownerId: number;
|
|
1077
|
+
status: string;
|
|
1078
|
+
updatedAt: string;
|
|
1079
|
+
visibility: string;
|
|
1080
|
+
};
|
|
1081
|
+
groupVersion: {
|
|
1082
|
+
agentGroupId: number;
|
|
1083
|
+
createdAt: string;
|
|
1084
|
+
description: string;
|
|
1085
|
+
id: number;
|
|
1086
|
+
isLatest: boolean;
|
|
1087
|
+
name: string;
|
|
1088
|
+
status: string;
|
|
1089
|
+
version: string;
|
|
1090
|
+
versionNumber: number;
|
|
1091
|
+
};
|
|
1092
|
+
memberAgents: Array<{
|
|
1093
|
+
agentGroupId: number;
|
|
1094
|
+
createdAt: string;
|
|
1095
|
+
displayOrder: number;
|
|
1096
|
+
enabled: boolean;
|
|
1097
|
+
id: number;
|
|
1098
|
+
identifier: string;
|
|
1099
|
+
name: string;
|
|
1100
|
+
role: string;
|
|
1101
|
+
updatedAt: string;
|
|
1102
|
+
}>;
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Member agent update for version create
|
|
1106
|
+
*/
|
|
1107
|
+
interface UpdateMemberAgent {
|
|
1108
|
+
avatar?: string;
|
|
1109
|
+
category?: string;
|
|
1110
|
+
config?: any;
|
|
1111
|
+
description?: string;
|
|
1112
|
+
identifier: string;
|
|
1113
|
+
name?: string;
|
|
1114
|
+
url?: string;
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Create agent group version request
|
|
1118
|
+
*/
|
|
1119
|
+
interface AgentGroupVersionCreateRequest {
|
|
1120
|
+
avatar?: string;
|
|
1121
|
+
backgroundColor?: string;
|
|
1122
|
+
category?: string;
|
|
1123
|
+
changelog?: string;
|
|
1124
|
+
config?: any;
|
|
1125
|
+
description?: string;
|
|
1126
|
+
identifier: string;
|
|
1127
|
+
memberAgents?: UpdateMemberAgent[];
|
|
1128
|
+
name?: string;
|
|
1129
|
+
tags?: any;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Create agent group version response
|
|
1133
|
+
*/
|
|
1134
|
+
interface AgentGroupVersionCreateResponse {
|
|
1135
|
+
groupVersion: {
|
|
1136
|
+
agentGroupId: number;
|
|
1137
|
+
changelog?: string;
|
|
1138
|
+
createdAt: string;
|
|
1139
|
+
description: string;
|
|
1140
|
+
id: number;
|
|
1141
|
+
isLatest: boolean;
|
|
1142
|
+
name: string;
|
|
1143
|
+
status: string;
|
|
1144
|
+
version: string;
|
|
1145
|
+
versionNumber: number;
|
|
1146
|
+
};
|
|
1147
|
+
memberVersions: Array<{
|
|
1148
|
+
agentForGroupId: number;
|
|
1149
|
+
createdAt: string;
|
|
1150
|
+
description: string;
|
|
1151
|
+
id: number;
|
|
1152
|
+
name: string;
|
|
1153
|
+
url: string;
|
|
1154
|
+
version: string;
|
|
1155
|
+
versionNumber: number;
|
|
1156
|
+
}>;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Modify agent group request
|
|
1160
|
+
*/
|
|
1161
|
+
interface AgentGroupModifyRequest {
|
|
1162
|
+
avatar?: string;
|
|
1163
|
+
backgroundColor?: string;
|
|
1164
|
+
category?: string;
|
|
1165
|
+
homepage?: string;
|
|
1166
|
+
identifier: string;
|
|
1167
|
+
isFeatured?: boolean;
|
|
1168
|
+
isOfficial?: boolean;
|
|
1169
|
+
name?: string;
|
|
1170
|
+
status?: 'published' | 'unpublished' | 'archived' | 'deprecated';
|
|
1171
|
+
visibility?: 'public' | 'private' | 'internal';
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Modify agent group response
|
|
1175
|
+
*/
|
|
1176
|
+
interface AgentGroupModifyResponse {
|
|
1177
|
+
avatar?: string;
|
|
1178
|
+
backgroundColor?: string;
|
|
1179
|
+
category?: string;
|
|
1180
|
+
createdAt: string;
|
|
1181
|
+
currentVersionId?: number;
|
|
1182
|
+
description: string;
|
|
1183
|
+
homepage?: string;
|
|
1184
|
+
id: number;
|
|
1185
|
+
identifier: string;
|
|
1186
|
+
isFeatured: boolean;
|
|
1187
|
+
isOfficial: boolean;
|
|
1188
|
+
name: string;
|
|
1189
|
+
ownerId: number;
|
|
1190
|
+
status: string;
|
|
1191
|
+
updatedAt: string;
|
|
1192
|
+
visibility: string;
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Agent group status
|
|
1196
|
+
*/
|
|
1197
|
+
type AgentGroupStatus = 'published' | 'unpublished' | 'archived' | 'deprecated';
|
|
1198
|
+
/**
|
|
1199
|
+
* Agent group status change response
|
|
1200
|
+
*/
|
|
1201
|
+
interface AgentGroupStatusChangeResponse {
|
|
1202
|
+
identifier: string;
|
|
1203
|
+
status: AgentGroupStatus;
|
|
1204
|
+
success: boolean;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
805
1207
|
/**
|
|
806
1208
|
* Market Service Discovery Document
|
|
807
1209
|
*
|
|
@@ -1071,7 +1473,7 @@ interface PluginQueryParams {
|
|
|
1071
1473
|
/** Search query string */
|
|
1072
1474
|
q?: string;
|
|
1073
1475
|
/** Field to sort by */
|
|
1074
|
-
sort?: 'installCount' | 'createdAt' | 'updatedAt' | 'ratingAverage' | 'ratingCount' | 'isFeatured' | 'isValidated';
|
|
1476
|
+
sort?: 'installCount' | 'createdAt' | 'updatedAt' | 'ratingAverage' | 'ratingCount' | 'isFeatured' | 'isValidated' | 'recommended';
|
|
1075
1477
|
/** Filter by tags (comma-separated) */
|
|
1076
1478
|
tags?: string;
|
|
1077
1479
|
}
|
|
@@ -3591,6 +3993,149 @@ declare class AgentService extends BaseSDK {
|
|
|
3591
3993
|
deprecate(identifier: string, options?: globalThis.RequestInit): Promise<AgentStatusChangeResponse>;
|
|
3592
3994
|
}
|
|
3593
3995
|
|
|
3996
|
+
/**
|
|
3997
|
+
* Agent Groups Service
|
|
3998
|
+
*
|
|
3999
|
+
* Provides access to agent group-related functionality in the LobeHub Marketplace.
|
|
4000
|
+
* This service handles listing, creating, versioning, and managing agent groups.
|
|
4001
|
+
*/
|
|
4002
|
+
declare class AgentGroupService extends BaseSDK {
|
|
4003
|
+
/**
|
|
4004
|
+
* Retrieves a list of agent groups from the marketplace
|
|
4005
|
+
*
|
|
4006
|
+
* Supports filtering, pagination, and localization of results.
|
|
4007
|
+
*
|
|
4008
|
+
* @param params - Query parameters for filtering and pagination
|
|
4009
|
+
* @param options - Optional request options
|
|
4010
|
+
* @returns Promise resolving to the agent group list response containing items and pagination info
|
|
4011
|
+
*/
|
|
4012
|
+
getAgentGroupList(params?: AgentGroupListQuery, options?: globalThis.RequestInit): Promise<AgentGroupListResponse>;
|
|
4013
|
+
/**
|
|
4014
|
+
* Retrieves a list of agent groups owned by the authenticated user
|
|
4015
|
+
*
|
|
4016
|
+
* Returns all agent groups regardless of their publish status (published, unpublished,
|
|
4017
|
+
* archived, deprecated). Requires authentication.
|
|
4018
|
+
*
|
|
4019
|
+
* @param params - Query parameters for filtering and pagination
|
|
4020
|
+
* @param options - Optional request options (must include authentication)
|
|
4021
|
+
* @returns Promise resolving to the agent group list response containing items with status field
|
|
4022
|
+
*/
|
|
4023
|
+
getOwnAgentGroups(params?: OwnAgentGroupListQuery, options?: globalThis.RequestInit): Promise<AgentGroupListResponse>;
|
|
4024
|
+
/**
|
|
4025
|
+
* Retrieves detailed information about a specific agent group
|
|
4026
|
+
*
|
|
4027
|
+
* Returns complete agent group information including group metadata,
|
|
4028
|
+
* all member agents, and localized content.
|
|
4029
|
+
*
|
|
4030
|
+
* @param identifier - Unique identifier of the agent group
|
|
4031
|
+
* @param params - Query parameters for locale and version
|
|
4032
|
+
* @param options - Optional request options
|
|
4033
|
+
* @returns Promise resolving to the agent group detail information
|
|
4034
|
+
*/
|
|
4035
|
+
getAgentGroupDetail(identifier: string, params?: Omit<AgentGroupDetailQuery, 'identifier'>, options?: globalThis.RequestInit): Promise<AgentGroupDetail>;
|
|
4036
|
+
/**
|
|
4037
|
+
* Creates a new agent group in the marketplace
|
|
4038
|
+
*
|
|
4039
|
+
* Creates a new agent group with initial version (v1) and all member agents.
|
|
4040
|
+
* Requires authentication and ownership.
|
|
4041
|
+
*
|
|
4042
|
+
* @param groupData - The agent group data to create
|
|
4043
|
+
* @param options - Optional request options
|
|
4044
|
+
* @returns Promise resolving to the created agent group response
|
|
4045
|
+
*/
|
|
4046
|
+
createAgentGroup(groupData: AgentGroupCreateRequest, options?: globalThis.RequestInit): Promise<AgentGroupCreateResponse>;
|
|
4047
|
+
/**
|
|
4048
|
+
* Creates a new version for an existing agent group
|
|
4049
|
+
*
|
|
4050
|
+
* Creates a new version with unified version number for the group and all member agents.
|
|
4051
|
+
* Fields not provided will be inherited from the latest version.
|
|
4052
|
+
*
|
|
4053
|
+
* @param versionData - The version data to create
|
|
4054
|
+
* @param options - Optional request options
|
|
4055
|
+
* @returns Promise resolving to the created version response
|
|
4056
|
+
*/
|
|
4057
|
+
createAgentGroupVersion(versionData: AgentGroupVersionCreateRequest, options?: globalThis.RequestInit): Promise<AgentGroupVersionCreateResponse>;
|
|
4058
|
+
/**
|
|
4059
|
+
* Modifies an existing agent group
|
|
4060
|
+
*
|
|
4061
|
+
* Updates the agent group's base information. Can be used to change status,
|
|
4062
|
+
* metadata, or other group properties. Only the owner can modify the group.
|
|
4063
|
+
*
|
|
4064
|
+
* @param groupData - The agent group data to modify
|
|
4065
|
+
* @param options - Optional request options
|
|
4066
|
+
* @returns Promise resolving to the modified agent group response
|
|
4067
|
+
*/
|
|
4068
|
+
modifyAgentGroup(groupData: AgentGroupModifyRequest, options?: globalThis.RequestInit): Promise<AgentGroupModifyResponse>;
|
|
4069
|
+
/**
|
|
4070
|
+
* Checks if an agent group exists in the marketplace
|
|
4071
|
+
*
|
|
4072
|
+
* @param identifier - Unique identifier of the agent group
|
|
4073
|
+
* @param options - Optional request options
|
|
4074
|
+
* @returns Promise resolving to true if agent group exists, false otherwise
|
|
4075
|
+
*/
|
|
4076
|
+
checkAgentGroupExists(identifier: string, options?: globalThis.RequestInit): Promise<boolean>;
|
|
4077
|
+
/**
|
|
4078
|
+
* Changes the status of an agent group
|
|
4079
|
+
*
|
|
4080
|
+
* Internal helper method used by publish/unpublish/archive/deprecate methods.
|
|
4081
|
+
* Requires authentication.
|
|
4082
|
+
*
|
|
4083
|
+
* @param identifier - Unique identifier of the agent group
|
|
4084
|
+
* @param status - New status to set
|
|
4085
|
+
* @param options - Optional request options
|
|
4086
|
+
* @returns Promise resolving to the status change response
|
|
4087
|
+
*/
|
|
4088
|
+
private changeStatus;
|
|
4089
|
+
/**
|
|
4090
|
+
* Publishes an agent group to the marketplace
|
|
4091
|
+
*
|
|
4092
|
+
* Makes the agent group publicly visible and available for use.
|
|
4093
|
+
* Requires authentication and ownership of the agent group.
|
|
4094
|
+
* Only groups with "Safe" safety check status can be published.
|
|
4095
|
+
*
|
|
4096
|
+
* @param identifier - Unique identifier of the agent group
|
|
4097
|
+
* @param options - Optional request options
|
|
4098
|
+
* @returns Promise resolving to the status change response
|
|
4099
|
+
*/
|
|
4100
|
+
publish(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
|
|
4101
|
+
/**
|
|
4102
|
+
* Unpublishes an agent group from the marketplace
|
|
4103
|
+
*
|
|
4104
|
+
* Hides the agent group from public view. The agent group data is preserved
|
|
4105
|
+
* and can be republished later.
|
|
4106
|
+
* Requires authentication and ownership of the agent group.
|
|
4107
|
+
*
|
|
4108
|
+
* @param identifier - Unique identifier of the agent group
|
|
4109
|
+
* @param options - Optional request options
|
|
4110
|
+
* @returns Promise resolving to the status change response
|
|
4111
|
+
*/
|
|
4112
|
+
unpublish(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
|
|
4113
|
+
/**
|
|
4114
|
+
* Archives an agent group
|
|
4115
|
+
*
|
|
4116
|
+
* Marks the agent group as archived. Archived agent groups are typically
|
|
4117
|
+
* no longer actively maintained but may still be accessible.
|
|
4118
|
+
* Requires authentication and ownership of the agent group.
|
|
4119
|
+
*
|
|
4120
|
+
* @param identifier - Unique identifier of the agent group
|
|
4121
|
+
* @param options - Optional request options
|
|
4122
|
+
* @returns Promise resolving to the status change response
|
|
4123
|
+
*/
|
|
4124
|
+
archive(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
|
|
4125
|
+
/**
|
|
4126
|
+
* Deprecates an agent group
|
|
4127
|
+
*
|
|
4128
|
+
* Marks the agent group as deprecated. Deprecated agent groups are still
|
|
4129
|
+
* accessible but users are encouraged to migrate to alternatives.
|
|
4130
|
+
* Requires authentication and ownership of the agent group.
|
|
4131
|
+
*
|
|
4132
|
+
* @param identifier - Unique identifier of the agent group
|
|
4133
|
+
* @param options - Optional request options
|
|
4134
|
+
* @returns Promise resolving to the status change response
|
|
4135
|
+
*/
|
|
4136
|
+
deprecate(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
|
|
4137
|
+
}
|
|
4138
|
+
|
|
3594
4139
|
/**
|
|
3595
4140
|
* Auth Service
|
|
3596
4141
|
*
|
|
@@ -4592,6 +5137,11 @@ declare class MarketSDK extends BaseSDK {
|
|
|
4592
5137
|
* Provides methods to list, search, retrieve agent information, and upload agents
|
|
4593
5138
|
*/
|
|
4594
5139
|
readonly agents: AgentService;
|
|
5140
|
+
/**
|
|
5141
|
+
* Agent Groups service for accessing agent group-related functionality
|
|
5142
|
+
* Provides methods to list, create, version, and manage agent groups
|
|
5143
|
+
*/
|
|
5144
|
+
readonly agentGroups: AgentGroupService;
|
|
4595
5145
|
/**
|
|
4596
5146
|
* Auth service for authentication and authorization
|
|
4597
5147
|
* Provides methods for OIDC user authentication, client registration, and M2M token management
|
|
@@ -4672,6 +5222,33 @@ declare class MarketSDK extends BaseSDK {
|
|
|
4672
5222
|
registerClient(request: ClientRegistrationRequest): Promise<ClientRegistrationResponse>;
|
|
4673
5223
|
}
|
|
4674
5224
|
|
|
5225
|
+
/**
|
|
5226
|
+
* Market API Error
|
|
5227
|
+
*
|
|
5228
|
+
* Custom error class for Market API errors that preserves the structured error response.
|
|
5229
|
+
*/
|
|
5230
|
+
declare class MarketAPIError extends Error {
|
|
5231
|
+
/** HTTP status code */
|
|
5232
|
+
readonly status: number;
|
|
5233
|
+
/** Error code from API response */
|
|
5234
|
+
readonly code?: string;
|
|
5235
|
+
/** The full error response body */
|
|
5236
|
+
readonly errorBody?: any;
|
|
5237
|
+
constructor(status: number, statusText: string, errorBody?: any);
|
|
5238
|
+
/**
|
|
5239
|
+
* Check if this is a specific error code
|
|
5240
|
+
*/
|
|
5241
|
+
isErrorCode(code: string): boolean;
|
|
5242
|
+
/**
|
|
5243
|
+
* Get the full error details from the API response
|
|
5244
|
+
*/
|
|
5245
|
+
getErrorDetails(): any;
|
|
5246
|
+
/**
|
|
5247
|
+
* Convert to a plain object for logging or serialization
|
|
5248
|
+
*/
|
|
5249
|
+
toJSON(): any;
|
|
5250
|
+
}
|
|
5251
|
+
|
|
4675
5252
|
/**
|
|
4676
5253
|
* Trusted Client Token Utilities
|
|
4677
5254
|
*
|
|
@@ -4745,4 +5322,4 @@ declare function buildTrustedClientPayload(params: {
|
|
|
4745
5322
|
userId: string;
|
|
4746
5323
|
}): TrustedClientPayload;
|
|
4747
5324
|
|
|
4748
|
-
export { type AccountMeta, type AdminListQueryParams, type AdminListResponse, type AdminPluginParams, type AgentCreateRequest, type AgentCreateResponse, type AgentDetailQuery, type AgentExtension, type AgentInstallCountRequest, type AgentInstallCountResponse, type AgentInterface, type AgentItemDetail, type AgentListQuery, type AgentListResponse, type AgentModifyRequest, type AgentModifyResponse, type AgentSecurityRequirement, type AgentSecurityScheme, type AgentSkill, type AgentStatus, type AgentStatusChangeResponse, type AgentUploadRequest, type AgentUploadResponse, type AgentUploadVersion, type AgentVersionCreateRequest, type AgentVersionCreateResponse, type AgentVersionLocalization, type AgentVersionModifyRequest, type AgentVersionModifyResponse, type AuthorizationCodeTokenRequest, type AuthorizeParams, type AuthorizeResponse, type CallSkillToolResponse, type CheckFavoriteQuery, type CheckFavoriteResponse, type CheckFollowQuery, type CheckFollowResponse, type CheckLikeQuery, type CheckLikeResponse, type ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type ConnectProvider, type ConnectProviderDetail, type ConnectProviderScopes, type ConnectionHealth, type ConnectionStats, type DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FollowListItem, type FollowListResponse, type FollowRequest, type GetAllConnectionsHealthResponse, type GetAuthorizeUrlParams, type GetCommandOutputParams, type GetConnectProviderResponse, type GetConnectionHealthResponse, type GetConnectionStatsResponse, type GetConnectionStatusResponse, type GetSkillStatusResponse, type GetSkillToolResponse, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListConnectProvidersResponse, type ListConnectionsResponse, type ListLocalFilesParams, type ListSkillProvidersResponse, type ListSkillToolsResponse, MarketAdmin, MarketSDK, type MarketSDKOptions, type MoveLocalFilesParams, type MoveOperation, type OAuthConnection, type OAuthTokenResponse, type OwnAgentListQuery, type PaginationQuery, type PluginI18nImportParams, type PluginI18nImportResponse, type PluginItem, type PluginListResponse, type PluginLocalization, type PluginQueryParams, type PluginUpdateParams, type PluginVersionCreateParams, type PluginVersionUpdateParams, type ProgrammingLanguage, type ReadLocalFileParams, type RefreshConnectionResponse, type RefreshTokenRequest, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RevokeConnectionResponse, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, type SearchLocalFilesParams, type SharedTokenState, type SkillCallParams, type SkillErrorResponse, type SkillProviderInfo, type SkillProviderStatus, type SkillTool, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SuccessResponse, type ToggleLikeResponse, type TrustedClientPayload, type UnclaimedPluginItem, type UpdateUserInfoRequest, type UpdateUserInfoResponse, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };
|
|
5325
|
+
export { type AccountMeta, type AdminListQueryParams, type AdminListResponse, type AdminPluginParams, type AgentCreateRequest, type AgentCreateResponse, type AgentDetailQuery, type AgentExtension, type AgentGroupCreateRequest, type AgentGroupCreateResponse, type AgentGroupDetail, type AgentGroupDetailQuery, type AgentGroupItem, type AgentGroupListQuery, type AgentGroupListResponse, type AgentGroupModifyRequest, type AgentGroupModifyResponse, type AgentGroupStatus, type AgentGroupStatusChangeResponse, type AgentGroupVersionCreateRequest, type AgentGroupVersionCreateResponse, type AgentInstallCountRequest, type AgentInstallCountResponse, type AgentInterface, type AgentItemDetail, type AgentListQuery, type AgentListResponse, type AgentModifyRequest, type AgentModifyResponse, type AgentSecurityRequirement, type AgentSecurityScheme, type AgentSkill, type AgentStatus, type AgentStatusChangeResponse, type AgentUploadRequest, type AgentUploadResponse, type AgentUploadVersion, type AgentVersionCreateRequest, type AgentVersionCreateResponse, type AgentVersionLocalization, type AgentVersionModifyRequest, type AgentVersionModifyResponse, type AuthorizationCodeTokenRequest, type AuthorizeParams, type AuthorizeResponse, type CallSkillToolResponse, type CheckFavoriteQuery, type CheckFavoriteResponse, type CheckFollowQuery, type CheckFollowResponse, type CheckLikeQuery, type CheckLikeResponse, type ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type ConnectProvider, type ConnectProviderDetail, type ConnectProviderScopes, type ConnectionHealth, type ConnectionStats, type CreateMemberAgent, type DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FollowListItem, type FollowListResponse, type FollowRequest, type GetAllConnectionsHealthResponse, type GetAuthorizeUrlParams, type GetCommandOutputParams, type GetConnectProviderResponse, type GetConnectionHealthResponse, type GetConnectionStatsResponse, type GetConnectionStatusResponse, type GetSkillStatusResponse, type GetSkillToolResponse, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListConnectProvidersResponse, type ListConnectionsResponse, type ListLocalFilesParams, type ListSkillProvidersResponse, type ListSkillToolsResponse, MarketAPIError, MarketAdmin, MarketSDK, type MarketSDKOptions, type MemberAgent, type MoveLocalFilesParams, type MoveOperation, type OAuthConnection, type OAuthTokenResponse, type OwnAgentGroupListQuery, type OwnAgentListQuery, type PaginationQuery, type PluginI18nImportParams, type PluginI18nImportResponse, type PluginItem, type PluginListResponse, type PluginLocalization, type PluginQueryParams, type PluginUpdateParams, type PluginVersionCreateParams, type PluginVersionUpdateParams, type ProgrammingLanguage, type ReadLocalFileParams, type RefreshConnectionResponse, type RefreshTokenRequest, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RevokeConnectionResponse, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, type SearchLocalFilesParams, type SharedTokenState, type SkillCallParams, type SkillErrorResponse, type SkillProviderInfo, type SkillProviderStatus, type SkillTool, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SuccessResponse, type ToggleLikeResponse, type TrustedClientPayload, type UnclaimedPluginItem, type UpdateMemberAgent, type UpdateUserInfoRequest, type UpdateUserInfoResponse, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };
|