@covia/covia-sdk 1.9.0 → 1.10.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
@@ -262,6 +262,21 @@ declare class Ed25519Auth extends Auth {
262
262
  */
263
263
  constructor(privateKey: Uint8Array, tokenLifetimeSeconds?: number);
264
264
  apply(headers: Record<string, string>, audience?: string): void;
265
+ /**
266
+ * Mint a bearer-usable identity JWT for this key — the same token
267
+ * {@link apply} attaches to every request, exposed for callers that need
268
+ * to present this identity elsewhere (CLI tools, curl, another client:
269
+ * `Authorization: Bearer <token>`).
270
+ *
271
+ * An explicitly-pinned {@link audience} wins; otherwise the JWT `aud` is
272
+ * bound to the venue DID given here. A token with no `aud` is replayable
273
+ * at any venue that accepts the caller's DID, so minting one is refused
274
+ * rather than silently weakened.
275
+ *
276
+ * @param audience - The venue DID the token is bound to (`aud` claim).
277
+ * @param lifetimeSeconds - Token lifetime; defaults to this instance's.
278
+ */
279
+ identityToken(audience?: string, lifetimeSeconds?: number): string;
265
280
  /** The caller's DID derived from the public key. */
266
281
  getDID(): string;
267
282
  /**
@@ -451,6 +466,13 @@ declare class AssetManager {
451
466
  * @param options - Pagination options (offset, limit)
452
467
  */
453
468
  list(options?: AssetListOptions): Promise<AssetList>;
469
+ /**
470
+ * List the authenticated caller's own assets — the per-user a/ namespace
471
+ * populated by `store`/`pin`, distinct from the venue-wide catalog `list()`
472
+ * reads. Job-free (a plain GET, not an operation invocation).
473
+ * @param options - Pagination options (offset, limit)
474
+ */
475
+ listMine(options?: AssetListOptions): Promise<MyAssetList>;
454
476
  /**
455
477
  * Register a new asset
456
478
  * @param assetData - Asset configuration
@@ -1018,6 +1040,18 @@ interface AssetList {
1018
1040
  offset: number;
1019
1041
  limit: number;
1020
1042
  }
1043
+ interface AssetSummary {
1044
+ id: string;
1045
+ name?: string;
1046
+ type?: string;
1047
+ description?: string;
1048
+ }
1049
+ interface MyAssetList {
1050
+ items: AssetSummary[];
1051
+ total: number;
1052
+ offset: number;
1053
+ limit: number;
1054
+ }
1021
1055
  interface MCPDiscovery {
1022
1056
  mcp_version?: string;
1023
1057
  server_url?: string;
@@ -1825,4 +1859,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
1825
1859
  */
1826
1860
  declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
1827
1861
 
1828
- 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, 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, 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 };
1862
+ 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 };
package/dist/index.d.ts CHANGED
@@ -262,6 +262,21 @@ declare class Ed25519Auth extends Auth {
262
262
  */
263
263
  constructor(privateKey: Uint8Array, tokenLifetimeSeconds?: number);
264
264
  apply(headers: Record<string, string>, audience?: string): void;
265
+ /**
266
+ * Mint a bearer-usable identity JWT for this key — the same token
267
+ * {@link apply} attaches to every request, exposed for callers that need
268
+ * to present this identity elsewhere (CLI tools, curl, another client:
269
+ * `Authorization: Bearer <token>`).
270
+ *
271
+ * An explicitly-pinned {@link audience} wins; otherwise the JWT `aud` is
272
+ * bound to the venue DID given here. A token with no `aud` is replayable
273
+ * at any venue that accepts the caller's DID, so minting one is refused
274
+ * rather than silently weakened.
275
+ *
276
+ * @param audience - The venue DID the token is bound to (`aud` claim).
277
+ * @param lifetimeSeconds - Token lifetime; defaults to this instance's.
278
+ */
279
+ identityToken(audience?: string, lifetimeSeconds?: number): string;
265
280
  /** The caller's DID derived from the public key. */
266
281
  getDID(): string;
267
282
  /**
@@ -451,6 +466,13 @@ declare class AssetManager {
451
466
  * @param options - Pagination options (offset, limit)
452
467
  */
453
468
  list(options?: AssetListOptions): Promise<AssetList>;
469
+ /**
470
+ * List the authenticated caller's own assets — the per-user a/ namespace
471
+ * populated by `store`/`pin`, distinct from the venue-wide catalog `list()`
472
+ * reads. Job-free (a plain GET, not an operation invocation).
473
+ * @param options - Pagination options (offset, limit)
474
+ */
475
+ listMine(options?: AssetListOptions): Promise<MyAssetList>;
454
476
  /**
455
477
  * Register a new asset
456
478
  * @param assetData - Asset configuration
@@ -1018,6 +1040,18 @@ interface AssetList {
1018
1040
  offset: number;
1019
1041
  limit: number;
1020
1042
  }
1043
+ interface AssetSummary {
1044
+ id: string;
1045
+ name?: string;
1046
+ type?: string;
1047
+ description?: string;
1048
+ }
1049
+ interface MyAssetList {
1050
+ items: AssetSummary[];
1051
+ total: number;
1052
+ offset: number;
1053
+ limit: number;
1054
+ }
1021
1055
  interface MCPDiscovery {
1022
1056
  mcp_version?: string;
1023
1057
  server_url?: string;
@@ -1825,4 +1859,4 @@ declare function grant(ownerPrivateKey: Uint8Array, audienceDID: string, withRes
1825
1859
  */
1826
1860
  declare function relayDelegation(privateKey: Uint8Array, venueDID: string, lifetimeSeconds: number, caps?: UCANCapability[]): string;
1827
1861
 
1828
- 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, 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, 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 };
1862
+ 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 };
package/dist/index.js CHANGED
@@ -1217,14 +1217,30 @@ var Ed25519Auth = class _Ed25519Auth extends Auth {
1217
1217
  this._lifetime = tokenLifetimeSeconds;
1218
1218
  }
1219
1219
  apply(headers, audience) {
1220
+ headers["Authorization"] = `Bearer ${this.identityToken(audience)}`;
1221
+ }
1222
+ /**
1223
+ * Mint a bearer-usable identity JWT for this key — the same token
1224
+ * {@link apply} attaches to every request, exposed for callers that need
1225
+ * to present this identity elsewhere (CLI tools, curl, another client:
1226
+ * `Authorization: Bearer <token>`).
1227
+ *
1228
+ * An explicitly-pinned {@link audience} wins; otherwise the JWT `aud` is
1229
+ * bound to the venue DID given here. A token with no `aud` is replayable
1230
+ * at any venue that accepts the caller's DID, so minting one is refused
1231
+ * rather than silently weakened.
1232
+ *
1233
+ * @param audience - The venue DID the token is bound to (`aud` claim).
1234
+ * @param lifetimeSeconds - Token lifetime; defaults to this instance's.
1235
+ */
1236
+ identityToken(audience, lifetimeSeconds) {
1220
1237
  const aud = this._audience ?? (audience || void 0);
1221
1238
  if (!aud) {
1222
1239
  throw new CoviaError(
1223
1240
  "Ed25519Auth requires a venue audience to bind the token to: connect via Grid.connect()/Venue.connect() so the venue DID is known, or pin auth.audience explicitly."
1224
1241
  );
1225
1242
  }
1226
- const jwt = createEdDSAJWT(this._privateKey, this._lifetime, aud);
1227
- headers["Authorization"] = `Bearer ${jwt}`;
1243
+ return createEdDSAJWT(this._privateKey, lifetimeSeconds ?? this._lifetime, aud);
1228
1244
  }
1229
1245
  /** The caller's DID derived from the public key. */
1230
1246
  getDID() {
@@ -2311,6 +2327,25 @@ var AssetManager = class {
2311
2327
  { contentType: null }
2312
2328
  );
2313
2329
  }
2330
+ /**
2331
+ * List the authenticated caller's own assets — the per-user a/ namespace
2332
+ * populated by `store`/`pin`, distinct from the venue-wide catalog `list()`
2333
+ * reads. Job-free (a plain GET, not an operation invocation).
2334
+ * @param options - Pagination options (offset, limit)
2335
+ */
2336
+ async listMine(options = {}) {
2337
+ const params = new URLSearchParams();
2338
+ params.set("scope", "own");
2339
+ params.set("offset", String(options.offset ?? 0));
2340
+ if (options.limit !== void 0) {
2341
+ params.set("limit", String(options.limit));
2342
+ }
2343
+ return venueJson(
2344
+ this.venue,
2345
+ `/api/v1/assets?${params.toString()}`,
2346
+ { contentType: null }
2347
+ );
2348
+ }
2314
2349
  /**
2315
2350
  * Register a new asset
2316
2351
  * @param assetData - Asset configuration
package/dist/index.mjs CHANGED
@@ -1215,14 +1215,30 @@ var Ed25519Auth = class _Ed25519Auth extends Auth {
1215
1215
  this._lifetime = tokenLifetimeSeconds;
1216
1216
  }
1217
1217
  apply(headers, audience) {
1218
+ headers["Authorization"] = `Bearer ${this.identityToken(audience)}`;
1219
+ }
1220
+ /**
1221
+ * Mint a bearer-usable identity JWT for this key — the same token
1222
+ * {@link apply} attaches to every request, exposed for callers that need
1223
+ * to present this identity elsewhere (CLI tools, curl, another client:
1224
+ * `Authorization: Bearer <token>`).
1225
+ *
1226
+ * An explicitly-pinned {@link audience} wins; otherwise the JWT `aud` is
1227
+ * bound to the venue DID given here. A token with no `aud` is replayable
1228
+ * at any venue that accepts the caller's DID, so minting one is refused
1229
+ * rather than silently weakened.
1230
+ *
1231
+ * @param audience - The venue DID the token is bound to (`aud` claim).
1232
+ * @param lifetimeSeconds - Token lifetime; defaults to this instance's.
1233
+ */
1234
+ identityToken(audience, lifetimeSeconds) {
1218
1235
  const aud = this._audience ?? (audience || void 0);
1219
1236
  if (!aud) {
1220
1237
  throw new CoviaError(
1221
1238
  "Ed25519Auth requires a venue audience to bind the token to: connect via Grid.connect()/Venue.connect() so the venue DID is known, or pin auth.audience explicitly."
1222
1239
  );
1223
1240
  }
1224
- const jwt = createEdDSAJWT(this._privateKey, this._lifetime, aud);
1225
- headers["Authorization"] = `Bearer ${jwt}`;
1241
+ return createEdDSAJWT(this._privateKey, lifetimeSeconds ?? this._lifetime, aud);
1226
1242
  }
1227
1243
  /** The caller's DID derived from the public key. */
1228
1244
  getDID() {
@@ -2309,6 +2325,25 @@ var AssetManager = class {
2309
2325
  { contentType: null }
2310
2326
  );
2311
2327
  }
2328
+ /**
2329
+ * List the authenticated caller's own assets — the per-user a/ namespace
2330
+ * populated by `store`/`pin`, distinct from the venue-wide catalog `list()`
2331
+ * reads. Job-free (a plain GET, not an operation invocation).
2332
+ * @param options - Pagination options (offset, limit)
2333
+ */
2334
+ async listMine(options = {}) {
2335
+ const params = new URLSearchParams();
2336
+ params.set("scope", "own");
2337
+ params.set("offset", String(options.offset ?? 0));
2338
+ if (options.limit !== void 0) {
2339
+ params.set("limit", String(options.limit));
2340
+ }
2341
+ return venueJson(
2342
+ this.venue,
2343
+ `/api/v1/assets?${params.toString()}`,
2344
+ { contentType: null }
2345
+ );
2346
+ }
2312
2347
  /**
2313
2348
  * Register a new asset
2314
2349
  * @param assetData - Asset configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covia/covia-sdk",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Typescript library for covia-ai",
5
5
  "packageManager": "pnpm@11.9.0",
6
6
  "main": "./dist/index.js",