@triveria/wallet 0.0.297 → 0.0.298

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 +65 -8
  2. package/api.js +32 -12
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1107,6 +1107,9 @@ export declare const WalletNotificationEventType: {
1107
1107
  readonly WmpCredentialOffer: "wmp.credential_offer";
1108
1108
  readonly WmpCredentialVerificationRequest: "wmp.credential_verification_request";
1109
1109
  readonly WmpError: "wmp.error";
1110
+ readonly WmpMessage: "wmp.message";
1111
+ readonly WmpIdentityAssertionRequest: "wmp.identity_assertion_request";
1112
+ readonly WmpIdentityAssertionReceived: "wmp.identity_assertion_received";
1110
1113
  };
1111
1114
  export type WalletNotificationEventType = typeof WalletNotificationEventType[keyof typeof WalletNotificationEventType];
1112
1115
  export interface WalletNotificationHistory {
@@ -1144,6 +1147,31 @@ export interface WmpAcceptInvitationPayload {
1144
1147
  */
1145
1148
  'invitationUrl': string;
1146
1149
  }
1150
+ /**
1151
+ * Open (authenticate) the session after the identity assertion exchange.
1152
+ */
1153
+ export interface WmpAuthenticateSession {
1154
+ 'type': WmpAuthenticateSessionTypeEnum;
1155
+ /**
1156
+ * Set true to mark the session fully authenticated and open it for traffic.
1157
+ */
1158
+ 'authenticated': boolean;
1159
+ }
1160
+ export declare const WmpAuthenticateSessionTypeEnum: {
1161
+ readonly Authenticate: "authenticate";
1162
+ };
1163
+ export type WmpAuthenticateSessionTypeEnum = typeof WmpAuthenticateSessionTypeEnum[keyof typeof WmpAuthenticateSessionTypeEnum];
1164
+ /**
1165
+ * @type WmpClientRequestBody
1166
+ * 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.
1167
+ */
1168
+ export type WmpClientRequestBody = {
1169
+ type: 'authenticate';
1170
+ } & WmpAuthenticateSession | {
1171
+ type: 'identity_assertion';
1172
+ } & WmpProvideIdentityAssertion | {
1173
+ type: 'process';
1174
+ } & WmpProcessClientRequest;
1147
1175
  export interface WmpCreateInvitationResponse {
1148
1176
  /**
1149
1177
  * URL at which the invitation can be downloaded
@@ -1194,7 +1222,32 @@ export interface WmpNotification {
1194
1222
  'invitationUrl'?: string;
1195
1223
  'id': string;
1196
1224
  'error'?: string;
1225
+ 'identityAssertion'?: CredentialWrapper;
1197
1226
  }
1227
+ /**
1228
+ * Process a pending credential offer or verification request identified by the path id.
1229
+ */
1230
+ export interface WmpProcessClientRequest {
1231
+ 'type': WmpProcessClientRequestTypeEnum;
1232
+ }
1233
+ export declare const WmpProcessClientRequestTypeEnum: {
1234
+ readonly Process: "process";
1235
+ };
1236
+ export type WmpProcessClientRequestTypeEnum = typeof WmpProcessClientRequestTypeEnum[keyof typeof WmpProcessClientRequestTypeEnum];
1237
+ /**
1238
+ * Provide a credential to present as the identity assertion for the session.
1239
+ */
1240
+ export interface WmpProvideIdentityAssertion {
1241
+ 'type': WmpProvideIdentityAssertionTypeEnum;
1242
+ /**
1243
+ * Id of the wallet credential to present as the identity assertion VP.
1244
+ */
1245
+ 'credentialId': string;
1246
+ }
1247
+ export declare const WmpProvideIdentityAssertionTypeEnum: {
1248
+ readonly IdentityAssertion: "identity_assertion";
1249
+ };
1250
+ export type WmpProvideIdentityAssertionTypeEnum = typeof WmpProvideIdentityAssertionTypeEnum[keyof typeof WmpProvideIdentityAssertionTypeEnum];
1198
1251
  export interface WmpRequest {
1199
1252
  'type': WmpRequestType;
1200
1253
  'requestUrl': string;
@@ -1693,13 +1746,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1693
1746
  */
1694
1747
  wmpClientGetPendingRequests: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1695
1748
  /**
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`.
1749
+ * 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
1750
  * @param {string} walletId
1698
1751
  * @param {string} requestId
1752
+ * @param {WmpClientRequestBody} wmpClientRequestBody
1699
1753
  * @param {*} [options] Override http request option.
1700
1754
  * @throws {RequiredError}
1701
1755
  */
1702
- wmpClientProcessRequest: (walletId: string, requestId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1756
+ wmpClientProcessRequest: (walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1703
1757
  /**
1704
1758
  * 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
1759
  * @param {string} walletId
@@ -2234,13 +2288,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2234
2288
  */
2235
2289
  wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpRequest>>>;
2236
2290
  /**
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`.
2291
+ * 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
2292
  * @param {string} walletId
2239
2293
  * @param {string} requestId
2294
+ * @param {WmpClientRequestBody} wmpClientRequestBody
2240
2295
  * @param {*} [options] Override http request option.
2241
2296
  * @throws {RequiredError}
2242
2297
  */
2243
- wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2298
+ wmpClientProcessRequest(walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InteractionAuthorizationRequirements>>;
2244
2299
  /**
2245
2300
  * 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
2301
  * @param {string} walletId
@@ -2775,13 +2830,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2775
2830
  */
2776
2831
  wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpRequest>>;
2777
2832
  /**
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`.
2833
+ * 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
2834
  * @param {string} walletId
2780
2835
  * @param {string} requestId
2836
+ * @param {WmpClientRequestBody} wmpClientRequestBody
2781
2837
  * @param {*} [options] Override http request option.
2782
2838
  * @throws {RequiredError}
2783
2839
  */
2784
- wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<InteractionAuthorizationRequirements>;
2840
+ wmpClientProcessRequest(walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig): AxiosPromise<InteractionAuthorizationRequirements>;
2785
2841
  /**
2786
2842
  * 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
2843
  * @param {string} walletId
@@ -3316,13 +3372,14 @@ export declare class DefaultApi extends BaseAPI {
3316
3372
  */
3317
3373
  wmpClientGetPendingRequests(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpRequest[], any, {}>>;
3318
3374
  /**
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`.
3375
+ * 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
3376
  * @param {string} walletId
3321
3377
  * @param {string} requestId
3378
+ * @param {WmpClientRequestBody} wmpClientRequestBody
3322
3379
  * @param {*} [options] Override http request option.
3323
3380
  * @throws {RequiredError}
3324
3381
  */
3325
- wmpClientProcessRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any, {}>>;
3382
+ wmpClientProcessRequest(walletId: string, requestId: string, wmpClientRequestBody: WmpClientRequestBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InteractionAuthorizationRequirements, any, {}>>;
3326
3383
  /**
3327
3384
  * 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
3385
  * @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.298",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {