import { z } from "zod"; import { AgenticEndpointAccessAttemptSchema, AgenticEndpointAccessCapabilitiesSchema, AgenticEndpointAccessPolicySchema, AgenticEndpointAccessReadbackSchema, AgenticEndpointAccessRequestEvidenceSchema, AgenticEndpointAccessSafeReferenceSchema, AgenticEndpointAccessUsageEventSchema, EndpointAccessSurfaceBindingSchema, agenticEndpointAccessAuthorityBoundary, agenticEndpointAccessSchemaVersion, looksLikeEndpointAccessSecret, type AgenticEndpointAccessAttempt, type AgenticEndpointAccessCapabilities, type AgenticEndpointAccessClearanceBinding, type AgenticEndpointAccessLease, type AgenticEndpointAccessPolicy, type AgenticEndpointAccessReadback, type AgenticEndpointAccessRequestEvidence, type AgenticEndpointAccessUsageEvent, type EndpointAccessSurfaceBinding } from "../../protocol/areas/agentic-endpoint-access"; export { agenticEndpointAccessAuthorityBoundary, agenticEndpointAccessSchemaVersion, looksLikeEndpointAccessSecret }; export { AgenticEndpointAccessAttemptSchema, AgenticEndpointAccessCapabilitiesSchema, AgenticEndpointAccessPolicySchema, AgenticEndpointAccessReadbackSchema, AgenticEndpointAccessRequestEvidenceSchema, AgenticEndpointAccessSafeReferenceSchema, AgenticEndpointAccessUsageEventSchema, EndpointAccessSurfaceBindingSchema, }; export type { AgenticEndpointAccessAttempt, AgenticEndpointAccessCapabilities, AgenticEndpointAccessClearanceBinding, AgenticEndpointAccessLease, AgenticEndpointAccessPolicy, AgenticEndpointAccessReadback, AgenticEndpointAccessRequestEvidence, AgenticEndpointAccessUsageEvent, EndpointAccessSurfaceBinding, }; export declare const agenticEndpointAccessMiddlewareConfigSchemaVersion: "handshake.agentic-endpoint-access.middleware-config.v0.3.0"; export declare const agenticEndpointAccessMiddlewareEventSchemaVersion: "handshake.agentic-endpoint-access.middleware-event.v0.3.0"; export declare const agenticEndpointAccessDefaultMaxRequestBodyBytes = 1048576; export declare const agenticEndpointAccessMaxRequestBodyBytesCeiling: number; export declare const AgenticEndpointAccessProtectionStatusSchema: z.ZodEnum<{ proof_gap: "proof_gap"; stale: "stale"; refused: "refused"; unsupported: "unsupported"; revoked: "revoked"; leased: "leased"; exhausted: "exhausted"; quarantined: "quarantined"; replay: "replay"; store_conflict: "store_conflict"; }>; export type AgenticEndpointAccessProtectionStatus = z.infer; export declare const AgenticEndpointAccessMiddlewareAuthorityBoundarySchema: z.ZodObject<{ createsCloudAuthority: z.ZodLiteral; createsAeAuthority: z.ZodLiteral; treatsAuthSessionAsAuthority: z.ZodLiteral; treatsRouteMatcherAsAuthority: z.ZodLiteral; treatsCloudReadinessAsAuthority: z.ZodLiteral; permitsEndpointAccess: z.ZodLiteral; permitsMutation: z.ZodLiteral; createsIndependentPolicyDecision: z.ZodLiteral; createsIndependentGreenlight: z.ZodLiteral; performsIndependentGatewayCheck: z.ZodLiteral; exportsDownstreamReceipt: z.ZodLiteral; mintsTerminalCertificate: z.ZodLiteral; containsCredentialMaterial: z.ZodLiteral; containsPaymentMaterial: z.ZodLiteral; widensOperatingBounds: z.ZodLiteral; freshActionContractRequiredForDownstreamAction: z.ZodLiteral; }, z.core.$strict>; export type AgenticEndpointAccessMiddlewareAuthorityBoundary = z.infer; export declare const agenticEndpointAccessMiddlewareAuthorityBoundary: { readonly createsCloudAuthority: false; readonly createsAeAuthority: false; readonly treatsAuthSessionAsAuthority: false; readonly treatsRouteMatcherAsAuthority: false; readonly treatsCloudReadinessAsAuthority: false; readonly permitsEndpointAccess: true; readonly permitsMutation: false; readonly createsIndependentPolicyDecision: false; readonly createsIndependentGreenlight: false; readonly performsIndependentGatewayCheck: false; readonly exportsDownstreamReceipt: false; readonly mintsTerminalCertificate: false; readonly containsCredentialMaterial: false; readonly containsPaymentMaterial: false; readonly widensOperatingBounds: false; readonly freshActionContractRequiredForDownstreamAction: true; }; export declare const AgenticEndpointAccessHeaderRedactionPolicySchema: z.ZodObject<{ redactionPolicyId: z.ZodOptional; additionalSensitiveHeaderNames: z.ZodDefault>; additionalSensitiveHeaderNameSubstrings: z.ZodDefault>; additionalSensitiveValueSubstrings: z.ZodDefault>; }, z.core.$strict>; export type AgenticEndpointAccessHeaderRedactionPolicy = z.input; export type ParsedAgenticEndpointAccessHeaderRedactionPolicy = z.infer; export declare const AgenticEndpointAccessMiddlewareOptionsSchema: z.ZodObject<{ tenantId: z.ZodString; organizationId: z.ZodString; kernelVersion: z.ZodString; middlewareVersion: z.ZodString; publicVerifyBaseUrl: z.ZodOptional; defaultLeaseTtlSeconds: z.ZodDefault; maxRequestBodyBytes: z.ZodDefault; headerRedactionPolicy: z.ZodOptional; additionalSensitiveHeaderNames: z.ZodDefault>; additionalSensitiveHeaderNameSubstrings: z.ZodDefault>; additionalSensitiveValueSubstrings: z.ZodDefault>; }, z.core.$strict>>; }, z.core.$strict>; export type AgenticEndpointAccessMiddlewareOptionsInput = z.input; export type AgenticEndpointAccessMiddlewareOptions = z.infer; export declare const AgenticEndpointAccessConfigSnapshotSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.middleware-config.v0.3.0">; tenantId: z.ZodString; organizationId: z.ZodString; pulledAt: z.ZodString; expiresAt: z.ZodString; configRevision: z.ZodString; configDigest: z.ZodString; hmacVerified: z.ZodBoolean; endpointAccessSchemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.v0.3.0">; operatingBoundsRef: z.ZodString; operatingBoundsDigest: z.ZodString; surfaceBinding: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.v0.3.0">; tenantId: z.ZodString; organizationId: z.ZodString; createdAt: z.ZodString; protectedSurfaceBindingId: z.ZodString; protectedSurfaceRef: z.ZodString; protectedSurfaceKind: z.ZodString; resourceRef: z.ZodString; gatewayRegistryEntryId: z.ZodString; gatewayId: z.ZodString; actionClass: z.ZodString; protectedSurfaceIntegrationRef: z.ZodDefault>; bindingSource: z.ZodEnum<{ protocol_config: "protocol_config"; cloud_config: "cloud_config"; ae_projection: "ae_projection"; operator_config: "operator_config"; fixture: "fixture"; }>; issuedAt: z.ZodString; expiresAt: z.ZodString; bindingDigest: z.ZodString; }, z.core.$strict>; policy: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.v0.3.0">; tenantId: z.ZodString; organizationId: z.ZodString; createdAt: z.ZodString; policyId: z.ZodString; policyVersionId: z.ZodString; configRevision: z.ZodString; protectedSurfaceBindingId: z.ZodString; protectedSurfaceBindingDigest: z.ZodString; protectedSurfaceRef: z.ZodString; protectedSurfaceKind: z.ZodString; resourceRef: z.ZodString; operatingBoundsId: z.ZodString; gatewayRegistryEntryId: z.ZodString; gatewayId: z.ZodString; gatewayAuthorityHolderRef: z.ZodString; requiredDelegationEvidence: z.ZodDefault>; acceptedAgentRegistrationRefs: z.ZodDefault>; principalBindingRequirements: z.ZodDefault>>>; agentBindingRequirements: z.ZodDefault>>>; runtimePostureRequirements: z.ZodDefault>>>; rawBypassPostureRequirements: z.ZodDefault>>; siblingBypassPostureRequirements: z.ZodDefault>>; rateLimit: z.ZodDefault>>>; tokenBudget: z.ZodDefault>>>; toolBudget: z.ZodDefault>>>; costBudget: z.ZodDefault>>>; leaseTtlSeconds: z.ZodNumber; failClosedBehavior: z.ZodEnum<{ proof_gap: "proof_gap"; refuse: "refuse"; quarantine: "quarantine"; }>; capabilityRequirements: z.ZodDefault>>>; issuedAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strict>; capabilities: z.ZodOptional; tenantId: z.ZodString; organizationId: z.ZodString; createdAt: z.ZodString; capabilityReportId: z.ZodString; kernelVersion: z.ZodString; middlewareVersion: z.ZodString; cloudConfigRevision: z.ZodString; runtimePostureStatus: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; unsupported: "unsupported"; supported: "supported"; }>; rawBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; siblingBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; supportedEndpointAccessSchemaVersions: z.ZodArray; supportedDelegationEvidenceKinds: z.ZodDefault>; supportedPolicyFeatures: z.ZodDefault>; supportedReadbackKinds: z.ZodDefault>; failClosedReasons: z.ZodDefault>; reportedAt: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; export type AgenticEndpointAccessConfigSnapshot = z.infer; export declare const AgenticEndpointAccessConfigSyncProofSchema: z.ZodObject<{ syncProofRef: z.ZodString; tenantId: z.ZodString; organizationId: z.ZodString; configRevision: z.ZodString; configDigest: z.ZodString; operatingBoundsRef: z.ZodString; operatingBoundsDigest: z.ZodString; protectedSurfaceBindingId: z.ZodString; protectedSurfaceBindingDigest: z.ZodString; policyId: z.ZodString; policyVersionId: z.ZodString; kernelVersion: z.ZodString; middlewareVersion: z.ZodString; syncedAt: z.ZodString; expiresAt: z.ZodString; }, z.core.$strict>; export type AgenticEndpointAccessConfigSyncProof = z.infer; export declare const AgenticEndpointAccessIngressContextSchema: z.ZodObject<{ requestId: z.ZodString; idempotencyKey: z.ZodString; candidateActionId: z.ZodString; method: z.ZodString; urlDigest: z.ZodString; headerDigest: z.ZodString; bodyDigest: z.ZodString; requestEvidence: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.v0.3.0">; requestMethod: z.ZodString; requestUrlDigest: z.ZodString; requestHeaderDigest: z.ZodString; requestBodyDigest: z.ZodString; redactionPolicyId: z.ZodString; requestEvidenceDigest: z.ZodString; }, z.core.$strict>; principalRef: z.ZodString; agentRef: z.ZodString; objectiveRef: z.ZodString; delegationEvidenceRefs: z.ZodArray; agentRegistrationRefs: z.ZodDefault>; runtimePostureRefs: z.ZodArray; generatedCodeOrSpecRef: z.ZodString; protectedSurfaceBindingId: z.ZodString; protectedSurfaceBindingDigest: z.ZodString; rawBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; siblingBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; attemptedAt: z.ZodString; }, z.core.$strict>; export type AgenticEndpointAccessIngressContext = z.infer; export declare const AgenticEndpointAccessClearanceRefsSchema: z.ZodObject<{ policyId: z.ZodString; actionContractId: z.ZodString; policyDecisionId: z.ZodString; greenlightId: z.ZodString; gatewayCheckAttemptId: z.ZodString; }, z.core.$strict>; export type AgenticEndpointAccessClearanceRefs = z.infer; export declare const AgenticEndpointAccessProtectionOutcomeSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.middleware-event.v0.3.0">; tenantId: z.ZodString; organizationId: z.ZodString; status: z.ZodEnum<{ proof_gap: "proof_gap"; stale: "stale"; refused: "refused"; unsupported: "unsupported"; revoked: "revoked"; leased: "leased"; exhausted: "exhausted"; quarantined: "quarantined"; replay: "replay"; store_conflict: "store_conflict"; }>; httpStatus: z.ZodNumber; requestId: z.ZodNullable; idempotencyKey: z.ZodNullable; attemptRef: z.ZodDefault>; leaseRef: z.ZodDefault>; refusalRefs: z.ZodDefault>; proofGapRefs: z.ZodDefault>; policyDecisionRef: z.ZodDefault>; greenlightRef: z.ZodDefault>; gatewayCheckAttemptRef: z.ZodDefault>; readbackRef: z.ZodDefault>; publicVerifyUrl: z.ZodDefault>; reasonCodes: z.ZodArray; boundary: z.ZodObject<{ createsCloudAuthority: z.ZodLiteral; createsAeAuthority: z.ZodLiteral; treatsAuthSessionAsAuthority: z.ZodLiteral; treatsRouteMatcherAsAuthority: z.ZodLiteral; treatsCloudReadinessAsAuthority: z.ZodLiteral; permitsEndpointAccess: z.ZodLiteral; permitsMutation: z.ZodLiteral; createsIndependentPolicyDecision: z.ZodLiteral; createsIndependentGreenlight: z.ZodLiteral; performsIndependentGatewayCheck: z.ZodLiteral; exportsDownstreamReceipt: z.ZodLiteral; mintsTerminalCertificate: z.ZodLiteral; containsCredentialMaterial: z.ZodLiteral; containsPaymentMaterial: z.ZodLiteral; widensOperatingBounds: z.ZodLiteral; freshActionContractRequiredForDownstreamAction: z.ZodLiteral; }, z.core.$strict>; body: z.ZodDefault>>>; recordedAt: z.ZodString; }, z.core.$strict>; export type AgenticEndpointAccessProtectionOutcome = z.infer; type AgenticEndpointAccessProtectionOutcomeDefaultable = "attemptRef" | "leaseRef" | "refusalRefs" | "proofGapRefs" | "policyDecisionRef" | "greenlightRef" | "gatewayCheckAttemptRef" | "readbackRef" | "publicVerifyUrl" | "body"; type AgenticEndpointAccessProtectionOutcomeBuilderInput = Omit & Partial> & { recordedAt?: string | undefined; boundary?: AgenticEndpointAccessMiddlewareAuthorityBoundary | undefined; }; export declare const AgenticEndpointAccessHandlerContextSchema: z.ZodObject<{ endpointEntry: z.ZodObject<{ leaseRef: z.ZodString; attemptRef: z.ZodString; readbackRef: z.ZodNullable; protectedSurfaceBindingId: z.ZodString; protectedSurfaceBindingDigest: z.ZodString; policyDecisionRef: z.ZodString; greenlightRef: z.ZodString; gatewayCheckAttemptRef: z.ZodString; allowedUse: z.ZodLiteral<"bounded_endpoint_entry_only">; freshActionContractRequiredForDownstreamAction: z.ZodLiteral; }, z.core.$strict>; }, z.core.$strict>; export type AgenticEndpointAccessHandlerContext = z.infer; export declare const AgenticEndpointAccessForwardedEventSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.middleware-event.v0.3.0">; eventId: z.ZodString; eventType: z.ZodEnum<{ protection_outcome: "protection_outcome"; usage_recorded: "usage_recorded"; readback_forwarded: "readback_forwarded"; callback_received: "callback_received"; }>; tenantId: z.ZodString; organizationId: z.ZodString; idempotencyKey: z.ZodString; requestId: z.ZodNullable; outcomeStatus: z.ZodOptional>; outcomeRef: z.ZodOptional; readback: z.ZodOptional; tenantId: z.ZodString; organizationId: z.ZodString; createdAt: z.ZodString; readbackId: z.ZodString; leaseId: z.ZodNullable; attemptId: z.ZodString; candidateActionId: z.ZodString; attemptDigest: z.ZodString; requestEvidence: z.ZodObject<{ schemaVersion: z.ZodLiteral<"handshake.agentic-endpoint-access.v0.3.0">; requestMethod: z.ZodString; requestUrlDigest: z.ZodString; requestHeaderDigest: z.ZodString; requestBodyDigest: z.ZodString; redactionPolicyId: z.ZodString; requestEvidenceDigest: z.ZodString; }, z.core.$strict>; protectedSurfaceBindingId: z.ZodString; protectedSurfaceBindingDigest: z.ZodString; protectedSurfaceRef: z.ZodString; protectedSurfaceKind: z.ZodString; resourceRef: z.ZodString; policyVersionId: z.ZodString; configRevision: z.ZodString; kernelVersion: z.ZodString; middlewareVersion: z.ZodString; runtimePostureRef: z.ZodString; gatewayRegistryEntryId: z.ZodString; gatewayId: z.ZodString; gatewayAuthorityHolderRef: z.ZodString; rawBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; siblingBypassPosture: z.ZodEnum<{ unknown: "unknown"; stale: "stale"; blocked: "blocked"; unblocked: "unblocked"; inconclusive: "inconclusive"; }>; capabilityReportRef: z.ZodString; healthReportRef: z.ZodString; usageSummary: z.ZodDefault>>>; linkedActionRefs: z.ZodDefault>; linkedReceiptRefs: z.ZodDefault>; linkedProofGapRefs: z.ZodDefault>; publicVerifyUrl: z.ZodString; downstreamReceiptBoundary: z.ZodLiteral<"linked_receipts_are_not_endpoint_access_authorization">; }, z.core.$strict>>; usageEvents: z.ZodDefault; tenantId: z.ZodString; organizationId: z.ZodString; createdAt: z.ZodString; usageEventId: z.ZodString; leaseId: z.ZodString; protectedSurfaceBindingId: z.ZodString; protectedSurfaceRef: z.ZodString; protectedSurfaceKind: z.ZodString; resourceRef: z.ZodString; usageKind: z.ZodEnum<{ request: "request"; token: "token"; tool_call: "tool_call"; cost_unit: "cost_unit"; }>; amount: z.ZodNumber; counterAfter: z.ZodNumber; occurredAt: z.ZodString; proofGapRefs: z.ZodDefault>; }, z.core.$strict>>>; reasonCodes: z.ZodDefault>; proofGapRefs: z.ZodDefault>; payloadDigest: z.ZodString; boundary: z.ZodObject<{ createsCloudAuthority: z.ZodLiteral; createsAeAuthority: z.ZodLiteral; treatsAuthSessionAsAuthority: z.ZodLiteral; treatsRouteMatcherAsAuthority: z.ZodLiteral; treatsCloudReadinessAsAuthority: z.ZodLiteral; permitsEndpointAccess: z.ZodLiteral; permitsMutation: z.ZodLiteral; createsIndependentPolicyDecision: z.ZodLiteral; createsIndependentGreenlight: z.ZodLiteral; performsIndependentGatewayCheck: z.ZodLiteral; exportsDownstreamReceipt: z.ZodLiteral; mintsTerminalCertificate: z.ZodLiteral; containsCredentialMaterial: z.ZodLiteral; containsPaymentMaterial: z.ZodLiteral; widensOperatingBounds: z.ZodLiteral; freshActionContractRequiredForDownstreamAction: z.ZodLiteral; }, z.core.$strict>; occurredAt: z.ZodString; }, z.core.$strict>; export type AgenticEndpointAccessForwardedEvent = z.infer; export declare function buildAgenticEndpointAccessProtectionOutcome(input: AgenticEndpointAccessProtectionOutcomeBuilderInput): AgenticEndpointAccessProtectionOutcome; export declare function refFor(objectType: string, objectId: string): string; export declare function assertNoEndpointAccessSecret(value: string, label: string): void;