@verana-labs/vs-agent-client 2.0.0-dev.78 → 2.0.0-dev.79

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/README.md CHANGED
@@ -78,4 +78,3 @@ The spec lists these, main does not serve them yet:
78
78
 
79
79
  - `deleteCredentialExchange` (`DELETE /didcomm/credential-exchanges/{id}`)
80
80
  - every OpenID4VC method under `/openid4vc`
81
- - `connectionId` on `createPresentationRequest` and `createCredentialOffer`, both mint an out-of-band invitation and reject the field
@@ -204,15 +204,21 @@ export interface RequestedCredentialInput {
204
204
  }
205
205
  export interface CreatePresentationRequestBody {
206
206
  requestedCredentials: RequestedCredentialInput[];
207
+ /** An established connection to send the request on, in place of an invitation. */
208
+ connectionId?: string;
207
209
  requireNonRevocation?: boolean;
208
210
  autoAccept?: boolean;
211
+ /** The agent ignores it when `connectionId` is present. */
209
212
  useLegacyDid?: boolean;
213
+ /** The agent ignores it when `connectionId` is present. */
210
214
  didcommVersion?: DidCommVersion;
211
215
  }
212
216
  export interface CreatePresentationRequestResponse {
213
217
  proofExchangeId: string;
214
- invitation: Record<string, unknown>;
215
- shortUrl: string;
218
+ /** Absent when the request named a `connectionId`. */
219
+ invitation?: Record<string, unknown>;
220
+ /** Absent when the request named a `connectionId`. */
221
+ shortUrl?: string;
216
222
  }
217
223
  export interface DeclineExchangeBody {
218
224
  reason?: string;
@@ -233,14 +239,20 @@ export interface CredentialExchangeRecord {
233
239
  export interface CreateCredentialOfferBody {
234
240
  credentialDefinitionId: string;
235
241
  claims: Claim[];
242
+ /** An established connection to send the offer on, in place of an invitation. */
243
+ connectionId?: string;
236
244
  revocationRegistryDefinitionId?: string;
237
245
  revocationRegistryIndex?: number;
238
246
  autoAccept?: boolean;
247
+ /** The agent ignores it when `connectionId` is present. */
239
248
  useLegacyDid?: boolean;
249
+ /** The agent ignores it when `connectionId` is present. */
240
250
  didcommVersion?: DidCommVersion;
241
251
  }
242
252
  export interface CreateCredentialOfferResponse {
243
253
  credentialExchangeId: string;
244
- invitation: Record<string, unknown>;
245
- shortUrl: string;
254
+ /** Absent when the request named a `connectionId`. */
255
+ invitation?: Record<string, unknown>;
256
+ /** Absent when the request named a `connectionId`. */
257
+ shortUrl?: string;
246
258
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@verana-labs/vs-agent-client",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "2.0.0-dev.78",
5
+ "version": "2.0.0-dev.79",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/verana-labs/vs-agent"