@astrasyncai/verification-gateway 5.8.0 → 5.9.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 (106) hide show
  1. package/README.md +1 -1
  2. package/dist/adapters/express.d.mts +1 -1
  3. package/dist/adapters/express.d.ts +1 -1
  4. package/dist/adapters/express.js +38 -7
  5. package/dist/adapters/express.js.map +1 -1
  6. package/dist/adapters/express.mjs +38 -7
  7. package/dist/adapters/express.mjs.map +1 -1
  8. package/dist/adapters/mcp.d.mts +1 -1
  9. package/dist/adapters/mcp.d.ts +1 -1
  10. package/dist/adapters/mcp.js +2 -2
  11. package/dist/adapters/mcp.js.map +1 -1
  12. package/dist/adapters/mcp.mjs +2 -2
  13. package/dist/adapters/mcp.mjs.map +1 -1
  14. package/dist/adapters/nextjs.d.mts +1 -1
  15. package/dist/adapters/nextjs.d.ts +1 -1
  16. package/dist/adapters/nextjs.js +38 -7
  17. package/dist/adapters/nextjs.js.map +1 -1
  18. package/dist/adapters/nextjs.mjs +38 -7
  19. package/dist/adapters/nextjs.mjs.map +1 -1
  20. package/dist/adapters/sdk.d.mts +1 -1
  21. package/dist/adapters/sdk.d.ts +1 -1
  22. package/dist/adapters/sdk.js +2 -2
  23. package/dist/adapters/sdk.js.map +1 -1
  24. package/dist/adapters/sdk.mjs +2 -2
  25. package/dist/adapters/sdk.mjs.map +1 -1
  26. package/dist/agent/index.js +1 -1
  27. package/dist/agent/index.js.map +1 -1
  28. package/dist/agent/index.mjs +1 -1
  29. package/dist/agent/index.mjs.map +1 -1
  30. package/dist/bin/astrasync-claude-hook.js +14 -6
  31. package/dist/bin/astrasync-codex-hook.js +14 -6
  32. package/dist/bin/astrasync-guard.js +14 -6
  33. package/dist/bin/astrasync.js +15 -6
  34. package/dist/browser/background.js +14 -6
  35. package/dist/browser/background.js.map +1 -1
  36. package/dist/browser/background.mjs +14 -6
  37. package/dist/browser/background.mjs.map +1 -1
  38. package/dist/cli/index.js +12 -4
  39. package/dist/cli/index.js.map +1 -1
  40. package/dist/cli/index.mjs +12 -4
  41. package/dist/cli/index.mjs.map +1 -1
  42. package/dist/codex/index.js +14 -6
  43. package/dist/codex/index.js.map +1 -1
  44. package/dist/codex/index.mjs +14 -6
  45. package/dist/codex/index.mjs.map +1 -1
  46. package/dist/cursor/extension.js +14 -6
  47. package/dist/cursor/extension.js.map +1 -1
  48. package/dist/cursor/extension.mjs +14 -6
  49. package/dist/cursor/extension.mjs.map +1 -1
  50. package/dist/edge-config.d.mts +24 -1
  51. package/dist/edge-config.d.ts +24 -1
  52. package/dist/edge-config.js +13 -5
  53. package/dist/edge-config.js.map +1 -1
  54. package/dist/edge-config.mjs +13 -5
  55. package/dist/edge-config.mjs.map +1 -1
  56. package/dist/edge-core/index.d.mts +14 -6
  57. package/dist/edge-core/index.d.ts +14 -6
  58. package/dist/edge-core/index.js +110 -16
  59. package/dist/edge-core/index.js.map +1 -1
  60. package/dist/edge-core/index.mjs +110 -16
  61. package/dist/edge-core/index.mjs.map +1 -1
  62. package/dist/gateway/gateway.js +14 -6
  63. package/dist/gateway/gateway.js.map +1 -1
  64. package/dist/gateway/gateway.mjs +14 -6
  65. package/dist/gateway/gateway.mjs.map +1 -1
  66. package/dist/git-trigger/git-hooks.d.mts +1 -1
  67. package/dist/git-trigger/git-hooks.d.ts +1 -1
  68. package/dist/index.d.mts +73 -6
  69. package/dist/index.d.ts +73 -6
  70. package/dist/index.js +48 -7
  71. package/dist/index.js.map +1 -1
  72. package/dist/index.mjs +46 -7
  73. package/dist/index.mjs.map +1 -1
  74. package/dist/metadata-capture.d.mts +18 -1
  75. package/dist/metadata-capture.d.ts +18 -1
  76. package/dist/metadata-capture.js +10 -0
  77. package/dist/metadata-capture.js.map +1 -1
  78. package/dist/metadata-capture.mjs +8 -0
  79. package/dist/metadata-capture.mjs.map +1 -1
  80. package/dist/platform-signatures.d.mts +1 -1
  81. package/dist/platform-signatures.d.ts +1 -1
  82. package/dist/platform-signatures.js +24 -1
  83. package/dist/platform-signatures.js.map +1 -1
  84. package/dist/platform-signatures.mjs +24 -1
  85. package/dist/platform-signatures.mjs.map +1 -1
  86. package/dist/registration/index.js +1 -1
  87. package/dist/registration/index.js.map +1 -1
  88. package/dist/registration/index.mjs +1 -1
  89. package/dist/registration/index.mjs.map +1 -1
  90. package/dist/transport/index.js +1 -1
  91. package/dist/transport/index.js.map +1 -1
  92. package/dist/transport/index.mjs +1 -1
  93. package/dist/transport/index.mjs.map +1 -1
  94. package/dist/{types-BK_pRNSs.d.mts → types-CTmUpNpS.d.mts} +25 -2
  95. package/dist/{types-BK_pRNSs.d.ts → types-CTmUpNpS.d.ts} +25 -2
  96. package/dist/{types-CwY5IY-0.d.ts → types-CtFXmDzm.d.ts} +17 -2
  97. package/dist/{types-BCmHFdkJ.d.mts → types-DQrn_kei.d.mts} +17 -2
  98. package/dist/ui/index.d.mts +1 -1
  99. package/dist/ui/index.d.ts +1 -1
  100. package/dist/verify.d.mts +13 -1
  101. package/dist/verify.d.ts +13 -1
  102. package/dist/verify.js +2 -2
  103. package/dist/verify.js.map +1 -1
  104. package/dist/verify.mjs +2 -2
  105. package/dist/verify.mjs.map +1 -1
  106. package/package.json +3 -3
@@ -42,6 +42,14 @@ interface ObservedMetadata {
42
42
  * by the edge path, which sees the raw query string.
43
43
  */
44
44
  queryKeys?: string[];
45
+ /**
46
+ * Query-string VALUES for parameter names the endpoint owner explicitly
47
+ * allow-listed (`EdgeConfig.queryValueAllowlist`, seeded `utm_*` — VI
48
+ * uplift Part 4). The default remains NO value capture; this exists so
49
+ * campaign attribution (utm_source/medium/campaign) can be reported
50
+ * without widening the privacy stance. Bounded 16 entries × 256 chars.
51
+ */
52
+ queryParams?: Record<string, string>;
45
53
  /**
46
54
  * Version of the capture semantics this object was produced under — see
47
55
  * {@link CAPTURE_SCHEMA_VERSION}. Optional for backward compatibility with
@@ -215,8 +223,8 @@ interface VerifiedAgent {
215
223
  trustScore: number;
216
224
  /** Trust level tier */
217
225
  trustLevel: TrustLevel;
218
- /** Whether agent is blockchain-verified */
219
- blockchainVerified: boolean;
226
+ /** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
227
+ blockchainAnchored: boolean;
220
228
  /** Agent status */
221
229
  status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
222
230
  }
@@ -589,6 +597,21 @@ interface CallerMetadata {
589
597
  forwardedFor?: string;
590
598
  /** Published agent card URL, if the agent advertised one (future: from agent headers). */
591
599
  agentCardUrl?: string;
600
+ /**
601
+ * Transport marker for the hop that relayed this call (e.g.
602
+ * `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
603
+ * userAgent slot). Attribution only — never the caller's UA and never a
604
+ * trust signal; kept outside the self-traffic filter so relayed buyer
605
+ * traffic stays merchant-visible.
606
+ */
607
+ via?: string;
608
+ /**
609
+ * Self-declared platform from the `X-Astra-Source` header (VI uplift
610
+ * Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
611
+ * surfaces as the distinct "declared · unverified" evidence class, never
612
+ * as fingerprint/verified evidence, and never enters an access decision.
613
+ */
614
+ declaredSource?: string;
592
615
  /**
593
616
  * The full sanitised view of the agent's inbound request headers + connection
594
617
  * signals (maximal metadata capture: every signal legitimately visible on
@@ -42,6 +42,14 @@ interface ObservedMetadata {
42
42
  * by the edge path, which sees the raw query string.
43
43
  */
44
44
  queryKeys?: string[];
45
+ /**
46
+ * Query-string VALUES for parameter names the endpoint owner explicitly
47
+ * allow-listed (`EdgeConfig.queryValueAllowlist`, seeded `utm_*` — VI
48
+ * uplift Part 4). The default remains NO value capture; this exists so
49
+ * campaign attribution (utm_source/medium/campaign) can be reported
50
+ * without widening the privacy stance. Bounded 16 entries × 256 chars.
51
+ */
52
+ queryParams?: Record<string, string>;
45
53
  /**
46
54
  * Version of the capture semantics this object was produced under — see
47
55
  * {@link CAPTURE_SCHEMA_VERSION}. Optional for backward compatibility with
@@ -215,8 +223,8 @@ interface VerifiedAgent {
215
223
  trustScore: number;
216
224
  /** Trust level tier */
217
225
  trustLevel: TrustLevel;
218
- /** Whether agent is blockchain-verified */
219
- blockchainVerified: boolean;
226
+ /** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
227
+ blockchainAnchored: boolean;
220
228
  /** Agent status */
221
229
  status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
222
230
  }
@@ -589,6 +597,21 @@ interface CallerMetadata {
589
597
  forwardedFor?: string;
590
598
  /** Published agent card URL, if the agent advertised one (future: from agent headers). */
591
599
  agentCardUrl?: string;
600
+ /**
601
+ * Transport marker for the hop that relayed this call (e.g.
602
+ * `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
603
+ * userAgent slot). Attribution only — never the caller's UA and never a
604
+ * trust signal; kept outside the self-traffic filter so relayed buyer
605
+ * traffic stays merchant-visible.
606
+ */
607
+ via?: string;
608
+ /**
609
+ * Self-declared platform from the `X-Astra-Source` header (VI uplift
610
+ * Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
611
+ * surfaces as the distinct "declared · unverified" evidence class, never
612
+ * as fingerprint/verified evidence, and never enters an access decision.
613
+ */
614
+ declaredSource?: string;
592
615
  /**
593
616
  * The full sanitised view of the agent's inbound request headers + connection
594
617
  * signals (maximal metadata capture: every signal legitimately visible on
@@ -165,8 +165,8 @@ interface VerifiedAgent {
165
165
  trustScore: number;
166
166
  /** Trust level tier */
167
167
  trustLevel: TrustLevel;
168
- /** Whether agent is blockchain-verified */
169
- blockchainVerified: boolean;
168
+ /** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
169
+ blockchainAnchored: boolean;
170
170
  /** Agent status */
171
171
  status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
172
172
  }
@@ -539,6 +539,21 @@ interface CallerMetadata {
539
539
  forwardedFor?: string;
540
540
  /** Published agent card URL, if the agent advertised one (future: from agent headers). */
541
541
  agentCardUrl?: string;
542
+ /**
543
+ * Transport marker for the hop that relayed this call (e.g.
544
+ * `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
545
+ * userAgent slot). Attribution only — never the caller's UA and never a
546
+ * trust signal; kept outside the self-traffic filter so relayed buyer
547
+ * traffic stays merchant-visible.
548
+ */
549
+ via?: string;
550
+ /**
551
+ * Self-declared platform from the `X-Astra-Source` header (VI uplift
552
+ * Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
553
+ * surfaces as the distinct "declared · unverified" evidence class, never
554
+ * as fingerprint/verified evidence, and never enters an access decision.
555
+ */
556
+ declaredSource?: string;
542
557
  /**
543
558
  * The full sanitised view of the agent's inbound request headers + connection
544
559
  * signals (maximal metadata capture: every signal legitimately visible on
@@ -165,8 +165,8 @@ interface VerifiedAgent {
165
165
  trustScore: number;
166
166
  /** Trust level tier */
167
167
  trustLevel: TrustLevel;
168
- /** Whether agent is blockchain-verified */
169
- blockchainVerified: boolean;
168
+ /** Whether the agent's identity record is anchored on-chain (5.9.0: was `blockchainVerified`) */
169
+ blockchainAnchored: boolean;
170
170
  /** Agent status */
171
171
  status: 'active' | 'inactive' | 'suspended' | 'migrating' | 'terminated' | 'retired';
172
172
  }
@@ -539,6 +539,21 @@ interface CallerMetadata {
539
539
  forwardedFor?: string;
540
540
  /** Published agent card URL, if the agent advertised one (future: from agent headers). */
541
541
  agentCardUrl?: string;
542
+ /**
543
+ * Transport marker for the hop that relayed this call (e.g.
544
+ * `mcp-bridge/<version>`, or an `astrasync-sdk/<v>` UA demoted out of the
545
+ * userAgent slot). Attribution only — never the caller's UA and never a
546
+ * trust signal; kept outside the self-traffic filter so relayed buyer
547
+ * traffic stays merchant-visible.
548
+ */
549
+ via?: string;
550
+ /**
551
+ * Self-declared platform from the `X-Astra-Source` header (VI uplift
552
+ * Part 2), normalised via `normalizeDeclaredSource`. Spoofable by design —
553
+ * surfaces as the distinct "declared · unverified" evidence class, never
554
+ * as fingerprint/verified evidence, and never enters an access decision.
555
+ */
556
+ declaredSource?: string;
542
557
  /**
543
558
  * The full sanitised view of the agent's inbound request headers + connection
544
559
  * signals (maximal metadata capture: every signal legitimately visible on
@@ -1,4 +1,4 @@
1
- import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-BK_pRNSs.mjs';
1
+ import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-CTmUpNpS.mjs';
2
2
 
3
3
  /**
4
4
  * AstraSync Verification Interstitial Component
@@ -1,4 +1,4 @@
1
- import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-BK_pRNSs.js';
1
+ import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-CTmUpNpS.js';
2
2
 
3
3
  /**
4
4
  * AstraSync Verification Interstitial Component
package/dist/verify.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-BCmHFdkJ.mjs';
1
+ import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-DQrn_kei.mjs';
2
2
  import { ObservedMetadata } from './metadata-capture.mjs';
3
3
 
4
4
  /**
@@ -112,6 +112,18 @@ declare function reportUnregisteredAttempt(config: GatewayConfig, data: {
112
112
  userAgent?: string;
113
113
  requestPath?: string;
114
114
  requestMethod?: string;
115
+ /**
116
+ * VI uplift Part 3 — attempt-chain handle (`att_<32hex>`, from the
117
+ * X-Astra-Attempt-Id header or an `?astra_attempt=` deep link). Joins
118
+ * the beacon into the agent's research chain. Attribution only.
119
+ */
120
+ attemptId?: string;
121
+ /** First-class referer (traffic-source reporting). */
122
+ referer?: string;
123
+ /** The caller's Accept header (surface-classifier input). */
124
+ accept?: string;
125
+ /** Self-declared platform from X-Astra-Source (attribution, never trust). */
126
+ declaredSource?: string;
115
127
  /**
116
128
  * 3.9.0 — edge-adapter evidence fields, persisted into the
117
129
  * event's eventData by the backend: `protocol` = detected transport/
package/dist/verify.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-CwY5IY-0.js';
1
+ import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-CtFXmDzm.js';
2
2
  import { ObservedMetadata } from './metadata-capture.js';
3
3
 
4
4
  /**
@@ -112,6 +112,18 @@ declare function reportUnregisteredAttempt(config: GatewayConfig, data: {
112
112
  userAgent?: string;
113
113
  requestPath?: string;
114
114
  requestMethod?: string;
115
+ /**
116
+ * VI uplift Part 3 — attempt-chain handle (`att_<32hex>`, from the
117
+ * X-Astra-Attempt-Id header or an `?astra_attempt=` deep link). Joins
118
+ * the beacon into the agent's research chain. Attribution only.
119
+ */
120
+ attemptId?: string;
121
+ /** First-class referer (traffic-source reporting). */
122
+ referer?: string;
123
+ /** The caller's Accept header (surface-classifier input). */
124
+ accept?: string;
125
+ /** Self-declared platform from X-Astra-Source (attribution, never trust). */
126
+ declaredSource?: string;
115
127
  /**
116
128
  * 3.9.0 — edge-adapter evidence fields, persisted into the
117
129
  * event's eventData by the backend: `protocol` = detected transport/
package/dist/verify.js CHANGED
@@ -36,7 +36,7 @@ __export(verify_exports, {
36
36
  module.exports = __toCommonJS(verify_exports);
37
37
 
38
38
  // src/version.ts
39
- var SDK_VERSION = "5.8.0";
39
+ var SDK_VERSION = "5.9.0";
40
40
 
41
41
  // src/http.ts
42
42
  var SDK_USER_AGENT = `astrasync-sdk/${SDK_VERSION}`;
@@ -545,7 +545,7 @@ async function verify(config, request, options) {
545
545
  name: apiResponse.agent.name,
546
546
  trustScore: apiResponse.agent.trustScore,
547
547
  trustLevel: getTrustLevel(apiResponse.agent.trustScore),
548
- blockchainVerified: apiResponse.agent.blockchainStatus === "verified",
548
+ blockchainAnchored: apiResponse.agent.blockchainStatus === "anchored",
549
549
  status: apiResponse.agent.agentStatus
550
550
  } : void 0;
551
551
  const developer = apiResponse.developer ? {