@lobehub/market-sdk 0.40.1 → 0.42.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.d.mts +547 -312
- package/dist/index.mjs +925 -473
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AgentItem, UserCredSummary, MarketItemBase, PluginConnectionType, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, OfficialMcpRegistryImportRequest, OfficialMcpRegistryImportResponse, OfficialMcpRegistrySyncRequest, OfficialMcpRegistrySyncResponse, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, CreateSkillCollectionRequest, AdminSkillCollectionDetail, AdminSkillCollectionListQuery, AdminSkillCollectionListResponse, BatchUpsertSkillCollectionLocalizationsRequest, SkillCollectionLocalizationBatchResponse, SkillCollectionLocalization, UpdateSkillCollectionRequest, UpsertSkillCollectionLocalizationRequest, SitemapResponse, AgentEventRequest, SkillCredStatus, InjectCredsRequest, InjectCredsResponse, InjectCredsForSkillRequest, InjectCredsForSkillResponse, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse, MyOrganizationItem, CreateOrganizationRequest, CreateOrganizationResponse, UpdateOrganizationRequest, OrganizationItem, OrganizationMemberItem, OrganizationMemberRole, AddMemberResponse, UpdateMemberRoleResponse, ReconcileMembersRequest, ReconcileMembersResponse } from '@lobehub/market-types';
|
|
1
|
+
import { AgentMarketListQuery, AgentSkill, UserCredSummary, SandboxMode, AdminAgentCreateInput, AdminAgentCreateResponse, AgentItemDetail, AdminAgentVersionUpdateInput, AdminAgentVersionCreateInput, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, OfficialMcpRegistryImportRequest, OfficialMcpRegistryImportResponse, OfficialMcpRegistrySyncRequest, OfficialMcpRegistrySyncResponse, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, CreateSkillCollectionRequest, AdminSkillCollectionDetail, AdminSkillCollectionListQuery, AdminSkillCollectionListResponse, BatchUpsertSkillCollectionLocalizationsRequest, SkillCollectionLocalizationBatchResponse, SkillCollectionLocalization, UpdateSkillCollectionRequest, UpsertSkillCollectionLocalizationRequest, AdminSkillCreateRequest, AdminSkillUpdateResponse, AdminSkillGitHubImportRequest, AdminSkillImportResponse, AdminSkillDetail, AdminSkillUpdateRequest, AdminSkillListQuery, AdminSkillListResponse, AssetCategoryAdminListQuery, AssetCategoryAdminList, AssetCategoryType, AssetCategoryCreate, AssetCategory, AssetCategoryUpdate, AssetCategoryDelete, AdminSandboxSessionQuery, AdminSandboxSessionList, AdminSandboxSession, AdminSandboxEfsUsage, AdminSandboxStorageQuery, AdminSandboxStorageList, AdminSandboxStorage, AgentListResponse, SitemapResponse, AgentEventRequest, SkillCredStatus, InjectCredsRequest, InjectCredsResponse, InjectCredsForSkillRequest, InjectCredsForSkillResponse, PrepareDeploymentUploadRequest, IngestedDeploymentUpload, PluginListResponse, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse, SandboxStorageInfo, SandboxStorageFileList, SandboxStorageFileContent, SandboxStorageWriteResult, SandboxSessionList, SandboxInstanceList, MyOrganizationItem, CreateOrganizationRequest, CreateOrganizationResponse, UpdateOrganizationRequest, OrganizationItem, OrganizationMemberItem, OrganizationMemberRole, AddMemberResponse, UpdateMemberRoleResponse, ReconcileMembersRequest, ReconcileMembersResponse, AssetCategoryItem, SandboxStorageClaim } from '@lobehub/market-types';
|
|
3
2
|
export * from '@lobehub/market-types';
|
|
4
|
-
export { CategoryItem, CategoryListQuery, CategoryListResponse, CredType, InjectCredsForSkillRequest, InjectCredsForSkillResponse, InjectCredsRequest, InjectCredsResponse, InjectedFileInfo, SkillCredStatus, UserCredSummary } from '@lobehub/market-types';
|
|
3
|
+
export { AgentItemDetail, AgentListResponse, AgentSkill, CategoryItem, CategoryListQuery, CategoryListResponse, CredType, IngestedDeploymentUpload, InjectCredsForSkillRequest, InjectCredsForSkillResponse, InjectCredsRequest, InjectCredsResponse, InjectedFileInfo, MarketPluginItem as PluginItem, PluginListResponse, PrepareDeploymentUploadRequest, PublishPlanLimits, PublishTarget, SandboxInstance, SandboxInstanceList, SandboxInstanceSnapshot, SandboxSessionEndReason, SandboxSessionKind, SandboxSessionList, SandboxSessionRecord, SandboxStorageClaim, SandboxStorageFileContent, SandboxStorageFileEntry, SandboxStorageFileList, SandboxStorageInfo, SandboxStorageStatus, SandboxStorageWriteResult, SkillCredStatus, UserCredSummary } from '@lobehub/market-types';
|
|
4
|
+
import { z } from 'zod';
|
|
5
5
|
import { JSONSchema7 } from 'json-schema';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -118,6 +118,8 @@ interface PluginVersionCreateParams {
|
|
|
118
118
|
readme?: string;
|
|
119
119
|
/** Array of resource definitions */
|
|
120
120
|
resources?: any[];
|
|
121
|
+
/** Clone deployment options and dependency links from a version of the same plugin. */
|
|
122
|
+
sourceVersionId?: number;
|
|
121
123
|
/** Summary of the plugin version */
|
|
122
124
|
summary?: string;
|
|
123
125
|
/** Array of tags for categorization */
|
|
@@ -328,45 +330,10 @@ interface UpdateAgentProfileResponse {
|
|
|
328
330
|
agent: AgentProfileEntity;
|
|
329
331
|
}
|
|
330
332
|
|
|
331
|
-
/**
|
|
332
|
-
|
|
333
|
-
* Defines the query parameters for filtering and paginating agent results
|
|
334
|
-
*/
|
|
335
|
-
interface AgentListQuery {
|
|
336
|
-
/** Filter by category */
|
|
337
|
-
category?: string;
|
|
338
|
-
/** Filter by official status */
|
|
339
|
-
isOfficial?: 'true' | 'false';
|
|
340
|
-
/** Locale for localized content */
|
|
341
|
-
locale?: string;
|
|
342
|
-
/** Sort order */
|
|
343
|
-
order?: 'asc' | 'desc';
|
|
344
|
-
/** Filter by owner ID */
|
|
333
|
+
/** SDK callers may pass a numeric owner ID as a string. */
|
|
334
|
+
type AgentListQuery = Omit<AgentMarketListQuery, 'ownerId'> & {
|
|
345
335
|
ownerId?: number | string;
|
|
346
|
-
|
|
347
|
-
page?: number;
|
|
348
|
-
/** Number of items per page */
|
|
349
|
-
pageSize?: number;
|
|
350
|
-
/** Search query string */
|
|
351
|
-
q?: string;
|
|
352
|
-
/** Sort field */
|
|
353
|
-
sort?: 'createdAt' | 'knowledgeCount' | 'mostUsage' | 'name' | 'pluginCount' | 'recommended' | 'relevance' | 'tokenUsage' | 'updatedAt';
|
|
354
|
-
/** Publication status filter */
|
|
355
|
-
status?: 'published' | 'unpublished' | 'archived' | 'deprecated' | 'all';
|
|
356
|
-
/** Visibility filter */
|
|
357
|
-
visibility?: 'public' | 'private' | 'internal' | 'all';
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Agent list response structure
|
|
361
|
-
* Defines the structure of the agent list API response
|
|
362
|
-
*/
|
|
363
|
-
interface AgentListResponse {
|
|
364
|
-
currentPage: number;
|
|
365
|
-
items: AgentItem[];
|
|
366
|
-
pageSize: number;
|
|
367
|
-
totalCount: number;
|
|
368
|
-
totalPages: number;
|
|
369
|
-
}
|
|
336
|
+
};
|
|
370
337
|
/**
|
|
371
338
|
* Agent detail query parameters
|
|
372
339
|
* Defines the query parameters for retrieving agent details
|
|
@@ -377,139 +344,6 @@ interface AgentDetailQuery {
|
|
|
377
344
|
/** Specific version number to retrieve */
|
|
378
345
|
version?: string;
|
|
379
346
|
}
|
|
380
|
-
/**
|
|
381
|
-
* Agent detail response structure
|
|
382
|
-
* Represents the complete agent information including A2A AgentCard data
|
|
383
|
-
*/
|
|
384
|
-
interface AgentItemDetail extends AgentItem {
|
|
385
|
-
/** A2A protocol version */
|
|
386
|
-
a2aProtocolVersion?: string;
|
|
387
|
-
/** Author or organization name */
|
|
388
|
-
author?: string;
|
|
389
|
-
/** Avatar URL for the agent, can be a emoji */
|
|
390
|
-
avatar: string;
|
|
391
|
-
/** Category name used for classification */
|
|
392
|
-
category?: string;
|
|
393
|
-
/** Total comment count */
|
|
394
|
-
commentCount?: number;
|
|
395
|
-
/** Optional: Compatibility information for different platforms or versions */
|
|
396
|
-
compatibility?: Record<string, any>;
|
|
397
|
-
/** Agent configuration JSON */
|
|
398
|
-
config: any;
|
|
399
|
-
/** Resource creation date in the marketplace (ISO 8601 format) */
|
|
400
|
-
createdAt: string;
|
|
401
|
-
/** Current version id */
|
|
402
|
-
currentVersionId?: number;
|
|
403
|
-
/** Localized short description displayed in the marketplace listing */
|
|
404
|
-
description: string;
|
|
405
|
-
/** URL to human-readable documentation */
|
|
406
|
-
documentationUrl?: string;
|
|
407
|
-
/** Editor data for saving prompt content in editor mode */
|
|
408
|
-
editorData?: Record<string, any>;
|
|
409
|
-
/** Examples for usage */
|
|
410
|
-
examples?: string[];
|
|
411
|
-
/** Supported protocol extensions */
|
|
412
|
-
extensions?: any[];
|
|
413
|
-
/** Whether push notifications are supported */
|
|
414
|
-
hasPushNotifications?: boolean;
|
|
415
|
-
/** Whether state transition history is supported */
|
|
416
|
-
hasStateTransitionHistory?: boolean;
|
|
417
|
-
/** Whether streaming is supported */
|
|
418
|
-
hasStreaming?: boolean;
|
|
419
|
-
/** URL to the resource's homepage or documentation */
|
|
420
|
-
homepage?: string;
|
|
421
|
-
/** Icon URL or Emoji character */
|
|
422
|
-
icon?: string;
|
|
423
|
-
/** Agent database id */
|
|
424
|
-
id?: number;
|
|
425
|
-
/** Globally unique identifier, typically contains author/namespace and name */
|
|
426
|
-
identifier: string;
|
|
427
|
-
/** Total install count */
|
|
428
|
-
installCount?: number;
|
|
429
|
-
/** Additional interfaces supported */
|
|
430
|
-
interfaces?: any[];
|
|
431
|
-
/** Whether featured */
|
|
432
|
-
isFeatured?: boolean;
|
|
433
|
-
/** Whether officially maintained */
|
|
434
|
-
isOfficial?: boolean;
|
|
435
|
-
/** Locale */
|
|
436
|
-
locale?: string;
|
|
437
|
-
/** URL pointing to the detailed manifest file for this resource */
|
|
438
|
-
manifestUrl: string;
|
|
439
|
-
/** Localized display name shown in the marketplace listing */
|
|
440
|
-
name: string;
|
|
441
|
-
/** Owner ID */
|
|
442
|
-
ownerId?: number;
|
|
443
|
-
/** The transport of the preferred endpoint */
|
|
444
|
-
preferredTransport?: string;
|
|
445
|
-
/** Average rating */
|
|
446
|
-
ratingAverage?: number | null;
|
|
447
|
-
/** Rating count */
|
|
448
|
-
ratingCount?: number;
|
|
449
|
-
/** Security requirements */
|
|
450
|
-
securityRequirements?: any[];
|
|
451
|
-
/** Security schemes */
|
|
452
|
-
securitySchemes?: any;
|
|
453
|
-
/** Agent skills */
|
|
454
|
-
skills?: AgentSkill[];
|
|
455
|
-
/** Publication status */
|
|
456
|
-
status?: 'published' | 'unpublished' | 'archived' | 'deprecated' | 'all' | string | null;
|
|
457
|
-
/** A summary that helps find the correct agent */
|
|
458
|
-
summary?: string;
|
|
459
|
-
/** Whether the agent supports authenticated extended card */
|
|
460
|
-
supportsAuthenticatedExtendedCard?: boolean;
|
|
461
|
-
/** List of localized tags for filtering and categorization */
|
|
462
|
-
tags?: string[];
|
|
463
|
-
/** Token usage */
|
|
464
|
-
tokenUsage?: number;
|
|
465
|
-
/** Resource's last update date in the marketplace (ISO 8601 format) */
|
|
466
|
-
updatedAt: string;
|
|
467
|
-
/** Agent or A2A implementation version string */
|
|
468
|
-
version: string;
|
|
469
|
-
/** Version display name */
|
|
470
|
-
versionName?: string;
|
|
471
|
-
/** Incremental version number */
|
|
472
|
-
versionNumber: number;
|
|
473
|
-
/** Version list summary */
|
|
474
|
-
versions?: Array<{
|
|
475
|
-
isLatest: boolean;
|
|
476
|
-
isValidated: boolean;
|
|
477
|
-
status: string | null;
|
|
478
|
-
updatedAt: string;
|
|
479
|
-
version: string;
|
|
480
|
-
versionNumber: number;
|
|
481
|
-
}>;
|
|
482
|
-
/** Visibility */
|
|
483
|
-
visibility?: 'public' | 'private' | 'internal' | 'all' | string;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
* Agent skill structure
|
|
487
|
-
* Represents a skill that an agent can perform
|
|
488
|
-
*/
|
|
489
|
-
interface AgentSkill {
|
|
490
|
-
/** Skill description */
|
|
491
|
-
description: string;
|
|
492
|
-
/** Example prompts or use cases */
|
|
493
|
-
examples?: string[];
|
|
494
|
-
/** Input Media Types for this skill */
|
|
495
|
-
inputModes?: string[];
|
|
496
|
-
/** Localized skill information */
|
|
497
|
-
localizations?: Array<{
|
|
498
|
-
description: string;
|
|
499
|
-
examples?: string[];
|
|
500
|
-
locale: string;
|
|
501
|
-
name: string;
|
|
502
|
-
tags: string[];
|
|
503
|
-
}>;
|
|
504
|
-
/** Human-readable skill name */
|
|
505
|
-
name: string;
|
|
506
|
-
/** Output Media Types for this skill */
|
|
507
|
-
outputModes?: string[];
|
|
508
|
-
/** Unique skill identifier within the agent */
|
|
509
|
-
skillId: string;
|
|
510
|
-
/** Keywords/categories for discoverability */
|
|
511
|
-
tags: string[];
|
|
512
|
-
}
|
|
513
347
|
/**
|
|
514
348
|
* Agent Create Request
|
|
515
349
|
* Parameters for creating a new agent
|
|
@@ -1721,6 +1555,45 @@ interface CredWithPlaintext extends UserCredSummary {
|
|
|
1721
1555
|
plaintext?: Record<string, string>;
|
|
1722
1556
|
}
|
|
1723
1557
|
|
|
1558
|
+
interface DeploymentBuildSummary {
|
|
1559
|
+
endedAt: string | null;
|
|
1560
|
+
errorCode: string | null;
|
|
1561
|
+
errorMessage: string | null;
|
|
1562
|
+
jobId: string;
|
|
1563
|
+
logTail: string | null;
|
|
1564
|
+
startedAt: string | null;
|
|
1565
|
+
status: 'pending' | 'running' | 'finalizing' | 'success' | 'failed' | 'timeout' | 'quota_exceeded' | 'canceled';
|
|
1566
|
+
}
|
|
1567
|
+
interface Deployment {
|
|
1568
|
+
artifactIdentifier: string | null;
|
|
1569
|
+
contentHash: string | null;
|
|
1570
|
+
currentReleaseId: number | null;
|
|
1571
|
+
externalMessageId: string | null;
|
|
1572
|
+
externalTopicId: string | null;
|
|
1573
|
+
id: string;
|
|
1574
|
+
kind: string;
|
|
1575
|
+
lastBuild: DeploymentBuildSummary | null;
|
|
1576
|
+
latestRevisionNumber: number;
|
|
1577
|
+
path: string;
|
|
1578
|
+
publicUrl: string;
|
|
1579
|
+
releaseCount: number;
|
|
1580
|
+
sizeBytes: number | null;
|
|
1581
|
+
status: 'active' | 'building' | 'failed' | 'unpublished';
|
|
1582
|
+
subdomainLabel: string | null;
|
|
1583
|
+
title: string | null;
|
|
1584
|
+
updatedAt: string;
|
|
1585
|
+
}
|
|
1586
|
+
interface PreparedDeploymentUpload {
|
|
1587
|
+
expiresAt: string;
|
|
1588
|
+
files: Array<{
|
|
1589
|
+
headers: Record<string, string>;
|
|
1590
|
+
path: string;
|
|
1591
|
+
slot: string;
|
|
1592
|
+
uploadUrl: string;
|
|
1593
|
+
}>;
|
|
1594
|
+
uploadId: string;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1724
1597
|
interface ClientRegistrationRequest {
|
|
1725
1598
|
/** Client name (required) */
|
|
1726
1599
|
clientName: string;
|
|
@@ -1812,72 +1685,6 @@ interface OAuthTokenResponse {
|
|
|
1812
1685
|
tokenType: string;
|
|
1813
1686
|
}
|
|
1814
1687
|
|
|
1815
|
-
/**
|
|
1816
|
-
* Plugin item in the marketplace
|
|
1817
|
-
* Represents a plugin as displayed in the marketplace listing.
|
|
1818
|
-
*/
|
|
1819
|
-
interface PluginItem extends MarketItemBase {
|
|
1820
|
-
/** Plugin capabilities */
|
|
1821
|
-
capabilities: {
|
|
1822
|
-
/** Whether the plugin provides custom prompts */
|
|
1823
|
-
prompts: boolean;
|
|
1824
|
-
/** Whether the plugin provides resources (assets) */
|
|
1825
|
-
resources: boolean;
|
|
1826
|
-
/** Whether the plugin provides tools (functions) */
|
|
1827
|
-
tools: boolean;
|
|
1828
|
-
};
|
|
1829
|
-
/** Number of comments on this plugin */
|
|
1830
|
-
commentCount?: number;
|
|
1831
|
-
/** Connection type strategy for communicating with the plugin */
|
|
1832
|
-
connectionType?: PluginConnectionType;
|
|
1833
|
-
/** GitHub repository information */
|
|
1834
|
-
github?: {
|
|
1835
|
-
language?: string;
|
|
1836
|
-
license?: string;
|
|
1837
|
-
stars?: number;
|
|
1838
|
-
url: string;
|
|
1839
|
-
};
|
|
1840
|
-
/** Number of installations */
|
|
1841
|
-
installCount?: number;
|
|
1842
|
-
/** Installation method required by the plugin's recommended deployment option */
|
|
1843
|
-
installationMethods?: string;
|
|
1844
|
-
/** Whether this plugin has been claimed by its original author */
|
|
1845
|
-
isClaimed?: boolean;
|
|
1846
|
-
/** Whether the plugin is featured */
|
|
1847
|
-
isFeatured?: boolean;
|
|
1848
|
-
/** Whether this plugin is officially maintained by LobeHub */
|
|
1849
|
-
isOfficial?: boolean;
|
|
1850
|
-
/** Whether this plugin has been validated */
|
|
1851
|
-
isValidated?: boolean;
|
|
1852
|
-
/** Number of prompts provided by this plugin */
|
|
1853
|
-
promptsCount?: number;
|
|
1854
|
-
/** Average rating (typically 1-5 scale) */
|
|
1855
|
-
ratingAverage?: number;
|
|
1856
|
-
/** Number of ratings received */
|
|
1857
|
-
ratingCount?: number;
|
|
1858
|
-
/** Number of resources provided by this plugin */
|
|
1859
|
-
resourcesCount?: number;
|
|
1860
|
-
/** Number of tools provided by this plugin */
|
|
1861
|
-
toolsCount?: number;
|
|
1862
|
-
}
|
|
1863
|
-
/**
|
|
1864
|
-
* Response structure for plugin listing endpoints
|
|
1865
|
-
* Contains both the plugin items and pagination/filtering metadata.
|
|
1866
|
-
*/
|
|
1867
|
-
interface PluginListResponse {
|
|
1868
|
-
/** Available categories for filtering */
|
|
1869
|
-
categories: string[];
|
|
1870
|
-
/** Current page number (1-based) */
|
|
1871
|
-
currentPage: number;
|
|
1872
|
-
/** Array of plugin items for the current page */
|
|
1873
|
-
items: PluginItem[];
|
|
1874
|
-
/** Number of items per page */
|
|
1875
|
-
pageSize: number;
|
|
1876
|
-
/** Total number of items across all pages */
|
|
1877
|
-
totalCount: number;
|
|
1878
|
-
/** Total number of pages */
|
|
1879
|
-
totalPages: number;
|
|
1880
|
-
}
|
|
1881
1688
|
/**
|
|
1882
1689
|
* Query parameters for plugin listing
|
|
1883
1690
|
* Used to filter, sort, and paginate plugin results.
|
|
@@ -1909,13 +1716,62 @@ interface PluginQueryParams {
|
|
|
1909
1716
|
* internally by the server - sessions are automatically created when needed and
|
|
1910
1717
|
* recreated if expired.
|
|
1911
1718
|
*/
|
|
1912
|
-
type CodeInterpreterToolName = 'editLocalFile' | 'executeCode' | 'exportFile' | 'getCommandOutput' | 'globLocalFiles' | 'grepContent' | 'killCommand' | 'listLocalFiles' | 'moveLocalFiles' | 'readLocalFile' | 'renameLocalFile' | 'runCommand' | 'searchLocalFiles' | 'writeLocalFile';
|
|
1719
|
+
type CodeInterpreterToolName = 'editLocalFile' | 'execScript' | 'executeCode' | 'exportFile' | 'getCommandOutput' | 'globLocalFiles' | 'grepContent' | 'killCommand' | 'listLocalFiles' | 'moveLocalFiles' | 'readLocalFile' | 'renameLocalFile' | 'runCommand' | 'searchLocalFiles' | 'writeLocalFile';
|
|
1913
1720
|
/**
|
|
1914
1721
|
* Request for RunBuildInTools API
|
|
1722
|
+
*
|
|
1723
|
+
* `params` is sent plain for backwards compatibility with older market servers;
|
|
1724
|
+
* `runBuildInTool` itself always sends the newer `paramsB64`/`paramsEncoding`
|
|
1725
|
+
* form instead, since some tool params (e.g. `runCommand`'s shell string)
|
|
1726
|
+
* contain shell metacharacters that a Cloudflare-managed WAF rule can mistake
|
|
1727
|
+
* for a command-injection attempt when they appear as literal JSON text.
|
|
1915
1728
|
*/
|
|
1916
1729
|
interface RunBuildInToolsRequest {
|
|
1917
|
-
/** Tool-specific parameters */
|
|
1918
|
-
params
|
|
1730
|
+
/** Tool-specific parameters as plain JSON (legacy form, mutually exclusive with paramsB64) */
|
|
1731
|
+
params?: Record<string, any>;
|
|
1732
|
+
/** Base64-encoded `JSON.stringify(params)`, present when paramsEncoding is 'base64' */
|
|
1733
|
+
paramsB64?: string;
|
|
1734
|
+
/** Encoding used for `paramsB64`. Omitted means `params` carries plain JSON. */
|
|
1735
|
+
paramsEncoding?: 'base64';
|
|
1736
|
+
/**
|
|
1737
|
+
* Subdirectory of the persistent workspace this call runs in, relative to its
|
|
1738
|
+
* root (e.g. `drafts/report`). Relative paths in the tool params resolve
|
|
1739
|
+
* against it and shell commands run there.
|
|
1740
|
+
*
|
|
1741
|
+
* Must be a relative path that stays inside the workspace: no leading `/` or
|
|
1742
|
+
* `~`, and no `.`, `..` or empty segments. A value that does not resolve
|
|
1743
|
+
* inside the workspace is rejected rather than ignored, so a bad one fails
|
|
1744
|
+
* loudly instead of silently writing to the workspace root. Meaningless
|
|
1745
|
+
* without a persistent workspace, where there is nothing to be relative to.
|
|
1746
|
+
*/
|
|
1747
|
+
sandboxCwd?: string;
|
|
1748
|
+
/**
|
|
1749
|
+
* Environment instance the topic runs (LobeHub's instance id) — its installed
|
|
1750
|
+
* toolchain, carried between sessions. The runtime binds a session to
|
|
1751
|
+
* whichever instance its *first* call names, so the same value has to travel
|
|
1752
|
+
* with every call for a topic.
|
|
1753
|
+
*/
|
|
1754
|
+
sandboxInstanceId?: string;
|
|
1755
|
+
/**
|
|
1756
|
+
* Which sandbox this call runs in. Honoured only for a caller whose trust
|
|
1757
|
+
* token carries a workspace entitlement; everyone else gets the throwaway
|
|
1758
|
+
* sandbox whatever they ask for.
|
|
1759
|
+
*
|
|
1760
|
+
* The same value has to travel with every call for a given topic: naming the
|
|
1761
|
+
* throwaway runtime on a topic that is already persistent tears its existing
|
|
1762
|
+
* sandbox down.
|
|
1763
|
+
*/
|
|
1764
|
+
sandboxMode?: SandboxMode;
|
|
1765
|
+
/**
|
|
1766
|
+
* The instance's environment specification (LOBE-14206), forwarded to the
|
|
1767
|
+
* runtime unchanged. Structural only: market does not interpret it.
|
|
1768
|
+
*/
|
|
1769
|
+
sandboxSpecification?: Record<string, unknown>;
|
|
1770
|
+
/**
|
|
1771
|
+
* Absolute working directory on the sandbox's local disk, under `/root/work/`
|
|
1772
|
+
* (LOBE-14206). Mutually exclusive with `sandboxCwd`; not charged to quota.
|
|
1773
|
+
*/
|
|
1774
|
+
sandboxWorkingDir?: string;
|
|
1919
1775
|
/** Tool name to execute */
|
|
1920
1776
|
toolName: CodeInterpreterToolName;
|
|
1921
1777
|
/** Topic/conversation ID for session isolation */
|
|
@@ -1923,6 +1779,31 @@ interface RunBuildInToolsRequest {
|
|
|
1923
1779
|
/** User ID for session isolation */
|
|
1924
1780
|
userId: string;
|
|
1925
1781
|
}
|
|
1782
|
+
/**
|
|
1783
|
+
* What a built-in tool call needs to know about the topic it belongs to.
|
|
1784
|
+
*
|
|
1785
|
+
* Shared by `runBuildInTool` and every convenience wrapper, so a caller cannot
|
|
1786
|
+
* reach a sandbox-selecting field through one entry point and not another:
|
|
1787
|
+
* naming `sandboxMode` on a topic that is already persistent routes the call to
|
|
1788
|
+
* the throwaway runtime, which tears the existing sandbox down — the same value
|
|
1789
|
+
* has to travel with every call for a given topic.
|
|
1790
|
+
*/
|
|
1791
|
+
interface RunBuildInToolsContext {
|
|
1792
|
+
/** See {@link RunBuildInToolsRequest.sandboxCwd}. */
|
|
1793
|
+
sandboxCwd?: string;
|
|
1794
|
+
/** See {@link RunBuildInToolsRequest.sandboxInstanceId}. */
|
|
1795
|
+
sandboxInstanceId?: string;
|
|
1796
|
+
/** See {@link RunBuildInToolsRequest.sandboxMode}. */
|
|
1797
|
+
sandboxMode?: SandboxMode;
|
|
1798
|
+
/** See {@link RunBuildInToolsRequest.sandboxSpecification}. */
|
|
1799
|
+
sandboxSpecification?: Record<string, unknown>;
|
|
1800
|
+
/** See {@link RunBuildInToolsRequest.sandboxWorkingDir}. */
|
|
1801
|
+
sandboxWorkingDir?: string;
|
|
1802
|
+
/** Topic/conversation ID for session isolation */
|
|
1803
|
+
topicId: string;
|
|
1804
|
+
/** User ID for session isolation */
|
|
1805
|
+
userId: string;
|
|
1806
|
+
}
|
|
1926
1807
|
/**
|
|
1927
1808
|
* Success response data from RunBuildInTools
|
|
1928
1809
|
*/
|
|
@@ -1969,13 +1850,32 @@ interface ExecuteCodeParams {
|
|
|
1969
1850
|
}
|
|
1970
1851
|
/** Parameters for runCommand tool */
|
|
1971
1852
|
interface RunCommandParams {
|
|
1972
|
-
/**
|
|
1853
|
+
/** Request native background execution; unsupported providers return an error. */
|
|
1973
1854
|
background?: boolean;
|
|
1974
1855
|
/** Command to execute */
|
|
1975
1856
|
command: string;
|
|
1857
|
+
/** Explicitly identify an lh hetero exec launch for credential injection. */
|
|
1858
|
+
heteroExec?: boolean;
|
|
1976
1859
|
/** Timeout in milliseconds */
|
|
1977
1860
|
timeout?: number;
|
|
1978
1861
|
}
|
|
1862
|
+
/** Parameters for executing a command with optional skill package extraction. */
|
|
1863
|
+
interface ExecScriptParams {
|
|
1864
|
+
/** Shell command to execute */
|
|
1865
|
+
command: string;
|
|
1866
|
+
/** Skill configuration context */
|
|
1867
|
+
config?: {
|
|
1868
|
+
description?: string;
|
|
1869
|
+
id?: string;
|
|
1870
|
+
name?: string;
|
|
1871
|
+
};
|
|
1872
|
+
/** Description of the command */
|
|
1873
|
+
description?: string;
|
|
1874
|
+
/** Skill names mapped to package ZIP URLs */
|
|
1875
|
+
skillZipUrls?: Record<string, string>;
|
|
1876
|
+
/** URL of a single skill package ZIP */
|
|
1877
|
+
zipUrl?: string;
|
|
1878
|
+
}
|
|
1979
1879
|
/** Parameters for getCommandOutput tool */
|
|
1980
1880
|
interface GetCommandOutputParams {
|
|
1981
1881
|
/** Background command ID */
|
|
@@ -2082,6 +1982,7 @@ interface ExportFileParams {
|
|
|
2082
1982
|
*/
|
|
2083
1983
|
interface CodeInterpreterToolParams {
|
|
2084
1984
|
editLocalFile: EditLocalFileParams;
|
|
1985
|
+
execScript: ExecScriptParams;
|
|
2085
1986
|
executeCode: ExecuteCodeParams;
|
|
2086
1987
|
exportFile: ExportFileParams;
|
|
2087
1988
|
getCommandOutput: GetCommandOutputParams;
|
|
@@ -2205,6 +2106,22 @@ interface PluginCommentReactionResponse {
|
|
|
2205
2106
|
type: string;
|
|
2206
2107
|
}
|
|
2207
2108
|
|
|
2109
|
+
/**
|
|
2110
|
+
* Persistent sandbox storage types.
|
|
2111
|
+
*
|
|
2112
|
+
* Every `path` in this API is relative to the storage root — the absolute
|
|
2113
|
+
* mount path inside the sandbox stays a server-side detail.
|
|
2114
|
+
*/
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Topic whose sandbox session backs a storage call. Pass the topic the user
|
|
2118
|
+
* is already working in to reuse its warm sandbox; omit it to use a dedicated
|
|
2119
|
+
* management session, which may have to start one first.
|
|
2120
|
+
*/
|
|
2121
|
+
interface SandboxStorageRequestContext {
|
|
2122
|
+
topicId?: string;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2208
2125
|
/**
|
|
2209
2126
|
* Connect Types for LobeHub Market SDK
|
|
2210
2127
|
*
|
|
@@ -2626,6 +2543,30 @@ interface SkillCallParams {
|
|
|
2626
2543
|
* Arguments to pass to the tool
|
|
2627
2544
|
*/
|
|
2628
2545
|
args?: Record<string, unknown>;
|
|
2546
|
+
/**
|
|
2547
|
+
* Subdirectory of the workspace the topic works in — the same value its
|
|
2548
|
+
* built-in tool calls send, so a `gh repo clone` and a later `readLocalFile`
|
|
2549
|
+
* land in the same place.
|
|
2550
|
+
*/
|
|
2551
|
+
sandboxCwd?: string;
|
|
2552
|
+
/**
|
|
2553
|
+
* Environment instance the CLI session runs. Same value the topic's tool
|
|
2554
|
+
* calls send — a CLI call is often what creates the session, and the runtime
|
|
2555
|
+
* binds it to the first instance it sees.
|
|
2556
|
+
*/
|
|
2557
|
+
sandboxInstanceId?: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* Which sandbox a CLI-based provider runs in. Same meaning as on
|
|
2560
|
+
* `runBuildInTools`, and it has to carry the same value for a given topic:
|
|
2561
|
+
* the topic has one sandbox, so a CLI call that disagrees about the runtime
|
|
2562
|
+
* tears down the sandbox the built-in tools are using, losing its installs,
|
|
2563
|
+
* its logins and anything written outside the workspace.
|
|
2564
|
+
*/
|
|
2565
|
+
sandboxMode?: SandboxMode;
|
|
2566
|
+
/** See {@link RunBuildInToolsRequest.sandboxSpecification}. */
|
|
2567
|
+
sandboxSpecification?: Record<string, unknown>;
|
|
2568
|
+
/** See {@link RunBuildInToolsRequest.sandboxWorkingDir}. */
|
|
2569
|
+
sandboxWorkingDir?: string;
|
|
2629
2570
|
/**
|
|
2630
2571
|
* Name of the tool to call
|
|
2631
2572
|
*/
|
|
@@ -4276,6 +4217,7 @@ declare class BaseSDK {
|
|
|
4276
4217
|
private fetchNewToken;
|
|
4277
4218
|
}
|
|
4278
4219
|
|
|
4220
|
+
type AdminAgentStatus = AgentStatus | 'not_validated';
|
|
4279
4221
|
/**
|
|
4280
4222
|
* Admin Agent Item
|
|
4281
4223
|
* Agent item with admin-specific fields for management
|
|
@@ -4320,7 +4262,7 @@ interface AdminAgentItem {
|
|
|
4320
4262
|
/** Safety check result */
|
|
4321
4263
|
safetyCheck?: string | null;
|
|
4322
4264
|
/** Publication status */
|
|
4323
|
-
status?:
|
|
4265
|
+
status?: AdminAgentStatus;
|
|
4324
4266
|
/** Tags */
|
|
4325
4267
|
tags?: string[];
|
|
4326
4268
|
/** Token usage */
|
|
@@ -4329,14 +4271,18 @@ interface AdminAgentItem {
|
|
|
4329
4271
|
updatedAt: string;
|
|
4330
4272
|
/** URL */
|
|
4331
4273
|
url?: string;
|
|
4274
|
+
/** Agent or A2A implementation version string */
|
|
4275
|
+
version?: string;
|
|
4332
4276
|
/** Version name */
|
|
4333
4277
|
versionName?: string;
|
|
4334
4278
|
/** Version number */
|
|
4335
4279
|
versionNumber?: number;
|
|
4336
4280
|
/** Version list */
|
|
4337
4281
|
versions?: Array<{
|
|
4282
|
+
id: number;
|
|
4338
4283
|
isLatest: boolean;
|
|
4339
4284
|
isValidated: boolean;
|
|
4285
|
+
status: AdminAgentStatus | null;
|
|
4340
4286
|
updatedAt: string;
|
|
4341
4287
|
version: string;
|
|
4342
4288
|
versionNumber: number;
|
|
@@ -4347,8 +4293,28 @@ interface AdminAgentItem {
|
|
|
4347
4293
|
* Extended agent detail with admin-specific fields
|
|
4348
4294
|
*/
|
|
4349
4295
|
interface AdminAgentItemDetail extends AgentItemDetail {
|
|
4296
|
+
/** Default input media types */
|
|
4297
|
+
defaultInputModes: string[];
|
|
4298
|
+
/** Default output media types */
|
|
4299
|
+
defaultOutputModes: string[];
|
|
4300
|
+
/** Agent database ID */
|
|
4301
|
+
id: number;
|
|
4350
4302
|
/** Safety check result */
|
|
4351
4303
|
safetyCheck?: string | null;
|
|
4304
|
+
/** Publication status */
|
|
4305
|
+
status: AdminAgentStatus;
|
|
4306
|
+
/** Version list with database IDs */
|
|
4307
|
+
versions: Array<{
|
|
4308
|
+
id: number;
|
|
4309
|
+
isLatest: boolean;
|
|
4310
|
+
isValidated: boolean;
|
|
4311
|
+
status: AdminAgentStatus;
|
|
4312
|
+
updatedAt: string;
|
|
4313
|
+
version: string;
|
|
4314
|
+
versionNumber: number;
|
|
4315
|
+
}>;
|
|
4316
|
+
/** Visibility level */
|
|
4317
|
+
visibility: 'internal' | 'private' | 'public';
|
|
4352
4318
|
}
|
|
4353
4319
|
/**
|
|
4354
4320
|
* Agent list query parameters for admin
|
|
@@ -4361,7 +4327,7 @@ interface AdminAgentListQueryParams extends AdminListQueryParams {
|
|
|
4361
4327
|
/** Filter by namespace */
|
|
4362
4328
|
namespace?: string;
|
|
4363
4329
|
/** Filter by status */
|
|
4364
|
-
status?:
|
|
4330
|
+
status?: AdminAgentStatus | 'all';
|
|
4365
4331
|
/** Filter by visibility */
|
|
4366
4332
|
visibility?: 'public' | 'private' | 'internal' | 'all';
|
|
4367
4333
|
}
|
|
@@ -4369,6 +4335,8 @@ interface AdminAgentListQueryParams extends AdminListQueryParams {
|
|
|
4369
4335
|
* Agent update parameters
|
|
4370
4336
|
*/
|
|
4371
4337
|
interface AgentUpdateParams {
|
|
4338
|
+
/** Omit to preserve; null or an empty string clears the image on the entity and current version. */
|
|
4339
|
+
avatar?: string | null;
|
|
4372
4340
|
/** Official homepage or repository URL for the agent */
|
|
4373
4341
|
homepage?: string | null;
|
|
4374
4342
|
/** Unique identifier for the agent */
|
|
@@ -4386,6 +4354,23 @@ interface AgentUpdateParams {
|
|
|
4386
4354
|
/** Visibility level */
|
|
4387
4355
|
visibility?: 'public' | 'private' | 'internal';
|
|
4388
4356
|
}
|
|
4357
|
+
/**
|
|
4358
|
+
* Optional cloud Agent version fields, including arbitrary config and A2A metadata.
|
|
4359
|
+
*/
|
|
4360
|
+
type AgentVersionUpdateParams = AdminAgentVersionUpdateInput;
|
|
4361
|
+
/**
|
|
4362
|
+
* Agent version creation parameters. Unspecified A2A-level fields are
|
|
4363
|
+
* inherited from the version the agent currently points to.
|
|
4364
|
+
*/
|
|
4365
|
+
type AgentVersionCreateParams = AdminAgentVersionCreateInput;
|
|
4366
|
+
/**
|
|
4367
|
+
* Agent version mutation response.
|
|
4368
|
+
*/
|
|
4369
|
+
interface AdminAgentVersion {
|
|
4370
|
+
[key: string]: unknown;
|
|
4371
|
+
id: number;
|
|
4372
|
+
version: string;
|
|
4373
|
+
}
|
|
4389
4374
|
/**
|
|
4390
4375
|
* Agent by status response item
|
|
4391
4376
|
*/
|
|
@@ -4415,9 +4400,15 @@ interface AgentVersionByStatusItem {
|
|
|
4415
4400
|
* This service handles CRUD operations for agents, agent status, and visibility.
|
|
4416
4401
|
*/
|
|
4417
4402
|
declare class AgentService$1 extends BaseSDK {
|
|
4403
|
+
/**
|
|
4404
|
+
* Creates a cloud Agent and its current initial version, including required A2A metadata.
|
|
4405
|
+
*/
|
|
4406
|
+
createAgent(data: AdminAgentCreateInput): Promise<AdminAgentCreateResponse>;
|
|
4418
4407
|
/**
|
|
4419
4408
|
* Retrieves a list of agents with admin details
|
|
4420
4409
|
*
|
|
4410
|
+
* Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
|
|
4411
|
+
*
|
|
4421
4412
|
* Supports filtering, pagination, and sorting of results.
|
|
4422
4413
|
*
|
|
4423
4414
|
* @param params - Query parameters for filtering and pagination
|
|
@@ -4463,6 +4454,24 @@ declare class AgentService$1 extends BaseSDK {
|
|
|
4463
4454
|
* @returns Promise resolving to the updated agent
|
|
4464
4455
|
*/
|
|
4465
4456
|
updateAgent(id: number | string, data: AgentUpdateParams): Promise<AdminAgentItem>;
|
|
4457
|
+
/**
|
|
4458
|
+
* Updates a selected Agent version.
|
|
4459
|
+
*
|
|
4460
|
+
* @param id - Agent ID or identifier
|
|
4461
|
+
* @param version - Agent or A2A implementation version string
|
|
4462
|
+
* @param data - Mutable version fields
|
|
4463
|
+
* @returns Promise resolving to the updated Agent version
|
|
4464
|
+
*/
|
|
4465
|
+
updateAgentVersion(id: number | string, version: string, data: AgentVersionUpdateParams): Promise<AdminAgentVersion>;
|
|
4466
|
+
/**
|
|
4467
|
+
* Creates a new version for an existing agent, inheriting A2A-level fields
|
|
4468
|
+
* from the version the agent currently points to.
|
|
4469
|
+
*
|
|
4470
|
+
* @param id - Agent ID or identifier
|
|
4471
|
+
* @param data - Version creation parameters (version string required)
|
|
4472
|
+
* @returns Promise resolving to the created Agent version
|
|
4473
|
+
*/
|
|
4474
|
+
createAgentVersion(id: number | string, data: AgentVersionCreateParams): Promise<AdminAgentVersion>;
|
|
4466
4475
|
/**
|
|
4467
4476
|
* Updates agent publication status
|
|
4468
4477
|
*
|
|
@@ -4770,10 +4779,10 @@ declare class PluginService extends BaseSDK {
|
|
|
4770
4779
|
* This method is intended for use with scripts and bulk import operations.
|
|
4771
4780
|
*
|
|
4772
4781
|
* @param manifests - Array of plugin manifests to import
|
|
4773
|
-
* @param
|
|
4782
|
+
* @param _ownerId - Deprecated. Imports are attributed by the server authentication context.
|
|
4774
4783
|
* @returns Promise resolving to the import results with counts of success, skipped, failed, and a list of failed IDs
|
|
4775
4784
|
*/
|
|
4776
|
-
importPlugins(manifests: PluginManifest[],
|
|
4785
|
+
importPlugins(manifests: PluginManifest[], _ownerId?: number): Promise<{
|
|
4777
4786
|
failed: number;
|
|
4778
4787
|
failedIds: string[];
|
|
4779
4788
|
skipped: number;
|
|
@@ -4792,6 +4801,8 @@ declare class PluginService extends BaseSDK {
|
|
|
4792
4801
|
/**
|
|
4793
4802
|
* Retrieves a list of plugins with admin details
|
|
4794
4803
|
*
|
|
4804
|
+
* Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
|
|
4805
|
+
*
|
|
4795
4806
|
* Supports filtering, pagination, and sorting of results.
|
|
4796
4807
|
*
|
|
4797
4808
|
* @param params - Query parameters for filtering and pagination
|
|
@@ -4990,7 +5001,9 @@ declare class PluginService extends BaseSDK {
|
|
|
4990
5001
|
createDeploymentOption(pluginId: number, versionId: number, data: {
|
|
4991
5002
|
connectionArgs?: string[];
|
|
4992
5003
|
connectionCommand?: string;
|
|
5004
|
+
connectionConfigSchema?: Record<string, unknown>;
|
|
4993
5005
|
connectionType: string;
|
|
5006
|
+
connectionUrl?: string;
|
|
4994
5007
|
description?: string;
|
|
4995
5008
|
installationDetails?: InstallationDetails;
|
|
4996
5009
|
installationMethod: string;
|
|
@@ -5006,10 +5019,11 @@ declare class PluginService extends BaseSDK {
|
|
|
5006
5019
|
* @returns Promise resolving to the updated deployment option
|
|
5007
5020
|
*/
|
|
5008
5021
|
updateDeploymentOption(pluginId: number, versionId: number, optionId: number, data: {
|
|
5009
|
-
configSchema?: Record<string, any>;
|
|
5010
5022
|
connectionArgs?: string[];
|
|
5011
5023
|
connectionCommand?: string;
|
|
5024
|
+
connectionConfigSchema?: Record<string, unknown>;
|
|
5012
5025
|
connectionType?: string;
|
|
5026
|
+
connectionUrl?: string;
|
|
5013
5027
|
description?: string;
|
|
5014
5028
|
installationDetails?: Record<string, any>;
|
|
5015
5029
|
installationMethod?: string;
|
|
@@ -5116,23 +5130,6 @@ declare class SystemDependencyService extends BaseSDK {
|
|
|
5116
5130
|
}>;
|
|
5117
5131
|
}
|
|
5118
5132
|
|
|
5119
|
-
/**
|
|
5120
|
-
* Settings entity representing a system setting
|
|
5121
|
-
*/
|
|
5122
|
-
interface Settings {
|
|
5123
|
-
/** Creation timestamp (ISO 8601 format) */
|
|
5124
|
-
createdAt: string;
|
|
5125
|
-
/** Optional description of the setting's purpose */
|
|
5126
|
-
description?: string;
|
|
5127
|
-
/** Unique identifier for the setting */
|
|
5128
|
-
id: number;
|
|
5129
|
-
/** Setting key name used for retrieving the setting */
|
|
5130
|
-
key: string;
|
|
5131
|
-
/** Last update timestamp (ISO 8601 format) */
|
|
5132
|
-
updatedAt: string;
|
|
5133
|
-
/** Setting value (stored as string) */
|
|
5134
|
-
value: string;
|
|
5135
|
-
}
|
|
5136
5133
|
/**
|
|
5137
5134
|
* Configuration for enabled resource types
|
|
5138
5135
|
*/
|
|
@@ -5187,8 +5184,8 @@ interface CreateSettingsParams {
|
|
|
5187
5184
|
description?: string;
|
|
5188
5185
|
/** Setting key name */
|
|
5189
5186
|
key: string;
|
|
5190
|
-
/**
|
|
5191
|
-
value:
|
|
5187
|
+
/** JSON setting value */
|
|
5188
|
+
value: unknown;
|
|
5192
5189
|
}
|
|
5193
5190
|
/**
|
|
5194
5191
|
* Parameters for updating an existing setting
|
|
@@ -5197,7 +5194,7 @@ interface UpdateSettingsParams {
|
|
|
5197
5194
|
/** Optional new description */
|
|
5198
5195
|
description?: string;
|
|
5199
5196
|
/** New setting value */
|
|
5200
|
-
value:
|
|
5197
|
+
value: unknown;
|
|
5201
5198
|
}
|
|
5202
5199
|
/**
|
|
5203
5200
|
* Settings Management Service
|
|
@@ -5222,18 +5219,14 @@ declare class SettingsService extends BaseSDK {
|
|
|
5222
5219
|
* @param key - Setting key name
|
|
5223
5220
|
* @returns Promise resolving to the setting details
|
|
5224
5221
|
*/
|
|
5225
|
-
getSettingByKey(key: string): Promise<
|
|
5226
|
-
data: Settings;
|
|
5227
|
-
}>;
|
|
5222
|
+
getSettingByKey(key: string): Promise<Record<string, unknown>>;
|
|
5228
5223
|
/**
|
|
5229
5224
|
* Creates a new system setting
|
|
5230
5225
|
*
|
|
5231
5226
|
* @param data - Setting creation parameters
|
|
5232
5227
|
* @returns Promise resolving to the created setting
|
|
5233
5228
|
*/
|
|
5234
|
-
createSetting(data: CreateSettingsParams): Promise<
|
|
5235
|
-
data: Settings;
|
|
5236
|
-
}>;
|
|
5229
|
+
createSetting(data: CreateSettingsParams): Promise<Record<string, unknown>>;
|
|
5237
5230
|
/**
|
|
5238
5231
|
* Updates an existing setting
|
|
5239
5232
|
*
|
|
@@ -5241,9 +5234,7 @@ declare class SettingsService extends BaseSDK {
|
|
|
5241
5234
|
* @param data - Setting update parameters
|
|
5242
5235
|
* @returns Promise resolving to the updated setting
|
|
5243
5236
|
*/
|
|
5244
|
-
updateSetting(key: string, data: UpdateSettingsParams): Promise<
|
|
5245
|
-
data: Settings;
|
|
5246
|
-
}>;
|
|
5237
|
+
updateSetting(key: string, data: UpdateSettingsParams): Promise<Record<string, unknown>>;
|
|
5247
5238
|
/**
|
|
5248
5239
|
* Deletes a setting
|
|
5249
5240
|
*
|
|
@@ -5349,6 +5340,53 @@ declare class SkillCollectionService extends BaseSDK {
|
|
|
5349
5340
|
upsertLocalization(collectionId: number, locale: string, data: UpsertSkillCollectionLocalizationRequest): Promise<SkillCollectionLocalization>;
|
|
5350
5341
|
}
|
|
5351
5342
|
|
|
5343
|
+
interface ImportSkillPackageOptions {
|
|
5344
|
+
/** Filename sent with the multipart upload when `file` is a plain Blob */
|
|
5345
|
+
filename?: string;
|
|
5346
|
+
/** Omit to preserve the image; null clears it. */
|
|
5347
|
+
icon?: string | null;
|
|
5348
|
+
/** Optional skill identifier override */
|
|
5349
|
+
identifier?: string;
|
|
5350
|
+
}
|
|
5351
|
+
/**
|
|
5352
|
+
* Administrative skill management methods.
|
|
5353
|
+
*/
|
|
5354
|
+
declare class SkillService$1 extends BaseSDK {
|
|
5355
|
+
/** Create a manual Skill. Self-hosted category names resolve to directory identifiers. */
|
|
5356
|
+
createSkill(data: AdminSkillCreateRequest): Promise<AdminSkillUpdateResponse>;
|
|
5357
|
+
/** Import a GitHub Skill; omit icon to preserve it, or pass null to clear it. */
|
|
5358
|
+
importFromGitHub(data: AdminSkillGitHubImportRequest): Promise<AdminSkillImportResponse>;
|
|
5359
|
+
/** Retrieve raw Admin detail and image metadata for editing. */
|
|
5360
|
+
getSkill(id: number): Promise<AdminSkillDetail>;
|
|
5361
|
+
/**
|
|
5362
|
+
* Update publication settings and the current version's category atomically.
|
|
5363
|
+
*
|
|
5364
|
+
* @param id - Skill database ID
|
|
5365
|
+
* @param data - Omit category to preserve it, or pass null to clear it
|
|
5366
|
+
* Self-hosted categories accept directory identifiers or unique names; unknown names return 400.
|
|
5367
|
+
* @returns Updated Skill metadata; read the category through the Skill detail endpoint
|
|
5368
|
+
* @throws If the Skill does not exist, or category is supplied without a current version
|
|
5369
|
+
*/
|
|
5370
|
+
updateSkill(id: number, data: AdminSkillUpdateRequest): Promise<AdminSkillUpdateResponse>;
|
|
5371
|
+
/**
|
|
5372
|
+
* Retrieve Skills with Admin API status and visibility fields.
|
|
5373
|
+
*
|
|
5374
|
+
* Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
|
|
5375
|
+
*
|
|
5376
|
+
* @param params - Query parameters for filtering and pagination
|
|
5377
|
+
* @returns Paginated Skill list
|
|
5378
|
+
*/
|
|
5379
|
+
getSkills(params?: AdminSkillListQuery): Promise<AdminSkillListResponse>;
|
|
5380
|
+
/**
|
|
5381
|
+
* Import a skill from a .zip or .skill package.
|
|
5382
|
+
*
|
|
5383
|
+
* @param file - Skill package contents
|
|
5384
|
+
* @param options - Optional filename and identifier override
|
|
5385
|
+
* @returns Imported skill and version details
|
|
5386
|
+
*/
|
|
5387
|
+
importPackage(file: Blob, options?: ImportSkillPackageOptions): Promise<AdminSkillImportResponse>;
|
|
5388
|
+
}
|
|
5389
|
+
|
|
5352
5390
|
type AdminPluginEnvListQuery = any;
|
|
5353
5391
|
type PluginEnv = any;
|
|
5354
5392
|
interface AdminPluginEnvCreateParams {
|
|
@@ -5535,6 +5573,44 @@ declare class OrganizationService$1 extends BaseSDK {
|
|
|
5535
5573
|
}>;
|
|
5536
5574
|
}
|
|
5537
5575
|
|
|
5576
|
+
/** Enterprise-only category CRUD and atomic asset reassignment (MARKET_SELF_HOSTED=true). */
|
|
5577
|
+
declare class CategoryService$1 extends BaseSDK {
|
|
5578
|
+
/** Lists categories and counts assets referencing them in any version. */
|
|
5579
|
+
list(params: AssetCategoryAdminListQuery): Promise<AssetCategoryAdminList>;
|
|
5580
|
+
/** Creates a category with a server-generated stable identifier. */
|
|
5581
|
+
create(assetType: AssetCategoryType, data: AssetCategoryCreate): Promise<AssetCategory>;
|
|
5582
|
+
/** Updates presentation fields; icon: null clears the image, omission preserves it. */
|
|
5583
|
+
update(assetType: AssetCategoryType, identifier: string, data: AssetCategoryUpdate): Promise<AssetCategory>;
|
|
5584
|
+
/** Deletes up to 200 categories and reassigns or clears all affected asset versions atomically. */
|
|
5585
|
+
delete(assetType: AssetCategoryType, data: AssetCategoryDelete): Promise<{
|
|
5586
|
+
success: boolean;
|
|
5587
|
+
}>;
|
|
5588
|
+
}
|
|
5589
|
+
|
|
5590
|
+
declare class SandboxSessionService extends BaseSDK {
|
|
5591
|
+
list(params?: AdminSandboxSessionQuery): Promise<AdminSandboxSessionList>;
|
|
5592
|
+
get(id: number): Promise<{
|
|
5593
|
+
data: AdminSandboxSession;
|
|
5594
|
+
}>;
|
|
5595
|
+
related(id: number, params?: {
|
|
5596
|
+
current?: number;
|
|
5597
|
+
pageSize?: number;
|
|
5598
|
+
}): Promise<AdminSandboxSessionList>;
|
|
5599
|
+
}
|
|
5600
|
+
|
|
5601
|
+
declare class SandboxStorageService$1 extends BaseSDK {
|
|
5602
|
+
measure(key: string): Promise<{
|
|
5603
|
+
status: 'success' | 'failed' | 'running' | 'superseded';
|
|
5604
|
+
}>;
|
|
5605
|
+
efs(): Promise<{
|
|
5606
|
+
data: AdminSandboxEfsUsage;
|
|
5607
|
+
}>;
|
|
5608
|
+
list(params?: AdminSandboxStorageQuery): Promise<AdminSandboxStorageList>;
|
|
5609
|
+
get(key: string): Promise<{
|
|
5610
|
+
data: AdminSandboxStorage;
|
|
5611
|
+
}>;
|
|
5612
|
+
}
|
|
5613
|
+
|
|
5538
5614
|
/**
|
|
5539
5615
|
* LobeHub Market Admin SDK Client
|
|
5540
5616
|
*
|
|
@@ -5543,6 +5619,9 @@ declare class OrganizationService$1 extends BaseSDK {
|
|
|
5543
5619
|
* system settings, and dependencies. It requires admin-level authentication.
|
|
5544
5620
|
*/
|
|
5545
5621
|
declare class MarketAdmin extends BaseSDK {
|
|
5622
|
+
readonly sandboxStorage: SandboxStorageService$1;
|
|
5623
|
+
readonly sandboxSessions: SandboxSessionService;
|
|
5624
|
+
readonly categories: CategoryService$1;
|
|
5546
5625
|
/**
|
|
5547
5626
|
* Agent management service
|
|
5548
5627
|
* Provides methods for creating, updating, and managing agents
|
|
@@ -5587,6 +5666,11 @@ declare class MarketAdmin extends BaseSDK {
|
|
|
5587
5666
|
* Provides methods for managing curated skill collection localizations
|
|
5588
5667
|
*/
|
|
5589
5668
|
readonly skillCollections: SkillCollectionService;
|
|
5669
|
+
/**
|
|
5670
|
+
* Skill management service
|
|
5671
|
+
* Provides methods for importing and managing skills
|
|
5672
|
+
*/
|
|
5673
|
+
readonly skills: SkillService$1;
|
|
5590
5674
|
/**
|
|
5591
5675
|
* System dependency management service
|
|
5592
5676
|
* Provides methods for managing system dependencies required by plugins
|
|
@@ -5641,6 +5725,8 @@ declare class AgentService extends BaseSDK {
|
|
|
5641
5725
|
/**
|
|
5642
5726
|
* Retrieves a list of agents from the marketplace
|
|
5643
5727
|
*
|
|
5728
|
+
* Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
|
|
5729
|
+
*
|
|
5644
5730
|
* Supports filtering, pagination, and localization of results.
|
|
5645
5731
|
*
|
|
5646
5732
|
* @param params - Query parameters for filtering and pagination
|
|
@@ -6640,6 +6726,12 @@ declare class CredService extends BaseSDK {
|
|
|
6640
6726
|
injectForSkill(request: InjectCredsForSkillRequest, options?: globalThis.RequestInit): Promise<InjectCredsForSkillResponse>;
|
|
6641
6727
|
}
|
|
6642
6728
|
|
|
6729
|
+
declare class DeploymentService extends BaseSDK {
|
|
6730
|
+
prepareUpload(data: PrepareDeploymentUploadRequest, options?: globalThis.RequestInit): Promise<PreparedDeploymentUpload>;
|
|
6731
|
+
ingestUpload(uploadId: string, options?: globalThis.RequestInit): Promise<IngestedDeploymentUpload>;
|
|
6732
|
+
finalizeUpload(uploadId: string, options?: globalThis.RequestInit): Promise<Deployment>;
|
|
6733
|
+
}
|
|
6734
|
+
|
|
6643
6735
|
/**
|
|
6644
6736
|
* Feedback Service
|
|
6645
6737
|
*
|
|
@@ -6690,6 +6782,8 @@ declare class PluginsService extends BaseSDK {
|
|
|
6690
6782
|
/**
|
|
6691
6783
|
* Retrieves a list of plugins from the marketplace
|
|
6692
6784
|
*
|
|
6785
|
+
* Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
|
|
6786
|
+
*
|
|
6693
6787
|
* Supports filtering, pagination, and localization of results.
|
|
6694
6788
|
*
|
|
6695
6789
|
* @param params - Query parameters for filtering and pagination
|
|
@@ -6846,10 +6940,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6846
6940
|
* );
|
|
6847
6941
|
* ```
|
|
6848
6942
|
*/
|
|
6849
|
-
runBuildInTool<T extends CodeInterpreterToolName>(toolName: T, params: CodeInterpreterToolParams[T], context:
|
|
6850
|
-
topicId: string;
|
|
6851
|
-
userId: string;
|
|
6852
|
-
}, options?: globalThis.RequestInit): Promise<RunBuildInToolsResponse>;
|
|
6943
|
+
runBuildInTool<T extends CodeInterpreterToolName>(toolName: T, params: CodeInterpreterToolParams[T], context: RunBuildInToolsContext, options?: globalThis.RequestInit): Promise<RunBuildInToolsResponse>;
|
|
6853
6944
|
/**
|
|
6854
6945
|
* Execute a shell command in the Code Interpreter sandbox
|
|
6855
6946
|
*
|
|
@@ -6858,10 +6949,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6858
6949
|
* @param options - Additional options (background, timeout)
|
|
6859
6950
|
* @returns Promise resolving to command execution result
|
|
6860
6951
|
*/
|
|
6861
|
-
runCommand(command: string, context: {
|
|
6862
|
-
topicId: string;
|
|
6863
|
-
userId: string;
|
|
6864
|
-
}, options?: {
|
|
6952
|
+
runCommand(command: string, context: RunBuildInToolsContext, options?: {
|
|
6865
6953
|
background?: boolean;
|
|
6866
6954
|
timeout?: number;
|
|
6867
6955
|
}): Promise<RunBuildInToolsResponse>;
|
|
@@ -6873,10 +6961,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6873
6961
|
* @param options - Line range options (startLine, endLine)
|
|
6874
6962
|
* @returns Promise resolving to file content
|
|
6875
6963
|
*/
|
|
6876
|
-
readFile(path: string, context: {
|
|
6877
|
-
topicId: string;
|
|
6878
|
-
userId: string;
|
|
6879
|
-
}, options?: {
|
|
6964
|
+
readFile(path: string, context: RunBuildInToolsContext, options?: {
|
|
6880
6965
|
endLine?: number;
|
|
6881
6966
|
startLine?: number;
|
|
6882
6967
|
}): Promise<RunBuildInToolsResponse>;
|
|
@@ -6889,10 +6974,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6889
6974
|
* @param options - Additional options (createDirectories)
|
|
6890
6975
|
* @returns Promise resolving to write result
|
|
6891
6976
|
*/
|
|
6892
|
-
writeFile(path: string, content: string, context: {
|
|
6893
|
-
topicId: string;
|
|
6894
|
-
userId: string;
|
|
6895
|
-
}, options?: {
|
|
6977
|
+
writeFile(path: string, content: string, context: RunBuildInToolsContext, options?: {
|
|
6896
6978
|
createDirectories?: boolean;
|
|
6897
6979
|
}): Promise<RunBuildInToolsResponse>;
|
|
6898
6980
|
/**
|
|
@@ -6902,10 +6984,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6902
6984
|
* @param context - User and topic context
|
|
6903
6985
|
* @returns Promise resolving to directory listing
|
|
6904
6986
|
*/
|
|
6905
|
-
listFiles(directoryPath: string, context:
|
|
6906
|
-
topicId: string;
|
|
6907
|
-
userId: string;
|
|
6908
|
-
}): Promise<RunBuildInToolsResponse>;
|
|
6987
|
+
listFiles(directoryPath: string, context: RunBuildInToolsContext): Promise<RunBuildInToolsResponse>;
|
|
6909
6988
|
/**
|
|
6910
6989
|
* Search for files matching a glob pattern
|
|
6911
6990
|
*
|
|
@@ -6914,10 +6993,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6914
6993
|
* @param directory - Base directory (optional)
|
|
6915
6994
|
* @returns Promise resolving to matching files
|
|
6916
6995
|
*/
|
|
6917
|
-
globFiles(pattern: string, context:
|
|
6918
|
-
topicId: string;
|
|
6919
|
-
userId: string;
|
|
6920
|
-
}, directory?: string): Promise<RunBuildInToolsResponse>;
|
|
6996
|
+
globFiles(pattern: string, context: RunBuildInToolsContext, directory?: string): Promise<RunBuildInToolsResponse>;
|
|
6921
6997
|
/**
|
|
6922
6998
|
* Search file contents using regex pattern
|
|
6923
6999
|
*
|
|
@@ -6927,10 +7003,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6927
7003
|
* @param options - Additional options (filePattern, recursive)
|
|
6928
7004
|
* @returns Promise resolving to grep results
|
|
6929
7005
|
*/
|
|
6930
|
-
grepContent(pattern: string, directory: string, context: {
|
|
6931
|
-
topicId: string;
|
|
6932
|
-
userId: string;
|
|
6933
|
-
}, options?: {
|
|
7006
|
+
grepContent(pattern: string, directory: string, context: RunBuildInToolsContext, options?: {
|
|
6934
7007
|
filePattern?: string;
|
|
6935
7008
|
recursive?: boolean;
|
|
6936
7009
|
}): Promise<RunBuildInToolsResponse>;
|
|
@@ -6959,10 +7032,7 @@ declare class PluginsService extends BaseSDK {
|
|
|
6959
7032
|
* }
|
|
6960
7033
|
* ```
|
|
6961
7034
|
*/
|
|
6962
|
-
exportFile(path: string, uploadUrl: string, context:
|
|
6963
|
-
topicId: string;
|
|
6964
|
-
userId: string;
|
|
6965
|
-
}): Promise<RunBuildInToolsResponse>;
|
|
7035
|
+
exportFile(path: string, uploadUrl: string, context: RunBuildInToolsContext): Promise<RunBuildInToolsResponse>;
|
|
6966
7036
|
/**
|
|
6967
7037
|
* Submits or updates a rating for a plugin
|
|
6968
7038
|
*
|
|
@@ -7052,6 +7122,106 @@ declare class PluginsService extends BaseSDK {
|
|
|
7052
7122
|
}>;
|
|
7053
7123
|
}
|
|
7054
7124
|
|
|
7125
|
+
/**
|
|
7126
|
+
* Persistent sandbox storage management.
|
|
7127
|
+
*
|
|
7128
|
+
* The storage is the directory the caller's cloud sandbox sessions run in:
|
|
7129
|
+
* shared across their conversation topics and durable across sandbox
|
|
7130
|
+
* recycling. `current` addresses the caller's own storage, so a client never
|
|
7131
|
+
* has to derive the key itself.
|
|
7132
|
+
*
|
|
7133
|
+
* Every path is relative to the storage root (`reports/q3.md`, not
|
|
7134
|
+
* `/mnt/workspace/ws-.../reports/q3.md`).
|
|
7135
|
+
*/
|
|
7136
|
+
declare class SandboxStorageService extends BaseSDK {
|
|
7137
|
+
/** Storage directory, quota and the last measured usage. */
|
|
7138
|
+
getStorage(key?: string, options?: globalThis.RequestInit): Promise<SandboxStorageInfo>;
|
|
7139
|
+
/**
|
|
7140
|
+
* Re-measure the storage size. Costs a sandbox round trip and walks the
|
|
7141
|
+
* whole directory, so call it on demand rather than on every render.
|
|
7142
|
+
*/
|
|
7143
|
+
refreshUsage(key?: string, context?: SandboxStorageRequestContext, options?: globalThis.RequestInit): Promise<SandboxStorageInfo>;
|
|
7144
|
+
listFiles(params?: SandboxStorageRequestContext & {
|
|
7145
|
+
key?: string;
|
|
7146
|
+
path?: string;
|
|
7147
|
+
recursive?: boolean;
|
|
7148
|
+
}, options?: globalThis.RequestInit): Promise<SandboxStorageFileList>;
|
|
7149
|
+
readFile(params: SandboxStorageRequestContext & {
|
|
7150
|
+
key?: string;
|
|
7151
|
+
path: string;
|
|
7152
|
+
}, options?: globalThis.RequestInit): Promise<SandboxStorageFileContent>;
|
|
7153
|
+
writeFile(params: SandboxStorageRequestContext & {
|
|
7154
|
+
content: string;
|
|
7155
|
+
key?: string;
|
|
7156
|
+
path: string;
|
|
7157
|
+
}, options?: globalThis.RequestInit): Promise<SandboxStorageWriteResult>;
|
|
7158
|
+
/**
|
|
7159
|
+
* The storage's instances, newest first.
|
|
7160
|
+
*
|
|
7161
|
+
* Sizes come from the archives themselves rather than a cache, so they are
|
|
7162
|
+
* exact — but the call needs a live sandbox, so a cold start can take a few
|
|
7163
|
+
* seconds. Worth a loading state.
|
|
7164
|
+
*/
|
|
7165
|
+
/**
|
|
7166
|
+
* One instance's run history, newest first: every session that ran it
|
|
7167
|
+
* and every build of it. Answered from the control plane alone, so it is
|
|
7168
|
+
* cheap — no sandbox is started. Page with the `nextBefore` it returns.
|
|
7169
|
+
*/
|
|
7170
|
+
listInstanceSessions(instance: string, params?: {
|
|
7171
|
+
before?: string;
|
|
7172
|
+
key?: string;
|
|
7173
|
+
limit?: number;
|
|
7174
|
+
}, options?: globalThis.RequestInit): Promise<SandboxSessionList>;
|
|
7175
|
+
listInstances(params?: SandboxStorageRequestContext & {
|
|
7176
|
+
key?: string;
|
|
7177
|
+
}, options?: globalThis.RequestInit): Promise<SandboxInstanceList>;
|
|
7178
|
+
/** Copy an instance to a new identifier, for "start from this one". */
|
|
7179
|
+
copyInstance(params: SandboxStorageRequestContext & {
|
|
7180
|
+
/**
|
|
7181
|
+
* The copy's own directory, relative to the storage, when the source
|
|
7182
|
+
* keeps its work tree in one — never the source's (LOBE-14362).
|
|
7183
|
+
*/
|
|
7184
|
+
instanceDir?: string;
|
|
7185
|
+
key?: string;
|
|
7186
|
+
name: string;
|
|
7187
|
+
to: string;
|
|
7188
|
+
}, options?: globalThis.RequestInit): Promise<{
|
|
7189
|
+
name: string;
|
|
7190
|
+
}>;
|
|
7191
|
+
/**
|
|
7192
|
+
* Delete an instance.
|
|
7193
|
+
*
|
|
7194
|
+
* Refused with 409 `INSTANCE_IN_USE` while a live session is running it —
|
|
7195
|
+
* that session would write the archive back when it ends, so the delete would
|
|
7196
|
+
* appear to work and then silently undo itself.
|
|
7197
|
+
*/
|
|
7198
|
+
deleteInstance(params: SandboxStorageRequestContext & {
|
|
7199
|
+
key?: string;
|
|
7200
|
+
name: string;
|
|
7201
|
+
}, options?: globalThis.RequestInit): Promise<{
|
|
7202
|
+
name: string;
|
|
7203
|
+
}>;
|
|
7204
|
+
/**
|
|
7205
|
+
* Create a directory, parents included.
|
|
7206
|
+
*
|
|
7207
|
+
* Idempotent: a directory that already exists is reported as created, so a
|
|
7208
|
+
* picker can call it without checking first.
|
|
7209
|
+
*/
|
|
7210
|
+
createDirectory(params: SandboxStorageRequestContext & {
|
|
7211
|
+
key?: string;
|
|
7212
|
+
path: string;
|
|
7213
|
+
}, options?: globalThis.RequestInit): Promise<{
|
|
7214
|
+
path: string;
|
|
7215
|
+
}>;
|
|
7216
|
+
deleteFile(params: SandboxStorageRequestContext & {
|
|
7217
|
+
key?: string;
|
|
7218
|
+
path: string;
|
|
7219
|
+
recursive?: boolean;
|
|
7220
|
+
}, options?: globalThis.RequestInit): Promise<{
|
|
7221
|
+
path: string;
|
|
7222
|
+
}>;
|
|
7223
|
+
}
|
|
7224
|
+
|
|
7055
7225
|
/**
|
|
7056
7226
|
* Skill Service
|
|
7057
7227
|
*
|
|
@@ -7190,6 +7360,8 @@ declare class MarketSkillService extends BaseSDK {
|
|
|
7190
7360
|
/**
|
|
7191
7361
|
* Retrieves a list of skills from the marketplace
|
|
7192
7362
|
*
|
|
7363
|
+
* Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
|
|
7364
|
+
*
|
|
7193
7365
|
* Supports filtering, pagination, search, and various sorting options
|
|
7194
7366
|
* including GitHub stats (stars, forks, watchers). Locale localizes
|
|
7195
7367
|
* descriptions and summaries, but the returned skill name stays canonical.
|
|
@@ -8366,6 +8538,12 @@ declare class UserPublishService extends BaseSDK {
|
|
|
8366
8538
|
deletePluginLocalization(identifier: string, locale: string, version?: string, options?: globalThis.RequestInit): Promise<DeletePluginLocalizationResponse>;
|
|
8367
8539
|
}
|
|
8368
8540
|
|
|
8541
|
+
/** Enterprise-only public category directory; no authentication is required (MARKET_SELF_HOSTED=true). */
|
|
8542
|
+
declare class CategoryService extends BaseSDK {
|
|
8543
|
+
/** Lists configured categories with nullable HTTP(S) image URLs or lucide:<name> icons and public asset counts, including empty categories. */
|
|
8544
|
+
list(assetType: AssetCategoryType, locale?: string): Promise<AssetCategoryItem[]>;
|
|
8545
|
+
}
|
|
8546
|
+
|
|
8369
8547
|
/**
|
|
8370
8548
|
* LobeHub Market SDK Client
|
|
8371
8549
|
*
|
|
@@ -8375,6 +8553,11 @@ declare class UserPublishService extends BaseSDK {
|
|
|
8375
8553
|
* by combining specialized domain services.
|
|
8376
8554
|
*/
|
|
8377
8555
|
declare class MarketSDK extends BaseSDK {
|
|
8556
|
+
readonly categories: CategoryService;
|
|
8557
|
+
/** Anonymous WebP byte URL. No signed token or public bucket is required. */
|
|
8558
|
+
getAssetImageUrl(id: string): string;
|
|
8559
|
+
/** Anonymous SVG with a safely generated single initial; name must contain 1–255 characters. */
|
|
8560
|
+
getAssetInitialUrl(name: string): string;
|
|
8378
8561
|
/**
|
|
8379
8562
|
* Agent profile service for M2M agent identity management
|
|
8380
8563
|
* Provides methods to view and update the current agent's profile
|
|
@@ -8405,11 +8588,22 @@ declare class MarketSDK extends BaseSDK {
|
|
|
8405
8588
|
* Provides methods to create, list, update, delete credentials, and inject into sandboxes
|
|
8406
8589
|
*/
|
|
8407
8590
|
readonly creds: CredService;
|
|
8591
|
+
/**
|
|
8592
|
+
* Deployments service for direct hosted artifact uploads
|
|
8593
|
+
*/
|
|
8594
|
+
readonly deployments: DeploymentService;
|
|
8408
8595
|
/**
|
|
8409
8596
|
* Plugins service for accessing plugin-related functionality
|
|
8410
8597
|
* Provides methods to list, search, retrieve plugin information, and report installation attempts
|
|
8411
8598
|
*/
|
|
8412
8599
|
readonly plugins: PluginsService;
|
|
8600
|
+
/**
|
|
8601
|
+
* Sandbox storage service for the caller's persistent sandbox directory.
|
|
8602
|
+
*
|
|
8603
|
+
* Inspects quota and usage, and lists, reads, writes and deletes files that
|
|
8604
|
+
* survive sandbox recycling and are shared across the user's topics.
|
|
8605
|
+
*/
|
|
8606
|
+
readonly sandboxStorage: SandboxStorageService;
|
|
8413
8607
|
/**
|
|
8414
8608
|
* Organizations service for accessing organization-related functionality.
|
|
8415
8609
|
* Provides methods to retrieve organization profiles and their published
|
|
@@ -8510,7 +8704,9 @@ declare class MarketAPIError extends Error {
|
|
|
8510
8704
|
readonly code?: string;
|
|
8511
8705
|
/** The full error response body */
|
|
8512
8706
|
readonly errorBody?: any;
|
|
8513
|
-
|
|
8707
|
+
/** Validated trace ID returned by Market for correlating server-side diagnostics. */
|
|
8708
|
+
readonly traceId?: string;
|
|
8709
|
+
constructor(status: number, statusText: string, errorBody?: any, traceId?: string);
|
|
8514
8710
|
/**
|
|
8515
8711
|
* Check if this is a specific error code
|
|
8516
8712
|
*/
|
|
@@ -8537,6 +8733,34 @@ declare const SDK_VERSION = "0.31.3";
|
|
|
8537
8733
|
*/
|
|
8538
8734
|
declare const SDK_USER_AGENT = "LobeHub-Market-SDK/0.31.3";
|
|
8539
8735
|
|
|
8736
|
+
/**
|
|
8737
|
+
* Trusted Client Token Utilities
|
|
8738
|
+
*
|
|
8739
|
+
* Provides encryption utilities for creating trusted client tokens
|
|
8740
|
+
* that can be used with the Market SDK.
|
|
8741
|
+
*
|
|
8742
|
+
* @example
|
|
8743
|
+
* ```typescript
|
|
8744
|
+
* import { createTrustedClientToken, TrustedClientPayload } from '@lobehub/market-sdk';
|
|
8745
|
+
*
|
|
8746
|
+
* const payload: TrustedClientPayload = {
|
|
8747
|
+
* userId: 'user_xxx',
|
|
8748
|
+
* clientId: 'lobechat-com',
|
|
8749
|
+
* email: 'user@example.com',
|
|
8750
|
+
* timestamp: Date.now(),
|
|
8751
|
+
* nonce: generateNonce(),
|
|
8752
|
+
* name: 'John Doe',
|
|
8753
|
+
* // Omit for the free tier; present for a plan that includes one.
|
|
8754
|
+
* sandboxStorage: { key: 'ws-user_xxx', quotaBytes: 2 * 1024 ** 3 },
|
|
8755
|
+
* };
|
|
8756
|
+
*
|
|
8757
|
+
* const token = createTrustedClientToken(payload, secret);
|
|
8758
|
+
*
|
|
8759
|
+
* // Use with MarketSDK
|
|
8760
|
+
* const sdk = new MarketSDK({ trustedClientToken: token });
|
|
8761
|
+
* ```
|
|
8762
|
+
*/
|
|
8763
|
+
|
|
8540
8764
|
/**
|
|
8541
8765
|
* Trusted client payload structure
|
|
8542
8766
|
*/
|
|
@@ -8551,6 +8775,16 @@ interface TrustedClientPayload {
|
|
|
8551
8775
|
name?: string;
|
|
8552
8776
|
/** Random nonce for uniqueness */
|
|
8553
8777
|
nonce: string;
|
|
8778
|
+
/**
|
|
8779
|
+
* Persistent sandbox entitlement for this caller, resolved from their plan.
|
|
8780
|
+
*
|
|
8781
|
+
* Market never derives this itself — it holds no subscription data — so a
|
|
8782
|
+
* token without it gets the throwaway sandbox, which is also what every
|
|
8783
|
+
* client predating the feature keeps getting. `key` must be the same
|
|
8784
|
+
* storage key used when rewriting tool paths client-side, or the caller
|
|
8785
|
+
* would address a different directory than its own tools do.
|
|
8786
|
+
*/
|
|
8787
|
+
sandboxStorage?: SandboxStorageClaim | null;
|
|
8554
8788
|
/** Unix timestamp in milliseconds when token was created */
|
|
8555
8789
|
timestamp: number;
|
|
8556
8790
|
/** Clerk user ID (format: user_xxx) */
|
|
@@ -8589,8 +8823,9 @@ declare function buildTrustedClientPayload(params: {
|
|
|
8589
8823
|
email: string;
|
|
8590
8824
|
emailVerified?: boolean;
|
|
8591
8825
|
name?: string;
|
|
8826
|
+
sandboxStorage?: SandboxStorageClaim | null;
|
|
8592
8827
|
userId: string;
|
|
8593
8828
|
workspaceId?: string;
|
|
8594
8829
|
}): TrustedClientPayload;
|
|
8595
8830
|
|
|
8596
|
-
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
|
|
8831
|
+
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 AgentListQuery, type AgentModifyRequest, type AgentModifyResponse, type AgentProfileEntity, type AgentProfileResponse, type AgentSecurityRequirement, type AgentSecurityScheme, 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 CimdClientMetadata, type ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type ConnectProvider, type ConnectProviderDetail, type ConnectProviderScopes, type ConnectionHealth, type ConnectionStats, type CreateFileCredRequest, type CreateKVCredRequest, type CreateMemberAgent, type CreateOAuthCredRequest, type CredWithPlaintext, type DeleteCredResponse, type Deployment, type DeploymentBuildSummary, type DiscoveryDocument, type EditLocalFileParams, type ExecScriptParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FirstPluginLocalizationInput, type FollowListItem, type FollowListResponse, type FollowRequest, type GetAllConnectionsHealthResponse, type GetAuthorizeUrlParams, type GetClientMetadataParams, type GetCommandOutputParams, type GetConnectProviderResponse, type GetConnectionHealthResponse, type GetConnectionStatsResponse, type GetConnectionStatusResponse, type GetCredOptions, type GetSkillStatusResponse, type GetSkillToolResponse, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListConnectProvidersResponse, type ListConnectionsResponse, type ListCredsResponse, type ListLocalFilesParams, type ListSkillProvidersResponse, type ListSkillToolsResponse, MarketAPIError, MarketAdmin, type MarketReportGitHubSkillParams, type MarketReportGitHubSkillResponse, type MarketReportSkillInstallParams, type MarketReportSkillInstallResponse, MarketSDK, type MarketSDKOptions, type MarketSkillAuthor, type MarketSkillCategory, type MarketSkillCategoryQuery, type MarketSkillCollectionDetail, type MarketSkillCollectionDetailQuery, type MarketSkillCollectionItemSort, type MarketSkillCollectionListItem, type MarketSkillCollectionListQuery, type MarketSkillCollectionListResponse, type MarketSkillDetail, type MarketSkillDetailQuery, type MarketSkillGitHubMeta, type MarketSkillListItem, type MarketSkillListQuery, type MarketSkillListResponse, type MarketSkillManifest, type MarketSkillResource, type MarketSkillVersionSummary, type MarketSkillVersionsResponse, type MemberAgent, type MoveLocalFilesParams, type MoveOperation, type OAuthConnection, type OAuthTokenResponse, type OrgRef, type OrganizationInfoQuery, type OrganizationInfoResponse, type OrganizationProfile, type OwnAgentGroupListQuery, type OwnAgentListQuery, type PaginationQuery, type PluginCategory, type PluginCommentAuthor, type PluginCommentCreateItem, type PluginCommentCreateResponse, type PluginCommentDeleteResponse, type PluginCommentItem, type PluginCommentListQuery, type PluginCommentListResponse, type PluginCommentRating, type PluginCommentReactionResponse, type PluginI18nImportParams, type PluginI18nImportResponse, type PluginLatestOwnComment, type PluginLocalization, type PluginQueryParams, type PluginRatingDistribution, type PluginUpdateParams, type PluginVersionCreateParams, type PluginVersionUpdateParams, type PreparedDeploymentUpload, type ProgrammingLanguage, type PublishPluginParams, type PublishPluginResponse, type ReadLocalFileParams, type RefreshConnectionResponse, type RefreshTokenRequest, type RegisterUserRequest, type RegisterUserResponse, type RegisteredUserProfile, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RevokeConnectionResponse, type RevokeTokenRequest, type RunBuildInToolsContext, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, SDK_USER_AGENT, SDK_VERSION, type SandboxStorageRequestContext, type SearchLocalFilesParams, type ShareCredRequest, type SharedTokenState, type SkillCallParams, type SkillCommentAuthor, type SkillCommentCreateItem, type SkillCommentCreateResponse, type SkillCommentDeleteResponse, type SkillCommentItem, type SkillCommentListItem, type SkillCommentListQuery, type SkillCommentListResponse, type SkillCommentRating, type SkillErrorResponse, type SkillLatestOwnComment, type SkillProviderInfo, type SkillProviderStatus, type SkillRatingDistribution, type SkillTool, type SkillToolsSource, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SubmitRepoParams, type SubmitRepoResponse, type SuccessResponse, type TaskTemplate, type TaskTemplateCategory, type TaskTemplateConnector, type TaskTemplateConnectorReference, type TaskTemplateConnectorSource, type TaskTemplateIcon, type TaskTemplateInterestAreaKey, type TaskTemplateItem, type TaskTemplateLocalizedContent, type TaskTemplateRecommendationQuery, type TaskTemplateRecommendationResponse, type ToggleLikeResponse, type TrustedClientPayload, type UnclaimedPluginItem, type UpdateAgentProfileRequest, type UpdateAgentProfileResponse, type UpdateCredRequest, type UpdateMemberAgent, type UpdateUserInfoRequest, type UpdateUserInfoResponse, type UserAgentGroupItem, type UserAgentItem, type UserInfoQuery, type UserInfoResponse, type UserPluginItem, type UserProfile, type UserSkillItem, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce, orgRefToPathSegment };
|