@lobehub/market-sdk 0.31.8 → 0.31.10

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
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { AgentItem, MarketItemBase, PluginConnectionType, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, AgentEventRequest, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse } from '@lobehub/market-types';
2
+ import { AgentItem, MarketItemBase, PluginConnectionType, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, BatchUpsertSkillCollectionLocalizationsRequest, SkillCollectionLocalizationBatchResponse, SkillCollectionLocalization, UpsertSkillCollectionLocalizationRequest, AgentEventRequest, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse } from '@lobehub/market-types';
3
3
  export * from '@lobehub/market-types';
4
4
  export { CategoryItem, CategoryListQuery, CategoryListResponse } from '@lobehub/market-types';
5
5
  import { JSONSchema7 } from 'json-schema';
@@ -2604,7 +2604,15 @@ interface MarketSkillListQuery {
2604
2604
  */
2605
2605
  category?: string;
2606
2606
  /**
2607
- * Locale for localized content (e.g., 'en-US', 'zh-CN')
2607
+ * Filter by featured flag
2608
+ */
2609
+ isFeatured?: 'false' | 'true';
2610
+ /**
2611
+ * Filter by official flag
2612
+ */
2613
+ isOfficial?: 'false' | 'true';
2614
+ /**
2615
+ * Locale for localized content such as description and summary; title remains canonical
2608
2616
  */
2609
2617
  locale?: string;
2610
2618
  /**
@@ -2637,7 +2645,7 @@ interface MarketSkillListQuery {
2637
2645
  */
2638
2646
  interface MarketSkillDetailQuery {
2639
2647
  /**
2640
- * Locale for localized content
2648
+ * Locale for localized content such as description and summary; title remains canonical
2641
2649
  */
2642
2650
  locale?: string;
2643
2651
  /**
@@ -2756,6 +2764,10 @@ interface MarketSkillListItem {
2756
2764
  * Whether the skill is featured
2757
2765
  */
2758
2766
  isFeatured: boolean;
2767
+ /**
2768
+ * Whether the skill is official
2769
+ */
2770
+ isOfficial: boolean;
2759
2771
  /**
2760
2772
  * Whether the skill is validated
2761
2773
  */
@@ -2769,7 +2781,7 @@ interface MarketSkillListItem {
2769
2781
  */
2770
2782
  logo?: string;
2771
2783
  /**
2772
- * Skill display name
2784
+ * Canonical skill title from the current version; locale does not affect this field
2773
2785
  */
2774
2786
  name: string;
2775
2787
  /**
@@ -2979,6 +2991,10 @@ interface MarketSkillDetail {
2979
2991
  * Whether the skill is featured
2980
2992
  */
2981
2993
  isFeatured: boolean;
2994
+ /**
2995
+ * Whether the skill is official
2996
+ */
2997
+ isOfficial: boolean;
2982
2998
  /**
2983
2999
  * Whether the skill is validated
2984
3000
  */
@@ -2999,7 +3015,7 @@ interface MarketSkillDetail {
2999
3015
  */
3000
3016
  manifest: MarketSkillManifest;
3001
3017
  /**
3002
- * Skill display name
3018
+ * Canonical skill title from the current version; locale does not affect this field
3003
3019
  */
3004
3020
  name: string;
3005
3021
  /**
@@ -3259,6 +3275,37 @@ interface SkillRatingDistribution {
3259
3275
  totalCount: number;
3260
3276
  }
3261
3277
 
3278
+ type MarketSkillCollectionItemSort = 'createdAt' | 'installCount' | 'name' | 'ratingAverage' | 'updatedAt';
3279
+ interface MarketSkillCollectionListQuery {
3280
+ locale?: string;
3281
+ }
3282
+ interface MarketSkillCollectionListItem {
3283
+ createdAt: string;
3284
+ description: string;
3285
+ icon: string;
3286
+ id: number;
3287
+ itemCount: number;
3288
+ position: number;
3289
+ slug: string;
3290
+ title: string;
3291
+ updatedAt: string;
3292
+ }
3293
+ type MarketSkillCollectionListResponse = MarketSkillCollectionListItem[];
3294
+ interface MarketSkillCollectionDetailQuery {
3295
+ locale?: string;
3296
+ page?: number;
3297
+ pageSize?: number;
3298
+ q?: string;
3299
+ sort?: MarketSkillCollectionItemSort;
3300
+ }
3301
+ interface MarketSkillCollectionDetail extends MarketSkillCollectionListItem {
3302
+ currentPage: number;
3303
+ items: MarketSkillListItem[];
3304
+ pageSize: number;
3305
+ totalCount: number;
3306
+ totalPages: number;
3307
+ }
3308
+
3262
3309
  /**
3263
3310
  * User-related type definitions for LobeHub Market SDK
3264
3311
  *
@@ -4857,6 +4904,17 @@ declare class ReviewService extends BaseSDK {
4857
4904
  }>;
4858
4905
  }
4859
4906
 
4907
+ declare class SkillCollectionService extends BaseSDK {
4908
+ batchUpsertLocalizations(collectionId: number, data: BatchUpsertSkillCollectionLocalizationsRequest): Promise<SkillCollectionLocalizationBatchResponse>;
4909
+ deleteLocalization(collectionId: number, locale: string): Promise<{
4910
+ message: string;
4911
+ success: boolean;
4912
+ }>;
4913
+ getLocalization(collectionId: number, locale: string): Promise<SkillCollectionLocalization>;
4914
+ getLocalizations(collectionId: number): Promise<SkillCollectionLocalization[]>;
4915
+ upsertLocalization(collectionId: number, locale: string, data: UpsertSkillCollectionLocalizationRequest): Promise<SkillCollectionLocalization>;
4916
+ }
4917
+
4860
4918
  type AdminPluginEnvListQuery = any;
4861
4919
  type PluginEnv = any;
4862
4920
  interface AdminPluginEnvCreateParams {
@@ -4961,6 +5019,11 @@ declare class MarketAdmin extends BaseSDK {
4961
5019
  * Provides methods for configuring marketplace settings
4962
5020
  */
4963
5021
  readonly settings: SettingsService;
5022
+ /**
5023
+ * Skill collection management service
5024
+ * Provides methods for managing curated skill collection localizations
5025
+ */
5026
+ readonly skillCollections: SkillCollectionService;
4964
5027
  /**
4965
5028
  * System dependency management service
4966
5029
  * Provides methods for managing system dependencies required by plugins
@@ -6211,6 +6274,11 @@ declare class SkillService extends BaseSDK {
6211
6274
  callTool<T = unknown>(provider: string, params: SkillCallParams, options?: globalThis.RequestInit): Promise<CallSkillToolResponse<T>>;
6212
6275
  }
6213
6276
 
6277
+ declare class MarketSkillCollectionService extends BaseSDK {
6278
+ getSkillCollectionDetail(slug: string, params?: MarketSkillCollectionDetailQuery, options?: globalThis.RequestInit): Promise<MarketSkillCollectionDetail>;
6279
+ getSkillCollections(params?: MarketSkillCollectionListQuery, options?: globalThis.RequestInit): Promise<MarketSkillCollectionListResponse>;
6280
+ }
6281
+
6214
6282
  /**
6215
6283
  * Market Skill Service
6216
6284
  *
@@ -6230,7 +6298,8 @@ declare class MarketSkillService extends BaseSDK {
6230
6298
  * Retrieves a list of skills from the marketplace
6231
6299
  *
6232
6300
  * Supports filtering, pagination, search, and various sorting options
6233
- * including GitHub stats (stars, forks, watchers).
6301
+ * including GitHub stats (stars, forks, watchers). Locale localizes
6302
+ * descriptions and summaries, but the returned skill name stays canonical.
6234
6303
  *
6235
6304
  * @param params - Query parameters for filtering and pagination
6236
6305
  * @param options - Optional request options
@@ -6257,7 +6326,8 @@ declare class MarketSkillService extends BaseSDK {
6257
6326
  * Retrieves detailed information about a specific skill
6258
6327
  *
6259
6328
  * Returns complete skill information including manifest, content,
6260
- * resources, and version history.
6329
+ * resources, and version history. Locale localizes descriptions and
6330
+ * summaries, but the returned skill name stays canonical.
6261
6331
  *
6262
6332
  * @param identifier - Unique skill identifier (e.g., 'github.owner.repo.path')
6263
6333
  * @param params - Query parameters for locale and version
@@ -6932,6 +7002,11 @@ declare class MarketSDK extends BaseSDK {
6932
7002
  * Provides methods to list providers, list tools, and call tools on connected OAuth providers
6933
7003
  */
6934
7004
  readonly skills: SkillService;
7005
+ /**
7006
+ * Market Skill Collection service for curated marketplace skill collections
7007
+ * Provides methods to list and retrieve manually curated skill collections
7008
+ */
7009
+ readonly skillCollections: MarketSkillCollectionService;
6935
7010
  /**
6936
7011
  * Market Skill service for marketplace skill resources
6937
7012
  * Provides methods to list, search, retrieve details, and download skills from the marketplace
@@ -7079,4 +7154,4 @@ declare function buildTrustedClientPayload(params: {
7079
7154
  userId: string;
7080
7155
  }): TrustedClientPayload;
7081
7156
 
7082
- 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 AgentProfileEntity, type AgentProfileResponse, 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, type MarketReportGitHubSkillParams, type MarketReportGitHubSkillResponse, type MarketReportSkillInstallParams, type MarketReportSkillInstallResponse, MarketSDK, type MarketSDKOptions, type MarketSkillAuthor, type MarketSkillCategory, type MarketSkillCategoryQuery, type MarketSkillDetail, type MarketSkillDetailQuery, type MarketSkillGitHubMeta, type MarketSkillListItem, type MarketSkillListQuery, type MarketSkillListResponse, type MarketSkillManifest, type MarketSkillResource, type MarketSkillVersionSummary, type MarketSkillVersionsResponse, type MemberAgent, type MoveLocalFilesParams, type MoveOperation, type OAuthConnection, type OAuthTokenResponse, type OwnAgentGroupListQuery, type OwnAgentListQuery, type PaginationQuery, type PluginCommentAuthor, type PluginCommentCreateItem, type PluginCommentCreateResponse, type PluginCommentDeleteResponse, type PluginCommentItem, type PluginCommentListQuery, type PluginCommentListResponse, type PluginCommentRating, type PluginCommentReactionResponse, type PluginI18nImportParams, type PluginI18nImportResponse, type PluginItem, type PluginLatestOwnComment, type PluginListResponse, type PluginLocalization, type PluginQueryParams, type PluginRatingDistribution, 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, SDK_USER_AGENT, SDK_VERSION, type SearchLocalFilesParams, type SharedTokenState, type SkillCallParams, type SkillCommentAuthor, type SkillCommentCreateItem, type SkillCommentCreateResponse, type SkillCommentDeleteResponse, type SkillCommentItem, type SkillCommentListItem, type SkillCommentListQuery, type SkillCommentListResponse, type SkillCommentRating, type SkillErrorResponse, type SkillLatestOwnComment, type SkillProviderInfo, type SkillProviderStatus, type SkillRatingDistribution, type SkillTool, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SuccessResponse, type ToggleLikeResponse, type TrustedClientPayload, type UnclaimedPluginItem, type UpdateAgentProfileRequest, type UpdateAgentProfileResponse, type UpdateMemberAgent, type UpdateUserInfoRequest, type UpdateUserInfoResponse, type UserAgentGroupItem, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };
7157
+ 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 AgentProfileEntity, type AgentProfileResponse, 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, type MarketReportGitHubSkillParams, type MarketReportGitHubSkillResponse, type MarketReportSkillInstallParams, type MarketReportSkillInstallResponse, MarketSDK, type MarketSDKOptions, type MarketSkillAuthor, type MarketSkillCategory, type MarketSkillCategoryQuery, type MarketSkillCollectionDetail, type MarketSkillCollectionDetailQuery, type MarketSkillCollectionItemSort, type MarketSkillCollectionListItem, type MarketSkillCollectionListQuery, type MarketSkillCollectionListResponse, type MarketSkillDetail, type MarketSkillDetailQuery, type MarketSkillGitHubMeta, type MarketSkillListItem, type MarketSkillListQuery, type MarketSkillListResponse, type MarketSkillManifest, type MarketSkillResource, type MarketSkillVersionSummary, type MarketSkillVersionsResponse, type MemberAgent, type MoveLocalFilesParams, type MoveOperation, type OAuthConnection, type OAuthTokenResponse, type OwnAgentGroupListQuery, type OwnAgentListQuery, type PaginationQuery, type PluginCommentAuthor, type PluginCommentCreateItem, type PluginCommentCreateResponse, type PluginCommentDeleteResponse, type PluginCommentItem, type PluginCommentListQuery, type PluginCommentListResponse, type PluginCommentRating, type PluginCommentReactionResponse, type PluginI18nImportParams, type PluginI18nImportResponse, type PluginItem, type PluginLatestOwnComment, type PluginListResponse, type PluginLocalization, type PluginQueryParams, type PluginRatingDistribution, 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, SDK_USER_AGENT, SDK_VERSION, type SearchLocalFilesParams, type SharedTokenState, type SkillCallParams, type SkillCommentAuthor, type SkillCommentCreateItem, type SkillCommentCreateResponse, type SkillCommentDeleteResponse, type SkillCommentItem, type SkillCommentListItem, type SkillCommentListQuery, type SkillCommentListResponse, type SkillCommentRating, type SkillErrorResponse, type SkillLatestOwnComment, type SkillProviderInfo, type SkillProviderStatus, type SkillRatingDistribution, type SkillTool, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SuccessResponse, type ToggleLikeResponse, type TrustedClientPayload, type UnclaimedPluginItem, type UpdateAgentProfileRequest, type UpdateAgentProfileResponse, type UpdateMemberAgent, type UpdateUserInfoRequest, type UpdateUserInfoResponse, type UserAgentGroupItem, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };