@zkp2p/sdk 0.14.5-rc.1 → 0.14.5-rc.2
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 +16 -1
- package/dist/build-metadata.json +3 -3
- package/dist/chunk-755TILW4.mjs +12 -0
- package/dist/chunk-755TILW4.mjs.map +1 -0
- package/dist/{chunk-5YLUC57N.mjs → chunk-FJZ4TRAF.mjs} +9178 -6666
- package/dist/{chunk-5YLUC57N.mjs.map → chunk-FJZ4TRAF.mjs.map} +1 -1
- package/dist/{currency-ROSO5JUH.mjs → currency-LC4OCQQU.mjs} +3 -3
- package/dist/{currency-ROSO5JUH.mjs.map → currency-LC4OCQQU.mjs.map} +1 -1
- package/dist/index.cjs +9536 -6940
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.mjs +106 -44
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-PNZVGROS.mjs +5 -0
- package/dist/{protocolViewerParsers-64F4BSMS.mjs.map → protocolViewerParsers-PNZVGROS.mjs.map} +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.mjs +1 -1
- package/dist/{timeout-Z2D444ZE.mjs → timeout-RJ66S57R.mjs} +3 -3
- package/dist/{timeout-Z2D444ZE.mjs.map → timeout-RJ66S57R.mjs.map} +1 -1
- package/dist/{vaultUtils-BadWrrW3.d.mts → vaultUtils-DWShBZsH.d.mts} +15 -1
- package/dist/{vaultUtils-BadWrrW3.d.ts → vaultUtils-DWShBZsH.d.ts} +15 -1
- package/package.json +2 -2
- package/dist/chunk-XFXOKA35.mjs +0 -12
- package/dist/chunk-XFXOKA35.mjs.map +0 -1
- package/dist/protocolViewerParsers-64F4BSMS.mjs +0 -5
package/README.md
CHANGED
|
@@ -525,7 +525,7 @@ For table-style liquidity UIs, the low-level `apiGetOrderbookTable()` adapter ex
|
|
|
525
525
|
|
|
526
526
|
## Seller Credential Status
|
|
527
527
|
|
|
528
|
-
Venmo and PayPal Seller Autopilot connections use `uploadGoogleOAuthSellerCredential
|
|
528
|
+
Venmo and PayPal Seller Autopilot connections use `uploadGoogleOAuthSellerCredential` for Gmail or `uploadMicrosoftOAuthSellerCredential` for personal Outlook accounts. The normal `uploadSellerCredential` and extension seller-capture paths support Cash App, Wise (token upload only), and Amazon Pay UPI. Existing backend Venmo cookie bundles remain usable through status/verification and low-level encrypted-bundle APIs.
|
|
529
529
|
|
|
530
530
|
```ts
|
|
531
531
|
await client.uploadGoogleOAuthSellerCredential({
|
|
@@ -536,6 +536,21 @@ await client.uploadGoogleOAuthSellerCredential({
|
|
|
536
536
|
});
|
|
537
537
|
```
|
|
538
538
|
|
|
539
|
+
Microsoft uses the same payment identity and adds the PKCE verifier from the authorization request:
|
|
540
|
+
|
|
541
|
+
```ts
|
|
542
|
+
await client.uploadMicrosoftOAuthSellerCredential({
|
|
543
|
+
platform: 'paypal',
|
|
544
|
+
payeeDetails: registeredMaker.hashedOnchainId,
|
|
545
|
+
payeeEmail: 'seller@example.com',
|
|
546
|
+
authorizationCode,
|
|
547
|
+
redirectUri,
|
|
548
|
+
codeVerifier,
|
|
549
|
+
});
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
Validate OAuth state in the initiating browser tab before uploading. `redirectUri` must exactly match the one in the authorization request. Both methods exchange a one-time code without retrying; start fresh consent if the response is lost. The Microsoft client secret stays server-side. See [email connection setup](../../docs/email-oauth.md).
|
|
553
|
+
|
|
539
554
|
```ts
|
|
540
555
|
const status = await client.getSellerCredentialStatus({
|
|
541
556
|
processorName: 'venmo',
|
package/dist/build-metadata.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"source": {
|
|
4
4
|
"repository": "zkp2p/zkp2p-clients",
|
|
5
|
-
"commitSha": "
|
|
5
|
+
"commitSha": "9c0f1d988bd4b6009eb3de5737e79233835425e1",
|
|
6
6
|
"kind": "github",
|
|
7
7
|
"distributable": true
|
|
8
8
|
},
|
|
9
|
-
"sdkPackageVersion": "0.14.5-rc.
|
|
10
|
-
"contractsPackageVersion": "0.4.
|
|
9
|
+
"sdkPackageVersion": "0.14.5-rc.2",
|
|
10
|
+
"contractsPackageVersion": "0.4.3-rc.1",
|
|
11
11
|
"indexerSchemaPackageVersion": "0.22.0",
|
|
12
12
|
"activeDisputeStack": {
|
|
13
13
|
"base": {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// <define:__ZKP2P_SDK_BUILD_METADATA__>
|
|
8
|
+
var define_ZKP2P_SDK_BUILD_METADATA_default = { schemaVersion: 2, source: { repository: "zkp2p/zkp2p-clients", commitSha: "9c0f1d988bd4b6009eb3de5737e79233835425e1", kind: "github", distributable: true }, sdkPackageVersion: "0.14.5-rc.2", contractsPackageVersion: "0.4.3-rc.1", indexerSchemaPackageVersion: "0.22.0", activeDisputeStack: { base: { version: 2, selectionHash: "ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c" }, baseStaging: { version: 2, selectionHash: "6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9" } } };
|
|
9
|
+
|
|
10
|
+
export { __export, define_ZKP2P_SDK_BUILD_METADATA_default };
|
|
11
|
+
//# sourceMappingURL=chunk-755TILW4.mjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-755TILW4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["%3Cdefine:__ZKP2P_SDK_BUILD_METADATA__%3E"],"names":[],"mappings":";;;;;;;AAAA,IAAA,uCAAA,GAAA,EAAC,aAAA,EAAgB,CAAA,EAAE,MAAA,EAAS,EAAC,YAAa,qBAAA,EAAsB,SAAA,EAAY,0CAAA,EAA2C,IAAA,EAAO,UAAS,aAAA,EAAgB,IAAA,EAAI,EAAE,iBAAA,EAAoB,eAAc,uBAAA,EAA0B,YAAA,EAAa,2BAAA,EAA8B,QAAA,EAAS,oBAAqB,EAAC,IAAA,EAAO,EAAC,OAAA,EAAU,GAAE,aAAA,EAAgB,kEAAA,EAAkE,EAAE,WAAA,EAAc,EAAC,OAAA,EAAU,CAAA,EAAE,aAAA,EAAgB,kEAAA,IAAmE","file":"chunk-755TILW4.mjs","sourcesContent":["{\"schemaVersion\":2,\"source\":{\"repository\":\"zkp2p/zkp2p-clients\",\"commitSha\":\"9c0f1d988bd4b6009eb3de5737e79233835425e1\",\"kind\":\"github\",\"distributable\":true},\"sdkPackageVersion\":\"0.14.5-rc.2\",\"contractsPackageVersion\":\"0.4.3-rc.1\",\"indexerSchemaPackageVersion\":\"0.22.0\",\"activeDisputeStack\":{\"base\":{\"version\":2,\"selectionHash\":\"ba40c2954b408d0c658881a8d28e5bfcc9bade5cc3d953fd17eae1eca69d841c\"},\"baseStaging\":{\"version\":2,\"selectionHash\":\"6c49c1ce51eec594a22385c4efcab08aa9926b6b63a725e14a0027ec5d2f4fc9\"}}}"]}
|