@triveria/wallet 0.0.297 → 0.0.299

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.
Files changed (3) hide show
  1. package/api.d.ts +69 -8
  2. package/api.js +32 -12
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -437,6 +437,10 @@ export interface DocumentSignatureValidity {
437
437
  * Signing certificate in base64 encoded form
438
438
  */
439
439
  'signingCertificate': string;
440
+ /**
441
+ * Whether the signature covers the document in full. A PDF may carry content appended after a signature was applied - an incremental update such as an embedded verifiable presentation. That content is outside the signature\'s ByteRange, so the signature says nothing about it: the signature is valid for the revision it signed, but the document as a whole is not covered. Absent when the signature format has no notion of partial coverage.
442
+ */
443
+ 'coversWholeDocument'?: boolean;
440
444
  }
441
445
  export declare const DocumentSignatureValidityVerificationResultEnum: {
442
446
  readonly Valid: "valid";
@@ -1107,6 +1111,9 @@ export declare const WalletNotificationEventType: {
1107
1111
  readonly WmpCredentialOffer: "wmp.credential_offer";
1108
1112
  readonly WmpCredentialVerificationRequest: "wmp.credential_verification_request";
1109
1113
  readonly WmpError: "wmp.error";
1114
+ readonly WmpMessage: "wmp.message";
1115
+ readonly WmpIdentityAssertionRequest: "wmp.identity_assertion_request";
1116
+ readonly WmpIdentityAssertionReceived: "wmp.identity_assertion_received";
1110
1117
  };
1111
1118
  export type WalletNotificationEventType = typeof WalletNotificationEventType[keyof typeof WalletNotificationEventType];
1112
1119
  export interface WalletNotificationHistory {
@@ -1144,6 +1151,31 @@ export interface WmpAcceptInvitationPayload {
1144
1151
  */
1145
1152
  'invitationUrl': string;
1146
1153
  }
1154
+ /**
1155
+ * Open (authenticate) the session after the identity assertion exchange.
1156
+ */
1157
+ export interface WmpAuthenticateSession {
1158
+ 'type': WmpAuthenticateSessionTypeEnum;
1159
+ /**
1160
+ * Set true to mark the session fully authenticated and open it for traffic.
1161
+ */
1162
+ 'authenticated': boolean;
1163
+ }
1164
+ export declare const WmpAuthenticateSessionTypeEnum: {
1165
+ readonly Authenticate: "authenticate";
1166
+ };
1167
+ export type WmpAuthenticateSessionTypeEnum = typeof WmpAuthenticateSessionTypeEnum[keyof typeof WmpAuthenticateSessionTypeEnum];
1168
+ /**
1169
+ * @type WmpClientRequestBody
1170
+ * Action to take on a pending WMP client request, discriminated by `type`: `process` an offer/verification request, `identity_assertion` to present a credential, or `authenticate` to open the session.
1171
+ */
1172
+ export type WmpClientRequestBody = {
1173
+ type: 'authenticate';
1174
+ } & WmpAuthenticateSession | {
1175
+ type: 'identity_assertion';
1176
+ } & WmpProvideIdentityAssertion | {
1177
+ type: 'process';
1178
+ } & WmpProcessClientRequest;
1147
1179
  export interface WmpCreateInvitationResponse {
1148
1180
  /**
1149
1181
  * URL at which the invitation can be downloaded
@@ -1194,7 +1226,32 @@ export interface WmpNotification {
1194
1226
  'invitationUrl'?: string;
1195
1227
  'id': string;
1196
1228
  'error'?: string;
1229
+ 'identityAssertion'?: CredentialWrapper;
1197
1230
  }
1231
+ /**
1232
+ * Process a pending credential offer or verification request identified by the path id.
1233
+ */
1234
+ export interface WmpProcessClientRequest {
1235
+ 'type': WmpProcessClientRequestTypeEnum;
1236
+ }
1237
+ export declare const WmpProcessClientRequestTypeEnum: {
1238
+ readonly Process: "process";
1239
+ };
1240
+ export type WmpProcessClientRequestTypeEnum = typeof WmpProcessClientRequestTypeEnum[keyof typeof WmpProcessClientRequestTypeEnum];
1241
+ /**
1242
+ * Provide a credential to present as the identity assertion for the session.
1243
+ */
1244
+ export interface WmpProvideIdentityAssertion {
1245
+ 'type': WmpProvideIdentityAssertionTypeEnum;
1246
+ /**
1247
+ * Id of the wallet credential to present as the identity assertion VP.
1248
+ */
1249
+ 'credentialId': string;
1250
+ }
1251
+ export declare const WmpProvideIdentityAssertionTypeEnum: {
1252
+ readonly IdentityAssertion: "identity_assertion";
1253
+ };
1254
+ export type WmpProvideIdentityAssertionTypeEnum = typeof WmpProvideIdentityAssertionTypeEnum[keyof typeof WmpProvideIdentityAssertionTypeEnum];
1198
1255
  export interface WmpRequest {
1199
1256
  'type': WmpRequestType;
1200
1257
  'requestUrl': string;
@@ -1693,13 +1750,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1693
1750
  */
1694
1751
  wmpClientGetPendingRequests: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1695
1752
  /**
1696
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
1753
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
1697
1754
  * @param {string} walletId
1698
1755
  * @param {string} requestId
1756
+ * @param {WmpClientRequestBody} wmpClientRequestBody
1699
1757
  * @param {*} [options] Override http request option.
1700
1758
  * @throws {RequiredError}
1701
1759
  */
1702
- wmpClientProcessRequest: (walletId: string, requestId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1760
+ wmpClientProcessRequest: (walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1703
1761
  /**
1704
1762
  * Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.
1705
1763
  * @param {string} walletId
@@ -2234,13 +2292,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2234
2292
  */
2235
2293
  wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpRequest>>>;
2236
2294
  /**
2237
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
2295
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
2238
2296
  * @param {string} walletId
2239
2297
  * @param {string} requestId
2298
+ * @param {WmpClientRequestBody} wmpClientRequestBody
2240
2299
  * @param {*} [options] Override http request option.
2241
2300
  * @throws {RequiredError}
2242
2301
  */
2243
- wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2302
+ wmpClientProcessRequest(walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2244
2303
  /**
2245
2304
  * Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.
2246
2305
  * @param {string} walletId
@@ -2775,13 +2834,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2775
2834
  */
2776
2835
  wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpRequest>>;
2777
2836
  /**
2778
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
2837
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
2779
2838
  * @param {string} walletId
2780
2839
  * @param {string} requestId
2840
+ * @param {WmpClientRequestBody} wmpClientRequestBody
2781
2841
  * @param {*} [options] Override http request option.
2782
2842
  * @throws {RequiredError}
2783
2843
  */
2784
- wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<InteractionAuthorizationRequirements>;
2844
+ wmpClientProcessRequest(walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<InteractionAuthorizationRequirements>;
2785
2845
  /**
2786
2846
  * Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.
2787
2847
  * @param {string} walletId
@@ -3316,13 +3376,14 @@ export declare class DefaultApi extends BaseAPI {
3316
3376
  */
3317
3377
  wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpRequest[], any, {}>>;
3318
3378
  /**
3319
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
3379
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
3320
3380
  * @param {string} walletId
3321
3381
  * @param {string} requestId
3382
+ * @param {WmpClientRequestBody} wmpClientRequestBody
3322
3383
  * @param {*} [options] Override http request option.
3323
3384
  * @throws {RequiredError}
3324
3385
  */
3325
- wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any, {}>>;
3386
+ wmpClientProcessRequest(walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any, {}>>;
3326
3387
  /**
3327
3388
  * Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.
3328
3389
  * @param {string} walletId
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.WmpEntityListEntityTypeEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialPropertyToVerify = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionAuthorizationEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.WmpEntityListEntityTypeEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessClientRequestTypeEnum = exports.WmpAuthenticateSessionTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialPropertyToVerify = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionAuthorizationEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -188,6 +188,18 @@ exports.WalletNotificationEventType = {
188
188
  WmpCredentialOffer: 'wmp.credential_offer',
189
189
  WmpCredentialVerificationRequest: 'wmp.credential_verification_request',
190
190
  WmpError: 'wmp.error',
191
+ WmpMessage: 'wmp.message',
192
+ WmpIdentityAssertionRequest: 'wmp.identity_assertion_request',
193
+ WmpIdentityAssertionReceived: 'wmp.identity_assertion_received',
194
+ };
195
+ exports.WmpAuthenticateSessionTypeEnum = {
196
+ Authenticate: 'authenticate',
197
+ };
198
+ exports.WmpProcessClientRequestTypeEnum = {
199
+ Process: 'process',
200
+ };
201
+ exports.WmpProvideIdentityAssertionTypeEnum = {
202
+ IdentityAssertion: 'identity_assertion',
191
203
  };
192
204
  exports.WmpRequestType = {
193
205
  CredentialOffer: 'credentialOffer',
@@ -2417,17 +2429,20 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2417
2429
  };
2418
2430
  }),
2419
2431
  /**
2420
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
2432
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
2421
2433
  * @param {string} walletId
2422
2434
  * @param {string} requestId
2435
+ * @param {WmpClientRequestBody} wmpClientRequestBody
2423
2436
  * @param {*} [options] Override http request option.
2424
2437
  * @throws {RequiredError}
2425
2438
  */
2426
- wmpClientProcessRequest: (walletId_1, requestId_1, ...args_1) => __awaiter(this, [walletId_1, requestId_1, ...args_1], void 0, function* (walletId, requestId, options = {}) {
2439
+ wmpClientProcessRequest: (walletId_1, requestId_1, wmpClientRequestBody_1, ...args_1) => __awaiter(this, [walletId_1, requestId_1, wmpClientRequestBody_1, ...args_1], void 0, function* (walletId, requestId, wmpClientRequestBody, options = {}) {
2427
2440
  // verify required parameter 'walletId' is not null or undefined
2428
2441
  (0, common_1.assertParamExists)('wmpClientProcessRequest', 'walletId', walletId);
2429
2442
  // verify required parameter 'requestId' is not null or undefined
2430
2443
  (0, common_1.assertParamExists)('wmpClientProcessRequest', 'requestId', requestId);
2444
+ // verify required parameter 'wmpClientRequestBody' is not null or undefined
2445
+ (0, common_1.assertParamExists)('wmpClientProcessRequest', 'wmpClientRequestBody', wmpClientRequestBody);
2431
2446
  const localVarPath = `/wmp/client/requests/{request_id}`
2432
2447
  .replace('{request_id}', encodeURIComponent(String(requestId)));
2433
2448
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2442,6 +2457,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2442
2457
  // authentication accessToken required
2443
2458
  // http bearer authentication required
2444
2459
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2460
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2445
2461
  localVarHeaderParameter['Accept'] = 'application/json';
2446
2462
  if (walletId != null) {
2447
2463
  localVarHeaderParameter['wallet-id'] = String(walletId);
@@ -2449,6 +2465,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2449
2465
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2450
2466
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2451
2467
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2468
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wmpClientRequestBody, localVarRequestOptions, configuration);
2452
2469
  return {
2453
2470
  url: (0, common_1.toPathString)(localVarUrlObj),
2454
2471
  options: localVarRequestOptions,
@@ -3641,16 +3658,17 @@ const DefaultApiFp = function (configuration) {
3641
3658
  });
3642
3659
  },
3643
3660
  /**
3644
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
3661
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
3645
3662
  * @param {string} walletId
3646
3663
  * @param {string} requestId
3664
+ * @param {WmpClientRequestBody} wmpClientRequestBody
3647
3665
  * @param {*} [options] Override http request option.
3648
3666
  * @throws {RequiredError}
3649
3667
  */
3650
- wmpClientProcessRequest(walletId, requestId, options) {
3668
+ wmpClientProcessRequest(walletId, requestId, wmpClientRequestBody, options) {
3651
3669
  return __awaiter(this, void 0, void 0, function* () {
3652
3670
  var _a, _b, _c;
3653
- const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpClientProcessRequest(walletId, requestId, options);
3671
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpClientProcessRequest(walletId, requestId, wmpClientRequestBody, options);
3654
3672
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3655
3673
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpClientProcessRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3656
3674
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4358,14 +4376,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4358
4376
  return localVarFp.wmpClientGetPendingRequests(walletId, options).then((request) => request(axios, basePath));
4359
4377
  },
4360
4378
  /**
4361
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
4379
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
4362
4380
  * @param {string} walletId
4363
4381
  * @param {string} requestId
4382
+ * @param {WmpClientRequestBody} wmpClientRequestBody
4364
4383
  * @param {*} [options] Override http request option.
4365
4384
  * @throws {RequiredError}
4366
4385
  */
4367
- wmpClientProcessRequest(walletId, requestId, options) {
4368
- return localVarFp.wmpClientProcessRequest(walletId, requestId, options).then((request) => request(axios, basePath));
4386
+ wmpClientProcessRequest(walletId, requestId, wmpClientRequestBody, options) {
4387
+ return localVarFp.wmpClientProcessRequest(walletId, requestId, wmpClientRequestBody, options).then((request) => request(axios, basePath));
4369
4388
  },
4370
4389
  /**
4371
4390
  * Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.
@@ -5031,14 +5050,15 @@ class DefaultApi extends base_1.BaseAPI {
5031
5050
  return (0, exports.DefaultApiFp)(this.configuration).wmpClientGetPendingRequests(walletId, options).then((request) => request(this.axios, this.basePath));
5032
5051
  }
5033
5052
  /**
5034
- * Processes a pending WMP request (credential offer or credential verification request) received from a connected WMP server entity. Returns the authorization requirements that must be satisfied used as the entry point into the offer or presentation flow instead of passing a URL to `HolderOfferPassAuthInfo` or `HolderPresentPassAuthInfo`.
5053
+ * Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process` a credential offer / verification request (returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, or `authenticate` to open the session after the assertion exchange.
5035
5054
  * @param {string} walletId
5036
5055
  * @param {string} requestId
5056
+ * @param {WmpClientRequestBody} wmpClientRequestBody
5037
5057
  * @param {*} [options] Override http request option.
5038
5058
  * @throws {RequiredError}
5039
5059
  */
5040
- wmpClientProcessRequest(walletId, requestId, options) {
5041
- return (0, exports.DefaultApiFp)(this.configuration).wmpClientProcessRequest(walletId, requestId, options).then((request) => request(this.axios, this.basePath));
5060
+ wmpClientProcessRequest(walletId, requestId, wmpClientRequestBody, options) {
5061
+ return (0, exports.DefaultApiFp)(this.configuration).wmpClientProcessRequest(walletId, requestId, wmpClientRequestBody, options).then((request) => request(this.axios, this.basePath));
5042
5062
  }
5043
5063
  /**
5044
5064
  * Creates a WMP (Wallet Messaging Protocol) invitation URL that can be shared with another wallet to establish a secure peer-to-peer communication channel. Issuers and verifiers use this to connect with holder wallets for direct credential delivery and verification without requiring QR codes or redirects on each interaction.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.297",
4
+ "version": "0.0.299",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {