@covia/covia-sdk 1.10.1 → 1.11.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 +29 -5
- package/dist/index.d.ts +29 -5
- package/dist/index.js +3 -9
- package/dist/index.mjs +3 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -463,8 +463,13 @@ declare class AssetManager {
|
|
|
463
463
|
private _wrap;
|
|
464
464
|
/**
|
|
465
465
|
* List assets with pagination support
|
|
466
|
-
* @param options - Pagination options (offset, limit)
|
|
466
|
+
* @param options - Pagination options (offset, limit). Pass
|
|
467
|
+
* `{ expand: 'metadata' }` to get each item's metadata inlined as
|
|
468
|
+
* `{id, metadata}` instead of a bare id string, sparing a per-id fetch.
|
|
467
469
|
*/
|
|
470
|
+
list(options: AssetListOptions & {
|
|
471
|
+
expand: 'metadata';
|
|
472
|
+
}): Promise<ExpandedAssetList>;
|
|
468
473
|
list(options?: AssetListOptions): Promise<AssetList>;
|
|
469
474
|
/**
|
|
470
475
|
* List the authenticated caller's own assets — the per-user a/ namespace
|
|
@@ -827,9 +832,14 @@ declare class Venue implements VenueInterface {
|
|
|
827
832
|
getAsset(assetId: AssetID): Promise<Asset>;
|
|
828
833
|
/**
|
|
829
834
|
* List assets with pagination support (convenience delegate to venue.assets.list)
|
|
830
|
-
* @param options - Pagination options (offset, limit)
|
|
831
|
-
*
|
|
832
|
-
|
|
835
|
+
* @param options - Pagination options (offset, limit). Pass
|
|
836
|
+
* `{ expand: 'metadata' }` to get each item's metadata inlined.
|
|
837
|
+
* @returns {Promise<AssetList>} Paginated list of asset ids, or of
|
|
838
|
+
* `{id, metadata}` items when `expand: 'metadata'` is requested
|
|
839
|
+
*/
|
|
840
|
+
listAssets(options: AssetListOptions & {
|
|
841
|
+
expand: 'metadata';
|
|
842
|
+
}): Promise<ExpandedAssetList>;
|
|
833
843
|
listAssets(options?: AssetListOptions): Promise<AssetList>;
|
|
834
844
|
/**
|
|
835
845
|
* List all jobs
|
|
@@ -944,6 +954,9 @@ interface VenueInterface {
|
|
|
944
954
|
getJob(jobId: string): Promise<Job>;
|
|
945
955
|
listJobs(): Promise<string[]>;
|
|
946
956
|
getAsset(assetId: AssetID): Promise<Asset>;
|
|
957
|
+
listAssets(options: AssetListOptions & {
|
|
958
|
+
expand: 'metadata';
|
|
959
|
+
}): Promise<ExpandedAssetList>;
|
|
947
960
|
listAssets(options?: AssetListOptions): Promise<AssetList>;
|
|
948
961
|
didDocument(): Promise<DIDDocument>;
|
|
949
962
|
mcpDiscovery(): Promise<MCPDiscovery>;
|
|
@@ -1040,6 +1053,7 @@ interface StatsData {
|
|
|
1040
1053
|
interface AssetListOptions {
|
|
1041
1054
|
offset?: number;
|
|
1042
1055
|
limit?: number;
|
|
1056
|
+
expand?: 'metadata';
|
|
1043
1057
|
}
|
|
1044
1058
|
interface AssetList {
|
|
1045
1059
|
items: string[];
|
|
@@ -1047,6 +1061,16 @@ interface AssetList {
|
|
|
1047
1061
|
offset: number;
|
|
1048
1062
|
limit: number;
|
|
1049
1063
|
}
|
|
1064
|
+
interface AssetListItem {
|
|
1065
|
+
id: string;
|
|
1066
|
+
metadata: AssetMetadata;
|
|
1067
|
+
}
|
|
1068
|
+
interface ExpandedAssetList {
|
|
1069
|
+
items: AssetListItem[];
|
|
1070
|
+
total: number;
|
|
1071
|
+
offset: number;
|
|
1072
|
+
limit: number;
|
|
1073
|
+
}
|
|
1050
1074
|
interface AssetSummary {
|
|
1051
1075
|
id: string;
|
|
1052
1076
|
name?: string;
|
|
@@ -1866,4 +1890,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
|
|
|
1866
1890
|
*/
|
|
1867
1891
|
declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
|
|
1868
1892
|
|
|
1869
|
-
export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
|
|
1893
|
+
export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListItem, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type ExpandedAssetList, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
|
package/dist/index.d.ts
CHANGED
|
@@ -463,8 +463,13 @@ declare class AssetManager {
|
|
|
463
463
|
private _wrap;
|
|
464
464
|
/**
|
|
465
465
|
* List assets with pagination support
|
|
466
|
-
* @param options - Pagination options (offset, limit)
|
|
466
|
+
* @param options - Pagination options (offset, limit). Pass
|
|
467
|
+
* `{ expand: 'metadata' }` to get each item's metadata inlined as
|
|
468
|
+
* `{id, metadata}` instead of a bare id string, sparing a per-id fetch.
|
|
467
469
|
*/
|
|
470
|
+
list(options: AssetListOptions & {
|
|
471
|
+
expand: 'metadata';
|
|
472
|
+
}): Promise<ExpandedAssetList>;
|
|
468
473
|
list(options?: AssetListOptions): Promise<AssetList>;
|
|
469
474
|
/**
|
|
470
475
|
* List the authenticated caller's own assets — the per-user a/ namespace
|
|
@@ -827,9 +832,14 @@ declare class Venue implements VenueInterface {
|
|
|
827
832
|
getAsset(assetId: AssetID): Promise<Asset>;
|
|
828
833
|
/**
|
|
829
834
|
* List assets with pagination support (convenience delegate to venue.assets.list)
|
|
830
|
-
* @param options - Pagination options (offset, limit)
|
|
831
|
-
*
|
|
832
|
-
|
|
835
|
+
* @param options - Pagination options (offset, limit). Pass
|
|
836
|
+
* `{ expand: 'metadata' }` to get each item's metadata inlined.
|
|
837
|
+
* @returns {Promise<AssetList>} Paginated list of asset ids, or of
|
|
838
|
+
* `{id, metadata}` items when `expand: 'metadata'` is requested
|
|
839
|
+
*/
|
|
840
|
+
listAssets(options: AssetListOptions & {
|
|
841
|
+
expand: 'metadata';
|
|
842
|
+
}): Promise<ExpandedAssetList>;
|
|
833
843
|
listAssets(options?: AssetListOptions): Promise<AssetList>;
|
|
834
844
|
/**
|
|
835
845
|
* List all jobs
|
|
@@ -944,6 +954,9 @@ interface VenueInterface {
|
|
|
944
954
|
getJob(jobId: string): Promise<Job>;
|
|
945
955
|
listJobs(): Promise<string[]>;
|
|
946
956
|
getAsset(assetId: AssetID): Promise<Asset>;
|
|
957
|
+
listAssets(options: AssetListOptions & {
|
|
958
|
+
expand: 'metadata';
|
|
959
|
+
}): Promise<ExpandedAssetList>;
|
|
947
960
|
listAssets(options?: AssetListOptions): Promise<AssetList>;
|
|
948
961
|
didDocument(): Promise<DIDDocument>;
|
|
949
962
|
mcpDiscovery(): Promise<MCPDiscovery>;
|
|
@@ -1040,6 +1053,7 @@ interface StatsData {
|
|
|
1040
1053
|
interface AssetListOptions {
|
|
1041
1054
|
offset?: number;
|
|
1042
1055
|
limit?: number;
|
|
1056
|
+
expand?: 'metadata';
|
|
1043
1057
|
}
|
|
1044
1058
|
interface AssetList {
|
|
1045
1059
|
items: string[];
|
|
@@ -1047,6 +1061,16 @@ interface AssetList {
|
|
|
1047
1061
|
offset: number;
|
|
1048
1062
|
limit: number;
|
|
1049
1063
|
}
|
|
1064
|
+
interface AssetListItem {
|
|
1065
|
+
id: string;
|
|
1066
|
+
metadata: AssetMetadata;
|
|
1067
|
+
}
|
|
1068
|
+
interface ExpandedAssetList {
|
|
1069
|
+
items: AssetListItem[];
|
|
1070
|
+
total: number;
|
|
1071
|
+
offset: number;
|
|
1072
|
+
limit: number;
|
|
1073
|
+
}
|
|
1050
1074
|
interface AssetSummary {
|
|
1051
1075
|
id: string;
|
|
1052
1076
|
name?: string;
|
|
@@ -1866,4 +1890,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
|
|
|
1866
1890
|
*/
|
|
1867
1891
|
declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
|
|
1868
1892
|
|
|
1869
|
-
export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
|
|
1893
|
+
export { type AdapterInfo, AdapterManager, type AdaptersResult, Agent, type AgentCancelTaskInput, type AgentCard, type AgentChatInput, type AgentChatResult, type AgentCompleteTaskResult, type AgentContextInput, type AgentCreateInput, type AgentCreateResult, type AgentDeleteInput, type AgentDeleteResult, type AgentFailTaskResult, type AgentForkInput, type AgentForkResult, type AgentInfoResult, type AgentListInput, type AgentListResult, AgentManager, type AgentMessageInput, type AgentMessageResult, type AgentRenameSessionResult, type AgentRequestInput, type AgentRequestResult, type AgentResumeInput, type AgentSession, type AgentSessionListOptions, type AgentSessionMetadata, AgentSessionNotFoundError, type AgentSessionPage, AgentStatus, type AgentSuspendResult, type AgentTriggerInput, type AgentTriggerResult, type AgentUpdateInput, Asset, type AssetID, type AssetList, type AssetListItem, type AssetListOptions, AssetManager, type AssetMetadata, type AssetMetadataStore, AssetNotFoundError, type AssetPinResult, type AssetSummary, Auth, BasicAuth, BearerAuth, ChatSession, type ConnectionAttempt, type ContentDetails, type ContentHashResult, CoviaConnectionError, type CoviaConnectionErrorOptions, CoviaError, CoviaTimeoutError, type Credentials, CredentialsHTTP, type DIDDocument, type DIDURL, DataAsset, Ed25519Auth, type ExpandedAssetList, type FunctionInfo, type FunctionsResult, Grid, GridError, type GroupCount, type InvokeOptions, type InvokePayload, Job, JobFailedError, JobManager, type JobMetadata, JobNotFoundError, JobStatus, KeyPairAuth, type MCPDiscovery, type MemoryChange, type MemoryEntry, MemoryManager, type MyAssetList, Namespace, NoAuth, NotFoundError, Operation, type OperationDetails, type OperationInfo, OperationManager, type OperationPayload, type OperationRunner, RateLimitError, RunStatus, type SSEEvent, type SecretExtractInput, type SecretExtractResult, SecretManager, type SecretSetInput, type SecretSetResult, type Skill, type SkillFacet, SkillManager, type SkillMetadata, type StatsData, type StatusData, type UCANAttenuation, type UCANCapability, type UCANIssueInput, type UCANIssueResult, UCANManager, type UCANVerifyResult, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, type VenueConstructor, type VenueData, VenueIdentityChangedError, type VenueInterface, type VenueOptions, type WorkspaceAggregateResult, type WorkspaceAppendInput, type WorkspaceAppendResult, type WorkspaceCopyResult, type WorkspaceCountResult, type WorkspaceDeleteInput, type WorkspaceDeleteResult, type WorkspaceInspectInput, type WorkspaceInspectResult, type WorkspaceListInput, type WorkspaceListResult, WorkspaceManager, type WorkspaceReadInput, type WorkspaceReadResult, type WorkspaceSliceInput, type WorkspaceSliceResult, type WorkspaceWriteInput, type WorkspaceWriteResult, assetHash, createSSEEvent, createUCANJWT, decodePublicKey, didFor, didFromPublicKey, didMethod, didUrl, encodePublicKey, fetchStreamWithError, fetchWithError, generateKeyPair, getAssetIdFromPath, getAssetIdFromVenueId, getAssetMetadataStore, getParsedAssetId, grant, hexToPrivateKey, identityToken, isDid, isJobComplete, isJobFinished, isJobPaused, logger, parseDidUrl, parseRetryAfterMs, parseSSEStream, privateKeyToHex, relayDelegation, retryDelayMs, setAssetMetadataStore, venueBaseUrlCandidates };
|
package/dist/index.js
CHANGED
|
@@ -2311,16 +2311,15 @@ var AssetManager = class {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
return new DataAsset(assetId, this.venue, data);
|
|
2313
2313
|
}
|
|
2314
|
-
/**
|
|
2315
|
-
* List assets with pagination support
|
|
2316
|
-
* @param options - Pagination options (offset, limit)
|
|
2317
|
-
*/
|
|
2318
2314
|
async list(options = {}) {
|
|
2319
2315
|
const params = new URLSearchParams();
|
|
2320
2316
|
params.set("offset", String(options.offset ?? 0));
|
|
2321
2317
|
if (options.limit !== void 0) {
|
|
2322
2318
|
params.set("limit", String(options.limit));
|
|
2323
2319
|
}
|
|
2320
|
+
if (options.expand !== void 0) {
|
|
2321
|
+
params.set("expand", options.expand);
|
|
2322
|
+
}
|
|
2324
2323
|
return venueJson(
|
|
2325
2324
|
this.venue,
|
|
2326
2325
|
`/api/v1/assets?${params.toString()}`,
|
|
@@ -3105,11 +3104,6 @@ var Venue = class _Venue {
|
|
|
3105
3104
|
async getAsset(assetId) {
|
|
3106
3105
|
return this.assets.get(assetId);
|
|
3107
3106
|
}
|
|
3108
|
-
/**
|
|
3109
|
-
* List assets with pagination support (convenience delegate to venue.assets.list)
|
|
3110
|
-
* @param options - Pagination options (offset, limit)
|
|
3111
|
-
* @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
|
|
3112
|
-
*/
|
|
3113
3107
|
async listAssets(options = {}) {
|
|
3114
3108
|
return this.assets.list(options);
|
|
3115
3109
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2309,16 +2309,15 @@ var AssetManager = class {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
return new DataAsset(assetId, this.venue, data);
|
|
2311
2311
|
}
|
|
2312
|
-
/**
|
|
2313
|
-
* List assets with pagination support
|
|
2314
|
-
* @param options - Pagination options (offset, limit)
|
|
2315
|
-
*/
|
|
2316
2312
|
async list(options = {}) {
|
|
2317
2313
|
const params = new URLSearchParams();
|
|
2318
2314
|
params.set("offset", String(options.offset ?? 0));
|
|
2319
2315
|
if (options.limit !== void 0) {
|
|
2320
2316
|
params.set("limit", String(options.limit));
|
|
2321
2317
|
}
|
|
2318
|
+
if (options.expand !== void 0) {
|
|
2319
|
+
params.set("expand", options.expand);
|
|
2320
|
+
}
|
|
2322
2321
|
return venueJson(
|
|
2323
2322
|
this.venue,
|
|
2324
2323
|
`/api/v1/assets?${params.toString()}`,
|
|
@@ -3103,11 +3102,6 @@ var Venue = class _Venue {
|
|
|
3103
3102
|
async getAsset(assetId) {
|
|
3104
3103
|
return this.assets.get(assetId);
|
|
3105
3104
|
}
|
|
3106
|
-
/**
|
|
3107
|
-
* List assets with pagination support (convenience delegate to venue.assets.list)
|
|
3108
|
-
* @param options - Pagination options (offset, limit)
|
|
3109
|
-
* @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
|
|
3110
|
-
*/
|
|
3111
3105
|
async listAssets(options = {}) {
|
|
3112
3106
|
return this.assets.list(options);
|
|
3113
3107
|
}
|