@lobehub/market-sdk 0.28.2 → 0.28.4-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 CHANGED
@@ -801,6 +801,590 @@ interface OwnAgentListQuery {
801
801
  /** Filter by specific status, if not provided returns all statuses */
802
802
  status?: AgentStatus;
803
803
  }
804
+ /**
805
+ * Agent fork request parameters
806
+ * Defines the request body for forking an agent
807
+ */
808
+ interface AgentForkRequest {
809
+ /** New agent identifier (required, must be globally unique) */
810
+ identifier: string;
811
+ /** New agent name (optional, defaults to "{original name} (Fork)") */
812
+ name?: string;
813
+ /** Status of the forked agent (optional, defaults to published) */
814
+ status?: 'published' | 'unpublished' | 'archived' | 'deprecated';
815
+ /** Version number to fork (optional, defaults to current version) */
816
+ versionNumber?: number;
817
+ /** Visibility of the forked agent (optional, defaults to public) */
818
+ visibility?: 'public' | 'private' | 'internal';
819
+ }
820
+ /**
821
+ * Agent fork response structure
822
+ * Defines the structure of the agent fork API response
823
+ */
824
+ interface AgentForkResponse {
825
+ /** The newly created agent */
826
+ agent: {
827
+ createdAt: string;
828
+ forkedFromAgentId: number;
829
+ id: number;
830
+ identifier: string;
831
+ name: string;
832
+ ownerId: number;
833
+ updatedAt: string;
834
+ };
835
+ /** Information about the source agent */
836
+ source: {
837
+ agentId: number;
838
+ identifier: string;
839
+ versionNumber: number;
840
+ };
841
+ /** The initial version created for the forked agent */
842
+ version: {
843
+ agentId: number;
844
+ createdAt: string;
845
+ id: number;
846
+ versionNumber: number;
847
+ };
848
+ }
849
+ /**
850
+ * Agent fork item structure
851
+ * Represents a single forked agent in the forks list
852
+ */
853
+ interface AgentForkItem {
854
+ createdAt: string;
855
+ forkCount: number;
856
+ id: number;
857
+ identifier: string;
858
+ name: string;
859
+ ownerId: number;
860
+ }
861
+ /**
862
+ * Agent forks list response
863
+ * Response structure for listing all forks of an agent
864
+ */
865
+ interface AgentForksResponse {
866
+ forks: AgentForkItem[];
867
+ totalCount: number;
868
+ }
869
+ /**
870
+ * Agent fork source response
871
+ * Response structure for getting the source agent that this agent was forked from
872
+ */
873
+ interface AgentForkSourceResponse {
874
+ source: AgentForkItem | null;
875
+ }
876
+
877
+ /**
878
+ * Agent Group Types
879
+ *
880
+ * Type definitions for agent group-related API requests and responses
881
+ */
882
+ /**
883
+ * Agent group list query parameters
884
+ */
885
+ interface AgentGroupListQuery {
886
+ /** Filter by category */
887
+ category?: string;
888
+ /** Filter by official status */
889
+ isOfficial?: 'true' | 'false';
890
+ /** Locale for localized content */
891
+ locale?: string;
892
+ /** Sort order */
893
+ order?: 'asc' | 'desc';
894
+ /** Filter by owner ID */
895
+ ownerId?: number | string;
896
+ /** Current page number (1-based) */
897
+ page?: number;
898
+ /** Number of items per page */
899
+ pageSize?: number;
900
+ /** Search query string */
901
+ q?: string;
902
+ /** Sort field */
903
+ sort?: 'createdAt' | 'updatedAt' | 'name' | 'recommended';
904
+ /** Publication status filter */
905
+ status?: 'published' | 'unpublished' | 'archived' | 'deprecated' | 'all';
906
+ /** Visibility filter */
907
+ visibility?: 'public' | 'private' | 'internal' | 'all';
908
+ }
909
+ /**
910
+ * Own agent groups list query parameters (authenticated)
911
+ */
912
+ interface OwnAgentGroupListQuery {
913
+ /** Locale for localized content */
914
+ locale?: string;
915
+ /** Sort order */
916
+ order?: 'asc' | 'desc';
917
+ /** Current page number (1-based) */
918
+ page?: number;
919
+ /** Number of items per page */
920
+ pageSize?: number;
921
+ /** Search query string */
922
+ q?: string;
923
+ /** Sort field */
924
+ sort?: 'createdAt' | 'updatedAt' | 'name';
925
+ }
926
+ /**
927
+ * Agent group item in list
928
+ * Aligned with AgentItem structure for consistency
929
+ */
930
+ interface AgentGroupItem {
931
+ /** Avatar URL (from current version) */
932
+ avatar?: string;
933
+ /** Background color (from current version) */
934
+ backgroundColor?: string;
935
+ /** Category (from current version) */
936
+ category?: string;
937
+ /** Comment count */
938
+ commentCount?: number;
939
+ /** Creation timestamp */
940
+ createdAt: string;
941
+ /** Current version ID */
942
+ currentVersionId?: number;
943
+ /** Description (from current version) */
944
+ description?: string;
945
+ /** Favorite count */
946
+ favoriteCount?: number;
947
+ /** Homepage URL */
948
+ homepage?: string;
949
+ /** Unique identifier (used as id for consistency) */
950
+ id: string;
951
+ /** Unique identifier */
952
+ identifier: string;
953
+ /** Install count */
954
+ installCount?: number;
955
+ /** Whether this is a featured group */
956
+ isFeatured?: boolean;
957
+ /** Whether this is official */
958
+ isOfficial?: boolean;
959
+ /** Like count */
960
+ likeCount?: number;
961
+ /** Group name */
962
+ name: string;
963
+ /** Owner account ID */
964
+ ownerId: number;
965
+ /** Average rating */
966
+ ratingAverage?: number;
967
+ /** Rating count */
968
+ ratingCount?: number;
969
+ /** Safety check status */
970
+ safetyCheck?: string;
971
+ /** Publication status */
972
+ status?: 'published' | 'unpublished' | 'archived' | 'deprecated';
973
+ /** Last update timestamp */
974
+ updatedAt: string;
975
+ /** Version number (from current version) */
976
+ versionNumber?: number;
977
+ /** Visibility */
978
+ visibility?: 'public' | 'private' | 'internal';
979
+ }
980
+ /**
981
+ * Agent group list response
982
+ * Aligned with AgentListResponse structure for consistency
983
+ */
984
+ interface AgentGroupListResponse {
985
+ currentPage: number;
986
+ items: AgentGroupItem[];
987
+ pageSize: number;
988
+ totalCount: number;
989
+ totalPages: number;
990
+ }
991
+ /**
992
+ * Agent group detail query parameters
993
+ */
994
+ interface AgentGroupDetailQuery {
995
+ /** Group identifier */
996
+ identifier: string;
997
+ /** Locale for localized content */
998
+ locale?: string;
999
+ /** Specific version number to retrieve */
1000
+ version?: number;
1001
+ }
1002
+ /**
1003
+ * Member agent in group
1004
+ */
1005
+ interface MemberAgent {
1006
+ /** A2A protocol version */
1007
+ a2aProtocolVersion?: string;
1008
+ /** Avatar */
1009
+ avatar?: string;
1010
+ /** Category */
1011
+ category?: string;
1012
+ /** Configuration */
1013
+ config: any;
1014
+ /** Default input modes */
1015
+ defaultInputModes?: string[];
1016
+ /** Default output modes */
1017
+ defaultOutputModes?: string[];
1018
+ /** Description */
1019
+ description: string;
1020
+ /** Display order */
1021
+ displayOrder: number;
1022
+ /** Documentation URL */
1023
+ documentationUrl?: string;
1024
+ /** Whether enabled */
1025
+ enabled: boolean;
1026
+ /** Extensions */
1027
+ extensions?: any[];
1028
+ /** Whether push notifications are supported */
1029
+ hasPushNotifications?: boolean;
1030
+ /** Whether state transition history is supported */
1031
+ hasStateTransitionHistory?: boolean;
1032
+ /** Whether streaming is supported */
1033
+ hasStreaming?: boolean;
1034
+ /** Unique identifier */
1035
+ identifier: string;
1036
+ /** Interfaces */
1037
+ interfaces?: any[];
1038
+ /** Name */
1039
+ name: string;
1040
+ /** Preferred transport */
1041
+ preferredTransport?: string;
1042
+ /** Role */
1043
+ role: 'supervisor' | 'participant';
1044
+ /** Security requirements */
1045
+ securityRequirements?: any[];
1046
+ /** Security schemes */
1047
+ securitySchemes?: any;
1048
+ /** Summary */
1049
+ summary?: string;
1050
+ /** Whether authenticated extended card is supported */
1051
+ supportsAuthenticatedExtendedCard?: boolean;
1052
+ /** Tags */
1053
+ tags?: any;
1054
+ /** URL */
1055
+ url: string;
1056
+ /** Version */
1057
+ version: string;
1058
+ }
1059
+ /**
1060
+ * Agent group detail response
1061
+ */
1062
+ interface AgentGroupDetail {
1063
+ /** Author/owner information */
1064
+ author?: {
1065
+ avatar?: string;
1066
+ name?: string;
1067
+ userName?: string;
1068
+ };
1069
+ group: {
1070
+ avatar?: string;
1071
+ backgroundColor?: string;
1072
+ category?: string;
1073
+ commentCount?: number;
1074
+ config?: any;
1075
+ createdAt: string;
1076
+ currentVersionId?: number;
1077
+ description: string;
1078
+ favoriteCount?: number;
1079
+ homepage?: string;
1080
+ identifier: string;
1081
+ installCount?: number;
1082
+ isFeatured?: boolean;
1083
+ isOfficial?: boolean;
1084
+ likeCount?: number;
1085
+ name: string;
1086
+ ownerId: number;
1087
+ ratingAverage?: number;
1088
+ ratingCount?: number;
1089
+ safetyCheck?: string;
1090
+ status: string;
1091
+ tags?: any;
1092
+ updatedAt: string;
1093
+ version: string;
1094
+ versionNumber: number;
1095
+ visibility: string;
1096
+ };
1097
+ /** Locale for localized content */
1098
+ locale?: string;
1099
+ memberAgents: MemberAgent[];
1100
+ /** Summary extracted from description (auto-filled, max 200 chars) */
1101
+ summary?: string;
1102
+ /** All versions of this group */
1103
+ versions?: Array<{
1104
+ isLatest: boolean;
1105
+ status: string;
1106
+ updatedAt: string;
1107
+ version: string;
1108
+ versionNumber: number;
1109
+ }>;
1110
+ }
1111
+ /**
1112
+ * Member agent for creation
1113
+ */
1114
+ interface CreateMemberAgent {
1115
+ a2aProtocolVersion?: string;
1116
+ avatar?: string;
1117
+ category?: string;
1118
+ config: any;
1119
+ defaultInputModes?: string[];
1120
+ defaultOutputModes?: string[];
1121
+ description: string;
1122
+ displayOrder?: number;
1123
+ documentationUrl?: string;
1124
+ extensions?: any[];
1125
+ hasPushNotifications?: boolean;
1126
+ hasStateTransitionHistory?: boolean;
1127
+ hasStreaming?: boolean;
1128
+ identifier: string;
1129
+ interfaces?: any[];
1130
+ name: string;
1131
+ preferredTransport?: string;
1132
+ role: 'supervisor' | 'participant';
1133
+ securityRequirements?: any[];
1134
+ securitySchemes?: any;
1135
+ summary?: string;
1136
+ supportsAuthenticatedExtendedCard?: boolean;
1137
+ tags?: any;
1138
+ url: string;
1139
+ }
1140
+ /**
1141
+ * Create agent group request
1142
+ */
1143
+ interface AgentGroupCreateRequest {
1144
+ avatar?: string;
1145
+ backgroundColor?: string;
1146
+ category?: string;
1147
+ config?: any;
1148
+ description: string;
1149
+ homepage?: string;
1150
+ identifier: string;
1151
+ memberAgents: CreateMemberAgent[];
1152
+ name: string;
1153
+ versionName?: string;
1154
+ visibility?: 'public' | 'private' | 'internal';
1155
+ }
1156
+ /**
1157
+ * Create agent group response
1158
+ */
1159
+ interface AgentGroupCreateResponse {
1160
+ group: {
1161
+ avatar?: string;
1162
+ backgroundColor?: string;
1163
+ category?: string;
1164
+ createdAt: string;
1165
+ currentVersionId?: number;
1166
+ description: string;
1167
+ homepage?: string;
1168
+ id: number;
1169
+ identifier: string;
1170
+ isFeatured: boolean;
1171
+ isOfficial: boolean;
1172
+ name: string;
1173
+ ownerId: number;
1174
+ status: string;
1175
+ updatedAt: string;
1176
+ visibility: string;
1177
+ };
1178
+ groupVersion: {
1179
+ agentGroupId: number;
1180
+ createdAt: string;
1181
+ description: string;
1182
+ id: number;
1183
+ isLatest: boolean;
1184
+ name: string;
1185
+ status: string;
1186
+ version: string;
1187
+ versionNumber: number;
1188
+ };
1189
+ memberAgents: Array<{
1190
+ agentGroupId: number;
1191
+ createdAt: string;
1192
+ displayOrder: number;
1193
+ enabled: boolean;
1194
+ id: number;
1195
+ identifier: string;
1196
+ name: string;
1197
+ role: string;
1198
+ updatedAt: string;
1199
+ }>;
1200
+ }
1201
+ /**
1202
+ * Member agent update for version create
1203
+ */
1204
+ interface UpdateMemberAgent {
1205
+ avatar?: string;
1206
+ category?: string;
1207
+ config?: any;
1208
+ description?: string;
1209
+ identifier: string;
1210
+ name?: string;
1211
+ url?: string;
1212
+ }
1213
+ /**
1214
+ * Create agent group version request
1215
+ */
1216
+ interface AgentGroupVersionCreateRequest {
1217
+ avatar?: string;
1218
+ backgroundColor?: string;
1219
+ category?: string;
1220
+ changelog?: string;
1221
+ config?: any;
1222
+ description?: string;
1223
+ identifier: string;
1224
+ memberAgents?: UpdateMemberAgent[];
1225
+ name?: string;
1226
+ tags?: any;
1227
+ }
1228
+ /**
1229
+ * Create agent group version response
1230
+ */
1231
+ interface AgentGroupVersionCreateResponse {
1232
+ groupVersion: {
1233
+ agentGroupId: number;
1234
+ changelog?: string;
1235
+ createdAt: string;
1236
+ description: string;
1237
+ id: number;
1238
+ isLatest: boolean;
1239
+ name: string;
1240
+ status: string;
1241
+ version: string;
1242
+ versionNumber: number;
1243
+ };
1244
+ memberVersions: Array<{
1245
+ agentForGroupId: number;
1246
+ createdAt: string;
1247
+ description: string;
1248
+ id: number;
1249
+ name: string;
1250
+ url: string;
1251
+ version: string;
1252
+ versionNumber: number;
1253
+ }>;
1254
+ }
1255
+ /**
1256
+ * Modify agent group request
1257
+ */
1258
+ interface AgentGroupModifyRequest {
1259
+ avatar?: string;
1260
+ backgroundColor?: string;
1261
+ category?: string;
1262
+ homepage?: string;
1263
+ identifier: string;
1264
+ isFeatured?: boolean;
1265
+ isOfficial?: boolean;
1266
+ name?: string;
1267
+ status?: 'published' | 'unpublished' | 'archived' | 'deprecated';
1268
+ visibility?: 'public' | 'private' | 'internal';
1269
+ }
1270
+ /**
1271
+ * Modify agent group response
1272
+ */
1273
+ interface AgentGroupModifyResponse {
1274
+ avatar?: string;
1275
+ backgroundColor?: string;
1276
+ category?: string;
1277
+ createdAt: string;
1278
+ currentVersionId?: number;
1279
+ description: string;
1280
+ homepage?: string;
1281
+ id: number;
1282
+ identifier: string;
1283
+ isFeatured: boolean;
1284
+ isOfficial: boolean;
1285
+ name: string;
1286
+ ownerId: number;
1287
+ status: string;
1288
+ updatedAt: string;
1289
+ visibility: string;
1290
+ }
1291
+ /**
1292
+ * Agent group status
1293
+ */
1294
+ type AgentGroupStatus = 'published' | 'unpublished' | 'archived' | 'deprecated';
1295
+ /**
1296
+ * Agent group status change response
1297
+ */
1298
+ interface AgentGroupStatusChangeResponse {
1299
+ identifier: string;
1300
+ status: AgentGroupStatus;
1301
+ success: boolean;
1302
+ }
1303
+ /**
1304
+ * Agent group fork request parameters
1305
+ * Defines the request body for forking an agent group
1306
+ */
1307
+ interface AgentGroupForkRequest {
1308
+ /** New group identifier (required, must be globally unique) */
1309
+ identifier: string;
1310
+ /** New group name (optional, defaults to "{original name} (Fork)") */
1311
+ name?: string;
1312
+ /** Status of the forked group (optional, defaults to published) */
1313
+ status?: 'published' | 'unpublished' | 'archived' | 'deprecated';
1314
+ /** Version number to fork (optional, defaults to current version) */
1315
+ versionNumber?: number;
1316
+ /** Visibility of the forked group (optional, defaults to public) */
1317
+ visibility?: 'public' | 'private' | 'internal';
1318
+ }
1319
+ /**
1320
+ * Agent group fork response structure
1321
+ * Defines the structure of the agent group fork API response
1322
+ */
1323
+ interface AgentGroupForkResponse {
1324
+ /** The newly created agent group */
1325
+ group: {
1326
+ createdAt: string;
1327
+ forkedFromGroupId: number;
1328
+ id: number;
1329
+ identifier: string;
1330
+ name: string;
1331
+ ownerId: number;
1332
+ updatedAt: string;
1333
+ };
1334
+ /** The initial version created for the forked group */
1335
+ groupVersion: {
1336
+ agentGroupId: number;
1337
+ createdAt: string;
1338
+ id: number;
1339
+ versionNumber: number;
1340
+ };
1341
+ /** All member agents created in the forked group */
1342
+ memberAgents: Array<{
1343
+ id: number;
1344
+ identifier: string;
1345
+ name: string;
1346
+ role: string;
1347
+ }>;
1348
+ /** All member agent versions created in the forked group */
1349
+ memberVersions: Array<{
1350
+ agentForGroupId: number;
1351
+ id: number;
1352
+ versionNumber: number;
1353
+ }>;
1354
+ /** Information about the source group */
1355
+ source: {
1356
+ groupId: number;
1357
+ identifier: string;
1358
+ versionNumber: number;
1359
+ };
1360
+ }
1361
+ /**
1362
+ * Agent group fork item structure
1363
+ * Represents a single forked agent group in the forks list
1364
+ */
1365
+ interface AgentGroupForkItem {
1366
+ createdAt: string;
1367
+ forkCount: number;
1368
+ id: number;
1369
+ identifier: string;
1370
+ name: string;
1371
+ ownerId: number;
1372
+ }
1373
+ /**
1374
+ * Agent group forks list response
1375
+ * Response structure for listing all forks of an agent group
1376
+ */
1377
+ interface AgentGroupForksResponse {
1378
+ forks: AgentGroupForkItem[];
1379
+ totalCount: number;
1380
+ }
1381
+ /**
1382
+ * Agent group fork source response
1383
+ * Response structure for getting the source group that this group was forked from
1384
+ */
1385
+ interface AgentGroupForkSourceResponse {
1386
+ source: AgentGroupForkItem | null;
1387
+ }
804
1388
 
805
1389
  /**
806
1390
  * Market Service Discovery Document
@@ -1862,6 +2446,43 @@ interface UserAgentItem {
1862
2446
  /** Last update timestamp */
1863
2447
  updatedAt: string;
1864
2448
  }
2449
+ /**
2450
+ * User Agent Group Item
2451
+ *
2452
+ * Represents a simplified agent group item for user profile display
2453
+ */
2454
+ interface UserAgentGroupItem {
2455
+ /** Avatar emoji or URL */
2456
+ avatar?: string;
2457
+ /** Background color hex code */
2458
+ backgroundColor?: string;
2459
+ /** Agent group category */
2460
+ category?: string;
2461
+ /** Creation timestamp */
2462
+ createdAt: string;
2463
+ /** Agent group description */
2464
+ description?: string;
2465
+ /** Total favorite count */
2466
+ favoriteCount: number;
2467
+ /** Agent group database ID */
2468
+ id: string;
2469
+ /** Agent group unique identifier */
2470
+ identifier: string;
2471
+ /** Total install count */
2472
+ installCount: number;
2473
+ /** Whether the agent group is featured */
2474
+ isFeatured: boolean;
2475
+ /** Whether the agent group is officially maintained */
2476
+ isOfficial: boolean;
2477
+ /** Total like count */
2478
+ likeCount: number;
2479
+ /** Agent group name */
2480
+ name: string;
2481
+ /** Last update timestamp */
2482
+ updatedAt: string;
2483
+ /** Current version number */
2484
+ versionNumber?: number;
2485
+ }
1865
2486
  /**
1866
2487
  * User Info Query
1867
2488
  *
@@ -1877,8 +2498,14 @@ interface UserInfoQuery {
1877
2498
  * Response structure for getUserInfo endpoint
1878
2499
  */
1879
2500
  interface UserInfoResponse {
2501
+ /** List of user's published public agent groups */
2502
+ agentGroups: UserAgentGroupItem[];
1880
2503
  /** List of user's published public agents */
1881
2504
  agents: UserAgentItem[];
2505
+ /** List of user's forked agent groups (excludes shallow forks) */
2506
+ forkedAgentGroups: UserAgentGroupItem[];
2507
+ /** List of user's forked agents (excludes shallow forks) */
2508
+ forkedAgents: UserAgentItem[];
1882
2509
  /** User profile information */
1883
2510
  user: UserProfile;
1884
2511
  }
@@ -1908,6 +2535,71 @@ interface UpdateUserInfoResponse {
1908
2535
  /** Updated user profile */
1909
2536
  user: UserProfile;
1910
2537
  }
2538
+ /**
2539
+ * User Registration Request
2540
+ *
2541
+ * Request body for user registration via trust token
2542
+ */
2543
+ interface RegisterUserRequest {
2544
+ /** User's avatar URL (optional) */
2545
+ avatarUrl?: string;
2546
+ /** User's display name (optional) */
2547
+ displayName?: string;
2548
+ /** User ID to follow after registration (optional) */
2549
+ followUserId?: string;
2550
+ /** Extended metadata (optional) */
2551
+ meta?: AccountMeta;
2552
+ /** The Clerk user ID to register (required) */
2553
+ registerUserId: string;
2554
+ /** Unique username (optional) */
2555
+ userName?: string;
2556
+ }
2557
+ /**
2558
+ * Registered User Profile
2559
+ *
2560
+ * User profile returned after registration
2561
+ */
2562
+ interface RegisteredUserProfile {
2563
+ /** User's avatar URL */
2564
+ avatarUrl: string | null;
2565
+ /** Clerk user ID */
2566
+ clerkId: string | null;
2567
+ /** Account creation timestamp */
2568
+ createdAt: string;
2569
+ /** User's display name */
2570
+ displayName: string | null;
2571
+ /** User's email */
2572
+ email: string | null;
2573
+ /** Whether email is verified */
2574
+ emailVerified: boolean | null;
2575
+ /** Number of followers */
2576
+ followerCount: number;
2577
+ /** Number of users this user is following */
2578
+ followingCount: number;
2579
+ /** Account ID (primary key) */
2580
+ id: number;
2581
+ /** Extended metadata for user profile */
2582
+ meta: AccountMeta | null;
2583
+ /** User's unique namespace */
2584
+ namespace: string;
2585
+ /** Account type (user or organization) */
2586
+ type: string | null;
2587
+ /** Unique username */
2588
+ userName: string | null;
2589
+ }
2590
+ /**
2591
+ * User Registration Response
2592
+ *
2593
+ * Response structure for user registration endpoint
2594
+ */
2595
+ interface RegisterUserResponse {
2596
+ /** Whether this is a newly created account */
2597
+ created: boolean;
2598
+ /** Whether the registration was successful */
2599
+ success: boolean;
2600
+ /** Registered user profile */
2601
+ user: RegisteredUserProfile;
2602
+ }
1911
2603
  /**
1912
2604
  * Follow Request
1913
2605
  *
@@ -1966,14 +2658,14 @@ interface FollowListResponse {
1966
2658
  /**
1967
2659
  * Target Type for favorites and likes
1968
2660
  */
1969
- type InteractionTargetType = 'agent' | 'plugin';
2661
+ type InteractionTargetType = 'agent' | 'plugin' | 'agent-group';
1970
2662
  /**
1971
2663
  * Favorite Request
1972
2664
  *
1973
2665
  * Request body for add/remove favorite operations
1974
2666
  */
1975
2667
  interface FavoriteRequest {
1976
- /** The identifier of the target agent/plugin */
2668
+ /** The identifier of the target agent, plugin, or agent group */
1977
2669
  targetId: string;
1978
2670
  /** The type of target */
1979
2671
  targetType: InteractionTargetType;
@@ -1984,7 +2676,7 @@ interface FavoriteRequest {
1984
2676
  * Query parameters for checking favorite status
1985
2677
  */
1986
2678
  interface CheckFavoriteQuery {
1987
- /** The identifier of the target agent/plugin */
2679
+ /** The identifier of the target agent, plugin, or agent group */
1988
2680
  targetId: string;
1989
2681
  /** The type of target */
1990
2682
  targetType: InteractionTargetType;
@@ -2026,7 +2718,7 @@ interface FavoriteListResponse {
2026
2718
  * Request body for like/unlike operations
2027
2719
  */
2028
2720
  interface LikeRequest {
2029
- /** The identifier of the target agent/plugin */
2721
+ /** The identifier of the target agent, plugin, or agent group */
2030
2722
  targetId: string;
2031
2723
  /** The type of target */
2032
2724
  targetType: InteractionTargetType;
@@ -2037,7 +2729,7 @@ interface LikeRequest {
2037
2729
  * Query parameters for checking like status
2038
2730
  */
2039
2731
  interface CheckLikeQuery {
2040
- /** The identifier of the target agent/plugin */
2732
+ /** The identifier of the target agent, plugin, or agent group */
2041
2733
  targetId: string;
2042
2734
  /** The type of target */
2043
2735
  targetType: InteractionTargetType;
@@ -3430,6 +4122,7 @@ declare class AgentService extends BaseSDK {
3430
4122
  /**
3431
4123
  * Retrieves all published agent identifiers
3432
4124
  *
4125
+ *
3433
4126
  * Returns a lightweight list of all published agent identifiers without
3434
4127
  * full agent metadata. This is useful for clients that need to know which
3435
4128
  * agents are available without fetching complete agent information.
@@ -3589,6 +4282,217 @@ declare class AgentService extends BaseSDK {
3589
4282
  * @returns Promise resolving to the status change response
3590
4283
  */
3591
4284
  deprecate(identifier: string, options?: globalThis.RequestInit): Promise<AgentStatusChangeResponse>;
4285
+ /**
4286
+ * Forks an existing agent to create a new agent owned by the current user
4287
+ *
4288
+ * Creates a complete copy of the agent including configuration, skills,
4289
+ * and version data. Statistical data (ratings, likes, etc.) are reset to zero.
4290
+ * Requires authentication.
4291
+ *
4292
+ * @param sourceIdentifier - Identifier of the agent to fork
4293
+ * @param forkData - Fork request parameters (new identifier, name, etc.)
4294
+ * @param options - Optional request options
4295
+ * @returns Promise resolving to the fork response with new agent details
4296
+ */
4297
+ forkAgent(sourceIdentifier: string, forkData: AgentForkRequest, options?: globalThis.RequestInit): Promise<AgentForkResponse>;
4298
+ /**
4299
+ * Retrieves all public forks of a specific agent
4300
+ *
4301
+ * Returns a list of agents that were forked from the specified agent.
4302
+ * Only returns forks that are public and published.
4303
+ *
4304
+ * @param identifier - Identifier of the source agent
4305
+ * @param options - Optional request options
4306
+ * @returns Promise resolving to the forks list response
4307
+ */
4308
+ getAgentForks(identifier: string, options?: globalThis.RequestInit): Promise<AgentForksResponse>;
4309
+ /**
4310
+ * Retrieves the source agent that this agent was forked from
4311
+ *
4312
+ * Returns null if the agent is not a fork (original agent).
4313
+ *
4314
+ * @param identifier - Identifier of the agent to check
4315
+ * @param options - Optional request options
4316
+ * @returns Promise resolving to the fork source response
4317
+ */
4318
+ getAgentForkSource(identifier: string, options?: globalThis.RequestInit): Promise<AgentForkSourceResponse>;
4319
+ }
4320
+
4321
+ /**
4322
+ * Agent Groups Service
4323
+ *
4324
+ * Provides access to agent group-related functionality in the LobeHub Marketplace.
4325
+ * This service handles listing, creating, versioning, and managing agent groups.
4326
+ */
4327
+ declare class AgentGroupService extends BaseSDK {
4328
+ /**
4329
+ * Retrieves a list of agent groups from the marketplace
4330
+ *
4331
+ * Supports filtering, pagination, and localization of results.
4332
+ *
4333
+ * @param params - Query parameters for filtering and pagination
4334
+ * @param options - Optional request options
4335
+ * @returns Promise resolving to the agent group list response containing items and pagination info
4336
+ */
4337
+ getAgentGroupList(params?: AgentGroupListQuery, options?: globalThis.RequestInit): Promise<AgentGroupListResponse>;
4338
+ /**
4339
+ * Retrieves a list of agent groups owned by the authenticated user
4340
+ *
4341
+ * Returns all agent groups regardless of their publish status (published, unpublished,
4342
+ * archived, deprecated). Requires authentication.
4343
+ *
4344
+ * @param params - Query parameters for filtering and pagination
4345
+ * @param options - Optional request options (must include authentication)
4346
+ * @returns Promise resolving to the agent group list response containing items with status field
4347
+ */
4348
+ getOwnAgentGroups(params?: OwnAgentGroupListQuery, options?: globalThis.RequestInit): Promise<AgentGroupListResponse>;
4349
+ /**
4350
+ * Retrieves detailed information about a specific agent group
4351
+ *
4352
+ * Returns complete agent group information including group metadata,
4353
+ * all member agents, and localized content.
4354
+ *
4355
+ * @param identifier - Unique identifier of the agent group
4356
+ * @param params - Query parameters for locale and version
4357
+ * @param options - Optional request options
4358
+ * @returns Promise resolving to the agent group detail information
4359
+ */
4360
+ getAgentGroupDetail(identifier: string, params?: Omit<AgentGroupDetailQuery, 'identifier'>, options?: globalThis.RequestInit): Promise<AgentGroupDetail>;
4361
+ /**
4362
+ * Creates a new agent group in the marketplace
4363
+ *
4364
+ * Creates a new agent group with initial version (v1) and all member agents.
4365
+ * Requires authentication and ownership.
4366
+ *
4367
+ * @param groupData - The agent group data to create
4368
+ * @param options - Optional request options
4369
+ * @returns Promise resolving to the created agent group response
4370
+ */
4371
+ createAgentGroup(groupData: AgentGroupCreateRequest, options?: globalThis.RequestInit): Promise<AgentGroupCreateResponse>;
4372
+ /**
4373
+ * Creates a new version for an existing agent group
4374
+ *
4375
+ * Creates a new version with unified version number for the group and all member agents.
4376
+ * Fields not provided will be inherited from the latest version.
4377
+ *
4378
+ * @param versionData - The version data to create
4379
+ * @param options - Optional request options
4380
+ * @returns Promise resolving to the created version response
4381
+ */
4382
+ createAgentGroupVersion(versionData: AgentGroupVersionCreateRequest, options?: globalThis.RequestInit): Promise<AgentGroupVersionCreateResponse>;
4383
+ /**
4384
+ * Modifies an existing agent group
4385
+ *
4386
+ * Updates the agent group's base information. Can be used to change status,
4387
+ * metadata, or other group properties. Only the owner can modify the group.
4388
+ *
4389
+ * @param groupData - The agent group data to modify
4390
+ * @param options - Optional request options
4391
+ * @returns Promise resolving to the modified agent group response
4392
+ */
4393
+ modifyAgentGroup(groupData: AgentGroupModifyRequest, options?: globalThis.RequestInit): Promise<AgentGroupModifyResponse>;
4394
+ /**
4395
+ * Checks if an agent group exists in the marketplace
4396
+ *
4397
+ * @param identifier - Unique identifier of the agent group
4398
+ * @param options - Optional request options
4399
+ * @returns Promise resolving to true if agent group exists, false otherwise
4400
+ */
4401
+ checkAgentGroupExists(identifier: string, options?: globalThis.RequestInit): Promise<boolean>;
4402
+ /**
4403
+ * Changes the status of an agent group
4404
+ *
4405
+ * Internal helper method used by publish/unpublish/archive/deprecate methods.
4406
+ * Requires authentication.
4407
+ *
4408
+ * @param identifier - Unique identifier of the agent group
4409
+ * @param status - New status to set
4410
+ * @param options - Optional request options
4411
+ * @returns Promise resolving to the status change response
4412
+ */
4413
+ private changeStatus;
4414
+ /**
4415
+ * Publishes an agent group to the marketplace
4416
+ *
4417
+ * Makes the agent group publicly visible and available for use.
4418
+ * Requires authentication and ownership of the agent group.
4419
+ * Only groups with "Safe" safety check status can be published.
4420
+ *
4421
+ * @param identifier - Unique identifier of the agent group
4422
+ * @param options - Optional request options
4423
+ * @returns Promise resolving to the status change response
4424
+ */
4425
+ publish(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
4426
+ /**
4427
+ * Unpublishes an agent group from the marketplace
4428
+ *
4429
+ * Hides the agent group from public view. The agent group data is preserved
4430
+ * and can be republished later.
4431
+ * Requires authentication and ownership of the agent group.
4432
+ *
4433
+ * @param identifier - Unique identifier of the agent group
4434
+ * @param options - Optional request options
4435
+ * @returns Promise resolving to the status change response
4436
+ */
4437
+ unpublish(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
4438
+ /**
4439
+ * Archives an agent group
4440
+ *
4441
+ * Marks the agent group as archived. Archived agent groups are typically
4442
+ * no longer actively maintained but may still be accessible.
4443
+ * Requires authentication and ownership of the agent group.
4444
+ *
4445
+ * @param identifier - Unique identifier of the agent group
4446
+ * @param options - Optional request options
4447
+ * @returns Promise resolving to the status change response
4448
+ */
4449
+ archive(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
4450
+ /**
4451
+ * Deprecates an agent group
4452
+ *
4453
+ * Marks the agent group as deprecated. Deprecated agent groups are still
4454
+ * accessible but users are encouraged to migrate to alternatives.
4455
+ * Requires authentication and ownership of the agent group.
4456
+ *
4457
+ * @param identifier - Unique identifier of the agent group
4458
+ * @param options - Optional request options
4459
+ * @returns Promise resolving to the status change response
4460
+ */
4461
+ deprecate(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupStatusChangeResponse>;
4462
+ /**
4463
+ * Forks an existing agent group to create a new group owned by the current user
4464
+ *
4465
+ * Creates a complete copy of the agent group including all member agents,
4466
+ * their configurations, and version data. Statistical data (ratings, likes, etc.)
4467
+ * are reset to zero. Requires authentication.
4468
+ *
4469
+ * @param sourceIdentifier - Identifier of the agent group to fork
4470
+ * @param forkData - Fork request parameters (new identifier, name, etc.)
4471
+ * @param options - Optional request options
4472
+ * @returns Promise resolving to the fork response with new group details
4473
+ */
4474
+ forkAgentGroup(sourceIdentifier: string, forkData: AgentGroupForkRequest, options?: globalThis.RequestInit): Promise<AgentGroupForkResponse>;
4475
+ /**
4476
+ * Retrieves all public forks of a specific agent group
4477
+ *
4478
+ * Returns a list of agent groups that were forked from the specified group.
4479
+ * Only returns forks that are public and published.
4480
+ *
4481
+ * @param identifier - Identifier of the source agent group
4482
+ * @param options - Optional request options
4483
+ * @returns Promise resolving to the forks list response
4484
+ */
4485
+ getAgentGroupForks(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupForksResponse>;
4486
+ /**
4487
+ * Retrieves the source agent group that this group was forked from
4488
+ *
4489
+ * Returns null if the agent group is not a fork (original group).
4490
+ *
4491
+ * @param identifier - Identifier of the agent group to check
4492
+ * @param options - Optional request options
4493
+ * @returns Promise resolving to the fork source response
4494
+ */
4495
+ getAgentGroupForkSource(identifier: string, options?: globalThis.RequestInit): Promise<AgentGroupForkSourceResponse>;
3592
4496
  }
3593
4497
 
3594
4498
  /**
@@ -4308,6 +5212,33 @@ declare class UserService extends BaseSDK {
4308
5212
  * @throws Error if userName is already taken or update fails
4309
5213
  */
4310
5214
  updateUserInfo(data: UpdateUserInfoRequest, options?: globalThis.RequestInit): Promise<UpdateUserInfoResponse>;
5215
+ /**
5216
+ * Registers a new user via trust token authentication
5217
+ *
5218
+ * This endpoint ONLY accepts x-lobe-trust-token header authentication (Bearer tokens are not supported).
5219
+ * User information (email, username) is automatically fetched from app.lobehub.com.
5220
+ * If the user already exists (by email or userId), returns the existing user info.
5221
+ *
5222
+ * @param data - Registration data including registerUserId (required) and optional followUserId
5223
+ * @param options - Optional request options (must include x-lobe-trust-token header)
5224
+ * @returns Promise resolving to the registration response with user profile
5225
+ * @throws Error if user is banned, follow user is banned, or registration fails
5226
+ *
5227
+ * @example
5228
+ * ```typescript
5229
+ * const result = await userService.register({
5230
+ * registerUserId: 'user_abc123',
5231
+ * followUserId: 'user_xyz789', // Optional
5232
+ * displayName: 'John Doe',
5233
+ * userName: 'johndoe'
5234
+ * }, {
5235
+ * headers: {
5236
+ * 'x-lobe-trust-token': trustToken
5237
+ * }
5238
+ * });
5239
+ * ```
5240
+ */
5241
+ register(data: RegisterUserRequest, options?: globalThis.RequestInit): Promise<RegisterUserResponse>;
4311
5242
  }
4312
5243
 
4313
5244
  /**
@@ -4592,6 +5523,11 @@ declare class MarketSDK extends BaseSDK {
4592
5523
  * Provides methods to list, search, retrieve agent information, and upload agents
4593
5524
  */
4594
5525
  readonly agents: AgentService;
5526
+ /**
5527
+ * Agent Groups service for accessing agent group-related functionality
5528
+ * Provides methods to list, create, version, and manage agent groups
5529
+ */
5530
+ readonly agentGroups: AgentGroupService;
4595
5531
  /**
4596
5532
  * Auth service for authentication and authorization
4597
5533
  * Provides methods for OIDC user authentication, client registration, and M2M token management
@@ -4772,4 +5708,4 @@ declare function buildTrustedClientPayload(params: {
4772
5708
  userId: string;
4773
5709
  }): TrustedClientPayload;
4774
5710
 
4775
- 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, MarketAPIError, 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 };
5711
+ export { type AccountMeta, type AdminListQueryParams, type AdminListResponse, type AdminPluginParams, type AgentCreateRequest, type AgentCreateResponse, type AgentDetailQuery, type AgentExtension, type AgentForkItem, type AgentForkRequest, type AgentForkResponse, type AgentForkSourceResponse, type AgentForksResponse, type AgentGroupCreateRequest, type AgentGroupCreateResponse, type AgentGroupDetail, type AgentGroupDetailQuery, type AgentGroupForkItem, type AgentGroupForkRequest, type AgentGroupForkResponse, type AgentGroupForkSourceResponse, type AgentGroupForksResponse, 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 RegisterUserRequest, type RegisterUserResponse, type RegisteredUserProfile, 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 UserAgentGroupItem, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };