@playmos/sdk 0.3.3 → 0.3.5

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.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as Network, P as PlaymosConfig, W as WebhookEvent, R as RoundOpenInput, a as RoundState, b as RoundSettleInput, S as SettleRoundResult, c as PrizeBalance, d as WithdrawResult, A as AgentWallet, e as AgentFundResult, T as TransferResult, E as EscrowHoldInput, f as EscrowHoldResult, g as EscrowResolveResult, M as MarketplaceListInput, L as Listing, h as MarketplaceSaleResult, i as MarketplaceGetResult, j as PayInput, k as Payment, l as EnterRoundInput, m as TransferReconcile, n as WaitOptions, o as TransferInput, p as TransferConfirmOptions, V as VerifyResult } from './errors-DMtMpbR6.cjs';
2
- export { q as AgentEconomyConfig, r as ApiError, s as AuthError, C as ConfigError, t as ContractConfig, u as Eip1193Provider, G as GasConfig, v as GasMode, I as InsufficientGasError, w as InvalidAmountError, x as ListingStatus, y as MarketplaceItem, z as MarketplaceSale, B as MissingFieldError, D as NothingToWithdrawError, F as PaymentFailedError, H as PaymentStatus, J as PayoutRule, K as PlaymosError, O as PlaymosErrorCode, Q as RetryOptions, U as RoundStatus, X as WalletConfig, Y as WalletConnectionError, Z as WalletConnector, _ as WebhookEventType } from './errors-DMtMpbR6.cjs';
1
+ import { N as Network, P as PlaymosConfig, W as WebhookEvent, R as RoundOpenInput, a as RoundState, b as RoundSettleInput, S as SettleRoundResult, C as CancelRoundResult, A as ActiveSeriesRound, c as PrizeBalance, d as WithdrawResult, e as AgentWallet, f as AgentFundResult, T as TransferResult, E as EscrowHoldInput, g as EscrowHoldResult, h as EscrowResolveResult, M as MarketplaceListInput, L as Listing, i as MarketplaceSaleResult, j as MarketplaceGetResult, k as PayInput, l as Payment, m as EnterRoundInput, n as TransferReconcile, o as WaitOptions, p as TransferInput, q as TransferConfirmOptions, V as VerifyResult, r as PayoutRule } from './errors-CdVzHuhY.cjs';
2
+ export { s as ActiveForSeriesResult, t as AgentEconomyConfig, u as ApiError, v as AuthError, w as ConfigError, x as ContractConfig, y as Eip1193Provider, G as GasConfig, z as GasMode, I as InsufficientGasError, B as InvalidAmountError, D as ListingStatus, F as MarketplaceItem, H as MarketplaceSale, J as MissingFieldError, K as NothingToWithdrawError, O as PaymentFailedError, Q as PaymentStatus, U as PlaymosError, X as PlaymosErrorCode, Y as RetryOptions, Z as RoundStatus, _ as WalletConfig, $ as WalletConnectionError, a0 as WalletConnector, a1 as WebhookEventType } from './errors-CdVzHuhY.cjs';
3
3
 
4
4
  /**
5
5
  * Environment resolution + the canonical address book.
@@ -21,7 +21,30 @@ interface ResolvedEnv {
21
21
  chainId: number;
22
22
  apiBaseUrl: string;
23
23
  isTest: boolean;
24
+ /**
25
+ * True for `sk_test_` / `sk_live_` — server-only secret keys.
26
+ * False for `pk_test_` / `pk_live_` — browser-safe publishable keys.
27
+ * Capability must track this in code (not only docs): secret surfaces refuse pk_.
28
+ */
29
+ isSecret: boolean;
24
30
  }
31
+ /**
32
+ * Signals that indicate a **client/device** JS realm (not Node/SSR server).
33
+ *
34
+ * #260: `window`. #263: `document`, `importScripts` (Worker), ReactNative.
35
+ * #271: Cloudflare Workers historically stub `importScripts` on older
36
+ * compatibility dates — do **not** treat importScripts alone as client when a
37
+ * CF Worker marker is present (edge is not a claimed target; this avoids
38
+ * false-positive AuthError for sk_ in Workers backends).
39
+ *
40
+ * Limit: Electron main / Node CLIs with a baked sk_ still look like servers
41
+ * (no client signals) — runtime sniffing cannot close that class.
42
+ */
43
+ declare function clientRuntimeSignals(g?: typeof globalThis): string[];
44
+ /** True when this JS realm is a **client/device** runtime (not Node/SSR server). */
45
+ declare function isClientRuntime(g?: typeof globalThis): boolean;
46
+ /** Validate the key and resolve the environment it implies. */
47
+ declare function resolveEnv(apiKey: string, networkOverride?: Network, apiBaseUrlOverride?: string): ResolvedEnv;
25
48
 
26
49
  /**
27
50
  * settlement.ts — the x402-ready settlement CORE contract (Phase 0).
@@ -379,11 +402,11 @@ declare class Playmos {
379
402
  verify: (_rawBody: string | Buffer, _signatureHeader: string | string[] | undefined, _secret: string) => WebhookEvent;
380
403
  };
381
404
  readonly payouts: {
382
- /** Choose how the studio is paid: "usdc" (default) or "fiat" (Bridge). */
405
+ /** Choose how the studio is paid: "usdc" (default) or "fiat" (Bridge). Secret key only (#264). */
383
406
  setMode: (mode: "usdc" | "fiat") => Promise<{
384
407
  mode: "usdc" | "fiat";
385
408
  }>;
386
- /** Create a Bridge KYC onboarding link (fiat payout). */
409
+ /** Create a Bridge KYC onboarding link (fiat payout). Secret key only (#264). */
387
410
  createOnboardingLink: () => Promise<{
388
411
  url: string;
389
412
  }>;
@@ -420,6 +443,10 @@ declare class Playmos {
420
443
  * Settle a previously minted challenge with an `x402-payload` authorization.
421
444
  * Defaults mode to `server-signer` when omitted (explicit on the wire — fail-closed
422
445
  * materialize still requires mode; the route also defaults for this path).
446
+ *
447
+ * #259/#269: settle uses `idempotency-key = requirement.id` and auto-retries gateway 504.
448
+ * A 504 replay may return **without throwing** with `success: false`, `status: "settling"`,
449
+ * `txHash: null` (in-flight). Treat as non-final — re-call or verify later; do not new-key.
423
450
  */
424
451
  fulfill: (requirement: PaymentRequirement, authorization?: X402FulfillAuthorization | X402PayloadAuthorization) => Promise<X402SettleResult>;
425
452
  /**
@@ -439,6 +466,8 @@ declare class Playmos {
439
466
  */
440
467
  /** Offline mock store for rounds.open/lock/settle/get when `mock: true` (3-game dogfood). */
441
468
  private readonly mockRounds;
469
+ /** Mock withdrawable credits after settle — key `${roundId}:${walletLower}` (#240 offline prize). */
470
+ private readonly mockWithdrawable;
442
471
  readonly rounds: {
443
472
  open: (input: RoundOpenInput) => Promise<RoundState>;
444
473
  lock: (input: {
@@ -446,9 +475,26 @@ declare class Playmos {
446
475
  gameId?: string;
447
476
  }) => Promise<RoundState>;
448
477
  settle: (input: RoundSettleInput) => Promise<SettleRoundResult>;
478
+ /**
479
+ * Cancel an open/locked round (operator sk_ only). Refunds entrants' escrowed ~90%
480
+ * and frees the series latch. May return `status: "cancelling"` (HTTP 202) until
481
+ * chain Cancelled(4) reconciles — poll `rounds.get` or re-call cancel (#346).
482
+ */
483
+ cancel: (input: {
484
+ roundId: string;
485
+ gameId?: string;
486
+ }) => Promise<CancelRoundResult>;
449
487
  get: (input: {
450
488
  roundId: string;
451
489
  }) => Promise<RoundState>;
490
+ /**
491
+ * Authoritative series latch (#351) — `null` means **proven free**.
492
+ * `GET /v1/series/:seriesKey/active?gameId=…` — not a candidate probe.
493
+ */
494
+ activeForSeries: (input: {
495
+ seriesKey: string;
496
+ gameId: string;
497
+ }) => Promise<ActiveSeriesRound | null>;
452
498
  /**
453
499
  * Read a wallet's **claimable** prize balance for a round (issue #41).
454
500
  * Prefers the service chain read (`GET /v1/rounds/:id/prize?wallet=`); falls
@@ -635,10 +681,24 @@ declare class Playmos {
635
681
  /** Verify a payment by the service's on-chain read (spec §6.1). Idempotent. */
636
682
  verify(paymentId: string): Promise<VerifyResult>;
637
683
  /**
638
- * x402 V1 is Base Sepolia + test keys only (ADR D5). Fail closed before any
639
- * network call so mainnet / live keys never silently hit the adapter.
684
+ * Secret (sk_) surfaces agents / transfer / x402. Capability tracks key type
685
+ * in code, not README prose (#260). pk_ keys are client-safe and refuse these.
686
+ */
687
+ private assertSecretKey;
688
+ /**
689
+ * x402 V1 is Base Sepolia + secret test keys only (ADR D5 + #260). Fail closed
690
+ * before any network call so mainnet / live / publishable keys never hit the adapter.
691
+ * Does not change fulfill/settle body shape (A owns #261 / #259 money path).
640
692
  */
641
693
  private assertX402Allowed;
694
+ /**
695
+ * Poll GET /payments/:id after server-settle until terminal status.
696
+ * - Entry (#221): service may return 202 pending (openRound+enter > DO edge).
697
+ * - IAP: service often returns 201 + txHash while status is still "created"
698
+ * until chain verify catches PaymentSettled (RPC lag) — poll so pay() matches
699
+ * the documented "confirmed" sandbox promise (TTFSC-T0 / cold-run).
700
+ */
701
+ private waitForServerSettle;
642
702
  /**
643
703
  * Map a server-settled payment (from the `settle: "server"` response) into the
644
704
  * SDK's `Payment` shape. The service already signed + confirmed on-chain, so we
@@ -716,15 +776,7 @@ declare function previewPoolSplit(amount: string): {
716
776
  *
717
777
  * No network, no chain — fully unit-testable.
718
778
  */
719
- type PayoutRule = {
720
- kind: "winner-take-all";
721
- } | {
722
- kind: "top-n";
723
- splitsBps: number[];
724
- } | {
725
- kind: "custom";
726
- amounts: string[];
727
- };
779
+
728
780
  declare class PayoutError extends Error {
729
781
  code: "payout_invalid";
730
782
  constructor(message: string);
@@ -796,4 +848,4 @@ declare function ulid(seedTime?: number): string;
796
848
  /** `${prefix}_${ulid()}` — e.g. `pay_01J…`, `entry_01J…`, `idem_01J…`. */
797
849
  declare function prefixedId(prefix: string): string;
798
850
 
799
- export { AgentFundResult, AgentWallet, type Authorization, CHAIN_ID, type CreatePaymentRequirementInput, DEFAULT_API_BASE_URL, EnterRoundInput, EscrowHoldInput, EscrowHoldResult, EscrowResolveResult, Listing, MICRO_PER_USDC, MarketplaceGetResult, MarketplaceListInput, MarketplaceSaleResult, Network, PayInput, Payment, type PaymentRequirement, PayoutError, type PayoutRule as PayoutRuleCompute, Playmos, PlaymosConfig, PrizeBalance, RoundOpenInput, RoundSettleInput, RoundState, SettleRoundResult, type SettlementAsset, TransferConfirmOptions, TransferInput, TransferReconcile, TransferResult, USDC_ADDRESS, USDC_DECIMALS, VerifyResult, WaitOptions, type WalletSignatureAuthorization, WebhookEvent, WithdrawResult, type X402ChallengeInput, type X402ChallengeResult, type X402FulfillAuthorization, type X402PayInput, type X402PayloadAuthorization, type X402PayloadMode, type X402PaymentRequired, type X402SettleResult, computeIapSplit, computePayout, computePoolSplit, createPaymentRequirement, createX402Challenge, decodePaymentHeader, encodePaymentHeader, formatMicroToUsd, isWalletSignatureAuthorization, isX402PayloadAuthorization, networkToCaip2, parsePaymentRequirement, parseUsdToMicro, prefixedId, previewEscrowFee, previewIapSplit, previewMarketplaceSplit, previewPoolSplit, previewTransferSplit, serializePaymentRequirement, toX402PaymentRequired, ulid, validateX402ChallengeInput };
851
+ export { ActiveSeriesRound, AgentFundResult, AgentWallet, type Authorization, CHAIN_ID, CancelRoundResult, type CreatePaymentRequirementInput, DEFAULT_API_BASE_URL, EnterRoundInput, EscrowHoldInput, EscrowHoldResult, EscrowResolveResult, Listing, MICRO_PER_USDC, MarketplaceGetResult, MarketplaceListInput, MarketplaceSaleResult, Network, PayInput, Payment, type PaymentRequirement, PayoutError, PayoutRule, PayoutRule as PayoutRuleCompute, Playmos, PlaymosConfig, PrizeBalance, RoundOpenInput, RoundSettleInput, RoundState, SettleRoundResult, type SettlementAsset, TransferConfirmOptions, TransferInput, TransferReconcile, TransferResult, USDC_ADDRESS, USDC_DECIMALS, VerifyResult, WaitOptions, type WalletSignatureAuthorization, WebhookEvent, WithdrawResult, type X402ChallengeInput, type X402ChallengeResult, type X402FulfillAuthorization, type X402PayInput, type X402PayloadAuthorization, type X402PayloadMode, type X402PaymentRequired, type X402SettleResult, clientRuntimeSignals, computeIapSplit, computePayout, computePoolSplit, createPaymentRequirement, createX402Challenge, decodePaymentHeader, encodePaymentHeader, formatMicroToUsd, isClientRuntime, isWalletSignatureAuthorization, isX402PayloadAuthorization, networkToCaip2, parsePaymentRequirement, parseUsdToMicro, prefixedId, previewEscrowFee, previewIapSplit, previewMarketplaceSplit, previewPoolSplit, previewTransferSplit, resolveEnv, serializePaymentRequirement, toX402PaymentRequired, ulid, validateX402ChallengeInput };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as Network, P as PlaymosConfig, W as WebhookEvent, R as RoundOpenInput, a as RoundState, b as RoundSettleInput, S as SettleRoundResult, c as PrizeBalance, d as WithdrawResult, A as AgentWallet, e as AgentFundResult, T as TransferResult, E as EscrowHoldInput, f as EscrowHoldResult, g as EscrowResolveResult, M as MarketplaceListInput, L as Listing, h as MarketplaceSaleResult, i as MarketplaceGetResult, j as PayInput, k as Payment, l as EnterRoundInput, m as TransferReconcile, n as WaitOptions, o as TransferInput, p as TransferConfirmOptions, V as VerifyResult } from './errors-DMtMpbR6.js';
2
- export { q as AgentEconomyConfig, r as ApiError, s as AuthError, C as ConfigError, t as ContractConfig, u as Eip1193Provider, G as GasConfig, v as GasMode, I as InsufficientGasError, w as InvalidAmountError, x as ListingStatus, y as MarketplaceItem, z as MarketplaceSale, B as MissingFieldError, D as NothingToWithdrawError, F as PaymentFailedError, H as PaymentStatus, J as PayoutRule, K as PlaymosError, O as PlaymosErrorCode, Q as RetryOptions, U as RoundStatus, X as WalletConfig, Y as WalletConnectionError, Z as WalletConnector, _ as WebhookEventType } from './errors-DMtMpbR6.js';
1
+ import { N as Network, P as PlaymosConfig, W as WebhookEvent, R as RoundOpenInput, a as RoundState, b as RoundSettleInput, S as SettleRoundResult, C as CancelRoundResult, A as ActiveSeriesRound, c as PrizeBalance, d as WithdrawResult, e as AgentWallet, f as AgentFundResult, T as TransferResult, E as EscrowHoldInput, g as EscrowHoldResult, h as EscrowResolveResult, M as MarketplaceListInput, L as Listing, i as MarketplaceSaleResult, j as MarketplaceGetResult, k as PayInput, l as Payment, m as EnterRoundInput, n as TransferReconcile, o as WaitOptions, p as TransferInput, q as TransferConfirmOptions, V as VerifyResult, r as PayoutRule } from './errors-CdVzHuhY.js';
2
+ export { s as ActiveForSeriesResult, t as AgentEconomyConfig, u as ApiError, v as AuthError, w as ConfigError, x as ContractConfig, y as Eip1193Provider, G as GasConfig, z as GasMode, I as InsufficientGasError, B as InvalidAmountError, D as ListingStatus, F as MarketplaceItem, H as MarketplaceSale, J as MissingFieldError, K as NothingToWithdrawError, O as PaymentFailedError, Q as PaymentStatus, U as PlaymosError, X as PlaymosErrorCode, Y as RetryOptions, Z as RoundStatus, _ as WalletConfig, $ as WalletConnectionError, a0 as WalletConnector, a1 as WebhookEventType } from './errors-CdVzHuhY.js';
3
3
 
4
4
  /**
5
5
  * Environment resolution + the canonical address book.
@@ -21,7 +21,30 @@ interface ResolvedEnv {
21
21
  chainId: number;
22
22
  apiBaseUrl: string;
23
23
  isTest: boolean;
24
+ /**
25
+ * True for `sk_test_` / `sk_live_` — server-only secret keys.
26
+ * False for `pk_test_` / `pk_live_` — browser-safe publishable keys.
27
+ * Capability must track this in code (not only docs): secret surfaces refuse pk_.
28
+ */
29
+ isSecret: boolean;
24
30
  }
31
+ /**
32
+ * Signals that indicate a **client/device** JS realm (not Node/SSR server).
33
+ *
34
+ * #260: `window`. #263: `document`, `importScripts` (Worker), ReactNative.
35
+ * #271: Cloudflare Workers historically stub `importScripts` on older
36
+ * compatibility dates — do **not** treat importScripts alone as client when a
37
+ * CF Worker marker is present (edge is not a claimed target; this avoids
38
+ * false-positive AuthError for sk_ in Workers backends).
39
+ *
40
+ * Limit: Electron main / Node CLIs with a baked sk_ still look like servers
41
+ * (no client signals) — runtime sniffing cannot close that class.
42
+ */
43
+ declare function clientRuntimeSignals(g?: typeof globalThis): string[];
44
+ /** True when this JS realm is a **client/device** runtime (not Node/SSR server). */
45
+ declare function isClientRuntime(g?: typeof globalThis): boolean;
46
+ /** Validate the key and resolve the environment it implies. */
47
+ declare function resolveEnv(apiKey: string, networkOverride?: Network, apiBaseUrlOverride?: string): ResolvedEnv;
25
48
 
26
49
  /**
27
50
  * settlement.ts — the x402-ready settlement CORE contract (Phase 0).
@@ -379,11 +402,11 @@ declare class Playmos {
379
402
  verify: (_rawBody: string | Buffer, _signatureHeader: string | string[] | undefined, _secret: string) => WebhookEvent;
380
403
  };
381
404
  readonly payouts: {
382
- /** Choose how the studio is paid: "usdc" (default) or "fiat" (Bridge). */
405
+ /** Choose how the studio is paid: "usdc" (default) or "fiat" (Bridge). Secret key only (#264). */
383
406
  setMode: (mode: "usdc" | "fiat") => Promise<{
384
407
  mode: "usdc" | "fiat";
385
408
  }>;
386
- /** Create a Bridge KYC onboarding link (fiat payout). */
409
+ /** Create a Bridge KYC onboarding link (fiat payout). Secret key only (#264). */
387
410
  createOnboardingLink: () => Promise<{
388
411
  url: string;
389
412
  }>;
@@ -420,6 +443,10 @@ declare class Playmos {
420
443
  * Settle a previously minted challenge with an `x402-payload` authorization.
421
444
  * Defaults mode to `server-signer` when omitted (explicit on the wire — fail-closed
422
445
  * materialize still requires mode; the route also defaults for this path).
446
+ *
447
+ * #259/#269: settle uses `idempotency-key = requirement.id` and auto-retries gateway 504.
448
+ * A 504 replay may return **without throwing** with `success: false`, `status: "settling"`,
449
+ * `txHash: null` (in-flight). Treat as non-final — re-call or verify later; do not new-key.
423
450
  */
424
451
  fulfill: (requirement: PaymentRequirement, authorization?: X402FulfillAuthorization | X402PayloadAuthorization) => Promise<X402SettleResult>;
425
452
  /**
@@ -439,6 +466,8 @@ declare class Playmos {
439
466
  */
440
467
  /** Offline mock store for rounds.open/lock/settle/get when `mock: true` (3-game dogfood). */
441
468
  private readonly mockRounds;
469
+ /** Mock withdrawable credits after settle — key `${roundId}:${walletLower}` (#240 offline prize). */
470
+ private readonly mockWithdrawable;
442
471
  readonly rounds: {
443
472
  open: (input: RoundOpenInput) => Promise<RoundState>;
444
473
  lock: (input: {
@@ -446,9 +475,26 @@ declare class Playmos {
446
475
  gameId?: string;
447
476
  }) => Promise<RoundState>;
448
477
  settle: (input: RoundSettleInput) => Promise<SettleRoundResult>;
478
+ /**
479
+ * Cancel an open/locked round (operator sk_ only). Refunds entrants' escrowed ~90%
480
+ * and frees the series latch. May return `status: "cancelling"` (HTTP 202) until
481
+ * chain Cancelled(4) reconciles — poll `rounds.get` or re-call cancel (#346).
482
+ */
483
+ cancel: (input: {
484
+ roundId: string;
485
+ gameId?: string;
486
+ }) => Promise<CancelRoundResult>;
449
487
  get: (input: {
450
488
  roundId: string;
451
489
  }) => Promise<RoundState>;
490
+ /**
491
+ * Authoritative series latch (#351) — `null` means **proven free**.
492
+ * `GET /v1/series/:seriesKey/active?gameId=…` — not a candidate probe.
493
+ */
494
+ activeForSeries: (input: {
495
+ seriesKey: string;
496
+ gameId: string;
497
+ }) => Promise<ActiveSeriesRound | null>;
452
498
  /**
453
499
  * Read a wallet's **claimable** prize balance for a round (issue #41).
454
500
  * Prefers the service chain read (`GET /v1/rounds/:id/prize?wallet=`); falls
@@ -635,10 +681,24 @@ declare class Playmos {
635
681
  /** Verify a payment by the service's on-chain read (spec §6.1). Idempotent. */
636
682
  verify(paymentId: string): Promise<VerifyResult>;
637
683
  /**
638
- * x402 V1 is Base Sepolia + test keys only (ADR D5). Fail closed before any
639
- * network call so mainnet / live keys never silently hit the adapter.
684
+ * Secret (sk_) surfaces agents / transfer / x402. Capability tracks key type
685
+ * in code, not README prose (#260). pk_ keys are client-safe and refuse these.
686
+ */
687
+ private assertSecretKey;
688
+ /**
689
+ * x402 V1 is Base Sepolia + secret test keys only (ADR D5 + #260). Fail closed
690
+ * before any network call so mainnet / live / publishable keys never hit the adapter.
691
+ * Does not change fulfill/settle body shape (A owns #261 / #259 money path).
640
692
  */
641
693
  private assertX402Allowed;
694
+ /**
695
+ * Poll GET /payments/:id after server-settle until terminal status.
696
+ * - Entry (#221): service may return 202 pending (openRound+enter > DO edge).
697
+ * - IAP: service often returns 201 + txHash while status is still "created"
698
+ * until chain verify catches PaymentSettled (RPC lag) — poll so pay() matches
699
+ * the documented "confirmed" sandbox promise (TTFSC-T0 / cold-run).
700
+ */
701
+ private waitForServerSettle;
642
702
  /**
643
703
  * Map a server-settled payment (from the `settle: "server"` response) into the
644
704
  * SDK's `Payment` shape. The service already signed + confirmed on-chain, so we
@@ -716,15 +776,7 @@ declare function previewPoolSplit(amount: string): {
716
776
  *
717
777
  * No network, no chain — fully unit-testable.
718
778
  */
719
- type PayoutRule = {
720
- kind: "winner-take-all";
721
- } | {
722
- kind: "top-n";
723
- splitsBps: number[];
724
- } | {
725
- kind: "custom";
726
- amounts: string[];
727
- };
779
+
728
780
  declare class PayoutError extends Error {
729
781
  code: "payout_invalid";
730
782
  constructor(message: string);
@@ -796,4 +848,4 @@ declare function ulid(seedTime?: number): string;
796
848
  /** `${prefix}_${ulid()}` — e.g. `pay_01J…`, `entry_01J…`, `idem_01J…`. */
797
849
  declare function prefixedId(prefix: string): string;
798
850
 
799
- export { AgentFundResult, AgentWallet, type Authorization, CHAIN_ID, type CreatePaymentRequirementInput, DEFAULT_API_BASE_URL, EnterRoundInput, EscrowHoldInput, EscrowHoldResult, EscrowResolveResult, Listing, MICRO_PER_USDC, MarketplaceGetResult, MarketplaceListInput, MarketplaceSaleResult, Network, PayInput, Payment, type PaymentRequirement, PayoutError, type PayoutRule as PayoutRuleCompute, Playmos, PlaymosConfig, PrizeBalance, RoundOpenInput, RoundSettleInput, RoundState, SettleRoundResult, type SettlementAsset, TransferConfirmOptions, TransferInput, TransferReconcile, TransferResult, USDC_ADDRESS, USDC_DECIMALS, VerifyResult, WaitOptions, type WalletSignatureAuthorization, WebhookEvent, WithdrawResult, type X402ChallengeInput, type X402ChallengeResult, type X402FulfillAuthorization, type X402PayInput, type X402PayloadAuthorization, type X402PayloadMode, type X402PaymentRequired, type X402SettleResult, computeIapSplit, computePayout, computePoolSplit, createPaymentRequirement, createX402Challenge, decodePaymentHeader, encodePaymentHeader, formatMicroToUsd, isWalletSignatureAuthorization, isX402PayloadAuthorization, networkToCaip2, parsePaymentRequirement, parseUsdToMicro, prefixedId, previewEscrowFee, previewIapSplit, previewMarketplaceSplit, previewPoolSplit, previewTransferSplit, serializePaymentRequirement, toX402PaymentRequired, ulid, validateX402ChallengeInput };
851
+ export { ActiveSeriesRound, AgentFundResult, AgentWallet, type Authorization, CHAIN_ID, CancelRoundResult, type CreatePaymentRequirementInput, DEFAULT_API_BASE_URL, EnterRoundInput, EscrowHoldInput, EscrowHoldResult, EscrowResolveResult, Listing, MICRO_PER_USDC, MarketplaceGetResult, MarketplaceListInput, MarketplaceSaleResult, Network, PayInput, Payment, type PaymentRequirement, PayoutError, PayoutRule, PayoutRule as PayoutRuleCompute, Playmos, PlaymosConfig, PrizeBalance, RoundOpenInput, RoundSettleInput, RoundState, SettleRoundResult, type SettlementAsset, TransferConfirmOptions, TransferInput, TransferReconcile, TransferResult, USDC_ADDRESS, USDC_DECIMALS, VerifyResult, WaitOptions, type WalletSignatureAuthorization, WebhookEvent, WithdrawResult, type X402ChallengeInput, type X402ChallengeResult, type X402FulfillAuthorization, type X402PayInput, type X402PayloadAuthorization, type X402PayloadMode, type X402PaymentRequired, type X402SettleResult, clientRuntimeSignals, computeIapSplit, computePayout, computePoolSplit, createPaymentRequirement, createX402Challenge, decodePaymentHeader, encodePaymentHeader, formatMicroToUsd, isClientRuntime, isWalletSignatureAuthorization, isX402PayloadAuthorization, networkToCaip2, parsePaymentRequirement, parseUsdToMicro, prefixedId, previewEscrowFee, previewIapSplit, previewMarketplaceSplit, previewPoolSplit, previewTransferSplit, resolveEnv, serializePaymentRequirement, toX402PaymentRequired, ulid, validateX402ChallengeInput };