@lobehub/market-sdk 0.46.1 → 0.48.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 +183 -6
- package/dist/index.mjs +631 -423
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, AdminSandboxStorageWorkspaceQuery, AdminSandboxStorageWorkspaceList, 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, SandboxRunClaim, SandboxStorageClaim } 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, ListingTakedownRequest, ListingTakedownResult, ListingRestoreResult, 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, AdminSandboxStorageWorkspaceQuery, AdminSandboxStorageWorkspaceList, AdminSandboxStorage, AssetAccessCheckItem, AssetAccessCheckResponse, 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, SandboxStorageExportRequest, SandboxStorageExportResult, SandboxStorageAnalysisRequest, SandboxStorageAnalysis, SandboxStorageDeletePathsRequest, SandboxStorageDeletePathsResult, SandboxSessionList, SandboxInstanceList, MyOrganizationItem, CreateOrganizationRequest, CreateOrganizationResponse, UpdateOrganizationRequest, OrganizationItem, OrganizationMemberItem, OrganizationMemberRole, AddMemberResponse, UpdateMemberRoleResponse, ReconcileMembersRequest, ReconcileMembersResponse, AssetCategoryItem, SandboxRunClaim, SandboxStorageClaim } from '@lobehub/market-types';
|
|
2
2
|
export * 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';
|
|
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, SandboxStorageAnalysis, SandboxStorageAnalysisItem, SandboxStorageAnalysisRequest, SandboxStorageAnalysisResult, SandboxStorageAnalysisStatus, SandboxStorageCategory, SandboxStorageCategoryUsage, SandboxStorageClaim, SandboxStorageDeletePathsRequest, SandboxStorageDeletePathsResult, SandboxStorageExportRequest, SandboxStorageExportResult, 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
|
|
|
@@ -1752,7 +1752,7 @@ interface PluginQueryParams {
|
|
|
1752
1752
|
* internally by the server - sessions are automatically created when needed and
|
|
1753
1753
|
* recreated if expired.
|
|
1754
1754
|
*/
|
|
1755
|
-
type CodeInterpreterToolName = 'editLocalFile' | 'execScript' | 'executeCode' | 'exportFile' | 'getCommandOutput' | 'globLocalFiles' | 'grepContent' | 'killCommand' | 'listLocalFiles' | 'moveLocalFiles' | 'readLocalFile' | 'renameLocalFile' | 'runCommand' | 'searchLocalFiles' | 'writeLocalFile';
|
|
1755
|
+
type CodeInterpreterToolName = 'analyzeStorage' | 'deleteFiles' | 'editLocalFile' | 'execScript' | 'executeCode' | 'exportFile' | 'getCommandOutput' | 'globLocalFiles' | 'grepContent' | 'killCommand' | 'listLocalFiles' | 'moveLocalFiles' | 'readLocalFile' | 'renameLocalFile' | 'runCommand' | 'searchLocalFiles' | 'writeLocalFile';
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Request for RunBuildInTools API
|
|
1758
1758
|
*
|
|
@@ -2013,10 +2013,33 @@ interface ExportFileParams {
|
|
|
2013
2013
|
/** Pre-signed upload URL to upload the file to */
|
|
2014
2014
|
uploadUrl: string;
|
|
2015
2015
|
}
|
|
2016
|
+
/**
|
|
2017
|
+
* Parameters for analyzeStorage: what takes the space on the persistent drive.
|
|
2018
|
+
* Served off the volume without a sandbox, and allowed over quota.
|
|
2019
|
+
*/
|
|
2020
|
+
interface AnalyzeStorageParams {
|
|
2021
|
+
/** How many of the largest items to return (default 20, at most 200). */
|
|
2022
|
+
top?: number;
|
|
2023
|
+
}
|
|
2024
|
+
/**
|
|
2025
|
+
* Parameters for deleteFiles: irreversibly delete paths of the persistent
|
|
2026
|
+
* drive. Served off the volume without a sandbox, and allowed over quota.
|
|
2027
|
+
*/
|
|
2028
|
+
interface DeleteFilesParams {
|
|
2029
|
+
/** Absolute, or relative to the call's working directory; inside the drive (1..100). */
|
|
2030
|
+
paths: string[];
|
|
2031
|
+
/**
|
|
2032
|
+
* Refuse the whole call, deleting nothing, unless every path is
|
|
2033
|
+
* dependencies, a cache or build output.
|
|
2034
|
+
*/
|
|
2035
|
+
regenerableOnly?: boolean;
|
|
2036
|
+
}
|
|
2016
2037
|
/**
|
|
2017
2038
|
* Map of tool names to their parameter types
|
|
2018
2039
|
*/
|
|
2019
2040
|
interface CodeInterpreterToolParams {
|
|
2041
|
+
analyzeStorage: AnalyzeStorageParams;
|
|
2042
|
+
deleteFiles: DeleteFilesParams;
|
|
2020
2043
|
editLocalFile: EditLocalFileParams;
|
|
2021
2044
|
execScript: ExecScriptParams;
|
|
2022
2045
|
executeCode: ExecuteCodeParams;
|
|
@@ -2268,6 +2291,17 @@ interface GetClientMetadataParams {
|
|
|
2268
2291
|
*/
|
|
2269
2292
|
version?: string;
|
|
2270
2293
|
}
|
|
2294
|
+
/**
|
|
2295
|
+
* The member whose personal connection a workspace uses
|
|
2296
|
+
*/
|
|
2297
|
+
interface ConnectionReference {
|
|
2298
|
+
/** Market account id of the member */
|
|
2299
|
+
sourceAccountId: number;
|
|
2300
|
+
/** The member's market display name, when known */
|
|
2301
|
+
sourceDisplayName: string | null;
|
|
2302
|
+
/** The member's LobeHub user id */
|
|
2303
|
+
sourceUserId: string | null;
|
|
2304
|
+
}
|
|
2271
2305
|
/**
|
|
2272
2306
|
* User's OAuth connection to a provider
|
|
2273
2307
|
*/
|
|
@@ -2296,6 +2330,16 @@ interface OAuthConnection {
|
|
|
2296
2330
|
* Provider username (if available)
|
|
2297
2331
|
*/
|
|
2298
2332
|
providerUsername?: string;
|
|
2333
|
+
/**
|
|
2334
|
+
* Inside a workspace: set when the workspace uses a member's personal
|
|
2335
|
+
* connection (left by the per-workspace migration) instead of its own.
|
|
2336
|
+
*/
|
|
2337
|
+
reference?: ConnectionReference;
|
|
2338
|
+
/**
|
|
2339
|
+
* Personal scope only: the workspaces that use this personal connection, so
|
|
2340
|
+
* a client can warn before revoking it.
|
|
2341
|
+
*/
|
|
2342
|
+
referencedByWorkspaceIds?: string[];
|
|
2299
2343
|
/**
|
|
2300
2344
|
* Authorized scopes
|
|
2301
2345
|
*/
|
|
@@ -2406,6 +2450,11 @@ interface ListConnectionsResponse {
|
|
|
2406
2450
|
* Whether the request was successful
|
|
2407
2451
|
*/
|
|
2408
2452
|
success: boolean;
|
|
2453
|
+
/**
|
|
2454
|
+
* Inside a workspace that has no organization on Market yet: nothing can be
|
|
2455
|
+
* connected there until the workspace is mirrored
|
|
2456
|
+
*/
|
|
2457
|
+
workspaceUnavailable?: boolean;
|
|
2409
2458
|
}
|
|
2410
2459
|
/**
|
|
2411
2460
|
* Response for connection statistics
|
|
@@ -2489,6 +2538,24 @@ interface RefreshConnectionResponse {
|
|
|
2489
2538
|
* Response for revoking connection
|
|
2490
2539
|
*/
|
|
2491
2540
|
interface RevokeConnectionResponse {
|
|
2541
|
+
/**
|
|
2542
|
+
* What was removed: the scope's own connection, or — in a workspace that
|
|
2543
|
+
* only used a member's personal connection — that reference
|
|
2544
|
+
*/
|
|
2545
|
+
revoked?: 'connection' | 'reference';
|
|
2546
|
+
/**
|
|
2547
|
+
* Whether the request was successful
|
|
2548
|
+
*/
|
|
2549
|
+
success: boolean;
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
* Response for letting a workspace use the caller's personal connection
|
|
2553
|
+
*/
|
|
2554
|
+
interface AddConnectionReferenceResponse {
|
|
2555
|
+
/**
|
|
2556
|
+
* `created` (or already present), or why nothing was created
|
|
2557
|
+
*/
|
|
2558
|
+
status: 'created' | 'no_personal_connection' | 'workspace_connection_exists';
|
|
2492
2559
|
/**
|
|
2493
2560
|
* Whether the request was successful
|
|
2494
2561
|
*/
|
|
@@ -4976,6 +5043,25 @@ declare class PluginService extends BaseSDK {
|
|
|
4976
5043
|
message: string;
|
|
4977
5044
|
success: boolean;
|
|
4978
5045
|
}>;
|
|
5046
|
+
/**
|
|
5047
|
+
* Takes a plugin down for support.
|
|
5048
|
+
*
|
|
5049
|
+
* `unpublish` hides the plugin and keeps it (undo with `restorePlugin`);
|
|
5050
|
+
* `purge` (GDPR erasure) deletes everything about it except a suppression
|
|
5051
|
+
* record. Either way crawls, imports and owner publishes skip its source.
|
|
5052
|
+
*
|
|
5053
|
+
* @param idOrIdentifier - Plugin ID or identifier
|
|
5054
|
+
* @param data - Mode, reason and optional reference / operator / scope
|
|
5055
|
+
* @returns The takedown marker and, for `purge`, the rows removed per table
|
|
5056
|
+
*/
|
|
5057
|
+
takedownPlugin(idOrIdentifier: number | string, data: ListingTakedownRequest): Promise<ListingTakedownResult>;
|
|
5058
|
+
/**
|
|
5059
|
+
* Restores a plugin taken down with `unpublish`. A purged plugin cannot be restored (409).
|
|
5060
|
+
*
|
|
5061
|
+
* @param idOrIdentifier - Plugin ID or identifier
|
|
5062
|
+
* @returns The restored status and visibility
|
|
5063
|
+
*/
|
|
5064
|
+
restorePlugin(idOrIdentifier: number | string): Promise<ListingRestoreResult>;
|
|
4979
5065
|
/**
|
|
4980
5066
|
* Updates plugin visibility
|
|
4981
5067
|
*
|
|
@@ -5404,6 +5490,25 @@ declare class SkillService$1 extends BaseSDK {
|
|
|
5404
5490
|
* @throws If the Skill does not exist, or category is supplied without a current version
|
|
5405
5491
|
*/
|
|
5406
5492
|
updateSkill(id: number, data: AdminSkillUpdateRequest): Promise<AdminSkillUpdateResponse>;
|
|
5493
|
+
/**
|
|
5494
|
+
* Takes a skill down for support.
|
|
5495
|
+
*
|
|
5496
|
+
* `unpublish` hides the skill and keeps it (undo with `restoreSkill`);
|
|
5497
|
+
* `purge` (GDPR erasure) deletes everything about it except a suppression
|
|
5498
|
+
* record. Either way imports skip its source.
|
|
5499
|
+
*
|
|
5500
|
+
* @param id - Skill database ID
|
|
5501
|
+
* @param data - Mode, reason and optional reference / operator / scope
|
|
5502
|
+
* @returns The takedown marker and, for `purge`, the rows removed per table
|
|
5503
|
+
*/
|
|
5504
|
+
takedownSkill(id: number, data: ListingTakedownRequest): Promise<ListingTakedownResult>;
|
|
5505
|
+
/**
|
|
5506
|
+
* Restores a skill taken down with `unpublish`. A purged skill cannot be restored (409).
|
|
5507
|
+
*
|
|
5508
|
+
* @param id - Skill database ID
|
|
5509
|
+
* @returns The restored status and visibility
|
|
5510
|
+
*/
|
|
5511
|
+
restoreSkill(id: number): Promise<ListingRestoreResult>;
|
|
5407
5512
|
/**
|
|
5408
5513
|
* Retrieve Skills with Admin API status and visibility fields.
|
|
5409
5514
|
*
|
|
@@ -5636,7 +5741,7 @@ declare class SandboxSessionService extends BaseSDK {
|
|
|
5636
5741
|
|
|
5637
5742
|
declare class SandboxStorageService$1 extends BaseSDK {
|
|
5638
5743
|
measure(key: string): Promise<{
|
|
5639
|
-
status: 'success' | 'failed' | 'running' | 'superseded';
|
|
5744
|
+
status: 'success' | 'failed' | 'running' | 'superseded' | 'measuring';
|
|
5640
5745
|
}>;
|
|
5641
5746
|
efs(): Promise<{
|
|
5642
5747
|
data: AdminSandboxEfsUsage;
|
|
@@ -5722,6 +5827,12 @@ declare class MarketAdmin extends BaseSDK {
|
|
|
5722
5827
|
constructor(options?: MarketSDKOptions);
|
|
5723
5828
|
}
|
|
5724
5829
|
|
|
5830
|
+
/** Enterprise asset availability scopes, evaluated for the authenticated member. */
|
|
5831
|
+
declare class AccessService extends BaseSDK {
|
|
5832
|
+
/** Returns the subset of `items` the member can use; requires a trusted-client token. */
|
|
5833
|
+
check(items: AssetAccessCheckItem[], options?: globalThis.RequestInit): Promise<AssetAccessCheckResponse>;
|
|
5834
|
+
}
|
|
5835
|
+
|
|
5725
5836
|
/**
|
|
5726
5837
|
* Agent Profile Service
|
|
5727
5838
|
*
|
|
@@ -6520,6 +6631,18 @@ declare class ConnectService extends BaseSDK {
|
|
|
6520
6631
|
* @returns Promise resolving to the revoke result
|
|
6521
6632
|
*/
|
|
6522
6633
|
revoke(provider: string, options?: globalThis.RequestInit): Promise<RevokeConnectionResponse>;
|
|
6634
|
+
/**
|
|
6635
|
+
* Lets the current workspace use the caller's own personal connection
|
|
6636
|
+
*
|
|
6637
|
+
* Only inside a workspace (a trust token carrying `workspaceId`) and only for
|
|
6638
|
+
* workspace admins. The tokens are shared, not copied; authorizing the
|
|
6639
|
+
* workspace itself later replaces the reference. Idempotent.
|
|
6640
|
+
*
|
|
6641
|
+
* @param provider - The provider ID (e.g., 'linear', 'github')
|
|
6642
|
+
* @param options - Optional request options (must include authentication)
|
|
6643
|
+
* @returns Promise resolving to whether a reference now exists
|
|
6644
|
+
*/
|
|
6645
|
+
addReference(provider: string, options?: globalThis.RequestInit): Promise<AddConnectionReferenceResponse>;
|
|
6523
6646
|
}
|
|
6524
6647
|
|
|
6525
6648
|
/**
|
|
@@ -7237,6 +7360,36 @@ declare class SandboxStorageService extends BaseSDK {
|
|
|
7237
7360
|
key?: string;
|
|
7238
7361
|
path: string;
|
|
7239
7362
|
}, options?: globalThis.RequestInit): Promise<SandboxStorageWriteResult>;
|
|
7363
|
+
/**
|
|
7364
|
+
* Copy one file as it is, or one folder as a zip, to a presigned upload URL
|
|
7365
|
+
* — read off the volume without a sandbox session, which is what lets it
|
|
7366
|
+
* serve a shared storage at its root. Refusals carry `EXPORT_*` codes; a
|
|
7367
|
+
* deployment that cannot export answers 501 `EXPORT_UNAVAILABLE`.
|
|
7368
|
+
*/
|
|
7369
|
+
exportFile(params: SandboxStorageExportRequest & {
|
|
7370
|
+
key?: string;
|
|
7371
|
+
}, options?: globalThis.RequestInit): Promise<SandboxStorageExportResult>;
|
|
7372
|
+
/**
|
|
7373
|
+
* What takes the space: bytes per category, the largest items of each, and
|
|
7374
|
+
* the largest files and directories. Each call advances the walk by at most
|
|
7375
|
+
* one step; call again while `status` is `scanning` or `running`. A finished
|
|
7376
|
+
* analysis is reused for 15 minutes unless `restart` is set. Served off the
|
|
7377
|
+
* volume and allowed over quota; a deployment that cannot analyse answers
|
|
7378
|
+
* 409 `storage_analysis_unavailable`.
|
|
7379
|
+
*/
|
|
7380
|
+
analyzeStorage(params?: SandboxStorageAnalysisRequest & {
|
|
7381
|
+
key?: string;
|
|
7382
|
+
}, options?: globalThis.RequestInit): Promise<SandboxStorageAnalysis>;
|
|
7383
|
+
/**
|
|
7384
|
+
* Irreversibly delete up to 100 storage-relative paths. With
|
|
7385
|
+
* `regenerableOnly`, the whole call is refused (400
|
|
7386
|
+
* `storage_paths_not_regenerable`, offending paths in `details.paths`)
|
|
7387
|
+
* unless every path is dependencies, a cache or build output. `done: false`
|
|
7388
|
+
* means time ran out: call again with `pending`.
|
|
7389
|
+
*/
|
|
7390
|
+
deleteFiles(params: SandboxStorageDeletePathsRequest & {
|
|
7391
|
+
key?: string;
|
|
7392
|
+
}, options?: globalThis.RequestInit): Promise<SandboxStorageDeletePathsResult>;
|
|
7240
7393
|
/**
|
|
7241
7394
|
* The storage's instances, newest first.
|
|
7242
7395
|
*
|
|
@@ -8556,9 +8709,13 @@ declare class UserPublishService extends BaseSDK {
|
|
|
8556
8709
|
*
|
|
8557
8710
|
* @param identifier - The public asset identifier
|
|
8558
8711
|
* @param assetType - 'plugin' or 'skill'
|
|
8712
|
+
* @param options - `repositoryUrl`: new repository of a plugin whose listed
|
|
8713
|
+
* repository was deleted; the claim repoints the listing to it
|
|
8559
8714
|
* @returns Promise resolving to the claim result
|
|
8560
8715
|
*/
|
|
8561
|
-
claimAssetByIdentifier(identifier: string, assetType: 'plugin' | 'skill'
|
|
8716
|
+
claimAssetByIdentifier(identifier: string, assetType: 'plugin' | 'skill', options?: {
|
|
8717
|
+
repositoryUrl?: string;
|
|
8718
|
+
}): Promise<ClaimAssetResponse>;
|
|
8562
8719
|
/**
|
|
8563
8720
|
* Submits a GitHub repository the authenticated user owns or can push to for
|
|
8564
8721
|
* import as a new skill listing
|
|
@@ -8674,6 +8831,11 @@ declare class CategoryService extends BaseSDK {
|
|
|
8674
8831
|
*/
|
|
8675
8832
|
declare class MarketSDK extends BaseSDK {
|
|
8676
8833
|
readonly categories: CategoryService;
|
|
8834
|
+
/**
|
|
8835
|
+
* Enterprise asset availability checks for the authenticated member
|
|
8836
|
+
* (self-hosted enterprise Market only)
|
|
8837
|
+
*/
|
|
8838
|
+
readonly access: AccessService;
|
|
8677
8839
|
/** Anonymous WebP byte URL. No signed token or public bucket is required. */
|
|
8678
8840
|
getAssetImageUrl(id: string): string;
|
|
8679
8841
|
/** Anonymous SVG with a safely generated single initial; name must contain 1–255 characters. */
|
|
@@ -8845,6 +9007,21 @@ declare class MarketAPIError extends Error {
|
|
|
8845
9007
|
toJSON(): any;
|
|
8846
9008
|
}
|
|
8847
9009
|
|
|
9010
|
+
/**
|
|
9011
|
+
* Transport-neutral category of a failed Market call.
|
|
9012
|
+
*
|
|
9013
|
+
* Callers map it onto their own error model instead of keeping a status table.
|
|
9014
|
+
*/
|
|
9015
|
+
type MarketErrorKind = 'conflict' | 'forbidden' | 'invalid_input' | 'not_found' | 'rate_limited' | 'unauthenticated' | 'unavailable' | 'unknown';
|
|
9016
|
+
/**
|
|
9017
|
+
* Classifies an error thrown by an SDK call.
|
|
9018
|
+
*
|
|
9019
|
+
* - `MarketAPIError` by HTTP status (5xx → `unavailable`, unlisted statuses → `unknown`)
|
|
9020
|
+
* - aborts, timeouts and network failures → `unavailable`
|
|
9021
|
+
* - anything else → `unknown`
|
|
9022
|
+
*/
|
|
9023
|
+
declare const getMarketErrorKind: (error: unknown) => MarketErrorKind;
|
|
9024
|
+
|
|
8848
9025
|
/**
|
|
8849
9026
|
* SDK Version
|
|
8850
9027
|
*
|
|
@@ -8964,4 +9141,4 @@ declare function buildTrustedClientPayload(params: {
|
|
|
8964
9141
|
workspaceId?: string;
|
|
8965
9142
|
}): TrustedClientPayload;
|
|
8966
9143
|
|
|
8967
|
-
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 CredShareTargetRequest, 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 };
|
|
9144
|
+
export { type AccountMeta, type AddConnectionReferenceResponse, 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 AnalyzeStorageParams, 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 ConnectionReference, type ConnectionStats, type CreateFileCredRequest, type CreateKVCredRequest, type CreateMemberAgent, type CreateOAuthCredRequest, type CredShareTargetRequest, type CredWithPlaintext, type DeleteCredResponse, type DeleteFilesParams, 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 MarketErrorKind, 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, getMarketErrorKind, orgRefToPathSegment };
|