@lobehub/market-sdk 0.15.0 → 0.17.0

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
@@ -1,5 +1,5 @@
1
1
  // src/admin/MarketAdmin.ts
2
- import debug7 from "debug";
2
+ import debug8 from "debug";
3
3
 
4
4
  // src/core/BaseSDK.ts
5
5
  import debug from "debug";
@@ -84,9 +84,166 @@ var BaseSDK = class {
84
84
  }
85
85
  };
86
86
 
87
- // src/admin/services/PluginService.ts
87
+ // src/admin/services/AnalysisService.ts
88
88
  import debug2 from "debug";
89
- var log2 = debug2("lobe-market-sdk:admin:plugins");
89
+ var log2 = debug2("lobe-market-sdk:admin:analysis");
90
+ var AnalysisService = class extends BaseSDK {
91
+ /**
92
+ * Retrieves market overview statistics
93
+ *
94
+ * Returns comprehensive market statistics including plugin counts,
95
+ * installation metrics, new plugin trends, and rating averages
96
+ * with comparison to previous periods.
97
+ *
98
+ * @param params - Query parameters for the analysis
99
+ * @returns Promise resolving to market overview statistics
100
+ */
101
+ async getMarketOverview(params = {}) {
102
+ const { period = "30d" } = params;
103
+ log2("Getting market overview statistics for period: %s", period);
104
+ const searchParams = new URLSearchParams();
105
+ if (period) {
106
+ searchParams.append("period", period);
107
+ }
108
+ const url = `/admin/analysis/plugin/overview${searchParams.toString() ? `?${searchParams.toString()}` : ""}`;
109
+ const result = await this.request(url);
110
+ log2("Market overview statistics retrieved successfully: %s", result.data);
111
+ return result.data;
112
+ }
113
+ /**
114
+ * Retrieves market overview statistics for 1 day period
115
+ *
116
+ * Convenience method for getting daily market statistics.
117
+ *
118
+ * @returns Promise resolving to market overview statistics for 1 day
119
+ */
120
+ async getDailyOverview() {
121
+ log2("Getting daily market overview");
122
+ return this.getMarketOverview({ period: "1d" });
123
+ }
124
+ /**
125
+ * Retrieves market overview statistics for 7 days period
126
+ *
127
+ * Convenience method for getting weekly market statistics.
128
+ *
129
+ * @returns Promise resolving to market overview statistics for 7 days
130
+ */
131
+ async getWeeklyOverview() {
132
+ log2("Getting weekly market overview");
133
+ return this.getMarketOverview({ period: "7d" });
134
+ }
135
+ /**
136
+ * Retrieves market overview statistics for 30 days period
137
+ *
138
+ * Convenience method for getting monthly market statistics.
139
+ *
140
+ * @returns Promise resolving to market overview statistics for 30 days
141
+ */
142
+ async getMonthlyOverview() {
143
+ log2("Getting monthly market overview");
144
+ return this.getMarketOverview({ period: "30d" });
145
+ }
146
+ /**
147
+ * Calculates growth rate between current and previous values
148
+ *
149
+ * Utility method for calculating percentage growth rates from the statistics.
150
+ *
151
+ * @param current - Current period value
152
+ * @param previous - Previous period value
153
+ * @returns Growth rate as percentage (e.g., 15.5 for 15.5% growth)
154
+ */
155
+ static calculateGrowthRate(current, previous) {
156
+ if (previous === 0) return current > 0 ? 100 : 0;
157
+ return Math.round((current - previous) / previous * 100 * 10) / 10;
158
+ }
159
+ /**
160
+ * Formats market overview statistics with calculated growth rates
161
+ *
162
+ * Utility method that enhances the raw statistics with calculated growth rates
163
+ * for easier consumption in dashboards and reports.
164
+ *
165
+ * @param stats - Raw market overview statistics
166
+ * @returns Enhanced statistics with growth rate calculations
167
+ */
168
+ static formatMarketOverview(stats) {
169
+ return {
170
+ ...stats,
171
+ growth: {
172
+ installs: this.calculateGrowthRate(stats.installs.count, stats.installs.prevCount),
173
+ newPlugins: this.calculateGrowthRate(stats.newPlugins.count, stats.newPlugins.prevCount),
174
+ plugins: this.calculateGrowthRate(stats.plugins.count, stats.plugins.prevCount),
175
+ scores: this.calculateGrowthRate(stats.scores.avg, stats.scores.prevAvg)
176
+ }
177
+ };
178
+ }
179
+ /**
180
+ * Retrieves installation trend statistics for a specified date range
181
+ *
182
+ * Returns daily installation counts and trends for the specified period
183
+ * with optional comparison to a previous period.
184
+ *
185
+ * @param params - Query parameters including date range and display config
186
+ * @returns Promise resolving to installation trend statistics
187
+ */
188
+ async getRangeInstalls(params) {
189
+ const { display, range, prevRange } = params;
190
+ log2("Getting installation trend statistics for range: %s to %s", range[0], range[1]);
191
+ const searchParams = new URLSearchParams();
192
+ searchParams.append("display", display);
193
+ searchParams.append("range", range.join(","));
194
+ if (prevRange) {
195
+ searchParams.append("prevRange", prevRange.join(","));
196
+ }
197
+ const url = `/admin/analysis/plugin/range-installs?${searchParams.toString()}`;
198
+ const result = await this.request(url);
199
+ log2(
200
+ "Installation trend statistics retrieved successfully: %d data points",
201
+ result.data.data.length
202
+ );
203
+ return result.data;
204
+ }
205
+ /**
206
+ * Retrieves plugin growth trend statistics for a specified date range
207
+ *
208
+ * Returns daily plugin creation counts and trends for the specified period
209
+ * with optional comparison to a previous period.
210
+ *
211
+ * @param params - Query parameters including date range and display config
212
+ * @returns Promise resolving to plugin growth trend statistics
213
+ */
214
+ async getRangePlugins(params) {
215
+ const { display, range, prevRange } = params;
216
+ log2("Getting plugin growth trend statistics for range: %s to %s", range[0], range[1]);
217
+ const searchParams = new URLSearchParams();
218
+ searchParams.append("display", display);
219
+ searchParams.append("range", range.join(","));
220
+ if (prevRange) {
221
+ searchParams.append("prevRange", prevRange.join(","));
222
+ }
223
+ const url = `/admin/analysis/plugin/range-plugins?${searchParams.toString()}`;
224
+ const result = await this.request(url);
225
+ log2(
226
+ "Plugin growth trend statistics retrieved successfully: %d data points",
227
+ result.data.data.length
228
+ );
229
+ return result.data;
230
+ }
231
+ /**
232
+ * Calculates trend growth rate between current and previous period totals
233
+ *
234
+ * Utility method for calculating percentage growth rates from range statistics.
235
+ *
236
+ * @param stats - Range statistics with sum and prevSum
237
+ * @returns Growth rate as percentage (e.g., 15.5 for 15.5% growth)
238
+ */
239
+ static calculateTrendGrowthRate(stats) {
240
+ return this.calculateGrowthRate(stats.sum, stats.prevSum);
241
+ }
242
+ };
243
+
244
+ // src/admin/services/PluginService.ts
245
+ import debug3 from "debug";
246
+ var log3 = debug3("lobe-market-sdk:admin:plugins");
90
247
  var PluginService = class extends BaseSDK {
91
248
  /**
92
249
  * Creates a new PluginService instance
@@ -96,7 +253,7 @@ var PluginService = class extends BaseSDK {
96
253
  */
97
254
  constructor(options = {}, sharedHeaders) {
98
255
  super(options, sharedHeaders);
99
- log2("PluginService instance created");
256
+ log3("PluginService instance created");
100
257
  }
101
258
  /**
102
259
  * Batch imports plugin manifests using the dedicated import endpoint
@@ -108,9 +265,9 @@ var PluginService = class extends BaseSDK {
108
265
  * @returns Promise resolving to the import results with counts of success, skipped, failed, and a list of failed IDs
109
266
  */
110
267
  async importPlugins(manifests, ownerId) {
111
- log2(`Starting batch plugin import of ${manifests.length} manifests`);
268
+ log3(`Starting batch plugin import of ${manifests.length} manifests`);
112
269
  if (ownerId) {
113
- log2(`Using specified owner ID for import: ${ownerId}`);
270
+ log3(`Using specified owner ID for import: ${ownerId}`);
114
271
  }
115
272
  const response = await this.request("/admin/plugins/import", {
116
273
  body: JSON.stringify({
@@ -119,7 +276,7 @@ var PluginService = class extends BaseSDK {
119
276
  }),
120
277
  method: "POST"
121
278
  });
122
- log2(
279
+ log3(
123
280
  `Plugin import completed: ${response.data.success} succeeded, ${response.data.skipped} skipped, ${response.data.failed} failed`
124
281
  );
125
282
  return response.data;
@@ -134,14 +291,14 @@ var PluginService = class extends BaseSDK {
134
291
  * @returns Promise resolving to the import results with counts of success and failure
135
292
  */
136
293
  async importPluginI18n(params) {
137
- log2(
294
+ log3(
138
295
  `Starting i18n import for plugin ${params.identifier} v${params.version} with ${params.localizations.length} localizations`
139
296
  );
140
297
  const response = await this.request("/admin/plugins/import/i18n", {
141
298
  body: JSON.stringify(params),
142
299
  method: "POST"
143
300
  });
144
- log2(
301
+ log3(
145
302
  `Plugin i18n import completed: ${response.data.success} succeeded, ${response.data.failed} failed, ${response.data.totalLocalizations} total`
146
303
  );
147
304
  return response.data;
@@ -155,11 +312,11 @@ var PluginService = class extends BaseSDK {
155
312
  * @returns Promise resolving to the plugin list response with admin details
156
313
  */
157
314
  async getPlugins(params = {}) {
158
- log2("Getting plugins with params: %O", params);
315
+ log3("Getting plugins with params: %O", params);
159
316
  const queryString = this.buildQueryString(params);
160
317
  const url = `/admin/plugins${queryString}`;
161
318
  const result = await this.request(url);
162
- log2("Retrieved %d plugins", result.data.length);
319
+ log3("Retrieved %d plugins", result.data.length);
163
320
  return result;
164
321
  }
165
322
  /**
@@ -172,9 +329,9 @@ var PluginService = class extends BaseSDK {
172
329
  * @returns Promise resolving to an array containing identifiers array and last modified time
173
330
  */
174
331
  async getPublishedIdentifiers() {
175
- log2("Getting published plugin identifiers (admin)");
332
+ log3("Getting published plugin identifiers (admin)");
176
333
  const result = await this.request("/v1/plugins/identifiers");
177
- log2("Retrieved %d published plugin identifiers (admin)", result.length);
334
+ log3("Retrieved %d published plugin identifiers (admin)", result.length);
178
335
  return result;
179
336
  }
180
337
  /**
@@ -184,9 +341,9 @@ var PluginService = class extends BaseSDK {
184
341
  * @returns Promise resolving to the detailed plugin information with version history
185
342
  */
186
343
  async getPlugin(id) {
187
- log2("Getting plugin details (admin): %d", id);
344
+ log3("Getting plugin details (admin): %d", id);
188
345
  const result = await this.request(`/admin/plugins/${id}`);
189
- log2("Retrieved plugin with %d versions", result.versions.length);
346
+ log3("Retrieved plugin with %d versions", result.versions.length);
190
347
  return result;
191
348
  }
192
349
  /**
@@ -196,12 +353,12 @@ var PluginService = class extends BaseSDK {
196
353
  * @returns Promise resolving to the detailed plugin information with version history
197
354
  */
198
355
  async getPluginByGithubUrl(githubUrl) {
199
- log2("Getting plugin by GitHub URL: %s", githubUrl);
356
+ log3("Getting plugin by GitHub URL: %s", githubUrl);
200
357
  const queryString = this.buildQueryString({ url: githubUrl });
201
358
  const result = await this.request(
202
359
  `/admin/plugins/by-github-url${queryString}`
203
360
  );
204
- log2("Retrieved plugin with %d versions", result.versions.length);
361
+ log3("Retrieved plugin with %d versions", result.versions.length);
205
362
  return result;
206
363
  }
207
364
  /**
@@ -212,12 +369,12 @@ var PluginService = class extends BaseSDK {
212
369
  * @returns Promise resolving to the updated plugin
213
370
  */
214
371
  async updatePlugin(id, data) {
215
- log2("Updating plugin: %d, data: %O", id, data);
372
+ log3("Updating plugin: %d, data: %O", id, data);
216
373
  const result = await this.request(`/admin/plugins/${id}`, {
217
374
  body: JSON.stringify(data),
218
375
  method: "PUT"
219
376
  });
220
- log2("Plugin updated successfully");
377
+ log3("Plugin updated successfully");
221
378
  return result;
222
379
  }
223
380
  /**
@@ -228,7 +385,7 @@ var PluginService = class extends BaseSDK {
228
385
  * @returns Promise resolving to success response
229
386
  */
230
387
  async updatePluginStatus(id, status) {
231
- log2("Updating plugin status: %d to %s", id, status);
388
+ log3("Updating plugin status: %d to %s", id, status);
232
389
  const result = await this.request(
233
390
  `/admin/plugins/${id}/status`,
234
391
  {
@@ -236,7 +393,7 @@ var PluginService = class extends BaseSDK {
236
393
  method: "PATCH"
237
394
  }
238
395
  );
239
- log2("Plugin status updated successfully");
396
+ log3("Plugin status updated successfully");
240
397
  return result;
241
398
  }
242
399
  /**
@@ -246,12 +403,12 @@ var PluginService = class extends BaseSDK {
246
403
  * @returns Promise resolving to success response
247
404
  */
248
405
  async deletePlugin(id) {
249
- log2("Deleting plugin: %d", id);
406
+ log3("Deleting plugin: %d", id);
250
407
  const result = await this.request(
251
408
  `/admin/plugins/${id}`,
252
409
  { method: "DELETE" }
253
410
  );
254
- log2("Plugin deleted successfully");
411
+ log3("Plugin deleted successfully");
255
412
  return result;
256
413
  }
257
414
  /**
@@ -261,9 +418,9 @@ var PluginService = class extends BaseSDK {
261
418
  * @returns Promise resolving to an array of plugin versions
262
419
  */
263
420
  async getPluginVersions(pluginId) {
264
- log2("Getting plugin versions: pluginId=%d", pluginId);
421
+ log3("Getting plugin versions: pluginId=%d", pluginId);
265
422
  const result = await this.request(`/admin/plugins/${pluginId}/versions`);
266
- log2("Retrieved %d versions", result.length);
423
+ log3("Retrieved %d versions", result.length);
267
424
  return result;
268
425
  }
269
426
  /**
@@ -274,11 +431,11 @@ var PluginService = class extends BaseSDK {
274
431
  * @returns Promise resolving to the plugin version details
275
432
  */
276
433
  async getPluginVersion(pluginId, versionId) {
277
- log2("Getting version details: pluginId=%d, versionId=%d", pluginId, versionId);
434
+ log3("Getting version details: pluginId=%d, versionId=%d", pluginId, versionId);
278
435
  const result = await this.request(
279
436
  `/admin/plugins/${pluginId}/versions/${versionId}`
280
437
  );
281
- log2("Version details retrieved");
438
+ log3("Version details retrieved");
282
439
  return result;
283
440
  }
284
441
  /**
@@ -289,11 +446,11 @@ var PluginService = class extends BaseSDK {
289
446
  * @returns Promise resolving to an array of plugin version localizations
290
447
  */
291
448
  async getPluginLocalizations(pluginId, versionId) {
292
- log2("Getting localizations: pluginId=%s, versionId=%d", pluginId, versionId);
449
+ log3("Getting localizations: pluginId=%s, versionId=%d", pluginId, versionId);
293
450
  const result = await this.request(
294
451
  `/admin/plugins/${pluginId}/versions/${versionId}/localizations`
295
452
  );
296
- log2("Retrieved %d localizations for plugin %s, version %d", result.length, pluginId, versionId);
453
+ log3("Retrieved %d localizations for plugin %s, version %d", result.length, pluginId, versionId);
297
454
  return result;
298
455
  }
299
456
  /**
@@ -304,12 +461,12 @@ var PluginService = class extends BaseSDK {
304
461
  * @returns Promise resolving to the created plugin version
305
462
  */
306
463
  async createPluginVersion(pluginId, data) {
307
- log2("Creating new plugin version: pluginId=%d, data: %O", pluginId, data);
464
+ log3("Creating new plugin version: pluginId=%d, data: %O", pluginId, data);
308
465
  const result = await this.request(`/admin/plugins/${pluginId}/versions`, {
309
466
  body: JSON.stringify(data),
310
467
  method: "POST"
311
468
  });
312
- log2("Plugin version created successfully: version=%s", data.version);
469
+ log3("Plugin version created successfully: version=%s", data.version);
313
470
  return result;
314
471
  }
315
472
  /**
@@ -323,7 +480,7 @@ var PluginService = class extends BaseSDK {
323
480
  */
324
481
  async createPluginVersionFromManifest(pluginId, manifest, options = {}) {
325
482
  var _a, _b, _c, _d, _e, _f, _g;
326
- log2(
483
+ log3(
327
484
  "Creating plugin version from manifest: pluginId=%d, version=%s",
328
485
  pluginId,
329
486
  manifest.version
@@ -359,7 +516,7 @@ var PluginService = class extends BaseSDK {
359
516
  * @returns Promise resolving to the updated plugin version
360
517
  */
361
518
  async updatePluginVersion(idOrIdentifier, versionId, data) {
362
- log2(
519
+ log3(
363
520
  "Updating plugin version: pluginId=%d, versionId=%d, data: %O",
364
521
  idOrIdentifier,
365
522
  versionId,
@@ -372,7 +529,7 @@ var PluginService = class extends BaseSDK {
372
529
  method: "PUT"
373
530
  }
374
531
  );
375
- log2("Plugin version updated successfully");
532
+ log3("Plugin version updated successfully");
376
533
  return result;
377
534
  }
378
535
  /**
@@ -383,12 +540,12 @@ var PluginService = class extends BaseSDK {
383
540
  * @returns Promise resolving to success response
384
541
  */
385
542
  async deletePluginVersion(pluginId, versionId) {
386
- log2("Deleting version: pluginId=%d, versionId=%d", pluginId, versionId);
543
+ log3("Deleting version: pluginId=%d, versionId=%d", pluginId, versionId);
387
544
  const result = await this.request(
388
545
  `/admin/plugins/${pluginId}/versions/${versionId}`,
389
546
  { method: "DELETE" }
390
547
  );
391
- log2("Plugin version deleted successfully");
548
+ log3("Plugin version deleted successfully");
392
549
  return result;
393
550
  }
394
551
  /**
@@ -399,12 +556,12 @@ var PluginService = class extends BaseSDK {
399
556
  * @returns Promise resolving to success response
400
557
  */
401
558
  async setPluginVersionAsLatest(pluginId, versionId) {
402
- log2("Setting version as latest: pluginId=%d, versionId=%d", pluginId, versionId);
559
+ log3("Setting version as latest: pluginId=%d, versionId=%d", pluginId, versionId);
403
560
  const result = await this.request(
404
561
  `/admin/plugins/${pluginId}/versions/${versionId}/latest`,
405
562
  { method: "POST" }
406
563
  );
407
- log2("Version set as latest successfully");
564
+ log3("Version set as latest successfully");
408
565
  return result;
409
566
  }
410
567
  /**
@@ -415,7 +572,7 @@ var PluginService = class extends BaseSDK {
415
572
  * @returns Promise resolving to success response
416
573
  */
417
574
  async updatePluginVisibility(id, visibility) {
418
- log2("Updating plugin visibility: %d to %s", id, visibility);
575
+ log3("Updating plugin visibility: %d to %s", id, visibility);
419
576
  const result = await this.request(
420
577
  `/admin/plugins/${id}/visibility`,
421
578
  {
@@ -423,7 +580,7 @@ var PluginService = class extends BaseSDK {
423
580
  method: "PATCH"
424
581
  }
425
582
  );
426
- log2("Plugin visibility updated successfully");
583
+ log3("Plugin visibility updated successfully");
427
584
  return result;
428
585
  }
429
586
  /**
@@ -434,7 +591,7 @@ var PluginService = class extends BaseSDK {
434
591
  * @returns Promise resolving to success response
435
592
  */
436
593
  async batchUpdatePluginStatus(ids, status) {
437
- log2("Batch updating plugin status: %O to %s", ids, status);
594
+ log3("Batch updating plugin status: %O to %s", ids, status);
438
595
  const result = await this.request(
439
596
  "/admin/plugins/batch/status",
440
597
  {
@@ -442,7 +599,7 @@ var PluginService = class extends BaseSDK {
442
599
  method: "PATCH"
443
600
  }
444
601
  );
445
- log2("Batch plugin status update completed");
602
+ log3("Batch plugin status update completed");
446
603
  return result;
447
604
  }
448
605
  /**
@@ -452,7 +609,7 @@ var PluginService = class extends BaseSDK {
452
609
  * @returns Promise resolving to success response
453
610
  */
454
611
  async batchDeletePlugins(ids) {
455
- log2("Batch deleting plugins: %O", ids);
612
+ log3("Batch deleting plugins: %O", ids);
456
613
  const result = await this.request(
457
614
  "/admin/plugins/batch/delete",
458
615
  {
@@ -460,7 +617,7 @@ var PluginService = class extends BaseSDK {
460
617
  method: "DELETE"
461
618
  }
462
619
  );
463
- log2("Batch plugin deletion completed");
620
+ log3("Batch plugin deletion completed");
464
621
  return result;
465
622
  }
466
623
  /**
@@ -471,7 +628,7 @@ var PluginService = class extends BaseSDK {
471
628
  * @returns Promise resolving to version details with deployment options
472
629
  */
473
630
  async getPluginVersionDetails(pluginId, versionId) {
474
- log2(
631
+ log3(
475
632
  "Getting version details with deployment options: pluginId=%d, versionId=%d",
476
633
  pluginId,
477
634
  versionId
@@ -479,7 +636,7 @@ var PluginService = class extends BaseSDK {
479
636
  const result = await this.request(
480
637
  `/admin/plugins/${pluginId}/versions/${versionId}`
481
638
  );
482
- log2("Version details with deployment options retrieved");
639
+ log3("Version details with deployment options retrieved");
483
640
  return result;
484
641
  }
485
642
  /**
@@ -490,11 +647,11 @@ var PluginService = class extends BaseSDK {
490
647
  * @returns Promise resolving to an array of deployment options
491
648
  */
492
649
  async getDeploymentOptions(pluginId, versionId) {
493
- log2("Getting deployment options: pluginId=%d, versionId=%d", pluginId, versionId);
650
+ log3("Getting deployment options: pluginId=%d, versionId=%d", pluginId, versionId);
494
651
  const result = await this.request(
495
652
  `/admin/plugins/${pluginId}/versions/${versionId}/deployment-options`
496
653
  );
497
- log2("Retrieved %d deployment options", result.length);
654
+ log3("Retrieved %d deployment options", result.length);
498
655
  return result;
499
656
  }
500
657
  /**
@@ -506,7 +663,7 @@ var PluginService = class extends BaseSDK {
506
663
  * @returns Promise resolving to the created deployment option
507
664
  */
508
665
  async createDeploymentOption(pluginId, versionId, data) {
509
- log2("Creating deployment option: pluginId=%d, versionId=%d", pluginId, versionId);
666
+ log3("Creating deployment option: pluginId=%d, versionId=%d", pluginId, versionId);
510
667
  const result = await this.request(
511
668
  `/admin/plugins/${pluginId}/versions/${versionId}/deployment-options`,
512
669
  {
@@ -514,7 +671,7 @@ var PluginService = class extends BaseSDK {
514
671
  method: "POST"
515
672
  }
516
673
  );
517
- log2("Deployment option created successfully");
674
+ log3("Deployment option created successfully");
518
675
  return result;
519
676
  }
520
677
  /**
@@ -527,7 +684,7 @@ var PluginService = class extends BaseSDK {
527
684
  * @returns Promise resolving to the updated deployment option
528
685
  */
529
686
  async updateDeploymentOption(pluginId, versionId, optionId, data) {
530
- log2(
687
+ log3(
531
688
  "Updating deployment option: pluginId=%d, versionId=%d, optionId=%d",
532
689
  pluginId,
533
690
  versionId,
@@ -540,7 +697,7 @@ var PluginService = class extends BaseSDK {
540
697
  method: "PUT"
541
698
  }
542
699
  );
543
- log2("Deployment option updated successfully");
700
+ log3("Deployment option updated successfully");
544
701
  return result;
545
702
  }
546
703
  /**
@@ -552,7 +709,7 @@ var PluginService = class extends BaseSDK {
552
709
  * @returns Promise resolving to success response
553
710
  */
554
711
  async deleteDeploymentOption(pluginId, versionId, optionId) {
555
- log2(
712
+ log3(
556
713
  "Deleting deployment option: pluginId=%d, versionId=%d, optionId=%d",
557
714
  pluginId,
558
715
  versionId,
@@ -562,7 +719,7 @@ var PluginService = class extends BaseSDK {
562
719
  `/admin/plugins/${pluginId}/versions/${versionId}/deployment-options/${optionId}`,
563
720
  { method: "DELETE" }
564
721
  );
565
- log2("Deployment option deleted successfully");
722
+ log3("Deployment option deleted successfully");
566
723
  return result;
567
724
  }
568
725
  /**
@@ -574,7 +731,7 @@ var PluginService = class extends BaseSDK {
574
731
  * @returns Promise resolving to an array of system dependencies
575
732
  */
576
733
  async getDeploymentOptionSystemDependencies(pluginId, versionId, optionId) {
577
- log2(
734
+ log3(
578
735
  "Getting system dependencies: pluginId=%d, versionId=%d, optionId=%d",
579
736
  pluginId,
580
737
  versionId,
@@ -583,7 +740,7 @@ var PluginService = class extends BaseSDK {
583
740
  const result = await this.request(
584
741
  `/admin/plugins/${pluginId}/versions/${versionId}/deployment-options/${optionId}/system-dependencies`
585
742
  );
586
- log2("Retrieved %d system dependencies", result.length);
743
+ log3("Retrieved %d system dependencies", result.length);
587
744
  return result;
588
745
  }
589
746
  /**
@@ -594,9 +751,9 @@ var PluginService = class extends BaseSDK {
594
751
  * @returns Promise resolving to array of plugins with incomplete summary data
595
752
  */
596
753
  async getVerifiedPluginsWithoutSummary() {
597
- log2("Getting verified plugins without summary");
754
+ log3("Getting verified plugins without summary");
598
755
  const result = await this.request("/admin/plugins/verified-without-summary");
599
- log2("Retrieved %d verified plugins without summary", result.length);
756
+ log3("Retrieved %d verified plugins without summary", result.length);
600
757
  return result;
601
758
  }
602
759
  /**
@@ -607,9 +764,9 @@ var PluginService = class extends BaseSDK {
607
764
  * @returns Promise resolving to an array of plugins with incomplete i18n
608
765
  */
609
766
  async getIncompleteI18nPlugins() {
610
- log2("Getting plugins with incomplete i18n");
767
+ log3("Getting plugins with incomplete i18n");
611
768
  const result = await this.request("/admin/plugins/incomplete-i18n");
612
- log2("Retrieved %d plugins with incomplete i18n", result.length);
769
+ log3("Retrieved %d plugins with incomplete i18n", result.length);
613
770
  return result;
614
771
  }
615
772
  /**
@@ -620,16 +777,16 @@ var PluginService = class extends BaseSDK {
620
777
  * @returns Promise resolving to an array of unclaimed plugins with basic info
621
778
  */
622
779
  async getUnclaimedPlugins() {
623
- log2("Getting unclaimed plugins");
780
+ log3("Getting unclaimed plugins");
624
781
  const result = await this.request("/admin/plugins/unclaimed");
625
- log2("Retrieved %d unclaimed plugins", result.length);
782
+ log3("Retrieved %d unclaimed plugins", result.length);
626
783
  return result;
627
784
  }
628
785
  };
629
786
 
630
787
  // src/admin/services/SystemDependencyService.ts
631
- import debug3 from "debug";
632
- var log3 = debug3("lobe-market-sdk:admin:dependency");
788
+ import debug4 from "debug";
789
+ var log4 = debug4("lobe-market-sdk:admin:dependency");
633
790
  var SystemDependencyService = class extends BaseSDK {
634
791
  /**
635
792
  * Creates a new SystemDependencyService instance
@@ -639,7 +796,7 @@ var SystemDependencyService = class extends BaseSDK {
639
796
  */
640
797
  constructor(options = {}, sharedHeaders) {
641
798
  super(options, sharedHeaders);
642
- log3("SystemDependencyService instance created");
799
+ log4("SystemDependencyService instance created");
643
800
  }
644
801
  /**
645
802
  * Retrieves all system dependencies
@@ -649,9 +806,9 @@ var SystemDependencyService = class extends BaseSDK {
649
806
  * @returns Promise resolving to an array of system dependencies
650
807
  */
651
808
  async getSystemDependencies() {
652
- log3("Getting all system dependencies");
809
+ log4("Getting all system dependencies");
653
810
  const result = await this.request(`/admin/plugins/dependencies`);
654
- log3("Retrieved %d system dependencies", result.length);
811
+ log4("Retrieved %d system dependencies", result.length);
655
812
  return result;
656
813
  }
657
814
  /**
@@ -661,9 +818,9 @@ var SystemDependencyService = class extends BaseSDK {
661
818
  * @returns Promise resolving to the system dependency details
662
819
  */
663
820
  async getSystemDependency(id) {
664
- log3("Getting system dependency details: %d", id);
821
+ log4("Getting system dependency details: %d", id);
665
822
  const result = await this.request(`/admin/plugins/dependencies/${id}`);
666
- log3("System dependency details retrieved");
823
+ log4("System dependency details retrieved");
667
824
  return result;
668
825
  }
669
826
  /**
@@ -673,12 +830,12 @@ var SystemDependencyService = class extends BaseSDK {
673
830
  * @returns Promise resolving to the created system dependency
674
831
  */
675
832
  async createSystemDependency(data) {
676
- log3("Creating system dependency: %O", data);
833
+ log4("Creating system dependency: %O", data);
677
834
  const result = await this.request(`/admin/plugins/dependencies`, {
678
835
  body: JSON.stringify(data),
679
836
  method: "POST"
680
837
  });
681
- log3("System dependency created successfully");
838
+ log4("System dependency created successfully");
682
839
  return result;
683
840
  }
684
841
  /**
@@ -689,12 +846,12 @@ var SystemDependencyService = class extends BaseSDK {
689
846
  * @returns Promise resolving to the updated system dependency
690
847
  */
691
848
  async updateSystemDependency(id, data) {
692
- log3("Updating system dependency: %d, data: %O", id, data);
849
+ log4("Updating system dependency: %d, data: %O", id, data);
693
850
  const result = await this.request(`/admin/plugins/dependencies/${id}`, {
694
851
  body: JSON.stringify(data),
695
852
  method: "PUT"
696
853
  });
697
- log3("System dependency updated successfully");
854
+ log4("System dependency updated successfully");
698
855
  return result;
699
856
  }
700
857
  /**
@@ -704,19 +861,19 @@ var SystemDependencyService = class extends BaseSDK {
704
861
  * @returns Promise resolving to success response
705
862
  */
706
863
  async deleteSystemDependency(id) {
707
- log3("Deleting system dependency: %d", id);
864
+ log4("Deleting system dependency: %d", id);
708
865
  const result = await this.request(
709
866
  `/admin/plugins/dependencies/${id}`,
710
867
  { method: "DELETE" }
711
868
  );
712
- log3("System dependency deleted successfully");
869
+ log4("System dependency deleted successfully");
713
870
  return result;
714
871
  }
715
872
  };
716
873
 
717
874
  // src/admin/services/SettingsService.ts
718
- import debug4 from "debug";
719
- var log4 = debug4("lobe-market-sdk:admin:settings");
875
+ import debug5 from "debug";
876
+ var log5 = debug5("lobe-market-sdk:admin:settings");
720
877
  var SettingsService = class extends BaseSDK {
721
878
  /**
722
879
  * Retrieves all system settings
@@ -736,9 +893,9 @@ var SettingsService = class extends BaseSDK {
736
893
  * @returns Promise resolving to the setting details
737
894
  */
738
895
  async getSettingByKey(key) {
739
- log4("Getting setting: %s", key);
896
+ log5("Getting setting: %s", key);
740
897
  const result = await this.request(`/admin/settings/${key}`);
741
- log4("Setting retrieved");
898
+ log5("Setting retrieved");
742
899
  return result;
743
900
  }
744
901
  /**
@@ -748,12 +905,12 @@ var SettingsService = class extends BaseSDK {
748
905
  * @returns Promise resolving to the created setting
749
906
  */
750
907
  async createSetting(data) {
751
- log4("Creating setting: %O", data);
908
+ log5("Creating setting: %O", data);
752
909
  const result = await this.request("/admin/settings", {
753
910
  body: JSON.stringify(data),
754
911
  method: "POST"
755
912
  });
756
- log4("Setting created successfully");
913
+ log5("Setting created successfully");
757
914
  return result;
758
915
  }
759
916
  /**
@@ -764,12 +921,12 @@ var SettingsService = class extends BaseSDK {
764
921
  * @returns Promise resolving to the updated setting
765
922
  */
766
923
  async updateSetting(key, data) {
767
- log4("Updating setting: %s, data: %O", key, data);
924
+ log5("Updating setting: %s, data: %O", key, data);
768
925
  const result = await this.request(`/admin/settings/${key}`, {
769
926
  body: JSON.stringify(data),
770
927
  method: "PUT"
771
928
  });
772
- log4("Setting updated successfully");
929
+ log5("Setting updated successfully");
773
930
  return result;
774
931
  }
775
932
  /**
@@ -779,18 +936,18 @@ var SettingsService = class extends BaseSDK {
779
936
  * @returns Promise resolving to success message
780
937
  */
781
938
  async deleteSetting(key) {
782
- log4("Deleting setting: %s", key);
939
+ log5("Deleting setting: %s", key);
783
940
  const result = await this.request(`/admin/settings/${key}`, {
784
941
  method: "DELETE"
785
942
  });
786
- log4("Setting deleted successfully");
943
+ log5("Setting deleted successfully");
787
944
  return result;
788
945
  }
789
946
  };
790
947
 
791
948
  // src/admin/services/ReviewService.ts
792
- import debug5 from "debug";
793
- var log5 = debug5("lobe-market-sdk:admin:review");
949
+ import debug6 from "debug";
950
+ var log6 = debug6("lobe-market-sdk:admin:review");
794
951
  var ReviewService = class extends BaseSDK {
795
952
  /**
796
953
  * Creates a new ReviewService instance
@@ -800,7 +957,7 @@ var ReviewService = class extends BaseSDK {
800
957
  */
801
958
  constructor(options = {}, sharedHeaders) {
802
959
  super(options, sharedHeaders);
803
- log5("ReviewService instance created");
960
+ log6("ReviewService instance created");
804
961
  }
805
962
  /**
806
963
  * Retrieves a list of reviews with filtering options
@@ -809,11 +966,11 @@ var ReviewService = class extends BaseSDK {
809
966
  * @returns Promise resolving to the review list response
810
967
  */
811
968
  async getReviews(params = {}) {
812
- log5("Getting reviews with params: %O", params);
969
+ log6("Getting reviews with params: %O", params);
813
970
  const queryString = this.buildQueryString(params);
814
971
  const url = `/admin/reviews${queryString ? `?${queryString}` : ""}`;
815
972
  const result = await this.request(url);
816
- log5("Retrieved %d reviews", result.data.length);
973
+ log6("Retrieved %d reviews", result.data.length);
817
974
  return result;
818
975
  }
819
976
  /**
@@ -823,9 +980,9 @@ var ReviewService = class extends BaseSDK {
823
980
  * @returns Promise resolving to the review details
824
981
  */
825
982
  async getReviewById(id) {
826
- log5("Getting review details: %d", id);
983
+ log6("Getting review details: %d", id);
827
984
  const result = await this.request(`/admin/reviews/${id}`);
828
- log5("Review details retrieved");
985
+ log6("Review details retrieved");
829
986
  return result;
830
987
  }
831
988
  /**
@@ -836,12 +993,12 @@ var ReviewService = class extends BaseSDK {
836
993
  * @returns Promise resolving to the updated review
837
994
  */
838
995
  async updateReview(id, data) {
839
- log5("Updating review: %d, data: %O", id, data);
996
+ log6("Updating review: %d, data: %O", id, data);
840
997
  const result = await this.request(`/admin/reviews/${id}`, {
841
998
  body: JSON.stringify(data),
842
999
  method: "PUT"
843
1000
  });
844
- log5("Review updated successfully");
1001
+ log6("Review updated successfully");
845
1002
  return result;
846
1003
  }
847
1004
  /**
@@ -851,16 +1008,16 @@ var ReviewService = class extends BaseSDK {
851
1008
  * @returns Promise resolving to an array of reviews for the plugin
852
1009
  */
853
1010
  async getPluginReviews(pluginId) {
854
- log5("Getting plugin reviews: pluginId=%d", pluginId);
1011
+ log6("Getting plugin reviews: pluginId=%d", pluginId);
855
1012
  const result = await this.request(`/admin/reviews/plugin/${pluginId}`);
856
- log5("Retrieved %d reviews for plugin", result.data.length);
1013
+ log6("Retrieved %d reviews for plugin", result.data.length);
857
1014
  return result;
858
1015
  }
859
1016
  };
860
1017
 
861
1018
  // src/admin/services/PluginEnvService.ts
862
- import debug6 from "debug";
863
- var log6 = debug6("lobe-market-sdk:admin:plugin-env");
1019
+ import debug7 from "debug";
1020
+ var log7 = debug7("lobe-market-sdk:admin:plugin-env");
864
1021
  var PluginEnvService = class extends BaseSDK {
865
1022
  /**
866
1023
  * Retrieves a paginated list of plugin environment variables
@@ -869,11 +1026,11 @@ var PluginEnvService = class extends BaseSDK {
869
1026
  * @returns Promise resolving to the env list response
870
1027
  */
871
1028
  async getPluginEnvs(params = {}) {
872
- log6("Getting plugin envs with params: %O", params);
1029
+ log7("Getting plugin envs with params: %O", params);
873
1030
  const queryString = this.buildQueryString(params);
874
1031
  const url = `/admin/plugins/env${queryString}`;
875
1032
  const result = await this.request(url);
876
- log6("Retrieved %d plugin envs", result.data.length);
1033
+ log7("Retrieved %d plugin envs", result.data.length);
877
1034
  return result;
878
1035
  }
879
1036
  /**
@@ -883,9 +1040,9 @@ var PluginEnvService = class extends BaseSDK {
883
1040
  * @returns Promise resolving to the env item
884
1041
  */
885
1042
  async getPluginEnv(id) {
886
- log6("Getting plugin env: %d", id);
1043
+ log7("Getting plugin env: %d", id);
887
1044
  const result = await this.request(`/admin/plugins/env/${id}`);
888
- log6("Retrieved plugin env: %d", id);
1045
+ log7("Retrieved plugin env: %d", id);
889
1046
  return result;
890
1047
  }
891
1048
  /**
@@ -895,12 +1052,12 @@ var PluginEnvService = class extends BaseSDK {
895
1052
  * @returns Promise resolving to the created env item
896
1053
  */
897
1054
  async createPluginEnv(data) {
898
- log6("Creating plugin env: %O", data);
1055
+ log7("Creating plugin env: %O", data);
899
1056
  const result = await this.request(`/admin/plugins/env`, {
900
1057
  body: JSON.stringify(data),
901
1058
  method: "POST"
902
1059
  });
903
- log6("Plugin env created successfully");
1060
+ log7("Plugin env created successfully");
904
1061
  return result;
905
1062
  }
906
1063
  /**
@@ -911,12 +1068,12 @@ var PluginEnvService = class extends BaseSDK {
911
1068
  * @returns Promise resolving to the updated env item
912
1069
  */
913
1070
  async updatePluginEnv(id, data) {
914
- log6("Updating plugin env: %d, data: %O", id, data);
1071
+ log7("Updating plugin env: %d, data: %O", id, data);
915
1072
  const result = await this.request(`/admin/plugins/env/${id}`, {
916
1073
  body: JSON.stringify(data),
917
1074
  method: "PUT"
918
1075
  });
919
- log6("Plugin env updated successfully");
1076
+ log7("Plugin env updated successfully");
920
1077
  return result;
921
1078
  }
922
1079
  /**
@@ -926,11 +1083,11 @@ var PluginEnvService = class extends BaseSDK {
926
1083
  * @returns Promise resolving to success response
927
1084
  */
928
1085
  async deletePluginEnv(id) {
929
- log6("Deleting plugin env: %d", id);
1086
+ log7("Deleting plugin env: %d", id);
930
1087
  const result = await this.request(`/admin/plugins/env/${id}`, {
931
1088
  method: "DELETE"
932
1089
  });
933
- log6("Plugin env deleted successfully");
1090
+ log7("Plugin env deleted successfully");
934
1091
  return result;
935
1092
  }
936
1093
  /**
@@ -940,18 +1097,18 @@ var PluginEnvService = class extends BaseSDK {
940
1097
  * @returns Promise resolving to import result
941
1098
  */
942
1099
  async importPluginEnvs(data) {
943
- log6("Batch importing plugin envs: %O", data);
1100
+ log7("Batch importing plugin envs: %O", data);
944
1101
  const result = await this.request(`/admin/plugins/env/import`, {
945
1102
  body: JSON.stringify(data),
946
1103
  method: "POST"
947
1104
  });
948
- log6("Batch import completed: %d envs imported", result.success);
1105
+ log7("Batch import completed: %d envs imported", result.success);
949
1106
  return result;
950
1107
  }
951
1108
  };
952
1109
 
953
1110
  // src/admin/MarketAdmin.ts
954
- var log7 = debug7("lobe-market-sdk:admin");
1111
+ var log8 = debug8("lobe-market-sdk:admin");
955
1112
  var MarketAdmin = class extends BaseSDK {
956
1113
  /**
957
1114
  * Creates a new MarketAdmin instance
@@ -961,7 +1118,8 @@ var MarketAdmin = class extends BaseSDK {
961
1118
  constructor(options = {}) {
962
1119
  const apiKey = options.apiKey || process.env.MARKET_ADMIN_API_KEY;
963
1120
  super({ ...options, apiKey });
964
- log7("MarketAdmin instance created");
1121
+ log8("MarketAdmin instance created");
1122
+ this.analysis = new AnalysisService(options, this.headers);
965
1123
  this.plugins = new PluginService(options, this.headers);
966
1124
  this.reviews = new ReviewService(options, this.headers);
967
1125
  this.settings = new SettingsService(options, this.headers);
@@ -971,11 +1129,11 @@ var MarketAdmin = class extends BaseSDK {
971
1129
  };
972
1130
 
973
1131
  // src/market/market-sdk.ts
974
- import debug10 from "debug";
1132
+ import debug11 from "debug";
975
1133
 
976
1134
  // src/market/services/DiscoveryService.ts
977
- import debug8 from "debug";
978
- var log8 = debug8("lobe-market-sdk:discovery");
1135
+ import debug9 from "debug";
1136
+ var log9 = debug9("lobe-market-sdk:discovery");
979
1137
  var DiscoveryService = class extends BaseSDK {
980
1138
  /**
981
1139
  * Creates a new DiscoveryService instance
@@ -985,7 +1143,7 @@ var DiscoveryService = class extends BaseSDK {
985
1143
  */
986
1144
  constructor(options = {}, sharedHeaders) {
987
1145
  super(options, sharedHeaders);
988
- log8("DiscoveryService instance created");
1146
+ log9("DiscoveryService instance created");
989
1147
  }
990
1148
  /**
991
1149
  * Retrieves the service discovery document
@@ -997,20 +1155,20 @@ var DiscoveryService = class extends BaseSDK {
997
1155
  * @returns Promise resolving to the service discovery document
998
1156
  */
999
1157
  async getDiscoveryDocument() {
1000
- log8("Fetching discovery document");
1158
+ log9("Fetching discovery document");
1001
1159
  if (this.discoveryDoc) {
1002
- log8("Returning cached discovery document");
1160
+ log9("Returning cached discovery document");
1003
1161
  return this.discoveryDoc;
1004
1162
  }
1005
1163
  this.discoveryDoc = await this.request("/market/.well-known/discovery");
1006
- log8("Discovery document successfully fetched");
1164
+ log9("Discovery document successfully fetched");
1007
1165
  return this.discoveryDoc;
1008
1166
  }
1009
1167
  };
1010
1168
 
1011
1169
  // src/market/services/PluginsService.ts
1012
- import debug9 from "debug";
1013
- var log9 = debug9("lobe-market-sdk:plugins");
1170
+ import debug10 from "debug";
1171
+ var log10 = debug10("lobe-market-sdk:plugins");
1014
1172
  var PluginsService = class extends BaseSDK {
1015
1173
  /**
1016
1174
  * Creates a new PluginsService instance
@@ -1020,7 +1178,7 @@ var PluginsService = class extends BaseSDK {
1020
1178
  */
1021
1179
  constructor(options = {}, sharedHeaders) {
1022
1180
  super(options, sharedHeaders);
1023
- log9("PluginsService instance created");
1181
+ log10("PluginsService instance created");
1024
1182
  }
1025
1183
  /**
1026
1184
  * Retrieves a list of plugins from the marketplace
@@ -1035,9 +1193,9 @@ var PluginsService = class extends BaseSDK {
1035
1193
  const locale = params.locale || this.defaultLocale;
1036
1194
  const queryParams = { ...params, locale };
1037
1195
  const queryString = this.buildQueryString(queryParams);
1038
- log9("Getting plugin list: %O", queryParams);
1196
+ log10("Getting plugin list: %O", queryParams);
1039
1197
  const result = await this.request(`/v1/plugins${queryString}`, options);
1040
- log9("Retrieved %d plugins", result.items.length);
1198
+ log10("Retrieved %d plugins", result.items.length);
1041
1199
  return result;
1042
1200
  }
1043
1201
  /**
@@ -1055,12 +1213,12 @@ var PluginsService = class extends BaseSDK {
1055
1213
  const locale = params.locale || this.defaultLocale;
1056
1214
  const queryParams = { ...params, locale };
1057
1215
  const queryString = this.buildQueryString(queryParams);
1058
- log9("Getting plugin categories: %O", queryParams);
1216
+ log10("Getting plugin categories: %O", queryParams);
1059
1217
  const result = await this.request(
1060
1218
  `/v1/plugins/categories${queryString}`,
1061
1219
  options
1062
1220
  );
1063
- log9("Retrieved %d categories", result.length);
1221
+ log10("Retrieved %d categories", result.length);
1064
1222
  return result;
1065
1223
  }
1066
1224
  /**
@@ -1073,12 +1231,12 @@ var PluginsService = class extends BaseSDK {
1073
1231
  * @returns Promise resolving to an array containing identifiers array and last modified time
1074
1232
  */
1075
1233
  async getPublishedIdentifiers(options) {
1076
- log9("Getting published plugin identifiers");
1234
+ log10("Getting published plugin identifiers");
1077
1235
  const result = await this.request(
1078
1236
  "/v1/plugins/identifiers",
1079
1237
  options
1080
1238
  );
1081
- log9("Retrieved %d published plugin identifiers", result.length);
1239
+ log10("Retrieved %d published plugin identifiers", result.length);
1082
1240
  return result;
1083
1241
  }
1084
1242
  /**
@@ -1098,7 +1256,7 @@ var PluginsService = class extends BaseSDK {
1098
1256
  version,
1099
1257
  identifier
1100
1258
  }, options) {
1101
- log9("Getting plugin manifest: %O", { identifier, locale, version });
1259
+ log10("Getting plugin manifest: %O", { identifier, locale, version });
1102
1260
  const localeParam = locale || this.defaultLocale;
1103
1261
  const params = { locale: localeParam };
1104
1262
  if (version) {
@@ -1109,7 +1267,7 @@ var PluginsService = class extends BaseSDK {
1109
1267
  `/v1/plugins/${identifier}/manifest${queryString}`,
1110
1268
  options
1111
1269
  );
1112
- log9("Plugin manifest successfully retrieved: %s", identifier);
1270
+ log10("Plugin manifest successfully retrieved: %s", identifier);
1113
1271
  return manifest;
1114
1272
  }
1115
1273
  /**
@@ -1126,7 +1284,7 @@ var PluginsService = class extends BaseSDK {
1126
1284
  version,
1127
1285
  identifier
1128
1286
  }, options) {
1129
- log9("Getting plugin detail: %O", { identifier, locale, version });
1287
+ log10("Getting plugin detail: %O", { identifier, locale, version });
1130
1288
  const localeParam = locale || this.defaultLocale;
1131
1289
  const params = { locale: localeParam };
1132
1290
  if (version) {
@@ -1137,13 +1295,13 @@ var PluginsService = class extends BaseSDK {
1137
1295
  `/v1/plugins/${identifier}${queryString}`,
1138
1296
  options
1139
1297
  );
1140
- log9("Plugin manifest successfully retrieved: %s", identifier);
1298
+ log10("Plugin manifest successfully retrieved: %s", identifier);
1141
1299
  return manifest;
1142
1300
  }
1143
1301
  };
1144
1302
 
1145
1303
  // src/market/market-sdk.ts
1146
- var log10 = debug10("lobe-market-sdk");
1304
+ var log11 = debug11("lobe-market-sdk");
1147
1305
  var MarketSDK = class extends BaseSDK {
1148
1306
  /**
1149
1307
  * Creates a new MarketSDK instance
@@ -1152,7 +1310,7 @@ var MarketSDK = class extends BaseSDK {
1152
1310
  */
1153
1311
  constructor(options = {}) {
1154
1312
  super(options);
1155
- log10("MarketSDK instance created");
1313
+ log11("MarketSDK instance created");
1156
1314
  this.plugins = new PluginsService(options, this.headers);
1157
1315
  this.discovery = new DiscoveryService(options, this.headers);
1158
1316
  }
@@ -1174,9 +1332,6 @@ import { z } from "zod";
1174
1332
  var VisibilityEnumSchema = z.enum(["public", "private", "internal"]);
1175
1333
  var StatusEnumSchema = z.enum(["published", "unpublished", "archived", "deprecated"]);
1176
1334
  var ReviewStatusEnumSchema = z.enum(["published", "draft", "review", "rejected"]);
1177
-
1178
- // src/index.ts
1179
- export * from "@lobehub/market-types";
1180
1335
  export {
1181
1336
  MarketAdmin,
1182
1337
  MarketSDK,