uvd-x402-sdk 2.44.0 → 2.45.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/dist/index.d.mts CHANGED
@@ -176,6 +176,19 @@ interface TrafficEvent {
176
176
  tx?: string;
177
177
  amount?: string;
178
178
  asset?: string;
179
+ /**
180
+ * The protected endpoint being bought.
181
+ *
182
+ * Answers "what was paid for", which the amount alone never does — two
183
+ * 1-USDC settles are indistinguishable without it.
184
+ */
185
+ resource?: string;
186
+ /** The seller receiving the payment. */
187
+ payTo?: string;
188
+ /** Human-readable description the seller advertised. */
189
+ description?: string;
190
+ /** Payment scheme: `exact`, `escrow`, `commerce`, `upto`. */
191
+ scheme?: string;
179
192
  }
180
193
  /** Raised when the stream cannot be opened. Carries the HTTP status. */
181
194
  declare class TrafficStreamError extends Error {
package/dist/index.d.ts CHANGED
@@ -176,6 +176,19 @@ interface TrafficEvent {
176
176
  tx?: string;
177
177
  amount?: string;
178
178
  asset?: string;
179
+ /**
180
+ * The protected endpoint being bought.
181
+ *
182
+ * Answers "what was paid for", which the amount alone never does — two
183
+ * 1-USDC settles are indistinguishable without it.
184
+ */
185
+ resource?: string;
186
+ /** The seller receiving the payment. */
187
+ payTo?: string;
188
+ /** Human-readable description the seller advertised. */
189
+ description?: string;
190
+ /** Payment scheme: `exact`, `escrow`, `commerce`, `upto`. */
191
+ scheme?: string;
179
192
  }
180
193
  /** Raised when the stream cannot be opened. Carries the HTTP status. */
181
194
  declare class TrafficStreamError extends Error {
package/dist/index.js CHANGED
@@ -2485,6 +2485,10 @@ function parseTrafficEvent(frame) {
2485
2485
  if (typeof raw.tx === "string") event.tx = raw.tx;
2486
2486
  if (typeof raw.amount === "string") event.amount = raw.amount;
2487
2487
  if (typeof raw.asset === "string") event.asset = raw.asset;
2488
+ if (typeof raw.resource === "string") event.resource = raw.resource;
2489
+ if (typeof raw.payTo === "string") event.payTo = raw.payTo;
2490
+ if (typeof raw.description === "string") event.description = raw.description;
2491
+ if (typeof raw.scheme === "string") event.scheme = raw.scheme;
2488
2492
  return event;
2489
2493
  }
2490
2494
  function matchesFilters(event, options) {