@lobehub/market-sdk 0.41.0 → 0.43.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 CHANGED
@@ -1,6 +1,6 @@
1
- import { AgentItem, CategoryItem, UserCredSummary, MarketItemBase, PluginConnectionType, AdminAgentCreate, AdminAgentCreateResponse, 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, AdminSkillListQuery, AdminSkillListResponse, AdminSkillImportResponse, SitemapResponse, AgentEventRequest, SkillCredStatus, InjectCredsRequest, InjectCredsResponse, InjectCredsForSkillRequest, InjectCredsForSkillResponse, CategoryListQuery, 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, SandboxRunRequest, 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, SandboxRunResponse, SandboxStorageInfo, SandboxStorageFileList, SandboxStorageFileContent, SandboxStorageWriteResult, SandboxSessionList, SandboxInstanceList, MyOrganizationItem, CreateOrganizationRequest, CreateOrganizationResponse, UpdateOrganizationRequest, OrganizationItem, OrganizationMemberItem, OrganizationMemberRole, AddMemberResponse, UpdateMemberRoleResponse, ReconcileMembersRequest, ReconcileMembersResponse, AssetCategoryItem, SandboxStorageClaim } from '@lobehub/market-types';
2
2
  export * from '@lobehub/market-types';
3
- 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, SandboxEgress, SandboxEgressInject, SandboxInstance, SandboxInstanceList, SandboxInstanceSnapshot, SandboxRunErrorCode, SandboxRunErrorResponse, SandboxRunResponse, SandboxRunRuntime, SandboxRunSubject, SandboxSecretRef, SandboxSessionEndReason, SandboxSessionKind, SandboxSessionList, SandboxSessionRecord, SandboxStorageClaim, SandboxStorageFileContent, SandboxStorageFileEntry, SandboxStorageFileList, SandboxStorageInfo, SandboxStorageStatus, SandboxStorageWriteResult, SkillCredStatus, UserCredSummary } from '@lobehub/market-types';
4
4
  import { z } from 'zod';
5
5
  import { JSONSchema7 } from 'json-schema';
6
6
 
@@ -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,48 +330,10 @@ interface UpdateAgentProfileResponse {
328
330
  agent: AgentProfileEntity;
329
331
  }
330
332
 
331
- /**
332
- * Agent list query parameters
333
- * Defines the query parameters for filtering and paginating agent results
334
- */
335
- interface AgentListQuery {
336
- /** Filter by category */
337
- category?: string;
338
- /** Include category counts derived from the same search candidate set */
339
- includeCategoryCounts?: boolean;
340
- /** Filter by official status */
341
- isOfficial?: 'true' | 'false';
342
- /** Locale for localized content */
343
- locale?: string;
344
- /** Sort order */
345
- order?: 'asc' | 'desc';
346
- /** Filter by owner ID */
333
+ /** SDK callers may pass a numeric owner ID as a string. */
334
+ type AgentListQuery = Omit<AgentMarketListQuery, 'ownerId'> & {
347
335
  ownerId?: number | string;
348
- /** Current page number (1-based) */
349
- page?: number;
350
- /** Number of items per page */
351
- pageSize?: number;
352
- /** Search query string */
353
- q?: string;
354
- /** Sort field */
355
- sort?: 'createdAt' | 'knowledgeCount' | 'mostUsage' | 'name' | 'pluginCount' | 'recommended' | 'relevance' | 'tokenUsage' | 'updatedAt';
356
- /** Publication status filter */
357
- status?: 'published' | 'unpublished' | 'archived' | 'deprecated' | 'all';
358
- /** Visibility filter */
359
- visibility?: 'public' | 'private' | 'internal' | 'all';
360
- }
361
- /**
362
- * Agent list response structure
363
- * Defines the structure of the agent list API response
364
- */
365
- interface AgentListResponse {
366
- categoryCounts?: CategoryItem[];
367
- currentPage: number;
368
- items: AgentItem[];
369
- pageSize: number;
370
- totalCount: number;
371
- totalPages: number;
372
- }
336
+ };
373
337
  /**
374
338
  * Agent detail query parameters
375
339
  * Defines the query parameters for retrieving agent details
@@ -380,139 +344,6 @@ interface AgentDetailQuery {
380
344
  /** Specific version number to retrieve */
381
345
  version?: string;
382
346
  }
383
- /**
384
- * Agent detail response structure
385
- * Represents the complete agent information including A2A AgentCard data
386
- */
387
- interface AgentItemDetail extends AgentItem {
388
- /** A2A protocol version */
389
- a2aProtocolVersion?: string;
390
- /** Author or organization name */
391
- author?: string;
392
- /** Avatar URL for the agent, can be a emoji */
393
- avatar: string;
394
- /** Category name used for classification */
395
- category?: string;
396
- /** Total comment count */
397
- commentCount?: number;
398
- /** Optional: Compatibility information for different platforms or versions */
399
- compatibility?: Record<string, any>;
400
- /** Agent configuration JSON */
401
- config: any;
402
- /** Resource creation date in the marketplace (ISO 8601 format) */
403
- createdAt: string;
404
- /** Current version id */
405
- currentVersionId?: number;
406
- /** Localized short description displayed in the marketplace listing */
407
- description: string;
408
- /** URL to human-readable documentation */
409
- documentationUrl?: string;
410
- /** Editor data for saving prompt content in editor mode */
411
- editorData?: Record<string, any>;
412
- /** Examples for usage */
413
- examples?: string[];
414
- /** Supported protocol extensions */
415
- extensions?: any[];
416
- /** Whether push notifications are supported */
417
- hasPushNotifications?: boolean;
418
- /** Whether state transition history is supported */
419
- hasStateTransitionHistory?: boolean;
420
- /** Whether streaming is supported */
421
- hasStreaming?: boolean;
422
- /** URL to the resource's homepage or documentation */
423
- homepage?: string;
424
- /** Icon URL or Emoji character */
425
- icon?: string;
426
- /** Agent database id */
427
- id?: number;
428
- /** Globally unique identifier, typically contains author/namespace and name */
429
- identifier: string;
430
- /** Total install count */
431
- installCount?: number;
432
- /** Additional interfaces supported */
433
- interfaces?: any[];
434
- /** Whether featured */
435
- isFeatured?: boolean;
436
- /** Whether officially maintained */
437
- isOfficial?: boolean;
438
- /** Locale */
439
- locale?: string;
440
- /** URL pointing to the detailed manifest file for this resource */
441
- manifestUrl: string;
442
- /** Localized display name shown in the marketplace listing */
443
- name: string;
444
- /** Owner ID */
445
- ownerId?: number;
446
- /** The transport of the preferred endpoint */
447
- preferredTransport?: string;
448
- /** Average rating */
449
- ratingAverage?: number | null;
450
- /** Rating count */
451
- ratingCount?: number;
452
- /** Security requirements */
453
- securityRequirements?: any[];
454
- /** Security schemes */
455
- securitySchemes?: any;
456
- /** Agent skills */
457
- skills?: AgentSkill[];
458
- /** Publication status */
459
- status?: 'published' | 'unpublished' | 'archived' | 'deprecated' | 'all' | string | null;
460
- /** A summary that helps find the correct agent */
461
- summary?: string;
462
- /** Whether the agent supports authenticated extended card */
463
- supportsAuthenticatedExtendedCard?: boolean;
464
- /** List of localized tags for filtering and categorization */
465
- tags?: string[];
466
- /** Token usage */
467
- tokenUsage?: number;
468
- /** Resource's last update date in the marketplace (ISO 8601 format) */
469
- updatedAt: string;
470
- /** Agent or A2A implementation version string */
471
- version: string;
472
- /** Version display name */
473
- versionName?: string;
474
- /** Incremental version number */
475
- versionNumber: number;
476
- /** Version list summary */
477
- versions?: Array<{
478
- isLatest: boolean;
479
- isValidated: boolean;
480
- status: string | null;
481
- updatedAt: string;
482
- version: string;
483
- versionNumber: number;
484
- }>;
485
- /** Visibility */
486
- visibility?: 'public' | 'private' | 'internal' | 'all' | string;
487
- }
488
- /**
489
- * Agent skill structure
490
- * Represents a skill that an agent can perform
491
- */
492
- interface AgentSkill {
493
- /** Skill description */
494
- description: string;
495
- /** Example prompts or use cases */
496
- examples?: string[];
497
- /** Input Media Types for this skill */
498
- inputModes?: string[];
499
- /** Localized skill information */
500
- localizations?: Array<{
501
- description: string;
502
- examples?: string[];
503
- locale: string;
504
- name: string;
505
- tags: string[];
506
- }>;
507
- /** Human-readable skill name */
508
- name: string;
509
- /** Output Media Types for this skill */
510
- outputModes?: string[];
511
- /** Unique skill identifier within the agent */
512
- skillId: string;
513
- /** Keywords/categories for discoverability */
514
- tags: string[];
515
- }
516
347
  /**
517
348
  * Agent Create Request
518
349
  * Parameters for creating a new agent
@@ -1752,18 +1583,6 @@ interface Deployment {
1752
1583
  title: string | null;
1753
1584
  updatedAt: string;
1754
1585
  }
1755
- interface PrepareDeploymentUploadRequest {
1756
- artifactIdentifier: string;
1757
- externalMessageId: string;
1758
- externalTopicId: string;
1759
- files: Array<{
1760
- contentType: string;
1761
- path: string;
1762
- sizeBytes: number;
1763
- }>;
1764
- requestedSlug?: string;
1765
- title?: string;
1766
- }
1767
1586
  interface PreparedDeploymentUpload {
1768
1587
  expiresAt: string;
1769
1588
  files: Array<{
@@ -1774,12 +1593,14 @@ interface PreparedDeploymentUpload {
1774
1593
  }>;
1775
1594
  uploadId: string;
1776
1595
  }
1777
- interface IngestedDeploymentUpload {
1778
- artifactIdentifier: string;
1779
- externalTopicId: string;
1780
- sizeBytes: number;
1781
- uploadId: string;
1782
- }
1596
+
1597
+ /**
1598
+ * Parameters for `sdk.sandbox.run`. Pass the script as plain text; the SDK
1599
+ * base64-encodes it for transport.
1600
+ */
1601
+ type SandboxRunParams = Omit<SandboxRunRequest, 'script' | 'scriptB64' | 'scriptEncoding'> & {
1602
+ script: string;
1603
+ };
1783
1604
 
1784
1605
  interface ClientRegistrationRequest {
1785
1606
  /** Client name (required) */
@@ -1872,72 +1693,6 @@ interface OAuthTokenResponse {
1872
1693
  tokenType: string;
1873
1694
  }
1874
1695
 
1875
- /**
1876
- * Plugin item in the marketplace
1877
- * Represents a plugin as displayed in the marketplace listing.
1878
- */
1879
- interface PluginItem extends MarketItemBase {
1880
- /** Plugin capabilities */
1881
- capabilities: {
1882
- /** Whether the plugin provides custom prompts */
1883
- prompts: boolean;
1884
- /** Whether the plugin provides resources (assets) */
1885
- resources: boolean;
1886
- /** Whether the plugin provides tools (functions) */
1887
- tools: boolean;
1888
- };
1889
- /** Number of comments on this plugin */
1890
- commentCount?: number;
1891
- /** Connection type strategy for communicating with the plugin */
1892
- connectionType?: PluginConnectionType;
1893
- /** GitHub repository information */
1894
- github?: {
1895
- language?: string;
1896
- license?: string;
1897
- stars?: number;
1898
- url: string;
1899
- };
1900
- /** Number of installations */
1901
- installCount?: number;
1902
- /** Installation method required by the plugin's recommended deployment option */
1903
- installationMethods?: string;
1904
- /** Whether this plugin has been claimed by its original author */
1905
- isClaimed?: boolean;
1906
- /** Whether the plugin is featured */
1907
- isFeatured?: boolean;
1908
- /** Whether this plugin is officially maintained by LobeHub */
1909
- isOfficial?: boolean;
1910
- /** Whether this plugin has been validated */
1911
- isValidated?: boolean;
1912
- /** Number of prompts provided by this plugin */
1913
- promptsCount?: number;
1914
- /** Average rating (typically 1-5 scale) */
1915
- ratingAverage?: number;
1916
- /** Number of ratings received */
1917
- ratingCount?: number;
1918
- /** Number of resources provided by this plugin */
1919
- resourcesCount?: number;
1920
- /** Number of tools provided by this plugin */
1921
- toolsCount?: number;
1922
- }
1923
- /**
1924
- * Response structure for plugin listing endpoints
1925
- * Contains both the plugin items and pagination/filtering metadata.
1926
- */
1927
- interface PluginListResponse {
1928
- /** Available categories for filtering */
1929
- categories: string[];
1930
- /** Current page number (1-based) */
1931
- currentPage: number;
1932
- /** Array of plugin items for the current page */
1933
- items: PluginItem[];
1934
- /** Number of items per page */
1935
- pageSize: number;
1936
- /** Total number of items across all pages */
1937
- totalCount: number;
1938
- /** Total number of pages */
1939
- totalPages: number;
1940
- }
1941
1696
  /**
1942
1697
  * Query parameters for plugin listing
1943
1698
  * Used to filter, sort, and paginate plugin results.
@@ -1969,7 +1724,7 @@ interface PluginQueryParams {
1969
1724
  * internally by the server - sessions are automatically created when needed and
1970
1725
  * recreated if expired.
1971
1726
  */
1972
- type CodeInterpreterToolName = 'editLocalFile' | 'executeCode' | 'exportFile' | 'getCommandOutput' | 'globLocalFiles' | 'grepContent' | 'killCommand' | 'listLocalFiles' | 'moveLocalFiles' | 'readLocalFile' | 'renameLocalFile' | 'runCommand' | 'searchLocalFiles' | 'writeLocalFile';
1727
+ type CodeInterpreterToolName = 'editLocalFile' | 'execScript' | 'executeCode' | 'exportFile' | 'getCommandOutput' | 'globLocalFiles' | 'grepContent' | 'killCommand' | 'listLocalFiles' | 'moveLocalFiles' | 'readLocalFile' | 'renameLocalFile' | 'runCommand' | 'searchLocalFiles' | 'writeLocalFile';
1973
1728
  /**
1974
1729
  * Request for RunBuildInTools API
1975
1730
  *
@@ -1986,6 +1741,45 @@ interface RunBuildInToolsRequest {
1986
1741
  paramsB64?: string;
1987
1742
  /** Encoding used for `paramsB64`. Omitted means `params` carries plain JSON. */
1988
1743
  paramsEncoding?: 'base64';
1744
+ /**
1745
+ * Subdirectory of the persistent workspace this call runs in, relative to its
1746
+ * root (e.g. `drafts/report`). Relative paths in the tool params resolve
1747
+ * against it and shell commands run there.
1748
+ *
1749
+ * Must be a relative path that stays inside the workspace: no leading `/` or
1750
+ * `~`, and no `.`, `..` or empty segments. A value that does not resolve
1751
+ * inside the workspace is rejected rather than ignored, so a bad one fails
1752
+ * loudly instead of silently writing to the workspace root. Meaningless
1753
+ * without a persistent workspace, where there is nothing to be relative to.
1754
+ */
1755
+ sandboxCwd?: string;
1756
+ /**
1757
+ * Environment instance the topic runs (LobeHub's instance id) — its installed
1758
+ * toolchain, carried between sessions. The runtime binds a session to
1759
+ * whichever instance its *first* call names, so the same value has to travel
1760
+ * with every call for a topic.
1761
+ */
1762
+ sandboxInstanceId?: string;
1763
+ /**
1764
+ * Which sandbox this call runs in. Honoured only for a caller whose trust
1765
+ * token carries a workspace entitlement; everyone else gets the throwaway
1766
+ * sandbox whatever they ask for.
1767
+ *
1768
+ * The same value has to travel with every call for a given topic: naming the
1769
+ * throwaway runtime on a topic that is already persistent tears its existing
1770
+ * sandbox down.
1771
+ */
1772
+ sandboxMode?: SandboxMode;
1773
+ /**
1774
+ * The instance's environment specification (LOBE-14206), forwarded to the
1775
+ * runtime unchanged. Structural only: market does not interpret it.
1776
+ */
1777
+ sandboxSpecification?: Record<string, unknown>;
1778
+ /**
1779
+ * Absolute working directory on the sandbox's local disk, under `/root/work/`
1780
+ * (LOBE-14206). Mutually exclusive with `sandboxCwd`; not charged to quota.
1781
+ */
1782
+ sandboxWorkingDir?: string;
1989
1783
  /** Tool name to execute */
1990
1784
  toolName: CodeInterpreterToolName;
1991
1785
  /** Topic/conversation ID for session isolation */
@@ -1993,6 +1787,31 @@ interface RunBuildInToolsRequest {
1993
1787
  /** User ID for session isolation */
1994
1788
  userId: string;
1995
1789
  }
1790
+ /**
1791
+ * What a built-in tool call needs to know about the topic it belongs to.
1792
+ *
1793
+ * Shared by `runBuildInTool` and every convenience wrapper, so a caller cannot
1794
+ * reach a sandbox-selecting field through one entry point and not another:
1795
+ * naming `sandboxMode` on a topic that is already persistent routes the call to
1796
+ * the throwaway runtime, which tears the existing sandbox down — the same value
1797
+ * has to travel with every call for a given topic.
1798
+ */
1799
+ interface RunBuildInToolsContext {
1800
+ /** See {@link RunBuildInToolsRequest.sandboxCwd}. */
1801
+ sandboxCwd?: string;
1802
+ /** See {@link RunBuildInToolsRequest.sandboxInstanceId}. */
1803
+ sandboxInstanceId?: string;
1804
+ /** See {@link RunBuildInToolsRequest.sandboxMode}. */
1805
+ sandboxMode?: SandboxMode;
1806
+ /** See {@link RunBuildInToolsRequest.sandboxSpecification}. */
1807
+ sandboxSpecification?: Record<string, unknown>;
1808
+ /** See {@link RunBuildInToolsRequest.sandboxWorkingDir}. */
1809
+ sandboxWorkingDir?: string;
1810
+ /** Topic/conversation ID for session isolation */
1811
+ topicId: string;
1812
+ /** User ID for session isolation */
1813
+ userId: string;
1814
+ }
1996
1815
  /**
1997
1816
  * Success response data from RunBuildInTools
1998
1817
  */
@@ -2039,13 +1858,32 @@ interface ExecuteCodeParams {
2039
1858
  }
2040
1859
  /** Parameters for runCommand tool */
2041
1860
  interface RunCommandParams {
2042
- /** Whether to run in background */
1861
+ /** Request native background execution; unsupported providers return an error. */
2043
1862
  background?: boolean;
2044
1863
  /** Command to execute */
2045
1864
  command: string;
1865
+ /** Explicitly identify an lh hetero exec launch for credential injection. */
1866
+ heteroExec?: boolean;
2046
1867
  /** Timeout in milliseconds */
2047
1868
  timeout?: number;
2048
1869
  }
1870
+ /** Parameters for executing a command with optional skill package extraction. */
1871
+ interface ExecScriptParams {
1872
+ /** Shell command to execute */
1873
+ command: string;
1874
+ /** Skill configuration context */
1875
+ config?: {
1876
+ description?: string;
1877
+ id?: string;
1878
+ name?: string;
1879
+ };
1880
+ /** Description of the command */
1881
+ description?: string;
1882
+ /** Skill names mapped to package ZIP URLs */
1883
+ skillZipUrls?: Record<string, string>;
1884
+ /** URL of a single skill package ZIP */
1885
+ zipUrl?: string;
1886
+ }
2049
1887
  /** Parameters for getCommandOutput tool */
2050
1888
  interface GetCommandOutputParams {
2051
1889
  /** Background command ID */
@@ -2152,6 +1990,7 @@ interface ExportFileParams {
2152
1990
  */
2153
1991
  interface CodeInterpreterToolParams {
2154
1992
  editLocalFile: EditLocalFileParams;
1993
+ execScript: ExecScriptParams;
2155
1994
  executeCode: ExecuteCodeParams;
2156
1995
  exportFile: ExportFileParams;
2157
1996
  getCommandOutput: GetCommandOutputParams;
@@ -2275,6 +2114,22 @@ interface PluginCommentReactionResponse {
2275
2114
  type: string;
2276
2115
  }
2277
2116
 
2117
+ /**
2118
+ * Persistent sandbox storage types.
2119
+ *
2120
+ * Every `path` in this API is relative to the storage root — the absolute
2121
+ * mount path inside the sandbox stays a server-side detail.
2122
+ */
2123
+
2124
+ /**
2125
+ * Topic whose sandbox session backs a storage call. Pass the topic the user
2126
+ * is already working in to reuse its warm sandbox; omit it to use a dedicated
2127
+ * management session, which may have to start one first.
2128
+ */
2129
+ interface SandboxStorageRequestContext {
2130
+ topicId?: string;
2131
+ }
2132
+
2278
2133
  /**
2279
2134
  * Connect Types for LobeHub Market SDK
2280
2135
  *
@@ -2696,6 +2551,30 @@ interface SkillCallParams {
2696
2551
  * Arguments to pass to the tool
2697
2552
  */
2698
2553
  args?: Record<string, unknown>;
2554
+ /**
2555
+ * Subdirectory of the workspace the topic works in — the same value its
2556
+ * built-in tool calls send, so a `gh repo clone` and a later `readLocalFile`
2557
+ * land in the same place.
2558
+ */
2559
+ sandboxCwd?: string;
2560
+ /**
2561
+ * Environment instance the CLI session runs. Same value the topic's tool
2562
+ * calls send — a CLI call is often what creates the session, and the runtime
2563
+ * binds it to the first instance it sees.
2564
+ */
2565
+ sandboxInstanceId?: string;
2566
+ /**
2567
+ * Which sandbox a CLI-based provider runs in. Same meaning as on
2568
+ * `runBuildInTools`, and it has to carry the same value for a given topic:
2569
+ * the topic has one sandbox, so a CLI call that disagrees about the runtime
2570
+ * tears down the sandbox the built-in tools are using, losing its installs,
2571
+ * its logins and anything written outside the workspace.
2572
+ */
2573
+ sandboxMode?: SandboxMode;
2574
+ /** See {@link RunBuildInToolsRequest.sandboxSpecification}. */
2575
+ sandboxSpecification?: Record<string, unknown>;
2576
+ /** See {@link RunBuildInToolsRequest.sandboxWorkingDir}. */
2577
+ sandboxWorkingDir?: string;
2699
2578
  /**
2700
2579
  * Name of the tool to call
2701
2580
  */
@@ -4464,6 +4343,8 @@ interface AdminAgentListQueryParams extends AdminListQueryParams {
4464
4343
  * Agent update parameters
4465
4344
  */
4466
4345
  interface AgentUpdateParams {
4346
+ /** Omit to preserve; null or an empty string clears the image on the entity and current version. */
4347
+ avatar?: string | null;
4467
4348
  /** Official homepage or repository URL for the agent */
4468
4349
  homepage?: string | null;
4469
4350
  /** Unique identifier for the agent */
@@ -4482,33 +4363,14 @@ interface AgentUpdateParams {
4482
4363
  visibility?: 'public' | 'private' | 'internal';
4483
4364
  }
4484
4365
  /**
4485
- * Mutable Agent version fields exposed by the admin API.
4366
+ * Optional cloud Agent version fields, including arbitrary config and A2A metadata.
4486
4367
  */
4487
- interface AgentVersionUpdateParams {
4488
- a2aProtocolVersion?: string;
4489
- avatar?: string;
4490
- category?: null | string;
4491
- config?: Record<string, unknown>;
4492
- defaultInputModes?: string[];
4493
- defaultOutputModes?: string[];
4494
- description?: string;
4495
- documentationUrl?: null | string;
4496
- editorData?: null | Record<string, unknown>;
4497
- examples?: null | unknown[];
4498
- extensions?: null | unknown[];
4499
- hasPushNotifications?: boolean;
4500
- hasStateTransitionHistory?: boolean;
4501
- hasStreaming?: boolean;
4502
- interfaces?: null | unknown[];
4503
- name?: string;
4504
- preferredTransport?: string;
4505
- securityRequirements?: null | unknown[];
4506
- securitySchemes?: null | Record<string, unknown>;
4507
- summary?: null | string;
4508
- supportsAuthenticatedExtendedCard?: boolean;
4509
- tags?: null | string[];
4510
- url?: string;
4511
- }
4368
+ type AgentVersionUpdateParams = AdminAgentVersionUpdateInput;
4369
+ /**
4370
+ * Agent version creation parameters. Unspecified A2A-level fields are
4371
+ * inherited from the version the agent currently points to.
4372
+ */
4373
+ type AgentVersionCreateParams = AdminAgentVersionCreateInput;
4512
4374
  /**
4513
4375
  * Agent version mutation response.
4514
4376
  */
@@ -4547,12 +4409,14 @@ interface AgentVersionByStatusItem {
4547
4409
  */
4548
4410
  declare class AgentService$1 extends BaseSDK {
4549
4411
  /**
4550
- * Creates an Agent and its current initial version atomically.
4412
+ * Creates a cloud Agent and its current initial version, including required A2A metadata.
4551
4413
  */
4552
- createAgent(data: AdminAgentCreate): Promise<AdminAgentCreateResponse>;
4414
+ createAgent(data: AdminAgentCreateInput): Promise<AdminAgentCreateResponse>;
4553
4415
  /**
4554
4416
  * Retrieves a list of agents with admin details
4555
4417
  *
4418
+ * Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
4419
+ *
4556
4420
  * Supports filtering, pagination, and sorting of results.
4557
4421
  *
4558
4422
  * @param params - Query parameters for filtering and pagination
@@ -4607,6 +4471,15 @@ declare class AgentService$1 extends BaseSDK {
4607
4471
  * @returns Promise resolving to the updated Agent version
4608
4472
  */
4609
4473
  updateAgentVersion(id: number | string, version: string, data: AgentVersionUpdateParams): Promise<AdminAgentVersion>;
4474
+ /**
4475
+ * Creates a new version for an existing agent, inheriting A2A-level fields
4476
+ * from the version the agent currently points to.
4477
+ *
4478
+ * @param id - Agent ID or identifier
4479
+ * @param data - Version creation parameters (version string required)
4480
+ * @returns Promise resolving to the created Agent version
4481
+ */
4482
+ createAgentVersion(id: number | string, data: AgentVersionCreateParams): Promise<AdminAgentVersion>;
4610
4483
  /**
4611
4484
  * Updates agent publication status
4612
4485
  *
@@ -4936,6 +4809,8 @@ declare class PluginService extends BaseSDK {
4936
4809
  /**
4937
4810
  * Retrieves a list of plugins with admin details
4938
4811
  *
4812
+ * Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
4813
+ *
4939
4814
  * Supports filtering, pagination, and sorting of results.
4940
4815
  *
4941
4816
  * @param params - Query parameters for filtering and pagination
@@ -5134,7 +5009,9 @@ declare class PluginService extends BaseSDK {
5134
5009
  createDeploymentOption(pluginId: number, versionId: number, data: {
5135
5010
  connectionArgs?: string[];
5136
5011
  connectionCommand?: string;
5012
+ connectionConfigSchema?: Record<string, unknown>;
5137
5013
  connectionType: string;
5014
+ connectionUrl?: string;
5138
5015
  description?: string;
5139
5016
  installationDetails?: InstallationDetails;
5140
5017
  installationMethod: string;
@@ -5150,10 +5027,11 @@ declare class PluginService extends BaseSDK {
5150
5027
  * @returns Promise resolving to the updated deployment option
5151
5028
  */
5152
5029
  updateDeploymentOption(pluginId: number, versionId: number, optionId: number, data: {
5153
- configSchema?: Record<string, any>;
5154
5030
  connectionArgs?: string[];
5155
5031
  connectionCommand?: string;
5032
+ connectionConfigSchema?: Record<string, unknown>;
5156
5033
  connectionType?: string;
5034
+ connectionUrl?: string;
5157
5035
  description?: string;
5158
5036
  installationDetails?: Record<string, any>;
5159
5037
  installationMethod?: string;
@@ -5260,23 +5138,6 @@ declare class SystemDependencyService extends BaseSDK {
5260
5138
  }>;
5261
5139
  }
5262
5140
 
5263
- /**
5264
- * Settings entity representing a system setting
5265
- */
5266
- interface Settings {
5267
- /** Creation timestamp (ISO 8601 format) */
5268
- createdAt: string;
5269
- /** Optional description of the setting's purpose */
5270
- description?: string;
5271
- /** Unique identifier for the setting */
5272
- id: number;
5273
- /** Setting key name used for retrieving the setting */
5274
- key: string;
5275
- /** Last update timestamp (ISO 8601 format) */
5276
- updatedAt: string;
5277
- /** Setting value (stored as string) */
5278
- value: string;
5279
- }
5280
5141
  /**
5281
5142
  * Configuration for enabled resource types
5282
5143
  */
@@ -5331,8 +5192,8 @@ interface CreateSettingsParams {
5331
5192
  description?: string;
5332
5193
  /** Setting key name */
5333
5194
  key: string;
5334
- /** Setting value (will be stored as string) */
5335
- value: string;
5195
+ /** JSON setting value */
5196
+ value: unknown;
5336
5197
  }
5337
5198
  /**
5338
5199
  * Parameters for updating an existing setting
@@ -5341,7 +5202,7 @@ interface UpdateSettingsParams {
5341
5202
  /** Optional new description */
5342
5203
  description?: string;
5343
5204
  /** New setting value */
5344
- value: string;
5205
+ value: unknown;
5345
5206
  }
5346
5207
  /**
5347
5208
  * Settings Management Service
@@ -5366,18 +5227,14 @@ declare class SettingsService extends BaseSDK {
5366
5227
  * @param key - Setting key name
5367
5228
  * @returns Promise resolving to the setting details
5368
5229
  */
5369
- getSettingByKey(key: string): Promise<{
5370
- data: Settings;
5371
- }>;
5230
+ getSettingByKey(key: string): Promise<Record<string, unknown>>;
5372
5231
  /**
5373
5232
  * Creates a new system setting
5374
5233
  *
5375
5234
  * @param data - Setting creation parameters
5376
5235
  * @returns Promise resolving to the created setting
5377
5236
  */
5378
- createSetting(data: CreateSettingsParams): Promise<{
5379
- data: Settings;
5380
- }>;
5237
+ createSetting(data: CreateSettingsParams): Promise<Record<string, unknown>>;
5381
5238
  /**
5382
5239
  * Updates an existing setting
5383
5240
  *
@@ -5385,9 +5242,7 @@ declare class SettingsService extends BaseSDK {
5385
5242
  * @param data - Setting update parameters
5386
5243
  * @returns Promise resolving to the updated setting
5387
5244
  */
5388
- updateSetting(key: string, data: UpdateSettingsParams): Promise<{
5389
- data: Settings;
5390
- }>;
5245
+ updateSetting(key: string, data: UpdateSettingsParams): Promise<Record<string, unknown>>;
5391
5246
  /**
5392
5247
  * Deletes a setting
5393
5248
  *
@@ -5496,6 +5351,8 @@ declare class SkillCollectionService extends BaseSDK {
5496
5351
  interface ImportSkillPackageOptions {
5497
5352
  /** Filename sent with the multipart upload when `file` is a plain Blob */
5498
5353
  filename?: string;
5354
+ /** Omit to preserve the image; null clears it. */
5355
+ icon?: string | null;
5499
5356
  /** Optional skill identifier override */
5500
5357
  identifier?: string;
5501
5358
  }
@@ -5503,9 +5360,27 @@ interface ImportSkillPackageOptions {
5503
5360
  * Administrative skill management methods.
5504
5361
  */
5505
5362
  declare class SkillService$1 extends BaseSDK {
5363
+ /** Create a manual Skill. Self-hosted category names resolve to directory identifiers. */
5364
+ createSkill(data: AdminSkillCreateRequest): Promise<AdminSkillUpdateResponse>;
5365
+ /** Import a GitHub Skill; omit icon to preserve it, or pass null to clear it. */
5366
+ importFromGitHub(data: AdminSkillGitHubImportRequest): Promise<AdminSkillImportResponse>;
5367
+ /** Retrieve raw Admin detail and image metadata for editing. */
5368
+ getSkill(id: number): Promise<AdminSkillDetail>;
5369
+ /**
5370
+ * Update publication settings and the current version's category atomically.
5371
+ *
5372
+ * @param id - Skill database ID
5373
+ * @param data - Omit category to preserve it, or pass null to clear it
5374
+ * Self-hosted categories accept directory identifiers or unique names; unknown names return 400.
5375
+ * @returns Updated Skill metadata; read the category through the Skill detail endpoint
5376
+ * @throws If the Skill does not exist, or category is supplied without a current version
5377
+ */
5378
+ updateSkill(id: number, data: AdminSkillUpdateRequest): Promise<AdminSkillUpdateResponse>;
5506
5379
  /**
5507
5380
  * Retrieve Skills with Admin API status and visibility fields.
5508
5381
  *
5382
+ * Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
5383
+ *
5509
5384
  * @param params - Query parameters for filtering and pagination
5510
5385
  * @returns Paginated Skill list
5511
5386
  */
@@ -5706,6 +5581,44 @@ declare class OrganizationService$1 extends BaseSDK {
5706
5581
  }>;
5707
5582
  }
5708
5583
 
5584
+ /** Enterprise-only category CRUD and atomic asset reassignment (MARKET_SELF_HOSTED=true). */
5585
+ declare class CategoryService$1 extends BaseSDK {
5586
+ /** Lists categories and counts assets referencing them in any version. */
5587
+ list(params: AssetCategoryAdminListQuery): Promise<AssetCategoryAdminList>;
5588
+ /** Creates a category with a server-generated stable identifier. */
5589
+ create(assetType: AssetCategoryType, data: AssetCategoryCreate): Promise<AssetCategory>;
5590
+ /** Updates presentation fields; icon: null clears the image, omission preserves it. */
5591
+ update(assetType: AssetCategoryType, identifier: string, data: AssetCategoryUpdate): Promise<AssetCategory>;
5592
+ /** Deletes up to 200 categories and reassigns or clears all affected asset versions atomically. */
5593
+ delete(assetType: AssetCategoryType, data: AssetCategoryDelete): Promise<{
5594
+ success: boolean;
5595
+ }>;
5596
+ }
5597
+
5598
+ declare class SandboxSessionService extends BaseSDK {
5599
+ list(params?: AdminSandboxSessionQuery): Promise<AdminSandboxSessionList>;
5600
+ get(id: number): Promise<{
5601
+ data: AdminSandboxSession;
5602
+ }>;
5603
+ related(id: number, params?: {
5604
+ current?: number;
5605
+ pageSize?: number;
5606
+ }): Promise<AdminSandboxSessionList>;
5607
+ }
5608
+
5609
+ declare class SandboxStorageService$1 extends BaseSDK {
5610
+ measure(key: string): Promise<{
5611
+ status: 'success' | 'failed' | 'running' | 'superseded';
5612
+ }>;
5613
+ efs(): Promise<{
5614
+ data: AdminSandboxEfsUsage;
5615
+ }>;
5616
+ list(params?: AdminSandboxStorageQuery): Promise<AdminSandboxStorageList>;
5617
+ get(key: string): Promise<{
5618
+ data: AdminSandboxStorage;
5619
+ }>;
5620
+ }
5621
+
5709
5622
  /**
5710
5623
  * LobeHub Market Admin SDK Client
5711
5624
  *
@@ -5714,6 +5627,9 @@ declare class OrganizationService$1 extends BaseSDK {
5714
5627
  * system settings, and dependencies. It requires admin-level authentication.
5715
5628
  */
5716
5629
  declare class MarketAdmin extends BaseSDK {
5630
+ readonly sandboxStorage: SandboxStorageService$1;
5631
+ readonly sandboxSessions: SandboxSessionService;
5632
+ readonly categories: CategoryService$1;
5717
5633
  /**
5718
5634
  * Agent management service
5719
5635
  * Provides methods for creating, updating, and managing agents
@@ -5817,6 +5733,8 @@ declare class AgentService extends BaseSDK {
5817
5733
  /**
5818
5734
  * Retrieves a list of agents from the marketplace
5819
5735
  *
5736
+ * Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
5737
+ *
5820
5738
  * Supports filtering, pagination, and localization of results.
5821
5739
  *
5822
5740
  * @param params - Query parameters for filtering and pagination
@@ -6872,6 +6790,8 @@ declare class PluginsService extends BaseSDK {
6872
6790
  /**
6873
6791
  * Retrieves a list of plugins from the marketplace
6874
6792
  *
6793
+ * Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
6794
+ *
6875
6795
  * Supports filtering, pagination, and localization of results.
6876
6796
  *
6877
6797
  * @param params - Query parameters for filtering and pagination
@@ -7028,10 +6948,7 @@ declare class PluginsService extends BaseSDK {
7028
6948
  * );
7029
6949
  * ```
7030
6950
  */
7031
- runBuildInTool<T extends CodeInterpreterToolName>(toolName: T, params: CodeInterpreterToolParams[T], context: {
7032
- topicId: string;
7033
- userId: string;
7034
- }, options?: globalThis.RequestInit): Promise<RunBuildInToolsResponse>;
6951
+ runBuildInTool<T extends CodeInterpreterToolName>(toolName: T, params: CodeInterpreterToolParams[T], context: RunBuildInToolsContext, options?: globalThis.RequestInit): Promise<RunBuildInToolsResponse>;
7035
6952
  /**
7036
6953
  * Execute a shell command in the Code Interpreter sandbox
7037
6954
  *
@@ -7040,10 +6957,7 @@ declare class PluginsService extends BaseSDK {
7040
6957
  * @param options - Additional options (background, timeout)
7041
6958
  * @returns Promise resolving to command execution result
7042
6959
  */
7043
- runCommand(command: string, context: {
7044
- topicId: string;
7045
- userId: string;
7046
- }, options?: {
6960
+ runCommand(command: string, context: RunBuildInToolsContext, options?: {
7047
6961
  background?: boolean;
7048
6962
  timeout?: number;
7049
6963
  }): Promise<RunBuildInToolsResponse>;
@@ -7055,10 +6969,7 @@ declare class PluginsService extends BaseSDK {
7055
6969
  * @param options - Line range options (startLine, endLine)
7056
6970
  * @returns Promise resolving to file content
7057
6971
  */
7058
- readFile(path: string, context: {
7059
- topicId: string;
7060
- userId: string;
7061
- }, options?: {
6972
+ readFile(path: string, context: RunBuildInToolsContext, options?: {
7062
6973
  endLine?: number;
7063
6974
  startLine?: number;
7064
6975
  }): Promise<RunBuildInToolsResponse>;
@@ -7071,10 +6982,7 @@ declare class PluginsService extends BaseSDK {
7071
6982
  * @param options - Additional options (createDirectories)
7072
6983
  * @returns Promise resolving to write result
7073
6984
  */
7074
- writeFile(path: string, content: string, context: {
7075
- topicId: string;
7076
- userId: string;
7077
- }, options?: {
6985
+ writeFile(path: string, content: string, context: RunBuildInToolsContext, options?: {
7078
6986
  createDirectories?: boolean;
7079
6987
  }): Promise<RunBuildInToolsResponse>;
7080
6988
  /**
@@ -7084,10 +6992,7 @@ declare class PluginsService extends BaseSDK {
7084
6992
  * @param context - User and topic context
7085
6993
  * @returns Promise resolving to directory listing
7086
6994
  */
7087
- listFiles(directoryPath: string, context: {
7088
- topicId: string;
7089
- userId: string;
7090
- }): Promise<RunBuildInToolsResponse>;
6995
+ listFiles(directoryPath: string, context: RunBuildInToolsContext): Promise<RunBuildInToolsResponse>;
7091
6996
  /**
7092
6997
  * Search for files matching a glob pattern
7093
6998
  *
@@ -7096,10 +7001,7 @@ declare class PluginsService extends BaseSDK {
7096
7001
  * @param directory - Base directory (optional)
7097
7002
  * @returns Promise resolving to matching files
7098
7003
  */
7099
- globFiles(pattern: string, context: {
7100
- topicId: string;
7101
- userId: string;
7102
- }, directory?: string): Promise<RunBuildInToolsResponse>;
7004
+ globFiles(pattern: string, context: RunBuildInToolsContext, directory?: string): Promise<RunBuildInToolsResponse>;
7103
7005
  /**
7104
7006
  * Search file contents using regex pattern
7105
7007
  *
@@ -7109,10 +7011,7 @@ declare class PluginsService extends BaseSDK {
7109
7011
  * @param options - Additional options (filePattern, recursive)
7110
7012
  * @returns Promise resolving to grep results
7111
7013
  */
7112
- grepContent(pattern: string, directory: string, context: {
7113
- topicId: string;
7114
- userId: string;
7115
- }, options?: {
7014
+ grepContent(pattern: string, directory: string, context: RunBuildInToolsContext, options?: {
7116
7015
  filePattern?: string;
7117
7016
  recursive?: boolean;
7118
7017
  }): Promise<RunBuildInToolsResponse>;
@@ -7141,10 +7040,7 @@ declare class PluginsService extends BaseSDK {
7141
7040
  * }
7142
7041
  * ```
7143
7042
  */
7144
- exportFile(path: string, uploadUrl: string, context: {
7145
- topicId: string;
7146
- userId: string;
7147
- }): Promise<RunBuildInToolsResponse>;
7043
+ exportFile(path: string, uploadUrl: string, context: RunBuildInToolsContext): Promise<RunBuildInToolsResponse>;
7148
7044
  /**
7149
7045
  * Submits or updates a rating for a plugin
7150
7046
  *
@@ -7234,6 +7130,153 @@ declare class PluginsService extends BaseSDK {
7234
7130
  }>;
7235
7131
  }
7236
7132
 
7133
+ /**
7134
+ * One-shot sandbox runs (`POST /v1/sandbox/runs`), used by LobeHub widgets.
7135
+ *
7136
+ * Server-to-server: call with the app server's trusted-client token. The run is
7137
+ * attributed to the authenticated user/workspace; the request carries no
7138
+ * identity.
7139
+ */
7140
+ declare class SandboxService extends BaseSDK {
7141
+ /**
7142
+ * Run a script once in a fresh sandbox and return its output.
7143
+ *
7144
+ * A non-zero `exitCode` or `timedOut: true` is a normal result, not an error.
7145
+ * Non-2xx responses (validation, `rate_limited`, `sandbox_unavailable`, …)
7146
+ * throw like every other SDK call.
7147
+ *
7148
+ * @example
7149
+ * ```typescript
7150
+ * const result = await sdk.sandbox.run({
7151
+ * egress: {
7152
+ * allow: ['api.github.com'],
7153
+ * inject: [{ header: 'Authorization', host: 'api.github.com', prefix: 'Bearer ', secretRef: { key: 'github' } }],
7154
+ * },
7155
+ * runtime: 'node',
7156
+ * script: 'const r = await fetch("https://api.github.com/user"); console.log(JSON.stringify(await r.json()))',
7157
+ * subject: { id: widgetId, kind: 'widget' },
7158
+ * timeoutMs: 20_000,
7159
+ * });
7160
+ * ```
7161
+ */
7162
+ run(params: SandboxRunParams, options?: globalThis.RequestInit): Promise<SandboxRunResponse>;
7163
+ }
7164
+
7165
+ /**
7166
+ * Persistent sandbox storage management.
7167
+ *
7168
+ * The storage is the directory the caller's cloud sandbox sessions run in:
7169
+ * shared across their conversation topics and durable across sandbox
7170
+ * recycling. `current` addresses the caller's own storage, so a client never
7171
+ * has to derive the key itself.
7172
+ *
7173
+ * Every path is relative to the storage root (`reports/q3.md`, not
7174
+ * `/mnt/workspace/ws-.../reports/q3.md`).
7175
+ */
7176
+ declare class SandboxStorageService extends BaseSDK {
7177
+ /** Storage directory, quota and the last measured usage. */
7178
+ getStorage(key?: string, options?: globalThis.RequestInit): Promise<SandboxStorageInfo>;
7179
+ /**
7180
+ * Re-measure the storage size. Costs a sandbox round trip and walks the
7181
+ * whole directory, so call it on demand rather than on every render.
7182
+ */
7183
+ refreshUsage(key?: string, context?: SandboxStorageRequestContext, options?: globalThis.RequestInit): Promise<SandboxStorageInfo>;
7184
+ listFiles(params?: SandboxStorageRequestContext & {
7185
+ key?: string;
7186
+ path?: string;
7187
+ recursive?: boolean;
7188
+ }, options?: globalThis.RequestInit): Promise<SandboxStorageFileList>;
7189
+ readFile(params: SandboxStorageRequestContext & {
7190
+ key?: string;
7191
+ path: string;
7192
+ }, options?: globalThis.RequestInit): Promise<SandboxStorageFileContent>;
7193
+ writeFile(params: SandboxStorageRequestContext & {
7194
+ content: string;
7195
+ key?: string;
7196
+ path: string;
7197
+ }, options?: globalThis.RequestInit): Promise<SandboxStorageWriteResult>;
7198
+ /**
7199
+ * The storage's instances, newest first.
7200
+ *
7201
+ * Sizes come from the archives themselves rather than a cache, so they are
7202
+ * exact — but the call needs a live sandbox, so a cold start can take a few
7203
+ * seconds. Worth a loading state.
7204
+ */
7205
+ /**
7206
+ * One instance's run history, newest first: every session that ran it
7207
+ * and every build of it. Answered from the control plane alone, so it is
7208
+ * cheap — no sandbox is started. Page with the `nextBefore` it returns.
7209
+ */
7210
+ listInstanceSessions(instance: string, params?: {
7211
+ before?: string;
7212
+ key?: string;
7213
+ limit?: number;
7214
+ }, options?: globalThis.RequestInit): Promise<SandboxSessionList>;
7215
+ listInstances(params?: SandboxStorageRequestContext & {
7216
+ key?: string;
7217
+ }, options?: globalThis.RequestInit): Promise<SandboxInstanceList>;
7218
+ /** Copy an instance to a new identifier, for "start from this one". */
7219
+ copyInstance(params: SandboxStorageRequestContext & {
7220
+ /**
7221
+ * The copy's own directory, relative to the storage, when the source
7222
+ * keeps its work tree in one — never the source's (LOBE-14362).
7223
+ */
7224
+ instanceDir?: string;
7225
+ key?: string;
7226
+ name: string;
7227
+ to: string;
7228
+ }, options?: globalThis.RequestInit): Promise<{
7229
+ name: string;
7230
+ }>;
7231
+ /**
7232
+ * Stop the sandbox holding an instance and release it, instead of waiting for
7233
+ * the idle sweep. The sandbox is snapshotted first.
7234
+ *
7235
+ * Refused retryably with 503 `SNAPSHOT_IN_PROGRESS` while that snapshot is
7236
+ * still packing, and with 409 `INSTANCE_STARTING`, `INSTANCE_BUILDING` or
7237
+ * `INSTANCE_BUSY` while what holds it cannot be stopped yet. `stopped: false`
7238
+ * means nothing held the instance.
7239
+ */
7240
+ stopInstance(params: {
7241
+ key?: string;
7242
+ name: string;
7243
+ }, options?: globalThis.RequestInit): Promise<{
7244
+ stopped: boolean;
7245
+ }>;
7246
+ /**
7247
+ * Delete an instance.
7248
+ *
7249
+ * Refused with 409 `INSTANCE_IN_USE` while a live session is running it —
7250
+ * that session would write the archive back when it ends, so the delete would
7251
+ * appear to work and then silently undo itself.
7252
+ */
7253
+ deleteInstance(params: SandboxStorageRequestContext & {
7254
+ key?: string;
7255
+ name: string;
7256
+ }, options?: globalThis.RequestInit): Promise<{
7257
+ name: string;
7258
+ }>;
7259
+ /**
7260
+ * Create a directory, parents included.
7261
+ *
7262
+ * Idempotent: a directory that already exists is reported as created, so a
7263
+ * picker can call it without checking first.
7264
+ */
7265
+ createDirectory(params: SandboxStorageRequestContext & {
7266
+ key?: string;
7267
+ path: string;
7268
+ }, options?: globalThis.RequestInit): Promise<{
7269
+ path: string;
7270
+ }>;
7271
+ deleteFile(params: SandboxStorageRequestContext & {
7272
+ key?: string;
7273
+ path: string;
7274
+ recursive?: boolean;
7275
+ }, options?: globalThis.RequestInit): Promise<{
7276
+ path: string;
7277
+ }>;
7278
+ }
7279
+
7237
7280
  /**
7238
7281
  * Skill Service
7239
7282
  *
@@ -7372,6 +7415,8 @@ declare class MarketSkillService extends BaseSDK {
7372
7415
  /**
7373
7416
  * Retrieves a list of skills from the marketplace
7374
7417
  *
7418
+ * Set category to UNCATEGORIZED_CATEGORY to select assets with no assigned category.
7419
+ *
7375
7420
  * Supports filtering, pagination, search, and various sorting options
7376
7421
  * including GitHub stats (stars, forks, watchers). Locale localizes
7377
7422
  * descriptions and summaries, but the returned skill name stays canonical.
@@ -8548,6 +8593,12 @@ declare class UserPublishService extends BaseSDK {
8548
8593
  deletePluginLocalization(identifier: string, locale: string, version?: string, options?: globalThis.RequestInit): Promise<DeletePluginLocalizationResponse>;
8549
8594
  }
8550
8595
 
8596
+ /** Enterprise-only public category directory; no authentication is required (MARKET_SELF_HOSTED=true). */
8597
+ declare class CategoryService extends BaseSDK {
8598
+ /** Lists configured categories with nullable HTTP(S) image URLs or lucide:<name> icons and public asset counts, including empty categories. */
8599
+ list(assetType: AssetCategoryType, locale?: string): Promise<AssetCategoryItem[]>;
8600
+ }
8601
+
8551
8602
  /**
8552
8603
  * LobeHub Market SDK Client
8553
8604
  *
@@ -8557,6 +8608,11 @@ declare class UserPublishService extends BaseSDK {
8557
8608
  * by combining specialized domain services.
8558
8609
  */
8559
8610
  declare class MarketSDK extends BaseSDK {
8611
+ readonly categories: CategoryService;
8612
+ /** Anonymous WebP byte URL. No signed token or public bucket is required. */
8613
+ getAssetImageUrl(id: string): string;
8614
+ /** Anonymous SVG with a safely generated single initial; name must contain 1–255 characters. */
8615
+ getAssetInitialUrl(name: string): string;
8560
8616
  /**
8561
8617
  * Agent profile service for M2M agent identity management
8562
8618
  * Provides methods to view and update the current agent's profile
@@ -8591,11 +8647,22 @@ declare class MarketSDK extends BaseSDK {
8591
8647
  * Deployments service for direct hosted artifact uploads
8592
8648
  */
8593
8649
  readonly deployments: DeploymentService;
8650
+ /**
8651
+ * Sandbox service for one-shot widget script runs
8652
+ */
8653
+ readonly sandbox: SandboxService;
8594
8654
  /**
8595
8655
  * Plugins service for accessing plugin-related functionality
8596
8656
  * Provides methods to list, search, retrieve plugin information, and report installation attempts
8597
8657
  */
8598
8658
  readonly plugins: PluginsService;
8659
+ /**
8660
+ * Sandbox storage service for the caller's persistent sandbox directory.
8661
+ *
8662
+ * Inspects quota and usage, and lists, reads, writes and deletes files that
8663
+ * survive sandbox recycling and are shared across the user's topics.
8664
+ */
8665
+ readonly sandboxStorage: SandboxStorageService;
8599
8666
  /**
8600
8667
  * Organizations service for accessing organization-related functionality.
8601
8668
  * Provides methods to retrieve organization profiles and their published
@@ -8696,7 +8763,9 @@ declare class MarketAPIError extends Error {
8696
8763
  readonly code?: string;
8697
8764
  /** The full error response body */
8698
8765
  readonly errorBody?: any;
8699
- constructor(status: number, statusText: string, errorBody?: any);
8766
+ /** Validated trace ID returned by Market for correlating server-side diagnostics. */
8767
+ readonly traceId?: string;
8768
+ constructor(status: number, statusText: string, errorBody?: any, traceId?: string);
8700
8769
  /**
8701
8770
  * Check if this is a specific error code
8702
8771
  */
@@ -8723,6 +8792,34 @@ declare const SDK_VERSION = "0.31.3";
8723
8792
  */
8724
8793
  declare const SDK_USER_AGENT = "LobeHub-Market-SDK/0.31.3";
8725
8794
 
8795
+ /**
8796
+ * Trusted Client Token Utilities
8797
+ *
8798
+ * Provides encryption utilities for creating trusted client tokens
8799
+ * that can be used with the Market SDK.
8800
+ *
8801
+ * @example
8802
+ * ```typescript
8803
+ * import { createTrustedClientToken, TrustedClientPayload } from '@lobehub/market-sdk';
8804
+ *
8805
+ * const payload: TrustedClientPayload = {
8806
+ * userId: 'user_xxx',
8807
+ * clientId: 'lobechat-com',
8808
+ * email: 'user@example.com',
8809
+ * timestamp: Date.now(),
8810
+ * nonce: generateNonce(),
8811
+ * name: 'John Doe',
8812
+ * // Omit for the free tier; present for a plan that includes one.
8813
+ * sandboxStorage: { key: 'ws-user_xxx', quotaBytes: 2 * 1024 ** 3 },
8814
+ * };
8815
+ *
8816
+ * const token = createTrustedClientToken(payload, secret);
8817
+ *
8818
+ * // Use with MarketSDK
8819
+ * const sdk = new MarketSDK({ trustedClientToken: token });
8820
+ * ```
8821
+ */
8822
+
8726
8823
  /**
8727
8824
  * Trusted client payload structure
8728
8825
  */
@@ -8737,6 +8834,16 @@ interface TrustedClientPayload {
8737
8834
  name?: string;
8738
8835
  /** Random nonce for uniqueness */
8739
8836
  nonce: string;
8837
+ /**
8838
+ * Persistent sandbox entitlement for this caller, resolved from their plan.
8839
+ *
8840
+ * Market never derives this itself — it holds no subscription data — so a
8841
+ * token without it gets the throwaway sandbox, which is also what every
8842
+ * client predating the feature keeps getting. `key` must be the same
8843
+ * storage key used when rewriting tool paths client-side, or the caller
8844
+ * would address a different directory than its own tools do.
8845
+ */
8846
+ sandboxStorage?: SandboxStorageClaim | null;
8740
8847
  /** Unix timestamp in milliseconds when token was created */
8741
8848
  timestamp: number;
8742
8849
  /** Clerk user ID (format: user_xxx) */
@@ -8775,8 +8882,9 @@ declare function buildTrustedClientPayload(params: {
8775
8882
  email: string;
8776
8883
  emailVerified?: boolean;
8777
8884
  name?: string;
8885
+ sandboxStorage?: SandboxStorageClaim | null;
8778
8886
  userId: string;
8779
8887
  workspaceId?: string;
8780
8888
  }): TrustedClientPayload;
8781
8889
 
8782
- export { type AccountMeta, type AdminListQueryParams, type AdminListResponse, type AdminPluginParams, type AgentCreateRequest, type AgentCreateResponse, type AgentDetailQuery, type AgentExtension, type AgentForkItem, type AgentForkRequest, type AgentForkResponse, type AgentForkSourceResponse, type AgentForksResponse, type AgentGroupCreateRequest, type AgentGroupCreateResponse, type AgentGroupDetail, type AgentGroupDetailQuery, type AgentGroupForkItem, type AgentGroupForkRequest, type AgentGroupForkResponse, type AgentGroupForkSourceResponse, type AgentGroupForksResponse, type AgentGroupItem, type AgentGroupListQuery, type AgentGroupListResponse, type AgentGroupModifyRequest, type AgentGroupModifyResponse, type AgentGroupStatus, type AgentGroupStatusChangeResponse, type AgentGroupVersionCreateRequest, type AgentGroupVersionCreateResponse, type AgentInstallCountRequest, type AgentInstallCountResponse, type AgentInterface, type AgentItemDetail, type AgentListQuery, type AgentListResponse, type AgentModifyRequest, type AgentModifyResponse, type AgentProfileEntity, type AgentProfileResponse, type AgentSecurityRequirement, type AgentSecurityScheme, type AgentSkill, type AgentStatus, type AgentStatusChangeResponse, type AgentUploadRequest, type AgentUploadResponse, type AgentUploadVersion, type AgentVersionCreateRequest, type AgentVersionCreateResponse, type AgentVersionLocalization, type AgentVersionModifyRequest, type AgentVersionModifyResponse, type AuthorizationCodeTokenRequest, type AuthorizeParams, type AuthorizeResponse, type CallSkillToolResponse, type CheckFavoriteQuery, type CheckFavoriteResponse, type CheckFollowQuery, type CheckFollowResponse, type CheckLikeQuery, type CheckLikeResponse, type 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 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 IngestedDeploymentUpload, 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 PluginItem, type PluginLatestOwnComment, type PluginListResponse, type PluginLocalization, type PluginQueryParams, type PluginRatingDistribution, type PluginUpdateParams, type PluginVersionCreateParams, type PluginVersionUpdateParams, type PrepareDeploymentUploadRequest, 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 RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, SDK_USER_AGENT, SDK_VERSION, 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 };
8890
+ 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 SandboxRunParams, 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 };