@agent-score/commerce 1.6.0 → 1.8.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.
Files changed (58) hide show
  1. package/README.md +8 -10
  2. package/dist/{_response-DpB-cm2c.d.mts → _response-BMt2y4Or.d.mts} +11 -8
  3. package/dist/{_response-C2yFQoIA.d.ts → _response-DyJ3mWI3.d.ts} +11 -8
  4. package/dist/challenge/index.d.mts +2 -1
  5. package/dist/challenge/index.d.ts +2 -1
  6. package/dist/challenge/index.js.map +1 -1
  7. package/dist/challenge/index.mjs.map +1 -1
  8. package/dist/core.d.mts +36 -27
  9. package/dist/core.d.ts +36 -27
  10. package/dist/core.js +21 -101
  11. package/dist/core.js.map +1 -1
  12. package/dist/core.mjs +21 -101
  13. package/dist/core.mjs.map +1 -1
  14. package/dist/identity/express.d.mts +12 -13
  15. package/dist/identity/express.d.ts +12 -13
  16. package/dist/identity/express.js +38 -121
  17. package/dist/identity/express.js.map +1 -1
  18. package/dist/identity/express.mjs +36 -118
  19. package/dist/identity/express.mjs.map +1 -1
  20. package/dist/identity/fastify.d.mts +12 -11
  21. package/dist/identity/fastify.d.ts +12 -11
  22. package/dist/identity/fastify.js +38 -121
  23. package/dist/identity/fastify.js.map +1 -1
  24. package/dist/identity/fastify.mjs +36 -118
  25. package/dist/identity/fastify.mjs.map +1 -1
  26. package/dist/identity/hono.d.mts +13 -28
  27. package/dist/identity/hono.d.ts +13 -28
  28. package/dist/identity/hono.js +31 -123
  29. package/dist/identity/hono.js.map +1 -1
  30. package/dist/identity/hono.mjs +29 -120
  31. package/dist/identity/hono.mjs.map +1 -1
  32. package/dist/identity/nextjs.d.mts +8 -7
  33. package/dist/identity/nextjs.d.ts +8 -7
  34. package/dist/identity/nextjs.js +27 -119
  35. package/dist/identity/nextjs.js.map +1 -1
  36. package/dist/identity/nextjs.mjs +27 -118
  37. package/dist/identity/nextjs.mjs.map +1 -1
  38. package/dist/identity/policy.d.mts +1 -0
  39. package/dist/identity/policy.d.ts +1 -0
  40. package/dist/identity/web.d.mts +12 -14
  41. package/dist/identity/web.d.ts +12 -14
  42. package/dist/identity/web.js +27 -119
  43. package/dist/identity/web.js.map +1 -1
  44. package/dist/identity/web.mjs +27 -118
  45. package/dist/identity/web.mjs.map +1 -1
  46. package/dist/index.d.mts +73 -11
  47. package/dist/index.d.ts +73 -11
  48. package/dist/index.js +45 -9
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.mjs +41 -7
  51. package/dist/index.mjs.map +1 -1
  52. package/dist/payment/index.d.mts +1 -1
  53. package/dist/payment/index.d.ts +1 -1
  54. package/dist/payment/index.js.map +1 -1
  55. package/dist/payment/index.mjs.map +1 -1
  56. package/dist/{signer-kCAJUZwp.d.mts → signer-CFVQsWjL.d.mts} +1 -6
  57. package/dist/{signer-kCAJUZwp.d.ts → signer-CFVQsWjL.d.ts} +1 -6
  58. package/package.json +6 -6
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AgentScoreCoreOptions, AssessResult, CreateSessionOnMissing, DenialCode, DenialReason, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, VerifyWalletSignerMatchOptions, VerifyWalletSignerResult, buildAgentMemoryHint } from './core.mjs';
2
- export { P as PaymentSigner, S as SignerNetwork, a as extractPaymentSigner, e as extractPaymentSignerAddress, r as readX402PaymentHeader } from './signer-kCAJUZwp.mjs';
3
- export { F as FIXABLE_DENIAL_REASONS, b as buildContactSupportNextSteps, a as buildSignerMismatchBody, d as denialReasonStatus, c as denialReasonToBody, i as isFixableDenial, v as verificationAgentInstructions } from './_response-DpB-cm2c.mjs';
1
+ export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AgentScoreCoreOptions, AssessResult, CreateSessionOnMissing, DenialCode, DenialReason, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, VerifyWalletSignerResult, buildAgentMemoryHint } from './core.mjs';
2
+ export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, r as readX402PaymentHeader } from './signer-CFVQsWjL.mjs';
3
+ export { F as FIXABLE_DENIAL_REASONS, b as buildContactSupportNextSteps, a as buildSignerMismatchBody, d as denialReasonStatus, c as denialReasonToBody, i as isFixableDenial, v as verificationAgentInstructions } from './_response-BMt2y4Or.mjs';
4
4
  export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateOptionsFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed } from './identity/policy.mjs';
5
5
 
6
6
  /**
@@ -445,13 +445,7 @@ interface AgentScoreGatePolicy {
445
445
  * ],
446
446
  * },
447
447
  * payment_handlers: {
448
- * 'sh.agentscore.payment.tempo': [{
449
- * id: 'tempo',
450
- * version: '2026-04-08',
451
- * spec: 'https://agentscore.sh/specification/payment-handlers/tempo',
452
- * schema: 'https://agentscore.sh/schemas/payment-handlers/tempo.json',
453
- * config: { recipient: TEMPO_ADDR },
454
- * }],
448
+ * ...mppPaymentHandler({ networks: [{ network: 'tempo-mainnet', chain_id: 4217, recipient: TEMPO_ADDR }] }),
455
449
  * },
456
450
  * signing_keys: [signingKey],
457
451
  * agentscore_gate: { require_kyc: true, min_age: 21, allowed_jurisdictions: ['US'] },
@@ -460,6 +454,74 @@ interface AgentScoreGatePolicy {
460
454
  */
461
455
  declare function buildUCPProfile(input: BuildUCPProfileInput): UCPProfile;
462
456
  declare const AGENTSCORE_UCP_CAPABILITY = "sh.agentscore.identity";
457
+ type MppNetwork = 'tempo-mainnet' | 'tempo-testnet' | 'mpp-solana-mainnet' | 'mpp-solana-devnet' | (string & {});
458
+ interface MppNetworkEntry {
459
+ network: MppNetwork;
460
+ /** EVM-style chain id (e.g. 4217 for Tempo mainnet). Omit for non-EVM networks. */
461
+ chain_id?: number;
462
+ /** Static settlement address. Omit for per-order recipients (e.g. Stripe-derived deposits). */
463
+ recipient?: string;
464
+ [k: string]: unknown;
465
+ }
466
+ interface MppPaymentHandlerInput {
467
+ networks: MppNetworkEntry[];
468
+ }
469
+ type X402Network = `base-${number}` | 'solana-mainnet-beta' | 'solana-devnet' | 'stellar-pubnet' | 'stellar-testnet' | (string & {});
470
+ interface X402NetworkEntry {
471
+ network: X402Network;
472
+ /** Static settlement address. Omit for per-order recipients. */
473
+ recipient?: string;
474
+ [k: string]: unknown;
475
+ }
476
+ interface X402PaymentHandlerInput {
477
+ networks: X402NetworkEntry[];
478
+ }
479
+ interface StripeSptPaymentHandlerInput {
480
+ /** Stripe profile id (the merchant-side network identifier the agent's SPT is scoped to). */
481
+ profile_id: string;
482
+ }
483
+ /**
484
+ * Build the `sh.agentscore.payment.mpp` payment handler block for a UCP profile.
485
+ *
486
+ * @example
487
+ * ```ts
488
+ * buildUCPProfile({
489
+ * ...,
490
+ * payment_handlers: {
491
+ * ...mppPaymentHandler({ networks: [{ network: 'tempo-mainnet', chain_id: 4217 }] }),
492
+ * },
493
+ * });
494
+ * ```
495
+ */
496
+ declare function mppPaymentHandler(input: MppPaymentHandlerInput): Record<string, UCPPaymentHandlerBinding[]>;
497
+ /**
498
+ * Build the `sh.agentscore.payment.x402` payment handler block for a UCP profile.
499
+ *
500
+ * @example
501
+ * ```ts
502
+ * buildUCPProfile({
503
+ * ...,
504
+ * payment_handlers: {
505
+ * ...x402PaymentHandler({ networks: [{ network: 'base-8453', recipient: '0xabc...' }] }),
506
+ * },
507
+ * });
508
+ * ```
509
+ */
510
+ declare function x402PaymentHandler(input: X402PaymentHandlerInput): Record<string, UCPPaymentHandlerBinding[]>;
511
+ /**
512
+ * Build the `sh.agentscore.payment.stripe_spt` payment handler block for a UCP profile.
513
+ *
514
+ * @example
515
+ * ```ts
516
+ * buildUCPProfile({
517
+ * ...,
518
+ * payment_handlers: {
519
+ * ...stripeSptPaymentHandler({ profile_id: 'profile_5xKvNqM9BaH' }),
520
+ * },
521
+ * });
522
+ * ```
523
+ */
524
+ declare function stripeSptPaymentHandler(input: StripeSptPaymentHandlerInput): Record<string, UCPPaymentHandlerBinding[]>;
463
525
 
464
526
  /**
465
527
  * UCP profile signing helpers (JWKS + JWS).
@@ -592,4 +654,4 @@ declare function verifyUCPProfile(profile: SignedUCPProfile, jwks: JWKSResponse)
592
654
  */
593
655
  declare function buildJWKSResponse(keys: UCPSigningKey[]): JWKSResponse;
594
656
 
595
- export { type A2AAgentCard, type A2AAgentCardCapabilities, type A2AAgentCardExtension, type A2AAgentCardSignature, type A2AAgentInterface, type A2AAgentProvider, type A2AAgentSkill, AGENTSCORE_UCP_CAPABILITY, type AgentScoreGatePolicy, type BuildA2AAgentCardInput, type BuildUCPProfileInput, type GeneratedUCPKey, type JWKSResponse, type SignUCPProfileOptions, type SignedUCPProfile, type UCPCapabilityBinding, type UCPPaymentHandlerBinding, type UCPProfile, type UCPProfileBody, type UCPServiceBinding, UCPSigningKey, UCPVerificationError, UCP_A2A_EXTENSION_URI, buildA2AAgentCard, buildJWKSResponse, buildUCPProfile, generateUCPSigningKey, signUCPProfile, ucpA2AExtension, verifyUCPProfile };
657
+ export { type A2AAgentCard, type A2AAgentCardCapabilities, type A2AAgentCardExtension, type A2AAgentCardSignature, type A2AAgentInterface, type A2AAgentProvider, type A2AAgentSkill, AGENTSCORE_UCP_CAPABILITY, type AgentScoreGatePolicy, type BuildA2AAgentCardInput, type BuildUCPProfileInput, type GeneratedUCPKey, type JWKSResponse, type MppNetworkEntry, type MppPaymentHandlerInput, type SignUCPProfileOptions, type SignedUCPProfile, type StripeSptPaymentHandlerInput, type UCPCapabilityBinding, type UCPPaymentHandlerBinding, type UCPProfile, type UCPProfileBody, type UCPServiceBinding, UCPSigningKey, UCPVerificationError, UCP_A2A_EXTENSION_URI, type X402NetworkEntry, type X402PaymentHandlerInput, buildA2AAgentCard, buildJWKSResponse, buildUCPProfile, generateUCPSigningKey, mppPaymentHandler, signUCPProfile, stripeSptPaymentHandler, ucpA2AExtension, verifyUCPProfile, x402PaymentHandler };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AgentScoreCoreOptions, AssessResult, CreateSessionOnMissing, DenialCode, DenialReason, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, VerifyWalletSignerMatchOptions, VerifyWalletSignerResult, buildAgentMemoryHint } from './core.js';
2
- export { P as PaymentSigner, S as SignerNetwork, a as extractPaymentSigner, e as extractPaymentSignerAddress, r as readX402PaymentHeader } from './signer-kCAJUZwp.js';
3
- export { F as FIXABLE_DENIAL_REASONS, b as buildContactSupportNextSteps, a as buildSignerMismatchBody, d as denialReasonStatus, c as denialReasonToBody, i as isFixableDenial, v as verificationAgentInstructions } from './_response-C2yFQoIA.js';
1
+ export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AgentScoreCoreOptions, AssessResult, CreateSessionOnMissing, DenialCode, DenialReason, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, VerifyWalletSignerResult, buildAgentMemoryHint } from './core.js';
2
+ export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, r as readX402PaymentHeader } from './signer-CFVQsWjL.js';
3
+ export { F as FIXABLE_DENIAL_REASONS, b as buildContactSupportNextSteps, a as buildSignerMismatchBody, d as denialReasonStatus, c as denialReasonToBody, i as isFixableDenial, v as verificationAgentInstructions } from './_response-DyJ3mWI3.js';
4
4
  export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateOptionsFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed } from './identity/policy.js';
5
5
 
6
6
  /**
@@ -445,13 +445,7 @@ interface AgentScoreGatePolicy {
445
445
  * ],
446
446
  * },
447
447
  * payment_handlers: {
448
- * 'sh.agentscore.payment.tempo': [{
449
- * id: 'tempo',
450
- * version: '2026-04-08',
451
- * spec: 'https://agentscore.sh/specification/payment-handlers/tempo',
452
- * schema: 'https://agentscore.sh/schemas/payment-handlers/tempo.json',
453
- * config: { recipient: TEMPO_ADDR },
454
- * }],
448
+ * ...mppPaymentHandler({ networks: [{ network: 'tempo-mainnet', chain_id: 4217, recipient: TEMPO_ADDR }] }),
455
449
  * },
456
450
  * signing_keys: [signingKey],
457
451
  * agentscore_gate: { require_kyc: true, min_age: 21, allowed_jurisdictions: ['US'] },
@@ -460,6 +454,74 @@ interface AgentScoreGatePolicy {
460
454
  */
461
455
  declare function buildUCPProfile(input: BuildUCPProfileInput): UCPProfile;
462
456
  declare const AGENTSCORE_UCP_CAPABILITY = "sh.agentscore.identity";
457
+ type MppNetwork = 'tempo-mainnet' | 'tempo-testnet' | 'mpp-solana-mainnet' | 'mpp-solana-devnet' | (string & {});
458
+ interface MppNetworkEntry {
459
+ network: MppNetwork;
460
+ /** EVM-style chain id (e.g. 4217 for Tempo mainnet). Omit for non-EVM networks. */
461
+ chain_id?: number;
462
+ /** Static settlement address. Omit for per-order recipients (e.g. Stripe-derived deposits). */
463
+ recipient?: string;
464
+ [k: string]: unknown;
465
+ }
466
+ interface MppPaymentHandlerInput {
467
+ networks: MppNetworkEntry[];
468
+ }
469
+ type X402Network = `base-${number}` | 'solana-mainnet-beta' | 'solana-devnet' | 'stellar-pubnet' | 'stellar-testnet' | (string & {});
470
+ interface X402NetworkEntry {
471
+ network: X402Network;
472
+ /** Static settlement address. Omit for per-order recipients. */
473
+ recipient?: string;
474
+ [k: string]: unknown;
475
+ }
476
+ interface X402PaymentHandlerInput {
477
+ networks: X402NetworkEntry[];
478
+ }
479
+ interface StripeSptPaymentHandlerInput {
480
+ /** Stripe profile id (the merchant-side network identifier the agent's SPT is scoped to). */
481
+ profile_id: string;
482
+ }
483
+ /**
484
+ * Build the `sh.agentscore.payment.mpp` payment handler block for a UCP profile.
485
+ *
486
+ * @example
487
+ * ```ts
488
+ * buildUCPProfile({
489
+ * ...,
490
+ * payment_handlers: {
491
+ * ...mppPaymentHandler({ networks: [{ network: 'tempo-mainnet', chain_id: 4217 }] }),
492
+ * },
493
+ * });
494
+ * ```
495
+ */
496
+ declare function mppPaymentHandler(input: MppPaymentHandlerInput): Record<string, UCPPaymentHandlerBinding[]>;
497
+ /**
498
+ * Build the `sh.agentscore.payment.x402` payment handler block for a UCP profile.
499
+ *
500
+ * @example
501
+ * ```ts
502
+ * buildUCPProfile({
503
+ * ...,
504
+ * payment_handlers: {
505
+ * ...x402PaymentHandler({ networks: [{ network: 'base-8453', recipient: '0xabc...' }] }),
506
+ * },
507
+ * });
508
+ * ```
509
+ */
510
+ declare function x402PaymentHandler(input: X402PaymentHandlerInput): Record<string, UCPPaymentHandlerBinding[]>;
511
+ /**
512
+ * Build the `sh.agentscore.payment.stripe_spt` payment handler block for a UCP profile.
513
+ *
514
+ * @example
515
+ * ```ts
516
+ * buildUCPProfile({
517
+ * ...,
518
+ * payment_handlers: {
519
+ * ...stripeSptPaymentHandler({ profile_id: 'profile_5xKvNqM9BaH' }),
520
+ * },
521
+ * });
522
+ * ```
523
+ */
524
+ declare function stripeSptPaymentHandler(input: StripeSptPaymentHandlerInput): Record<string, UCPPaymentHandlerBinding[]>;
463
525
 
464
526
  /**
465
527
  * UCP profile signing helpers (JWKS + JWS).
@@ -592,4 +654,4 @@ declare function verifyUCPProfile(profile: SignedUCPProfile, jwks: JWKSResponse)
592
654
  */
593
655
  declare function buildJWKSResponse(keys: UCPSigningKey[]): JWKSResponse;
594
656
 
595
- export { type A2AAgentCard, type A2AAgentCardCapabilities, type A2AAgentCardExtension, type A2AAgentCardSignature, type A2AAgentInterface, type A2AAgentProvider, type A2AAgentSkill, AGENTSCORE_UCP_CAPABILITY, type AgentScoreGatePolicy, type BuildA2AAgentCardInput, type BuildUCPProfileInput, type GeneratedUCPKey, type JWKSResponse, type SignUCPProfileOptions, type SignedUCPProfile, type UCPCapabilityBinding, type UCPPaymentHandlerBinding, type UCPProfile, type UCPProfileBody, type UCPServiceBinding, UCPSigningKey, UCPVerificationError, UCP_A2A_EXTENSION_URI, buildA2AAgentCard, buildJWKSResponse, buildUCPProfile, generateUCPSigningKey, signUCPProfile, ucpA2AExtension, verifyUCPProfile };
657
+ export { type A2AAgentCard, type A2AAgentCardCapabilities, type A2AAgentCardExtension, type A2AAgentCardSignature, type A2AAgentInterface, type A2AAgentProvider, type A2AAgentSkill, AGENTSCORE_UCP_CAPABILITY, type AgentScoreGatePolicy, type BuildA2AAgentCardInput, type BuildUCPProfileInput, type GeneratedUCPKey, type JWKSResponse, type MppNetworkEntry, type MppPaymentHandlerInput, type SignUCPProfileOptions, type SignedUCPProfile, type StripeSptPaymentHandlerInput, type UCPCapabilityBinding, type UCPPaymentHandlerBinding, type UCPProfile, type UCPProfileBody, type UCPServiceBinding, UCPSigningKey, UCPVerificationError, UCP_A2A_EXTENSION_URI, type X402NetworkEntry, type X402PaymentHandlerInput, buildA2AAgentCard, buildJWKSResponse, buildUCPProfile, generateUCPSigningKey, mppPaymentHandler, signUCPProfile, stripeSptPaymentHandler, ucpA2AExtension, verifyUCPProfile, x402PaymentHandler };
package/dist/index.js CHANGED
@@ -45,17 +45,19 @@ __export(index_exports, {
45
45
  denialReasonStatus: () => denialReasonStatus,
46
46
  denialReasonToBody: () => denialReasonToBody,
47
47
  extractPaymentSigner: () => extractPaymentSigner,
48
- extractPaymentSignerAddress: () => extractPaymentSignerAddress,
49
48
  generateUCPSigningKey: () => generateUCPSigningKey,
50
49
  isFixableDenial: () => isFixableDenial,
50
+ mppPaymentHandler: () => mppPaymentHandler,
51
51
  readX402PaymentHeader: () => readX402PaymentHeader,
52
52
  runGateWithEnforcement: () => runGateWithEnforcement,
53
53
  shippingCountryAllowed: () => shippingCountryAllowed,
54
54
  shippingStateAllowed: () => shippingStateAllowed,
55
55
  signUCPProfile: () => signUCPProfile,
56
+ stripeSptPaymentHandler: () => stripeSptPaymentHandler,
56
57
  ucpA2AExtension: () => ucpA2AExtension,
57
58
  verificationAgentInstructions: () => verificationAgentInstructions,
58
- verifyUCPProfile: () => verifyUCPProfile
59
+ verifyUCPProfile: () => verifyUCPProfile,
60
+ x402PaymentHandler: () => x402PaymentHandler
59
61
  });
60
62
  module.exports = __toCommonJS(index_exports);
61
63
 
@@ -79,7 +81,7 @@ function denialReasonStatus(reason) {
79
81
  }
80
82
  function buildSignerMismatchBody(input) {
81
83
  const { result } = input;
82
- if (result.kind === "pass" || result.kind === "api_error") return null;
84
+ if (result.kind === "pass") return null;
83
85
  const learnMoreUrl = input.learnMoreUrl ?? "https://docs.agentscore.sh/guides/agent-identity";
84
86
  if (result.kind === "wallet_signer_mismatch") {
85
87
  const linkedWallets = result.linkedWallets ?? [];
@@ -375,10 +377,6 @@ async function extractPaymentSigner(request, x402PaymentHeader) {
375
377
  }
376
378
  return null;
377
379
  }
378
- async function extractPaymentSignerAddress(request, x402PaymentHeader) {
379
- const result = await extractPaymentSigner(request, x402PaymentHeader);
380
- return result?.address ?? null;
381
- }
382
380
  function readX402PaymentHeader(request) {
383
381
  return request.headers.get("payment-signature") ?? request.headers.get("x-payment") ?? void 0;
384
382
  }
@@ -554,6 +552,42 @@ function buildUCPProfile(input) {
554
552
  return profile;
555
553
  }
556
554
  var AGENTSCORE_UCP_CAPABILITY = AGENTSCORE_CAPABILITY_NAME;
555
+ var HANDLER_VERSION = "2026-04-08";
556
+ var SPEC_BASE = "https://agentscore.sh/specification/payment-handlers";
557
+ var SCHEMA_BASE = "https://agentscore.sh/schemas/payment-handlers";
558
+ function mppPaymentHandler(input) {
559
+ return {
560
+ "sh.agentscore.payment.mpp": [{
561
+ id: "mpp",
562
+ version: HANDLER_VERSION,
563
+ spec: `${SPEC_BASE}/mpp`,
564
+ schema: `${SCHEMA_BASE}/mpp.json`,
565
+ config: { networks: input.networks }
566
+ }]
567
+ };
568
+ }
569
+ function x402PaymentHandler(input) {
570
+ return {
571
+ "sh.agentscore.payment.x402": [{
572
+ id: "x402",
573
+ version: HANDLER_VERSION,
574
+ spec: `${SPEC_BASE}/x402`,
575
+ schema: `${SCHEMA_BASE}/x402.json`,
576
+ config: { networks: input.networks }
577
+ }]
578
+ };
579
+ }
580
+ function stripeSptPaymentHandler(input) {
581
+ return {
582
+ "sh.agentscore.payment.stripe_spt": [{
583
+ id: "stripe-spt",
584
+ version: HANDLER_VERSION,
585
+ spec: `${SPEC_BASE}/stripe_spt`,
586
+ schema: `${SCHEMA_BASE}/stripe_spt.json`,
587
+ config: { rail: "stripe-spt", profile_id: input.profile_id }
588
+ }]
589
+ };
590
+ }
557
591
 
558
592
  // src/identity/ucp-jwks.ts
559
593
  var JOSE_INSTALL_HINT = "Install the optional peer dependency: `npm install jose@^6` (or `bun add jose`). Tested against jose v6.x.";
@@ -890,16 +924,18 @@ function shippingStateAllowed(state, country, policy) {
890
924
  denialReasonStatus,
891
925
  denialReasonToBody,
892
926
  extractPaymentSigner,
893
- extractPaymentSignerAddress,
894
927
  generateUCPSigningKey,
895
928
  isFixableDenial,
929
+ mppPaymentHandler,
896
930
  readX402PaymentHeader,
897
931
  runGateWithEnforcement,
898
932
  shippingCountryAllowed,
899
933
  shippingStateAllowed,
900
934
  signUCPProfile,
935
+ stripeSptPaymentHandler,
901
936
  ucpA2AExtension,
902
937
  verificationAgentInstructions,
903
- verifyUCPProfile
938
+ verifyUCPProfile,
939
+ x402PaymentHandler
904
940
  });
905
941
  //# sourceMappingURL=index.js.map