@kya-os/contracts 1.6.2-canary.0 → 1.6.2
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/agentshield-api/endpoints.d.ts +3 -0
- package/dist/agentshield-api/endpoints.js +3 -0
- package/dist/agentshield-api/index.d.ts +2 -2
- package/dist/agentshield-api/index.js +7 -1
- package/dist/agentshield-api/schemas.d.ts +287 -122
- package/dist/agentshield-api/schemas.js +52 -5
- package/dist/agentshield-api/types.d.ts +69 -4
- package/dist/audit/index.d.ts +193 -0
- package/dist/audit/index.js +100 -0
- package/dist/config/identity.d.ts +214 -2
- package/dist/config/identity.js +29 -0
- package/dist/config/index.d.ts +2 -1
- package/dist/config/tool-context.d.ts +34 -0
- package/dist/config/tool-context.js +13 -0
- package/dist/consent/schemas.d.ts +99 -4
- package/dist/consent/schemas.js +39 -1
- package/dist/dashboard-config/schemas.d.ts +1430 -174
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/tool-protection/index.d.ts +478 -2
- package/dist/tool-protection/index.js +89 -2
- package/dist/verifier/index.d.ts +1 -0
- package/dist/verifier/index.js +18 -0
- package/package.json +63 -120
|
@@ -19,6 +19,8 @@ export declare const AGENTSHIELD_API_BASE: "/api/v1/bouncer";
|
|
|
19
19
|
export declare const AGENTSHIELD_ENDPOINTS: {
|
|
20
20
|
/** Submit proofs in batch */
|
|
21
21
|
readonly PROOFS: "/api/v1/bouncer/proofs";
|
|
22
|
+
/** Register a new session with client information */
|
|
23
|
+
readonly SESSIONS: "/api/v1/bouncer/sessions";
|
|
22
24
|
/** Verify delegation by agent DID and scopes */
|
|
23
25
|
readonly DELEGATIONS_VERIFY: "/api/v1/bouncer/delegations/verify";
|
|
24
26
|
/** Get delegation by ID */
|
|
@@ -35,6 +37,7 @@ export declare const AGENTSHIELD_ENDPOINTS: {
|
|
|
35
37
|
*/
|
|
36
38
|
export declare const AGENTSHIELD_METHODS: {
|
|
37
39
|
readonly PROOFS: "POST";
|
|
40
|
+
readonly SESSIONS: "POST";
|
|
38
41
|
readonly DELEGATIONS_VERIFY: "POST";
|
|
39
42
|
readonly DELEGATIONS_GET: "GET";
|
|
40
43
|
readonly DELEGATIONS_CREATE: "POST";
|
|
@@ -22,6 +22,8 @@ exports.AGENTSHIELD_API_BASE = '/api/v1/bouncer';
|
|
|
22
22
|
exports.AGENTSHIELD_ENDPOINTS = {
|
|
23
23
|
/** Submit proofs in batch */
|
|
24
24
|
PROOFS: `${exports.AGENTSHIELD_API_BASE}/proofs`,
|
|
25
|
+
/** Register a new session with client information */
|
|
26
|
+
SESSIONS: `${exports.AGENTSHIELD_API_BASE}/sessions`,
|
|
25
27
|
/** Verify delegation by agent DID and scopes */
|
|
26
28
|
DELEGATIONS_VERIFY: `${exports.AGENTSHIELD_API_BASE}/delegations/verify`,
|
|
27
29
|
/** Get delegation by ID */
|
|
@@ -38,6 +40,7 @@ exports.AGENTSHIELD_ENDPOINTS = {
|
|
|
38
40
|
*/
|
|
39
41
|
exports.AGENTSHIELD_METHODS = {
|
|
40
42
|
PROOFS: 'POST',
|
|
43
|
+
SESSIONS: 'POST',
|
|
41
44
|
DELEGATIONS_VERIFY: 'POST',
|
|
42
45
|
DELEGATIONS_GET: 'GET',
|
|
43
46
|
DELEGATIONS_CREATE: 'POST',
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @package @kya-os/contracts/agentshield-api
|
|
8
8
|
*/
|
|
9
|
-
export type { AgentShieldAPIResponse, AgentShieldAPIErrorResponse, ProofSubmissionRequest, ProofSubmissionResponse, ToolCallContext, ConsentEventContext, BouncerOutcome, VerifyDelegationRequest, VerifyDelegationResponse, VerifyDelegationAPIResponse, DelegationCredential, AgentShieldToolProtection, ToolProtectionConfigResponse, ToolProtectionConfigAPIResponse, CreateDelegationRequest, CreateDelegationResponse, CreateDelegationAPIResponse, RevokeDelegationRequest, RevokeDelegationResponse, RevokeDelegationAPIResponse, } from "./types.js";
|
|
9
|
+
export type { AgentShieldAPIResponse, AgentShieldAPIErrorResponse, ProofSubmissionRequest, ProofSubmissionResponse, ToolCallContext, ConsentEventContext, BouncerOutcome, VerifyDelegationRequest, VerifyDelegationResponse, VerifyDelegationAPIResponse, DelegationCredential, AgentShieldToolProtection, ToolProtectionConfigResponse, ToolProtectionConfigAPIResponse, CreateDelegationRequest, CreateDelegationResponse, CreateDelegationAPIResponse, RevokeDelegationRequest, RevokeDelegationResponse, RevokeDelegationAPIResponse, SessionClientInfo, SessionClientIdentity, RegisterSessionRequest, RegisterSessionResponse, RegisterSessionAPIResponse, } from "./types.js";
|
|
10
10
|
export { AgentShieldAPIError } from "./types.js";
|
|
11
11
|
export type { AgentShieldAPIHeaders } from "./endpoints.js";
|
|
12
12
|
export type { ClearCacheRequest, ClearCacheResponse } from "./admin-types.js";
|
|
13
|
-
export { agentShieldAPIErrorSchema, agentShieldAPIResponseSchema, proofSubmissionRequestSchema, proofSubmissionResponseSchema, delegationCredentialSchema, verifyDelegationRequestSchema, verifyDelegationResponseSchema, verifyDelegationAPIResponseSchema, agentShieldToolProtectionSchema, toolProtectionConfigResponseSchema, toolProtectionConfigAPIResponseSchema, createDelegationRequestSchema, createDelegationResponseSchema, createDelegationAPIResponseSchema, revokeDelegationRequestSchema, revokeDelegationResponseSchema, revokeDelegationAPIResponseSchema, } from "./schemas.js";
|
|
13
|
+
export { agentShieldAPIErrorSchema, agentShieldAPIResponseSchema, proofSubmissionRequestSchema, proofSubmissionResponseSchema, delegationCredentialSchema, verifyDelegationRequestSchema, verifyDelegationResponseSchema, verifyDelegationAPIResponseSchema, agentShieldToolProtectionSchema, toolProtectionConfigResponseSchema, toolProtectionConfigAPIResponseSchema, createDelegationRequestSchema, createDelegationResponseSchema, createDelegationAPIResponseSchema, revokeDelegationRequestSchema, revokeDelegationResponseSchema, revokeDelegationAPIResponseSchema, sessionClientInfoSchema, sessionClientIdentitySchema, registerSessionRequestSchema, registerSessionResponseSchema, registerSessionAPIResponseSchema, } from "./schemas.js";
|
|
14
14
|
export { clearCacheRequestSchema, clearCacheResponseSchema, } from "./admin-schemas.js";
|
|
15
15
|
export { AGENTSHIELD_API_BASE, AGENTSHIELD_ENDPOINTS, AGENTSHIELD_METHODS, } from "./endpoints.js";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @package @kya-os/contracts/agentshield-api
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.AGENTSHIELD_METHODS = exports.AGENTSHIELD_ENDPOINTS = exports.AGENTSHIELD_API_BASE = exports.clearCacheResponseSchema = exports.clearCacheRequestSchema = exports.revokeDelegationAPIResponseSchema = exports.revokeDelegationResponseSchema = exports.revokeDelegationRequestSchema = exports.createDelegationAPIResponseSchema = exports.createDelegationResponseSchema = exports.createDelegationRequestSchema = exports.toolProtectionConfigAPIResponseSchema = exports.toolProtectionConfigResponseSchema = exports.agentShieldToolProtectionSchema = exports.verifyDelegationAPIResponseSchema = exports.verifyDelegationResponseSchema = exports.verifyDelegationRequestSchema = exports.delegationCredentialSchema = exports.proofSubmissionResponseSchema = exports.proofSubmissionRequestSchema = exports.agentShieldAPIResponseSchema = exports.agentShieldAPIErrorSchema = exports.AgentShieldAPIError = void 0;
|
|
11
|
+
exports.AGENTSHIELD_METHODS = exports.AGENTSHIELD_ENDPOINTS = exports.AGENTSHIELD_API_BASE = exports.clearCacheResponseSchema = exports.clearCacheRequestSchema = exports.registerSessionAPIResponseSchema = exports.registerSessionResponseSchema = exports.registerSessionRequestSchema = exports.sessionClientIdentitySchema = exports.sessionClientInfoSchema = exports.revokeDelegationAPIResponseSchema = exports.revokeDelegationResponseSchema = exports.revokeDelegationRequestSchema = exports.createDelegationAPIResponseSchema = exports.createDelegationResponseSchema = exports.createDelegationRequestSchema = exports.toolProtectionConfigAPIResponseSchema = exports.toolProtectionConfigResponseSchema = exports.agentShieldToolProtectionSchema = exports.verifyDelegationAPIResponseSchema = exports.verifyDelegationResponseSchema = exports.verifyDelegationRequestSchema = exports.delegationCredentialSchema = exports.proofSubmissionResponseSchema = exports.proofSubmissionRequestSchema = exports.agentShieldAPIResponseSchema = exports.agentShieldAPIErrorSchema = exports.AgentShieldAPIError = void 0;
|
|
12
12
|
var types_js_1 = require("./types.js");
|
|
13
13
|
Object.defineProperty(exports, "AgentShieldAPIError", { enumerable: true, get: function () { return types_js_1.AgentShieldAPIError; } });
|
|
14
14
|
// Schema exports
|
|
@@ -30,6 +30,12 @@ Object.defineProperty(exports, "createDelegationAPIResponseSchema", { enumerable
|
|
|
30
30
|
Object.defineProperty(exports, "revokeDelegationRequestSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationRequestSchema; } });
|
|
31
31
|
Object.defineProperty(exports, "revokeDelegationResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationResponseSchema; } });
|
|
32
32
|
Object.defineProperty(exports, "revokeDelegationAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.revokeDelegationAPIResponseSchema; } });
|
|
33
|
+
// Session Registration
|
|
34
|
+
Object.defineProperty(exports, "sessionClientInfoSchema", { enumerable: true, get: function () { return schemas_js_1.sessionClientInfoSchema; } });
|
|
35
|
+
Object.defineProperty(exports, "sessionClientIdentitySchema", { enumerable: true, get: function () { return schemas_js_1.sessionClientIdentitySchema; } });
|
|
36
|
+
Object.defineProperty(exports, "registerSessionRequestSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionRequestSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "registerSessionResponseSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionResponseSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "registerSessionAPIResponseSchema", { enumerable: true, get: function () { return schemas_js_1.registerSessionAPIResponseSchema; } });
|
|
33
39
|
var admin_schemas_js_1 = require("./admin-schemas.js");
|
|
34
40
|
Object.defineProperty(exports, "clearCacheRequestSchema", { enumerable: true, get: function () { return admin_schemas_js_1.clearCacheRequestSchema; } });
|
|
35
41
|
Object.defineProperty(exports, "clearCacheResponseSchema", { enumerable: true, get: function () { return admin_schemas_js_1.clearCacheResponseSchema; } });
|