@triveria/wallet 0.0.316 → 0.0.318
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/api.d.ts +171 -17
- package/api.js +136 -20
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1228,6 +1228,7 @@ export declare const WalletNotificationEventType: {
|
|
|
1228
1228
|
readonly WmpCredentialVerificationRequest: "wmp.credential_verification_request";
|
|
1229
1229
|
readonly WmpError: "wmp.error";
|
|
1230
1230
|
readonly WmpMessage: "wmp.message";
|
|
1231
|
+
readonly WmpMessageStatus: "wmp.message_status";
|
|
1231
1232
|
readonly WmpIdentityAssertionRequest: "wmp.identity_assertion_request";
|
|
1232
1233
|
readonly WmpIdentityAssertionReceived: "wmp.identity_assertion_received";
|
|
1233
1234
|
};
|
|
@@ -1267,6 +1268,26 @@ export interface WmpAcceptInvitationPayload {
|
|
|
1267
1268
|
*/
|
|
1268
1269
|
'invitationUrl': string;
|
|
1269
1270
|
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Acknowledge the received message identified by the path id as processed (sends a wmp.message.ack with status \"processed\" to the original sender, core §5.3).
|
|
1273
|
+
*/
|
|
1274
|
+
export interface WmpAckProcessedRequest {
|
|
1275
|
+
'type': WmpAckProcessedRequestTypeEnum;
|
|
1276
|
+
}
|
|
1277
|
+
export declare const WmpAckProcessedRequestTypeEnum: {
|
|
1278
|
+
readonly AckProcessed: "ack_processed";
|
|
1279
|
+
};
|
|
1280
|
+
export type WmpAckProcessedRequestTypeEnum = typeof WmpAckProcessedRequestTypeEnum[keyof typeof WmpAckProcessedRequestTypeEnum];
|
|
1281
|
+
/**
|
|
1282
|
+
* Acknowledge the received message identified by the path id as read (sends a wmp.message.ack with status \"read\" to the original sender, core §5.3).
|
|
1283
|
+
*/
|
|
1284
|
+
export interface WmpAckReadRequest {
|
|
1285
|
+
'type': WmpAckReadRequestTypeEnum;
|
|
1286
|
+
}
|
|
1287
|
+
export declare const WmpAckReadRequestTypeEnum: {
|
|
1288
|
+
readonly AckRead: "ack_read";
|
|
1289
|
+
};
|
|
1290
|
+
export type WmpAckReadRequestTypeEnum = typeof WmpAckReadRequestTypeEnum[keyof typeof WmpAckReadRequestTypeEnum];
|
|
1270
1291
|
/**
|
|
1271
1292
|
* Open (authenticate) the session after the identity assertion exchange.
|
|
1272
1293
|
*/
|
|
@@ -1283,9 +1304,13 @@ export declare const WmpAuthenticateSessionTypeEnum: {
|
|
|
1283
1304
|
export type WmpAuthenticateSessionTypeEnum = typeof WmpAuthenticateSessionTypeEnum[keyof typeof WmpAuthenticateSessionTypeEnum];
|
|
1284
1305
|
/**
|
|
1285
1306
|
* @type WmpClientRequestBody
|
|
1286
|
-
* Action to take on a pending WMP client request, discriminated by `type`: `process_offer` a pending credential offer, `process_verification_request` a pending verification request, `identity_assertion` to present a credential,
|
|
1307
|
+
* Action to take on a pending WMP client request, discriminated by `type`: `process_offer` a pending credential offer, `process_verification_request` a pending verification request, `identity_assertion` to present a credential, `authenticate` to open the session, or `ack_read`/`ack_processed` to acknowledge a received message.
|
|
1287
1308
|
*/
|
|
1288
1309
|
export type WmpClientRequestBody = {
|
|
1310
|
+
type: 'ack_processed';
|
|
1311
|
+
} & WmpAckProcessedRequest | {
|
|
1312
|
+
type: 'ack_read';
|
|
1313
|
+
} & WmpAckReadRequest | {
|
|
1289
1314
|
type: 'authenticate';
|
|
1290
1315
|
} & WmpAuthenticateSession | {
|
|
1291
1316
|
type: 'identity_assertion';
|
|
@@ -1362,6 +1387,86 @@ export interface WmpMessage {
|
|
|
1362
1387
|
* Download link for the raw message body.
|
|
1363
1388
|
*/
|
|
1364
1389
|
'bodyUrl': string;
|
|
1390
|
+
/**
|
|
1391
|
+
* Free-form application-defined message type tag, if the sender set one.
|
|
1392
|
+
*/
|
|
1393
|
+
'messageType'?: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Id of the message this one replies to, if the sender set one.
|
|
1396
|
+
*/
|
|
1397
|
+
'inReplyTo'?: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* Address the sender asked replies to be sent to, if set.
|
|
1400
|
+
*/
|
|
1401
|
+
'replyTo'?: string;
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* The sender-side record of one message this wallet sent: what it was sent as, and where it currently stands in the delivery lifecycle (core §5.3.1/§5.3).
|
|
1405
|
+
*/
|
|
1406
|
+
export interface WmpMessageHistoryRecord {
|
|
1407
|
+
'messageId': string;
|
|
1408
|
+
/**
|
|
1409
|
+
* The peer this message was sent to.
|
|
1410
|
+
*/
|
|
1411
|
+
'entityId': string;
|
|
1412
|
+
/**
|
|
1413
|
+
* The WMP method the message was sent as, e.g. wmp.message.deliver.
|
|
1414
|
+
*/
|
|
1415
|
+
'method': string;
|
|
1416
|
+
'contentType': string;
|
|
1417
|
+
/**
|
|
1418
|
+
* accepted, queued, delivered, expired, dropped, received, read, processed or failed.
|
|
1419
|
+
*/
|
|
1420
|
+
'status': string;
|
|
1421
|
+
'sentAt': string;
|
|
1422
|
+
/**
|
|
1423
|
+
* The message\'s queue deadline (only meaningful while status is \"queued\").
|
|
1424
|
+
*/
|
|
1425
|
+
'expiresAt'?: string;
|
|
1426
|
+
'lastUpdate'?: string;
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Outcome of sending a message via POST /wmp/entities/{entity_id}/messages.
|
|
1430
|
+
*/
|
|
1431
|
+
export interface WmpMessageSendResult {
|
|
1432
|
+
/**
|
|
1433
|
+
* Id assigned to the sent message, usable to look up its history record.
|
|
1434
|
+
*/
|
|
1435
|
+
'messageId': string;
|
|
1436
|
+
'status': WmpMessageSendStatus;
|
|
1437
|
+
/**
|
|
1438
|
+
* Only present when status is \"queued\": when the message will expire from the queue.
|
|
1439
|
+
*/
|
|
1440
|
+
'queuedUntil'?: string;
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* `accepted`: delivered to a live peer. `queued`: the peer is offline and negotiated the `offline` capability; the message will be replayed once it reconnects or polls.
|
|
1444
|
+
*/
|
|
1445
|
+
export declare const WmpMessageSendStatus: {
|
|
1446
|
+
readonly Accepted: "accepted";
|
|
1447
|
+
readonly Queued: "queued";
|
|
1448
|
+
};
|
|
1449
|
+
export type WmpMessageSendStatus = typeof WmpMessageSendStatus[keyof typeof WmpMessageSendStatus];
|
|
1450
|
+
/**
|
|
1451
|
+
* Delivery-lifecycle detail for a wmp.message_status notification (WMP core §5.3.1/§5.3): reports a status transition for a message this wallet sent.
|
|
1452
|
+
*/
|
|
1453
|
+
export interface WmpMessageStatusNotification {
|
|
1454
|
+
/**
|
|
1455
|
+
* Id of the message this status applies to.
|
|
1456
|
+
*/
|
|
1457
|
+
'messageId': string;
|
|
1458
|
+
/**
|
|
1459
|
+
* queued, delivered, expired or dropped (core §5.3.1), or received, read, processed or failed (core §5.3, from an ack).
|
|
1460
|
+
*/
|
|
1461
|
+
'status': string;
|
|
1462
|
+
/**
|
|
1463
|
+
* Entity id of the peer the message was sent to.
|
|
1464
|
+
*/
|
|
1465
|
+
'recipient': string;
|
|
1466
|
+
/**
|
|
1467
|
+
* Only present for status \"queued\": when the message will expire from the queue.
|
|
1468
|
+
*/
|
|
1469
|
+
'queuedUntil'?: string;
|
|
1365
1470
|
}
|
|
1366
1471
|
export interface WmpNotification {
|
|
1367
1472
|
'entity'?: WmpEntityRecord;
|
|
@@ -1369,6 +1474,7 @@ export interface WmpNotification {
|
|
|
1369
1474
|
'id': string;
|
|
1370
1475
|
'error'?: string;
|
|
1371
1476
|
'identityAssertion'?: CredentialWrapper;
|
|
1477
|
+
'messageStatus'?: WmpMessageStatusNotification;
|
|
1372
1478
|
}
|
|
1373
1479
|
/**
|
|
1374
1480
|
* Process a pending credential offer identified by the path id.
|
|
@@ -1964,7 +2070,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1964
2070
|
*/
|
|
1965
2071
|
wmpClientGetRequest: (walletId: string, requestId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1966
2072
|
/**
|
|
1967
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
2073
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
1968
2074
|
* @param {string} walletId
|
|
1969
2075
|
* @param {string} requestId
|
|
1970
2076
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -2003,6 +2109,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2003
2109
|
* @throws {RequiredError}
|
|
2004
2110
|
*/
|
|
2005
2111
|
wmpEntityGet: (walletId: string, entityId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2112
|
+
/**
|
|
2113
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
2114
|
+
* @param {string} walletId
|
|
2115
|
+
* @param {string} entityId
|
|
2116
|
+
* @param {string} messageId
|
|
2117
|
+
* @param {*} [options] Override http request option.
|
|
2118
|
+
* @throws {RequiredError}
|
|
2119
|
+
*/
|
|
2120
|
+
wmpEntityGetMessageHistory: (walletId: string, entityId: string, messageId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2006
2121
|
/**
|
|
2007
2122
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
2008
2123
|
* @param {string} walletId
|
|
@@ -2012,16 +2127,19 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2012
2127
|
*/
|
|
2013
2128
|
wmpEntityList: (walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2014
2129
|
/**
|
|
2015
|
-
* Sends a free-form WMP message to a connected entity.
|
|
2130
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
2016
2131
|
* @param {string} walletId
|
|
2017
2132
|
* @param {string} entityId
|
|
2018
2133
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
2134
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
2135
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
2136
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
2019
2137
|
* @param {*} [options] Override http request option.
|
|
2020
2138
|
* @throws {RequiredError}
|
|
2021
2139
|
*/
|
|
2022
|
-
wmpEntitySendMessage: (walletId: string, entityId: string, body?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2140
|
+
wmpEntitySendMessage: (walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2023
2141
|
/**
|
|
2024
|
-
* Re-establishes or confirms the
|
|
2142
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
2025
2143
|
* @param {string} walletId
|
|
2026
2144
|
* @param {string} entityId
|
|
2027
2145
|
* @param {*} [options] Override http request option.
|
|
@@ -2577,7 +2695,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2577
2695
|
*/
|
|
2578
2696
|
wmpClientGetRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpMessage>>;
|
|
2579
2697
|
/**
|
|
2580
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
2698
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
2581
2699
|
* @param {string} walletId
|
|
2582
2700
|
* @param {string} requestId
|
|
2583
2701
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -2616,6 +2734,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2616
2734
|
* @throws {RequiredError}
|
|
2617
2735
|
*/
|
|
2618
2736
|
wmpEntityGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpEntityRecord>>;
|
|
2737
|
+
/**
|
|
2738
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
2739
|
+
* @param {string} walletId
|
|
2740
|
+
* @param {string} entityId
|
|
2741
|
+
* @param {string} messageId
|
|
2742
|
+
* @param {*} [options] Override http request option.
|
|
2743
|
+
* @throws {RequiredError}
|
|
2744
|
+
*/
|
|
2745
|
+
wmpEntityGetMessageHistory(walletId: string, entityId: string, messageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpMessageHistoryRecord>>;
|
|
2619
2746
|
/**
|
|
2620
2747
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
2621
2748
|
* @param {string} walletId
|
|
@@ -2625,16 +2752,19 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2625
2752
|
*/
|
|
2626
2753
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpEntityRecord>>>;
|
|
2627
2754
|
/**
|
|
2628
|
-
* Sends a free-form WMP message to a connected entity.
|
|
2755
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
2629
2756
|
* @param {string} walletId
|
|
2630
2757
|
* @param {string} entityId
|
|
2631
2758
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
2759
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
2760
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
2761
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
2632
2762
|
* @param {*} [options] Override http request option.
|
|
2633
2763
|
* @throws {RequiredError}
|
|
2634
2764
|
*/
|
|
2635
|
-
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2765
|
+
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpMessageSendResult>>;
|
|
2636
2766
|
/**
|
|
2637
|
-
* Re-establishes or confirms the
|
|
2767
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
2638
2768
|
* @param {string} walletId
|
|
2639
2769
|
* @param {string} entityId
|
|
2640
2770
|
* @param {*} [options] Override http request option.
|
|
@@ -3190,7 +3320,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3190
3320
|
*/
|
|
3191
3321
|
wmpClientGetRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpMessage>;
|
|
3192
3322
|
/**
|
|
3193
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
3323
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
3194
3324
|
* @param {string} walletId
|
|
3195
3325
|
* @param {string} requestId
|
|
3196
3326
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -3229,6 +3359,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3229
3359
|
* @throws {RequiredError}
|
|
3230
3360
|
*/
|
|
3231
3361
|
wmpEntityGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpEntityRecord>;
|
|
3362
|
+
/**
|
|
3363
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
3364
|
+
* @param {string} walletId
|
|
3365
|
+
* @param {string} entityId
|
|
3366
|
+
* @param {string} messageId
|
|
3367
|
+
* @param {*} [options] Override http request option.
|
|
3368
|
+
* @throws {RequiredError}
|
|
3369
|
+
*/
|
|
3370
|
+
wmpEntityGetMessageHistory(walletId: string, entityId: string, messageId: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpMessageHistoryRecord>;
|
|
3232
3371
|
/**
|
|
3233
3372
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
3234
3373
|
* @param {string} walletId
|
|
@@ -3238,16 +3377,19 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3238
3377
|
*/
|
|
3239
3378
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpEntityRecord>>;
|
|
3240
3379
|
/**
|
|
3241
|
-
* Sends a free-form WMP message to a connected entity.
|
|
3380
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
3242
3381
|
* @param {string} walletId
|
|
3243
3382
|
* @param {string} entityId
|
|
3244
3383
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
3384
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
3385
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
3386
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
3245
3387
|
* @param {*} [options] Override http request option.
|
|
3246
3388
|
* @throws {RequiredError}
|
|
3247
3389
|
*/
|
|
3248
|
-
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3390
|
+
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpMessageSendResult>;
|
|
3249
3391
|
/**
|
|
3250
|
-
* Re-establishes or confirms the
|
|
3392
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
3251
3393
|
* @param {string} walletId
|
|
3252
3394
|
* @param {string} entityId
|
|
3253
3395
|
* @param {*} [options] Override http request option.
|
|
@@ -3803,7 +3945,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3803
3945
|
*/
|
|
3804
3946
|
wmpClientGetRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpMessage, any, {}>>;
|
|
3805
3947
|
/**
|
|
3806
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
3948
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
3807
3949
|
* @param {string} walletId
|
|
3808
3950
|
* @param {string} requestId
|
|
3809
3951
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -3842,6 +3984,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3842
3984
|
* @throws {RequiredError}
|
|
3843
3985
|
*/
|
|
3844
3986
|
wmpEntityGet(walletId: string, entityId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord, any, {}>>;
|
|
3987
|
+
/**
|
|
3988
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
3989
|
+
* @param {string} walletId
|
|
3990
|
+
* @param {string} entityId
|
|
3991
|
+
* @param {string} messageId
|
|
3992
|
+
* @param {*} [options] Override http request option.
|
|
3993
|
+
* @throws {RequiredError}
|
|
3994
|
+
*/
|
|
3995
|
+
wmpEntityGetMessageHistory(walletId: string, entityId: string, messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpMessageHistoryRecord, any, {}>>;
|
|
3845
3996
|
/**
|
|
3846
3997
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
3847
3998
|
* @param {string} walletId
|
|
@@ -3851,16 +4002,19 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3851
4002
|
*/
|
|
3852
4003
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord[], any, {}>>;
|
|
3853
4004
|
/**
|
|
3854
|
-
* Sends a free-form WMP message to a connected entity.
|
|
4005
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
3855
4006
|
* @param {string} walletId
|
|
3856
4007
|
* @param {string} entityId
|
|
3857
4008
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
4009
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
4010
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
4011
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
3858
4012
|
* @param {*} [options] Override http request option.
|
|
3859
4013
|
* @throws {RequiredError}
|
|
3860
4014
|
*/
|
|
3861
|
-
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4015
|
+
wmpEntitySendMessage(walletId: string, entityId: string, body?: File, expiresAt?: string, messageType?: string, inReplyTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpMessageSendResult, any, {}>>;
|
|
3862
4016
|
/**
|
|
3863
|
-
* Re-establishes or confirms the
|
|
4017
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
3864
4018
|
* @param {string} walletId
|
|
3865
4019
|
* @param {string} entityId
|
|
3866
4020
|
* @param {*} [options] Override http request option.
|
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.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessVerificationRequestTypeEnum = exports.WmpProcessOfferRequestTypeEnum = exports.WmpAuthenticateSessionTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.VaultType = exports.TrustListKind = 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.CertificateStatus = exports.AccreditationRequestTypeEnum = void 0;
|
|
28
|
+
exports.WmpEntityListEntityTypeEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessVerificationRequestTypeEnum = exports.WmpProcessOfferRequestTypeEnum = exports.WmpMessageSendStatus = exports.WmpAuthenticateSessionTypeEnum = exports.WmpAckReadRequestTypeEnum = exports.WmpAckProcessedRequestTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.VaultType = exports.TrustListKind = 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.CertificateStatus = 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
|
|
@@ -214,12 +214,26 @@ exports.WalletNotificationEventType = {
|
|
|
214
214
|
WmpCredentialVerificationRequest: 'wmp.credential_verification_request',
|
|
215
215
|
WmpError: 'wmp.error',
|
|
216
216
|
WmpMessage: 'wmp.message',
|
|
217
|
+
WmpMessageStatus: 'wmp.message_status',
|
|
217
218
|
WmpIdentityAssertionRequest: 'wmp.identity_assertion_request',
|
|
218
219
|
WmpIdentityAssertionReceived: 'wmp.identity_assertion_received',
|
|
219
220
|
};
|
|
221
|
+
exports.WmpAckProcessedRequestTypeEnum = {
|
|
222
|
+
AckProcessed: 'ack_processed',
|
|
223
|
+
};
|
|
224
|
+
exports.WmpAckReadRequestTypeEnum = {
|
|
225
|
+
AckRead: 'ack_read',
|
|
226
|
+
};
|
|
220
227
|
exports.WmpAuthenticateSessionTypeEnum = {
|
|
221
228
|
Authenticate: 'authenticate',
|
|
222
229
|
};
|
|
230
|
+
/**
|
|
231
|
+
* `accepted`: delivered to a live peer. `queued`: the peer is offline and negotiated the `offline` capability; the message will be replayed once it reconnects or polls.
|
|
232
|
+
*/
|
|
233
|
+
exports.WmpMessageSendStatus = {
|
|
234
|
+
Accepted: 'accepted',
|
|
235
|
+
Queued: 'queued',
|
|
236
|
+
};
|
|
223
237
|
exports.WmpProcessOfferRequestTypeEnum = {
|
|
224
238
|
ProcessOffer: 'process_offer',
|
|
225
239
|
};
|
|
@@ -2747,7 +2761,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2747
2761
|
};
|
|
2748
2762
|
}),
|
|
2749
2763
|
/**
|
|
2750
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
2764
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
2751
2765
|
* @param {string} walletId
|
|
2752
2766
|
* @param {string} requestId
|
|
2753
2767
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -2937,6 +2951,48 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2937
2951
|
options: localVarRequestOptions,
|
|
2938
2952
|
};
|
|
2939
2953
|
}),
|
|
2954
|
+
/**
|
|
2955
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
2956
|
+
* @param {string} walletId
|
|
2957
|
+
* @param {string} entityId
|
|
2958
|
+
* @param {string} messageId
|
|
2959
|
+
* @param {*} [options] Override http request option.
|
|
2960
|
+
* @throws {RequiredError}
|
|
2961
|
+
*/
|
|
2962
|
+
wmpEntityGetMessageHistory: (walletId_1, entityId_1, messageId_1, ...args_1) => __awaiter(this, [walletId_1, entityId_1, messageId_1, ...args_1], void 0, function* (walletId, entityId, messageId, options = {}) {
|
|
2963
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
2964
|
+
(0, common_1.assertParamExists)('wmpEntityGetMessageHistory', 'walletId', walletId);
|
|
2965
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
2966
|
+
(0, common_1.assertParamExists)('wmpEntityGetMessageHistory', 'entityId', entityId);
|
|
2967
|
+
// verify required parameter 'messageId' is not null or undefined
|
|
2968
|
+
(0, common_1.assertParamExists)('wmpEntityGetMessageHistory', 'messageId', messageId);
|
|
2969
|
+
const localVarPath = `/wmp/entities/{entity_id}/messages/{message_id}`
|
|
2970
|
+
.replace('{entity_id}', encodeURIComponent(String(entityId)))
|
|
2971
|
+
.replace('{message_id}', encodeURIComponent(String(messageId)));
|
|
2972
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2973
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2974
|
+
let baseOptions;
|
|
2975
|
+
if (configuration) {
|
|
2976
|
+
baseOptions = configuration.baseOptions;
|
|
2977
|
+
}
|
|
2978
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2979
|
+
const localVarHeaderParameter = {};
|
|
2980
|
+
const localVarQueryParameter = {};
|
|
2981
|
+
// authentication accessToken required
|
|
2982
|
+
// http bearer authentication required
|
|
2983
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2984
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2985
|
+
if (walletId != null) {
|
|
2986
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
2987
|
+
}
|
|
2988
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2989
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2990
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2991
|
+
return {
|
|
2992
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2993
|
+
options: localVarRequestOptions,
|
|
2994
|
+
};
|
|
2995
|
+
}),
|
|
2940
2996
|
/**
|
|
2941
2997
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
2942
2998
|
* @param {string} walletId
|
|
@@ -2978,14 +3034,17 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2978
3034
|
};
|
|
2979
3035
|
}),
|
|
2980
3036
|
/**
|
|
2981
|
-
* Sends a free-form WMP message to a connected entity.
|
|
3037
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
2982
3038
|
* @param {string} walletId
|
|
2983
3039
|
* @param {string} entityId
|
|
2984
3040
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
3041
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
3042
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
3043
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
2985
3044
|
* @param {*} [options] Override http request option.
|
|
2986
3045
|
* @throws {RequiredError}
|
|
2987
3046
|
*/
|
|
2988
|
-
wmpEntitySendMessage: (walletId_1, entityId_1, body_1, ...args_1) => __awaiter(this, [walletId_1, entityId_1, body_1, ...args_1], void 0, function* (walletId, entityId, body, options = {}) {
|
|
3047
|
+
wmpEntitySendMessage: (walletId_1, entityId_1, body_1, expiresAt_1, messageType_1, inReplyTo_1, ...args_1) => __awaiter(this, [walletId_1, entityId_1, body_1, expiresAt_1, messageType_1, inReplyTo_1, ...args_1], void 0, function* (walletId, entityId, body, expiresAt, messageType, inReplyTo, options = {}) {
|
|
2989
3048
|
// verify required parameter 'walletId' is not null or undefined
|
|
2990
3049
|
(0, common_1.assertParamExists)('wmpEntitySendMessage', 'walletId', walletId);
|
|
2991
3050
|
// verify required parameter 'entityId' is not null or undefined
|
|
@@ -3008,6 +3067,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
3008
3067
|
if (body !== undefined) {
|
|
3009
3068
|
localVarFormParams.append('body', body);
|
|
3010
3069
|
}
|
|
3070
|
+
if (expiresAt !== undefined) {
|
|
3071
|
+
localVarFormParams.append('expiresAt', expiresAt);
|
|
3072
|
+
}
|
|
3073
|
+
if (messageType !== undefined) {
|
|
3074
|
+
localVarFormParams.append('messageType', messageType);
|
|
3075
|
+
}
|
|
3076
|
+
if (inReplyTo !== undefined) {
|
|
3077
|
+
localVarFormParams.append('inReplyTo', inReplyTo);
|
|
3078
|
+
}
|
|
3011
3079
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
3012
3080
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3013
3081
|
if (walletId != null) {
|
|
@@ -3023,7 +3091,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
3023
3091
|
};
|
|
3024
3092
|
}),
|
|
3025
3093
|
/**
|
|
3026
|
-
* Re-establishes or confirms the
|
|
3094
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
3027
3095
|
* @param {string} walletId
|
|
3028
3096
|
* @param {string} entityId
|
|
3029
3097
|
* @param {*} [options] Override http request option.
|
|
@@ -4147,7 +4215,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
4147
4215
|
});
|
|
4148
4216
|
},
|
|
4149
4217
|
/**
|
|
4150
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
4218
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
4151
4219
|
* @param {string} walletId
|
|
4152
4220
|
* @param {string} requestId
|
|
4153
4221
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -4226,6 +4294,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
4226
4294
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4227
4295
|
});
|
|
4228
4296
|
},
|
|
4297
|
+
/**
|
|
4298
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
4299
|
+
* @param {string} walletId
|
|
4300
|
+
* @param {string} entityId
|
|
4301
|
+
* @param {string} messageId
|
|
4302
|
+
* @param {*} [options] Override http request option.
|
|
4303
|
+
* @throws {RequiredError}
|
|
4304
|
+
*/
|
|
4305
|
+
wmpEntityGetMessageHistory(walletId, entityId, messageId, options) {
|
|
4306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4307
|
+
var _a, _b, _c;
|
|
4308
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntityGetMessageHistory(walletId, entityId, messageId, options);
|
|
4309
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4310
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntityGetMessageHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4311
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4312
|
+
});
|
|
4313
|
+
},
|
|
4229
4314
|
/**
|
|
4230
4315
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
4231
4316
|
* @param {string} walletId
|
|
@@ -4243,24 +4328,27 @@ const DefaultApiFp = function (configuration) {
|
|
|
4243
4328
|
});
|
|
4244
4329
|
},
|
|
4245
4330
|
/**
|
|
4246
|
-
* Sends a free-form WMP message to a connected entity.
|
|
4331
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
4247
4332
|
* @param {string} walletId
|
|
4248
4333
|
* @param {string} entityId
|
|
4249
4334
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
4335
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
4336
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
4337
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
4250
4338
|
* @param {*} [options] Override http request option.
|
|
4251
4339
|
* @throws {RequiredError}
|
|
4252
4340
|
*/
|
|
4253
|
-
wmpEntitySendMessage(walletId, entityId, body, options) {
|
|
4341
|
+
wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options) {
|
|
4254
4342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4255
4343
|
var _a, _b, _c;
|
|
4256
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntitySendMessage(walletId, entityId, body, options);
|
|
4344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options);
|
|
4257
4345
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4258
4346
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.wmpEntitySendMessage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4259
4347
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4260
4348
|
});
|
|
4261
4349
|
},
|
|
4262
4350
|
/**
|
|
4263
|
-
* Re-establishes or confirms the
|
|
4351
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
4264
4352
|
* @param {string} walletId
|
|
4265
4353
|
* @param {string} entityId
|
|
4266
4354
|
* @param {*} [options] Override http request option.
|
|
@@ -4960,7 +5048,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4960
5048
|
return localVarFp.wmpClientGetRequest(walletId, requestId, options).then((request) => request(axios, basePath));
|
|
4961
5049
|
},
|
|
4962
5050
|
/**
|
|
4963
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
5051
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
4964
5052
|
* @param {string} walletId
|
|
4965
5053
|
* @param {string} requestId
|
|
4966
5054
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -5009,6 +5097,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5009
5097
|
wmpEntityGet(walletId, entityId, options) {
|
|
5010
5098
|
return localVarFp.wmpEntityGet(walletId, entityId, options).then((request) => request(axios, basePath));
|
|
5011
5099
|
},
|
|
5100
|
+
/**
|
|
5101
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
5102
|
+
* @param {string} walletId
|
|
5103
|
+
* @param {string} entityId
|
|
5104
|
+
* @param {string} messageId
|
|
5105
|
+
* @param {*} [options] Override http request option.
|
|
5106
|
+
* @throws {RequiredError}
|
|
5107
|
+
*/
|
|
5108
|
+
wmpEntityGetMessageHistory(walletId, entityId, messageId, options) {
|
|
5109
|
+
return localVarFp.wmpEntityGetMessageHistory(walletId, entityId, messageId, options).then((request) => request(axios, basePath));
|
|
5110
|
+
},
|
|
5012
5111
|
/**
|
|
5013
5112
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
5014
5113
|
* @param {string} walletId
|
|
@@ -5020,18 +5119,21 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5020
5119
|
return localVarFp.wmpEntityList(walletId, entityType, options).then((request) => request(axios, basePath));
|
|
5021
5120
|
},
|
|
5022
5121
|
/**
|
|
5023
|
-
* Sends a free-form WMP message to a connected entity.
|
|
5122
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
5024
5123
|
* @param {string} walletId
|
|
5025
5124
|
* @param {string} entityId
|
|
5026
5125
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
5126
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
5127
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
5128
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
5027
5129
|
* @param {*} [options] Override http request option.
|
|
5028
5130
|
* @throws {RequiredError}
|
|
5029
5131
|
*/
|
|
5030
|
-
wmpEntitySendMessage(walletId, entityId, body, options) {
|
|
5031
|
-
return localVarFp.wmpEntitySendMessage(walletId, entityId, body, options).then((request) => request(axios, basePath));
|
|
5132
|
+
wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options) {
|
|
5133
|
+
return localVarFp.wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options).then((request) => request(axios, basePath));
|
|
5032
5134
|
},
|
|
5033
5135
|
/**
|
|
5034
|
-
* Re-establishes or confirms the
|
|
5136
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
5035
5137
|
* @param {string} walletId
|
|
5036
5138
|
* @param {string} entityId
|
|
5037
5139
|
* @param {*} [options] Override http request option.
|
|
@@ -5723,7 +5825,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5723
5825
|
return (0, exports.DefaultApiFp)(this.configuration).wmpClientGetRequest(walletId, requestId, options).then((request) => request(this.axios, this.basePath));
|
|
5724
5826
|
}
|
|
5725
5827
|
/**
|
|
5726
|
-
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion,
|
|
5828
|
+
* Acts on a pending WMP client request identified by `request_id`. The body\'s `type` selects the action: `process_offer` a pending credential offer or `process_verification_request` a pending verification request (either returns its authorization requirements), `identity_assertion` to present a credential as the session identity assertion, `authenticate` to open the session after the assertion exchange, or `ack_read`/`ack_processed` to acknowledge a received message as read or fully processed (sends a `wmp.message.ack`, core §5.3, to the original sender).
|
|
5727
5829
|
* @param {string} walletId
|
|
5728
5830
|
* @param {string} requestId
|
|
5729
5831
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -5772,6 +5874,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5772
5874
|
wmpEntityGet(walletId, entityId, options) {
|
|
5773
5875
|
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityGet(walletId, entityId, options).then((request) => request(this.axios, this.basePath));
|
|
5774
5876
|
}
|
|
5877
|
+
/**
|
|
5878
|
+
* Returns this wallet\'s own delivery-lifecycle record for a message it previously sent via `POST /wmp/entities/{entity_id}/messages`.
|
|
5879
|
+
* @param {string} walletId
|
|
5880
|
+
* @param {string} entityId
|
|
5881
|
+
* @param {string} messageId
|
|
5882
|
+
* @param {*} [options] Override http request option.
|
|
5883
|
+
* @throws {RequiredError}
|
|
5884
|
+
*/
|
|
5885
|
+
wmpEntityGetMessageHistory(walletId, entityId, messageId, options) {
|
|
5886
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityGetMessageHistory(walletId, entityId, messageId, options).then((request) => request(this.axios, this.basePath));
|
|
5887
|
+
}
|
|
5775
5888
|
/**
|
|
5776
5889
|
* Lists all wallets that have established a WMP connection with this wallet. Filter by `entityType=server` for entities that created the invitation (issuers/verifiers), or `entityType=client` for entities that accepted it (holders).
|
|
5777
5890
|
* @param {string} walletId
|
|
@@ -5783,18 +5896,21 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5783
5896
|
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityList(walletId, entityType, options).then((request) => request(this.axios, this.basePath));
|
|
5784
5897
|
}
|
|
5785
5898
|
/**
|
|
5786
|
-
* Sends a free-form WMP message to a connected entity.
|
|
5899
|
+
* Sends a free-form WMP message to a connected entity. If the session is live the message is delivered immediately (`status: accepted`); if the peer is disconnected but negotiated the `offline` capability, the message is queued and replayed once the peer reconnects or polls (`status: queued`, `queuedUntil` reports the queue deadline). Otherwise the request fails with 409/400 (see below). The peer receives a delivered message as a `wmp.message` notification and can then read its metadata from `GET /wmp/client/requests/{request_id}` and download its body via the download link it contains. This wallet\'s own view of the message\'s delivery lifecycle is available afterwards via `GET /wmp/entities/{entity_id}/messages/{message_id}` and the `wmp.message_status` notification. The request is `multipart/form-data`. Supply the primary body as either the `body` text field (plain text) or a `body` file part (any content type, taken from the part).
|
|
5787
5900
|
* @param {string} walletId
|
|
5788
5901
|
* @param {string} entityId
|
|
5789
5902
|
* @param {File} [body] The primary message body: a plain-text form value, or a file part whose Content-Type becomes the message content type.
|
|
5903
|
+
* @param {string} [expiresAt] Per-message deadline (core §3.2). While the peer is offline the message is discarded from the queue past this time, whichever of this or the negotiated `offline.ttl` is sooner.
|
|
5904
|
+
* @param {string} [messageType] Free-form application-defined message type tag.
|
|
5905
|
+
* @param {string} [inReplyTo] Id of a previously received message this one replies to.
|
|
5790
5906
|
* @param {*} [options] Override http request option.
|
|
5791
5907
|
* @throws {RequiredError}
|
|
5792
5908
|
*/
|
|
5793
|
-
wmpEntitySendMessage(walletId, entityId, body, options) {
|
|
5794
|
-
return (0, exports.DefaultApiFp)(this.configuration).wmpEntitySendMessage(walletId, entityId, body, options).then((request) => request(this.axios, this.basePath));
|
|
5909
|
+
wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options) {
|
|
5910
|
+
return (0, exports.DefaultApiFp)(this.configuration).wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options).then((request) => request(this.axios, this.basePath));
|
|
5795
5911
|
}
|
|
5796
5912
|
/**
|
|
5797
|
-
* Re-establishes or confirms the
|
|
5913
|
+
* Re-establishes or confirms the connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
5798
5914
|
* @param {string} walletId
|
|
5799
5915
|
* @param {string} entityId
|
|
5800
5916
|
* @param {*} [options] Override http request option.
|