@agent-score/commerce 2.3.0 → 2.4.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 +6 -6
- package/dist/challenge/index.d.mts +4 -4
- package/dist/challenge/index.d.ts +4 -4
- package/dist/challenge/index.js.map +1 -1
- package/dist/challenge/index.mjs.map +1 -1
- package/dist/{checkout-ChyOi7aU.d.ts → checkout-B-MIzYzW.d.ts} +8 -11
- package/dist/{checkout-Ceo1_rVJ.d.mts → checkout-Bn7ZKIBD.d.mts} +8 -11
- package/dist/core.d.mts +4 -6
- package/dist/core.d.ts +4 -6
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +1 -1
- package/dist/core.mjs.map +1 -1
- package/dist/discovery/index.d.mts +10 -9
- package/dist/discovery/index.d.ts +10 -9
- package/dist/discovery/index.js +44 -6
- package/dist/discovery/index.js.map +1 -1
- package/dist/discovery/index.mjs +44 -6
- package/dist/discovery/index.mjs.map +1 -1
- package/dist/identity/express.js +13 -13
- package/dist/identity/express.js.map +1 -1
- package/dist/identity/express.mjs +13 -13
- package/dist/identity/express.mjs.map +1 -1
- package/dist/identity/fastify.js +13 -13
- package/dist/identity/fastify.js.map +1 -1
- package/dist/identity/fastify.mjs +13 -13
- package/dist/identity/fastify.mjs.map +1 -1
- package/dist/identity/hono.js +13 -13
- package/dist/identity/hono.js.map +1 -1
- package/dist/identity/hono.mjs +13 -13
- package/dist/identity/hono.mjs.map +1 -1
- package/dist/identity/nextjs.js +13 -13
- package/dist/identity/nextjs.js.map +1 -1
- package/dist/identity/nextjs.mjs +13 -13
- package/dist/identity/nextjs.mjs.map +1 -1
- package/dist/identity/policy.js.map +1 -1
- package/dist/identity/policy.mjs.map +1 -1
- package/dist/identity/web.js +13 -13
- package/dist/identity/web.js.map +1 -1
- package/dist/identity/web.mjs +13 -13
- package/dist/identity/web.mjs.map +1 -1
- package/dist/index.d.mts +12 -13
- package/dist/index.d.ts +12 -13
- package/dist/index.js +86 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -65
- package/dist/index.mjs.map +1 -1
- package/dist/{default_rails-DtR_E9N9.d.ts → network_kind-BIJM2peR.d.ts} +22 -8
- package/dist/{default_rails-K25PtWrL.d.mts → network_kind-C0EMkdzz.d.mts} +22 -8
- package/dist/payment/index.d.mts +16 -26
- package/dist/payment/index.d.ts +16 -26
- package/dist/payment/index.js +62 -57
- package/dist/payment/index.js.map +1 -1
- package/dist/payment/index.mjs +62 -57
- package/dist/payment/index.mjs.map +1 -1
- package/dist/{pricing-B3-aKxSz.d.ts → pricing-CytRwhC2.d.ts} +1 -1
- package/dist/{pricing-BReyZiqN.d.mts → pricing-KHDqMLd7.d.mts} +1 -1
- package/dist/{rail_spec-B1239jPp.d.mts → rail_spec-BFZmW9RN.d.mts} +3 -4
- package/dist/{rail_spec-B1239jPp.d.ts → rail_spec-BFZmW9RN.d.ts} +3 -4
- package/dist/stripe-multichain/index.d.mts +2 -9
- package/dist/stripe-multichain/index.d.ts +2 -9
- package/dist/stripe-multichain/index.js.map +1 -1
- package/dist/stripe-multichain/index.mjs.map +1 -1
- package/dist/{wwwauthenticate-D_FMnPgU.d.mts → wwwauthenticate-CVaGUMjU.d.mts} +8 -6
- package/dist/{wwwauthenticate-D_FMnPgU.d.ts → wwwauthenticate-CVaGUMjU.d.ts} +8 -6
- package/package.json +9 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
1
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-BFZmW9RN.js';
|
|
2
2
|
|
|
3
3
|
interface HowToPayRailEntry {
|
|
4
4
|
setup?: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
1
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-BFZmW9RN.mjs';
|
|
2
2
|
|
|
3
3
|
interface HowToPayRailEntry {
|
|
4
4
|
setup?: string[];
|
|
@@ -116,10 +116,9 @@ interface TempoSessionRailSpec {
|
|
|
116
116
|
chains?: unknown;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
* Default field values for each `*RailSpec
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* USDC registry so they stay in sync with on-chain reality.
|
|
119
|
+
* Default field values for each `*RailSpec` — callers can spread these into
|
|
120
|
+
* their spec literal when they want defaults without typing them out. Sourced
|
|
121
|
+
* from the USDC registry so they stay in sync with on-chain reality.
|
|
123
122
|
*/
|
|
124
123
|
declare const RAIL_SPEC_DEFAULTS: {
|
|
125
124
|
readonly tempo: {
|
|
@@ -116,10 +116,9 @@ interface TempoSessionRailSpec {
|
|
|
116
116
|
chains?: unknown;
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
|
-
* Default field values for each `*RailSpec
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* USDC registry so they stay in sync with on-chain reality.
|
|
119
|
+
* Default field values for each `*RailSpec` — callers can spread these into
|
|
120
|
+
* their spec literal when they want defaults without typing them out. Sourced
|
|
121
|
+
* from the USDC registry so they stay in sync with on-chain reality.
|
|
123
122
|
*/
|
|
124
123
|
declare const RAIL_SPEC_DEFAULTS: {
|
|
125
124
|
readonly tempo: {
|
|
@@ -126,8 +126,6 @@ declare function createPiCache({ redisUrl, ttlSeconds, keyPrefix, }?: {
|
|
|
126
126
|
* - `mintMultichainRecipients` returns the full per-rail map plus the PI
|
|
127
127
|
* id. Preferred for multi-rail merchants — avoids the second pi-cache
|
|
128
128
|
* lookup to stitch sibling addresses back together.
|
|
129
|
-
*
|
|
130
|
-
* Mirrors the python `pay_to_address.py` factoring.
|
|
131
129
|
*/
|
|
132
130
|
|
|
133
131
|
interface CreatePayToAddressFromStripePIOptions {
|
|
@@ -308,13 +306,8 @@ declare function createMppxStripe({ profileId, secretKey, paymentMethodTypes, }:
|
|
|
308
306
|
}): Promise<unknown>;
|
|
309
307
|
|
|
310
308
|
/** Settle-outcome → simulator dispatch. Replaces the 3-branch rail/railKey
|
|
311
|
-
* switch + thin
|
|
312
|
-
*
|
|
313
|
-
* `lib/payment.ts` files.
|
|
314
|
-
*
|
|
315
|
-
* Folding the dispatch into the SDK removes the consumer-wrap anti-pattern
|
|
316
|
-
* (`feedback_no_consumer_sdk_rewrapping`): merchants call this directly from
|
|
317
|
-
* `onSettled`, no per-merchant payment.ts wrapper needed.
|
|
309
|
+
* switch + thin testnet-deposit wrapper a merchant would otherwise hand-roll
|
|
310
|
+
* in their own payment helpers. Call it directly from `onSettled`.
|
|
318
311
|
*/
|
|
319
312
|
type SimulateNetwork = 'tempo' | 'base' | 'solana';
|
|
320
313
|
/** Map a settle outcome (from `Checkout.onSettled` or
|
|
@@ -126,8 +126,6 @@ declare function createPiCache({ redisUrl, ttlSeconds, keyPrefix, }?: {
|
|
|
126
126
|
* - `mintMultichainRecipients` returns the full per-rail map plus the PI
|
|
127
127
|
* id. Preferred for multi-rail merchants — avoids the second pi-cache
|
|
128
128
|
* lookup to stitch sibling addresses back together.
|
|
129
|
-
*
|
|
130
|
-
* Mirrors the python `pay_to_address.py` factoring.
|
|
131
129
|
*/
|
|
132
130
|
|
|
133
131
|
interface CreatePayToAddressFromStripePIOptions {
|
|
@@ -308,13 +306,8 @@ declare function createMppxStripe({ profileId, secretKey, paymentMethodTypes, }:
|
|
|
308
306
|
}): Promise<unknown>;
|
|
309
307
|
|
|
310
308
|
/** Settle-outcome → simulator dispatch. Replaces the 3-branch rail/railKey
|
|
311
|
-
* switch + thin
|
|
312
|
-
*
|
|
313
|
-
* `lib/payment.ts` files.
|
|
314
|
-
*
|
|
315
|
-
* Folding the dispatch into the SDK removes the consumer-wrap anti-pattern
|
|
316
|
-
* (`feedback_no_consumer_sdk_rewrapping`): merchants call this directly from
|
|
317
|
-
* `onSettled`, no per-merchant payment.ts wrapper needed.
|
|
309
|
+
* switch + thin testnet-deposit wrapper a merchant would otherwise hand-roll
|
|
310
|
+
* in their own payment helpers. Call it directly from `onSettled`.
|
|
318
311
|
*/
|
|
319
312
|
type SimulateNetwork = 'tempo' | 'base' | 'solana';
|
|
320
313
|
/** Map a settle outcome (from `Checkout.onSettled` or
|