@zkp2p/sdk 0.14.7 → 0.14.8-rc.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 +2 -0
- package/dist/build-metadata.json +2 -2
- package/dist/{chunk-ANDZNB7X.mjs → chunk-7MZINJ6Z.mjs} +3 -3
- package/dist/{chunk-ANDZNB7X.mjs.map → chunk-7MZINJ6Z.mjs.map} +1 -1
- package/dist/chunk-KQT4XYPO.mjs +12 -0
- package/dist/chunk-KQT4XYPO.mjs.map +1 -0
- package/dist/{currency-7YDW5OGY.mjs → currency-45EYG6OA.mjs} +3 -3
- package/dist/{currency-7YDW5OGY.mjs.map → currency-45EYG6OA.mjs.map} +1 -1
- package/dist/index.cjs +52 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +61 -39
- package/dist/index.mjs.map +1 -1
- package/dist/protocolViewerParsers-SVYPQCPC.mjs +5 -0
- package/dist/{protocolViewerParsers-N5RU4PRR.mjs.map → protocolViewerParsers-SVYPQCPC.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-7GUR6QN3.mjs → timeout-XMYRXVUQ.mjs} +3 -3
- package/dist/{timeout-7GUR6QN3.mjs.map → timeout-XMYRXVUQ.mjs.map} +1 -1
- package/dist/{vaultUtils-C8yL2H-O.d.mts → vaultUtils-BStoKLo3.d.mts} +28 -1
- package/dist/{vaultUtils-C8yL2H-O.d.ts → vaultUtils-BStoKLo3.d.ts} +28 -1
- package/package.json +1 -1
- package/dist/chunk-SWQCAVQR.mjs +0 -12
- package/dist/chunk-SWQCAVQR.mjs.map +0 -1
- package/dist/protocolViewerParsers-N5RU4PRR.mjs +0 -5
package/README.md
CHANGED
|
@@ -590,6 +590,8 @@ await client.uploadICloudMailSellerCredential({
|
|
|
590
590
|
|
|
591
591
|
The password is encrypted to the attested enclave and posted directly to the attestor paired with `baseApiUrl`. The returned bundle is verified against the pinned enclave signer, platform and maker before it is stored unchanged; the maker is not re-registered. React Native callers pass `{ attestationRuntime: { subtle, getRandomValues } }`. Failures reject with `ICloudMailCredentialError`, whose `reason` names the condition (`payee_mismatch`, `payee_not_found`, `receipt_not_found`, `app_password_rejected`, `rate_limited` with `retryAfterMs`, and so on). The method never retries; one connection per mailbox runs at a time. `isMailboxSellerCredentialType` recognizes Gmail, Outlook and iCloud Mail credentials.
|
|
592
592
|
|
|
593
|
+
To store the bundle through another Curator route, such as an App Clip's request-scoped SAR connection, call `client.attestICloudMailSellerCredential` with the same arguments. It runs the same checks, enclave upload and verification, then returns the verified `SellerCredentialBundleUpload` without storing it, so it needs no Curator session. Walletless callers use the exported `attestICloudMailSellerCredential(params, { attestationServiceUrl, baseApiUrl, timeoutMs, attestationRuntime })` and name the attestor themselves. Errors, the mailbox lock and rate-limit delays match the upload.
|
|
594
|
+
|
|
593
595
|
```ts
|
|
594
596
|
const status = await client.getSellerCredentialStatus({
|
|
595
597
|
processorName: 'venmo',
|
package/dist/build-metadata.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"source": {
|
|
4
4
|
"repository": "zkp2p/zkp2p-clients",
|
|
5
|
-
"commitSha": "
|
|
5
|
+
"commitSha": "959ea2fdca3a9938c97be98f96f66f1e74ec144d",
|
|
6
6
|
"kind": "github",
|
|
7
7
|
"distributable": true
|
|
8
8
|
},
|
|
9
|
-
"sdkPackageVersion": "0.14.
|
|
9
|
+
"sdkPackageVersion": "0.14.8-rc.0",
|
|
10
10
|
"contractsPackageVersion": "0.4.4-rc.2",
|
|
11
11
|
"indexerSchemaPackageVersion": "0.22.0",
|
|
12
12
|
"activeDisputeStack": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { currencyKeccak256, getCurrencyInfoFromHash } from './chunk-WDEEWFEU.mjs';
|
|
2
|
-
import { __export } from './chunk-
|
|
2
|
+
import { __export } from './chunk-KQT4XYPO.mjs';
|
|
3
3
|
import { hexToBytes, keccak256, toBytes, bytesToHex } from 'viem';
|
|
4
4
|
|
|
5
5
|
// src/utils/bigint.ts
|
|
@@ -100446,5 +100446,5 @@ function enrichPvIntentView(view, chainId, env = "production") {
|
|
|
100446
100446
|
}
|
|
100447
100447
|
|
|
100448
100448
|
export { DISPUTE_PROTECTION_POLICY_ABI, DISPUTE_PROTECTION_POLICY_ABI2, DisputeNullifierRegistry_default3 as DisputeNullifierRegistry_default, DisputeProtectionPolicy_default3 as DisputeProtectionPolicy_default, DisputeVerifier_default3 as DisputeVerifier_default, IntentLifecycleHookV1_default3 as IntentLifecycleHookV1_default, METHOD_NAME_TO_HASH, MultiAttestationVerifier_default3 as MultiAttestationVerifier_default, ORCHESTRATOR_V3_ABI2 as ORCHESTRATOR_V3_ABI, OrchestratorRegistry_default3 as OrchestratorRegistry_default, OrchestratorV3_default3 as OrchestratorV3_default, PAYMENT_PLATFORMS, STAKE_VAULT_ABI2 as STAKE_VAULT_ABI, SUPPORTED_PAYMENT_METHOD_HASHES, StakeVault_default3 as StakeVault_default, WhitelistPolicy_default3 as WhitelistPolicy_default, asciiToBytes32, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getGatingServiceAddress, getIntentGuardianContract, getOrchestratorV3Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, hasIntentGuardian, matchesPaymentMethodNameAndHash, matchesQuotePaymentMethod, parseBigIntLike, parseDepositView, parseIntentView, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash };
|
|
100449
|
-
//# sourceMappingURL=chunk-
|
|
100450
|
-
//# sourceMappingURL=chunk-
|
|
100449
|
+
//# sourceMappingURL=chunk-7MZINJ6Z.mjs.map
|
|
100450
|
+
//# sourceMappingURL=chunk-7MZINJ6Z.mjs.map
|