protect-mcp 0.5.0 → 0.5.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/README.md +152 -161
- package/dist/{chunk-IUFFDQYZ.mjs → chunk-IWDR5WU3.mjs} +1 -1
- package/dist/{chunk-V52W3XIN.mjs → chunk-N4F76LTC.mjs} +12 -8
- package/dist/{chunk-IAJJA5IW.mjs → chunk-Q4KOQUKV.mjs} +1 -1
- package/dist/{chunk-YKM6W6T7.mjs → chunk-W4U5VNEC.mjs} +2 -2
- package/dist/cli.js +12 -8
- package/dist/cli.mjs +4 -4
- package/dist/hook-server.js +12 -8
- package/dist/hook-server.mjs +2 -2
- package/dist/{http-transport-GXIXLVJQ.mjs → http-transport-PWCK7JHZ.mjs} +2 -2
- package/dist/index.d.mts +118 -1
- package/dist/index.d.ts +118 -1
- package/dist/index.js +289 -8
- package/dist/index.mjs +279 -4
- package/package.json +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -539,6 +539,45 @@ interface CedarPolicySet {
|
|
|
539
539
|
/** Filenames loaded */
|
|
540
540
|
files: string[];
|
|
541
541
|
}
|
|
542
|
+
interface CedarEvalRequest {
|
|
543
|
+
/** Tool name being called */
|
|
544
|
+
tool: string;
|
|
545
|
+
/** Trust tier of the agent */
|
|
546
|
+
tier: TrustTier;
|
|
547
|
+
/** Agent ID (optional) */
|
|
548
|
+
agentId?: string;
|
|
549
|
+
/** Additional context fields */
|
|
550
|
+
context?: Record<string, unknown>;
|
|
551
|
+
/** Tool input (for schema-validated evaluation) */
|
|
552
|
+
toolInput?: Record<string, unknown>;
|
|
553
|
+
}
|
|
554
|
+
/** Cedar schema for typed policy evaluation (generated by cedar-schema.ts) */
|
|
555
|
+
interface CedarSchema {
|
|
556
|
+
/** The schema as a JSON object for Cedar WASM */
|
|
557
|
+
schemaJson: Record<string, unknown> | null;
|
|
558
|
+
/** Namespace used in the schema */
|
|
559
|
+
namespace?: string;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Load all .cedar files from a directory and return a compiled policy set.
|
|
563
|
+
*
|
|
564
|
+
* Files are sorted alphabetically for deterministic digest computation.
|
|
565
|
+
* Throws if the directory doesn't exist or contains no .cedar files.
|
|
566
|
+
*/
|
|
567
|
+
declare function loadCedarPolicies(dirPath: string): CedarPolicySet;
|
|
568
|
+
/**
|
|
569
|
+
* Evaluate a Cedar policy set against a tool call.
|
|
570
|
+
*
|
|
571
|
+
* Returns a standard ExternalDecision compatible with the gateway's
|
|
572
|
+
* decision pipeline. If Cedar WASM is not available, returns a
|
|
573
|
+
* fallback allow decision (fail-open, logged).
|
|
574
|
+
*/
|
|
575
|
+
declare function evaluateCedar(policySet: CedarPolicySet, req: CedarEvalRequest, schema?: CedarSchema): Promise<ExternalDecision>;
|
|
576
|
+
/**
|
|
577
|
+
* Validate that Cedar WASM is available.
|
|
578
|
+
* Useful for CLI startup diagnostics.
|
|
579
|
+
*/
|
|
580
|
+
declare function isCedarAvailable(): Promise<boolean>;
|
|
542
581
|
|
|
543
582
|
/**
|
|
544
583
|
* MCP tool-calling gateway that intercepts JSON-RPC requests,
|
|
@@ -1313,6 +1352,84 @@ declare function validateManifest(manifest: unknown): string[];
|
|
|
1313
1352
|
*/
|
|
1314
1353
|
declare function validateEvidenceReceipt(receipt: unknown): string[];
|
|
1315
1354
|
|
|
1355
|
+
/**
|
|
1356
|
+
* @scopeblind/protect-mcp — Cedar Schema Generator for MCP Tools
|
|
1357
|
+
*
|
|
1358
|
+
* Auto-generates a Cedar authorization schema from MCP tool descriptions.
|
|
1359
|
+
* This enables typed Cedar policies that reference tool input attributes:
|
|
1360
|
+
*
|
|
1361
|
+
* permit(principal, action == Action::"read_file", resource)
|
|
1362
|
+
* when { context.input.path like "./workspace/*" };
|
|
1363
|
+
*
|
|
1364
|
+
* Compatible with cedar-policy/cedar-for-agents schema format.
|
|
1365
|
+
* Designed to replace `schema: null` in Cedar WASM evaluations.
|
|
1366
|
+
*
|
|
1367
|
+
* @see https://github.com/cedar-policy/cedar-for-agents
|
|
1368
|
+
* @standard RFC 8785 (JCS), Cedar Policy Language v4
|
|
1369
|
+
*/
|
|
1370
|
+
/** MCP tool description from tools/list response */
|
|
1371
|
+
interface McpToolDescription {
|
|
1372
|
+
name: string;
|
|
1373
|
+
description?: string;
|
|
1374
|
+
inputSchema?: JsonSchema;
|
|
1375
|
+
}
|
|
1376
|
+
/** Subset of JSON Schema that MCP tools use */
|
|
1377
|
+
interface JsonSchema {
|
|
1378
|
+
type?: string | string[];
|
|
1379
|
+
properties?: Record<string, JsonSchema>;
|
|
1380
|
+
required?: string[];
|
|
1381
|
+
items?: JsonSchema;
|
|
1382
|
+
enum?: (string | number | boolean)[];
|
|
1383
|
+
format?: string;
|
|
1384
|
+
description?: string;
|
|
1385
|
+
additionalProperties?: boolean | JsonSchema;
|
|
1386
|
+
anyOf?: JsonSchema[];
|
|
1387
|
+
oneOf?: JsonSchema[];
|
|
1388
|
+
}
|
|
1389
|
+
/** Generated Cedar schema components */
|
|
1390
|
+
interface CedarSchemaResult {
|
|
1391
|
+
/** The .cedarschema text (human-readable Cedar schema format) */
|
|
1392
|
+
schemaText: string;
|
|
1393
|
+
/** The schema as a JSON object (for passing to Cedar WASM) */
|
|
1394
|
+
schemaJson: Record<string, unknown>;
|
|
1395
|
+
/** Number of tools mapped */
|
|
1396
|
+
toolCount: number;
|
|
1397
|
+
/** Tool names included */
|
|
1398
|
+
tools: string[];
|
|
1399
|
+
}
|
|
1400
|
+
interface SchemaGeneratorConfig {
|
|
1401
|
+
/** Namespace for generated types (default: "ScopeBlind") */
|
|
1402
|
+
namespace?: string;
|
|
1403
|
+
/** Include agent tier as principal attribute (default: true) */
|
|
1404
|
+
includeTier?: boolean;
|
|
1405
|
+
/** Include timestamp context (default: true) */
|
|
1406
|
+
includeTimestamp?: boolean;
|
|
1407
|
+
/** Include agent_id as principal attribute (default: true) */
|
|
1408
|
+
includeAgentId?: boolean;
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Generate a Cedar schema from MCP tool descriptions.
|
|
1412
|
+
*
|
|
1413
|
+
* Produces both human-readable .cedarschema text and the JSON
|
|
1414
|
+
* representation that Cedar WASM accepts.
|
|
1415
|
+
*
|
|
1416
|
+
* The generated schema defines:
|
|
1417
|
+
* - Agent entity type (principal) with tier and agent_id attributes
|
|
1418
|
+
* - Tool entity type (resource)
|
|
1419
|
+
* - One action per MCP tool, with typed input context
|
|
1420
|
+
* - A parent action "MCP::Tool::call" for blanket policies
|
|
1421
|
+
*
|
|
1422
|
+
* This enables policies like:
|
|
1423
|
+
* forbid(principal, action == Action::"execute_command", resource)
|
|
1424
|
+
* when { context.input has "command" && context.input.command like "rm *" };
|
|
1425
|
+
*/
|
|
1426
|
+
declare function generateCedarSchema(tools: McpToolDescription[], config?: SchemaGeneratorConfig): CedarSchemaResult;
|
|
1427
|
+
/**
|
|
1428
|
+
* Generate a Cedar schema stub file for customization.
|
|
1429
|
+
* This is the starting point for users who want to extend the auto-generated schema.
|
|
1430
|
+
*/
|
|
1431
|
+
declare function generateSchemaStub(namespace?: string): string;
|
|
1432
|
+
|
|
1316
1433
|
/**
|
|
1317
1434
|
* Sigstore Rekor Transparency Log Anchoring
|
|
1318
1435
|
*
|
|
@@ -2639,4 +2756,4 @@ declare function confidentialInference(_prompt: string, _config: ConfidentialInf
|
|
|
2639
2756
|
receipt: Record<string, unknown>;
|
|
2640
2757
|
}>;
|
|
2641
2758
|
|
|
2642
|
-
export { type ActionReceipt, type AdmissionResult, type AgentId, type AgentManifest, type ApprovalAssertion, type ApprovalChallenge, type ApprovalNotification, type ApprovalResult, type ArenaPayload, type ArenaReceipt, type AttestationDocument, type AttestationPayload, type AttestationProvider, type AttestationReceipt, type AttestationResult, type AuditBundle, type AuditBundleOptions, type BenchmarkPayload, type BenchmarkReceipt, type BuilderId, type C2PAAssertion, type C2PAIngredient, type C2PAManifest, type C2PAOptions, type CCRConnectorConfig, type CCRSessionContext, type CalibrationScore, type ComplianceReport, ConfidentialGate, type ConfidentialGateConfig, type ConfidentialInferenceConfig, type CredentialConfig, type DecisionContext, type DecisionLog, type DelegationReceipt, type DisclosureMode, type Ed25519PublicKey, type EvidenceAttestation, type EvidenceAttestationInput, type EvidenceIssuer, type EvidenceReceipt, type EvidenceReceiptBase, type EvidenceSummary, type EvidenceSummaryEntry, type EvidenceType, type ExternalDecision, type ExternalPDPConfig, type HFDatasetMetadata, type HFReceiptRow, type HookEventName, type HookInput, type HookResponse, type IssuerType, type JsonRpcRequest, type JsonRpcResponse, type LeaseCompatibility, type ManifestBuilder, type ManifestCapabilities, type ManifestConfig, type ManifestIdentity, type ManifestPresentation, type ManifestSignature, type ManifestStatus, type NotificationConfig, type PassportTokenClaims, type PayloadDigest, type PlanReceipt, type PolicyEngineMode, type PredictionReceipt, type PredictionResolution, type PropagatorConfig, type ProtectConfig, ProtectGateway, type ProtectPolicy, type RateLimit, ReceiptPropagator, type RedactedResult, type RedactionSalt, type RekorAnchor, type RekorVerification, type RestraintPayload, type RestraintReceipt, type SHA256Hash, type SafetyTranscript, type Sandbox, type SandboxConfig, type SandboxReceipt, type SandboxResult, type SandboxToolCall, type SigningConfig, type SimulationResult, type SimulationSummary, type SwarmContext, type TierOverrides, type TimingMetrics, type ToolPolicy, type TrustTier, type WorkPayload, type WorkReceipt, anchorToRekor, buildDecisionContext, checkRateLimit, collectSignedReceipts, computeCalibration, confidentialInference, createApprovalChallenge, createApprovalReceiptPayload, createAttestationField, createAuditBundle, createC2PAManifest, createDisclosurePackage, createEvidenceAttestation, createLogAnchorField, createReceiptChannel, createSandbox, destroySandbox, ed25519ToDIDKey, evaluateTier, exportC2PAManifestJSON, exportJSONL, formatReportMarkdown, formatSimulation, generateC2PACommand, generateDatasetCard, generateHFMetadata, generateReport, generateSafetyTranscript, getSignerInfo, getToolPolicy, hashReceipt, hashResponseBody, initSigning, isAgentId, isDisclosureMode, isEvidenceType, isManifestStatus, isSigningEnabled, listCredentialLabels, loadPolicy, manifestToVC, meetsMinTier, parseLogFile, parseNotificationConfigFromEnv, parseRateLimit, queryExternalPDP, receiptToVP, receiptsToHFRows, redactFields, resolveCredential, revealField, runInSandbox, sendApprovalNotification, signDecision, simulate, toCredentialRequestOptions, toManifoldFormat, toMetaculusFormat, validateCredentials, validateEvidenceReceipt, validateManifest, verifyActaC2PAAssertions, verifyAllCommitments, verifyApprovalAssertion, verifyCommitment, verifyEvidenceAttestation, verifyRekorAnchor };
|
|
2759
|
+
export { type ActionReceipt, type AdmissionResult, type AgentId, type AgentManifest, type ApprovalAssertion, type ApprovalChallenge, type ApprovalNotification, type ApprovalResult, type ArenaPayload, type ArenaReceipt, type AttestationDocument, type AttestationPayload, type AttestationProvider, type AttestationReceipt, type AttestationResult, type AuditBundle, type AuditBundleOptions, type BenchmarkPayload, type BenchmarkReceipt, type BuilderId, type C2PAAssertion, type C2PAIngredient, type C2PAManifest, type C2PAOptions, type CCRConnectorConfig, type CCRSessionContext, type CalibrationScore, type CedarEvalRequest, type CedarPolicySet, type CedarSchema, type CedarSchemaResult, type ComplianceReport, ConfidentialGate, type ConfidentialGateConfig, type ConfidentialInferenceConfig, type CredentialConfig, type DecisionContext, type DecisionLog, type DelegationReceipt, type DisclosureMode, type Ed25519PublicKey, type EvidenceAttestation, type EvidenceAttestationInput, type EvidenceIssuer, type EvidenceReceipt, type EvidenceReceiptBase, type EvidenceSummary, type EvidenceSummaryEntry, type EvidenceType, type ExternalDecision, type ExternalPDPConfig, type HFDatasetMetadata, type HFReceiptRow, type HookEventName, type HookInput, type HookResponse, type IssuerType, type JsonRpcRequest, type JsonRpcResponse, type LeaseCompatibility, type ManifestBuilder, type ManifestCapabilities, type ManifestConfig, type ManifestIdentity, type ManifestPresentation, type ManifestSignature, type ManifestStatus, type McpToolDescription, type NotificationConfig, type PassportTokenClaims, type PayloadDigest, type PlanReceipt, type PolicyEngineMode, type PredictionReceipt, type PredictionResolution, type PropagatorConfig, type ProtectConfig, ProtectGateway, type ProtectPolicy, type RateLimit, ReceiptPropagator, type RedactedResult, type RedactionSalt, type RekorAnchor, type RekorVerification, type RestraintPayload, type RestraintReceipt, type SHA256Hash, type SafetyTranscript, type Sandbox, type SandboxConfig, type SandboxReceipt, type SandboxResult, type SandboxToolCall, type SchemaGeneratorConfig, type SigningConfig, type SimulationResult, type SimulationSummary, type SwarmContext, type TierOverrides, type TimingMetrics, type ToolPolicy, type TrustTier, type WorkPayload, type WorkReceipt, anchorToRekor, buildDecisionContext, checkRateLimit, collectSignedReceipts, computeCalibration, confidentialInference, createApprovalChallenge, createApprovalReceiptPayload, createAttestationField, createAuditBundle, createC2PAManifest, createDisclosurePackage, createEvidenceAttestation, createLogAnchorField, createReceiptChannel, createSandbox, destroySandbox, ed25519ToDIDKey, evaluateCedar, evaluateTier, exportC2PAManifestJSON, exportJSONL, formatReportMarkdown, formatSimulation, generateC2PACommand, generateCedarSchema, generateDatasetCard, generateHFMetadata, generateReport, generateSafetyTranscript, generateSchemaStub, getSignerInfo, getToolPolicy, hashReceipt, hashResponseBody, initSigning, isAgentId, isCedarAvailable, isDisclosureMode, isEvidenceType, isManifestStatus, isSigningEnabled, listCredentialLabels, loadCedarPolicies, loadPolicy, manifestToVC, meetsMinTier, parseLogFile, parseNotificationConfigFromEnv, parseRateLimit, queryExternalPDP, receiptToVP, receiptsToHFRows, redactFields, resolveCredential, revealField, runInSandbox, sendApprovalNotification, signDecision, simulate, toCredentialRequestOptions, toManifoldFormat, toMetaculusFormat, validateCredentials, validateEvidenceReceipt, validateManifest, verifyActaC2PAAssertions, verifyAllCommitments, verifyApprovalAssertion, verifyCommitment, verifyEvidenceAttestation, verifyRekorAnchor };
|
package/dist/index.d.ts
CHANGED
|
@@ -539,6 +539,45 @@ interface CedarPolicySet {
|
|
|
539
539
|
/** Filenames loaded */
|
|
540
540
|
files: string[];
|
|
541
541
|
}
|
|
542
|
+
interface CedarEvalRequest {
|
|
543
|
+
/** Tool name being called */
|
|
544
|
+
tool: string;
|
|
545
|
+
/** Trust tier of the agent */
|
|
546
|
+
tier: TrustTier;
|
|
547
|
+
/** Agent ID (optional) */
|
|
548
|
+
agentId?: string;
|
|
549
|
+
/** Additional context fields */
|
|
550
|
+
context?: Record<string, unknown>;
|
|
551
|
+
/** Tool input (for schema-validated evaluation) */
|
|
552
|
+
toolInput?: Record<string, unknown>;
|
|
553
|
+
}
|
|
554
|
+
/** Cedar schema for typed policy evaluation (generated by cedar-schema.ts) */
|
|
555
|
+
interface CedarSchema {
|
|
556
|
+
/** The schema as a JSON object for Cedar WASM */
|
|
557
|
+
schemaJson: Record<string, unknown> | null;
|
|
558
|
+
/** Namespace used in the schema */
|
|
559
|
+
namespace?: string;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Load all .cedar files from a directory and return a compiled policy set.
|
|
563
|
+
*
|
|
564
|
+
* Files are sorted alphabetically for deterministic digest computation.
|
|
565
|
+
* Throws if the directory doesn't exist or contains no .cedar files.
|
|
566
|
+
*/
|
|
567
|
+
declare function loadCedarPolicies(dirPath: string): CedarPolicySet;
|
|
568
|
+
/**
|
|
569
|
+
* Evaluate a Cedar policy set against a tool call.
|
|
570
|
+
*
|
|
571
|
+
* Returns a standard ExternalDecision compatible with the gateway's
|
|
572
|
+
* decision pipeline. If Cedar WASM is not available, returns a
|
|
573
|
+
* fallback allow decision (fail-open, logged).
|
|
574
|
+
*/
|
|
575
|
+
declare function evaluateCedar(policySet: CedarPolicySet, req: CedarEvalRequest, schema?: CedarSchema): Promise<ExternalDecision>;
|
|
576
|
+
/**
|
|
577
|
+
* Validate that Cedar WASM is available.
|
|
578
|
+
* Useful for CLI startup diagnostics.
|
|
579
|
+
*/
|
|
580
|
+
declare function isCedarAvailable(): Promise<boolean>;
|
|
542
581
|
|
|
543
582
|
/**
|
|
544
583
|
* MCP tool-calling gateway that intercepts JSON-RPC requests,
|
|
@@ -1313,6 +1352,84 @@ declare function validateManifest(manifest: unknown): string[];
|
|
|
1313
1352
|
*/
|
|
1314
1353
|
declare function validateEvidenceReceipt(receipt: unknown): string[];
|
|
1315
1354
|
|
|
1355
|
+
/**
|
|
1356
|
+
* @scopeblind/protect-mcp — Cedar Schema Generator for MCP Tools
|
|
1357
|
+
*
|
|
1358
|
+
* Auto-generates a Cedar authorization schema from MCP tool descriptions.
|
|
1359
|
+
* This enables typed Cedar policies that reference tool input attributes:
|
|
1360
|
+
*
|
|
1361
|
+
* permit(principal, action == Action::"read_file", resource)
|
|
1362
|
+
* when { context.input.path like "./workspace/*" };
|
|
1363
|
+
*
|
|
1364
|
+
* Compatible with cedar-policy/cedar-for-agents schema format.
|
|
1365
|
+
* Designed to replace `schema: null` in Cedar WASM evaluations.
|
|
1366
|
+
*
|
|
1367
|
+
* @see https://github.com/cedar-policy/cedar-for-agents
|
|
1368
|
+
* @standard RFC 8785 (JCS), Cedar Policy Language v4
|
|
1369
|
+
*/
|
|
1370
|
+
/** MCP tool description from tools/list response */
|
|
1371
|
+
interface McpToolDescription {
|
|
1372
|
+
name: string;
|
|
1373
|
+
description?: string;
|
|
1374
|
+
inputSchema?: JsonSchema;
|
|
1375
|
+
}
|
|
1376
|
+
/** Subset of JSON Schema that MCP tools use */
|
|
1377
|
+
interface JsonSchema {
|
|
1378
|
+
type?: string | string[];
|
|
1379
|
+
properties?: Record<string, JsonSchema>;
|
|
1380
|
+
required?: string[];
|
|
1381
|
+
items?: JsonSchema;
|
|
1382
|
+
enum?: (string | number | boolean)[];
|
|
1383
|
+
format?: string;
|
|
1384
|
+
description?: string;
|
|
1385
|
+
additionalProperties?: boolean | JsonSchema;
|
|
1386
|
+
anyOf?: JsonSchema[];
|
|
1387
|
+
oneOf?: JsonSchema[];
|
|
1388
|
+
}
|
|
1389
|
+
/** Generated Cedar schema components */
|
|
1390
|
+
interface CedarSchemaResult {
|
|
1391
|
+
/** The .cedarschema text (human-readable Cedar schema format) */
|
|
1392
|
+
schemaText: string;
|
|
1393
|
+
/** The schema as a JSON object (for passing to Cedar WASM) */
|
|
1394
|
+
schemaJson: Record<string, unknown>;
|
|
1395
|
+
/** Number of tools mapped */
|
|
1396
|
+
toolCount: number;
|
|
1397
|
+
/** Tool names included */
|
|
1398
|
+
tools: string[];
|
|
1399
|
+
}
|
|
1400
|
+
interface SchemaGeneratorConfig {
|
|
1401
|
+
/** Namespace for generated types (default: "ScopeBlind") */
|
|
1402
|
+
namespace?: string;
|
|
1403
|
+
/** Include agent tier as principal attribute (default: true) */
|
|
1404
|
+
includeTier?: boolean;
|
|
1405
|
+
/** Include timestamp context (default: true) */
|
|
1406
|
+
includeTimestamp?: boolean;
|
|
1407
|
+
/** Include agent_id as principal attribute (default: true) */
|
|
1408
|
+
includeAgentId?: boolean;
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Generate a Cedar schema from MCP tool descriptions.
|
|
1412
|
+
*
|
|
1413
|
+
* Produces both human-readable .cedarschema text and the JSON
|
|
1414
|
+
* representation that Cedar WASM accepts.
|
|
1415
|
+
*
|
|
1416
|
+
* The generated schema defines:
|
|
1417
|
+
* - Agent entity type (principal) with tier and agent_id attributes
|
|
1418
|
+
* - Tool entity type (resource)
|
|
1419
|
+
* - One action per MCP tool, with typed input context
|
|
1420
|
+
* - A parent action "MCP::Tool::call" for blanket policies
|
|
1421
|
+
*
|
|
1422
|
+
* This enables policies like:
|
|
1423
|
+
* forbid(principal, action == Action::"execute_command", resource)
|
|
1424
|
+
* when { context.input has "command" && context.input.command like "rm *" };
|
|
1425
|
+
*/
|
|
1426
|
+
declare function generateCedarSchema(tools: McpToolDescription[], config?: SchemaGeneratorConfig): CedarSchemaResult;
|
|
1427
|
+
/**
|
|
1428
|
+
* Generate a Cedar schema stub file for customization.
|
|
1429
|
+
* This is the starting point for users who want to extend the auto-generated schema.
|
|
1430
|
+
*/
|
|
1431
|
+
declare function generateSchemaStub(namespace?: string): string;
|
|
1432
|
+
|
|
1316
1433
|
/**
|
|
1317
1434
|
* Sigstore Rekor Transparency Log Anchoring
|
|
1318
1435
|
*
|
|
@@ -2639,4 +2756,4 @@ declare function confidentialInference(_prompt: string, _config: ConfidentialInf
|
|
|
2639
2756
|
receipt: Record<string, unknown>;
|
|
2640
2757
|
}>;
|
|
2641
2758
|
|
|
2642
|
-
export { type ActionReceipt, type AdmissionResult, type AgentId, type AgentManifest, type ApprovalAssertion, type ApprovalChallenge, type ApprovalNotification, type ApprovalResult, type ArenaPayload, type ArenaReceipt, type AttestationDocument, type AttestationPayload, type AttestationProvider, type AttestationReceipt, type AttestationResult, type AuditBundle, type AuditBundleOptions, type BenchmarkPayload, type BenchmarkReceipt, type BuilderId, type C2PAAssertion, type C2PAIngredient, type C2PAManifest, type C2PAOptions, type CCRConnectorConfig, type CCRSessionContext, type CalibrationScore, type ComplianceReport, ConfidentialGate, type ConfidentialGateConfig, type ConfidentialInferenceConfig, type CredentialConfig, type DecisionContext, type DecisionLog, type DelegationReceipt, type DisclosureMode, type Ed25519PublicKey, type EvidenceAttestation, type EvidenceAttestationInput, type EvidenceIssuer, type EvidenceReceipt, type EvidenceReceiptBase, type EvidenceSummary, type EvidenceSummaryEntry, type EvidenceType, type ExternalDecision, type ExternalPDPConfig, type HFDatasetMetadata, type HFReceiptRow, type HookEventName, type HookInput, type HookResponse, type IssuerType, type JsonRpcRequest, type JsonRpcResponse, type LeaseCompatibility, type ManifestBuilder, type ManifestCapabilities, type ManifestConfig, type ManifestIdentity, type ManifestPresentation, type ManifestSignature, type ManifestStatus, type NotificationConfig, type PassportTokenClaims, type PayloadDigest, type PlanReceipt, type PolicyEngineMode, type PredictionReceipt, type PredictionResolution, type PropagatorConfig, type ProtectConfig, ProtectGateway, type ProtectPolicy, type RateLimit, ReceiptPropagator, type RedactedResult, type RedactionSalt, type RekorAnchor, type RekorVerification, type RestraintPayload, type RestraintReceipt, type SHA256Hash, type SafetyTranscript, type Sandbox, type SandboxConfig, type SandboxReceipt, type SandboxResult, type SandboxToolCall, type SigningConfig, type SimulationResult, type SimulationSummary, type SwarmContext, type TierOverrides, type TimingMetrics, type ToolPolicy, type TrustTier, type WorkPayload, type WorkReceipt, anchorToRekor, buildDecisionContext, checkRateLimit, collectSignedReceipts, computeCalibration, confidentialInference, createApprovalChallenge, createApprovalReceiptPayload, createAttestationField, createAuditBundle, createC2PAManifest, createDisclosurePackage, createEvidenceAttestation, createLogAnchorField, createReceiptChannel, createSandbox, destroySandbox, ed25519ToDIDKey, evaluateTier, exportC2PAManifestJSON, exportJSONL, formatReportMarkdown, formatSimulation, generateC2PACommand, generateDatasetCard, generateHFMetadata, generateReport, generateSafetyTranscript, getSignerInfo, getToolPolicy, hashReceipt, hashResponseBody, initSigning, isAgentId, isDisclosureMode, isEvidenceType, isManifestStatus, isSigningEnabled, listCredentialLabels, loadPolicy, manifestToVC, meetsMinTier, parseLogFile, parseNotificationConfigFromEnv, parseRateLimit, queryExternalPDP, receiptToVP, receiptsToHFRows, redactFields, resolveCredential, revealField, runInSandbox, sendApprovalNotification, signDecision, simulate, toCredentialRequestOptions, toManifoldFormat, toMetaculusFormat, validateCredentials, validateEvidenceReceipt, validateManifest, verifyActaC2PAAssertions, verifyAllCommitments, verifyApprovalAssertion, verifyCommitment, verifyEvidenceAttestation, verifyRekorAnchor };
|
|
2759
|
+
export { type ActionReceipt, type AdmissionResult, type AgentId, type AgentManifest, type ApprovalAssertion, type ApprovalChallenge, type ApprovalNotification, type ApprovalResult, type ArenaPayload, type ArenaReceipt, type AttestationDocument, type AttestationPayload, type AttestationProvider, type AttestationReceipt, type AttestationResult, type AuditBundle, type AuditBundleOptions, type BenchmarkPayload, type BenchmarkReceipt, type BuilderId, type C2PAAssertion, type C2PAIngredient, type C2PAManifest, type C2PAOptions, type CCRConnectorConfig, type CCRSessionContext, type CalibrationScore, type CedarEvalRequest, type CedarPolicySet, type CedarSchema, type CedarSchemaResult, type ComplianceReport, ConfidentialGate, type ConfidentialGateConfig, type ConfidentialInferenceConfig, type CredentialConfig, type DecisionContext, type DecisionLog, type DelegationReceipt, type DisclosureMode, type Ed25519PublicKey, type EvidenceAttestation, type EvidenceAttestationInput, type EvidenceIssuer, type EvidenceReceipt, type EvidenceReceiptBase, type EvidenceSummary, type EvidenceSummaryEntry, type EvidenceType, type ExternalDecision, type ExternalPDPConfig, type HFDatasetMetadata, type HFReceiptRow, type HookEventName, type HookInput, type HookResponse, type IssuerType, type JsonRpcRequest, type JsonRpcResponse, type LeaseCompatibility, type ManifestBuilder, type ManifestCapabilities, type ManifestConfig, type ManifestIdentity, type ManifestPresentation, type ManifestSignature, type ManifestStatus, type McpToolDescription, type NotificationConfig, type PassportTokenClaims, type PayloadDigest, type PlanReceipt, type PolicyEngineMode, type PredictionReceipt, type PredictionResolution, type PropagatorConfig, type ProtectConfig, ProtectGateway, type ProtectPolicy, type RateLimit, ReceiptPropagator, type RedactedResult, type RedactionSalt, type RekorAnchor, type RekorVerification, type RestraintPayload, type RestraintReceipt, type SHA256Hash, type SafetyTranscript, type Sandbox, type SandboxConfig, type SandboxReceipt, type SandboxResult, type SandboxToolCall, type SchemaGeneratorConfig, type SigningConfig, type SimulationResult, type SimulationSummary, type SwarmContext, type TierOverrides, type TimingMetrics, type ToolPolicy, type TrustTier, type WorkPayload, type WorkReceipt, anchorToRekor, buildDecisionContext, checkRateLimit, collectSignedReceipts, computeCalibration, confidentialInference, createApprovalChallenge, createApprovalReceiptPayload, createAttestationField, createAuditBundle, createC2PAManifest, createDisclosurePackage, createEvidenceAttestation, createLogAnchorField, createReceiptChannel, createSandbox, destroySandbox, ed25519ToDIDKey, evaluateCedar, evaluateTier, exportC2PAManifestJSON, exportJSONL, formatReportMarkdown, formatSimulation, generateC2PACommand, generateCedarSchema, generateDatasetCard, generateHFMetadata, generateReport, generateSafetyTranscript, generateSchemaStub, getSignerInfo, getToolPolicy, hashReceipt, hashResponseBody, initSigning, isAgentId, isCedarAvailable, isDisclosureMode, isEvidenceType, isManifestStatus, isSigningEnabled, listCredentialLabels, loadCedarPolicies, loadPolicy, manifestToVC, meetsMinTier, parseLogFile, parseNotificationConfigFromEnv, parseRateLimit, queryExternalPDP, receiptToVP, receiptsToHFRows, redactFields, resolveCredential, revealField, runInSandbox, sendApprovalNotification, signDecision, simulate, toCredentialRequestOptions, toManifoldFormat, toMetaculusFormat, validateCredentials, validateEvidenceReceipt, validateManifest, verifyActaC2PAAssertions, verifyAllCommitments, verifyApprovalAssertion, verifyCommitment, verifyEvidenceAttestation, verifyRekorAnchor };
|