@lobehub/market-sdk 0.25.0 → 0.25.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
@@ -1568,6 +1568,55 @@ interface PaginationQuery {
1568
1568
  /** Number of results to skip */
1569
1569
  offset?: number;
1570
1570
  }
1571
+ /**
1572
+ * Client Info
1573
+ *
1574
+ * Client environment information for debugging feedback
1575
+ */
1576
+ interface FeedbackClientInfo {
1577
+ /** Browser/app language */
1578
+ language?: string;
1579
+ /** Screen resolution (e.g., "1920x1080") */
1580
+ screenResolution?: string;
1581
+ /** User timezone */
1582
+ timezone?: string;
1583
+ /** Current page URL */
1584
+ url?: string;
1585
+ /** Browser user agent string */
1586
+ userAgent?: string;
1587
+ /** Viewport dimensions (e.g., "1280x720") */
1588
+ viewport?: string;
1589
+ }
1590
+ /**
1591
+ * Submit Feedback Request
1592
+ *
1593
+ * Request body for submitting user feedback
1594
+ */
1595
+ interface SubmitFeedbackRequest {
1596
+ /** Optional client environment information */
1597
+ clientInfo?: FeedbackClientInfo;
1598
+ /** User email address (required for contact) */
1599
+ email: string;
1600
+ /** Detailed feedback message (1-5000 characters) */
1601
+ message: string;
1602
+ /** Optional screenshot URL */
1603
+ screenshotUrl?: string;
1604
+ /** Feedback title/subject (1-200 characters) */
1605
+ title: string;
1606
+ }
1607
+ /**
1608
+ * Submit Feedback Response
1609
+ *
1610
+ * Response structure for submit feedback endpoint
1611
+ */
1612
+ interface SubmitFeedbackResponse {
1613
+ /** Created issue ID in Linear */
1614
+ issueId: string;
1615
+ /** URL to view the issue in Linear */
1616
+ issueUrl: string;
1617
+ /** Whether the submission was successful */
1618
+ success: boolean;
1619
+ }
1571
1620
 
1572
1621
  /**
1573
1622
  * Base SDK class
@@ -2859,6 +2908,45 @@ declare class AuthService extends BaseSDK {
2859
2908
  }>;
2860
2909
  }
2861
2910
 
2911
+ /**
2912
+ * Feedback Service
2913
+ *
2914
+ * Provides functionality for submitting user feedback to the LobeHub Marketplace.
2915
+ * Feedback is tracked in Linear for follow-up.
2916
+ *
2917
+ * Note: This endpoint is rate-limited to 3 requests per minute per IP.
2918
+ */
2919
+ declare class FeedbackService extends BaseSDK {
2920
+ /**
2921
+ * Submits user feedback
2922
+ *
2923
+ * Creates a feedback issue in Linear for tracking and follow-up.
2924
+ * Email is required for contact purposes.
2925
+ *
2926
+ * Rate limit: 3 requests per minute per IP
2927
+ *
2928
+ * @param data - The feedback data to submit
2929
+ * @param options - Optional request options
2930
+ * @returns Promise resolving to the feedback submission response
2931
+ * @throws Error if rate limit is exceeded (429) or submission fails
2932
+ *
2933
+ * @example
2934
+ * ```typescript
2935
+ * const response = await sdk.feedback.submitFeedback({
2936
+ * email: 'user@example.com',
2937
+ * title: 'Feature request',
2938
+ * message: 'It would be great if...',
2939
+ * clientInfo: {
2940
+ * url: window.location.href,
2941
+ * userAgent: navigator.userAgent,
2942
+ * },
2943
+ * });
2944
+ * console.log('Feedback submitted:', response.issueUrl);
2945
+ * ```
2946
+ */
2947
+ submitFeedback(data: SubmitFeedbackRequest, options?: globalThis.RequestInit): Promise<SubmitFeedbackResponse>;
2948
+ }
2949
+
2862
2950
  /**
2863
2951
  * Plugins Service
2864
2952
  *
@@ -3470,6 +3558,11 @@ declare class MarketSDK extends BaseSDK {
3470
3558
  * Provides methods to like/unlike content and retrieve like lists
3471
3559
  */
3472
3560
  readonly likes: UserLikeService;
3561
+ /**
3562
+ * Feedback service for submitting user feedback
3563
+ * Provides methods to submit feedback which is tracked in Linear
3564
+ */
3565
+ readonly feedback: FeedbackService;
3473
3566
  /**
3474
3567
  * Discovery service for retrieving API service information
3475
3568
  * Used to get information about available endpoints and services
@@ -3578,4 +3671,4 @@ declare function buildTrustedClientPayload(params: {
3578
3671
  userId: string;
3579
3672
  }): TrustedClientPayload;
3580
3673
 
3581
- 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 CheckFavoriteQuery, type CheckFavoriteResponse, type CheckFollowQuery, type CheckFollowResponse, type CheckLikeQuery, type CheckLikeResponse, type ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FollowListItem, type FollowListResponse, type FollowRequest, type GetCommandOutputParams, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListLocalFilesParams, MarketAdmin, MarketSDK, type MarketSDKOptions, type MoveLocalFilesParams, type MoveOperation, 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 RefreshTokenRequest, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, type SearchLocalFilesParams, type SharedTokenState, StatusEnumSchema, 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 };
3674
+ 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 CheckFavoriteQuery, type CheckFavoriteResponse, type CheckFollowQuery, type CheckFollowResponse, type CheckLikeQuery, type CheckLikeResponse, type ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FollowListItem, type FollowListResponse, type FollowRequest, type GetCommandOutputParams, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListLocalFilesParams, MarketAdmin, MarketSDK, type MarketSDKOptions, type MoveLocalFilesParams, type MoveOperation, 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 RefreshTokenRequest, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, type SearchLocalFilesParams, type SharedTokenState, 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 };