@kya-os/contracts 1.5.3-canary.16 → 1.5.3-canary.18
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/.turbo/turbo-build.log +17 -0
- package/.turbo/turbo-test$colon$coverage.log +28 -0
- package/.turbo/turbo-test.log +32 -0
- package/coverage/coverage-final.json +38 -0
- package/dist/agentshield-api/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/schemas.d.ts +86 -112
- package/dist/audit/index.d.ts +24 -24
- package/dist/config/identity.d.ts +6 -6
- package/dist/consent/schemas.d.ts +87 -69
- package/dist/consent/schemas.js +10 -0
- package/dist/dashboard-config/schemas.d.ts +2553 -1349
- package/dist/handshake.d.ts +14 -14
- package/dist/tool-protection/index.d.ts +418 -8
- package/dist/tool-protection/index.js +61 -2
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +37 -129
- package/schemas/cli/register-output/v1.0.0.json +69 -0
- package/schemas/identity/v1.0.0.json +46 -0
- package/schemas/proof/v1.0.0.json +80 -0
- package/schemas/registry/receipt-v1.0.0.json +60 -0
- package/schemas/verifier/verify-page/v1.0.0.json +94 -0
- package/schemas/well-known/agent/v1.0.0.json +67 -0
- package/schemas/well-known/did/v1.0.0.json +174 -0
- package/scripts/emit-schemas.js +11 -0
- package/src/agentshield-api/admin-schemas.ts +31 -0
- package/src/agentshield-api/admin-types.ts +47 -0
- package/src/agentshield-api/endpoints.ts +60 -0
- package/src/agentshield-api/index.ts +70 -0
- package/src/agentshield-api/schemas.ts +304 -0
- package/src/agentshield-api/types.ts +317 -0
- package/src/audit/index.ts +128 -0
- package/src/cli.ts +156 -0
- package/src/config/base.ts +107 -0
- package/src/config/builder.ts +97 -0
- package/src/config/delegation.ts +232 -0
- package/src/config/identity.ts +252 -0
- package/src/config/index.ts +78 -0
- package/src/config/proofing.ts +138 -0
- package/src/config/tool-context.ts +41 -0
- package/src/config/tool-protection.ts +174 -0
- package/src/consent/index.ts +32 -0
- package/src/consent/schemas.ts +334 -0
- package/src/consent/types.ts +199 -0
- package/src/dashboard-config/default-config.json +86 -0
- package/src/dashboard-config/default-config.ts +266 -0
- package/src/dashboard-config/index.ts +48 -0
- package/src/dashboard-config/schemas.ts +286 -0
- package/src/dashboard-config/types.ts +404 -0
- package/src/delegation/constraints.ts +267 -0
- package/src/delegation/index.ts +8 -0
- package/src/delegation/schemas.ts +595 -0
- package/src/did/index.ts +9 -0
- package/src/did/resolve-contract.ts +255 -0
- package/src/did/schemas.ts +190 -0
- package/src/did/types.ts +224 -0
- package/src/env/constants.ts +70 -0
- package/src/env/index.ts +5 -0
- package/src/handshake.ts +125 -0
- package/src/index.ts +45 -0
- package/src/proof/index.ts +31 -0
- package/src/proof/proof-record.ts +163 -0
- package/src/proof/signing-spec.ts +146 -0
- package/src/proof.ts +99 -0
- package/src/registry.ts +146 -0
- package/src/runtime/errors.ts +153 -0
- package/src/runtime/headers.ts +136 -0
- package/src/runtime/index.ts +6 -0
- package/src/test.ts +143 -0
- package/src/tlkrc/index.ts +5 -0
- package/src/tlkrc/rotation.ts +153 -0
- package/src/tool-protection/index.ts +343 -0
- package/src/utils/validation.ts +93 -0
- package/src/vc/index.ts +8 -0
- package/src/vc/schemas.ts +277 -0
- package/src/vc/statuslist.ts +279 -0
- package/src/verifier.ts +92 -0
- package/src/well-known/index.ts +237 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.kya-os.ai/xmcp-i/well-known/agent/v1.0.0",
|
|
4
|
+
"title": "MCP-I Agent Document",
|
|
5
|
+
"description": "Schema for /.well-known/agent.json endpoint (MCP-I capabilities). Top-level schema uses additionalProperties:false for strict validation - new top-level fields require explicit schema version bumps to ensure deliberate evolution. Vendor-specific extensions should be placed in the 'metadata' object which allows additionalProperties:true for backward-compatible extensibility.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Agent DID identifier",
|
|
11
|
+
"pattern": "^did:"
|
|
12
|
+
},
|
|
13
|
+
"capabilities": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"description": "Agent capabilities by protocol",
|
|
16
|
+
"properties": {
|
|
17
|
+
"mcp-i": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"description": "MCP-I protocol capabilities",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"handshake",
|
|
24
|
+
"signing",
|
|
25
|
+
"verification"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"minItems": 3,
|
|
29
|
+
"maxItems": 3
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": ["mcp-i"],
|
|
33
|
+
"additionalProperties": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"metadata": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"description": "Optional agent metadata. This object is the designated extensibility point - vendors can add custom fields here without requiring schema version changes. Use this for implementation-specific data, vendor identifiers, custom features, etc.",
|
|
43
|
+
"properties": {
|
|
44
|
+
"name": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Human-readable service name"
|
|
47
|
+
},
|
|
48
|
+
"serviceEndpoint": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Service endpoint URL",
|
|
51
|
+
"format": "uri"
|
|
52
|
+
},
|
|
53
|
+
"description": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Service description"
|
|
56
|
+
},
|
|
57
|
+
"version": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Service version"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"additionalProperties": true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": ["id", "capabilities"],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.kya-os.ai/xmcp-i/well-known/did/v1.0.0",
|
|
4
|
+
"title": "W3C DID Document",
|
|
5
|
+
"description": "Schema for /.well-known/did.json endpoint (W3C DID Core specification)",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@context": {
|
|
9
|
+
"description": "JSON-LD context - must be W3C DID v1 string or array with W3C DID v1 as first element",
|
|
10
|
+
"oneOf": [
|
|
11
|
+
{
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "https://www.w3.org/ns/did/v1"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "array",
|
|
17
|
+
"minItems": 1,
|
|
18
|
+
"maxItems": 10,
|
|
19
|
+
"items": {
|
|
20
|
+
"oneOf": [
|
|
21
|
+
{
|
|
22
|
+
"const": "https://www.w3.org/ns/did/v1"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"contains": {
|
|
30
|
+
"const": "https://www.w3.org/ns/did/v1"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
},
|
|
36
|
+
"id": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "DID identifier",
|
|
39
|
+
"pattern": "^did:"
|
|
40
|
+
},
|
|
41
|
+
"verificationMethod": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"description": "Verification methods",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"required": ["id", "type", "controller"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"id": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Verification method ID"
|
|
51
|
+
},
|
|
52
|
+
"type": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Verification method type",
|
|
55
|
+
"enum": [
|
|
56
|
+
"Ed25519VerificationKey2020",
|
|
57
|
+
"Ed25519VerificationKey2018",
|
|
58
|
+
"JsonWebKey2020"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"controller": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Controller DID",
|
|
64
|
+
"pattern": "^did:"
|
|
65
|
+
},
|
|
66
|
+
"publicKeyBase64": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "Base64-encoded public key"
|
|
69
|
+
},
|
|
70
|
+
"publicKeyMultibase": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"description": "Multibase-encoded public key"
|
|
73
|
+
},
|
|
74
|
+
"publicKeyJwk": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"description": "JSON Web Key"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"anyOf": [
|
|
80
|
+
{
|
|
81
|
+
"properties": {
|
|
82
|
+
"publicKeyBase64": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": ["publicKeyBase64"]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"properties": {
|
|
90
|
+
"publicKeyMultibase": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": ["publicKeyMultibase"]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"properties": {
|
|
98
|
+
"publicKeyJwk": {
|
|
99
|
+
"type": "object"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": ["publicKeyJwk"]
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"minItems": 1
|
|
107
|
+
},
|
|
108
|
+
"authentication": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"description": "Authentication methods",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"minItems": 1
|
|
115
|
+
},
|
|
116
|
+
"assertionMethod": {
|
|
117
|
+
"type": "array",
|
|
118
|
+
"description": "Assertion methods",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"keyAgreement": {
|
|
124
|
+
"type": "array",
|
|
125
|
+
"description": "Key agreement methods",
|
|
126
|
+
"items": {
|
|
127
|
+
"type": "string"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"capabilityInvocation": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"description": "Capability invocation methods",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"capabilityDelegation": {
|
|
138
|
+
"type": "array",
|
|
139
|
+
"description": "Capability delegation methods",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"service": {
|
|
145
|
+
"type": "array",
|
|
146
|
+
"description": "Service endpoints",
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"id": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"type": {
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"serviceEndpoint": {
|
|
157
|
+
"oneOf": [
|
|
158
|
+
{
|
|
159
|
+
"type": "string",
|
|
160
|
+
"format": "uri"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "object"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": ["id", "type", "serviceEndpoint"]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": ["@context", "id", "verificationMethod", "authentication"],
|
|
173
|
+
"additionalProperties": true
|
|
174
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Schema Emission Script
|
|
4
|
+
*
|
|
5
|
+
* This script generates JSON Schemas from Zod schemas for interoperability
|
|
6
|
+
* with other languages and validation tools.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// Placeholder - will be implemented after Zod schemas are created
|
|
10
|
+
console.log('Schema emission script - to be implemented');
|
|
11
|
+
process.exit(0);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentShield Admin API Validation Schemas
|
|
3
|
+
*
|
|
4
|
+
* Zod schemas for administrative operations in AgentShield.
|
|
5
|
+
*
|
|
6
|
+
* @package @kya-os/contracts/agentshield-api
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Request schema for clearing agent cache
|
|
13
|
+
*/
|
|
14
|
+
export const clearCacheRequestSchema = z.object({
|
|
15
|
+
agent_did: z.string().min(1).describe('The DID of the agent whose cache should be cleared'),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Response schema for clear cache operation
|
|
20
|
+
*/
|
|
21
|
+
export const clearCacheResponseSchema = z.object({
|
|
22
|
+
message: z.string().describe('Human-readable message about the operation result'),
|
|
23
|
+
agent_did: z.string().describe('The agent DID that was cleared'),
|
|
24
|
+
project_id: z.string().nullable().describe('The project ID if available'),
|
|
25
|
+
cache_key: z.string().describe('The cache key that was cleared'),
|
|
26
|
+
old_cache_key: z.string().nullable().describe('Old cache key that was also cleared (for migration)'),
|
|
27
|
+
had_value: z.boolean().describe('Whether the cache entry existed before clearing'),
|
|
28
|
+
had_old_value: z.boolean().describe('Whether the old cache entry existed before clearing'),
|
|
29
|
+
cleared: z.boolean().describe('Whether the cache was successfully cleared'),
|
|
30
|
+
});
|
|
31
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentShield Admin API Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* TypeScript interfaces for administrative operations in AgentShield.
|
|
5
|
+
* These types ensure parity between xmcp-i admin endpoints and the AgentShield service.
|
|
6
|
+
*
|
|
7
|
+
* @package @kya-os/contracts/agentshield-api
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Request to clear agent cache
|
|
12
|
+
* POST /admin/clear-cache
|
|
13
|
+
*/
|
|
14
|
+
export interface ClearCacheRequest {
|
|
15
|
+
/** The DID of the agent whose cache should be cleared */
|
|
16
|
+
agent_did: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Response from clear cache operation
|
|
21
|
+
*/
|
|
22
|
+
export interface ClearCacheResponse {
|
|
23
|
+
/** Human-readable message about the operation result */
|
|
24
|
+
message: string;
|
|
25
|
+
|
|
26
|
+
/** The agent DID that was cleared */
|
|
27
|
+
agent_did: string;
|
|
28
|
+
|
|
29
|
+
/** The project ID if available */
|
|
30
|
+
project_id: string | null;
|
|
31
|
+
|
|
32
|
+
/** The cache key that was cleared */
|
|
33
|
+
cache_key: string;
|
|
34
|
+
|
|
35
|
+
/** Old cache key that was also cleared (for migration) */
|
|
36
|
+
old_cache_key: string | null;
|
|
37
|
+
|
|
38
|
+
/** Whether the cache entry existed before clearing */
|
|
39
|
+
had_value: boolean;
|
|
40
|
+
|
|
41
|
+
/** Whether the old cache entry existed before clearing */
|
|
42
|
+
had_old_value: boolean;
|
|
43
|
+
|
|
44
|
+
/** Whether the cache was successfully cleared */
|
|
45
|
+
cleared: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentShield/Bouncer API Endpoint Constants
|
|
3
|
+
*
|
|
4
|
+
* Centralized endpoint definitions to prevent hardcoded URLs
|
|
5
|
+
* and ensure consistency across all API clients.
|
|
6
|
+
*
|
|
7
|
+
* @package @kya-os/contracts/agentshield-api
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Base path for all AgentShield/Bouncer API endpoints
|
|
12
|
+
*/
|
|
13
|
+
export const AGENTSHIELD_API_BASE = '/api/v1/bouncer' as const;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* AgentShield API endpoint paths
|
|
17
|
+
*
|
|
18
|
+
* These are relative paths that should be appended to the base API URL.
|
|
19
|
+
* Example: `${apiUrl}${AGENTSHIELD_ENDPOINTS.PROOFS}`
|
|
20
|
+
*/
|
|
21
|
+
export const AGENTSHIELD_ENDPOINTS = {
|
|
22
|
+
/** Submit proofs in batch */
|
|
23
|
+
PROOFS: `${AGENTSHIELD_API_BASE}/proofs` as const,
|
|
24
|
+
|
|
25
|
+
/** Verify delegation by agent DID and scopes */
|
|
26
|
+
DELEGATIONS_VERIFY: `${AGENTSHIELD_API_BASE}/delegations/verify` as const,
|
|
27
|
+
|
|
28
|
+
/** Get delegation by ID */
|
|
29
|
+
DELEGATIONS_GET: (id: string) => `${AGENTSHIELD_API_BASE}/delegations/${id}` as const,
|
|
30
|
+
|
|
31
|
+
/** Create new delegation */
|
|
32
|
+
DELEGATIONS_CREATE: `${AGENTSHIELD_API_BASE}/delegations` as const,
|
|
33
|
+
|
|
34
|
+
/** Revoke delegation */
|
|
35
|
+
DELEGATIONS_REVOKE: (id: string) => `${AGENTSHIELD_API_BASE}/delegations/${id}/revoke` as const,
|
|
36
|
+
|
|
37
|
+
/** Get server configuration */
|
|
38
|
+
CONFIG: (projectId: string) => `${AGENTSHIELD_API_BASE}/projects/${projectId}/config` as const,
|
|
39
|
+
} as const;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* HTTP methods for each endpoint
|
|
43
|
+
*/
|
|
44
|
+
export const AGENTSHIELD_METHODS = {
|
|
45
|
+
PROOFS: 'POST' as const,
|
|
46
|
+
DELEGATIONS_VERIFY: 'POST' as const,
|
|
47
|
+
DELEGATIONS_GET: 'GET' as const,
|
|
48
|
+
DELEGATIONS_CREATE: 'POST' as const,
|
|
49
|
+
DELEGATIONS_REVOKE: 'POST' as const,
|
|
50
|
+
CONFIG: 'GET' as const,
|
|
51
|
+
} as const;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Required headers for AgentShield API requests
|
|
55
|
+
*/
|
|
56
|
+
export interface AgentShieldAPIHeaders {
|
|
57
|
+
'Content-Type': 'application/json';
|
|
58
|
+
'Authorization': `Bearer ${string}`;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgentShield/Bouncer API Contracts
|
|
3
|
+
*
|
|
4
|
+
* Centralized type definitions, validation schemas, and endpoint constants
|
|
5
|
+
* for the AgentShield dashboard API integration.
|
|
6
|
+
*
|
|
7
|
+
* @package @kya-os/contracts/agentshield-api
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// Type exports
|
|
11
|
+
export type {
|
|
12
|
+
AgentShieldAPIResponse,
|
|
13
|
+
AgentShieldAPIErrorResponse,
|
|
14
|
+
ProofSubmissionRequest,
|
|
15
|
+
ProofSubmissionResponse,
|
|
16
|
+
ToolCallContext,
|
|
17
|
+
ConsentEventContext,
|
|
18
|
+
BouncerOutcome,
|
|
19
|
+
VerifyDelegationRequest,
|
|
20
|
+
VerifyDelegationResponse,
|
|
21
|
+
VerifyDelegationAPIResponse,
|
|
22
|
+
DelegationCredential,
|
|
23
|
+
AgentShieldToolProtection,
|
|
24
|
+
ToolProtectionConfigResponse,
|
|
25
|
+
ToolProtectionConfigAPIResponse,
|
|
26
|
+
CreateDelegationRequest,
|
|
27
|
+
CreateDelegationResponse,
|
|
28
|
+
CreateDelegationAPIResponse,
|
|
29
|
+
RevokeDelegationRequest,
|
|
30
|
+
RevokeDelegationResponse,
|
|
31
|
+
RevokeDelegationAPIResponse,
|
|
32
|
+
} from "./types.js";
|
|
33
|
+
|
|
34
|
+
export { AgentShieldAPIError } from "./types.js";
|
|
35
|
+
export type { AgentShieldAPIHeaders } from "./endpoints.js";
|
|
36
|
+
|
|
37
|
+
export type { ClearCacheRequest, ClearCacheResponse } from "./admin-types.js";
|
|
38
|
+
|
|
39
|
+
// Schema exports
|
|
40
|
+
export {
|
|
41
|
+
agentShieldAPIErrorSchema,
|
|
42
|
+
agentShieldAPIResponseSchema,
|
|
43
|
+
proofSubmissionRequestSchema,
|
|
44
|
+
proofSubmissionResponseSchema,
|
|
45
|
+
delegationCredentialSchema,
|
|
46
|
+
verifyDelegationRequestSchema,
|
|
47
|
+
verifyDelegationResponseSchema,
|
|
48
|
+
verifyDelegationAPIResponseSchema,
|
|
49
|
+
agentShieldToolProtectionSchema,
|
|
50
|
+
toolProtectionConfigResponseSchema,
|
|
51
|
+
toolProtectionConfigAPIResponseSchema,
|
|
52
|
+
createDelegationRequestSchema,
|
|
53
|
+
createDelegationResponseSchema,
|
|
54
|
+
createDelegationAPIResponseSchema,
|
|
55
|
+
revokeDelegationRequestSchema,
|
|
56
|
+
revokeDelegationResponseSchema,
|
|
57
|
+
revokeDelegationAPIResponseSchema,
|
|
58
|
+
} from "./schemas.js";
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
clearCacheRequestSchema,
|
|
62
|
+
clearCacheResponseSchema,
|
|
63
|
+
} from "./admin-schemas.js";
|
|
64
|
+
|
|
65
|
+
// Endpoint exports
|
|
66
|
+
export {
|
|
67
|
+
AGENTSHIELD_API_BASE,
|
|
68
|
+
AGENTSHIELD_ENDPOINTS,
|
|
69
|
+
AGENTSHIELD_METHODS,
|
|
70
|
+
} from "./endpoints.js";
|