@lobehub/market-sdk 0.32.0-beta.1 → 0.32.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 +326 -22
- package/dist/index.mjs +715 -345
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AgentItem, MarketItemBase, PluginConnectionType, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, AgentEventRequest, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse } from '@lobehub/market-types';
|
|
2
|
+
import { AgentItem, UserCredSummary, MarketItemBase, PluginConnectionType, InstallFailureAnalysisQuery, InstallFailureAnalysis, RangeQuery, RangeStats, TopPluginsQuery, TopPlugin, PluginManifest, AdminPluginItem, AdminPluginItemDetail, PluginVersion, PluginVersionLocalization, AdminDeploymentOption, InstallationDetails, SystemDependency, IncompleteI18nPlugin, BatchUpsertSkillCollectionLocalizationsRequest, SkillCollectionLocalizationBatchResponse, SkillCollectionLocalization, UpsertSkillCollectionLocalizationRequest, AgentEventRequest, SkillCredStatus, InjectCredsRequest, InjectCredsResponse, InjectCredsForSkillRequest, InjectCredsForSkillResponse, CategoryListQuery, CategoryItem, PluginItemDetail, InstallReportRequest, InstallReportResponse, CallReportRequest, CallReportResponse, PluginEventRequest, CloudGatewayRequest, CloudGatewayResponse } from '@lobehub/market-types';
|
|
3
3
|
export * from '@lobehub/market-types';
|
|
4
|
-
export { CategoryItem, CategoryListQuery, CategoryListResponse } from '@lobehub/market-types';
|
|
4
|
+
export { CategoryItem, CategoryListQuery, CategoryListResponse, CredType, InjectCredsForSkillRequest, InjectCredsForSkillResponse, InjectCredsRequest, InjectCredsResponse, InjectedFileInfo, SkillCredStatus, UserCredSummary } from '@lobehub/market-types';
|
|
5
5
|
import { JSONSchema7 } from 'json-schema';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1602,6 +1602,93 @@ interface SharedTokenState {
|
|
|
1602
1602
|
tokenPromise?: Promise<string>;
|
|
1603
1603
|
}
|
|
1604
1604
|
|
|
1605
|
+
/**
|
|
1606
|
+
* Creds SDK Types
|
|
1607
|
+
*
|
|
1608
|
+
* Type definitions for user credential management operations.
|
|
1609
|
+
*/
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Request for creating a KV credential (kv-env or kv-header)
|
|
1613
|
+
*/
|
|
1614
|
+
interface CreateKVCredRequest {
|
|
1615
|
+
/** Optional description of the credential */
|
|
1616
|
+
description?: string;
|
|
1617
|
+
/** Unique key identifying this credential */
|
|
1618
|
+
key: string;
|
|
1619
|
+
/** Display name for the credential */
|
|
1620
|
+
name: string;
|
|
1621
|
+
/** Credential type: 'kv-env' or 'kv-header' */
|
|
1622
|
+
type: 'kv-env' | 'kv-header';
|
|
1623
|
+
/** Key-value pairs to store */
|
|
1624
|
+
values: Record<string, string>;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Request for creating an OAuth credential
|
|
1628
|
+
*/
|
|
1629
|
+
interface CreateOAuthCredRequest {
|
|
1630
|
+
/** Optional description of the credential */
|
|
1631
|
+
description?: string;
|
|
1632
|
+
/** Unique key identifying this credential */
|
|
1633
|
+
key: string;
|
|
1634
|
+
/** Display name for the credential */
|
|
1635
|
+
name: string;
|
|
1636
|
+
/** ID of the existing OAuth connection to link */
|
|
1637
|
+
oauthConnectionId: number;
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* Request for creating a file credential
|
|
1641
|
+
*/
|
|
1642
|
+
interface CreateFileCredRequest {
|
|
1643
|
+
/** Optional description of the credential */
|
|
1644
|
+
description?: string;
|
|
1645
|
+
/** Hash ID of the uploaded file */
|
|
1646
|
+
fileHashId: string;
|
|
1647
|
+
/** Original file name */
|
|
1648
|
+
fileName: string;
|
|
1649
|
+
/** Unique key identifying this credential */
|
|
1650
|
+
key: string;
|
|
1651
|
+
/** Display name for the credential */
|
|
1652
|
+
name: string;
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* Request for updating a credential
|
|
1656
|
+
*/
|
|
1657
|
+
interface UpdateCredRequest {
|
|
1658
|
+
/** Updated description */
|
|
1659
|
+
description?: string;
|
|
1660
|
+
/** Updated display name */
|
|
1661
|
+
name?: string;
|
|
1662
|
+
/** Updated key-value pairs (KV types only) */
|
|
1663
|
+
values?: Record<string, string>;
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Options for getting a credential
|
|
1667
|
+
*/
|
|
1668
|
+
interface GetCredOptions {
|
|
1669
|
+
/** Set to true to include decrypted plaintext values (KV types only) */
|
|
1670
|
+
decrypt?: boolean;
|
|
1671
|
+
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Response containing a list of credentials
|
|
1674
|
+
*/
|
|
1675
|
+
interface ListCredsResponse {
|
|
1676
|
+
data: UserCredSummary[];
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Response for successful deletion
|
|
1680
|
+
*/
|
|
1681
|
+
interface DeleteCredResponse {
|
|
1682
|
+
success: boolean;
|
|
1683
|
+
}
|
|
1684
|
+
/**
|
|
1685
|
+
* Extended credential summary with optional plaintext values
|
|
1686
|
+
*/
|
|
1687
|
+
interface CredWithPlaintext extends UserCredSummary {
|
|
1688
|
+
/** Decrypted plaintext values (KV types only, when decrypt=true) */
|
|
1689
|
+
plaintext?: Record<string, string>;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1605
1692
|
interface ClientRegistrationRequest {
|
|
1606
1693
|
/** Client name (required) */
|
|
1607
1694
|
clientName: string;
|
|
@@ -2612,7 +2699,7 @@ interface MarketSkillListQuery {
|
|
|
2612
2699
|
*/
|
|
2613
2700
|
isOfficial?: 'false' | 'true';
|
|
2614
2701
|
/**
|
|
2615
|
-
* Locale for localized content
|
|
2702
|
+
* Locale for localized content such as description and summary; title remains canonical
|
|
2616
2703
|
*/
|
|
2617
2704
|
locale?: string;
|
|
2618
2705
|
/**
|
|
@@ -2645,7 +2732,7 @@ interface MarketSkillListQuery {
|
|
|
2645
2732
|
*/
|
|
2646
2733
|
interface MarketSkillDetailQuery {
|
|
2647
2734
|
/**
|
|
2648
|
-
* Locale for localized content
|
|
2735
|
+
* Locale for localized content such as description and summary; title remains canonical
|
|
2649
2736
|
*/
|
|
2650
2737
|
locale?: string;
|
|
2651
2738
|
/**
|
|
@@ -2781,7 +2868,7 @@ interface MarketSkillListItem {
|
|
|
2781
2868
|
*/
|
|
2782
2869
|
logo?: string;
|
|
2783
2870
|
/**
|
|
2784
|
-
*
|
|
2871
|
+
* Canonical skill title from the current version; locale does not affect this field
|
|
2785
2872
|
*/
|
|
2786
2873
|
name: string;
|
|
2787
2874
|
/**
|
|
@@ -3015,7 +3102,7 @@ interface MarketSkillDetail {
|
|
|
3015
3102
|
*/
|
|
3016
3103
|
manifest: MarketSkillManifest;
|
|
3017
3104
|
/**
|
|
3018
|
-
*
|
|
3105
|
+
* Canonical skill title from the current version; locale does not affect this field
|
|
3019
3106
|
*/
|
|
3020
3107
|
name: string;
|
|
3021
3108
|
/**
|
|
@@ -3275,21 +3362,19 @@ interface SkillRatingDistribution {
|
|
|
3275
3362
|
totalCount: number;
|
|
3276
3363
|
}
|
|
3277
3364
|
|
|
3278
|
-
type MarketSkillCollectionItemSort = 'createdAt' | 'installCount' | 'name' | '
|
|
3279
|
-
type MarketSkillCollectionMatchType = 'manual' | 'repository';
|
|
3365
|
+
type MarketSkillCollectionItemSort = 'createdAt' | 'installCount' | 'name' | 'ratingAverage' | 'updatedAt';
|
|
3280
3366
|
interface MarketSkillCollectionListQuery {
|
|
3281
3367
|
locale?: string;
|
|
3282
3368
|
}
|
|
3283
3369
|
interface MarketSkillCollectionListItem {
|
|
3370
|
+
cover?: string;
|
|
3284
3371
|
createdAt: string;
|
|
3285
|
-
description: string;
|
|
3286
3372
|
icon: string;
|
|
3287
3373
|
id: number;
|
|
3288
3374
|
itemCount: number;
|
|
3289
|
-
matchType: MarketSkillCollectionMatchType;
|
|
3290
3375
|
position: number;
|
|
3291
|
-
repository?: string;
|
|
3292
3376
|
slug: string;
|
|
3377
|
+
summary: string;
|
|
3293
3378
|
title: string;
|
|
3294
3379
|
updatedAt: string;
|
|
3295
3380
|
}
|
|
@@ -3303,6 +3388,7 @@ interface MarketSkillCollectionDetailQuery {
|
|
|
3303
3388
|
}
|
|
3304
3389
|
interface MarketSkillCollectionDetail extends MarketSkillCollectionListItem {
|
|
3305
3390
|
currentPage: number;
|
|
3391
|
+
description?: string;
|
|
3306
3392
|
items: MarketSkillListItem[];
|
|
3307
3393
|
pageSize: number;
|
|
3308
3394
|
totalCount: number;
|
|
@@ -3842,14 +3928,6 @@ declare class BaseSDK {
|
|
|
3842
3928
|
* @returns Formatted query string (including leading ? if params exist)
|
|
3843
3929
|
*/
|
|
3844
3930
|
protected buildQueryString(params: Record<string, any>): string;
|
|
3845
|
-
/**
|
|
3846
|
-
* Returns base headers that should be included in all requests
|
|
3847
|
-
* This ensures consistent User-Agent and other common headers
|
|
3848
|
-
*
|
|
3849
|
-
* @param contentType - Optional content type override (default: application/json)
|
|
3850
|
-
* @returns Headers object with User-Agent and Content-Type
|
|
3851
|
-
*/
|
|
3852
|
-
protected getBaseHeaders(contentType?: string): Record<string, string>;
|
|
3853
3931
|
/**
|
|
3854
3932
|
* Sets an authentication token for API requests
|
|
3855
3933
|
*
|
|
@@ -4915,6 +4993,17 @@ declare class ReviewService extends BaseSDK {
|
|
|
4915
4993
|
}>;
|
|
4916
4994
|
}
|
|
4917
4995
|
|
|
4996
|
+
declare class SkillCollectionService extends BaseSDK {
|
|
4997
|
+
batchUpsertLocalizations(collectionId: number, data: BatchUpsertSkillCollectionLocalizationsRequest): Promise<SkillCollectionLocalizationBatchResponse>;
|
|
4998
|
+
deleteLocalization(collectionId: number, locale: string): Promise<{
|
|
4999
|
+
message: string;
|
|
5000
|
+
success: boolean;
|
|
5001
|
+
}>;
|
|
5002
|
+
getLocalization(collectionId: number, locale: string): Promise<SkillCollectionLocalization>;
|
|
5003
|
+
getLocalizations(collectionId: number): Promise<SkillCollectionLocalization[]>;
|
|
5004
|
+
upsertLocalization(collectionId: number, locale: string, data: UpsertSkillCollectionLocalizationRequest): Promise<SkillCollectionLocalization>;
|
|
5005
|
+
}
|
|
5006
|
+
|
|
4918
5007
|
type AdminPluginEnvListQuery = any;
|
|
4919
5008
|
type PluginEnv = any;
|
|
4920
5009
|
interface AdminPluginEnvCreateParams {
|
|
@@ -5019,6 +5108,11 @@ declare class MarketAdmin extends BaseSDK {
|
|
|
5019
5108
|
* Provides methods for configuring marketplace settings
|
|
5020
5109
|
*/
|
|
5021
5110
|
readonly settings: SettingsService;
|
|
5111
|
+
/**
|
|
5112
|
+
* Skill collection management service
|
|
5113
|
+
* Provides methods for managing curated skill collection localizations
|
|
5114
|
+
*/
|
|
5115
|
+
readonly skillCollections: SkillCollectionService;
|
|
5022
5116
|
/**
|
|
5023
5117
|
* System dependency management service
|
|
5024
5118
|
* Provides methods for managing system dependencies required by plugins
|
|
@@ -5786,6 +5880,209 @@ declare class ConnectService extends BaseSDK {
|
|
|
5786
5880
|
revoke(provider: string, options?: globalThis.RequestInit): Promise<RevokeConnectionResponse>;
|
|
5787
5881
|
}
|
|
5788
5882
|
|
|
5883
|
+
/**
|
|
5884
|
+
* Cred Service
|
|
5885
|
+
*
|
|
5886
|
+
* Provides user credential management functionality.
|
|
5887
|
+
* This service allows:
|
|
5888
|
+
* - Creating KV, OAuth, and file credentials
|
|
5889
|
+
* - Listing and retrieving credentials
|
|
5890
|
+
* - Updating and deleting credentials
|
|
5891
|
+
* - Checking credential status for skills
|
|
5892
|
+
* - Injecting credentials into sandbox environments
|
|
5893
|
+
*
|
|
5894
|
+
* @example
|
|
5895
|
+
* ```typescript
|
|
5896
|
+
* const sdk = new MarketSDK({ accessToken: 'user-token' });
|
|
5897
|
+
*
|
|
5898
|
+
* // Create a KV credential
|
|
5899
|
+
* const cred = await sdk.creds.createKV({
|
|
5900
|
+
* key: 'openai',
|
|
5901
|
+
* name: 'OpenAI API Key',
|
|
5902
|
+
* type: 'kv-env',
|
|
5903
|
+
* values: { OPENAI_API_KEY: 'sk-xxx' }
|
|
5904
|
+
* });
|
|
5905
|
+
*
|
|
5906
|
+
* // List all credentials
|
|
5907
|
+
* const { data } = await sdk.creds.list();
|
|
5908
|
+
*
|
|
5909
|
+
* // Inject credentials for a skill
|
|
5910
|
+
* const result = await sdk.creds.inject({
|
|
5911
|
+
* skillIdentifier: 'my-skill',
|
|
5912
|
+
* sandbox: true
|
|
5913
|
+
* });
|
|
5914
|
+
* ```
|
|
5915
|
+
*/
|
|
5916
|
+
declare class CredService extends BaseSDK {
|
|
5917
|
+
/**
|
|
5918
|
+
* Lists all credentials for the authenticated user
|
|
5919
|
+
*
|
|
5920
|
+
* Returns credential summaries with masked values.
|
|
5921
|
+
* Requires authentication.
|
|
5922
|
+
*
|
|
5923
|
+
* @param options - Optional request options
|
|
5924
|
+
* @returns Promise resolving to the list of credentials
|
|
5925
|
+
*/
|
|
5926
|
+
list(options?: globalThis.RequestInit): Promise<ListCredsResponse>;
|
|
5927
|
+
/**
|
|
5928
|
+
* Gets a specific credential by ID
|
|
5929
|
+
*
|
|
5930
|
+
* Optionally returns decrypted plaintext values for KV types.
|
|
5931
|
+
* Requires authentication.
|
|
5932
|
+
*
|
|
5933
|
+
* @param id - The credential ID
|
|
5934
|
+
* @param getOptions - Options for getting the credential
|
|
5935
|
+
* @param options - Optional request options
|
|
5936
|
+
* @returns Promise resolving to the credential details
|
|
5937
|
+
*/
|
|
5938
|
+
get(id: number, getOptions?: GetCredOptions, options?: globalThis.RequestInit): Promise<CredWithPlaintext>;
|
|
5939
|
+
/**
|
|
5940
|
+
* Creates a new KV credential (kv-env or kv-header)
|
|
5941
|
+
*
|
|
5942
|
+
* Use `kv-env` for environment variables (supported in sandbox).
|
|
5943
|
+
* Use `kv-header` for HTTP headers (not supported in sandbox).
|
|
5944
|
+
*
|
|
5945
|
+
* Requires authentication.
|
|
5946
|
+
*
|
|
5947
|
+
* @param data - The credential data to create
|
|
5948
|
+
* @param options - Optional request options
|
|
5949
|
+
* @returns Promise resolving to the created credential
|
|
5950
|
+
*/
|
|
5951
|
+
createKV(data: CreateKVCredRequest, options?: globalThis.RequestInit): Promise<UserCredSummary>;
|
|
5952
|
+
/**
|
|
5953
|
+
* Creates a new OAuth credential by linking to an existing OAuth connection
|
|
5954
|
+
*
|
|
5955
|
+
* The OAuth connection must already exist (use ConnectService to establish connections).
|
|
5956
|
+
* Requires authentication.
|
|
5957
|
+
*
|
|
5958
|
+
* @param data - The credential data to create
|
|
5959
|
+
* @param options - Optional request options
|
|
5960
|
+
* @returns Promise resolving to the created credential
|
|
5961
|
+
*/
|
|
5962
|
+
createOAuth(data: CreateOAuthCredRequest, options?: globalThis.RequestInit): Promise<UserCredSummary>;
|
|
5963
|
+
/**
|
|
5964
|
+
* Creates a new file credential
|
|
5965
|
+
*
|
|
5966
|
+
* The file must be uploaded first and the fileHashId obtained.
|
|
5967
|
+
* Requires authentication.
|
|
5968
|
+
*
|
|
5969
|
+
* @param data - The credential data to create
|
|
5970
|
+
* @param options - Optional request options
|
|
5971
|
+
* @returns Promise resolving to the created credential
|
|
5972
|
+
*/
|
|
5973
|
+
createFile(data: CreateFileCredRequest, options?: globalThis.RequestInit): Promise<UserCredSummary>;
|
|
5974
|
+
/**
|
|
5975
|
+
* Updates an existing credential
|
|
5976
|
+
*
|
|
5977
|
+
* Can update name, description, and values (for KV types).
|
|
5978
|
+
* Requires authentication.
|
|
5979
|
+
*
|
|
5980
|
+
* @param id - The credential ID to update
|
|
5981
|
+
* @param data - The data to update
|
|
5982
|
+
* @param options - Optional request options
|
|
5983
|
+
* @returns Promise resolving to the updated credential
|
|
5984
|
+
*/
|
|
5985
|
+
update(id: number, data: UpdateCredRequest, options?: globalThis.RequestInit): Promise<UserCredSummary>;
|
|
5986
|
+
/**
|
|
5987
|
+
* Deletes a credential by ID
|
|
5988
|
+
*
|
|
5989
|
+
* Requires authentication.
|
|
5990
|
+
*
|
|
5991
|
+
* @param id - The credential ID to delete
|
|
5992
|
+
* @param options - Optional request options
|
|
5993
|
+
* @returns Promise resolving to the delete result
|
|
5994
|
+
*/
|
|
5995
|
+
delete(id: number, options?: globalThis.RequestInit): Promise<DeleteCredResponse>;
|
|
5996
|
+
/**
|
|
5997
|
+
* Deletes a credential by key
|
|
5998
|
+
*
|
|
5999
|
+
* Useful when you know the credential key but not the ID.
|
|
6000
|
+
* Requires authentication.
|
|
6001
|
+
*
|
|
6002
|
+
* @param key - The credential key to delete
|
|
6003
|
+
* @param options - Optional request options
|
|
6004
|
+
* @returns Promise resolving to the delete result
|
|
6005
|
+
*/
|
|
6006
|
+
deleteByKey(key: string, options?: globalThis.RequestInit): Promise<DeleteCredResponse>;
|
|
6007
|
+
/**
|
|
6008
|
+
* Gets the credential status for a skill
|
|
6009
|
+
*
|
|
6010
|
+
* Returns which credentials are required by the skill and
|
|
6011
|
+
* whether the user has provided them.
|
|
6012
|
+
*
|
|
6013
|
+
* Requires authentication.
|
|
6014
|
+
*
|
|
6015
|
+
* @param skillIdentifier - The skill identifier
|
|
6016
|
+
* @param options - Optional request options
|
|
6017
|
+
* @returns Promise resolving to the credential status list
|
|
6018
|
+
*/
|
|
6019
|
+
getSkillCredStatus(skillIdentifier: string, options?: globalThis.RequestInit): Promise<SkillCredStatus[]>;
|
|
6020
|
+
/**
|
|
6021
|
+
* Injects specific credentials by key list into a sandbox environment
|
|
6022
|
+
*
|
|
6023
|
+
* Use this when you want to inject specific credentials regardless of skill requirements.
|
|
6024
|
+
* Returns decrypted credentials that can be used to set environment variables and write files.
|
|
6025
|
+
*
|
|
6026
|
+
* Note: `kv-header` type credentials are not supported in sandbox mode.
|
|
6027
|
+
*
|
|
6028
|
+
* Requires authentication.
|
|
6029
|
+
*
|
|
6030
|
+
* @param request - The injection request with keys array
|
|
6031
|
+
* @param options - Optional request options
|
|
6032
|
+
* @returns Promise resolving to the injection result
|
|
6033
|
+
*
|
|
6034
|
+
* @example
|
|
6035
|
+
* ```typescript
|
|
6036
|
+
* const result = await sdk.creds.inject({
|
|
6037
|
+
* keys: ['openai', 'github-pat'],
|
|
6038
|
+
* sandbox: true
|
|
6039
|
+
* });
|
|
6040
|
+
*
|
|
6041
|
+
* if (result.success) {
|
|
6042
|
+
* // Set environment variables
|
|
6043
|
+
* for (const [key, value] of Object.entries(result.credentials.env)) {
|
|
6044
|
+
* process.env[key] = value;
|
|
6045
|
+
* }
|
|
6046
|
+
* } else {
|
|
6047
|
+
* console.log('Not found credentials:', result.notFound);
|
|
6048
|
+
* }
|
|
6049
|
+
* ```
|
|
6050
|
+
*/
|
|
6051
|
+
inject(request: InjectCredsRequest, options?: globalThis.RequestInit): Promise<InjectCredsResponse>;
|
|
6052
|
+
/**
|
|
6053
|
+
* Injects credentials for a skill based on its creds declaration
|
|
6054
|
+
*
|
|
6055
|
+
* Use this when executing a skill - it will auto-inject based on skill's requirements.
|
|
6056
|
+
* Returns decrypted credentials that can be used to set environment variables and write files.
|
|
6057
|
+
*
|
|
6058
|
+
* Note: `kv-header` type credentials are not supported in sandbox mode.
|
|
6059
|
+
*
|
|
6060
|
+
* Requires authentication.
|
|
6061
|
+
*
|
|
6062
|
+
* @param request - The injection request with skill identifier
|
|
6063
|
+
* @param options - Optional request options
|
|
6064
|
+
* @returns Promise resolving to the injection result
|
|
6065
|
+
*
|
|
6066
|
+
* @example
|
|
6067
|
+
* ```typescript
|
|
6068
|
+
* const result = await sdk.creds.injectForSkill({
|
|
6069
|
+
* skillIdentifier: 'github-mcp',
|
|
6070
|
+
* sandbox: true
|
|
6071
|
+
* });
|
|
6072
|
+
*
|
|
6073
|
+
* if (result.success) {
|
|
6074
|
+
* // All required credentials are satisfied
|
|
6075
|
+
* for (const [key, value] of Object.entries(result.credentials.env)) {
|
|
6076
|
+
* process.env[key] = value;
|
|
6077
|
+
* }
|
|
6078
|
+
* } else {
|
|
6079
|
+
* console.log('Missing required credentials:', result.missing);
|
|
6080
|
+
* }
|
|
6081
|
+
* ```
|
|
6082
|
+
*/
|
|
6083
|
+
injectForSkill(request: InjectCredsForSkillRequest, options?: globalThis.RequestInit): Promise<InjectCredsForSkillResponse>;
|
|
6084
|
+
}
|
|
6085
|
+
|
|
5789
6086
|
/**
|
|
5790
6087
|
* Feedback Service
|
|
5791
6088
|
*
|
|
@@ -6293,7 +6590,8 @@ declare class MarketSkillService extends BaseSDK {
|
|
|
6293
6590
|
* Retrieves a list of skills from the marketplace
|
|
6294
6591
|
*
|
|
6295
6592
|
* Supports filtering, pagination, search, and various sorting options
|
|
6296
|
-
* including GitHub stats (stars, forks, watchers).
|
|
6593
|
+
* including GitHub stats (stars, forks, watchers). Locale localizes
|
|
6594
|
+
* descriptions and summaries, but the returned skill name stays canonical.
|
|
6297
6595
|
*
|
|
6298
6596
|
* @param params - Query parameters for filtering and pagination
|
|
6299
6597
|
* @param options - Optional request options
|
|
@@ -6320,7 +6618,8 @@ declare class MarketSkillService extends BaseSDK {
|
|
|
6320
6618
|
* Retrieves detailed information about a specific skill
|
|
6321
6619
|
*
|
|
6322
6620
|
* Returns complete skill information including manifest, content,
|
|
6323
|
-
* resources, and version history.
|
|
6621
|
+
* resources, and version history. Locale localizes descriptions and
|
|
6622
|
+
* summaries, but the returned skill name stays canonical.
|
|
6324
6623
|
*
|
|
6325
6624
|
* @param identifier - Unique skill identifier (e.g., 'github.owner.repo.path')
|
|
6326
6625
|
* @param params - Query parameters for locale and version
|
|
@@ -6960,6 +7259,11 @@ declare class MarketSDK extends BaseSDK {
|
|
|
6960
7259
|
* Provides methods to list providers, initiate OAuth flows, and manage connections
|
|
6961
7260
|
*/
|
|
6962
7261
|
readonly connect: ConnectService;
|
|
7262
|
+
/**
|
|
7263
|
+
* Creds service for user credential management
|
|
7264
|
+
* Provides methods to create, list, update, delete credentials, and inject into sandboxes
|
|
7265
|
+
*/
|
|
7266
|
+
readonly creds: CredService;
|
|
6963
7267
|
/**
|
|
6964
7268
|
* Plugins service for accessing plugin-related functionality
|
|
6965
7269
|
* Provides methods to list, search, retrieve plugin information, and report installation attempts
|
|
@@ -7147,4 +7451,4 @@ declare function buildTrustedClientPayload(params: {
|
|
|
7147
7451
|
userId: string;
|
|
7148
7452
|
}): TrustedClientPayload;
|
|
7149
7453
|
|
|
7150
|
-
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 ClientRegistrationError, type ClientRegistrationRequest, type ClientRegistrationResponse, type CodeInterpreterToolName, type CodeInterpreterToolParams, type ConnectProvider, type ConnectProviderDetail, type ConnectProviderScopes, type ConnectionHealth, type ConnectionStats, type CreateMemberAgent, type DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FollowListItem, type FollowListResponse, type FollowRequest, type GetAllConnectionsHealthResponse, type GetAuthorizeUrlParams, type GetCommandOutputParams, type GetConnectProviderResponse, type GetConnectionHealthResponse, type GetConnectionStatsResponse, type GetConnectionStatusResponse, type GetSkillStatusResponse, type GetSkillToolResponse, type GlobLocalFilesParams, type GrepContentParams, type InteractionTargetType, type KillCommandParams, type LikeListResponse, type LikeQuery, type LikeRequest, type ListConnectProvidersResponse, type ListConnectionsResponse, 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
|
|
7454
|
+
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 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 DiscoveryDocument, type EditLocalFileParams, type ExecuteCodeParams, type ExportFileParams, type FavoriteListResponse, type FavoriteQuery, type FavoriteRequest, type FeedbackClientInfo, type FollowListItem, type FollowListResponse, type FollowRequest, type GetAllConnectionsHealthResponse, type GetAuthorizeUrlParams, 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 OwnAgentGroupListQuery, type OwnAgentListQuery, type PaginationQuery, 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 ProgrammingLanguage, type ReadLocalFileParams, type RefreshConnectionResponse, type RefreshTokenRequest, type RegisterUserRequest, type RegisterUserResponse, type RegisteredUserProfile, type RenameLocalFileParams, type ReviewStatus, ReviewStatusEnumSchema, type RevokeConnectionResponse, type RunBuildInToolsError, type RunBuildInToolsRequest, type RunBuildInToolsResponse, type RunBuildInToolsSuccessData, type RunCommandParams, SDK_USER_AGENT, SDK_VERSION, type SearchLocalFilesParams, 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, StatusEnumSchema, type SubmitFeedbackRequest, type SubmitFeedbackResponse, type SuccessResponse, 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 UserProfile, VisibilityEnumSchema, type WriteLocalFileParams, buildTrustedClientPayload, createTrustedClientToken, generateNonce };
|