@interop/wallet-core 0.51.0 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -11
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +2 -2
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
- package/dist/clientAnnex/credentialAnchoredGenesis.js +1 -1
- package/dist/clientAnnex/forget.d.ts +18 -6
- package/dist/clientAnnex/forget.d.ts.map +1 -1
- package/dist/clientAnnex/forget.js +19 -6
- package/dist/clientAnnex/forget.js.map +1 -1
- package/dist/clientAnnex/forgetLast.d.ts +51 -30
- package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
- package/dist/clientAnnex/forgetLast.js +72 -26
- package/dist/clientAnnex/forgetLast.js.map +1 -1
- package/dist/clientAnnex/gc.d.ts +3 -3
- package/dist/clientAnnex/gc.d.ts.map +1 -1
- package/dist/clientAnnex/gc.js +2 -2
- package/dist/clientAnnex/gc.js.map +1 -1
- package/dist/clientAnnex/index.d.ts +6 -6
- package/dist/clientAnnex/index.d.ts.map +1 -1
- package/dist/clientAnnex/index.js +5 -5
- package/dist/clientAnnex/index.js.map +1 -1
- package/dist/clientAnnex/ladder.d.ts +19 -11
- package/dist/clientAnnex/ladder.d.ts.map +1 -1
- package/dist/clientAnnex/ladder.js +77 -14
- package/dist/clientAnnex/ladder.js.map +1 -1
- package/dist/clientAnnex/ladderAnchored.d.ts +146 -10
- package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/ladderAnchored.js +230 -26
- package/dist/clientAnnex/ladderAnchored.js.map +1 -1
- package/dist/clientAnnex/log.d.ts +6 -6
- package/dist/clientAnnex/log.d.ts.map +1 -1
- package/dist/clientAnnex/log.js +8 -8
- package/dist/clientAnnex/log.js.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts +18 -7
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.js +54 -14
- package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
- package/dist/clientAnnex/selfEnroll.d.ts +67 -6
- package/dist/clientAnnex/selfEnroll.d.ts.map +1 -1
- package/dist/clientAnnex/selfEnroll.js +91 -15
- package/dist/clientAnnex/selfEnroll.js.map +1 -1
- package/dist/clients/listing.d.ts +1 -1
- package/dist/clients/listing.d.ts.map +1 -1
- package/dist/clients/listing.js +1 -1
- package/dist/clients/listing.js.map +1 -1
- package/dist/clients/revocation.d.ts +1 -1
- package/dist/clients/rosterPolicy.d.ts +1 -1
- package/dist/clients/rosterPolicy.d.ts.map +1 -1
- package/dist/clients/rosterPolicy.js +10 -7
- package/dist/clients/rosterPolicy.js.map +1 -1
- package/dist/descriptors/acquire.js +1 -1
- package/dist/descriptors/logSource.d.ts +6 -4
- package/dist/descriptors/logSource.d.ts.map +1 -1
- package/dist/descriptors/logSource.js +7 -4
- package/dist/descriptors/logSource.js.map +1 -1
- package/dist/enrollment/enrollment.d.ts +1 -1
- package/dist/enrollment/enrollment.d.ts.map +1 -1
- package/dist/enrollment/enrollment.js +2 -1
- package/dist/enrollment/enrollment.js.map +1 -1
- package/dist/genesis/accountGenesis.d.ts +1 -1
- package/dist/genesis/accountGenesis.d.ts.map +1 -1
- package/dist/genesis/accountGenesis.js +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/keyring/kdf.d.ts +6 -20
- package/dist/keyring/kdf.d.ts.map +1 -1
- package/dist/keyring/kdf.js +8 -5
- package/dist/keyring/kdf.js.map +1 -1
- package/dist/keyring/unlockSpace.js +1 -1
- package/dist/keys/clientKeyRecord.d.ts +68 -1
- package/dist/keys/clientKeyRecord.d.ts.map +1 -1
- package/dist/keys/clientKeyRecord.js +155 -20
- package/dist/keys/clientKeyRecord.js.map +1 -1
- package/dist/keys/index.d.ts +2 -2
- package/dist/keys/index.d.ts.map +1 -1
- package/dist/keys/index.js +1 -1
- package/dist/keys/index.js.map +1 -1
- package/dist/keys/rosterLogStore.d.ts +16 -14
- package/dist/keys/rosterLogStore.d.ts.map +1 -1
- package/dist/keys/rosterLogStore.js +164 -32
- package/dist/keys/rosterLogStore.js.map +1 -1
- package/dist/keys/rosterStore.d.ts +8 -7
- package/dist/keys/rosterStore.d.ts.map +1 -1
- package/dist/keys/rosterStore.js +6 -6
- package/dist/keys/rosterStore.js.map +1 -1
- package/dist/keys/spaceEpochs.d.ts +1 -1
- package/dist/keys/spaceEpochs.js +1 -1
- package/dist/keys/userKeyRoster.d.ts +3 -3
- package/dist/keys/userKeyRoster.d.ts.map +1 -1
- package/dist/keys/userKeyRoster.js +3 -3
- package/dist/keys/userKeyRoster.js.map +1 -1
- package/dist/log.d.ts +49 -0
- package/dist/log.d.ts.map +1 -0
- package/dist/log.js +53 -0
- package/dist/log.js.map +1 -0
- package/dist/recovery/index.d.ts +2 -2
- package/dist/recovery/index.js +2 -2
- package/dist/recovery/recoveryDelegation.d.ts +6 -2
- package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
- package/dist/recovery/recoveryDelegation.js +32 -6
- package/dist/recovery/recoveryDelegation.js.map +1 -1
- package/dist/recovery/recoveryWebvh.d.ts +67 -8
- package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
- package/dist/recovery/recoveryWebvh.js +114 -19
- package/dist/recovery/recoveryWebvh.js.map +1 -1
- package/dist/request/appKey.d.ts +9 -3
- package/dist/request/appKey.d.ts.map +1 -1
- package/dist/request/appKey.js +13 -8
- package/dist/request/appKey.js.map +1 -1
- package/dist/request/capabilityRequest.d.ts +9 -1
- package/dist/request/capabilityRequest.d.ts.map +1 -1
- package/dist/request/capabilityRequest.js +13 -2
- package/dist/request/capabilityRequest.js.map +1 -1
- package/dist/request/classify.d.ts +37 -1
- package/dist/request/classify.d.ts.map +1 -1
- package/dist/request/classify.js +74 -3
- package/dist/request/classify.js.map +1 -1
- package/dist/request/ephemeralExchange.d.ts +5 -18
- package/dist/request/ephemeralExchange.d.ts.map +1 -1
- package/dist/request/ephemeralExchange.js +9 -3
- package/dist/request/ephemeralExchange.js.map +1 -1
- package/dist/request/exchangeClient.d.ts +0 -23
- package/dist/request/exchangeClient.d.ts.map +1 -1
- package/dist/request/exchangeClient.js +30 -1
- package/dist/request/exchangeClient.js.map +1 -1
- package/dist/request/index.d.ts +4 -1
- package/dist/request/index.d.ts.map +1 -1
- package/dist/request/index.js +4 -1
- package/dist/request/index.js.map +1 -1
- package/dist/request/interactionRequest.d.ts +23 -0
- package/dist/request/interactionRequest.d.ts.map +1 -0
- package/dist/request/interactionRequest.js +46 -0
- package/dist/request/interactionRequest.js.map +1 -0
- package/dist/request/interactionUrl.d.ts +3 -14
- package/dist/request/interactionUrl.d.ts.map +1 -1
- package/dist/request/interactionUrl.js +24 -3
- package/dist/request/interactionUrl.js.map +1 -1
- package/dist/request/parse.d.ts +0 -10
- package/dist/request/parse.d.ts.map +1 -1
- package/dist/request/parse.js +15 -1
- package/dist/request/parse.js.map +1 -1
- package/dist/request/processRequest.d.ts.map +1 -1
- package/dist/request/processRequest.js +2 -1
- package/dist/request/processRequest.js.map +1 -1
- package/dist/request/types.d.ts +23 -2
- package/dist/request/types.d.ts.map +1 -1
- package/dist/resourceLog/controller.d.ts +48 -49
- package/dist/resourceLog/controller.d.ts.map +1 -1
- package/dist/resourceLog/controller.js +41 -20
- package/dist/resourceLog/controller.js.map +1 -1
- package/dist/resourceLog/errors.d.ts +12 -78
- package/dist/resourceLog/errors.d.ts.map +1 -1
- package/dist/resourceLog/errors.js +12 -79
- package/dist/resourceLog/errors.js.map +1 -1
- package/dist/resourceLog/index.d.ts +17 -22
- package/dist/resourceLog/index.d.ts.map +1 -1
- package/dist/resourceLog/index.js +16 -21
- package/dist/resourceLog/index.js.map +1 -1
- package/dist/resourceLog/license.d.ts +42 -27
- package/dist/resourceLog/license.d.ts.map +1 -1
- package/dist/resourceLog/license.js +53 -30
- package/dist/resourceLog/license.js.map +1 -1
- package/dist/space/activity.d.ts +48 -1
- package/dist/space/activity.d.ts.map +1 -1
- package/dist/space/activity.js +52 -4
- package/dist/space/activity.js.map +1 -1
- package/dist/space/index.d.ts +1 -1
- package/dist/space/index.d.ts.map +1 -1
- package/dist/space/index.js +1 -1
- package/dist/space/index.js.map +1 -1
- package/dist/sync/pull.d.ts +0 -22
- package/dist/sync/pull.d.ts.map +1 -1
- package/dist/sync/pull.js +30 -2
- package/dist/sync/pull.js.map +1 -1
- package/dist/unlock/index.d.ts +7 -7
- package/dist/unlock/index.d.ts.map +1 -1
- package/dist/unlock/index.js +6 -6
- package/dist/unlock/index.js.map +1 -1
- package/dist/unlock/retire.d.ts +29 -28
- package/dist/unlock/retire.d.ts.map +1 -1
- package/dist/unlock/retire.js +25 -16
- package/dist/unlock/retire.js.map +1 -1
- package/dist/unlock/standingClient.d.ts +1 -1
- package/dist/unlock/standingClient.js +3 -3
- package/dist/unlock/standingWebvh.d.ts +28 -10
- package/dist/unlock/standingWebvh.d.ts.map +1 -1
- package/dist/unlock/standingWebvh.js +75 -37
- package/dist/unlock/standingWebvh.js.map +1 -1
- package/dist/unlock/unlockRecord.d.ts +37 -0
- package/dist/unlock/unlockRecord.d.ts.map +1 -1
- package/dist/unlock/unlockRecord.js +54 -1
- package/dist/unlock/unlockRecord.js.map +1 -1
- package/dist/webvh/delegatedLogStore.d.ts +2 -2
- package/dist/webvh/delegatedLogStore.js +2 -2
- package/dist/webvh/didWeb.js +1 -1
- package/dist/webvh/didWeb.js.map +1 -1
- package/dist/webvh/didWebvh.d.ts +33 -3
- package/dist/webvh/didWebvh.d.ts.map +1 -1
- package/dist/webvh/didWebvh.js +40 -11
- package/dist/webvh/didWebvh.js.map +1 -1
- package/dist/webvh/index.d.ts +1 -1
- package/dist/webvh/index.d.ts.map +1 -1
- package/dist/webvh/index.js +1 -1
- package/dist/webvh/index.js.map +1 -1
- package/dist/webvh/listClients.js +1 -1
- package/dist/webvh/listClients.js.map +1 -1
- package/dist/webvh/verifyLog.d.ts +1 -1
- package/dist/webvh/verifyLog.d.ts.map +1 -1
- package/dist/webvh/verifyLog.js +1 -2
- package/dist/webvh/verifyLog.js.map +1 -1
- package/package.json +9 -11
- package/dist/display/alignment.d.ts +0 -55
- package/dist/display/alignment.d.ts.map +0 -1
- package/dist/display/alignment.js +0 -117
- package/dist/display/alignment.js.map +0 -1
- package/dist/display/credentialName.d.ts +0 -42
- package/dist/display/credentialName.d.ts.map +0 -1
- package/dist/display/credentialName.js +0 -106
- package/dist/display/credentialName.js.map +0 -1
- package/dist/display/displayFields.d.ts +0 -59
- package/dist/display/displayFields.d.ts.map +0 -1
- package/dist/display/displayFields.js +0 -136
- package/dist/display/displayFields.js.map +0 -1
- package/dist/display/evidence.d.ts +0 -50
- package/dist/display/evidence.d.ts.map +0 -1
- package/dist/display/evidence.js +0 -67
- package/dist/display/evidence.js.map +0 -1
- package/dist/display/image.d.ts +0 -18
- package/dist/display/image.d.ts.map +0 -1
- package/dist/display/image.js +0 -23
- package/dist/display/image.js.map +0 -1
- package/dist/display/index.d.ts +0 -38
- package/dist/display/index.d.ts.map +0 -1
- package/dist/display/index.js +0 -32
- package/dist/display/index.js.map +0 -1
- package/dist/display/issuer.d.ts +0 -105
- package/dist/display/issuer.d.ts.map +0 -1
- package/dist/display/issuer.js +0 -126
- package/dist/display/issuer.js.map +0 -1
- package/dist/display/obv3.d.ts +0 -82
- package/dist/display/obv3.d.ts.map +0 -1
- package/dist/display/obv3.js +0 -117
- package/dist/display/obv3.js.map +0 -1
- package/dist/display/parse.d.ts +0 -66
- package/dist/display/parse.d.ts.map +0 -1
- package/dist/display/parse.js +0 -104
- package/dist/display/parse.js.map +0 -1
- package/dist/display/subject.d.ts +0 -79
- package/dist/display/subject.d.ts.map +0 -1
- package/dist/display/subject.js +0 -124
- package/dist/display/subject.js.map +0 -1
- package/dist/display/text.d.ts +0 -53
- package/dist/display/text.d.ts.map +0 -1
- package/dist/display/text.js +0 -78
- package/dist/display/text.js.map +0 -1
- package/dist/display/types.d.ts +0 -55
- package/dist/display/types.d.ts.map +0 -1
- package/dist/display/types.js +0 -41
- package/dist/display/types.js.map +0 -1
- package/dist/display/validity.d.ts +0 -51
- package/dist/display/validity.d.ts.map +0 -1
- package/dist/display/validity.js +0 -51
- package/dist/display/validity.js.map +0 -1
- package/dist/display/verificationView.d.ts +0 -115
- package/dist/display/verificationView.d.ts.map +0 -1
- package/dist/display/verificationView.js +0 -199
- package/dist/display/verificationView.js.map +0 -1
- package/dist/resourceLog/append.d.ts +0 -112
- package/dist/resourceLog/append.d.ts.map +0 -1
- package/dist/resourceLog/append.js +0 -197
- package/dist/resourceLog/append.js.map +0 -1
- package/dist/resourceLog/entry.d.ts +0 -68
- package/dist/resourceLog/entry.d.ts.map +0 -1
- package/dist/resourceLog/entry.js +0 -167
- package/dist/resourceLog/entry.js.map +0 -1
- package/dist/resourceLog/pin.d.ts +0 -82
- package/dist/resourceLog/pin.d.ts.map +0 -1
- package/dist/resourceLog/pin.js +0 -57
- package/dist/resourceLog/pin.js.map +0 -1
- package/dist/resourceLog/seal.d.ts +0 -97
- package/dist/resourceLog/seal.d.ts.map +0 -1
- package/dist/resourceLog/seal.js +0 -113
- package/dist/resourceLog/seal.js.map +0 -1
- package/dist/resourceLog/verify.d.ts +0 -96
- package/dist/resourceLog/verify.d.ts.map +0 -1
- package/dist/resourceLog/verify.js +0 -474
- package/dist/resourceLog/verify.js.map +0 -1
- package/dist/resourceLog/vmFragment.d.ts +0 -33
- package/dist/resourceLog/vmFragment.d.ts.map +0 -1
- package/dist/resourceLog/vmFragment.js +0 -39
- package/dist/resourceLog/vmFragment.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchangeClient.js","sourceRoot":"","sources":["../../src/request/exchangeClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exchangeClient.js","sourceRoot":"","sources":["../../src/request/exchangeClient.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uB,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;QACtD,IAAI,EAAE,EAAE,sBAAsB,EAAE;QAChC,KAAK;KACN,CAAC,CAAA;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,EACpC,WAAW,EACX,OAAO,EACP,KAAK,GAAG,UAAU,CAAC,KAAK,EAQzB;IACC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,WAAW,EAAE;QACxC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KAC9B,CAAC,CAAA;IACF,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAClC,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AACvC,CAAC"}
|
package/dist/request/index.d.ts
CHANGED
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
* - `presentationSuite` negotiates the response cryptosuite; `composeVp` builds
|
|
25
25
|
* the (optionally signed, optionally grant-embedding) response VP.
|
|
26
26
|
* - `exchangeClient` is the fetch-injectable VC-API exchange client;
|
|
27
|
-
* `interactionUrl` resolves VCALM `interaction:` URLs
|
|
27
|
+
* `interactionUrl` resolves VCALM `interaction:` URLs; `interactionRequest`
|
|
28
|
+
* composes the two into `openInteractionRequest`, the answering wallet's
|
|
29
|
+
* one-call entry point for an interaction URL.
|
|
28
30
|
* - `ephemeralExchange` is the requester's side of a WAS server's ephemeral
|
|
29
31
|
* exchange: create one carrying a VPR, poll it (with an optional deadline)
|
|
30
32
|
* until the wallet answers. `capabilityRequest` composes the zcap-only VPR
|
|
@@ -48,6 +50,7 @@ export * from './presentationSuite.js';
|
|
|
48
50
|
export * from './composeVp.js';
|
|
49
51
|
export * from './exchangeClient.js';
|
|
50
52
|
export * from './interactionUrl.js';
|
|
53
|
+
export * from './interactionRequest.js';
|
|
51
54
|
export * from './ephemeralExchange.js';
|
|
52
55
|
export * from './capabilityRequest.js';
|
|
53
56
|
export * from './processRequest.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/request/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
package/dist/request/index.js
CHANGED
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
* - `presentationSuite` negotiates the response cryptosuite; `composeVp` builds
|
|
25
25
|
* the (optionally signed, optionally grant-embedding) response VP.
|
|
26
26
|
* - `exchangeClient` is the fetch-injectable VC-API exchange client;
|
|
27
|
-
* `interactionUrl` resolves VCALM `interaction:` URLs
|
|
27
|
+
* `interactionUrl` resolves VCALM `interaction:` URLs; `interactionRequest`
|
|
28
|
+
* composes the two into `openInteractionRequest`, the answering wallet's
|
|
29
|
+
* one-call entry point for an interaction URL.
|
|
28
30
|
* - `ephemeralExchange` is the requester's side of a WAS server's ephemeral
|
|
29
31
|
* exchange: create one carrying a VPR, poll it (with an optional deadline)
|
|
30
32
|
* until the wallet answers. `capabilityRequest` composes the zcap-only VPR
|
|
@@ -48,6 +50,7 @@ export * from './presentationSuite.js';
|
|
|
48
50
|
export * from './composeVp.js';
|
|
49
51
|
export * from './exchangeClient.js';
|
|
50
52
|
export * from './interactionUrl.js';
|
|
53
|
+
export * from './interactionRequest.js';
|
|
51
54
|
export * from './ephemeralExchange.js';
|
|
52
55
|
export * from './capabilityRequest.js';
|
|
53
56
|
export * from './processRequest.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/request/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/request/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FetchLike, IVPRDetails } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves an interaction URL to the Verifiable Presentation Request it names.
|
|
4
|
+
* Throws a plain `Error` when the text is not an interaction URL, or when the
|
|
5
|
+
* resolved protocols map names no usable exchange (`interact` or `vcapi`); a
|
|
6
|
+
* `404` on either the protocols fetch or the exchange's begin POST surfaces as
|
|
7
|
+
* {@link EphemeralExchangeGoneError} (dispatch on `err.name`), since either
|
|
8
|
+
* one means the exchange expired or the link is wrong.
|
|
9
|
+
*
|
|
10
|
+
* @param options {object}
|
|
11
|
+
* @param options.url {string}
|
|
12
|
+
* @param [options.fetch] {FetchLike}
|
|
13
|
+
* @returns {Promise<{ interactionUrl: string, exchangeUrl: string, request: IVPRDetails }>}
|
|
14
|
+
*/
|
|
15
|
+
export declare function openInteractionRequest({ url, fetch }: {
|
|
16
|
+
url: string;
|
|
17
|
+
fetch?: FetchLike;
|
|
18
|
+
}): Promise<{
|
|
19
|
+
interactionUrl: string;
|
|
20
|
+
exchangeUrl: string;
|
|
21
|
+
request: IVPRDetails;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=interactionRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactionRequest.d.ts","sourceRoot":"","sources":["../../src/request/interactionRequest.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExD;;;;;;;;;;;;GAYG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,GAAG,EACH,KAAwB,EACzB,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,GAAG,OAAO,CAAC;IACV,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,WAAW,CAAA;CACrB,CAAC,CAeD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Opens a VCALM interaction URL end to end: resolves its protocols map, begins
|
|
6
|
+
* the exchange it names, and hands back the Verifiable Presentation Request the
|
|
7
|
+
* exchange is actually asking for. This is the answering wallet's counterpart
|
|
8
|
+
* of `createEphemeralExchange` (`ephemeralExchange.ts`): a requester stores a
|
|
9
|
+
* VPR on an ephemeral exchange and prints the interaction URL; this opens it.
|
|
10
|
+
*
|
|
11
|
+
* Classification is deliberately not done here. The caller runs its own
|
|
12
|
+
* `classifyRequest` over the returned `request` -- freewallet's App
|
|
13
|
+
* Connect-aware classifier must refuse an `AppConnectQuery` that arrives with
|
|
14
|
+
* no attested origin, and the shared classifier here would silently filter it
|
|
15
|
+
* out instead.
|
|
16
|
+
*/
|
|
17
|
+
import { fetchInteractionProtocols, isInteractionUrl, parseInteractionUrl } from './interactionUrl.js';
|
|
18
|
+
import { startExchange, vcApiExchangeUrl } from './exchangeClient.js';
|
|
19
|
+
/**
|
|
20
|
+
* Resolves an interaction URL to the Verifiable Presentation Request it names.
|
|
21
|
+
* Throws a plain `Error` when the text is not an interaction URL, or when the
|
|
22
|
+
* resolved protocols map names no usable exchange (`interact` or `vcapi`); a
|
|
23
|
+
* `404` on either the protocols fetch or the exchange's begin POST surfaces as
|
|
24
|
+
* {@link EphemeralExchangeGoneError} (dispatch on `err.name`), since either
|
|
25
|
+
* one means the exchange expired or the link is wrong.
|
|
26
|
+
*
|
|
27
|
+
* @param options {object}
|
|
28
|
+
* @param options.url {string}
|
|
29
|
+
* @param [options.fetch] {FetchLike}
|
|
30
|
+
* @returns {Promise<{ interactionUrl: string, exchangeUrl: string, request: IVPRDetails }>}
|
|
31
|
+
*/
|
|
32
|
+
export async function openInteractionRequest({ url, fetch = globalThis.fetch }) {
|
|
33
|
+
if (!isInteractionUrl(url)) {
|
|
34
|
+
throw new Error(`Not an interaction URL: ${url}`);
|
|
35
|
+
}
|
|
36
|
+
const interactionUrl = parseInteractionUrl(url);
|
|
37
|
+
const protocols = await fetchInteractionProtocols(interactionUrl, { fetch });
|
|
38
|
+
const exchangeUrl = vcApiExchangeUrl({ protocols });
|
|
39
|
+
if (!exchangeUrl) {
|
|
40
|
+
throw new Error(`The interaction URL's protocols map names no usable exchange ` +
|
|
41
|
+
`("interact" or "vcapi"): ${interactionUrl}`);
|
|
42
|
+
}
|
|
43
|
+
const request = await startExchange({ exchangeUrl, fetch });
|
|
44
|
+
return { interactionUrl, exchangeUrl, request };
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=interactionRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactionRequest.js","sourceRoot":"","sources":["../../src/request/interactionRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAGrE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,EAC3C,GAAG,EACH,KAAK,GAAG,UAAU,CAAC,KAAK,EAIzB;IAKC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,GAAG,EAAE,CAAC,CAAA;IACnD,CAAC;IACD,MAAM,cAAc,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAA;IAC/C,MAAM,SAAS,GAAG,MAAM,yBAAyB,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;IAC5E,MAAM,WAAW,GAAG,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;IACnD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CACb,+DAA+D;YAC7D,4BAA4B,cAAc,EAAE,CAC/C,CAAA;IACH,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAA;IAC3D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,OAAO,EAAE,CAAA;AACjD,CAAC"}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* VCALM `interaction:` URL handling: detecting an interaction URL, normalizing
|
|
6
|
-
* it to its inner HTTPS URL, and fetching the protocols map it advertises. An
|
|
7
|
-
* interaction URL is a level of indirection a verifier / issuer hands the wallet
|
|
8
|
-
* (over a deep link or QR code) that resolves to a `protocols` map naming the
|
|
9
|
-
* real exchange endpoints.
|
|
10
|
-
*
|
|
11
|
-
* Ported verbatim from DCW's `app/lib/interactionUrl.ts`, with the network
|
|
12
|
-
* transport injected ({@link FetchLike}, default `globalThis.fetch`).
|
|
13
|
-
*/
|
|
14
1
|
import type { FetchLike } from './types.js';
|
|
15
2
|
/**
|
|
16
3
|
* Detects whether a URL is a VCALM interaction URL.
|
|
@@ -40,7 +27,9 @@ export declare function parseInteractionUrl(url: string): string;
|
|
|
40
27
|
* Fetches the interaction protocols response from a VCALM interaction URL. Sends
|
|
41
28
|
* GET with `Accept: application/json` per the VCALM spec, and returns the
|
|
42
29
|
* protocols map. Logs a warning if the `iuv` param value is not `1`; throws if
|
|
43
|
-
* the response is not ok or the `protocols` key is missing.
|
|
30
|
+
* the response is not ok or the `protocols` key is missing. A `404` is reported
|
|
31
|
+
* as {@link EphemeralExchangeGoneError} (dispatch on `err.name`): the
|
|
32
|
+
* interaction URL points at an exchange that expired or was never there.
|
|
44
33
|
*
|
|
45
34
|
* @param interactionUrl {string}
|
|
46
35
|
* @param [options] {object}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactionUrl.d.ts","sourceRoot":"","sources":["../../src/request/interactionUrl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interactionUrl.d.ts","sourceRoot":"","sources":["../../src/request/interactionUrl.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAI3C;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAUrD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAWvD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,yBAAyB,CAC7C,cAAc,EAAE,MAAM,EACtB,EAAE,KAAwB,EAAE,GAAE;IAAE,KAAK,CAAC,EAAE,SAAS,CAAA;CAAO,GACvD,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAmCjC"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* VCALM `interaction:` URL handling: detecting an interaction URL, normalizing
|
|
6
|
+
* it to its inner HTTPS URL, and fetching the protocols map it advertises. An
|
|
7
|
+
* interaction URL is a level of indirection a verifier / issuer hands the wallet
|
|
8
|
+
* (over a deep link or QR code) that resolves to a `protocols` map naming the
|
|
9
|
+
* real exchange endpoints.
|
|
10
|
+
*
|
|
11
|
+
* Ported verbatim from DCW's `app/lib/interactionUrl.ts`, with the network
|
|
12
|
+
* transport injected ({@link FetchLike}, default `globalThis.fetch`).
|
|
13
|
+
*/
|
|
14
|
+
import { log } from '../log.js';
|
|
15
|
+
import { EphemeralExchangeGoneError } from './ephemeralExchange.js';
|
|
1
16
|
const INTERACTION_SCHEME_PREFIX = 'interaction:';
|
|
2
17
|
/**
|
|
3
18
|
* Detects whether a URL is a VCALM interaction URL.
|
|
@@ -49,7 +64,9 @@ export function parseInteractionUrl(url) {
|
|
|
49
64
|
* Fetches the interaction protocols response from a VCALM interaction URL. Sends
|
|
50
65
|
* GET with `Accept: application/json` per the VCALM spec, and returns the
|
|
51
66
|
* protocols map. Logs a warning if the `iuv` param value is not `1`; throws if
|
|
52
|
-
* the response is not ok or the `protocols` key is missing.
|
|
67
|
+
* the response is not ok or the `protocols` key is missing. A `404` is reported
|
|
68
|
+
* as {@link EphemeralExchangeGoneError} (dispatch on `err.name`): the
|
|
69
|
+
* interaction URL points at an exchange that expired or was never there.
|
|
53
70
|
*
|
|
54
71
|
* @param interactionUrl {string}
|
|
55
72
|
* @param [options] {object}
|
|
@@ -61,8 +78,9 @@ export async function fetchInteractionProtocols(interactionUrl, { fetch = global
|
|
|
61
78
|
const parsed = new URL(interactionUrl);
|
|
62
79
|
const iuv = parsed.searchParams.get('iuv');
|
|
63
80
|
if (iuv && iuv !== '1') {
|
|
64
|
-
|
|
65
|
-
|
|
81
|
+
log.warn('Unexpected iuv value (expected "1"); proceeding anyway', {
|
|
82
|
+
iuv
|
|
83
|
+
});
|
|
66
84
|
}
|
|
67
85
|
}
|
|
68
86
|
catch {
|
|
@@ -71,6 +89,9 @@ export async function fetchInteractionProtocols(interactionUrl, { fetch = global
|
|
|
71
89
|
const response = await fetch(interactionUrl, {
|
|
72
90
|
headers: { Accept: 'application/json' }
|
|
73
91
|
});
|
|
92
|
+
if (response.status === 404) {
|
|
93
|
+
throw new EphemeralExchangeGoneError(`The interaction URL ${interactionUrl} is no longer available.`);
|
|
94
|
+
}
|
|
74
95
|
if (!response.ok) {
|
|
75
96
|
throw new Error(`Interaction URL fetch failed: ${response.status} ${response.statusText}`);
|
|
76
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactionUrl.js","sourceRoot":"","sources":["../../src/request/interactionUrl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interactionUrl.js","sourceRoot":"","sources":["../../src/request/interactionUrl.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;GASG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAA;AAGnE,MAAM,yBAAyB,GAAG,cAAc,CAAA;AAEhD;;;;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ACJ,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,4BAA4B,cAAc,EAAE,CAAC,CAAA;IAC/D,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,cAAc,EAAE;QAC3C,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;KACxC,CAAC,CAAA;IAEF,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5B,MAAM,IAAI,0BAA0B,CAClC,uBAAuB,cAAc,0BAA0B,CAChE,CAAA;IACH,CAAC;IACD,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CACb,iCAAiC,QAAQ,CAAC,MAAM,IAAI,QAAQ,CAAC,UAAU,EAAE,CAC1E,CAAA;IACH,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAA;IAElC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;QAC1D,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;IACtE,CAAC;IAED,OAAO,IAAI,CAAC,SAAS,CAAA;AACvB,CAAC"}
|
package/dist/request/parse.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Parsing of incoming wallet/VC API messages that arrive as JSON text or a
|
|
6
|
-
* deep-link URL (`dccrequest://...?request=<json>`), plus the small
|
|
7
|
-
* query-inspection helpers a caller runs over a parsed VPR body. Ported from
|
|
8
|
-
* DCW's `app/lib/walletRequestApi.ts`; the `query-string` dependency is dropped
|
|
9
|
-
* in favor of the native `URL` / `URLSearchParams`.
|
|
10
|
-
*/
|
|
11
1
|
import type { IVPRQuery, IZcapQuery, WalletApiMessage } from './types.js';
|
|
12
2
|
export { isDIDAuthRequested as isDidAuthRequested } from './classify.js';
|
|
13
3
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/request/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../src/request/parse.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAKV,SAAS,EACT,UAAU,EACV,gBAAgB,EACjB,MAAM,YAAY,CAAA;AAMnB,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAExE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAexD;AAoBD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACd,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;CACtB,GAAG,gBAAgB,GAAG,SAAS,CAiB/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,GAAG,EACJ,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAqBtC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,SAAS,EAAE,CAAA;CAAE,GAAG;IACrE,YAAY,CAAC,EAAE,UAAU,EAAE,CAAA;CAC5B,CAUA;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAWvE"}
|
package/dist/request/parse.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Parsing of incoming wallet/VC API messages that arrive as JSON text or a
|
|
6
|
+
* deep-link URL (`dccrequest://...?request=<json>`), plus the small
|
|
7
|
+
* query-inspection helpers a caller runs over a parsed VPR body. Ported from
|
|
8
|
+
* DCW's `app/lib/walletRequestApi.ts`; the `query-string` dependency is dropped
|
|
9
|
+
* in favor of the native `URL` / `URLSearchParams`.
|
|
10
|
+
*/
|
|
11
|
+
import { log } from '../log.js';
|
|
1
12
|
import { isDIDAuthRequested, queriesOf } from './classify.js';
|
|
2
13
|
// The DID-Auth query helper is spelled `isDIDAuthRequested` in `classify.ts`;
|
|
3
14
|
// DCW imported it as `isDidAuthRequested`. Both names resolve to one function.
|
|
@@ -96,7 +107,10 @@ export function parseWalletApiUrl({ url }) {
|
|
|
96
107
|
return JSON.parse(messageText);
|
|
97
108
|
}
|
|
98
109
|
catch (err) {
|
|
99
|
-
|
|
110
|
+
log.error('Error parsing incoming wallet API message', {
|
|
111
|
+
messageText,
|
|
112
|
+
err
|
|
113
|
+
});
|
|
100
114
|
return undefined;
|
|
101
115
|
}
|
|
102
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../src/request/parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse.js","sourceRoot":"","sources":["../../src/request/parse.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;GAMG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAW/B,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE7D,8EAA8E;AAC9E,+EAA+E;AAC/E,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAExE;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,IAAI,aAAa,CAAA;IACjB,IAAI,CAAC;QACH,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI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AK,CAAC,CAAA;IACtD,OAAO,CACL,OAAO,CAAC,MAAM,GAAG,CAAC;QAClB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAmB,CAAC,CACtE,CAAA;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processRequest.d.ts","sourceRoot":"","sources":["../../src/request/processRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"processRequest.d.ts","sourceRoot":"","sources":["../../src/request/processRequest.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EAEX,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACf,MAAM,YAAY,CAAA;AAkBnB;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,MAAM,EACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,GAAG,OAAO,CAOV;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAAC,EACnC,OAAO,EACP,kBAAkB,EAClB,WAAgB,EAChB,uBAAuB,EACvB,UAAU,EACV,WAAW,EACZ,EAAE;IACD,OAAO,EAAE,WAAW,CAAA;IACpB,kBAAkB,EAAE,kBAAkB,CAAA;IACtC,WAAW,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACrC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,GAAG,OAAO,CAAC,cAAc,CAAC,CAkF1B"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* imported, so this layer carries no session / grant-resolution machinery. The
|
|
16
16
|
* signer and holder DID are injected as a {@link PresentationSigner}.
|
|
17
17
|
*/
|
|
18
|
+
import { log } from '../log.js';
|
|
18
19
|
import { appConnectRequestOf, classifyRequest, queriesOf } from './classify.js';
|
|
19
20
|
import { composeVp } from './composeVp.js';
|
|
20
21
|
import { negotiateCryptosuite } from './presentationSuite.js';
|
|
@@ -30,7 +31,7 @@ function hostOf(value) {
|
|
|
30
31
|
return url.host;
|
|
31
32
|
}
|
|
32
33
|
catch (err) {
|
|
33
|
-
|
|
34
|
+
log.warn('Could not parse host', { value, err });
|
|
34
35
|
return undefined;
|
|
35
36
|
}
|
|
36
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processRequest.js","sourceRoot":"","sources":["../../src/request/processRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAU7D;;;GAGG;AACH,SAAS,MAAM,CAAC,KAAa;IAC3B,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;YAC/B,CAAC,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC;YAChB,CAAC,CAAC,IAAI,GAAG,CAAC,WAAW,KAAK,EAAE,CAAC,CAAA;QAC/B,OAAO,GAAG,CAAC,IAAI,CAAA;IACjB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,
|
|
1
|
+
{"version":3,"file":"processRequest.js","sourceRoot":"","sources":["../../src/request/processRequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC/E,OAAO,EAAE,S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GACT,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,EAAE,YAAY;QACjD,CAAC,CAAC,MAAM,UAAU,CAAC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;QACjD,CAAC,CAAC,EAAE,CAAA;IAER,IAAI,CAAC,OAAO,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/D,mEAAmE;QACnE,OAAO,EAAE,CAAA;IACX,CAAC;IAED,MAAM,sBAAsB,GAAG,MAAM,SAAS,CAAC;QAC7C,kBAAkB;QAClB,WAAW,EAAE,WAAW;QACxB,SAAS;QACT,MAAM;QACN,gBAAgB,EAAE,OAAO;QACzB,WAAW,EAAE,qBAAqB;QAClC,KAAK;KACN,CAAC,CAAA;IACF,2EAA2E;IAC3E,6EAA6E;IAC7E,uBAAuB;IACvB,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,CAAA;AAC1C,CAAC"}
|
package/dist/request/types.d.ts
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
*/
|
|
25
25
|
import type { ISigner } from '@interop/data-integrity-core';
|
|
26
26
|
import type { IVerifiableCredential, IVerifiablePresentation, IZcap } from '@interop/data-integrity-core';
|
|
27
|
-
import type { ICapabilityQueryDetail, IQueryByExample, IVPRDetails, WalletResponse } from '@interop/data-integrity-core/vpr';
|
|
28
|
-
export type { IVPRequest, IVPOffer, IIssueRequest, IExchangeInvitation, IOid4VCIOffer,
|
|
27
|
+
import type { ICapabilityQueryDetail, IQueryByExample, IVPRDetails as ISpecVPRDetails, WalletResponse } from '@interop/data-integrity-core/vpr';
|
|
28
|
+
export type { IVPRequest, IVPOffer, IIssueRequest, IExchangeInvitation, IOid4VCIOffer, IVPRInteract, IVPRQuery, IQueryByExample, ICredentialQuery, IAcceptedCryptosuites, IDIDAuthenticationQuery, IZcapQuery, ICapabilityQueryDetail, IInvocationTarget, IAllowedAction, WalletApiMessage, WalletResponse, IVpRequest, IVpOffer, IVprDetails, IVprQuery, IDidAuthenticationQuery } from '@interop/data-integrity-core/vpr';
|
|
29
29
|
export type { IVerifiableCredential, IVerifiablePresentation, IZcap } from '@interop/data-integrity-core';
|
|
30
30
|
/**
|
|
31
31
|
* The protocol handles a verifier offers alongside a CHAPI request. Only
|
|
@@ -38,6 +38,20 @@ export interface CHAPIProtocols {
|
|
|
38
38
|
OID4VP?: string;
|
|
39
39
|
OID4VCI?: string;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* The body of a Verifiable Presentation Request, widened from the spec
|
|
43
|
+
* vocabulary with the wallet-layer `agent` member: the requester's
|
|
44
|
+
* self-declared display name on a standalone capability request (an agent
|
|
45
|
+
* asking for grants through an interaction URL, where no attested origin
|
|
46
|
+
* names it). One member at the VPR root rather than one per query, since a
|
|
47
|
+
* single agent sends the whole request. Display only and attacker-controlled,
|
|
48
|
+
* like App Connect's `app.name`; `requestingAgentOf` validates it.
|
|
49
|
+
*/
|
|
50
|
+
export type IVPRDetails = ISpecVPRDetails & {
|
|
51
|
+
agent?: {
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
41
55
|
/**
|
|
42
56
|
* Raw CHAPI credential-get event. The `VerifiablePresentation` object CHAPI
|
|
43
57
|
* hands us *is* the VPR body (`query` / `challenge` / `domain`); classification
|
|
@@ -104,6 +118,13 @@ export interface WalletRequestProfile {
|
|
|
104
118
|
didAuth: boolean;
|
|
105
119
|
vcQueries: IQueryByExample[];
|
|
106
120
|
zcapRequests: ICapabilityQueryDetail[];
|
|
121
|
+
/**
|
|
122
|
+
* The requester's self-declared display name (the VPR's `agent.name`,
|
|
123
|
+
* validated and trimmed), present only when the request carried one.
|
|
124
|
+
*/
|
|
125
|
+
agent?: {
|
|
126
|
+
name: string;
|
|
127
|
+
};
|
|
107
128
|
}
|
|
108
129
|
/**
|
|
109
130
|
* A capability request entry as an `AppConnectQuery` carries it: the standard
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/request/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,EACN,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/request/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,EACN,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,WAAW,IAAI,eAAe,EAC9B,cAAc,EACf,MAAM,kCAAkC,CAAA;AAMzC,YAAY,EACV,UAAU,EACV,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACV,sBAAsB,EACtB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,uBAAuB,EACxB,MAAM,kCAAkC,CAAA;AACzC,YAAY,EACV,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,EACN,MAAM,8BAA8B,CAAA;AAErC;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf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;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAE9E;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QACpB,YAAY,EAAE,sBAAsB,EAAE,CAAA;KACvC,KAAK,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;IACtB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE;QACzB,OAAO,EAAE,WAAW,CAAA;QACpB,UAAU,EAAE,kBAAkB,CAAA;QAC9B,MAAM,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,gBAAgB,EAAE,OAAO,CAAA;QACzB,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;CAC9B"}
|
|
@@ -2,76 +2,67 @@
|
|
|
2
2
|
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
5
|
+
* The did:webvh side of `@interop/vh-resource-log`'s controller port: the
|
|
6
|
+
* wallet-core EXTENDED controller view -- the library's generic port plus the
|
|
7
|
+
* per-version credential-inventory accessor the ceremony-tail license reads,
|
|
8
|
+
* plus the library's `admitAppend` admission hook made mandatory and
|
|
9
|
+
* carrying that license -- and the adapter that builds it from an
|
|
10
|
+
* already-verified account log (the `verifyAccountLog` output), answering
|
|
11
|
+
* version lookups from that verified history rather than from any wire
|
|
12
|
+
* fetch. Handing the verifier a view instead of a resolver is what
|
|
13
|
+
* enforces the profile's rule that controller-document material never comes
|
|
14
|
+
* from the channel the log came from; supplying the hook is the obligation
|
|
15
|
+
* the library's port states for any controller document that can list
|
|
16
|
+
* ladder-shaped verification methods -- a bare view does not lack ladder
|
|
17
|
+
* keys, it lacks the ability to recognize them.
|
|
18
18
|
*/
|
|
19
19
|
import type { DIDLog } from '@interop/did-method-webvh';
|
|
20
|
+
import { type ResourceLogController } from '@interop/vh-resource-log';
|
|
20
21
|
/**
|
|
21
|
-
* The credential-
|
|
22
|
+
* The credential-inventory view at one controller-log version, consumed by the
|
|
22
23
|
* ceremony-tail license on ladder-signed appends (clause B of the ladder
|
|
23
24
|
* VM's authority clauses). `ladderKeys` holds the ladder VMs' signing-key
|
|
24
25
|
* multibases, recognized by relation asymmetry -- a `capabilityDelegation`
|
|
25
26
|
* member absent from `capabilityInvocation` is the ladder VM -- and is how a
|
|
26
27
|
* verifier tells a ladder-signed proof from an enrolled client's.
|
|
27
|
-
* `
|
|
28
|
+
* `inventoryKeys` is S(V), the credential-inventory key set: the `keyAgreement`
|
|
28
29
|
* methods whose `controller` is the account DID (the deliberately unmarked
|
|
29
30
|
* credential entries -- verbatim `Multikey` keys and `MultikeyCommitment`
|
|
30
31
|
* commitments alike, keyed by their key material), union the ladder VMs. A
|
|
31
|
-
* document entry is
|
|
32
|
+
* document entry is inventory-changing iff S(V) differs from S(V-1) in either
|
|
32
33
|
* direction; ordinary client enrollment and revocation are excluded
|
|
33
34
|
* structurally, because a client's `keyAgreement` twin carries the `did:key`
|
|
34
35
|
* controller marker rather than the account DID.
|
|
35
36
|
*/
|
|
36
|
-
export interface
|
|
37
|
+
export interface ControllerInventory {
|
|
37
38
|
ladderKeys: Set<string>;
|
|
38
|
-
|
|
39
|
+
inventoryKeys: Set<string>;
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* the
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* is
|
|
50
|
-
*
|
|
51
|
-
*
|
|
42
|
+
* The wallet-core extended controller view: the library's generic port plus
|
|
43
|
+
* the credential-inventory accessor at a given version, which is what
|
|
44
|
+
* evaluating the ceremony-tail license and recognizing a ladder-signed
|
|
45
|
+
* append require (both invisible through the `assertionMethod` accessor
|
|
46
|
+
* alone), plus the library's optional `admitAppend` admission hook made
|
|
47
|
+
* mandatory -- an account did:webvh document can list ladder VMs, so a view
|
|
48
|
+
* over one must carry the license (the port's stated obligation). The
|
|
49
|
+
* pre-append license check in the log-governed descriptor store calls
|
|
50
|
+
* `inventoryAt` directly, which is why the accessor stays on the type
|
|
51
|
+
* beside the hook: a verify-time refusal alone would poison the served log
|
|
52
|
+
* for every reader.
|
|
52
53
|
*/
|
|
53
|
-
export interface ResourceLogController {
|
|
54
|
-
did: string;
|
|
55
|
-
versionIds: string[];
|
|
56
|
-
/**
|
|
57
|
-
* Resolves the `assertionMethod` public-key multibases at a controller-log
|
|
58
|
-
* version (`undefined`: the current document, the unversioned-controller
|
|
59
|
-
* degradation).
|
|
60
|
-
*
|
|
61
|
-
* @param [versionId] {string}
|
|
62
|
-
* @returns {Promise<Set<string>>}
|
|
63
|
-
*/
|
|
64
|
-
assertionKeysAt(versionId?: string): Promise<Set<string>>;
|
|
54
|
+
export interface WebvhResourceLogController extends ResourceLogController {
|
|
65
55
|
/**
|
|
66
|
-
* Resolves the credential-
|
|
56
|
+
* Resolves the credential-inventory view at a controller-log version
|
|
67
57
|
* (`undefined`: the current document): the ladder VM key multibases and
|
|
68
|
-
* the
|
|
58
|
+
* the inventory set S(V) the ceremony-tail license compares across
|
|
69
59
|
* versions.
|
|
70
60
|
*
|
|
71
61
|
* @param [versionId] {string}
|
|
72
|
-
* @returns {Promise<
|
|
62
|
+
* @returns {Promise<ControllerInventory>}
|
|
73
63
|
*/
|
|
74
|
-
|
|
64
|
+
inventoryAt(versionId?: string): Promise<ControllerInventory>;
|
|
65
|
+
admitAppend: NonNullable<ResourceLogController['admitAppend']>;
|
|
75
66
|
}
|
|
76
67
|
/**
|
|
77
68
|
* Builds the controller view over an already-verified did:webvh account log
|
|
@@ -79,17 +70,25 @@ export interface ResourceLogController {
|
|
|
79
70
|
* not verified against the account pointer). Because every verified entry
|
|
80
71
|
* carries its resolved document in `state`, the per-version `assertionMethod`
|
|
81
72
|
* sets are read straight off those entries in one linear pass over the log
|
|
82
|
-
* rather than replaying resolution once per version.
|
|
83
|
-
*
|
|
73
|
+
* rather than replaying resolution once per version. A lookup at a version
|
|
74
|
+
* the log does not carry refuses instead of guessing, and `undefined`
|
|
84
75
|
* answers from the last entry (the current document).
|
|
85
76
|
*
|
|
77
|
+
* The returned view carries the `admitAppend` hook: it resolves the
|
|
78
|
+
* inventory at the proof's controller versionId, and where the signing key
|
|
79
|
+
* is a ladder VM there it runs the ceremony-tail license
|
|
80
|
+
* (`assertLadderAppendLicensed`) --
|
|
81
|
+
* so ordinary client-signed appends admit untouched, and a ladder-signed
|
|
82
|
+
* append outside the license refuses with `ResourceLogLicenseError`,
|
|
83
|
+
* propagated with its class intact by the library's verifier.
|
|
84
|
+
*
|
|
86
85
|
* @param options {object}
|
|
87
86
|
* @param options.did {string} the account's did:webvh, as verified
|
|
88
87
|
* @param options.log {DIDLog} the verified account log
|
|
89
|
-
* @returns {
|
|
88
|
+
* @returns {WebvhResourceLogController}
|
|
90
89
|
*/
|
|
91
90
|
export declare function webvhResourceLogController({ did, log }: {
|
|
92
91
|
did: string;
|
|
93
92
|
log: DIDLog;
|
|
94
|
-
}):
|
|
93
|
+
}): WebvhResourceLogController;
|
|
95
94
|
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../src/resourceLog/controller.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../src/resourceLog/controller.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,0BAA0B,CAAA;AAGjC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC3B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,0BAA2B,SAAQ,qBAAqB;IACvE;;;;;;;;OAQG;IACH,WAAW,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAC7D,WAAW,EAAE,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,CAAA;CAC/D;AAgJD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,GAAG,EACH,GAAG,EACJ,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,0BAA0B,CA0D7B"}
|