@triveria/wallet 0.0.315 → 0.0.317
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 +178 -13
- package/api.js +141 -16
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1016,6 +1016,16 @@ export interface VPDrivenIssuerConfig {
|
|
|
1016
1016
|
*/
|
|
1017
1017
|
'mapping': object;
|
|
1018
1018
|
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Which key store backend holds this wallet\'s signing keys. This property COULD NOT change later: it is only read on wallet creation and is ignored on wallet patch. Leave unset to use the deployment\'s default backend. vaultPlaintext - locally generated and stored WITHOUT encryption, for development only and rejected when the deployment runs with production=true; vaultAwsKms / vaultOvhKms - locally generated, wrapped by AWS KMS / OVH KMS; vaultKmip - generated and held inside a KMIP-speaking appliance (e.g. OVHcloud KMS), never exported.
|
|
1021
|
+
*/
|
|
1022
|
+
export declare const VaultType: {
|
|
1023
|
+
readonly VaultPlaintext: "vaultPlaintext";
|
|
1024
|
+
readonly VaultAwsKms: "vaultAwsKms";
|
|
1025
|
+
readonly VaultOvhKms: "vaultOvhKms";
|
|
1026
|
+
readonly VaultKmip: "vaultKmip";
|
|
1027
|
+
};
|
|
1028
|
+
export type VaultType = typeof VaultType[keyof typeof VaultType];
|
|
1019
1029
|
/**
|
|
1020
1030
|
* The offer to be accepted. The offer URL is mandatory.
|
|
1021
1031
|
*/
|
|
@@ -1148,6 +1158,7 @@ export interface WalletConfig {
|
|
|
1148
1158
|
'EUDI'?: EudiConfiguration;
|
|
1149
1159
|
'IDTL'?: IdtlConfiguration;
|
|
1150
1160
|
'walletKeyIdentifier': SigningKeyIdentifier;
|
|
1161
|
+
'vaultType'?: VaultType;
|
|
1151
1162
|
/**
|
|
1152
1163
|
* Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
|
|
1153
1164
|
*/
|
|
@@ -1217,6 +1228,7 @@ export declare const WalletNotificationEventType: {
|
|
|
1217
1228
|
readonly WmpCredentialVerificationRequest: "wmp.credential_verification_request";
|
|
1218
1229
|
readonly WmpError: "wmp.error";
|
|
1219
1230
|
readonly WmpMessage: "wmp.message";
|
|
1231
|
+
readonly WmpMessageStatus: "wmp.message_status";
|
|
1220
1232
|
readonly WmpIdentityAssertionRequest: "wmp.identity_assertion_request";
|
|
1221
1233
|
readonly WmpIdentityAssertionReceived: "wmp.identity_assertion_received";
|
|
1222
1234
|
};
|
|
@@ -1256,6 +1268,26 @@ export interface WmpAcceptInvitationPayload {
|
|
|
1256
1268
|
*/
|
|
1257
1269
|
'invitationUrl': string;
|
|
1258
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];
|
|
1259
1291
|
/**
|
|
1260
1292
|
* Open (authenticate) the session after the identity assertion exchange.
|
|
1261
1293
|
*/
|
|
@@ -1272,9 +1304,13 @@ export declare const WmpAuthenticateSessionTypeEnum: {
|
|
|
1272
1304
|
export type WmpAuthenticateSessionTypeEnum = typeof WmpAuthenticateSessionTypeEnum[keyof typeof WmpAuthenticateSessionTypeEnum];
|
|
1273
1305
|
/**
|
|
1274
1306
|
* @type WmpClientRequestBody
|
|
1275
|
-
* 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.
|
|
1276
1308
|
*/
|
|
1277
1309
|
export type WmpClientRequestBody = {
|
|
1310
|
+
type: 'ack_processed';
|
|
1311
|
+
} & WmpAckProcessedRequest | {
|
|
1312
|
+
type: 'ack_read';
|
|
1313
|
+
} & WmpAckReadRequest | {
|
|
1278
1314
|
type: 'authenticate';
|
|
1279
1315
|
} & WmpAuthenticateSession | {
|
|
1280
1316
|
type: 'identity_assertion';
|
|
@@ -1351,6 +1387,86 @@ export interface WmpMessage {
|
|
|
1351
1387
|
* Download link for the raw message body.
|
|
1352
1388
|
*/
|
|
1353
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;
|
|
1354
1470
|
}
|
|
1355
1471
|
export interface WmpNotification {
|
|
1356
1472
|
'entity'?: WmpEntityRecord;
|
|
@@ -1358,6 +1474,7 @@ export interface WmpNotification {
|
|
|
1358
1474
|
'id': string;
|
|
1359
1475
|
'error'?: string;
|
|
1360
1476
|
'identityAssertion'?: CredentialWrapper;
|
|
1477
|
+
'messageStatus'?: WmpMessageStatusNotification;
|
|
1361
1478
|
}
|
|
1362
1479
|
/**
|
|
1363
1480
|
* Process a pending credential offer identified by the path id.
|
|
@@ -1953,7 +2070,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1953
2070
|
*/
|
|
1954
2071
|
wmpClientGetRequest: (walletId: string, requestId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1955
2072
|
/**
|
|
1956
|
-
* 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).
|
|
1957
2074
|
* @param {string} walletId
|
|
1958
2075
|
* @param {string} requestId
|
|
1959
2076
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -1992,6 +2109,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1992
2109
|
* @throws {RequiredError}
|
|
1993
2110
|
*/
|
|
1994
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>;
|
|
1995
2121
|
/**
|
|
1996
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).
|
|
1997
2123
|
* @param {string} walletId
|
|
@@ -2001,14 +2127,17 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2001
2127
|
*/
|
|
2002
2128
|
wmpEntityList: (walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2003
2129
|
/**
|
|
2004
|
-
* 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).
|
|
2005
2131
|
* @param {string} walletId
|
|
2006
2132
|
* @param {string} entityId
|
|
2007
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.
|
|
2008
2137
|
* @param {*} [options] Override http request option.
|
|
2009
2138
|
* @throws {RequiredError}
|
|
2010
2139
|
*/
|
|
2011
|
-
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>;
|
|
2012
2141
|
/**
|
|
2013
2142
|
* Re-establishes or confirms the WebSocket connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
2014
2143
|
* @param {string} walletId
|
|
@@ -2566,7 +2695,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2566
2695
|
*/
|
|
2567
2696
|
wmpClientGetRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WmpMessage>>;
|
|
2568
2697
|
/**
|
|
2569
|
-
* 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).
|
|
2570
2699
|
* @param {string} walletId
|
|
2571
2700
|
* @param {string} requestId
|
|
2572
2701
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -2605,6 +2734,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2605
2734
|
* @throws {RequiredError}
|
|
2606
2735
|
*/
|
|
2607
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>>;
|
|
2608
2746
|
/**
|
|
2609
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).
|
|
2610
2748
|
* @param {string} walletId
|
|
@@ -2614,14 +2752,17 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2614
2752
|
*/
|
|
2615
2753
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WmpEntityRecord>>>;
|
|
2616
2754
|
/**
|
|
2617
|
-
* 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).
|
|
2618
2756
|
* @param {string} walletId
|
|
2619
2757
|
* @param {string} entityId
|
|
2620
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.
|
|
2621
2762
|
* @param {*} [options] Override http request option.
|
|
2622
2763
|
* @throws {RequiredError}
|
|
2623
2764
|
*/
|
|
2624
|
-
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>>;
|
|
2625
2766
|
/**
|
|
2626
2767
|
* Re-establishes or confirms the WebSocket connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
2627
2768
|
* @param {string} walletId
|
|
@@ -3179,7 +3320,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3179
3320
|
*/
|
|
3180
3321
|
wmpClientGetRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<WmpMessage>;
|
|
3181
3322
|
/**
|
|
3182
|
-
* 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).
|
|
3183
3324
|
* @param {string} walletId
|
|
3184
3325
|
* @param {string} requestId
|
|
3185
3326
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -3218,6 +3359,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3218
3359
|
* @throws {RequiredError}
|
|
3219
3360
|
*/
|
|
3220
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>;
|
|
3221
3371
|
/**
|
|
3222
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).
|
|
3223
3373
|
* @param {string} walletId
|
|
@@ -3227,14 +3377,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3227
3377
|
*/
|
|
3228
3378
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<WmpEntityRecord>>;
|
|
3229
3379
|
/**
|
|
3230
|
-
* 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).
|
|
3231
3381
|
* @param {string} walletId
|
|
3232
3382
|
* @param {string} entityId
|
|
3233
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.
|
|
3234
3387
|
* @param {*} [options] Override http request option.
|
|
3235
3388
|
* @throws {RequiredError}
|
|
3236
3389
|
*/
|
|
3237
|
-
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>;
|
|
3238
3391
|
/**
|
|
3239
3392
|
* Re-establishes or confirms the WebSocket connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
3240
3393
|
* @param {string} walletId
|
|
@@ -3792,7 +3945,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3792
3945
|
*/
|
|
3793
3946
|
wmpClientGetRequest(walletId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpMessage, any, {}>>;
|
|
3794
3947
|
/**
|
|
3795
|
-
* 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).
|
|
3796
3949
|
* @param {string} walletId
|
|
3797
3950
|
* @param {string} requestId
|
|
3798
3951
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -3831,6 +3984,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3831
3984
|
* @throws {RequiredError}
|
|
3832
3985
|
*/
|
|
3833
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, {}>>;
|
|
3834
3996
|
/**
|
|
3835
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).
|
|
3836
3998
|
* @param {string} walletId
|
|
@@ -3840,14 +4002,17 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3840
4002
|
*/
|
|
3841
4003
|
wmpEntityList(walletId: string, entityType: WmpEntityListEntityTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WmpEntityRecord[], any, {}>>;
|
|
3842
4004
|
/**
|
|
3843
|
-
* 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).
|
|
3844
4006
|
* @param {string} walletId
|
|
3845
4007
|
* @param {string} entityId
|
|
3846
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.
|
|
3847
4012
|
* @param {*} [options] Override http request option.
|
|
3848
4013
|
* @throws {RequiredError}
|
|
3849
4014
|
*/
|
|
3850
|
-
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, {}>>;
|
|
3851
4016
|
/**
|
|
3852
4017
|
* Re-establishes or confirms the WebSocket connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
3853
4018
|
* @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.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessVerificationRequestTypeEnum = exports.WmpProcessOfferRequestTypeEnum = exports.WmpAuthenticateSessionTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = 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
|
|
@@ -181,6 +181,15 @@ exports.TrustListKind = {
|
|
|
181
181
|
TrustList: 'trustList',
|
|
182
182
|
Lotl: 'lotl',
|
|
183
183
|
};
|
|
184
|
+
/**
|
|
185
|
+
* Which key store backend holds this wallet\'s signing keys. This property COULD NOT change later: it is only read on wallet creation and is ignored on wallet patch. Leave unset to use the deployment\'s default backend. vaultPlaintext - locally generated and stored WITHOUT encryption, for development only and rejected when the deployment runs with production=true; vaultAwsKms / vaultOvhKms - locally generated, wrapped by AWS KMS / OVH KMS; vaultKmip - generated and held inside a KMIP-speaking appliance (e.g. OVHcloud KMS), never exported.
|
|
186
|
+
*/
|
|
187
|
+
exports.VaultType = {
|
|
188
|
+
VaultPlaintext: 'vaultPlaintext',
|
|
189
|
+
VaultAwsKms: 'vaultAwsKms',
|
|
190
|
+
VaultOvhKms: 'vaultOvhKms',
|
|
191
|
+
VaultKmip: 'vaultKmip',
|
|
192
|
+
};
|
|
184
193
|
/**
|
|
185
194
|
* Defines the capabilities which the wallet has. It may be any of \"holder\", \"issuer\" and \"verifier\".
|
|
186
195
|
*/
|
|
@@ -205,12 +214,26 @@ exports.WalletNotificationEventType = {
|
|
|
205
214
|
WmpCredentialVerificationRequest: 'wmp.credential_verification_request',
|
|
206
215
|
WmpError: 'wmp.error',
|
|
207
216
|
WmpMessage: 'wmp.message',
|
|
217
|
+
WmpMessageStatus: 'wmp.message_status',
|
|
208
218
|
WmpIdentityAssertionRequest: 'wmp.identity_assertion_request',
|
|
209
219
|
WmpIdentityAssertionReceived: 'wmp.identity_assertion_received',
|
|
210
220
|
};
|
|
221
|
+
exports.WmpAckProcessedRequestTypeEnum = {
|
|
222
|
+
AckProcessed: 'ack_processed',
|
|
223
|
+
};
|
|
224
|
+
exports.WmpAckReadRequestTypeEnum = {
|
|
225
|
+
AckRead: 'ack_read',
|
|
226
|
+
};
|
|
211
227
|
exports.WmpAuthenticateSessionTypeEnum = {
|
|
212
228
|
Authenticate: 'authenticate',
|
|
213
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
|
+
};
|
|
214
237
|
exports.WmpProcessOfferRequestTypeEnum = {
|
|
215
238
|
ProcessOffer: 'process_offer',
|
|
216
239
|
};
|
|
@@ -2738,7 +2761,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2738
2761
|
};
|
|
2739
2762
|
}),
|
|
2740
2763
|
/**
|
|
2741
|
-
* 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).
|
|
2742
2765
|
* @param {string} walletId
|
|
2743
2766
|
* @param {string} requestId
|
|
2744
2767
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -2928,6 +2951,48 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2928
2951
|
options: localVarRequestOptions,
|
|
2929
2952
|
};
|
|
2930
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
|
+
}),
|
|
2931
2996
|
/**
|
|
2932
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).
|
|
2933
2998
|
* @param {string} walletId
|
|
@@ -2969,14 +3034,17 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2969
3034
|
};
|
|
2970
3035
|
}),
|
|
2971
3036
|
/**
|
|
2972
|
-
* 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).
|
|
2973
3038
|
* @param {string} walletId
|
|
2974
3039
|
* @param {string} entityId
|
|
2975
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.
|
|
2976
3044
|
* @param {*} [options] Override http request option.
|
|
2977
3045
|
* @throws {RequiredError}
|
|
2978
3046
|
*/
|
|
2979
|
-
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 = {}) {
|
|
2980
3048
|
// verify required parameter 'walletId' is not null or undefined
|
|
2981
3049
|
(0, common_1.assertParamExists)('wmpEntitySendMessage', 'walletId', walletId);
|
|
2982
3050
|
// verify required parameter 'entityId' is not null or undefined
|
|
@@ -2999,6 +3067,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2999
3067
|
if (body !== undefined) {
|
|
3000
3068
|
localVarFormParams.append('body', body);
|
|
3001
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
|
+
}
|
|
3002
3079
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
3003
3080
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3004
3081
|
if (walletId != null) {
|
|
@@ -4138,7 +4215,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
4138
4215
|
});
|
|
4139
4216
|
},
|
|
4140
4217
|
/**
|
|
4141
|
-
* 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).
|
|
4142
4219
|
* @param {string} walletId
|
|
4143
4220
|
* @param {string} requestId
|
|
4144
4221
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -4217,6 +4294,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
4217
4294
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4218
4295
|
});
|
|
4219
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
|
+
},
|
|
4220
4314
|
/**
|
|
4221
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).
|
|
4222
4316
|
* @param {string} walletId
|
|
@@ -4234,17 +4328,20 @@ const DefaultApiFp = function (configuration) {
|
|
|
4234
4328
|
});
|
|
4235
4329
|
},
|
|
4236
4330
|
/**
|
|
4237
|
-
* 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).
|
|
4238
4332
|
* @param {string} walletId
|
|
4239
4333
|
* @param {string} entityId
|
|
4240
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.
|
|
4241
4338
|
* @param {*} [options] Override http request option.
|
|
4242
4339
|
* @throws {RequiredError}
|
|
4243
4340
|
*/
|
|
4244
|
-
wmpEntitySendMessage(walletId, entityId, body, options) {
|
|
4341
|
+
wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options) {
|
|
4245
4342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4246
4343
|
var _a, _b, _c;
|
|
4247
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntitySendMessage(walletId, entityId, body, options);
|
|
4344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.wmpEntitySendMessage(walletId, entityId, body, expiresAt, messageType, inReplyTo, options);
|
|
4248
4345
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4249
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;
|
|
4250
4347
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4951,7 +5048,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4951
5048
|
return localVarFp.wmpClientGetRequest(walletId, requestId, options).then((request) => request(axios, basePath));
|
|
4952
5049
|
},
|
|
4953
5050
|
/**
|
|
4954
|
-
* 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).
|
|
4955
5052
|
* @param {string} walletId
|
|
4956
5053
|
* @param {string} requestId
|
|
4957
5054
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -5000,6 +5097,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5000
5097
|
wmpEntityGet(walletId, entityId, options) {
|
|
5001
5098
|
return localVarFp.wmpEntityGet(walletId, entityId, options).then((request) => request(axios, basePath));
|
|
5002
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
|
+
},
|
|
5003
5111
|
/**
|
|
5004
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).
|
|
5005
5113
|
* @param {string} walletId
|
|
@@ -5011,15 +5119,18 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
5011
5119
|
return localVarFp.wmpEntityList(walletId, entityType, options).then((request) => request(axios, basePath));
|
|
5012
5120
|
},
|
|
5013
5121
|
/**
|
|
5014
|
-
* 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).
|
|
5015
5123
|
* @param {string} walletId
|
|
5016
5124
|
* @param {string} entityId
|
|
5017
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.
|
|
5018
5129
|
* @param {*} [options] Override http request option.
|
|
5019
5130
|
* @throws {RequiredError}
|
|
5020
5131
|
*/
|
|
5021
|
-
wmpEntitySendMessage(walletId, entityId, body, options) {
|
|
5022
|
-
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));
|
|
5023
5134
|
},
|
|
5024
5135
|
/**
|
|
5025
5136
|
* Re-establishes or confirms the WebSocket connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|
|
@@ -5714,7 +5825,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5714
5825
|
return (0, exports.DefaultApiFp)(this.configuration).wmpClientGetRequest(walletId, requestId, options).then((request) => request(this.axios, this.basePath));
|
|
5715
5826
|
}
|
|
5716
5827
|
/**
|
|
5717
|
-
* 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).
|
|
5718
5829
|
* @param {string} walletId
|
|
5719
5830
|
* @param {string} requestId
|
|
5720
5831
|
* @param {WmpClientRequestBody} wmpClientRequestBody
|
|
@@ -5763,6 +5874,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5763
5874
|
wmpEntityGet(walletId, entityId, options) {
|
|
5764
5875
|
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityGet(walletId, entityId, options).then((request) => request(this.axios, this.basePath));
|
|
5765
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
|
+
}
|
|
5766
5888
|
/**
|
|
5767
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).
|
|
5768
5890
|
* @param {string} walletId
|
|
@@ -5774,15 +5896,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5774
5896
|
return (0, exports.DefaultApiFp)(this.configuration).wmpEntityList(walletId, entityType, options).then((request) => request(this.axios, this.basePath));
|
|
5775
5897
|
}
|
|
5776
5898
|
/**
|
|
5777
|
-
* 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).
|
|
5778
5900
|
* @param {string} walletId
|
|
5779
5901
|
* @param {string} entityId
|
|
5780
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.
|
|
5781
5906
|
* @param {*} [options] Override http request option.
|
|
5782
5907
|
* @throws {RequiredError}
|
|
5783
5908
|
*/
|
|
5784
|
-
wmpEntitySendMessage(walletId, entityId, body, options) {
|
|
5785
|
-
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));
|
|
5786
5911
|
}
|
|
5787
5912
|
/**
|
|
5788
5913
|
* Re-establishes or confirms the WebSocket connection to a WMP server entity. Used to reconnect after a dropped connection so the wallet can resume receiving pending requests.
|