@astrasyncai/verification-gateway 2.4.11 → 2.4.14
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/adapter-interface/interface.d.mts +2 -2
- package/dist/adapter-interface/interface.d.ts +2 -2
- package/dist/adapters/express.d.mts +2 -2
- package/dist/adapters/express.d.ts +2 -2
- package/dist/adapters/express.js +129 -36
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +129 -36
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/mcp.d.mts +26 -4
- package/dist/adapters/mcp.d.ts +26 -4
- package/dist/adapters/mcp.js +94 -28
- package/dist/adapters/mcp.js.map +1 -1
- package/dist/adapters/mcp.mjs +94 -28
- package/dist/adapters/mcp.mjs.map +1 -1
- package/dist/adapters/nextjs.d.mts +2 -2
- package/dist/adapters/nextjs.d.ts +2 -2
- package/dist/adapters/nextjs.js +75 -29
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +75 -29
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.d.mts +2 -2
- package/dist/adapters/sdk.d.ts +2 -2
- package/dist/adapters/sdk.js +45 -22
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +45 -22
- package/dist/adapters/sdk.mjs.map +1 -1
- package/dist/agent/index.d.mts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +29 -0
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/index.mjs +29 -0
- package/dist/agent/index.mjs.map +1 -1
- package/dist/browser/background.js +86 -24
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +86 -24
- package/dist/browser/background.mjs.map +1 -1
- package/dist/browser/browser-adapter.d.mts +2 -2
- package/dist/browser/browser-adapter.d.ts +2 -2
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cursor/cursor-adapter.d.mts +2 -2
- package/dist/cursor/cursor-adapter.d.ts +2 -2
- package/dist/cursor/extension.d.mts +2 -2
- package/dist/cursor/extension.d.ts +2 -2
- package/dist/cursor/extension.js +86 -24
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +86 -24
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/{express-C1ePFB7n.d.ts → express-CrfwoNAR.d.ts} +1 -1
- package/dist/{express-4WStX3PV.d.mts → express-ienhAXps.d.mts} +1 -1
- package/dist/gateway/gateway.d.mts +2 -2
- package/dist/gateway/gateway.d.ts +2 -2
- package/dist/gateway/gateway.js +86 -24
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +86 -24
- package/dist/gateway/gateway.mjs.map +1 -1
- package/dist/git-trigger/git-hooks.d.mts +2 -2
- package/dist/git-trigger/git-hooks.d.ts +2 -2
- package/dist/{index-ChPX4WHl.d.mts → index-B5e2IDWU.d.mts} +1 -1
- package/dist/{index-CzJMCgEy.d.ts → index-CCdZxvAr.d.ts} +71 -6
- package/dist/{index-D8IEntil.d.mts → index-CEg_WG6y.d.mts} +71 -6
- package/dist/{index-Cjm-zBeZ.d.ts → index-DC5f8eoQ.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +344 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +344 -73
- package/dist/index.mjs.map +1 -1
- package/dist/local-evaluator/evaluator.d.mts +2 -2
- package/dist/local-evaluator/evaluator.d.ts +2 -2
- package/dist/local-evaluator/evaluator.js +12 -2
- package/dist/local-evaluator/evaluator.js.map +1 -1
- package/dist/local-evaluator/evaluator.mjs +12 -2
- package/dist/local-evaluator/evaluator.mjs.map +1 -1
- package/dist/{nextjs-BIORS__0.d.ts → nextjs-66R1KW8e.d.ts} +1 -1
- package/dist/{nextjs-CjzHdaXA.d.mts → nextjs-DSpisQst.d.mts} +1 -1
- package/dist/{sdk-Chhz-FcT.d.mts → sdk-5U_CBRpr.d.mts} +1 -1
- package/dist/{sdk-CqTEQAc6.d.ts → sdk-Bm8np66n.d.ts} +1 -1
- package/dist/transport/index.d.mts +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/transport/index.js +146 -28
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/index.mjs +146 -28
- package/dist/transport/index.mjs.map +1 -1
- package/dist/{types-L15pYd2c.d.mts → types-B3USs-Kx.d.mts} +42 -1
- package/dist/{types-L15pYd2c.d.ts → types-B3USs-Kx.d.ts} +42 -1
- package/dist/{types-DNK2BgIf.d.mts → types-CgDCUfo8.d.mts} +1 -1
- package/dist/{types-DoWIuzfj.d.ts → types-R5N4ET6x.d.ts} +1 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AstraSyncGateway } from '../gateway/gateway.mjs';
|
|
2
|
-
import { V as VerificationDecision, P as PDLSSContext } from '../types-
|
|
3
|
-
import '../types-
|
|
2
|
+
import { V as VerificationDecision, P as PDLSSContext } from '../types-CgDCUfo8.mjs';
|
|
3
|
+
import '../types-B3USs-Kx.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Git Trigger — Enterprise git push / PR verification
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AstraSyncGateway } from '../gateway/gateway.js';
|
|
2
|
-
import { V as VerificationDecision, P as PDLSSContext } from '../types-
|
|
3
|
-
import '../types-
|
|
2
|
+
import { V as VerificationDecision, P as PDLSSContext } from '../types-R5N4ET6x.js';
|
|
3
|
+
import '../types-B3USs-Kx.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Git Trigger — Enterprise git push / PR verification
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as AstraSyncCredentials, f as ProtocolTransport } from './types-
|
|
1
|
+
import { b as AstraSyncCredentials, f as ProtocolTransport } from './types-B3USs-Kx.js';
|
|
2
2
|
import { JWK } from 'jose';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -207,6 +207,37 @@ interface ResolveContext {
|
|
|
207
207
|
algorithm?: string;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Shared nonce/signature replay-protection store for transport verifiers.
|
|
212
|
+
*
|
|
213
|
+
* Audit F-A1-05: every transport-signature verifier (RFC9421, VI, AP2, ACP,
|
|
214
|
+
* MPP) validates a created/expires window but none consult a seen-nonce
|
|
215
|
+
* cache. Any captured signed request can be replayed within the (default
|
|
216
|
+
* 300s, now tightened to 60s) tolerance window.
|
|
217
|
+
*
|
|
218
|
+
* This module ships a bounded in-memory LRU as the default. Production
|
|
219
|
+
* deployments with multi-pod horizontal scaling SHOULD pass a shared store
|
|
220
|
+
* (Redis-backed) via the verifier options to make replay protection global
|
|
221
|
+
* rather than per-pod.
|
|
222
|
+
*
|
|
223
|
+
* The store interface is intentionally minimal: a single `seen(key,
|
|
224
|
+
* expiresAt)` method that returns true iff the key was already recorded
|
|
225
|
+
* (i.e. caller should reject as a replay). Callers compose the key from
|
|
226
|
+
* whichever identifiers are unique to the signature (kid + nonce + sig
|
|
227
|
+
* digest, typically).
|
|
228
|
+
*/
|
|
229
|
+
interface NonceStore {
|
|
230
|
+
/**
|
|
231
|
+
* Record `key` as seen. Returns true iff the key was ALREADY present —
|
|
232
|
+
* i.e. caller should reject the request as a replay. Returns false on
|
|
233
|
+
* first sighting (caller should proceed).
|
|
234
|
+
*
|
|
235
|
+
* `expiresAtMs` is a hint for the store to evict entries that can no
|
|
236
|
+
* longer cause harm (their signature window has elapsed).
|
|
237
|
+
*/
|
|
238
|
+
seen(key: string, expiresAtMs: number): boolean;
|
|
239
|
+
}
|
|
240
|
+
|
|
210
241
|
/**
|
|
211
242
|
* RFC 9421 HTTP Message Signatures verification.
|
|
212
243
|
*
|
|
@@ -229,10 +260,12 @@ interface RFC9421VerifyRequest {
|
|
|
229
260
|
}
|
|
230
261
|
interface RFC9421VerifyOptions {
|
|
231
262
|
resolver: RegistryResolver;
|
|
232
|
-
/** Seconds of tolerance around created/expires. Default 300. */
|
|
263
|
+
/** Seconds of tolerance around created/expires. Default 60 (audit F-A1-05 tightening from 300). */
|
|
233
264
|
clockSkewSec?: number;
|
|
234
265
|
/** Injectable for deterministic tests. */
|
|
235
266
|
now?: () => number;
|
|
267
|
+
/** Optional replay-protection store. Defaults to in-process LRU. Audit F-A1-05. */
|
|
268
|
+
nonceStore?: NonceStore;
|
|
236
269
|
}
|
|
237
270
|
interface RFC9421VerifyResult {
|
|
238
271
|
ok: boolean;
|
|
@@ -684,8 +717,19 @@ declare function extractAP2Mandates(input: AP2MandateTripleInput): AP2MandateTri
|
|
|
684
717
|
|
|
685
718
|
interface AP2VerifyInput {
|
|
686
719
|
triple: AP2MandateTriple;
|
|
720
|
+
/**
|
|
721
|
+
* Clock skew tolerance in seconds for expiry checks. Default 60s (audit
|
|
722
|
+
* F-A1-05 tightening from the previous 300s default).
|
|
723
|
+
*/
|
|
687
724
|
clockSkewSec?: number;
|
|
688
725
|
now?: () => number;
|
|
726
|
+
/**
|
|
727
|
+
* Optional replay-protection store. Defaults to in-process LRU. When the
|
|
728
|
+
* payment mandate carries an id, this verifier registers it as seen so
|
|
729
|
+
* the same payment mandate replayed within the expiry window is rejected.
|
|
730
|
+
* Audit F-A1-05.
|
|
731
|
+
*/
|
|
732
|
+
nonceStore?: NonceStore;
|
|
689
733
|
}
|
|
690
734
|
interface AP2ChainResult {
|
|
691
735
|
ok: boolean;
|
|
@@ -732,10 +776,12 @@ interface ACPVerifyInput {
|
|
|
732
776
|
jwk: JWK;
|
|
733
777
|
alg?: ACPSignatureAlgorithm | string;
|
|
734
778
|
}>;
|
|
735
|
-
/** Clock skew tolerance in seconds (default 300). */
|
|
779
|
+
/** Clock skew tolerance in seconds (default 60, audit F-A1-05 tightening from 300). */
|
|
736
780
|
clockSkewSec?: number;
|
|
737
781
|
/** Injectable now for tests. */
|
|
738
782
|
now?: () => number;
|
|
783
|
+
/** Optional replay-protection store. Defaults to in-process LRU. Audit F-A1-05. */
|
|
784
|
+
nonceStore?: NonceStore;
|
|
739
785
|
}
|
|
740
786
|
interface ACPVerifyResult {
|
|
741
787
|
ok: boolean;
|
|
@@ -867,10 +913,12 @@ interface MPPVerifyInput {
|
|
|
867
913
|
context: MPPRequestContext;
|
|
868
914
|
/** Raw request body to validate BodyDigest against, if the challenge declares one. */
|
|
869
915
|
rawBody?: string;
|
|
870
|
-
/** Seconds of clock-skew tolerance on challenge.expires. Default
|
|
916
|
+
/** Seconds of clock-skew tolerance on challenge.expires. Default 60 (audit F-A1-05). */
|
|
871
917
|
clockSkewSec?: number;
|
|
872
918
|
/** Injectable for deterministic tests. */
|
|
873
919
|
now?: () => number;
|
|
920
|
+
/** Optional replay-protection store. Defaults to in-process LRU. Audit F-A1-05. */
|
|
921
|
+
nonceStore?: NonceStore;
|
|
874
922
|
}
|
|
875
923
|
interface MPPVerifyResult {
|
|
876
924
|
ok: boolean;
|
|
@@ -994,8 +1042,11 @@ interface VILayer {
|
|
|
994
1042
|
}
|
|
995
1043
|
interface VIVerifyInput {
|
|
996
1044
|
/**
|
|
997
|
-
* Layers in chain order. L1
|
|
998
|
-
*
|
|
1045
|
+
* Layers in chain order. L1 is REQUIRED by default (audit F-A1-02) —
|
|
1046
|
+
* without L1 there is no chain root and L2 can be verified against any
|
|
1047
|
+
* attacker-supplied key. Callers who have resolved L2's signing key by
|
|
1048
|
+
* a trusted out-of-band mechanism (wallet binding, prior protocol step)
|
|
1049
|
+
* MUST set `allowUnboundChain: true` AND supply `expectedL2Key`.
|
|
999
1050
|
*/
|
|
1000
1051
|
layers: {
|
|
1001
1052
|
l1?: VILayer;
|
|
@@ -1010,8 +1061,22 @@ interface VIVerifyInput {
|
|
|
1010
1061
|
* JWKS per `iss` claim).
|
|
1011
1062
|
*/
|
|
1012
1063
|
verifySignature: (layer: VILayer, expectedKey: JWK | null) => Promise<boolean>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Clock skew tolerance in seconds for expiry checks. Default 60s (audit
|
|
1066
|
+
* F-A1-05 tightening from the previous 300s default).
|
|
1067
|
+
*/
|
|
1013
1068
|
clockSkewSec?: number;
|
|
1014
1069
|
now?: () => number;
|
|
1070
|
+
/**
|
|
1071
|
+
* Explicit opt-in to verify a chain with L1 omitted. Audit F-A1-02 fix
|
|
1072
|
+
* — defaults to false. When true, `expectedL2Key` MUST also be supplied
|
|
1073
|
+
* (used as the expected signing key for L2 verification).
|
|
1074
|
+
*/
|
|
1075
|
+
allowUnboundChain?: boolean;
|
|
1076
|
+
/** Required when allowUnboundChain === true. */
|
|
1077
|
+
expectedL2Key?: JWK;
|
|
1078
|
+
/** Optional replay-protection store. Defaults to in-process LRU. */
|
|
1079
|
+
nonceStore?: NonceStore;
|
|
1015
1080
|
}
|
|
1016
1081
|
interface VIVerifyResult {
|
|
1017
1082
|
ok: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as AstraSyncCredentials, f as ProtocolTransport } from './types-
|
|
1
|
+
import { b as AstraSyncCredentials, f as ProtocolTransport } from './types-B3USs-Kx.mjs';
|
|
2
2
|
import { JWK } from 'jose';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -207,6 +207,37 @@ interface ResolveContext {
|
|
|
207
207
|
algorithm?: string;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Shared nonce/signature replay-protection store for transport verifiers.
|
|
212
|
+
*
|
|
213
|
+
* Audit F-A1-05: every transport-signature verifier (RFC9421, VI, AP2, ACP,
|
|
214
|
+
* MPP) validates a created/expires window but none consult a seen-nonce
|
|
215
|
+
* cache. Any captured signed request can be replayed within the (default
|
|
216
|
+
* 300s, now tightened to 60s) tolerance window.
|
|
217
|
+
*
|
|
218
|
+
* This module ships a bounded in-memory LRU as the default. Production
|
|
219
|
+
* deployments with multi-pod horizontal scaling SHOULD pass a shared store
|
|
220
|
+
* (Redis-backed) via the verifier options to make replay protection global
|
|
221
|
+
* rather than per-pod.
|
|
222
|
+
*
|
|
223
|
+
* The store interface is intentionally minimal: a single `seen(key,
|
|
224
|
+
* expiresAt)` method that returns true iff the key was already recorded
|
|
225
|
+
* (i.e. caller should reject as a replay). Callers compose the key from
|
|
226
|
+
* whichever identifiers are unique to the signature (kid + nonce + sig
|
|
227
|
+
* digest, typically).
|
|
228
|
+
*/
|
|
229
|
+
interface NonceStore {
|
|
230
|
+
/**
|
|
231
|
+
* Record `key` as seen. Returns true iff the key was ALREADY present —
|
|
232
|
+
* i.e. caller should reject the request as a replay. Returns false on
|
|
233
|
+
* first sighting (caller should proceed).
|
|
234
|
+
*
|
|
235
|
+
* `expiresAtMs` is a hint for the store to evict entries that can no
|
|
236
|
+
* longer cause harm (their signature window has elapsed).
|
|
237
|
+
*/
|
|
238
|
+
seen(key: string, expiresAtMs: number): boolean;
|
|
239
|
+
}
|
|
240
|
+
|
|
210
241
|
/**
|
|
211
242
|
* RFC 9421 HTTP Message Signatures verification.
|
|
212
243
|
*
|
|
@@ -229,10 +260,12 @@ interface RFC9421VerifyRequest {
|
|
|
229
260
|
}
|
|
230
261
|
interface RFC9421VerifyOptions {
|
|
231
262
|
resolver: RegistryResolver;
|
|
232
|
-
/** Seconds of tolerance around created/expires. Default 300. */
|
|
263
|
+
/** Seconds of tolerance around created/expires. Default 60 (audit F-A1-05 tightening from 300). */
|
|
233
264
|
clockSkewSec?: number;
|
|
234
265
|
/** Injectable for deterministic tests. */
|
|
235
266
|
now?: () => number;
|
|
267
|
+
/** Optional replay-protection store. Defaults to in-process LRU. Audit F-A1-05. */
|
|
268
|
+
nonceStore?: NonceStore;
|
|
236
269
|
}
|
|
237
270
|
interface RFC9421VerifyResult {
|
|
238
271
|
ok: boolean;
|
|
@@ -684,8 +717,19 @@ declare function extractAP2Mandates(input: AP2MandateTripleInput): AP2MandateTri
|
|
|
684
717
|
|
|
685
718
|
interface AP2VerifyInput {
|
|
686
719
|
triple: AP2MandateTriple;
|
|
720
|
+
/**
|
|
721
|
+
* Clock skew tolerance in seconds for expiry checks. Default 60s (audit
|
|
722
|
+
* F-A1-05 tightening from the previous 300s default).
|
|
723
|
+
*/
|
|
687
724
|
clockSkewSec?: number;
|
|
688
725
|
now?: () => number;
|
|
726
|
+
/**
|
|
727
|
+
* Optional replay-protection store. Defaults to in-process LRU. When the
|
|
728
|
+
* payment mandate carries an id, this verifier registers it as seen so
|
|
729
|
+
* the same payment mandate replayed within the expiry window is rejected.
|
|
730
|
+
* Audit F-A1-05.
|
|
731
|
+
*/
|
|
732
|
+
nonceStore?: NonceStore;
|
|
689
733
|
}
|
|
690
734
|
interface AP2ChainResult {
|
|
691
735
|
ok: boolean;
|
|
@@ -732,10 +776,12 @@ interface ACPVerifyInput {
|
|
|
732
776
|
jwk: JWK;
|
|
733
777
|
alg?: ACPSignatureAlgorithm | string;
|
|
734
778
|
}>;
|
|
735
|
-
/** Clock skew tolerance in seconds (default 300). */
|
|
779
|
+
/** Clock skew tolerance in seconds (default 60, audit F-A1-05 tightening from 300). */
|
|
736
780
|
clockSkewSec?: number;
|
|
737
781
|
/** Injectable now for tests. */
|
|
738
782
|
now?: () => number;
|
|
783
|
+
/** Optional replay-protection store. Defaults to in-process LRU. Audit F-A1-05. */
|
|
784
|
+
nonceStore?: NonceStore;
|
|
739
785
|
}
|
|
740
786
|
interface ACPVerifyResult {
|
|
741
787
|
ok: boolean;
|
|
@@ -867,10 +913,12 @@ interface MPPVerifyInput {
|
|
|
867
913
|
context: MPPRequestContext;
|
|
868
914
|
/** Raw request body to validate BodyDigest against, if the challenge declares one. */
|
|
869
915
|
rawBody?: string;
|
|
870
|
-
/** Seconds of clock-skew tolerance on challenge.expires. Default
|
|
916
|
+
/** Seconds of clock-skew tolerance on challenge.expires. Default 60 (audit F-A1-05). */
|
|
871
917
|
clockSkewSec?: number;
|
|
872
918
|
/** Injectable for deterministic tests. */
|
|
873
919
|
now?: () => number;
|
|
920
|
+
/** Optional replay-protection store. Defaults to in-process LRU. Audit F-A1-05. */
|
|
921
|
+
nonceStore?: NonceStore;
|
|
874
922
|
}
|
|
875
923
|
interface MPPVerifyResult {
|
|
876
924
|
ok: boolean;
|
|
@@ -994,8 +1042,11 @@ interface VILayer {
|
|
|
994
1042
|
}
|
|
995
1043
|
interface VIVerifyInput {
|
|
996
1044
|
/**
|
|
997
|
-
* Layers in chain order. L1
|
|
998
|
-
*
|
|
1045
|
+
* Layers in chain order. L1 is REQUIRED by default (audit F-A1-02) —
|
|
1046
|
+
* without L1 there is no chain root and L2 can be verified against any
|
|
1047
|
+
* attacker-supplied key. Callers who have resolved L2's signing key by
|
|
1048
|
+
* a trusted out-of-band mechanism (wallet binding, prior protocol step)
|
|
1049
|
+
* MUST set `allowUnboundChain: true` AND supply `expectedL2Key`.
|
|
999
1050
|
*/
|
|
1000
1051
|
layers: {
|
|
1001
1052
|
l1?: VILayer;
|
|
@@ -1010,8 +1061,22 @@ interface VIVerifyInput {
|
|
|
1010
1061
|
* JWKS per `iss` claim).
|
|
1011
1062
|
*/
|
|
1012
1063
|
verifySignature: (layer: VILayer, expectedKey: JWK | null) => Promise<boolean>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Clock skew tolerance in seconds for expiry checks. Default 60s (audit
|
|
1066
|
+
* F-A1-05 tightening from the previous 300s default).
|
|
1067
|
+
*/
|
|
1013
1068
|
clockSkewSec?: number;
|
|
1014
1069
|
now?: () => number;
|
|
1070
|
+
/**
|
|
1071
|
+
* Explicit opt-in to verify a chain with L1 omitted. Audit F-A1-02 fix
|
|
1072
|
+
* — defaults to false. When true, `expectedL2Key` MUST also be supplied
|
|
1073
|
+
* (used as the expected signing key for L2 verification).
|
|
1074
|
+
*/
|
|
1075
|
+
allowUnboundChain?: boolean;
|
|
1076
|
+
/** Required when allowUnboundChain === true. */
|
|
1077
|
+
expectedL2Key?: JWK;
|
|
1078
|
+
/** Optional replay-protection store. Defaults to in-process LRU. */
|
|
1079
|
+
nonceStore?: NonceStore;
|
|
1015
1080
|
}
|
|
1016
1081
|
interface VIVerifyResult {
|
|
1017
1082
|
ok: boolean;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as AgentCredentials, G as GatewayConfig, A as AccessLevel, V as VerificationRequest, i as VerificationResult } from './types-
|
|
2
|
-
export { b as AstraSyncCredentials, C as CommerceShieldProps, c as CounterpartyType, E as EnhancedVerificationResult, d as ExpressMiddlewareOptions, e as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, f as ProtocolTransport, R as RouteAccessConfig, g as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, h as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-
|
|
3
|
-
export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-
|
|
4
|
-
export { e as express } from './express-
|
|
5
|
-
export { n as nextjs } from './nextjs-
|
|
6
|
-
export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-
|
|
1
|
+
import { a as AgentCredentials, G as GatewayConfig, A as AccessLevel, V as VerificationRequest, i as VerificationResult } from './types-B3USs-Kx.mjs';
|
|
2
|
+
export { b as AstraSyncCredentials, C as CommerceShieldProps, c as CounterpartyType, E as EnhancedVerificationResult, d as ExpressMiddlewareOptions, e as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, f as ProtocolTransport, R as RouteAccessConfig, g as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, h as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-B3USs-Kx.mjs';
|
|
3
|
+
export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-5U_CBRpr.mjs';
|
|
4
|
+
export { e as express } from './express-ienhAXps.mjs';
|
|
5
|
+
export { n as nextjs } from './nextjs-DSpisQst.mjs';
|
|
6
|
+
export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-CEg_WG6y.mjs';
|
|
7
7
|
export { McpMiddlewareOptions, createMcpMiddleware } from './adapters/mcp.mjs';
|
|
8
8
|
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';
|
|
9
|
-
export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-
|
|
9
|
+
export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-B5e2IDWU.mjs';
|
|
10
10
|
import 'express';
|
|
11
11
|
import 'next/server';
|
|
12
12
|
import 'jose';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as AgentCredentials, G as GatewayConfig, A as AccessLevel, V as VerificationRequest, i as VerificationResult } from './types-
|
|
2
|
-
export { b as AstraSyncCredentials, C as CommerceShieldProps, c as CounterpartyType, E as EnhancedVerificationResult, d as ExpressMiddlewareOptions, e as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, f as ProtocolTransport, R as RouteAccessConfig, g as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, h as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-
|
|
3
|
-
export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-
|
|
4
|
-
export { e as express } from './express-
|
|
5
|
-
export { n as nextjs } from './nextjs-
|
|
6
|
-
export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-
|
|
1
|
+
import { a as AgentCredentials, G as GatewayConfig, A as AccessLevel, V as VerificationRequest, i as VerificationResult } from './types-B3USs-Kx.js';
|
|
2
|
+
export { b as AstraSyncCredentials, C as CommerceShieldProps, c as CounterpartyType, E as EnhancedVerificationResult, d as ExpressMiddlewareOptions, e as GuidanceInfo, N as NextJsMiddlewareOptions, P as PDLSSInfo, f as ProtocolTransport, R as RouteAccessConfig, g as RuntimeChallengeResult, S as SDKOptions, T as TokenGuidance, h as TrustLevel, j as VerifiedAgent, k as VerifiedDeveloper, l as VerifiedOrganization } from './types-B3USs-Kx.js';
|
|
3
|
+
export { A as ACCESS_LEVEL_DESCRIPTIONS, a as ACCESS_LEVEL_HIERARCHY, b as AccessCapabilities, D as DEFAULT_TRUST_THRESHOLDS, T as TRUST_LEVEL_RANGES, d as determineAccessLevel, g as getAccessLevelForScore, e as getCapabilities, f as getTrustLevel, h as hasMinimumAccess, s as sdk } from './sdk-Bm8np66n.js';
|
|
4
|
+
export { e as express } from './express-CrfwoNAR.js';
|
|
5
|
+
export { n as nextjs } from './nextjs-66R1KW8e.js';
|
|
6
|
+
export { aR as extractMcpCredentials, bg as setMcpMeta, b1 as transport } from './index-CCdZxvAr.js';
|
|
7
7
|
export { McpMiddlewareOptions, createMcpMiddleware } from './adapters/mcp.js';
|
|
8
8
|
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';
|
|
9
|
-
export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-
|
|
9
|
+
export { A as AgentClient, C as ChallengeHandler, i as agent, r as recordDecision } from './index-DC5f8eoQ.js';
|
|
10
10
|
import 'express';
|
|
11
11
|
import 'next/server';
|
|
12
12
|
import 'jose';
|