@astrasyncai/verification-gateway 5.17.2 → 5.18.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.
- package/CHANGELOG.md +1849 -0
- package/README.md +141 -7
- package/dist/adapters/express.d.mts +1 -1
- package/dist/adapters/express.d.ts +1 -1
- package/dist/adapters/express.js +30 -12
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +30 -12
- package/dist/adapters/express.mjs.map +1 -1
- package/dist/adapters/kit-express.d.mts +63 -0
- package/dist/adapters/kit-express.d.ts +63 -0
- package/dist/adapters/kit-express.js +88 -0
- package/dist/adapters/kit-express.js.map +1 -0
- package/dist/adapters/kit-express.mjs +61 -0
- package/dist/adapters/kit-express.mjs.map +1 -0
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.d.ts +1 -1
- 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.d.mts +1 -1
- package/dist/adapters/nextjs.d.ts +1 -1
- package/dist/adapters/nextjs.js +18 -8
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +18 -8
- package/dist/adapters/nextjs.mjs.map +1 -1
- package/dist/adapters/sdk.d.mts +1 -1
- package/dist/adapters/sdk.d.ts +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 +19 -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.d.mts +1 -1
- package/dist/edge-config.d.ts +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.d.mts +5 -4
- package/dist/edge-core/index.d.ts +5 -4
- package/dist/edge-core/index.js +18 -8
- package/dist/edge-core/index.js.map +1 -1
- package/dist/edge-core/index.mjs +18 -8
- 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/git-trigger/git-hooks.d.mts +1 -1
- package/dist/git-trigger/git-hooks.d.ts +1 -1
- package/dist/index.d.mts +390 -12
- package/dist/index.d.ts +390 -12
- package/dist/index.js +766 -230
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +749 -222
- package/dist/index.mjs.map +1 -1
- package/dist/registration/index.js +1 -1
- package/dist/registration/index.js.map +1 -1
- package/dist/registration/index.mjs +1 -1
- package/dist/registration/index.mjs.map +1 -1
- package/dist/transport/index.d.mts +4 -3
- package/dist/transport/index.d.ts +4 -3
- 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/{types-vNBvYD7Z.d.mts → types-3ObBpsnf.d.mts} +7 -0
- package/dist/{types-DA8LzAOB.d.ts → types-BoxZEYPS.d.ts} +7 -0
- package/dist/{types-DRb_plOh.d.mts → types-Cns4l8gX.d.mts} +17 -0
- package/dist/{types-DRb_plOh.d.ts → types-Cns4l8gX.d.ts} +17 -0
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/verify.d.mts +1 -1
- package/dist/verify.d.ts +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 +8 -2
|
@@ -285,6 +285,13 @@ interface StepUpApprovalInfo {
|
|
|
285
285
|
*/
|
|
286
286
|
approvalUrl?: string;
|
|
287
287
|
expiresAt: string;
|
|
288
|
+
/**
|
|
289
|
+
* 5.18.0: `'consumed'` when this verification just redeemed the approval
|
|
290
|
+
* (the purchase may proceed); `'pending'` (or absent) while the buyer
|
|
291
|
+
* still has to approve; `'approved'` when the buyer approved but the
|
|
292
|
+
* purchase can't settle yet (e.g. no payment method) — still held.
|
|
293
|
+
*/
|
|
294
|
+
status?: 'pending' | 'approved' | 'consumed';
|
|
288
295
|
}
|
|
289
296
|
/**
|
|
290
297
|
* Lifecycle states of a step-up approval row (mirrors the backend's
|
|
@@ -285,6 +285,13 @@ interface StepUpApprovalInfo {
|
|
|
285
285
|
*/
|
|
286
286
|
approvalUrl?: string;
|
|
287
287
|
expiresAt: string;
|
|
288
|
+
/**
|
|
289
|
+
* 5.18.0: `'consumed'` when this verification just redeemed the approval
|
|
290
|
+
* (the purchase may proceed); `'pending'` (or absent) while the buyer
|
|
291
|
+
* still has to approve; `'approved'` when the buyer approved but the
|
|
292
|
+
* purchase can't settle yet (e.g. no payment method) — still held.
|
|
293
|
+
*/
|
|
294
|
+
status?: 'pending' | 'approved' | 'consumed';
|
|
288
295
|
}
|
|
289
296
|
/**
|
|
290
297
|
* Lifecycle states of a step-up approval row (mirrors the backend's
|
|
@@ -343,6 +343,13 @@ interface StepUpApprovalInfo {
|
|
|
343
343
|
*/
|
|
344
344
|
approvalUrl?: string;
|
|
345
345
|
expiresAt: string;
|
|
346
|
+
/**
|
|
347
|
+
* 5.18.0: `'consumed'` when this verification just redeemed the approval
|
|
348
|
+
* (the purchase may proceed); `'pending'` (or absent) while the buyer
|
|
349
|
+
* still has to approve; `'approved'` when the buyer approved but the
|
|
350
|
+
* purchase can't settle yet (e.g. no payment method) — still held.
|
|
351
|
+
*/
|
|
352
|
+
status?: 'pending' | 'approved' | 'consumed';
|
|
346
353
|
}
|
|
347
354
|
/**
|
|
348
355
|
* Lifecycle states of a step-up approval row (mirrors the backend's
|
|
@@ -999,6 +1006,16 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
999
1006
|
* owner approves once. Any deny is still refused. Default: none.
|
|
1000
1007
|
*/
|
|
1001
1008
|
approvalHeldByRoute?: (req: unknown) => boolean;
|
|
1009
|
+
/**
|
|
1010
|
+
* 5.18.0: what happens to a request no configured route matches.
|
|
1011
|
+
* `'pass'` (default): it passes unevaluated — unless
|
|
1012
|
+
* `evaluateAlwaysIfCredentialed` is set and the caller sent an X-Astra-Id,
|
|
1013
|
+
* in which case it's evaluated in observe mode. `'observe'`: any caller
|
|
1014
|
+
* presenting AstraSync credentials (X-Astra-Id, API key or JWT) is
|
|
1015
|
+
* evaluated in observe mode. Observe never vetoes: the request always
|
|
1016
|
+
* reaches your handler, with `req.agentVerification` populated.
|
|
1017
|
+
*/
|
|
1018
|
+
defaultRoutePolicy?: 'pass' | 'observe';
|
|
1002
1019
|
/**
|
|
1003
1020
|
* Refresh interval (ms) for the remote-fetched route policy. Default:
|
|
1004
1021
|
* 5 minutes. Operators can shorten this to test policy edits faster, or
|
|
@@ -343,6 +343,13 @@ interface StepUpApprovalInfo {
|
|
|
343
343
|
*/
|
|
344
344
|
approvalUrl?: string;
|
|
345
345
|
expiresAt: string;
|
|
346
|
+
/**
|
|
347
|
+
* 5.18.0: `'consumed'` when this verification just redeemed the approval
|
|
348
|
+
* (the purchase may proceed); `'pending'` (or absent) while the buyer
|
|
349
|
+
* still has to approve; `'approved'` when the buyer approved but the
|
|
350
|
+
* purchase can't settle yet (e.g. no payment method) — still held.
|
|
351
|
+
*/
|
|
352
|
+
status?: 'pending' | 'approved' | 'consumed';
|
|
346
353
|
}
|
|
347
354
|
/**
|
|
348
355
|
* Lifecycle states of a step-up approval row (mirrors the backend's
|
|
@@ -999,6 +1006,16 @@ interface ExpressMiddlewareOptions extends GatewayConfig {
|
|
|
999
1006
|
* owner approves once. Any deny is still refused. Default: none.
|
|
1000
1007
|
*/
|
|
1001
1008
|
approvalHeldByRoute?: (req: unknown) => boolean;
|
|
1009
|
+
/**
|
|
1010
|
+
* 5.18.0: what happens to a request no configured route matches.
|
|
1011
|
+
* `'pass'` (default): it passes unevaluated — unless
|
|
1012
|
+
* `evaluateAlwaysIfCredentialed` is set and the caller sent an X-Astra-Id,
|
|
1013
|
+
* in which case it's evaluated in observe mode. `'observe'`: any caller
|
|
1014
|
+
* presenting AstraSync credentials (X-Astra-Id, API key or JWT) is
|
|
1015
|
+
* evaluated in observe mode. Observe never vetoes: the request always
|
|
1016
|
+
* reaches your handler, with `req.agentVerification` populated.
|
|
1017
|
+
*/
|
|
1018
|
+
defaultRoutePolicy?: 'pass' | 'observe';
|
|
1002
1019
|
/**
|
|
1003
1020
|
* Refresh interval (ms) for the remote-fetched route policy. Default:
|
|
1004
1021
|
* 5 minutes. Operators can shorten this to test policy edits faster, or
|
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-Cns4l8gX.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* AstraSync Verification Interstitial Component
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-
|
|
1
|
+
import { V as VerificationInterstitialProps, d as VerificationResult, A as AgentCredentials, b as GuidanceInfo, T as TrustLevel } from '../types-Cns4l8gX.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-
|
|
1
|
+
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-3ObBpsnf.mjs';
|
|
2
2
|
import { ObservedMetadata } from './metadata-capture.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
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-
|
|
1
|
+
import { A as AgentCredentials, G as GatewayConfig, a as AttemptReport, V as VerificationRequest, c as VerificationResult } from './types-BoxZEYPS.js';
|
|
2
2
|
import { ObservedMetadata } from './metadata-capture.js';
|
|
3
3
|
|
|
4
4
|
/**
|
package/dist/verify.js
CHANGED