@lobehub/market-sdk 0.30.0 → 0.30.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 +21 -2
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2832,6 +2832,19 @@ interface MarketSkillCategory {
|
|
|
2832
2832
|
*/
|
|
2833
2833
|
count: number;
|
|
2834
2834
|
}
|
|
2835
|
+
/**
|
|
2836
|
+
* Query parameters for skill categories
|
|
2837
|
+
*/
|
|
2838
|
+
interface MarketSkillCategoryQuery {
|
|
2839
|
+
/**
|
|
2840
|
+
* Locale for localized content (e.g., 'en-US', 'zh-CN')
|
|
2841
|
+
*/
|
|
2842
|
+
locale?: string;
|
|
2843
|
+
/**
|
|
2844
|
+
* Search query to filter skills before counting categories
|
|
2845
|
+
*/
|
|
2846
|
+
q?: string;
|
|
2847
|
+
}
|
|
2835
2848
|
/**
|
|
2836
2849
|
* Parameters for reporting a GitHub skill
|
|
2837
2850
|
*/
|
|
@@ -5827,17 +5840,23 @@ declare class MarketSkillService extends BaseSDK {
|
|
|
5827
5840
|
*
|
|
5828
5841
|
* Returns a list of categories along with the number of skills
|
|
5829
5842
|
* in each category. Useful for building category filters.
|
|
5843
|
+
* Supports optional search filtering via 'q' parameter and locale specification.
|
|
5830
5844
|
*
|
|
5845
|
+
* @param params - Query parameters for filtering categories
|
|
5831
5846
|
* @param options - Optional request options
|
|
5832
5847
|
* @returns Promise resolving to an array of categories with counts
|
|
5833
5848
|
*
|
|
5834
5849
|
* @example
|
|
5835
5850
|
* ```typescript
|
|
5851
|
+
* // Get all categories
|
|
5836
5852
|
* const categories = await sdk.marketSkills.getCategories();
|
|
5837
5853
|
* // [{ category: 'development', count: 25 }, { category: 'productivity', count: 18 }, ...]
|
|
5854
|
+
*
|
|
5855
|
+
* // Get categories with search filter
|
|
5856
|
+
* const filtered = await sdk.marketSkills.getCategories({ q: 'code' });
|
|
5838
5857
|
* ```
|
|
5839
5858
|
*/
|
|
5840
|
-
getCategories(options?: globalThis.RequestInit): Promise<MarketSkillCategory[]>;
|
|
5859
|
+
getCategories(params?: MarketSkillCategoryQuery, options?: globalThis.RequestInit): Promise<MarketSkillCategory[]>;
|
|
5841
5860
|
/**
|
|
5842
5861
|
* Retrieves all published skill identifiers
|
|
5843
5862
|
*
|
|
@@ -6457,4 +6476,4 @@ declare function buildTrustedClientPayload(params: {
|
|
|
6457
6476
|
userId: string;
|
|
6458
6477
|
}): TrustedClientPayload;
|
|
6459
6478
|
|
|
6460
|
-
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, type MarketReportGitHubSkillParams, type MarketReportGitHubSkillResponse, MarketSDK, type MarketSDKOptions, type MarketSkillAuthor, type MarketSkillCategory, 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 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 };
|
|
6479
|
+
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, type MarketReportGitHubSkillParams, type MarketReportGitHubSkillResponse, 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 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -3643,19 +3643,31 @@ var MarketSkillService = class extends BaseSDK {
|
|
|
3643
3643
|
*
|
|
3644
3644
|
* Returns a list of categories along with the number of skills
|
|
3645
3645
|
* in each category. Useful for building category filters.
|
|
3646
|
+
* Supports optional search filtering via 'q' parameter and locale specification.
|
|
3646
3647
|
*
|
|
3648
|
+
* @param params - Query parameters for filtering categories
|
|
3647
3649
|
* @param options - Optional request options
|
|
3648
3650
|
* @returns Promise resolving to an array of categories with counts
|
|
3649
3651
|
*
|
|
3650
3652
|
* @example
|
|
3651
3653
|
* ```typescript
|
|
3654
|
+
* // Get all categories
|
|
3652
3655
|
* const categories = await sdk.marketSkills.getCategories();
|
|
3653
3656
|
* // [{ category: 'development', count: 25 }, { category: 'productivity', count: 18 }, ...]
|
|
3657
|
+
*
|
|
3658
|
+
* // Get categories with search filter
|
|
3659
|
+
* const filtered = await sdk.marketSkills.getCategories({ q: 'code' });
|
|
3654
3660
|
* ```
|
|
3655
3661
|
*/
|
|
3656
|
-
async getCategories(options) {
|
|
3657
|
-
|
|
3658
|
-
const
|
|
3662
|
+
async getCategories(params = {}, options) {
|
|
3663
|
+
const locale = params.locale || this.defaultLocale;
|
|
3664
|
+
const queryParams = { ...params, locale };
|
|
3665
|
+
const queryString = this.buildQueryString(queryParams);
|
|
3666
|
+
log18("Getting skill categories: %O", queryParams);
|
|
3667
|
+
const result = await this.request(
|
|
3668
|
+
`/v1/skills/categories${queryString}`,
|
|
3669
|
+
options
|
|
3670
|
+
);
|
|
3659
3671
|
log18("Retrieved %d categories", result.length);
|
|
3660
3672
|
return result;
|
|
3661
3673
|
}
|