@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.mjs CHANGED
@@ -1387,7 +1387,7 @@ var MarketAdmin = class extends BaseSDK {
1387
1387
  };
1388
1388
 
1389
1389
  // src/market/market-sdk.ts
1390
- import debug17 from "debug";
1390
+ import debug18 from "debug";
1391
1391
 
1392
1392
  // src/market/services/AgentService.ts
1393
1393
  import debug9 from "debug";
@@ -2019,9 +2019,55 @@ var DiscoveryService = class extends BaseSDK {
2019
2019
  }
2020
2020
  };
2021
2021
 
2022
- // src/market/services/PluginsService.ts
2022
+ // src/market/services/FeedbackService.ts
2023
2023
  import debug12 from "debug";
2024
- var log12 = debug12("lobe-market-sdk:plugins");
2024
+ var log12 = debug12("lobe-market-sdk:feedback");
2025
+ var FeedbackService = class extends BaseSDK {
2026
+ /**
2027
+ * Submits user feedback
2028
+ *
2029
+ * Creates a feedback issue in Linear for tracking and follow-up.
2030
+ * Email is required for contact purposes.
2031
+ *
2032
+ * Rate limit: 3 requests per minute per IP
2033
+ *
2034
+ * @param data - The feedback data to submit
2035
+ * @param options - Optional request options
2036
+ * @returns Promise resolving to the feedback submission response
2037
+ * @throws Error if rate limit is exceeded (429) or submission fails
2038
+ *
2039
+ * @example
2040
+ * ```typescript
2041
+ * const response = await sdk.feedback.submitFeedback({
2042
+ * email: 'user@example.com',
2043
+ * title: 'Feature request',
2044
+ * message: 'It would be great if...',
2045
+ * clientInfo: {
2046
+ * url: window.location.href,
2047
+ * userAgent: navigator.userAgent,
2048
+ * },
2049
+ * });
2050
+ * console.log('Feedback submitted:', response.issueUrl);
2051
+ * ```
2052
+ */
2053
+ async submitFeedback(data, options) {
2054
+ log12("Submitting feedback: %s", data.title);
2055
+ const result = await this.request("/v1/user/feedback", {
2056
+ body: JSON.stringify(data),
2057
+ headers: {
2058
+ "Content-Type": "application/json"
2059
+ },
2060
+ method: "POST",
2061
+ ...options
2062
+ });
2063
+ log12("Feedback submitted successfully: %s", result.issueId);
2064
+ return result;
2065
+ }
2066
+ };
2067
+
2068
+ // src/market/services/PluginsService.ts
2069
+ import debug13 from "debug";
2070
+ var log13 = debug13("lobe-market-sdk:plugins");
2025
2071
  var PluginsService = class extends BaseSDK {
2026
2072
  /**
2027
2073
  * Retrieves a list of plugins from the marketplace
@@ -2036,9 +2082,9 @@ var PluginsService = class extends BaseSDK {
2036
2082
  const locale = params.locale || this.defaultLocale;
2037
2083
  const queryParams = { ...params, locale };
2038
2084
  const queryString = this.buildQueryString(queryParams);
2039
- log12("Getting plugin list: %O", queryParams);
2085
+ log13("Getting plugin list: %O", queryParams);
2040
2086
  const result = await this.request(`/v1/plugins${queryString}`, options);
2041
- log12("Retrieved %d plugins", result.items.length);
2087
+ log13("Retrieved %d plugins", result.items.length);
2042
2088
  return result;
2043
2089
  }
2044
2090
  /**
@@ -2056,12 +2102,12 @@ var PluginsService = class extends BaseSDK {
2056
2102
  const locale = params.locale || this.defaultLocale;
2057
2103
  const queryParams = { ...params, locale };
2058
2104
  const queryString = this.buildQueryString(queryParams);
2059
- log12("Getting plugin categories: %O", queryParams);
2105
+ log13("Getting plugin categories: %O", queryParams);
2060
2106
  const result = await this.request(
2061
2107
  `/v1/plugins/categories${queryString}`,
2062
2108
  options
2063
2109
  );
2064
- log12("Retrieved %d categories", result.length);
2110
+ log13("Retrieved %d categories", result.length);
2065
2111
  return result;
2066
2112
  }
2067
2113
  /**
@@ -2074,12 +2120,12 @@ var PluginsService = class extends BaseSDK {
2074
2120
  * @returns Promise resolving to an array containing identifiers array and last modified time
2075
2121
  */
2076
2122
  async getPublishedIdentifiers(options) {
2077
- log12("Getting published plugin identifiers");
2123
+ log13("Getting published plugin identifiers");
2078
2124
  const result = await this.request(
2079
2125
  "/v1/plugins/identifiers",
2080
2126
  options
2081
2127
  );
2082
- log12("Retrieved %d published plugin identifiers", result.length);
2128
+ log13("Retrieved %d published plugin identifiers", result.length);
2083
2129
  return result;
2084
2130
  }
2085
2131
  /**
@@ -2099,7 +2145,7 @@ var PluginsService = class extends BaseSDK {
2099
2145
  version,
2100
2146
  identifier
2101
2147
  }, options) {
2102
- log12("Getting plugin manifest: %O", { identifier, locale, version });
2148
+ log13("Getting plugin manifest: %O", { identifier, locale, version });
2103
2149
  const localeParam = locale || this.defaultLocale;
2104
2150
  const params = { locale: localeParam };
2105
2151
  if (version) {
@@ -2110,7 +2156,7 @@ var PluginsService = class extends BaseSDK {
2110
2156
  `/v1/plugins/${identifier}/manifest${queryString}`,
2111
2157
  options
2112
2158
  );
2113
- log12("Plugin manifest successfully retrieved: %s", identifier);
2159
+ log13("Plugin manifest successfully retrieved: %s", identifier);
2114
2160
  return manifest;
2115
2161
  }
2116
2162
  /**
@@ -2127,7 +2173,7 @@ var PluginsService = class extends BaseSDK {
2127
2173
  version,
2128
2174
  identifier
2129
2175
  }, options) {
2130
- log12("Getting plugin detail: %O", { identifier, locale, version });
2176
+ log13("Getting plugin detail: %O", { identifier, locale, version });
2131
2177
  const localeParam = locale || this.defaultLocale;
2132
2178
  const params = { locale: localeParam };
2133
2179
  if (version) {
@@ -2138,7 +2184,7 @@ var PluginsService = class extends BaseSDK {
2138
2184
  `/v1/plugins/${identifier}${queryString}`,
2139
2185
  options
2140
2186
  );
2141
- log12("Plugin manifest successfully retrieved: %s", identifier);
2187
+ log13("Plugin manifest successfully retrieved: %s", identifier);
2142
2188
  return manifest;
2143
2189
  }
2144
2190
  /**
@@ -2153,7 +2199,7 @@ var PluginsService = class extends BaseSDK {
2153
2199
  *
2154
2200
  */
2155
2201
  async reportInstallation(reportData) {
2156
- log12("Reporting installation for %s@%s", reportData.identifier, reportData.version);
2202
+ log13("Reporting installation for %s@%s", reportData.identifier, reportData.version);
2157
2203
  const result = await this.request("/v1/plugins/report/installation", {
2158
2204
  body: JSON.stringify(reportData),
2159
2205
  headers: {
@@ -2161,7 +2207,7 @@ var PluginsService = class extends BaseSDK {
2161
2207
  },
2162
2208
  method: "POST"
2163
2209
  });
2164
- log12("Installation report submitted successfully: %O", result);
2210
+ log13("Installation report submitted successfully: %O", result);
2165
2211
  return result;
2166
2212
  }
2167
2213
  /**
@@ -2175,7 +2221,7 @@ var PluginsService = class extends BaseSDK {
2175
2221
  * @returns Promise resolving to the report submission response
2176
2222
  */
2177
2223
  async reportCall(reportData) {
2178
- log12(
2224
+ log13(
2179
2225
  "Reporting call for %s@%s - %s:%s",
2180
2226
  reportData.identifier,
2181
2227
  reportData.version,
@@ -2189,7 +2235,7 @@ var PluginsService = class extends BaseSDK {
2189
2235
  },
2190
2236
  method: "POST"
2191
2237
  });
2192
- log12("Call report submitted successfully: %O", result);
2238
+ log13("Call report submitted successfully: %O", result);
2193
2239
  return result;
2194
2240
  }
2195
2241
  /**
@@ -2212,7 +2258,7 @@ var PluginsService = class extends BaseSDK {
2212
2258
  * ```
2213
2259
  */
2214
2260
  async callCloudGateway(request, options) {
2215
- log12("Calling cloud gateway for plugin %s, tool %s", request.identifier, request.toolName);
2261
+ log13("Calling cloud gateway for plugin %s, tool %s", request.identifier, request.toolName);
2216
2262
  const result = await this.request("/v1/plugins/cloud-gateway", {
2217
2263
  body: JSON.stringify(request),
2218
2264
  headers: {
@@ -2221,7 +2267,7 @@ var PluginsService = class extends BaseSDK {
2221
2267
  method: "POST",
2222
2268
  ...options
2223
2269
  });
2224
- log12("Cloud gateway call completed: %O", {
2270
+ log13("Cloud gateway call completed: %O", {
2225
2271
  identifier: request.identifier,
2226
2272
  isError: result.isError,
2227
2273
  toolName: request.toolName
@@ -2262,7 +2308,7 @@ var PluginsService = class extends BaseSDK {
2262
2308
  * ```
2263
2309
  */
2264
2310
  async runBuildInTool(toolName, params, context, options) {
2265
- log12("Running built-in tool: %s for user %s, topic %s", toolName, context.userId, context.topicId);
2311
+ log13("Running built-in tool: %s for user %s, topic %s", toolName, context.userId, context.topicId);
2266
2312
  const result = await this.request("/v1/plugins/run-buildin-tools", {
2267
2313
  body: JSON.stringify({
2268
2314
  params,
@@ -2276,7 +2322,7 @@ var PluginsService = class extends BaseSDK {
2276
2322
  method: "POST",
2277
2323
  ...options
2278
2324
  });
2279
- log12("Built-in tool execution completed: %O", {
2325
+ log13("Built-in tool execution completed: %O", {
2280
2326
  success: result.success,
2281
2327
  toolName
2282
2328
  });
@@ -2380,8 +2426,8 @@ var PluginsService = class extends BaseSDK {
2380
2426
  };
2381
2427
 
2382
2428
  // src/market/services/UserService.ts
2383
- import debug13 from "debug";
2384
- var log13 = debug13("lobe-market-sdk:user");
2429
+ import debug14 from "debug";
2430
+ var log14 = debug14("lobe-market-sdk:user");
2385
2431
  var UserService = class extends BaseSDK {
2386
2432
  /**
2387
2433
  * Retrieves user information by account ID or userName
@@ -2398,12 +2444,12 @@ var UserService = class extends BaseSDK {
2398
2444
  const locale = params.locale || this.defaultLocale;
2399
2445
  const queryParams = { locale };
2400
2446
  const queryString = this.buildQueryString(queryParams);
2401
- log13("Getting user info: %O", { idOrUserName, ...params });
2447
+ log14("Getting user info: %O", { idOrUserName, ...params });
2402
2448
  const result = await this.request(
2403
2449
  `/v1/user/info/${idOrUserName}${queryString}`,
2404
2450
  options
2405
2451
  );
2406
- log13("User info successfully retrieved for: %s", idOrUserName);
2452
+ log14("User info successfully retrieved for: %s", idOrUserName);
2407
2453
  return result;
2408
2454
  }
2409
2455
  /**
@@ -2418,7 +2464,7 @@ var UserService = class extends BaseSDK {
2418
2464
  * @throws Error if userName is already taken or update fails
2419
2465
  */
2420
2466
  async updateUserInfo(data, options) {
2421
- log13("Updating user info: %O", data);
2467
+ log14("Updating user info: %O", data);
2422
2468
  const result = await this.request("/v1/user/update", {
2423
2469
  body: JSON.stringify(data),
2424
2470
  headers: {
@@ -2427,14 +2473,14 @@ var UserService = class extends BaseSDK {
2427
2473
  method: "POST",
2428
2474
  ...options
2429
2475
  });
2430
- log13("User info updated successfully");
2476
+ log14("User info updated successfully");
2431
2477
  return result;
2432
2478
  }
2433
2479
  };
2434
2480
 
2435
2481
  // src/market/services/UserFollowService.ts
2436
- import debug14 from "debug";
2437
- var log14 = debug14("lobe-market-sdk:user-follow");
2482
+ import debug15 from "debug";
2483
+ var log15 = debug15("lobe-market-sdk:user-follow");
2438
2484
  var UserFollowService = class extends BaseSDK {
2439
2485
  /**
2440
2486
  * Follow a user
@@ -2448,7 +2494,7 @@ var UserFollowService = class extends BaseSDK {
2448
2494
  * @throws Error if already following or cannot follow yourself
2449
2495
  */
2450
2496
  async follow(followingId, options) {
2451
- log14("Following user: %d", followingId);
2497
+ log15("Following user: %d", followingId);
2452
2498
  const body = { followingId };
2453
2499
  const result = await this.request("/v1/user/follows", {
2454
2500
  body: JSON.stringify(body),
@@ -2458,7 +2504,7 @@ var UserFollowService = class extends BaseSDK {
2458
2504
  method: "POST",
2459
2505
  ...options
2460
2506
  });
2461
- log14("Successfully followed user: %d", followingId);
2507
+ log15("Successfully followed user: %d", followingId);
2462
2508
  return result;
2463
2509
  }
2464
2510
  /**
@@ -2473,7 +2519,7 @@ var UserFollowService = class extends BaseSDK {
2473
2519
  * @throws Error if follow relationship not found
2474
2520
  */
2475
2521
  async unfollow(followingId, options) {
2476
- log14("Unfollowing user: %d", followingId);
2522
+ log15("Unfollowing user: %d", followingId);
2477
2523
  const body = { followingId };
2478
2524
  const result = await this.request("/v1/user/follows", {
2479
2525
  body: JSON.stringify(body),
@@ -2483,7 +2529,7 @@ var UserFollowService = class extends BaseSDK {
2483
2529
  method: "DELETE",
2484
2530
  ...options
2485
2531
  });
2486
- log14("Successfully unfollowed user: %d", followingId);
2532
+ log15("Successfully unfollowed user: %d", followingId);
2487
2533
  return result;
2488
2534
  }
2489
2535
  /**
@@ -2497,13 +2543,13 @@ var UserFollowService = class extends BaseSDK {
2497
2543
  * @returns Promise resolving to follow status (isFollowing, isMutual)
2498
2544
  */
2499
2545
  async checkFollowStatus(targetUserId, options) {
2500
- log14("Checking follow status for user: %d", targetUserId);
2546
+ log15("Checking follow status for user: %d", targetUserId);
2501
2547
  const queryString = this.buildQueryString({ targetUserId: String(targetUserId) });
2502
2548
  const result = await this.request(
2503
2549
  `/v1/user/follows/check${queryString}`,
2504
2550
  options
2505
2551
  );
2506
- log14("Follow status retrieved: %O", result);
2552
+ log15("Follow status retrieved: %O", result);
2507
2553
  return result;
2508
2554
  }
2509
2555
  /**
@@ -2518,7 +2564,7 @@ var UserFollowService = class extends BaseSDK {
2518
2564
  * @returns Promise resolving to list of following users
2519
2565
  */
2520
2566
  async getFollowing(userId, params = {}, options) {
2521
- log14("Getting following list for user: %d", userId);
2567
+ log15("Getting following list for user: %d", userId);
2522
2568
  const queryParams = {};
2523
2569
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2524
2570
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2527,7 +2573,7 @@ var UserFollowService = class extends BaseSDK {
2527
2573
  `/v1/user/follows/${userId}/following${queryString}`,
2528
2574
  options
2529
2575
  );
2530
- log14("Following list retrieved for user: %d", userId);
2576
+ log15("Following list retrieved for user: %d", userId);
2531
2577
  return result;
2532
2578
  }
2533
2579
  /**
@@ -2542,7 +2588,7 @@ var UserFollowService = class extends BaseSDK {
2542
2588
  * @returns Promise resolving to list of followers
2543
2589
  */
2544
2590
  async getFollowers(userId, params = {}, options) {
2545
- log14("Getting followers list for user: %d", userId);
2591
+ log15("Getting followers list for user: %d", userId);
2546
2592
  const queryParams = {};
2547
2593
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2548
2594
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2551,14 +2597,14 @@ var UserFollowService = class extends BaseSDK {
2551
2597
  `/v1/user/follows/${userId}/followers${queryString}`,
2552
2598
  options
2553
2599
  );
2554
- log14("Followers list retrieved for user: %d", userId);
2600
+ log15("Followers list retrieved for user: %d", userId);
2555
2601
  return result;
2556
2602
  }
2557
2603
  };
2558
2604
 
2559
2605
  // src/market/services/UserFavoriteService.ts
2560
- import debug15 from "debug";
2561
- var log15 = debug15("lobe-market-sdk:user-favorite");
2606
+ import debug16 from "debug";
2607
+ var log16 = debug16("lobe-market-sdk:user-favorite");
2562
2608
  var UserFavoriteService = class extends BaseSDK {
2563
2609
  /**
2564
2610
  * Add to favorites
@@ -2573,7 +2619,7 @@ var UserFavoriteService = class extends BaseSDK {
2573
2619
  * @throws Error if already in favorites
2574
2620
  */
2575
2621
  async addFavorite(targetType, targetId, options) {
2576
- log15("Adding favorite: %s %d", targetType, targetId);
2622
+ log16("Adding favorite: %s %d", targetType, targetId);
2577
2623
  const body = { targetId, targetType };
2578
2624
  const result = await this.request("/v1/user/favorites", {
2579
2625
  body: JSON.stringify(body),
@@ -2583,7 +2629,7 @@ var UserFavoriteService = class extends BaseSDK {
2583
2629
  method: "POST",
2584
2630
  ...options
2585
2631
  });
2586
- log15("Successfully added favorite: %s %d", targetType, targetId);
2632
+ log16("Successfully added favorite: %s %d", targetType, targetId);
2587
2633
  return result;
2588
2634
  }
2589
2635
  /**
@@ -2599,7 +2645,7 @@ var UserFavoriteService = class extends BaseSDK {
2599
2645
  * @throws Error if favorite not found
2600
2646
  */
2601
2647
  async removeFavorite(targetType, targetId, options) {
2602
- log15("Removing favorite: %s %d", targetType, targetId);
2648
+ log16("Removing favorite: %s %d", targetType, targetId);
2603
2649
  const body = { targetId, targetType };
2604
2650
  const result = await this.request("/v1/user/favorites", {
2605
2651
  body: JSON.stringify(body),
@@ -2609,7 +2655,7 @@ var UserFavoriteService = class extends BaseSDK {
2609
2655
  method: "DELETE",
2610
2656
  ...options
2611
2657
  });
2612
- log15("Successfully removed favorite: %s %d", targetType, targetId);
2658
+ log16("Successfully removed favorite: %s %d", targetType, targetId);
2613
2659
  return result;
2614
2660
  }
2615
2661
  /**
@@ -2624,7 +2670,7 @@ var UserFavoriteService = class extends BaseSDK {
2624
2670
  * @returns Promise resolving to favorite status
2625
2671
  */
2626
2672
  async checkFavorite(targetType, targetId, options) {
2627
- log15("Checking favorite status: %s %d", targetType, targetId);
2673
+ log16("Checking favorite status: %s %d", targetType, targetId);
2628
2674
  const queryString = this.buildQueryString({
2629
2675
  targetId: String(targetId),
2630
2676
  targetType
@@ -2633,7 +2679,7 @@ var UserFavoriteService = class extends BaseSDK {
2633
2679
  `/v1/user/favorites/check${queryString}`,
2634
2680
  options
2635
2681
  );
2636
- log15("Favorite status retrieved: %O", result);
2682
+ log16("Favorite status retrieved: %O", result);
2637
2683
  return result;
2638
2684
  }
2639
2685
  /**
@@ -2647,7 +2693,7 @@ var UserFavoriteService = class extends BaseSDK {
2647
2693
  * @returns Promise resolving to list of favorites
2648
2694
  */
2649
2695
  async getMyFavorites(params = {}, options) {
2650
- log15("Getting my favorites: %O", params);
2696
+ log16("Getting my favorites: %O", params);
2651
2697
  const queryParams = {};
2652
2698
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2653
2699
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2657,7 +2703,7 @@ var UserFavoriteService = class extends BaseSDK {
2657
2703
  `/v1/user/favorites/me${queryString}`,
2658
2704
  options
2659
2705
  );
2660
- log15("My favorites retrieved");
2706
+ log16("My favorites retrieved");
2661
2707
  return result;
2662
2708
  }
2663
2709
  /**
@@ -2672,7 +2718,7 @@ var UserFavoriteService = class extends BaseSDK {
2672
2718
  * @returns Promise resolving to list of favorites
2673
2719
  */
2674
2720
  async getUserFavorites(userId, params = {}, options) {
2675
- log15("Getting favorites for user: %d", userId);
2721
+ log16("Getting favorites for user: %d", userId);
2676
2722
  const queryParams = {};
2677
2723
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2678
2724
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2682,7 +2728,7 @@ var UserFavoriteService = class extends BaseSDK {
2682
2728
  `/v1/user/favorites/${userId}${queryString}`,
2683
2729
  options
2684
2730
  );
2685
- log15("Favorites retrieved for user: %d", userId);
2731
+ log16("Favorites retrieved for user: %d", userId);
2686
2732
  return result;
2687
2733
  }
2688
2734
  /**
@@ -2697,7 +2743,7 @@ var UserFavoriteService = class extends BaseSDK {
2697
2743
  * @returns Promise resolving to list of favorite agents
2698
2744
  */
2699
2745
  async getUserFavoriteAgents(userId, params = {}, options) {
2700
- log15("Getting favorite agents for user: %d", userId);
2746
+ log16("Getting favorite agents for user: %d", userId);
2701
2747
  const queryParams = {};
2702
2748
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2703
2749
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2706,7 +2752,7 @@ var UserFavoriteService = class extends BaseSDK {
2706
2752
  `/v1/user/favorites/${userId}/agents${queryString}`,
2707
2753
  options
2708
2754
  );
2709
- log15("Favorite agents retrieved for user: %d", userId);
2755
+ log16("Favorite agents retrieved for user: %d", userId);
2710
2756
  return result;
2711
2757
  }
2712
2758
  /**
@@ -2721,7 +2767,7 @@ var UserFavoriteService = class extends BaseSDK {
2721
2767
  * @returns Promise resolving to list of favorite plugins
2722
2768
  */
2723
2769
  async getUserFavoritePlugins(userId, params = {}, options) {
2724
- log15("Getting favorite plugins for user: %d", userId);
2770
+ log16("Getting favorite plugins for user: %d", userId);
2725
2771
  const queryParams = {};
2726
2772
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2727
2773
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2730,14 +2776,14 @@ var UserFavoriteService = class extends BaseSDK {
2730
2776
  `/v1/user/favorites/${userId}/plugins${queryString}`,
2731
2777
  options
2732
2778
  );
2733
- log15("Favorite plugins retrieved for user: %d", userId);
2779
+ log16("Favorite plugins retrieved for user: %d", userId);
2734
2780
  return result;
2735
2781
  }
2736
2782
  };
2737
2783
 
2738
2784
  // src/market/services/UserLikeService.ts
2739
- import debug16 from "debug";
2740
- var log16 = debug16("lobe-market-sdk:user-like");
2785
+ import debug17 from "debug";
2786
+ var log17 = debug17("lobe-market-sdk:user-like");
2741
2787
  var UserLikeService = class extends BaseSDK {
2742
2788
  /**
2743
2789
  * Like content
@@ -2752,7 +2798,7 @@ var UserLikeService = class extends BaseSDK {
2752
2798
  * @throws Error if already liked
2753
2799
  */
2754
2800
  async like(targetType, targetId, options) {
2755
- log16("Liking: %s %d", targetType, targetId);
2801
+ log17("Liking: %s %d", targetType, targetId);
2756
2802
  const body = { targetId, targetType };
2757
2803
  const result = await this.request("/v1/user/likes", {
2758
2804
  body: JSON.stringify(body),
@@ -2762,7 +2808,7 @@ var UserLikeService = class extends BaseSDK {
2762
2808
  method: "POST",
2763
2809
  ...options
2764
2810
  });
2765
- log16("Successfully liked: %s %d", targetType, targetId);
2811
+ log17("Successfully liked: %s %d", targetType, targetId);
2766
2812
  return result;
2767
2813
  }
2768
2814
  /**
@@ -2778,7 +2824,7 @@ var UserLikeService = class extends BaseSDK {
2778
2824
  * @throws Error if like not found
2779
2825
  */
2780
2826
  async unlike(targetType, targetId, options) {
2781
- log16("Unliking: %s %d", targetType, targetId);
2827
+ log17("Unliking: %s %d", targetType, targetId);
2782
2828
  const body = { targetId, targetType };
2783
2829
  const result = await this.request("/v1/user/likes", {
2784
2830
  body: JSON.stringify(body),
@@ -2788,7 +2834,7 @@ var UserLikeService = class extends BaseSDK {
2788
2834
  method: "DELETE",
2789
2835
  ...options
2790
2836
  });
2791
- log16("Successfully unliked: %s %d", targetType, targetId);
2837
+ log17("Successfully unliked: %s %d", targetType, targetId);
2792
2838
  return result;
2793
2839
  }
2794
2840
  /**
@@ -2803,7 +2849,7 @@ var UserLikeService = class extends BaseSDK {
2803
2849
  * @returns Promise resolving to toggle response with new like status
2804
2850
  */
2805
2851
  async toggleLike(targetType, targetId, options) {
2806
- log16("Toggling like: %s %d", targetType, targetId);
2852
+ log17("Toggling like: %s %d", targetType, targetId);
2807
2853
  const body = { targetId, targetType };
2808
2854
  const result = await this.request("/v1/user/likes/toggle", {
2809
2855
  body: JSON.stringify(body),
@@ -2813,7 +2859,7 @@ var UserLikeService = class extends BaseSDK {
2813
2859
  method: "POST",
2814
2860
  ...options
2815
2861
  });
2816
- log16("Like toggled, new status: %O", result);
2862
+ log17("Like toggled, new status: %O", result);
2817
2863
  return result;
2818
2864
  }
2819
2865
  /**
@@ -2828,7 +2874,7 @@ var UserLikeService = class extends BaseSDK {
2828
2874
  * @returns Promise resolving to like status
2829
2875
  */
2830
2876
  async checkLike(targetType, targetId, options) {
2831
- log16("Checking like status: %s %d", targetType, targetId);
2877
+ log17("Checking like status: %s %d", targetType, targetId);
2832
2878
  const queryString = this.buildQueryString({
2833
2879
  targetId: String(targetId),
2834
2880
  targetType
@@ -2837,7 +2883,7 @@ var UserLikeService = class extends BaseSDK {
2837
2883
  `/v1/user/likes/check${queryString}`,
2838
2884
  options
2839
2885
  );
2840
- log16("Like status retrieved: %O", result);
2886
+ log17("Like status retrieved: %O", result);
2841
2887
  return result;
2842
2888
  }
2843
2889
  /**
@@ -2851,7 +2897,7 @@ var UserLikeService = class extends BaseSDK {
2851
2897
  * @returns Promise resolving to list of likes
2852
2898
  */
2853
2899
  async getMyLikes(params = {}, options) {
2854
- log16("Getting my likes: %O", params);
2900
+ log17("Getting my likes: %O", params);
2855
2901
  const queryParams = {};
2856
2902
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2857
2903
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2861,7 +2907,7 @@ var UserLikeService = class extends BaseSDK {
2861
2907
  `/v1/user/likes/me${queryString}`,
2862
2908
  options
2863
2909
  );
2864
- log16("My likes retrieved");
2910
+ log17("My likes retrieved");
2865
2911
  return result;
2866
2912
  }
2867
2913
  /**
@@ -2876,7 +2922,7 @@ var UserLikeService = class extends BaseSDK {
2876
2922
  * @returns Promise resolving to list of likes
2877
2923
  */
2878
2924
  async getUserLikes(userId, params = {}, options) {
2879
- log16("Getting likes for user: %d", userId);
2925
+ log17("Getting likes for user: %d", userId);
2880
2926
  const queryParams = {};
2881
2927
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2882
2928
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2886,7 +2932,7 @@ var UserLikeService = class extends BaseSDK {
2886
2932
  `/v1/user/likes/${userId}${queryString}`,
2887
2933
  options
2888
2934
  );
2889
- log16("Likes retrieved for user: %d", userId);
2935
+ log17("Likes retrieved for user: %d", userId);
2890
2936
  return result;
2891
2937
  }
2892
2938
  /**
@@ -2901,7 +2947,7 @@ var UserLikeService = class extends BaseSDK {
2901
2947
  * @returns Promise resolving to list of liked agents
2902
2948
  */
2903
2949
  async getUserLikedAgents(userId, params = {}, options) {
2904
- log16("Getting liked agents for user: %d", userId);
2950
+ log17("Getting liked agents for user: %d", userId);
2905
2951
  const queryParams = {};
2906
2952
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2907
2953
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2910,7 +2956,7 @@ var UserLikeService = class extends BaseSDK {
2910
2956
  `/v1/user/likes/${userId}/agents${queryString}`,
2911
2957
  options
2912
2958
  );
2913
- log16("Liked agents retrieved for user: %d", userId);
2959
+ log17("Liked agents retrieved for user: %d", userId);
2914
2960
  return result;
2915
2961
  }
2916
2962
  /**
@@ -2925,7 +2971,7 @@ var UserLikeService = class extends BaseSDK {
2925
2971
  * @returns Promise resolving to list of liked plugins
2926
2972
  */
2927
2973
  async getUserLikedPlugins(userId, params = {}, options) {
2928
- log16("Getting liked plugins for user: %d", userId);
2974
+ log17("Getting liked plugins for user: %d", userId);
2929
2975
  const queryParams = {};
2930
2976
  if (params.limit !== void 0) queryParams.limit = String(params.limit);
2931
2977
  if (params.offset !== void 0) queryParams.offset = String(params.offset);
@@ -2934,13 +2980,13 @@ var UserLikeService = class extends BaseSDK {
2934
2980
  `/v1/user/likes/${userId}/plugins${queryString}`,
2935
2981
  options
2936
2982
  );
2937
- log16("Liked plugins retrieved for user: %d", userId);
2983
+ log17("Liked plugins retrieved for user: %d", userId);
2938
2984
  return result;
2939
2985
  }
2940
2986
  };
2941
2987
 
2942
2988
  // src/market/market-sdk.ts
2943
- var log17 = debug17("lobe-market-sdk");
2989
+ var log18 = debug18("lobe-market-sdk");
2944
2990
  var MarketSDK = class extends BaseSDK {
2945
2991
  /**
2946
2992
  * Creates a new MarketSDK instance
@@ -2953,7 +2999,7 @@ var MarketSDK = class extends BaseSDK {
2953
2999
  tokenExpiry: void 0
2954
3000
  };
2955
3001
  super(options, void 0, sharedTokenState);
2956
- log17("MarketSDK instance created");
3002
+ log18("MarketSDK instance created");
2957
3003
  this.agents = new AgentService(options, this.headers, sharedTokenState);
2958
3004
  this.auth = new AuthService(options, this.headers, sharedTokenState);
2959
3005
  this.plugins = new PluginsService(options, this.headers, sharedTokenState);
@@ -2961,6 +3007,7 @@ var MarketSDK = class extends BaseSDK {
2961
3007
  this.follows = new UserFollowService(options, this.headers, sharedTokenState);
2962
3008
  this.favorites = new UserFavoriteService(options, this.headers, sharedTokenState);
2963
3009
  this.likes = new UserLikeService(options, this.headers, sharedTokenState);
3010
+ this.feedback = new FeedbackService(options, this.headers, sharedTokenState);
2964
3011
  this.discovery = new DiscoveryService(options, this.headers, sharedTokenState);
2965
3012
  }
2966
3013
  /**
@@ -2987,7 +3034,7 @@ var MarketSDK = class extends BaseSDK {
2987
3034
  * @deprecated Use auth.registerClient() instead
2988
3035
  */
2989
3036
  async registerClient(request) {
2990
- log17("Registering client (deprecated method, use auth.registerClient): %s", request.clientName);
3037
+ log18("Registering client (deprecated method, use auth.registerClient): %s", request.clientName);
2991
3038
  return this.auth.registerClient(request);
2992
3039
  }
2993
3040
  };