@astrasyncai/verification-gateway 4.5.0 → 4.5.1
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/adapters/express.js +1 -1
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +1 -1
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +3 -394
- package/dist/adapters/mcp.d.ts +3 -394
- package/dist/adapters/mcp.js +1 -1
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +1 -1
- package/dist/adapters/mcp.mjs.map +1 -1
- package/dist/adapters/nextjs.js +1 -1
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +1 -1
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.js +1 -1
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +1 -1
- package/dist/adapters/sdk.mjs.map +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/agent/index.mjs.map +1 -1
- package/dist/bin/astrasync-claude-hook.js +1 -1
- package/dist/bin/astrasync-codex-hook.js +1 -1
- package/dist/bin/astrasync-guard.js +1 -1
- package/dist/bin/astrasync.js +2 -1
- package/dist/browser/background.js +1 -1
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +1 -1
- package/dist/browser/background.mjs.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/index.mjs.map +1 -1
- package/dist/codex/index.js +1 -1
- package/dist/codex/index.js.map +1 -1
- package/dist/codex/index.mjs +1 -1
- package/dist/codex/index.mjs.map +1 -1
- package/dist/cursor/extension.js +1 -1
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +1 -1
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/edge-config.js +1 -1
- package/dist/edge-config.js.map +1 -1
- package/dist/edge-config.mjs +1 -1
- package/dist/edge-config.mjs.map +1 -1
- package/dist/edge-core/index.js +1 -1
- package/dist/edge-core/index.js.map +1 -1
- package/dist/edge-core/index.mjs +1 -1
- package/dist/edge-core/index.mjs.map +1 -1
- package/dist/gateway/gateway.js +1 -1
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +1 -1
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/dist/mcp--DgKOwfu.d.ts +396 -0
- package/dist/mcp-BgBJu4Jl.d.mts +396 -0
- package/dist/registration/index.js +2 -1
- package/dist/registration/index.js.map +1 -1
- package/dist/registration/index.mjs +2 -1
- package/dist/registration/index.mjs.map +1 -1
- package/dist/transport/index.js +1 -1
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/index.mjs +1 -1
- package/dist/transport/index.mjs.map +1 -1
- package/dist/verify.js +1 -1
- package/dist/verify.js.map +1 -1
- package/dist/verify.mjs +1 -1
- package/dist/verify.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ export { VerifyOptions, clearCache, extractCredentials, fetchRoutes, hasCredenti
|
|
|
5
5
|
export { e as express } from './express-CR6F3njD.mjs';
|
|
6
6
|
export { n as nextjs } from './nextjs-DlX6xwbU.mjs';
|
|
7
7
|
export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-Cub7lK-T.mjs';
|
|
8
|
-
export { McpMiddlewareOptions, ToolGateConfig, createMcpMiddleware } from './
|
|
8
|
+
export { M as MCP_VERIFIED_HOP_HEADER, a as MCP_VERIFIED_HOP_MAX_AGE_MS, b as McpMiddlewareOptions, T as ToolGateConfig, V as VerifiedHopMarker, c as createMcpMiddleware, i as isVerifiedHopValidFor, e as parseVerifiedHop, s as serializeVerifiedHop } from './mcp-BgBJu4Jl.mjs';
|
|
9
9
|
export { AgentProtocol, AgentRecord, AstraSync, AstraSyncConfig, AstraSyncError, AuthenticationError, BuildGuidanceParams, FrameworkConfig, GuidanceEnvelope, HealthResponse, KYDRequiredError, ModelConfig, PDLSSConfig, PDLSSDuration, PDLSSLimits, PDLSSPurpose, PDLSSScope, PDLSSSelfInstantiation, PendingRegistrationResponse, PollRegistrationResult, RegisterOptions, RegisterResult, RegistrationDeniedError, RegistrationExpiredError, RegistrationResponse, RegistrationTimeoutError, VerifyResponse, WaitForApprovalOptions, buildGuidance } from './registration/index.mjs';
|
|
10
10
|
export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-CwAh7Tln.mjs';
|
|
11
11
|
export { DEFAULT_EDGE_CONFIG, EdgeConfig, EdgeMode, EdgePathRule, EdgeVerificationDepth, FetchEdgeConfigResult, FetchEdgeConfigSuccess, _resetEdgeConfigCache, degradeToObserve, fetchEdgeConfig, getEdgeConfig, isEdgeConfig, matchEdgePathRule } from './edge-config.mjs';
|
|
@@ -173,7 +173,7 @@ declare function detectRuntime(userAgent: string | undefined | null): string | u
|
|
|
173
173
|
* silently (never throwing), so this is a no-op there — which is correct:
|
|
174
174
|
* in a browser the page's real UA is the honest identity.
|
|
175
175
|
*/
|
|
176
|
-
declare const SDK_USER_AGENT = "astrasync-sdk/4.5.
|
|
176
|
+
declare const SDK_USER_AGENT = "astrasync-sdk/4.5.1";
|
|
177
177
|
declare const sdkFetch: typeof fetch;
|
|
178
178
|
|
|
179
179
|
/**
|
|
@@ -194,6 +194,6 @@ declare const sdkFetch: typeof fetch;
|
|
|
194
194
|
* is fine — bumping both in the release-ceremony commit keeps them
|
|
195
195
|
* lockstep.
|
|
196
196
|
*/
|
|
197
|
-
declare const SDK_VERSION = "4.5.
|
|
197
|
+
declare const SDK_VERSION = "4.5.1";
|
|
198
198
|
|
|
199
199
|
export { EnhancedVerificationResult, GatewayConfig, RUNTIME_SIGNATURES, type RuntimeSignature, SDK_USER_AGENT, type SettlementDecision, type SettlementRequest, StepUpApprovalInfo, StepUpApprovalStatus, StepUpOutcome, SDK_VERSION as VERSION, type WellKnownAgenticCommerce, authorizeSettlement, awaitStepUpApproval, detectRuntime, getCachedWellKnownUrls, getWellKnownUrls, pollStepUpStatus, prefetchWellKnown, sdkFetch };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { VerifyOptions, clearCache, extractCredentials, fetchRoutes, hasCredenti
|
|
|
5
5
|
export { e as express } from './express-DaqL11tx.js';
|
|
6
6
|
export { n as nextjs } from './nextjs-DL6uE1ye.js';
|
|
7
7
|
export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-B5Ts1WtM.js';
|
|
8
|
-
export { McpMiddlewareOptions, ToolGateConfig, createMcpMiddleware } from './
|
|
8
|
+
export { M as MCP_VERIFIED_HOP_HEADER, a as MCP_VERIFIED_HOP_MAX_AGE_MS, b as McpMiddlewareOptions, T as ToolGateConfig, V as VerifiedHopMarker, c as createMcpMiddleware, i as isVerifiedHopValidFor, e as parseVerifiedHop, s as serializeVerifiedHop } from './mcp--DgKOwfu.js';
|
|
9
9
|
export { AgentProtocol, AgentRecord, AstraSync, AstraSyncConfig, AstraSyncError, AuthenticationError, BuildGuidanceParams, FrameworkConfig, GuidanceEnvelope, HealthResponse, KYDRequiredError, ModelConfig, PDLSSConfig, PDLSSDuration, PDLSSLimits, PDLSSPurpose, PDLSSScope, PDLSSSelfInstantiation, PendingRegistrationResponse, PollRegistrationResult, RegisterOptions, RegisterResult, RegistrationDeniedError, RegistrationExpiredError, RegistrationResponse, RegistrationTimeoutError, VerifyResponse, WaitForApprovalOptions, buildGuidance } from './registration/index.js';
|
|
10
10
|
export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-BfIxCYIZ.js';
|
|
11
11
|
export { DEFAULT_EDGE_CONFIG, EdgeConfig, EdgeMode, EdgePathRule, EdgeVerificationDepth, FetchEdgeConfigResult, FetchEdgeConfigSuccess, _resetEdgeConfigCache, degradeToObserve, fetchEdgeConfig, getEdgeConfig, isEdgeConfig, matchEdgePathRule } from './edge-config.js';
|
|
@@ -173,7 +173,7 @@ declare function detectRuntime(userAgent: string | undefined | null): string | u
|
|
|
173
173
|
* silently (never throwing), so this is a no-op there — which is correct:
|
|
174
174
|
* in a browser the page's real UA is the honest identity.
|
|
175
175
|
*/
|
|
176
|
-
declare const SDK_USER_AGENT = "astrasync-sdk/4.5.
|
|
176
|
+
declare const SDK_USER_AGENT = "astrasync-sdk/4.5.1";
|
|
177
177
|
declare const sdkFetch: typeof fetch;
|
|
178
178
|
|
|
179
179
|
/**
|
|
@@ -194,6 +194,6 @@ declare const sdkFetch: typeof fetch;
|
|
|
194
194
|
* is fine — bumping both in the release-ceremony commit keeps them
|
|
195
195
|
* lockstep.
|
|
196
196
|
*/
|
|
197
|
-
declare const SDK_VERSION = "4.5.
|
|
197
|
+
declare const SDK_VERSION = "4.5.1";
|
|
198
198
|
|
|
199
199
|
export { EnhancedVerificationResult, GatewayConfig, RUNTIME_SIGNATURES, type RuntimeSignature, SDK_USER_AGENT, type SettlementDecision, type SettlementRequest, StepUpApprovalInfo, StepUpApprovalStatus, StepUpOutcome, SDK_VERSION as VERSION, type WellKnownAgenticCommerce, authorizeSettlement, awaitStepUpApproval, detectRuntime, getCachedWellKnownUrls, getWellKnownUrls, pollStepUpStatus, prefetchWellKnown, sdkFetch };
|
package/dist/index.js
CHANGED
|
@@ -44,6 +44,8 @@ __export(src_exports, {
|
|
|
44
44
|
MAX_HEADERS: () => MAX_HEADERS,
|
|
45
45
|
MAX_HEADER_VALUE_BYTES: () => MAX_HEADER_VALUE_BYTES,
|
|
46
46
|
MAX_TOTAL_BYTES: () => MAX_TOTAL_BYTES,
|
|
47
|
+
MCP_VERIFIED_HOP_HEADER: () => MCP_VERIFIED_HOP_HEADER,
|
|
48
|
+
MCP_VERIFIED_HOP_MAX_AGE_MS: () => MCP_VERIFIED_HOP_MAX_AGE_MS,
|
|
47
49
|
PLATFORM_AGENT_SIGNATURES: () => PLATFORM_AGENT_SIGNATURES,
|
|
48
50
|
RUNTIME_SIGNATURES: () => RUNTIME_SIGNATURES,
|
|
49
51
|
RegistrationDeniedError: () => RegistrationDeniedError,
|
|
@@ -81,9 +83,11 @@ __export(src_exports, {
|
|
|
81
83
|
hasCredentials: () => hasCredentials,
|
|
82
84
|
hasMinimumAccess: () => hasMinimumAccess,
|
|
83
85
|
isEdgeConfig: () => isEdgeConfig,
|
|
86
|
+
isVerifiedHopValidFor: () => isVerifiedHopValidFor,
|
|
84
87
|
matchEdgePathRule: () => matchEdgePathRule,
|
|
85
88
|
matchPlatformSignature: () => matchPlatformSignature,
|
|
86
89
|
nextjs: () => nextjs_exports,
|
|
90
|
+
parseVerifiedHop: () => parseVerifiedHop,
|
|
87
91
|
pollStepUpStatus: () => pollStepUpStatus,
|
|
88
92
|
prefetchWellKnown: () => prefetchWellKnown,
|
|
89
93
|
quickVerify: () => quickVerify,
|
|
@@ -93,6 +97,7 @@ __export(src_exports, {
|
|
|
93
97
|
sanitizeHeaders: () => sanitizeHeaders,
|
|
94
98
|
sdk: () => sdk_exports,
|
|
95
99
|
sdkFetch: () => sdkFetch,
|
|
100
|
+
serializeVerifiedHop: () => serializeVerifiedHop,
|
|
96
101
|
setMcpMeta: () => setMcpMeta,
|
|
97
102
|
transport: () => transport_exports,
|
|
98
103
|
verify: () => verify
|
|
@@ -221,7 +226,7 @@ function getCapabilities(accessLevel) {
|
|
|
221
226
|
}
|
|
222
227
|
|
|
223
228
|
// src/version.ts
|
|
224
|
-
var SDK_VERSION = "4.5.
|
|
229
|
+
var SDK_VERSION = "4.5.1";
|
|
225
230
|
|
|
226
231
|
// src/http.ts
|
|
227
232
|
var SDK_USER_AGENT = `astrasync-sdk/${SDK_VERSION}`;
|
|
@@ -6283,6 +6288,7 @@ function buildGuidance(params) {
|
|
|
6283
6288
|
steps: [
|
|
6284
6289
|
"Credentialed path (recommended): have your human mint an agent-scoped API key at Settings \u2192 API Keys, then re-call register_agent with apiKey set. An agent holding its own scoped kya_ key is fine and intended.",
|
|
6285
6290
|
"No-credentials path: call request_registration({ name, ownerEmail, ... }) with the human owner's email \u2014 the only bootstrap credential. No API key is involved.",
|
|
6291
|
+
"Include as much metadata as you can in the registration \u2014 especially model ({ modelName, modelProvider }) and framework ({ frameworkName, frameworkVersion }). Declared platform/model metadata directly improves your trust score and attributes your traffic correctly.",
|
|
6286
6292
|
"The owner approves via an emailed link (first time, they create an account and complete a quick verification).",
|
|
6287
6293
|
"Use poll_registration({ requestId }) once the owner confirms approval to retrieve the astraId.",
|
|
6288
6294
|
"Never transmit a password or private key over the MCP wire \u2014 those are never required."
|
|
@@ -6669,6 +6675,8 @@ function detectRuntime(userAgent) {
|
|
|
6669
6675
|
MAX_HEADERS,
|
|
6670
6676
|
MAX_HEADER_VALUE_BYTES,
|
|
6671
6677
|
MAX_TOTAL_BYTES,
|
|
6678
|
+
MCP_VERIFIED_HOP_HEADER,
|
|
6679
|
+
MCP_VERIFIED_HOP_MAX_AGE_MS,
|
|
6672
6680
|
PLATFORM_AGENT_SIGNATURES,
|
|
6673
6681
|
RUNTIME_SIGNATURES,
|
|
6674
6682
|
RegistrationDeniedError,
|
|
@@ -6706,9 +6714,11 @@ function detectRuntime(userAgent) {
|
|
|
6706
6714
|
hasCredentials,
|
|
6707
6715
|
hasMinimumAccess,
|
|
6708
6716
|
isEdgeConfig,
|
|
6717
|
+
isVerifiedHopValidFor,
|
|
6709
6718
|
matchEdgePathRule,
|
|
6710
6719
|
matchPlatformSignature,
|
|
6711
6720
|
nextjs,
|
|
6721
|
+
parseVerifiedHop,
|
|
6712
6722
|
pollStepUpStatus,
|
|
6713
6723
|
prefetchWellKnown,
|
|
6714
6724
|
quickVerify,
|
|
@@ -6718,6 +6728,7 @@ function detectRuntime(userAgent) {
|
|
|
6718
6728
|
sanitizeHeaders,
|
|
6719
6729
|
sdk,
|
|
6720
6730
|
sdkFetch,
|
|
6731
|
+
serializeVerifiedHop,
|
|
6721
6732
|
setMcpMeta,
|
|
6722
6733
|
transport,
|
|
6723
6734
|
verify
|