@agent-score/commerce 2.7.5 → 2.7.7
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/challenge/index.d.mts +3 -3
- package/dist/challenge/index.d.ts +3 -3
- package/dist/{checkout-DKq9gV3G.d.mts → checkout-B0jIzAEo.d.mts} +5 -5
- package/dist/{checkout-DW7GgRrl.d.ts → checkout-BRdpPSnc.d.ts} +5 -5
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/discovery/index.d.mts +6 -6
- package/dist/discovery/index.d.ts +6 -6
- package/dist/{gate-GCXy4FHI.d.mts → gate-BMUMi-P0.d.mts} +2 -2
- package/dist/{gate-D2RP6bZg.d.ts → gate-Bhbi5zvG.d.ts} +2 -2
- package/dist/identity/express.d.mts +2 -2
- package/dist/identity/express.d.ts +2 -2
- package/dist/identity/express.js +1 -1
- package/dist/identity/express.mjs +1 -1
- package/dist/identity/fastify.d.mts +2 -2
- package/dist/identity/fastify.d.ts +2 -2
- package/dist/identity/fastify.js +1 -1
- package/dist/identity/fastify.mjs +1 -1
- package/dist/identity/hono.d.mts +2 -2
- package/dist/identity/hono.d.ts +2 -2
- package/dist/identity/hono.js +1 -1
- package/dist/identity/hono.mjs +1 -1
- package/dist/identity/nextjs.d.mts +2 -2
- package/dist/identity/nextjs.d.ts +2 -2
- package/dist/identity/nextjs.js +1 -1
- package/dist/identity/nextjs.mjs +1 -1
- package/dist/identity/web.d.mts +2 -2
- package/dist/identity/web.d.ts +2 -2
- package/dist/identity/web.js +1 -1
- package/dist/identity/web.mjs +1 -1
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +179 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +179 -65
- package/dist/index.mjs.map +1 -1
- package/dist/{network_kind-toxNABqw.d.ts → network_kind-C3NA2wX2.d.ts} +2 -2
- package/dist/{network_kind-CLdLbqU5.d.mts → network_kind-DmHbQbOb.d.mts} +2 -2
- package/dist/payment/index.d.mts +5 -5
- package/dist/payment/index.d.ts +5 -5
- package/dist/{pricing-Dx3F1VAv.d.ts → pricing-DUYE2hIy.d.ts} +1 -1
- package/dist/{pricing-sfv3CPiY.d.mts → pricing-Wqbq6xIR.d.mts} +1 -1
- package/dist/{rail_spec-DGdb4Gnd.d.mts → rail_spec-C-jTQ7g6.d.mts} +1 -1
- package/dist/{rail_spec-DGdb4Gnd.d.ts → rail_spec-C-jTQ7g6.d.ts} +1 -1
- package/dist/stripe-multichain/index.js +175 -61
- package/dist/stripe-multichain/index.js.map +1 -1
- package/dist/stripe-multichain/index.mjs +175 -61
- package/dist/stripe-multichain/index.mjs.map +1 -1
- package/dist/{types-D1slMt0H.d.mts → types-1Mr5ZDas.d.mts} +1 -1
- package/dist/{types-D1slMt0H.d.ts → types-1Mr5ZDas.d.ts} +1 -1
- package/dist/{x402_server-Ciz2mls2.d.mts → x402_server-hgQzWQwB.d.mts} +1 -1
- package/dist/{x402_server-Ciz2mls2.d.ts → x402_server-hgQzWQwB.d.ts} +1 -1
- package/package.json +15 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-
|
|
2
|
-
import { A as AgentInstructions, P as PricingBlock } from '../pricing-
|
|
3
|
-
export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-
|
|
1
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-C-jTQ7g6.mjs';
|
|
2
|
+
import { A as AgentInstructions, P as PricingBlock } from '../pricing-Wqbq6xIR.mjs';
|
|
3
|
+
export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-Wqbq6xIR.mjs';
|
|
4
4
|
import { AgentMemoryHint } from '../core.mjs';
|
|
5
5
|
export { buildAgentMemoryHint } from '../core.mjs';
|
|
6
6
|
import { p as paymentRequiredHeader } from '../wwwauthenticate-Dgm-_af9.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-
|
|
2
|
-
import { A as AgentInstructions, P as PricingBlock } from '../pricing-
|
|
3
|
-
export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-
|
|
1
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from '../rail_spec-C-jTQ7g6.js';
|
|
2
|
+
import { A as AgentInstructions, P as PricingBlock } from '../pricing-DUYE2hIy.js';
|
|
3
|
+
export { C as CompatibleClients, H as HowToPayBlock, a as HowToPayRailEntry, b as HowToPayRails, c as HowToPayStripeEntry, R as RailKey, d as buildAgentInstructions, e as buildHowToPay, f as buildPricingBlock, g as compatibleClientsByRails } from '../pricing-DUYE2hIy.js';
|
|
4
4
|
import { AgentMemoryHint } from '../core.js';
|
|
5
5
|
export { buildAgentMemoryHint } from '../core.js';
|
|
6
6
|
import { p as paymentRequiredHeader } from '../wwwauthenticate-Dgm-_af9.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TempoRailSpec, S as SolanaMppRailSpec,
|
|
2
|
-
import { P as PricingBlock, R as RailKey } from './pricing-
|
|
1
|
+
import { T as TempoRailSpec, S as SolanaMppRailSpec, a as TempoSessionRailSpec, b as StripeRailSpec, X as X402BaseRailSpec } from './rail_spec-C-jTQ7g6.mjs';
|
|
2
|
+
import { P as PricingBlock, R as RailKey } from './pricing-Wqbq6xIR.mjs';
|
|
3
3
|
import { CreateSessionOnMissing, AgentScoreCoreOptions, DenialReason } from './core.mjs';
|
|
4
|
-
import {
|
|
5
|
-
import { T as TrustLevel } from './types-
|
|
4
|
+
import { X as X402Server } from './x402_server-hgQzWQwB.mjs';
|
|
5
|
+
import { T as TrustLevel } from './types-1Mr5ZDas.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* UCP (Universal Commerce Protocol) profile builder.
|
|
@@ -1085,4 +1085,4 @@ interface MountUcpRoutesOptions {
|
|
|
1085
1085
|
jwksPath?: string;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
export {
|
|
1088
|
+
export { type AgentScoreGatePolicy as A, validationResponseFastify as B, Checkout as C, type DiscoveryProbeConfig as D, validationResponseHono as E, validationResponseNextjs as F, type GateDenial as G, validationResponseWeb as H, type IsCachedAddressFn as I, x402PaymentHandler as J, type MountUcpRoutesOptions as M, type OnSettledFn as O, type PreValidateFn as P, type RecipientsFn as R, type SettleOutcome as S, type UCPServiceBinding as U, UCPSigningKey as a, type UCPProfile as b, AGENTSCORE_UCP_CAPABILITY as c, type CheckoutContext as d, type CheckoutGateConfig as e, type CheckoutRailSpec as f, type CheckoutRequest as g, type CheckoutResult as h, type ComposeMppxFn as i, type MppxComposeOutcome as j, type PricingFn as k, type PricingResult as l, type ReferenceIdFn as m, type RunGateFn as n, type UCPCapabilityBinding as o, type UCPPaymentHandlerBinding as p, type UCPProfileBody as q, buildAipTrustedIssuers as r, buildUCPProfile as s, getIdentityStatus as t, makeMppxComposeHook as u, mppPaymentHandler as v, pricingResult as w, stripeSptPaymentHandler as x, validationEnvelope as y, validationResponseExpress as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TempoRailSpec, S as SolanaMppRailSpec,
|
|
2
|
-
import { P as PricingBlock, R as RailKey } from './pricing-
|
|
1
|
+
import { T as TempoRailSpec, S as SolanaMppRailSpec, a as TempoSessionRailSpec, b as StripeRailSpec, X as X402BaseRailSpec } from './rail_spec-C-jTQ7g6.js';
|
|
2
|
+
import { P as PricingBlock, R as RailKey } from './pricing-DUYE2hIy.js';
|
|
3
3
|
import { CreateSessionOnMissing, AgentScoreCoreOptions, DenialReason } from './core.js';
|
|
4
|
-
import {
|
|
5
|
-
import { T as TrustLevel } from './types-
|
|
4
|
+
import { X as X402Server } from './x402_server-hgQzWQwB.js';
|
|
5
|
+
import { T as TrustLevel } from './types-1Mr5ZDas.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* UCP (Universal Commerce Protocol) profile builder.
|
|
@@ -1085,4 +1085,4 @@ interface MountUcpRoutesOptions {
|
|
|
1085
1085
|
jwksPath?: string;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
export {
|
|
1088
|
+
export { type AgentScoreGatePolicy as A, validationResponseFastify as B, Checkout as C, type DiscoveryProbeConfig as D, validationResponseHono as E, validationResponseNextjs as F, type GateDenial as G, validationResponseWeb as H, type IsCachedAddressFn as I, x402PaymentHandler as J, type MountUcpRoutesOptions as M, type OnSettledFn as O, type PreValidateFn as P, type RecipientsFn as R, type SettleOutcome as S, type UCPServiceBinding as U, UCPSigningKey as a, type UCPProfile as b, AGENTSCORE_UCP_CAPABILITY as c, type CheckoutContext as d, type CheckoutGateConfig as e, type CheckoutRailSpec as f, type CheckoutRequest as g, type CheckoutResult as h, type ComposeMppxFn as i, type MppxComposeOutcome as j, type PricingFn as k, type PricingResult as l, type ReferenceIdFn as m, type RunGateFn as n, type UCPCapabilityBinding as o, type UCPPaymentHandlerBinding as p, type UCPProfileBody as q, buildAipTrustedIssuers as r, buildUCPProfile as s, getIdentityStatus as t, makeMppxComposeHook as u, mppPaymentHandler as v, pricingResult as w, stripeSptPaymentHandler as x, validationEnvelope as y, validationResponseExpress as z };
|
package/dist/core.js
CHANGED
|
@@ -227,7 +227,7 @@ function createAgentScoreCore(options) {
|
|
|
227
227
|
} = options;
|
|
228
228
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
229
229
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
230
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
230
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
231
231
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
232
232
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
233
233
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/core.mjs
CHANGED
|
@@ -209,7 +209,7 @@ function createAgentScoreCore(options) {
|
|
|
209
209
|
} = options;
|
|
210
210
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
211
211
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
212
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
212
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
213
213
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
214
214
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
215
215
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { R as RailKey, C as CompatibleClients } from '../pricing-
|
|
2
|
-
export { g as compatibleClientsByRails } from '../pricing-
|
|
3
|
-
import { C as Checkout,
|
|
4
|
-
import '../rail_spec-
|
|
1
|
+
import { R as RailKey, C as CompatibleClients } from '../pricing-Wqbq6xIR.mjs';
|
|
2
|
+
export { g as compatibleClientsByRails } from '../pricing-Wqbq6xIR.mjs';
|
|
3
|
+
import { C as Checkout, U as UCPServiceBinding, A as AgentScoreGatePolicy } from '../checkout-B0jIzAEo.mjs';
|
|
4
|
+
import '../rail_spec-C-jTQ7g6.mjs';
|
|
5
5
|
import '../core.mjs';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.mjs';
|
|
8
|
-
import '../x402_server-
|
|
9
|
-
import '../types-
|
|
8
|
+
import '../x402_server-hgQzWQwB.mjs';
|
|
9
|
+
import '../types-1Mr5ZDas.mjs';
|
|
10
10
|
import 'jose';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { R as RailKey, C as CompatibleClients } from '../pricing-
|
|
2
|
-
export { g as compatibleClientsByRails } from '../pricing-
|
|
3
|
-
import { C as Checkout,
|
|
4
|
-
import '../rail_spec-
|
|
1
|
+
import { R as RailKey, C as CompatibleClients } from '../pricing-DUYE2hIy.js';
|
|
2
|
+
export { g as compatibleClientsByRails } from '../pricing-DUYE2hIy.js';
|
|
3
|
+
import { C as Checkout, U as UCPServiceBinding, A as AgentScoreGatePolicy } from '../checkout-BRdpPSnc.js';
|
|
4
|
+
import '../rail_spec-C-jTQ7g6.js';
|
|
5
5
|
import '../core.js';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.js';
|
|
8
|
-
import '../x402_server-
|
|
9
|
-
import '../types-
|
|
8
|
+
import '../x402_server-hgQzWQwB.js';
|
|
9
|
+
import '../types-1Mr5ZDas.js';
|
|
10
10
|
import 'jose';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AitPayload, T as TrustLevel } from './types-1Mr5ZDas.mjs';
|
|
2
2
|
import { JWK } from 'jose';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -304,4 +304,4 @@ declare const evaluateAipParts: (parts: {
|
|
|
304
304
|
authority?: string;
|
|
305
305
|
}, opts: AipGateOptions) => Promise<AipGateEvaluation>;
|
|
306
306
|
|
|
307
|
-
export {
|
|
307
|
+
export { type AipGateOptions as A, HARD_MAX_CACHE_SECONDS as H, JWKS_WELL_KNOWN_PATH as J, type VerifiedAit as V, type VerifyRequestContext as a, buildAipErrorBody as b, AGENTSCORE_CANONICAL_ISSUER as c, AGENT_IDENTITY_HEADER as d, type AipErrorRequirements as e, type AipGateEvaluation as f, type AipGateResult as g, JwksCache as h, type JwksCacheOptions as i, type JwksLookupResult as j, type VerifyAitFailure as k, type VerifyAitOptions as l, type VerifyAitResult as m, aipErrorCode as n, aipErrorStatus as o, buildAipWeakAuthBody as p, canonicalizeIssuer as q, checkTrustRequirements as r, evaluateAipParts as s, evaluateAipRequest as t, verifyAitRequest as u, verifyAit as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AitPayload, T as TrustLevel } from './types-1Mr5ZDas.js';
|
|
2
2
|
import { JWK } from 'jose';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -304,4 +304,4 @@ declare const evaluateAipParts: (parts: {
|
|
|
304
304
|
authority?: string;
|
|
305
305
|
}, opts: AipGateOptions) => Promise<AipGateEvaluation>;
|
|
306
306
|
|
|
307
|
-
export {
|
|
307
|
+
export { type AipGateOptions as A, HARD_MAX_CACHE_SECONDS as H, JWKS_WELL_KNOWN_PATH as J, type VerifiedAit as V, type VerifyRequestContext as a, buildAipErrorBody as b, AGENTSCORE_CANONICAL_ISSUER as c, AGENT_IDENTITY_HEADER as d, type AipErrorRequirements as e, type AipGateEvaluation as f, type AipGateResult as g, JwksCache as h, type JwksCacheOptions as i, type JwksLookupResult as j, type VerifyAitFailure as k, type VerifyAitOptions as l, type VerifyAitResult as m, aipErrorCode as n, aipErrorStatus as o, buildAipWeakAuthBody as p, canonicalizeIssuer as q, checkTrustRequirements as r, evaluateAipParts as s, evaluateAipRequest as t, verifyAitRequest as u, verifyAit as v };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.mjs';
|
|
3
3
|
import { Request, Response, NextFunction } from 'express';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-1Mr5ZDas.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.js';
|
|
3
3
|
import { Request, Response, NextFunction } from 'express';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-1Mr5ZDas.js';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.js';
|
package/dist/identity/express.js
CHANGED
|
@@ -920,7 +920,7 @@ function createAgentScoreCore(options) {
|
|
|
920
920
|
} = options;
|
|
921
921
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
922
922
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
923
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
923
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
924
924
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
925
925
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
926
926
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -892,7 +892,7 @@ function createAgentScoreCore(options) {
|
|
|
892
892
|
} = options;
|
|
893
893
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
894
894
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
895
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
895
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
896
896
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
897
897
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
898
898
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.mjs';
|
|
3
3
|
import { FastifyRequest, FastifyReply, FastifyPluginAsync } from 'fastify';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-1Mr5ZDas.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.js';
|
|
3
3
|
import { FastifyRequest, FastifyReply, FastifyPluginAsync } from 'fastify';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-1Mr5ZDas.js';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.js';
|
package/dist/identity/fastify.js
CHANGED
|
@@ -921,7 +921,7 @@ function createAgentScoreCore(options) {
|
|
|
921
921
|
} = options;
|
|
922
922
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
923
923
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
924
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
924
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
925
925
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
926
926
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
927
927
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -892,7 +892,7 @@ function createAgentScoreCore(options) {
|
|
|
892
892
|
} = options;
|
|
893
893
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
894
894
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
895
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
895
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
896
896
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
897
897
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
898
898
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/hono.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.mjs';
|
|
3
3
|
import { Context, MiddlewareHandler } from 'hono';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-1Mr5ZDas.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.mjs';
|
package/dist/identity/hono.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, FailOpenInfraReason, GateQuotaInfo, SignerVerdict } from '../core.js';
|
|
3
3
|
import { Context, MiddlewareHandler } from 'hono';
|
|
4
|
-
import '../types-
|
|
4
|
+
import '../types-1Mr5ZDas.js';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import '@agent-score/sdk';
|
|
7
7
|
import '../signer-3FAit11j.js';
|
package/dist/identity/hono.js
CHANGED
|
@@ -901,7 +901,7 @@ function createAgentScoreCore(options) {
|
|
|
901
901
|
} = options;
|
|
902
902
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
903
903
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
904
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
904
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
905
905
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
906
906
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
907
907
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/hono.mjs
CHANGED
|
@@ -873,7 +873,7 @@ function createAgentScoreCore(options) {
|
|
|
873
873
|
} = options;
|
|
874
874
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
875
875
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
876
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
876
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
877
877
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
878
878
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
879
879
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createAgentScoreGate } from './web.mjs';
|
|
2
2
|
export { AipGateWebOptions, AipGuardResult, createAipGate, withAipGate, withConditionalAipGate } from './web.mjs';
|
|
3
3
|
import { AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.mjs';
|
|
4
|
-
import '../gate-
|
|
5
|
-
import '../types-
|
|
4
|
+
import '../gate-BMUMi-P0.mjs';
|
|
5
|
+
import '../types-1Mr5ZDas.mjs';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import '@agent-score/sdk';
|
|
8
8
|
import '../signer-3FAit11j.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createAgentScoreGate } from './web.js';
|
|
2
2
|
export { AipGateWebOptions, AipGuardResult, createAipGate, withAipGate, withConditionalAipGate } from './web.js';
|
|
3
3
|
import { AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.js';
|
|
4
|
-
import '../gate-
|
|
5
|
-
import '../types-
|
|
4
|
+
import '../gate-Bhbi5zvG.js';
|
|
5
|
+
import '../types-1Mr5ZDas.js';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import '@agent-score/sdk';
|
|
8
8
|
import '../signer-3FAit11j.js';
|
package/dist/identity/nextjs.js
CHANGED
|
@@ -922,7 +922,7 @@ function createAgentScoreCore(options) {
|
|
|
922
922
|
} = options;
|
|
923
923
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
924
924
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
925
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
925
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
926
926
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
927
927
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
928
928
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/nextjs.mjs
CHANGED
|
@@ -897,7 +897,7 @@ function createAgentScoreCore(options) {
|
|
|
897
897
|
} = options;
|
|
898
898
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
899
899
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
900
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
900
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
901
901
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
902
902
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
903
903
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/web.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-BMUMi-P0.mjs';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.mjs';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-1Mr5ZDas.mjs';
|
|
4
4
|
import 'jose';
|
|
5
5
|
import '@agent-score/sdk';
|
|
6
6
|
import '../signer-3FAit11j.mjs';
|
package/dist/identity/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AipGateOptions, b as buildAipErrorBody, V as VerifiedAit } from '../gate-Bhbi5zvG.js';
|
|
2
2
|
import { AgentScoreCoreOptions, AgentIdentity, DenialReason, CreateSessionOnMissing, AssessResult, SignerVerdict, FailOpenInfraReason, GateQuotaInfo } from '../core.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-1Mr5ZDas.js';
|
|
4
4
|
import 'jose';
|
|
5
5
|
import '@agent-score/sdk';
|
|
6
6
|
import '../signer-3FAit11j.js';
|
package/dist/identity/web.js
CHANGED
|
@@ -898,7 +898,7 @@ function createAgentScoreCore(options) {
|
|
|
898
898
|
} = options;
|
|
899
899
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
900
900
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
901
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
901
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
902
902
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
903
903
|
const sdk = new import_sdk.AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
904
904
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/identity/web.mjs
CHANGED
|
@@ -873,7 +873,7 @@ function createAgentScoreCore(options) {
|
|
|
873
873
|
} = options;
|
|
874
874
|
const baseUrl = stripTrailingSlashes(rawBaseUrl);
|
|
875
875
|
const agentMemoryHint = buildAgentMemoryHint(aipTrustedIssuers);
|
|
876
|
-
const defaultUa = `@agent-score/commerce@${"2.7.
|
|
876
|
+
const defaultUa = `@agent-score/commerce@${"2.7.7"}`;
|
|
877
877
|
const userAgentHeader = userAgent ? `${userAgent} (${defaultUa})` : defaultUa;
|
|
878
878
|
const sdk = new AgentScore({ apiKey, baseUrl, userAgent: userAgentHeader });
|
|
879
879
|
const sessionSdkCache = /* @__PURE__ */ new Map();
|
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { VerifyWalletSignerResult, DenialReason } from './core.mjs';
|
|
2
2
|
export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AssessResult, CreateSessionOnMissing, DenialCode, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, buildAgentMemoryHint } from './core.mjs';
|
|
3
3
|
export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, a as extractPaymentSignerFromAuth, b as extractSignerForPrecheck, r as readX402PaymentHeader } from './signer-3FAit11j.mjs';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import { a as UCPSigningKey, b as UCPProfile } from './checkout-B0jIzAEo.mjs';
|
|
5
|
+
export { c as AGENTSCORE_UCP_CAPABILITY, A as AgentScoreGatePolicy, C as Checkout, d as CheckoutContext, e as CheckoutGateConfig, f as CheckoutRailSpec, g as CheckoutRequest, h as CheckoutResult, i as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, j as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, k as PricingFn, l as PricingResult, R as RecipientsFn, m as ReferenceIdFn, n as RunGateFn, S as SettleOutcome, o as UCPCapabilityBinding, p as UCPPaymentHandlerBinding, q as UCPProfileBody, U as UCPServiceBinding, r as buildAipTrustedIssuers, s as buildUCPProfile, t as getIdentityStatus, u as makeMppxComposeHook, v as mppPaymentHandler, w as pricingResult, x as stripeSptPaymentHandler, y as validationEnvelope, z as validationResponseExpress, B as validationResponseFastify, E as validationResponseHono, F as validationResponseNextjs, H as validationResponseWeb, J as x402PaymentHandler } from './checkout-B0jIzAEo.mjs';
|
|
6
6
|
export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed, validateShippingAgainstPolicy } from './identity/policy.mjs';
|
|
7
|
-
import { H as HeadersLike } from './network_kind-
|
|
8
|
-
export { M as MalformedPaymentCredential,
|
|
9
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
10
|
-
export {
|
|
7
|
+
import { H as HeadersLike } from './network_kind-DmHbQbOb.mjs';
|
|
8
|
+
export { M as MalformedPaymentCredential, b as buildDefaultCheckoutRails, a as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, c as hasPaymentHeader, d as hasX402Header, i as isEvmNetwork, e as isSolanaNetwork, l as loadSolanaFeePayer, m as malformedPaymentCredential } from './network_kind-DmHbQbOb.mjs';
|
|
9
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-C-jTQ7g6.mjs';
|
|
10
|
+
export { a as TempoSessionRailSpec } from './rail_spec-C-jTQ7g6.mjs';
|
|
11
11
|
import { Context } from 'hono';
|
|
12
|
-
import {
|
|
13
|
-
export {
|
|
12
|
+
import { a as VerifyRequestContext } from './gate-BMUMi-P0.mjs';
|
|
13
|
+
export { c as AGENTSCORE_CANONICAL_ISSUER, d as AGENT_IDENTITY_HEADER, e as AipErrorRequirements, f as AipGateEvaluation, A as AipGateOptions, g as AipGateResult, H as HARD_MAX_CACHE_SECONDS, J as JWKS_WELL_KNOWN_PATH, h as JwksCache, i as JwksCacheOptions, j as JwksLookupResult, V as VerifiedAit, k as VerifyAitFailure, l as VerifyAitOptions, m as VerifyAitResult, n as aipErrorCode, o as aipErrorStatus, b as buildAipErrorBody, p as buildAipWeakAuthBody, q as canonicalizeIssuer, r as checkTrustRequirements, s as evaluateAipParts, t as evaluateAipRequest, v as verifyAit, u as verifyAitRequest } from './gate-BMUMi-P0.mjs';
|
|
14
14
|
import { JWK } from 'jose';
|
|
15
|
-
export {
|
|
15
|
+
export { a as AitHeader, A as AitPayload, b as AitValidationResult, c as AmrValue, I as IdentityClaim, d as IntentClaim, T as TrustLevel, i as isAitShape, v as validateAitPayload } from './types-1Mr5ZDas.mjs';
|
|
16
16
|
import '@agent-score/sdk';
|
|
17
|
-
import './pricing-
|
|
18
|
-
import './x402_server-
|
|
17
|
+
import './pricing-Wqbq6xIR.mjs';
|
|
18
|
+
import './x402_server-hgQzWQwB.mjs';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Universal denial helpers shared across every adapter.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { VerifyWalletSignerResult, DenialReason } from './core.js';
|
|
2
2
|
export { AccountVerification, AgentIdentity, AgentMemoryHint, AgentScoreCore, AssessResult, CreateSessionOnMissing, DenialCode, EvaluateOutcome, OperatorVerification, PolicyCheck, PolicyResult, SignerVerdict, buildAgentMemoryHint } from './core.js';
|
|
3
3
|
export { P as PaymentSigner, S as SignerNetwork, e as extractPaymentSigner, a as extractPaymentSignerFromAuth, b as extractSignerForPrecheck, r as readX402PaymentHeader } from './signer-3FAit11j.js';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import { a as UCPSigningKey, b as UCPProfile } from './checkout-BRdpPSnc.js';
|
|
5
|
+
export { c as AGENTSCORE_UCP_CAPABILITY, A as AgentScoreGatePolicy, C as Checkout, d as CheckoutContext, e as CheckoutGateConfig, f as CheckoutRailSpec, g as CheckoutRequest, h as CheckoutResult, i as ComposeMppxFn, D as DiscoveryProbeConfig, G as GateDenial, I as IsCachedAddressFn, M as MountUcpRoutesOptions, j as MppxComposeOutcome, O as OnSettledFn, P as PreValidateFn, k as PricingFn, l as PricingResult, R as RecipientsFn, m as ReferenceIdFn, n as RunGateFn, S as SettleOutcome, o as UCPCapabilityBinding, p as UCPPaymentHandlerBinding, q as UCPProfileBody, U as UCPServiceBinding, r as buildAipTrustedIssuers, s as buildUCPProfile, t as getIdentityStatus, u as makeMppxComposeHook, v as mppPaymentHandler, w as pricingResult, x as stripeSptPaymentHandler, y as validationEnvelope, z as validationResponseExpress, B as validationResponseFastify, E as validationResponseHono, F as validationResponseNextjs, H as validationResponseWeb, J as x402PaymentHandler } from './checkout-BRdpPSnc.js';
|
|
6
6
|
export { EnforcementMode, GateResult, IdentityStatus, PolicyBlock, buildGateFromPolicy, runGateWithEnforcement, shippingCountryAllowed, shippingStateAllowed, validateShippingAgainstPolicy } from './identity/policy.js';
|
|
7
|
-
import { H as HeadersLike } from './network_kind-
|
|
8
|
-
export { M as MalformedPaymentCredential,
|
|
9
|
-
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-
|
|
10
|
-
export {
|
|
7
|
+
import { H as HeadersLike } from './network_kind-C3NA2wX2.js';
|
|
8
|
+
export { M as MalformedPaymentCredential, b as buildDefaultCheckoutRails, a as buildMppxComposeRails, f as formatUsdCents, h as hasMppxHeader, c as hasPaymentHeader, d as hasX402Header, i as isEvmNetwork, e as isSolanaNetwork, l as loadSolanaFeePayer, m as malformedPaymentCredential } from './network_kind-C3NA2wX2.js';
|
|
9
|
+
import { T as TempoRailSpec, X as X402BaseRailSpec, S as SolanaMppRailSpec, b as StripeRailSpec } from './rail_spec-C-jTQ7g6.js';
|
|
10
|
+
export { a as TempoSessionRailSpec } from './rail_spec-C-jTQ7g6.js';
|
|
11
11
|
import { Context } from 'hono';
|
|
12
|
-
import {
|
|
13
|
-
export {
|
|
12
|
+
import { a as VerifyRequestContext } from './gate-Bhbi5zvG.js';
|
|
13
|
+
export { c as AGENTSCORE_CANONICAL_ISSUER, d as AGENT_IDENTITY_HEADER, e as AipErrorRequirements, f as AipGateEvaluation, A as AipGateOptions, g as AipGateResult, H as HARD_MAX_CACHE_SECONDS, J as JWKS_WELL_KNOWN_PATH, h as JwksCache, i as JwksCacheOptions, j as JwksLookupResult, V as VerifiedAit, k as VerifyAitFailure, l as VerifyAitOptions, m as VerifyAitResult, n as aipErrorCode, o as aipErrorStatus, b as buildAipErrorBody, p as buildAipWeakAuthBody, q as canonicalizeIssuer, r as checkTrustRequirements, s as evaluateAipParts, t as evaluateAipRequest, v as verifyAit, u as verifyAitRequest } from './gate-Bhbi5zvG.js';
|
|
14
14
|
import { JWK } from 'jose';
|
|
15
|
-
export {
|
|
15
|
+
export { a as AitHeader, A as AitPayload, b as AitValidationResult, c as AmrValue, I as IdentityClaim, d as IntentClaim, T as TrustLevel, i as isAitShape, v as validateAitPayload } from './types-1Mr5ZDas.js';
|
|
16
16
|
import '@agent-score/sdk';
|
|
17
|
-
import './pricing-
|
|
18
|
-
import './x402_server-
|
|
17
|
+
import './pricing-DUYE2hIy.js';
|
|
18
|
+
import './x402_server-hgQzWQwB.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Universal denial helpers shared across every adapter.
|