@astrasyncai/verification-gateway 2.2.3 → 2.3.4
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 +3 -9
- package/dist/adapters/express.js.map +1 -1
- package/dist/adapters/express.mjs +3 -9
- package/dist/adapters/express.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 +3 -9
- package/dist/adapters/nextjs.js.map +1 -1
- package/dist/adapters/nextjs.mjs +3 -9
- 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 +3 -9
- package/dist/adapters/sdk.js.map +1 -1
- package/dist/adapters/sdk.mjs +3 -9
- 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/browser/background.js +3 -9
- package/dist/browser/background.js.map +1 -1
- package/dist/browser/background.mjs +3 -9
- 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 +3 -9
- package/dist/cursor/extension.js.map +1 -1
- package/dist/cursor/extension.mjs +3 -9
- package/dist/cursor/extension.mjs.map +1 -1
- package/dist/{express-BtKlLI8U.d.ts → express-CraCA8_t.d.ts} +1 -1
- package/dist/{express-DgwpS8Ha.d.mts → express-DtvJ6BGt.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 +3 -9
- package/dist/gateway/gateway.js.map +1 -1
- package/dist/gateway/gateway.mjs +3 -9
- 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-Ba0Lvsjo.d.ts → index--KzVRa32.d.ts} +1 -1
- package/dist/{index-AzhK20t0.d.mts → index-BZ85CeEr.d.mts} +1 -1
- package/dist/{index-DpJS1JEI.d.ts → index-BzAFmemy.d.ts} +1 -1
- package/dist/{index-BaxpmTGA.d.mts → index-SEgnWzkf.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -9
- 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/{nextjs-B2kg19c1.d.ts → nextjs-B8o9C0t6.d.ts} +1 -1
- package/dist/{nextjs-ZymQ8jDh.d.mts → nextjs-DZHAn9j-.d.mts} +1 -1
- package/dist/{sdk-Bso0FSI0.d.ts → sdk-BQ3olp3v.d.ts} +1 -1
- package/dist/{sdk-B7id0VFS.d.mts → sdk-CRSUFQH2.d.mts} +1 -1
- package/dist/transport/index.d.mts +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-DOrqNMgy.d.mts → types-JMgPake9.d.mts} +86 -18
- package/dist/{types-DOrqNMgy.d.ts → types-JMgPake9.d.ts} +86 -18
- package/dist/{types-CgXPKUwi.d.mts → types-aN1UHhyy.d.mts} +1 -1
- package/dist/{types-BYKAY6Cc.d.ts → types-osMd_dpT.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,5 +1,5 @@
|
|
|
1
1
|
import { RequestHandler, Request } from 'express';
|
|
2
|
-
import { V as VerificationResult, E as ExpressMiddlewareOptions, A as AstraSyncCredentials, a as AccessLevel } from './types-
|
|
2
|
+
import { V as VerificationResult, E as ExpressMiddlewareOptions, A as AstraSyncCredentials, a as AccessLevel } from './types-JMgPake9.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* AstraSync Universal Verification Gateway - Express Middleware
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestHandler, Request } from 'express';
|
|
2
|
-
import { V as VerificationResult, E as ExpressMiddlewareOptions, A as AstraSyncCredentials, a as AccessLevel } from './types-
|
|
2
|
+
import { V as VerificationResult, E as ExpressMiddlewareOptions, A as AstraSyncCredentials, a as AccessLevel } from './types-JMgPake9.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* AstraSync Universal Verification Gateway - Express Middleware
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-
|
|
2
|
-
import '../types-
|
|
1
|
+
import { b as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-aN1UHhyy.mjs';
|
|
2
|
+
import '../types-JMgPake9.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* AstraSyncGateway — Primary API surface for agent verification.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-
|
|
2
|
-
import '../types-
|
|
1
|
+
import { b as AstraSyncGatewayConfig, P as PDLSSContext, V as VerificationDecision } from '../types-osMd_dpT.js';
|
|
2
|
+
import '../types-JMgPake9.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* AstraSyncGateway — Primary API surface for agent verification.
|
package/dist/gateway/gateway.js
CHANGED
|
@@ -3267,14 +3267,7 @@ async function verify(config, request) {
|
|
|
3267
3267
|
verified: apiResponse.organization.verified,
|
|
3268
3268
|
trustScore: apiResponse.organization.trustScore
|
|
3269
3269
|
} : void 0;
|
|
3270
|
-
const
|
|
3271
|
-
purposeAllowed: apiResponse.access.pdlss.purposeAllowed,
|
|
3272
|
-
withinDuration: apiResponse.access.pdlss.withinDuration,
|
|
3273
|
-
withinLimits: apiResponse.access.pdlss.withinLimits,
|
|
3274
|
-
scopeAllowed: apiResponse.access.pdlss.scopeAllowed,
|
|
3275
|
-
selfInstantiationAllowed: apiResponse.access.pdlss.selfInstantiationAllowed,
|
|
3276
|
-
appliedPolicy: apiResponse.access.appliedPolicy
|
|
3277
|
-
} : void 0;
|
|
3270
|
+
const verificationContext = apiResponse.verificationContext;
|
|
3278
3271
|
const accessLevel = apiResponse.access?.accessLevel ?? "standard";
|
|
3279
3272
|
const result = {
|
|
3280
3273
|
verified: true,
|
|
@@ -3282,7 +3275,8 @@ async function verify(config, request) {
|
|
|
3282
3275
|
agent,
|
|
3283
3276
|
developer,
|
|
3284
3277
|
organization,
|
|
3285
|
-
|
|
3278
|
+
appliedPolicy: apiResponse.access?.appliedPolicy,
|
|
3279
|
+
verificationContext,
|
|
3286
3280
|
requiresStepUp: apiResponse.access?.requiresStepUp,
|
|
3287
3281
|
requiresApproval: apiResponse.access?.requiresApproval,
|
|
3288
3282
|
verifiedAt: /* @__PURE__ */ new Date(),
|