@zkp2p/zkp2p-attestation 1.5.0 → 1.5.1

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/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.1
4
+
5
+ - Change Venmo identity registration to derive the stories URL from `params.SENDER_ID`. Venmo identity session material now requires only `Cookie`, while the service verifies the authenticated account id before replaying the derived stories request.
6
+
3
7
  ## 1.5.0
4
8
 
5
- - Change Venmo identity registration to require the captured stories URL in session material. Venmo identity session material now requires `url`, `params` only requires `SENDER_ID`, and `params.SENDER_ID` must match the URL `externalId`.
9
+ - Require the captured Venmo identity stories URL in session material. This release was superseded by `1.5.1` because the runtime no longer requires `sessionMaterial.url`.
6
10
  - Require `callerAddress` on identity attestation requests and bind it into the signed `IdentityAttestation`; `verifyIdentityAttestation` now requires `expectedCallerAddress`.
7
11
 
8
12
  ## 1.4.0
package/README.md CHANGED
@@ -191,13 +191,13 @@ Identity platform matrix:
191
191
 
192
192
  | Platform | `actionType` | Required encrypted session material | Public params fields |
193
193
  |---|---|---|---|
194
- | `venmo` | `register_venmo` | `url`, `Cookie` | `SENDER_ID` |
194
+ | `venmo` | `register_venmo` | `Cookie` | `SENDER_ID` |
195
195
  | `paypal` | `register_paypal` | `Cookie` | `{}` |
196
196
  | `wise` | `register_wise` | `Cookie`, `X-Access-Token` | `PROFILE_ID` |
197
197
 
198
- For Venmo identity, pass the captured `https://account.venmo.com/api/stories?feedType=me&externalId=...` request URL
199
- inside encrypted `sessionMaterial.url`; the service validates that `params.SENDER_ID` matches the URL `externalId` and
200
- that Venmo returns a valid stories response with an explicit `stories` array.
198
+ For Venmo identity, pass `SENDER_ID` in public params and include a replayable `Cookie` header in encrypted session
199
+ material. The service verifies the authenticated account id, derives the stories URL from `SENDER_ID`, and requires
200
+ Venmo to return a valid stories response with an explicit `stories` array.
201
201
 
202
202
  Buyer TEE and identity expose discriminated unions keyed by `platform` and `actionType`, including per-platform
203
203
  `params`, so invalid pairings fail during TypeScript compilation. Seller credential upload keeps its existing
package/dist/index.d.cts CHANGED
@@ -39,10 +39,8 @@ type ChaseBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie" | "x-jpmc-c
39
39
  type BankOfAmericaBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
40
40
  /** Captured PayPal request headers; type requires `Cookie`. */
41
41
  type PayPalBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
42
- /** Captured Venmo identity stories request URL and headers; type requires `url` and `Cookie`. */
43
- type VenmoIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie"> & {
44
- url: string;
45
- };
42
+ /** Captured Venmo identity request headers; type requires `Cookie`. */
43
+ type VenmoIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
46
44
  /** Captured PayPal identity request headers; type requires `Cookie`. */
47
45
  type PayPalIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
48
46
  /** Captured Wise identity request headers; type requires `Cookie` and `X-Access-Token`. */
package/dist/index.d.ts CHANGED
@@ -39,10 +39,8 @@ type ChaseBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie" | "x-jpmc-c
39
39
  type BankOfAmericaBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
40
40
  /** Captured PayPal request headers; type requires `Cookie`. */
41
41
  type PayPalBuyerTeeSessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
42
- /** Captured Venmo identity stories request URL and headers; type requires `url` and `Cookie`. */
43
- type VenmoIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie"> & {
44
- url: string;
45
- };
42
+ /** Captured Venmo identity request headers; type requires `Cookie`. */
43
+ type VenmoIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
46
44
  /** Captured PayPal identity request headers; type requires `Cookie`. */
47
45
  type PayPalIdentitySessionMaterial = RequiredBuyerTeeHeaders<"Cookie">;
48
46
  /** Captured Wise identity request headers; type requires `Cookie` and `X-Access-Token`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/zkp2p-attestation",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "type": "module",
5
5
  "description": "Browser, React Native, and Node verifier/encrypter for ZKP2P Nitro attested uploads",
6
6
  "packageManager": "yarn@3.6.3",