@mindburn/helm-ai-kernel 0.5.1
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/README.md +89 -0
- package/dist/adapters/agent-frameworks.d.ts +160 -0
- package/dist/adapters/agent-frameworks.js +289 -0
- package/dist/adapters/agent-frameworks.test.d.ts +1 -0
- package/dist/adapters/agent-frameworks.test.js +196 -0
- package/dist/client.d.ts +244 -0
- package/dist/client.js +371 -0
- package/dist/generated/google/protobuf/duration.d.ts +99 -0
- package/dist/generated/google/protobuf/duration.js +89 -0
- package/dist/generated/google/protobuf/timestamp.d.ts +129 -0
- package/dist/generated/google/protobuf/timestamp.js +89 -0
- package/dist/generated/helm/authority/v1/authority.d.ts +93 -0
- package/dist/generated/helm/authority/v1/authority.js +583 -0
- package/dist/generated/helm/effects/v1/effects.d.ts +115 -0
- package/dist/generated/helm/effects/v1/effects.js +983 -0
- package/dist/generated/helm/intervention/v1/intervention.d.ts +107 -0
- package/dist/generated/helm/intervention/v1/intervention.js +990 -0
- package/dist/generated/helm/kernel/v1/helm.d.ts +269 -0
- package/dist/generated/helm/kernel/v1/helm.js +2258 -0
- package/dist/generated/helm/truth/v1/truth.d.ts +151 -0
- package/dist/generated/helm/truth/v1/truth.js +1096 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +297 -0
- package/dist/types.gen.d.ts +6348 -0
- package/dist/types.gen.js +4174 -0
- package/package.json +47 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from "vitest";
|
|
2
|
+
import { agentFrameworkAdapters, buildGovernedToolRequest, createAgentFrameworkAdapter, fromAutoGenToolCall, fromCrewAITask, fromLangGraphToolCall, fromLangChainToolCall, fromLlamaIndexToolCall, fromLiteLLMToolCall, fromN8NNodeExecution, fromOpenAIAgentsToolCall, fromPydanticAIToolCall, fromRawMCPToolCall, fromSemanticKernelFunctionCall, fromZapierWebhookCall, toOpenAIFunctionTool, } from "./agent-frameworks.js";
|
|
3
|
+
describe("agent framework adapters", () => {
|
|
4
|
+
it("catalogs the frameworks tracked against Microsoft AGT coverage", () => {
|
|
5
|
+
expect(agentFrameworkAdapters.map((adapter) => adapter.framework)).toEqual([
|
|
6
|
+
"langchain",
|
|
7
|
+
"langgraph",
|
|
8
|
+
"autogen",
|
|
9
|
+
"crewai",
|
|
10
|
+
"openai-agents",
|
|
11
|
+
"semantic-kernel",
|
|
12
|
+
"pydantic-ai",
|
|
13
|
+
"llamaindex",
|
|
14
|
+
"litellm",
|
|
15
|
+
"n8n",
|
|
16
|
+
"zapier-webhook",
|
|
17
|
+
"raw-mcp",
|
|
18
|
+
]);
|
|
19
|
+
});
|
|
20
|
+
it("normalizes LangGraph tool calls", () => {
|
|
21
|
+
const action = fromLangGraphToolCall({
|
|
22
|
+
id: "call-lg",
|
|
23
|
+
name: "web.search",
|
|
24
|
+
args: { query: "agent governance toolkit" },
|
|
25
|
+
metadata: { graph: "due-diligence" },
|
|
26
|
+
});
|
|
27
|
+
expect(action).toMatchObject({
|
|
28
|
+
framework: "langgraph",
|
|
29
|
+
toolName: "web.search",
|
|
30
|
+
toolCallId: "call-lg",
|
|
31
|
+
arguments: { query: "agent governance toolkit" },
|
|
32
|
+
metadata: { graph: "due-diligence" },
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
it("normalizes CrewAI task calls", () => {
|
|
36
|
+
const action = fromCrewAITask({
|
|
37
|
+
id: "crew-call",
|
|
38
|
+
task: "research-task",
|
|
39
|
+
agent: "researcher",
|
|
40
|
+
tool: { name: "fetch_url", description: "Fetch a URL" },
|
|
41
|
+
input: { url: "https://example.test" },
|
|
42
|
+
});
|
|
43
|
+
expect(action).toMatchObject({
|
|
44
|
+
framework: "crewai",
|
|
45
|
+
toolName: "fetch_url",
|
|
46
|
+
taskId: "research-task",
|
|
47
|
+
agentId: "researcher",
|
|
48
|
+
description: "Fetch a URL",
|
|
49
|
+
arguments: { url: "https://example.test" },
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
it("normalizes OpenAI Agents SDK function arguments from JSON", () => {
|
|
53
|
+
const action = fromOpenAIAgentsToolCall({
|
|
54
|
+
id: "call-openai",
|
|
55
|
+
function: {
|
|
56
|
+
name: "file.write",
|
|
57
|
+
arguments: '{"path":"/tmp/out.txt","content":"ok"}',
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
expect(action).toMatchObject({
|
|
61
|
+
framework: "openai-agents",
|
|
62
|
+
toolName: "file.write",
|
|
63
|
+
toolCallId: "call-openai",
|
|
64
|
+
arguments: { path: "/tmp/out.txt", content: "ok" },
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
it("normalizes PydanticAI and LlamaIndex variants", () => {
|
|
68
|
+
expect(fromPydanticAIToolCall({
|
|
69
|
+
tool_call_id: "pd-call",
|
|
70
|
+
tool_name: "lookup_customer",
|
|
71
|
+
args: '{"customer_id":"cus_123"}',
|
|
72
|
+
agent: "support-agent",
|
|
73
|
+
})).toMatchObject({
|
|
74
|
+
framework: "pydantic-ai",
|
|
75
|
+
toolName: "lookup_customer",
|
|
76
|
+
toolCallId: "pd-call",
|
|
77
|
+
agentId: "support-agent",
|
|
78
|
+
arguments: { customer_id: "cus_123" },
|
|
79
|
+
});
|
|
80
|
+
expect(fromLlamaIndexToolCall({
|
|
81
|
+
id: "llama-call",
|
|
82
|
+
toolName: "retrieve_context",
|
|
83
|
+
kwargs: ["policy", "evidence"],
|
|
84
|
+
})).toMatchObject({
|
|
85
|
+
framework: "llamaindex",
|
|
86
|
+
toolName: "retrieve_context",
|
|
87
|
+
toolCallId: "llama-call",
|
|
88
|
+
arguments: { items: ["policy", "evidence"] },
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
it("normalizes the 2026 framework middleware set into pre-dispatch actions", () => {
|
|
92
|
+
expect(fromLangChainToolCall({
|
|
93
|
+
id: "lc-call",
|
|
94
|
+
name: "retriever.lookup",
|
|
95
|
+
args: { q: "boundary" },
|
|
96
|
+
runId: "run-lc",
|
|
97
|
+
})).toMatchObject({
|
|
98
|
+
framework: "langchain",
|
|
99
|
+
toolName: "retriever.lookup",
|
|
100
|
+
runId: "run-lc",
|
|
101
|
+
});
|
|
102
|
+
expect(fromAutoGenToolCall({
|
|
103
|
+
id: "ag-call",
|
|
104
|
+
tool: "shell.exec",
|
|
105
|
+
args: { command: "make test" },
|
|
106
|
+
agent: "coder",
|
|
107
|
+
})).toMatchObject({ framework: "autogen", toolName: "shell.exec", agentId: "coder" });
|
|
108
|
+
expect(fromSemanticKernelFunctionCall({
|
|
109
|
+
pluginName: "Files",
|
|
110
|
+
functionName: "Write",
|
|
111
|
+
arguments: { path: "/tmp/out" },
|
|
112
|
+
})).toMatchObject({ framework: "semantic-kernel", toolName: "Files.Write" });
|
|
113
|
+
expect(fromLiteLLMToolCall({
|
|
114
|
+
function: { name: "db.query", arguments: "{}" },
|
|
115
|
+
model: "gpt-4.1",
|
|
116
|
+
})).toMatchObject({ framework: "litellm", toolName: "db.query" });
|
|
117
|
+
expect(fromN8NNodeExecution({
|
|
118
|
+
id: "n8n-node",
|
|
119
|
+
node: "http.request",
|
|
120
|
+
parameters: { url: "https://example.test" },
|
|
121
|
+
workflowId: "wf-1",
|
|
122
|
+
})).toMatchObject({ framework: "n8n", toolName: "http.request", runId: "wf-1" });
|
|
123
|
+
expect(fromZapierWebhookCall({
|
|
124
|
+
id: "zap-call",
|
|
125
|
+
action: "crm.update",
|
|
126
|
+
payload: { id: "lead-1" },
|
|
127
|
+
zapId: "zap-1",
|
|
128
|
+
})).toMatchObject({ framework: "zapier-webhook", toolName: "crm.update", runId: "zap-1" });
|
|
129
|
+
expect(fromRawMCPToolCall({
|
|
130
|
+
id: "mcp-call",
|
|
131
|
+
serverId: "srv-1",
|
|
132
|
+
toolName: "files.read",
|
|
133
|
+
args: { path: "/tmp/a" },
|
|
134
|
+
scopes: ["tools.call"],
|
|
135
|
+
})).toMatchObject({ framework: "raw-mcp", toolName: "files.read", agentId: "srv-1" });
|
|
136
|
+
});
|
|
137
|
+
it("builds an OpenAI-compatible HELM request with the original action in the policy prompt", () => {
|
|
138
|
+
const action = fromOpenAIAgentsToolCall({
|
|
139
|
+
id: "call-openai",
|
|
140
|
+
function: {
|
|
141
|
+
name: "shell.exec",
|
|
142
|
+
arguments: { command: "npm test" },
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
const request = buildGovernedToolRequest(action, {
|
|
146
|
+
model: "helm-governance",
|
|
147
|
+
});
|
|
148
|
+
expect(request.model).toBe("helm-governance");
|
|
149
|
+
expect(request.temperature).toBe(0);
|
|
150
|
+
expect(request.tools?.[0]._function?.name).toBe("shell_exec");
|
|
151
|
+
expect(request.messages[1].content).toContain('"framework": "openai-agents"');
|
|
152
|
+
expect(request.messages[1].content).toContain('"tool_name": "shell.exec"');
|
|
153
|
+
});
|
|
154
|
+
it("submits through the receipt-bearing client path", async () => {
|
|
155
|
+
const client = {
|
|
156
|
+
chatCompletionsWithReceipt: vi.fn().mockResolvedValue({
|
|
157
|
+
response: { id: "chatcmpl-1" },
|
|
158
|
+
governance: {
|
|
159
|
+
receiptId: "receipt-1",
|
|
160
|
+
status: "APPROVED",
|
|
161
|
+
outputHash: "hash",
|
|
162
|
+
lamportClock: 1,
|
|
163
|
+
reasonCode: "ALLOW",
|
|
164
|
+
decisionId: "decision-1",
|
|
165
|
+
proofGraphNode: "node-1",
|
|
166
|
+
signature: "sig",
|
|
167
|
+
toolCalls: 1,
|
|
168
|
+
},
|
|
169
|
+
}),
|
|
170
|
+
};
|
|
171
|
+
const adapter = createAgentFrameworkAdapter(client, {
|
|
172
|
+
model: "helm-governance",
|
|
173
|
+
metadata: { environment: "test" },
|
|
174
|
+
});
|
|
175
|
+
const result = await adapter.submit(fromLangGraphToolCall({
|
|
176
|
+
name: "search",
|
|
177
|
+
args: { q: "helm" },
|
|
178
|
+
metadata: { run: "r1" },
|
|
179
|
+
}));
|
|
180
|
+
expect(client.chatCompletionsWithReceipt).toHaveBeenCalledTimes(1);
|
|
181
|
+
expect(result.governance.receiptId).toBe("receipt-1");
|
|
182
|
+
expect(result.action.metadata).toEqual({ environment: "test", run: "r1" });
|
|
183
|
+
});
|
|
184
|
+
it("rejects framework events without a tool name", () => {
|
|
185
|
+
expect(() => fromLangGraphToolCall({ args: { query: "missing tool" } })).toThrow("langgraph adapter requires a tool name");
|
|
186
|
+
});
|
|
187
|
+
it("keeps original tool name in metadata while sanitizing OpenAI function names", () => {
|
|
188
|
+
const tool = toOpenAIFunctionTool(fromOpenAIAgentsToolCall({
|
|
189
|
+
function: {
|
|
190
|
+
name: "browser.open/url",
|
|
191
|
+
arguments: {},
|
|
192
|
+
},
|
|
193
|
+
}));
|
|
194
|
+
expect(tool._function?.name).toBe("browser_open_url");
|
|
195
|
+
});
|
|
196
|
+
});
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import type { ChatCompletionRequest, ChatCompletionResponse, ApprovalRequest, Receipt, Session, VerificationResult, ConformanceRequest, ConformanceResult, VersionInfo, HelmError, ReasonCode, DecisionRequest } from './types.gen.js';
|
|
2
|
+
export type { ReasonCode, HelmError };
|
|
3
|
+
export interface EvidenceEnvelopeExportRequest {
|
|
4
|
+
manifest_id: string;
|
|
5
|
+
envelope: 'dsse' | 'jws' | 'in-toto' | 'slsa' | 'sigstore' | 'scitt' | 'cose';
|
|
6
|
+
native_evidence_hash: string;
|
|
7
|
+
subject?: string;
|
|
8
|
+
experimental?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface EvidenceEnvelopeManifest {
|
|
11
|
+
manifest_id: string;
|
|
12
|
+
envelope: string;
|
|
13
|
+
native_evidence_hash: string;
|
|
14
|
+
native_authority: true;
|
|
15
|
+
subject?: string;
|
|
16
|
+
statement_hash?: string;
|
|
17
|
+
payload_type?: string;
|
|
18
|
+
payload_hash?: string;
|
|
19
|
+
experimental?: boolean;
|
|
20
|
+
created_at: string;
|
|
21
|
+
manifest_hash?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface NegativeBoundaryVector {
|
|
24
|
+
id: string;
|
|
25
|
+
category: string;
|
|
26
|
+
trigger: string;
|
|
27
|
+
expected_verdict: 'ALLOW' | 'DENY' | 'ESCALATE';
|
|
28
|
+
expected_reason_code: string;
|
|
29
|
+
must_emit_receipt: boolean;
|
|
30
|
+
must_not_dispatch: boolean;
|
|
31
|
+
must_bind_evidence?: string[];
|
|
32
|
+
}
|
|
33
|
+
export interface McpRegistryDiscoverRequest {
|
|
34
|
+
server_id: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
transport?: string;
|
|
37
|
+
endpoint?: string;
|
|
38
|
+
tool_names?: string[];
|
|
39
|
+
risk?: 'unknown' | 'low' | 'medium' | 'high' | 'critical';
|
|
40
|
+
reason?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface McpRegistryApprovalRequest {
|
|
43
|
+
server_id: string;
|
|
44
|
+
approver_id: string;
|
|
45
|
+
approval_receipt_id: string;
|
|
46
|
+
reason?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface McpQuarantineRecord {
|
|
49
|
+
server_id: string;
|
|
50
|
+
name?: string;
|
|
51
|
+
transport?: string;
|
|
52
|
+
endpoint?: string;
|
|
53
|
+
tool_names?: string[];
|
|
54
|
+
risk: 'unknown' | 'low' | 'medium' | 'high' | 'critical';
|
|
55
|
+
state: 'discovered' | 'quarantined' | 'approved' | 'revoked' | 'expired';
|
|
56
|
+
discovered_at: string;
|
|
57
|
+
approved_at?: string;
|
|
58
|
+
approved_by?: string;
|
|
59
|
+
approval_receipt_id?: string;
|
|
60
|
+
revoked_at?: string;
|
|
61
|
+
expires_at?: string;
|
|
62
|
+
reason?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface SandboxBackendProfile {
|
|
65
|
+
name: string;
|
|
66
|
+
kind: 'wasi-wazero' | 'wasi-wasmtime' | 'native-nsjail' | 'native-gvisor' | 'native-firecracker' | 'hosted-adapter';
|
|
67
|
+
runtime: string;
|
|
68
|
+
hosted: boolean;
|
|
69
|
+
deny_network_by_default: boolean;
|
|
70
|
+
native_isolation: boolean;
|
|
71
|
+
experimental?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface SandboxGrant {
|
|
74
|
+
grant_id: string;
|
|
75
|
+
runtime: string;
|
|
76
|
+
runtime_version?: string;
|
|
77
|
+
profile: string;
|
|
78
|
+
image_digest?: string;
|
|
79
|
+
template_digest?: string;
|
|
80
|
+
filesystem_preopens?: Array<{
|
|
81
|
+
path: string;
|
|
82
|
+
mode: 'ro' | 'rw';
|
|
83
|
+
content_hash?: string;
|
|
84
|
+
}>;
|
|
85
|
+
env: {
|
|
86
|
+
mode: 'deny-all' | 'allowlist' | 'redacted';
|
|
87
|
+
names?: string[];
|
|
88
|
+
names_hash?: string;
|
|
89
|
+
redacted?: boolean;
|
|
90
|
+
};
|
|
91
|
+
network: {
|
|
92
|
+
mode: 'deny-all' | 'allowlist';
|
|
93
|
+
destinations?: string[];
|
|
94
|
+
cidrs?: string[];
|
|
95
|
+
};
|
|
96
|
+
limits?: {
|
|
97
|
+
memory_bytes?: number;
|
|
98
|
+
cpu_time?: number;
|
|
99
|
+
output_bytes?: number;
|
|
100
|
+
open_files?: number;
|
|
101
|
+
};
|
|
102
|
+
declared_at: string;
|
|
103
|
+
policy_epoch?: string;
|
|
104
|
+
grant_hash?: string;
|
|
105
|
+
}
|
|
106
|
+
export type SurfaceRecord = Record<string, unknown>;
|
|
107
|
+
export type BoundaryStatus = SurfaceRecord;
|
|
108
|
+
export type BoundaryCapabilitySummary = SurfaceRecord;
|
|
109
|
+
export type ExecutionBoundaryRecord = SurfaceRecord;
|
|
110
|
+
export type BoundaryRecordVerification = SurfaceRecord;
|
|
111
|
+
export type BoundaryCheckpoint = SurfaceRecord;
|
|
112
|
+
export type MCPAuthorizationProfile = SurfaceRecord;
|
|
113
|
+
export type MCPScanRequest = SurfaceRecord;
|
|
114
|
+
export type MCPScanResult = SurfaceRecord;
|
|
115
|
+
export type MCPAuthorizeCallRequest = SurfaceRecord;
|
|
116
|
+
export type SandboxPreflightRequest = SurfaceRecord;
|
|
117
|
+
export type SandboxPreflightResult = SurfaceRecord;
|
|
118
|
+
export type DemoRunResult = SurfaceRecord;
|
|
119
|
+
export type DemoReceiptVerification = SurfaceRecord;
|
|
120
|
+
export type AuthzSnapshot = SurfaceRecord;
|
|
121
|
+
export type ApprovalCeremony = SurfaceRecord;
|
|
122
|
+
export type ApprovalWebAuthnChallenge = SurfaceRecord;
|
|
123
|
+
export type ApprovalWebAuthnAssertion = SurfaceRecord;
|
|
124
|
+
export type BudgetCeiling = SurfaceRecord;
|
|
125
|
+
export type AgentIdentityProfile = SurfaceRecord;
|
|
126
|
+
export type AuthzHealth = SurfaceRecord;
|
|
127
|
+
export type EvidenceEnvelopeVerification = SurfaceRecord;
|
|
128
|
+
export type EvidenceEnvelopePayload = SurfaceRecord;
|
|
129
|
+
export type TelemetryOTelConfig = SurfaceRecord;
|
|
130
|
+
export type TelemetryExportRequest = SurfaceRecord;
|
|
131
|
+
export type TelemetryExportResult = SurfaceRecord;
|
|
132
|
+
export type CoexistenceCapabilityManifest = SurfaceRecord;
|
|
133
|
+
/** Governance metadata extracted from X-Helm-* response headers. */
|
|
134
|
+
export interface GovernanceMetadata {
|
|
135
|
+
receiptId: string;
|
|
136
|
+
status: string;
|
|
137
|
+
outputHash: string;
|
|
138
|
+
lamportClock: number;
|
|
139
|
+
reasonCode: string;
|
|
140
|
+
decisionId: string;
|
|
141
|
+
proofGraphNode: string;
|
|
142
|
+
signature: string;
|
|
143
|
+
toolCalls: number;
|
|
144
|
+
}
|
|
145
|
+
/** Chat completion response with kernel-issued governance metadata. */
|
|
146
|
+
export interface ChatCompletionWithReceipt {
|
|
147
|
+
response: ChatCompletionResponse;
|
|
148
|
+
governance: GovernanceMetadata;
|
|
149
|
+
}
|
|
150
|
+
/** Thrown when the HELM API returns a non-2xx response. */
|
|
151
|
+
export declare class HelmApiError extends Error {
|
|
152
|
+
readonly status: number;
|
|
153
|
+
readonly reasonCode: ReasonCode;
|
|
154
|
+
readonly details?: Record<string, unknown>;
|
|
155
|
+
readonly body?: unknown;
|
|
156
|
+
constructor(status: number, body: HelmError | unknown);
|
|
157
|
+
}
|
|
158
|
+
export interface HelmClientConfig {
|
|
159
|
+
baseUrl: string;
|
|
160
|
+
apiKey?: string;
|
|
161
|
+
tenantId?: string;
|
|
162
|
+
timeout?: number;
|
|
163
|
+
}
|
|
164
|
+
export declare class HelmClient {
|
|
165
|
+
private readonly baseUrl;
|
|
166
|
+
private readonly headers;
|
|
167
|
+
private readonly timeout;
|
|
168
|
+
constructor(config: HelmClientConfig);
|
|
169
|
+
private request;
|
|
170
|
+
chatCompletions(req: ChatCompletionRequest): Promise<ChatCompletionResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* Send a chat completion request and extract kernel-issued governance metadata
|
|
173
|
+
* from X-Helm-* response headers. Use this instead of chatCompletions() when
|
|
174
|
+
* you need the kernel receipt.
|
|
175
|
+
*/
|
|
176
|
+
chatCompletionsWithReceipt(req: ChatCompletionRequest): Promise<ChatCompletionWithReceipt>;
|
|
177
|
+
evaluateDecision(req: DecisionRequest | SurfaceRecord): Promise<SurfaceRecord>;
|
|
178
|
+
runPublicDemo(actionId: string, args?: SurfaceRecord): Promise<DemoRunResult>;
|
|
179
|
+
verifyPublicDemoReceipt(receipt: SurfaceRecord, expectedReceiptHash: string): Promise<DemoReceiptVerification>;
|
|
180
|
+
approveIntent(req: ApprovalRequest): Promise<Receipt>;
|
|
181
|
+
listSessions(limit?: number, offset?: number): Promise<Session[]>;
|
|
182
|
+
getReceipts(sessionId: string): Promise<Receipt[]>;
|
|
183
|
+
getReceipt(receiptHash: string): Promise<Receipt>;
|
|
184
|
+
exportEvidence(sessionId?: string): Promise<Blob>;
|
|
185
|
+
verifyEvidence(bundle: Blob): Promise<VerificationResult>;
|
|
186
|
+
replayVerify(bundle: Blob): Promise<VerificationResult>;
|
|
187
|
+
createEvidenceEnvelopeManifest(req: EvidenceEnvelopeExportRequest): Promise<EvidenceEnvelopeManifest>;
|
|
188
|
+
listEvidenceEnvelopeManifests(): Promise<EvidenceEnvelopeManifest[]>;
|
|
189
|
+
getEvidenceEnvelopeManifest(manifestId: string): Promise<EvidenceEnvelopeManifest>;
|
|
190
|
+
verifyEvidenceEnvelopeManifest(manifestId: string): Promise<EvidenceEnvelopeVerification>;
|
|
191
|
+
getEvidenceEnvelopePayload(manifestId: string): Promise<EvidenceEnvelopePayload>;
|
|
192
|
+
getBoundaryStatus(): Promise<BoundaryStatus>;
|
|
193
|
+
listBoundaryCapabilities(): Promise<BoundaryCapabilitySummary[]>;
|
|
194
|
+
listBoundaryRecords(query?: Record<string, string | number | undefined>): Promise<ExecutionBoundaryRecord[]>;
|
|
195
|
+
getBoundaryRecord(recordId: string): Promise<ExecutionBoundaryRecord>;
|
|
196
|
+
verifyBoundaryRecord(recordId: string): Promise<BoundaryRecordVerification>;
|
|
197
|
+
listBoundaryCheckpoints(): Promise<BoundaryCheckpoint[]>;
|
|
198
|
+
createBoundaryCheckpoint(): Promise<BoundaryCheckpoint>;
|
|
199
|
+
verifyBoundaryCheckpoint(checkpointId: string): Promise<SurfaceRecord>;
|
|
200
|
+
conformanceRun(req: ConformanceRequest): Promise<ConformanceResult>;
|
|
201
|
+
getConformanceReport(reportId: string): Promise<ConformanceResult>;
|
|
202
|
+
listConformanceReports(): Promise<ConformanceResult[]>;
|
|
203
|
+
listConformanceVectors(): Promise<NegativeBoundaryVector[]>;
|
|
204
|
+
listNegativeConformanceVectors(): Promise<NegativeBoundaryVector[]>;
|
|
205
|
+
listMcpRegistry(): Promise<McpQuarantineRecord[]>;
|
|
206
|
+
discoverMcpServer(req: McpRegistryDiscoverRequest): Promise<McpQuarantineRecord>;
|
|
207
|
+
approveMcpServer(req: McpRegistryApprovalRequest): Promise<McpQuarantineRecord>;
|
|
208
|
+
getMcpRegistryRecord(serverId: string): Promise<McpQuarantineRecord>;
|
|
209
|
+
approveMcpRegistryRecord(serverId: string, req: Partial<McpRegistryApprovalRequest>): Promise<McpQuarantineRecord>;
|
|
210
|
+
revokeMcpRegistryRecord(serverId: string, reason?: string): Promise<McpQuarantineRecord>;
|
|
211
|
+
scanMcpServer(req: MCPScanRequest): Promise<MCPScanResult>;
|
|
212
|
+
listMcpAuthProfiles(): Promise<MCPAuthorizationProfile[]>;
|
|
213
|
+
putMcpAuthProfile(profileId: string, profile: MCPAuthorizationProfile): Promise<MCPAuthorizationProfile>;
|
|
214
|
+
authorizeMcpCall(req: MCPAuthorizeCallRequest): Promise<ExecutionBoundaryRecord>;
|
|
215
|
+
inspectSandboxGrants(): Promise<SandboxBackendProfile[]>;
|
|
216
|
+
inspectSandboxGrants(runtime: string, profile?: string, policyEpoch?: string): Promise<SandboxGrant>;
|
|
217
|
+
listSandboxProfiles(): Promise<SandboxBackendProfile[]>;
|
|
218
|
+
listSandboxGrants(): Promise<SandboxGrant[]>;
|
|
219
|
+
createSandboxGrant(req: SurfaceRecord): Promise<SandboxGrant>;
|
|
220
|
+
getSandboxGrant(grantId: string): Promise<SandboxGrant>;
|
|
221
|
+
verifySandboxGrant(grantId: string): Promise<SandboxPreflightResult>;
|
|
222
|
+
preflightSandboxGrant(req: SandboxPreflightRequest): Promise<SandboxPreflightResult>;
|
|
223
|
+
listAgentIdentities(): Promise<AgentIdentityProfile[]>;
|
|
224
|
+
getAuthzHealth(): Promise<AuthzHealth>;
|
|
225
|
+
checkAuthz(req: SurfaceRecord): Promise<AuthzSnapshot>;
|
|
226
|
+
listAuthzSnapshots(): Promise<AuthzSnapshot[]>;
|
|
227
|
+
getAuthzSnapshot(snapshotId: string): Promise<AuthzSnapshot>;
|
|
228
|
+
listApprovalCeremonies(): Promise<ApprovalCeremony[]>;
|
|
229
|
+
createApprovalCeremony(req: ApprovalCeremony): Promise<ApprovalCeremony>;
|
|
230
|
+
transitionApprovalCeremony(approvalId: string, action: 'approve' | 'deny' | 'revoke', req?: SurfaceRecord): Promise<ApprovalCeremony>;
|
|
231
|
+
createApprovalWebAuthnChallenge(approvalId: string, req?: SurfaceRecord): Promise<ApprovalWebAuthnChallenge>;
|
|
232
|
+
assertApprovalWebAuthnChallenge(approvalId: string, req: ApprovalWebAuthnAssertion): Promise<ApprovalCeremony>;
|
|
233
|
+
listBudgetCeilings(): Promise<BudgetCeiling[]>;
|
|
234
|
+
putBudgetCeiling(budgetId: string, req: BudgetCeiling): Promise<BudgetCeiling>;
|
|
235
|
+
getCoexistenceCapabilities(): Promise<CoexistenceCapabilityManifest>;
|
|
236
|
+
getTelemetryOTelConfig(): Promise<TelemetryOTelConfig>;
|
|
237
|
+
exportTelemetry(req: TelemetryExportRequest): Promise<TelemetryExportResult>;
|
|
238
|
+
health(): Promise<{
|
|
239
|
+
status: string;
|
|
240
|
+
version: string;
|
|
241
|
+
}>;
|
|
242
|
+
version(): Promise<VersionInfo>;
|
|
243
|
+
}
|
|
244
|
+
export default HelmClient;
|