@covia/covia-sdk 1.10.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -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
@@ -730,6 +735,35 @@ declare class MemoryManager {
730
735
  forget(number: number, path?: string): Promise<MemoryChange>;
731
736
  }
732
737
 
738
+ interface DLFSManagerVenue extends VenueRequestContext {
739
+ lastKnownStatus?: StatusData;
740
+ }
741
+ declare class DLFSManager {
742
+ private venue;
743
+ private dlfsSupported;
744
+ constructor(venue: DLFSManagerVenue);
745
+ /** A job-free DLFS metadata GET that rejects when the endpoint is unavailable. */
746
+ private dlfsGet;
747
+ /**
748
+ * List the caller's DLFS drives, vault included. **Job-free** on covia
749
+ * venues serving `GET /api/v1/dlfs/drives` (covia#253).
750
+ */
751
+ listDrives(): Promise<DLFSDrivesResult>;
752
+ /**
753
+ * List one directory of a drive. **Job-free** on covia venues serving
754
+ * `GET /api/v1/dlfs/list` (covia#253). Own drives by bare name only —
755
+ * cross-user DID-URL drive addressing isn't supported by this manager.
756
+ */
757
+ list(drive: string, path?: string): Promise<DLFSListResult>;
758
+ /**
759
+ * Job-free file content — `GET /api/v1/content/dlfs/<drive>/<path>`, the
760
+ * same route the venue's generic asset-content resolver already serves
761
+ * (DLFSAdapter implements ContentProvider). Real streamed bytes with a
762
+ * correct Content-Type, not the JSON/base64 shape `dlfs:read` returns.
763
+ */
764
+ getContent(drive: string, path: string): Promise<ReadableStream<Uint8Array>>;
765
+ }
766
+
733
767
  /**
734
768
  * Resolve a non-DID venue id into the ordered list of base URLs that
735
769
  * {@link Venue.connect} will try in turn. Explicit `http(s)://` inputs are
@@ -784,6 +818,7 @@ declare class Venue implements VenueInterface {
784
818
  private _secrets?;
785
819
  private _skills?;
786
820
  private _memory?;
821
+ private _dlfs?;
787
822
  get adapters(): AdapterManager;
788
823
  get agents(): AgentManager;
789
824
  get jobs(): JobManager;
@@ -794,6 +829,7 @@ declare class Venue implements VenueInterface {
794
829
  get secrets(): SecretManager;
795
830
  get skills(): SkillManager;
796
831
  get memory(): MemoryManager;
832
+ get dlfs(): DLFSManager;
797
833
  constructor(options?: VenueOptions);
798
834
  /**
799
835
  * Connect to a venue, validating it with `GET {base}/api/v1/status`. If the
@@ -827,9 +863,14 @@ declare class Venue implements VenueInterface {
827
863
  getAsset(assetId: AssetID): Promise<Asset>;
828
864
  /**
829
865
  * List assets with pagination support (convenience delegate to venue.assets.list)
830
- * @param options - Pagination options (offset, limit)
831
- * @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
832
- */
866
+ * @param options - Pagination options (offset, limit). Pass
867
+ * `{ expand: 'metadata' }` to get each item's metadata inlined.
868
+ * @returns {Promise<AssetList>} Paginated list of asset ids, or of
869
+ * `{id, metadata}` items when `expand: 'metadata'` is requested
870
+ */
871
+ listAssets(options: AssetListOptions & {
872
+ expand: 'metadata';
873
+ }): Promise<ExpandedAssetList>;
833
874
  listAssets(options?: AssetListOptions): Promise<AssetList>;
834
875
  /**
835
876
  * List all jobs
@@ -944,6 +985,9 @@ interface VenueInterface {
944
985
  getJob(jobId: string): Promise<Job>;
945
986
  listJobs(): Promise<string[]>;
946
987
  getAsset(assetId: AssetID): Promise<Asset>;
988
+ listAssets(options: AssetListOptions & {
989
+ expand: 'metadata';
990
+ }): Promise<ExpandedAssetList>;
947
991
  listAssets(options?: AssetListOptions): Promise<AssetList>;
948
992
  didDocument(): Promise<DIDDocument>;
949
993
  mcpDiscovery(): Promise<MCPDiscovery>;
@@ -1040,6 +1084,7 @@ interface StatsData {
1040
1084
  interface AssetListOptions {
1041
1085
  offset?: number;
1042
1086
  limit?: number;
1087
+ expand?: 'metadata';
1043
1088
  }
1044
1089
  interface AssetList {
1045
1090
  items: string[];
@@ -1047,6 +1092,16 @@ interface AssetList {
1047
1092
  offset: number;
1048
1093
  limit: number;
1049
1094
  }
1095
+ interface AssetListItem {
1096
+ id: string;
1097
+ metadata: AssetMetadata;
1098
+ }
1099
+ interface ExpandedAssetList {
1100
+ items: AssetListItem[];
1101
+ total: number;
1102
+ offset: number;
1103
+ limit: number;
1104
+ }
1050
1105
  interface AssetSummary {
1051
1106
  id: string;
1052
1107
  name?: string;
@@ -1459,6 +1514,19 @@ interface SecretExtractResult {
1459
1514
  name: string;
1460
1515
  value: string;
1461
1516
  }
1517
+ interface DLFSEntry {
1518
+ name: string;
1519
+ type: "file" | "directory";
1520
+ size?: number;
1521
+ modified?: string;
1522
+ }
1523
+ interface DLFSDrivesResult {
1524
+ drives: string[];
1525
+ }
1526
+ interface DLFSListResult {
1527
+ entries: DLFSEntry[];
1528
+ warnings?: string[];
1529
+ }
1462
1530
  interface FunctionInfo {
1463
1531
  name: string;
1464
1532
  id: string;
@@ -1866,4 +1934,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
1866
1934
  */
1867
1935
  declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
1868
1936
 
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 };
1937
+ 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, type DLFSDrivesResult, type DLFSEntry, type DLFSListResult, DLFSManager, 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
@@ -730,6 +735,35 @@ declare class MemoryManager {
730
735
  forget(number: number, path?: string): Promise<MemoryChange>;
731
736
  }
732
737
 
738
+ interface DLFSManagerVenue extends VenueRequestContext {
739
+ lastKnownStatus?: StatusData;
740
+ }
741
+ declare class DLFSManager {
742
+ private venue;
743
+ private dlfsSupported;
744
+ constructor(venue: DLFSManagerVenue);
745
+ /** A job-free DLFS metadata GET that rejects when the endpoint is unavailable. */
746
+ private dlfsGet;
747
+ /**
748
+ * List the caller's DLFS drives, vault included. **Job-free** on covia
749
+ * venues serving `GET /api/v1/dlfs/drives` (covia#253).
750
+ */
751
+ listDrives(): Promise<DLFSDrivesResult>;
752
+ /**
753
+ * List one directory of a drive. **Job-free** on covia venues serving
754
+ * `GET /api/v1/dlfs/list` (covia#253). Own drives by bare name only —
755
+ * cross-user DID-URL drive addressing isn't supported by this manager.
756
+ */
757
+ list(drive: string, path?: string): Promise<DLFSListResult>;
758
+ /**
759
+ * Job-free file content — `GET /api/v1/content/dlfs/<drive>/<path>`, the
760
+ * same route the venue's generic asset-content resolver already serves
761
+ * (DLFSAdapter implements ContentProvider). Real streamed bytes with a
762
+ * correct Content-Type, not the JSON/base64 shape `dlfs:read` returns.
763
+ */
764
+ getContent(drive: string, path: string): Promise<ReadableStream<Uint8Array>>;
765
+ }
766
+
733
767
  /**
734
768
  * Resolve a non-DID venue id into the ordered list of base URLs that
735
769
  * {@link Venue.connect} will try in turn. Explicit `http(s)://` inputs are
@@ -784,6 +818,7 @@ declare class Venue implements VenueInterface {
784
818
  private _secrets?;
785
819
  private _skills?;
786
820
  private _memory?;
821
+ private _dlfs?;
787
822
  get adapters(): AdapterManager;
788
823
  get agents(): AgentManager;
789
824
  get jobs(): JobManager;
@@ -794,6 +829,7 @@ declare class Venue implements VenueInterface {
794
829
  get secrets(): SecretManager;
795
830
  get skills(): SkillManager;
796
831
  get memory(): MemoryManager;
832
+ get dlfs(): DLFSManager;
797
833
  constructor(options?: VenueOptions);
798
834
  /**
799
835
  * Connect to a venue, validating it with `GET {base}/api/v1/status`. If the
@@ -827,9 +863,14 @@ declare class Venue implements VenueInterface {
827
863
  getAsset(assetId: AssetID): Promise<Asset>;
828
864
  /**
829
865
  * List assets with pagination support (convenience delegate to venue.assets.list)
830
- * @param options - Pagination options (offset, limit)
831
- * @returns {Promise<AssetList>} Paginated list of asset IDs with metadata
832
- */
866
+ * @param options - Pagination options (offset, limit). Pass
867
+ * `{ expand: 'metadata' }` to get each item's metadata inlined.
868
+ * @returns {Promise<AssetList>} Paginated list of asset ids, or of
869
+ * `{id, metadata}` items when `expand: 'metadata'` is requested
870
+ */
871
+ listAssets(options: AssetListOptions & {
872
+ expand: 'metadata';
873
+ }): Promise<ExpandedAssetList>;
833
874
  listAssets(options?: AssetListOptions): Promise<AssetList>;
834
875
  /**
835
876
  * List all jobs
@@ -944,6 +985,9 @@ interface VenueInterface {
944
985
  getJob(jobId: string): Promise<Job>;
945
986
  listJobs(): Promise<string[]>;
946
987
  getAsset(assetId: AssetID): Promise<Asset>;
988
+ listAssets(options: AssetListOptions & {
989
+ expand: 'metadata';
990
+ }): Promise<ExpandedAssetList>;
947
991
  listAssets(options?: AssetListOptions): Promise<AssetList>;
948
992
  didDocument(): Promise<DIDDocument>;
949
993
  mcpDiscovery(): Promise<MCPDiscovery>;
@@ -1040,6 +1084,7 @@ interface StatsData {
1040
1084
  interface AssetListOptions {
1041
1085
  offset?: number;
1042
1086
  limit?: number;
1087
+ expand?: 'metadata';
1043
1088
  }
1044
1089
  interface AssetList {
1045
1090
  items: string[];
@@ -1047,6 +1092,16 @@ interface AssetList {
1047
1092
  offset: number;
1048
1093
  limit: number;
1049
1094
  }
1095
+ interface AssetListItem {
1096
+ id: string;
1097
+ metadata: AssetMetadata;
1098
+ }
1099
+ interface ExpandedAssetList {
1100
+ items: AssetListItem[];
1101
+ total: number;
1102
+ offset: number;
1103
+ limit: number;
1104
+ }
1050
1105
  interface AssetSummary {
1051
1106
  id: string;
1052
1107
  name?: string;
@@ -1459,6 +1514,19 @@ interface SecretExtractResult {
1459
1514
  name: string;
1460
1515
  value: string;
1461
1516
  }
1517
+ interface DLFSEntry {
1518
+ name: string;
1519
+ type: "file" | "directory";
1520
+ size?: number;
1521
+ modified?: string;
1522
+ }
1523
+ interface DLFSDrivesResult {
1524
+ drives: string[];
1525
+ }
1526
+ interface DLFSListResult {
1527
+ entries: DLFSEntry[];
1528
+ warnings?: string[];
1529
+ }
1462
1530
  interface FunctionInfo {
1463
1531
  name: string;
1464
1532
  id: string;
@@ -1866,4 +1934,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
1866
1934
  */
1867
1935
  declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
1868
1936
 
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 };
1937
+ 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, type DLFSDrivesResult, type DLFSEntry, type DLFSListResult, DLFSManager, 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()}`,
@@ -2799,6 +2798,59 @@ var MemoryManager = class {
2799
2798
  }
2800
2799
  };
2801
2800
 
2801
+ // src/DLFSManager.ts
2802
+ var DLFSManager = class {
2803
+ constructor(venue) {
2804
+ this.venue = venue;
2805
+ // Whether this venue serves GET /api/v1/dlfs/* — flipped on a route-missing
2806
+ // 404 so a pre-#253 venue pays the probe once, not one failed GET per read.
2807
+ this.dlfsSupported = true;
2808
+ }
2809
+ /** A job-free DLFS metadata GET that rejects when the endpoint is unavailable. */
2810
+ async dlfsGet(path) {
2811
+ if (!this.dlfsSupported) throw new UnsupportedVenueFeatureError("venue DLFS browsing");
2812
+ try {
2813
+ return await venueJson(this.venue, `/api/v1/dlfs${path}`);
2814
+ } catch (e) {
2815
+ if (!(e instanceof NotFoundError)) throw e;
2816
+ if (!ROUTE_MISSING_404.test(e.message)) throw e;
2817
+ this.dlfsSupported = false;
2818
+ throw new UnsupportedVenueFeatureError("venue DLFS browsing");
2819
+ }
2820
+ }
2821
+ /**
2822
+ * List the caller's DLFS drives, vault included. **Job-free** on covia
2823
+ * venues serving `GET /api/v1/dlfs/drives` (covia#253).
2824
+ */
2825
+ async listDrives() {
2826
+ return this.dlfsGet("/drives");
2827
+ }
2828
+ /**
2829
+ * List one directory of a drive. **Job-free** on covia venues serving
2830
+ * `GET /api/v1/dlfs/list` (covia#253). Own drives by bare name only —
2831
+ * cross-user DID-URL drive addressing isn't supported by this manager.
2832
+ */
2833
+ async list(drive, path) {
2834
+ const qs = new URLSearchParams({ drive, ...path ? { path } : {} });
2835
+ return this.dlfsGet(`/list?${qs}`);
2836
+ }
2837
+ /**
2838
+ * Job-free file content — `GET /api/v1/content/dlfs/<drive>/<path>`, the
2839
+ * same route the venue's generic asset-content resolver already serves
2840
+ * (DLFSAdapter implements ContentProvider). Real streamed bytes with a
2841
+ * correct Content-Type, not the JSON/base64 shape `dlfs:read` returns.
2842
+ */
2843
+ async getContent(drive, path) {
2844
+ const segments = path.split("/").filter(Boolean).map(encodeURIComponent).join("/");
2845
+ const response = await venueStream(
2846
+ this.venue,
2847
+ `/api/v1/content/dlfs/${encodeURIComponent(drive)}/${segments}`
2848
+ );
2849
+ if (!response.body) throw new Error("Empty response body for DLFS content read");
2850
+ return response.body;
2851
+ }
2852
+ };
2853
+
2802
2854
  // src/Agent.ts
2803
2855
  var Agent = class _Agent {
2804
2856
  constructor(id, venue) {
@@ -2997,6 +3049,9 @@ var Venue = class _Venue {
2997
3049
  get memory() {
2998
3050
  return this._memory ?? (this._memory = new MemoryManager(this));
2999
3051
  }
3052
+ get dlfs() {
3053
+ return this._dlfs ?? (this._dlfs = new DLFSManager(this));
3054
+ }
3000
3055
  /**
3001
3056
  * Connect to a venue, validating it with `GET {base}/api/v1/status`. If the
3002
3057
  * venue is auth-gated (status answers 401/403 — public access disabled), the
@@ -3105,11 +3160,6 @@ var Venue = class _Venue {
3105
3160
  async getAsset(assetId) {
3106
3161
  return this.assets.get(assetId);
3107
3162
  }
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
3163
  async listAssets(options = {}) {
3114
3164
  return this.assets.list(options);
3115
3165
  }
@@ -3349,6 +3399,7 @@ exports.CoviaConnectionError = CoviaConnectionError;
3349
3399
  exports.CoviaError = CoviaError;
3350
3400
  exports.CoviaTimeoutError = CoviaTimeoutError;
3351
3401
  exports.CredentialsHTTP = CredentialsHTTP;
3402
+ exports.DLFSManager = DLFSManager;
3352
3403
  exports.DataAsset = DataAsset;
3353
3404
  exports.Ed25519Auth = Ed25519Auth;
3354
3405
  exports.Grid = Grid;
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()}`,
@@ -2797,6 +2796,59 @@ var MemoryManager = class {
2797
2796
  }
2798
2797
  };
2799
2798
 
2799
+ // src/DLFSManager.ts
2800
+ var DLFSManager = class {
2801
+ constructor(venue) {
2802
+ this.venue = venue;
2803
+ // Whether this venue serves GET /api/v1/dlfs/* — flipped on a route-missing
2804
+ // 404 so a pre-#253 venue pays the probe once, not one failed GET per read.
2805
+ this.dlfsSupported = true;
2806
+ }
2807
+ /** A job-free DLFS metadata GET that rejects when the endpoint is unavailable. */
2808
+ async dlfsGet(path) {
2809
+ if (!this.dlfsSupported) throw new UnsupportedVenueFeatureError("venue DLFS browsing");
2810
+ try {
2811
+ return await venueJson(this.venue, `/api/v1/dlfs${path}`);
2812
+ } catch (e) {
2813
+ if (!(e instanceof NotFoundError)) throw e;
2814
+ if (!ROUTE_MISSING_404.test(e.message)) throw e;
2815
+ this.dlfsSupported = false;
2816
+ throw new UnsupportedVenueFeatureError("venue DLFS browsing");
2817
+ }
2818
+ }
2819
+ /**
2820
+ * List the caller's DLFS drives, vault included. **Job-free** on covia
2821
+ * venues serving `GET /api/v1/dlfs/drives` (covia#253).
2822
+ */
2823
+ async listDrives() {
2824
+ return this.dlfsGet("/drives");
2825
+ }
2826
+ /**
2827
+ * List one directory of a drive. **Job-free** on covia venues serving
2828
+ * `GET /api/v1/dlfs/list` (covia#253). Own drives by bare name only —
2829
+ * cross-user DID-URL drive addressing isn't supported by this manager.
2830
+ */
2831
+ async list(drive, path) {
2832
+ const qs = new URLSearchParams({ drive, ...path ? { path } : {} });
2833
+ return this.dlfsGet(`/list?${qs}`);
2834
+ }
2835
+ /**
2836
+ * Job-free file content — `GET /api/v1/content/dlfs/<drive>/<path>`, the
2837
+ * same route the venue's generic asset-content resolver already serves
2838
+ * (DLFSAdapter implements ContentProvider). Real streamed bytes with a
2839
+ * correct Content-Type, not the JSON/base64 shape `dlfs:read` returns.
2840
+ */
2841
+ async getContent(drive, path) {
2842
+ const segments = path.split("/").filter(Boolean).map(encodeURIComponent).join("/");
2843
+ const response = await venueStream(
2844
+ this.venue,
2845
+ `/api/v1/content/dlfs/${encodeURIComponent(drive)}/${segments}`
2846
+ );
2847
+ if (!response.body) throw new Error("Empty response body for DLFS content read");
2848
+ return response.body;
2849
+ }
2850
+ };
2851
+
2800
2852
  // src/Agent.ts
2801
2853
  var Agent = class _Agent {
2802
2854
  constructor(id, venue) {
@@ -2995,6 +3047,9 @@ var Venue = class _Venue {
2995
3047
  get memory() {
2996
3048
  return this._memory ?? (this._memory = new MemoryManager(this));
2997
3049
  }
3050
+ get dlfs() {
3051
+ return this._dlfs ?? (this._dlfs = new DLFSManager(this));
3052
+ }
2998
3053
  /**
2999
3054
  * Connect to a venue, validating it with `GET {base}/api/v1/status`. If the
3000
3055
  * venue is auth-gated (status answers 401/403 — public access disabled), the
@@ -3103,11 +3158,6 @@ var Venue = class _Venue {
3103
3158
  async getAsset(assetId) {
3104
3159
  return this.assets.get(assetId);
3105
3160
  }
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
3161
  async listAssets(options = {}) {
3112
3162
  return this.assets.list(options);
3113
3163
  }
@@ -3331,4 +3381,4 @@ function relayDelegation(privateKey, venueDID, lifetimeSeconds, caps = []) {
3331
3381
  (*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) *)
3332
3382
  */
3333
3383
 
3334
- export { AdapterManager, Agent, AgentManager, AgentSessionNotFoundError, AgentStatus, Asset, AssetManager, AssetNotFoundError, Auth, BasicAuth, BearerAuth, ChatSession, CoviaConnectionError, CoviaError, CoviaTimeoutError, CredentialsHTTP, DataAsset, Ed25519Auth, Grid, GridError, Job, JobFailedError, JobManager, JobNotFoundError, JobStatus, KeyPairAuth, MemoryManager, Namespace, NoAuth, NotFoundError, Operation, OperationManager, RateLimitError, RunStatus, SecretManager, SkillManager, UCANManager, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, VenueIdentityChangedError, WorkspaceManager, 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 };
3384
+ export { AdapterManager, Agent, AgentManager, AgentSessionNotFoundError, AgentStatus, Asset, AssetManager, AssetNotFoundError, Auth, BasicAuth, BearerAuth, ChatSession, CoviaConnectionError, CoviaError, CoviaTimeoutError, CredentialsHTTP, DLFSManager, DataAsset, Ed25519Auth, Grid, GridError, Job, JobFailedError, JobManager, JobNotFoundError, JobStatus, KeyPairAuth, MemoryManager, Namespace, NoAuth, NotFoundError, Operation, OperationManager, RateLimitError, RunStatus, SecretManager, SkillManager, UCANManager, UnsupportedVenueFeatureError, VENUE_RELAY, Venue, VenueIdentityChangedError, WorkspaceManager, 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covia/covia-sdk",
3
- "version": "1.10.1",
3
+ "version": "1.12.0",
4
4
  "description": "Typescript library for covia-ai",
5
5
  "packageManager": "pnpm@11.9.0",
6
6
  "main": "./dist/index.js",