// Generated from API_TOOL_MANIFEST by scripts/generate-api-client.mjs. Do not edit. export type UtilitoToolId = "accessibility-remediation-kit" | "age-calculator" | "agent-capability-policy-auditor" | "agent-connection-diagnostic-kit" | "agent-context-handoff" | "agent-contract-check" | "agent-plan-parallelism-auditor" | "agent-run-forensics-handoff-kit" | "agent-run-state-validator" | "agent-tool-call-replay-kit" | "api-failure-diagnostic" | "api-fixture-matrix" | "api-migration-kit" | "api-pagination-contract-planner" | "artifact-delivery-manifest" | "artifact-lineage-integrity-auditor" | "aspect-ratio-calculator" | "bandwidth-calculator" | "base64" | "batch-retry-safety-planner" | "bmi-calculator" | "business-days-calculator" | "calorie-macro-calculator" | "case-converter" | "change-impact-test-selection-planner" | "ci-failure-review-kit" | "ci-regression-diff" | "citation-quote-integrity" | "claim-evidence-coverage" | "compound-interest-calculator" | "config-format-converter" | "configuration-drift-reconciliation" | "configuration-migration-kit" | "context-budget-planning-kit" | "context-distill" | "context-pack-builder" | "context-window-calculator" | "contract-conformance-repair" | "contract-release-gate-kit" | "contract-reliability-workbench" | "cron-expression-explainer" | "cron-parser" | "csv-jsonl-converter" | "csv-to-json" | "curl-converter" | "currency-converter" | "data-migration-prep-kit" | "data-transfer-time-calculator" | "date-difference-calculator" | "dependency-manifest-reconciliation" | "discount-calculator" | "dpi-ppi-calculator" | "duplicate-line-remover" | "environment-contract-compiler" | "eval-dataset-jsonl-formatter" | "evaluation-dataset-qa-kit" | "evaluation-run-delta" | "evidence-report-builder" | "file-hash-checksum-verifier" | "file-size-converter" | "file-verification-handoff-kit" | "finance-scenario-memo-kit" | "gpa-calculator" | "hash-generator" | "html-to-agent-markdown" | "http-security-remediation-kit" | "image-delivery-audit-kit" | "image-delivery-production-kit" | "integration-launch-kit" | "invoice-generator" | "json-formatter" | "json-path-tester" | "json-query" | "json-repair" | "json-schema-compatibility-diff" | "json-schema-to-tool-definition" | "json-schema-validator" | "json-shrink" | "json-to-csv" | "jwt-debugger" | "jwt-decoder" | "large-payload-reduction-kit" | "loan-calculator" | "log-context-trimmer" | "margin-markup-calculator" | "markdown-cleaner" | "mcp-config-generator" | "mermaid-diagram-delivery-kit" | "mermaid-renderer" | "mortgage-calculator" | "nanoid-generator" | "number-base" | "offline-api-batch-production-kit" | "openapi-surface-delta" | "password-strength-checker" | "pdf-deliverable-assembly-kit" | "percentage-calculator" | "policy-decision-table" | "product-contract-review-kit" | "prompt-cost-calculator" | "prompt-regression-kit" | "prompt-template-schema-builder" | "provider-message-migration-kit" | "provider-request-envelope" | "rag-evidence-preparation-kit" | "random-number-generator" | "reading-time-calculator" | "regex-tester" | "release-evidence-delta" | "release-evidence-kit" | "retirement-calculator" | "roi-calculator" | "sales-tax-calculator" | "sarif-findings-reconciliation" | "schema-converter" | "scientific-calculator" | "sensitive-log-redaction-evidence" | "slug-generator" | "sort-lines" | "streaming-tool-call-assembler" | "structured-data-reconciliation" | "structured-output-recovery-kit" | "structured-output-rescue" | "subagent-delegation-contract-compiler" | "subnet-calculator" | "tax-estimator" | "test-run-stability-matrix" | "three-way-structured-merge" | "time-duration-calculator" | "time-zone-converter" | "timestamp-converter" | "tip-calculator" | "token-counter" | "toml-formatter" | "tool-call-interoperability" | "tool-call-trace-conformance" | "tool-calling-validator" | "tool-catalog-context-budget-auditor" | "tool-schema-generator" | "tool-schema-publishing-kit" | "typescript-to-json-schema" | "ulid-generator" | "unit-converter" | "untrusted-input-admission" | "url-encoder" | "utility-cost-estimator" | "uuid-generator" | "web-release-qa-kit" | "webhook-normalization-kit" | "whitespace-normalizer" | "xml-formatter" | "yaml-formatter"; export type PipelineToolId = "json-repair" | "json-query" | "json-shrink" | "structured-output-rescue" | "context-distill" | "agent-contract-check" | "json-formatter" | "csv-to-json" | "json-to-csv" | "csv-jsonl-converter" | "base64" | "url-encoder" | "markdown-cleaner" | "log-context-trimmer"; export type PipelineBinding = '$INPUT' | '$PREV' | `$STEP[${number}]`; export type PipelineJsonValue = null | boolean | number | string | PipelineJsonValue[] | { [key: string]: PipelineJsonValue }; export type UtilitoResponseMode = 'full' | 'compact' | 'output'; export type UtilitoFullOnlyToolId = 'context-pack-builder' | 'evidence-report-builder'; export type UtilitoResponseModeForTool = T extends UtilitoFullOnlyToolId ? 'full' : UtilitoResponseMode; export type accessibility_remediation_kitInput = { review: { id: string; name: string; }; findings: Array<{ id: string; rule_id: string; severity: "error" | "warning" | "unknown"; component_id: string; selector?: string; summary: string; source: "submitted"; }>; html?: { ref: string; content: string; }; color_pairs: Array<{ id: string; component_id: string; foreground: string; background: string; target_ratio: number; }>; components: Array<{ id: string; label: string; }>; policy: { report_format: "markdown" | "html"; unknown_priority: "high" | "medium" | "low"; candidate_mode: "foreground" | "background" | "either"; }; }; export type accessibility_remediation_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "accessibility-remediation-kit"; version: "1.0.0"; }; result: null | { status: "review_required"; prioritized_tasks: Array<{ id: string; priority: number; priority_basis: string; rule_id: string; severity: "error" | "warning" | "unknown"; component_id: string; selector: null | string; summary: string; source: "submitted" | "html_preflight"; supported: boolean; remediation: null | string; human_review_required: boolean; }>; contrast_table: Array<{ id: string; component_id: string; foreground: string; background: string; target_ratio: number; ratio: number; ratio_text: string; meets_target: boolean; candidate: null | { mode: "foreground" | "background" | "none"; color: null | string; ratio: number; ratio_text: string; target_ratio: number; meets_target: true; algorithm: string; }; candidate_scope: string; human_review_required: boolean; }>; regression_assertions: Array<{ finding_id: string; rule_id: string; component_id: string; kind: string; expected: string; manual_review: boolean; }>; machine_packet: { schema_version: "utilito.accessibility-remediation-packet.v1"; review: { id: string; name: string; }; components: Array<{ id: string; label: string; }>; prioritized_tasks: Array<{ id: string; priority: number; priority_basis: string; rule_id: string; severity: "error" | "warning" | "unknown"; component_id: string; selector: null | string; summary: string; source: "submitted" | "html_preflight"; supported: boolean; remediation: null | string; human_review_required: boolean; }>; contrast_table: Array<{ id: string; component_id: string; foreground: string; background: string; target_ratio: number; ratio: number; ratio_text: string; meets_target: boolean; candidate: null | { mode: "foreground" | "background" | "none"; color: null | string; ratio: number; ratio_text: string; target_ratio: number; meets_target: true; algorithm: string; }; candidate_scope: string; human_review_required: boolean; }>; regression_assertions: Array<{ finding_id: string; rule_id: string; component_id: string; kind: string; expected: string; manual_review: boolean; }>; html_preflight: { ran: boolean; ref: null | string; ok: null | boolean; version: null | string; warnings: Array<{ code: string; message: string; }>; limitations: Array; findings: Array<{ rule_id: string; severity: "error" | "warning"; selector: string; evidence: string; remediation: string; }>; }; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; dom_mutation: false; crawl: false; screenshot: false; hosted_html_storage: false; certification: false; assistive_technology_claim: false; pipeline_execution: false; }; }; html_preflight: { ran: boolean; ref: null | string; ok: null | boolean; version: null | string; warnings: Array<{ code: string; message: string; }>; limitations: Array; findings: Array<{ rule_id: string; severity: "error" | "warning"; selector: string; evidence: string; remediation: string; }>; }; handoff_receipt: { schema_version: "utilito.accessibility-remediation-handoff.v1"; review_id: string; task_count: number; unsupported_finding_ids: Array; manual_review_assertion_ids: Array; contrast_human_review_ids: Array; no_wcag_certification: true; no_assistive_technology_claim: true; dom_mutated: false; }; review_report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; }; artifact_manifest: Array<{ name: "prioritized_tasks" | "contrast_table" | "regression_assertions" | "machine_packet" | "review_report" | "handoff_receipt"; media_type: "application/json" | "text/markdown" | "text/html"; bytes: number; content: string; }>; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; dom_mutation: false; crawl: false; screenshot: false; hosted_html_storage: false; certification: false; assistive_technology_claim: false; pipeline_execution: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; findings: number; tasks: number; color_pairs: number; assertions: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { accessibility_remediation_kit: "1.0.0"; accessibility_preflight: "utilito.a11y-preflight.v1"; contrast: "srgb-relative-luminance-v1"; safe_report: "escaped-inert-v1"; }; }; error: null | { code: "INVALID_INPUT" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_REVIEW" | "INVALID_FINDING" | "INVALID_HTML" | "INVALID_COLOR_PAIR" | "INVALID_COMPONENT" | "INVALID_POLICY" | "DUPLICATE_REFERENCE" | "UNRESOLVED_REFERENCE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "accessibility-remediation-kit"; version: "1.0.0"; }; result: { status: "review_required"; prioritized_tasks: Array<{ id: string; priority: number; priority_basis: string; rule_id: string; severity: "error" | "warning" | "unknown"; component_id: string; selector: null | string; summary: string; source: "submitted" | "html_preflight"; supported: boolean; remediation: null | string; human_review_required: boolean; }>; contrast_table: Array<{ id: string; component_id: string; foreground: string; background: string; target_ratio: number; ratio: number; ratio_text: string; meets_target: boolean; candidate: null | { mode: "foreground" | "background" | "none"; color: null | string; ratio: number; ratio_text: string; target_ratio: number; meets_target: true; algorithm: string; }; candidate_scope: string; human_review_required: boolean; }>; regression_assertions: Array<{ finding_id: string; rule_id: string; component_id: string; kind: string; expected: string; manual_review: boolean; }>; machine_packet: { schema_version: "utilito.accessibility-remediation-packet.v1"; review: { id: string; name: string; }; components: Array<{ id: string; label: string; }>; prioritized_tasks: Array<{ id: string; priority: number; priority_basis: string; rule_id: string; severity: "error" | "warning" | "unknown"; component_id: string; selector: null | string; summary: string; source: "submitted" | "html_preflight"; supported: boolean; remediation: null | string; human_review_required: boolean; }>; contrast_table: Array<{ id: string; component_id: string; foreground: string; background: string; target_ratio: number; ratio: number; ratio_text: string; meets_target: boolean; candidate: null | { mode: "foreground" | "background" | "none"; color: null | string; ratio: number; ratio_text: string; target_ratio: number; meets_target: true; algorithm: string; }; candidate_scope: string; human_review_required: boolean; }>; regression_assertions: Array<{ finding_id: string; rule_id: string; component_id: string; kind: string; expected: string; manual_review: boolean; }>; html_preflight: { ran: boolean; ref: null | string; ok: null | boolean; version: null | string; warnings: Array<{ code: string; message: string; }>; limitations: Array; findings: Array<{ rule_id: string; severity: "error" | "warning"; selector: string; evidence: string; remediation: string; }>; }; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; dom_mutation: false; crawl: false; screenshot: false; hosted_html_storage: false; certification: false; assistive_technology_claim: false; pipeline_execution: false; }; }; html_preflight: { ran: boolean; ref: null | string; ok: null | boolean; version: null | string; warnings: Array<{ code: string; message: string; }>; limitations: Array; findings: Array<{ rule_id: string; severity: "error" | "warning"; selector: string; evidence: string; remediation: string; }>; }; handoff_receipt: { schema_version: "utilito.accessibility-remediation-handoff.v1"; review_id: string; task_count: number; unsupported_finding_ids: Array; manual_review_assertion_ids: Array; contrast_human_review_ids: Array; no_wcag_certification: true; no_assistive_technology_claim: true; dom_mutated: false; }; review_report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; }; artifact_manifest: Array<{ name: "prioritized_tasks" | "contrast_table" | "regression_assertions" | "machine_packet" | "review_report" | "handoff_receipt"; media_type: "application/json" | "text/markdown" | "text/html"; bytes: number; content: string; }>; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; dom_mutation: false; crawl: false; screenshot: false; hosted_html_storage: false; certification: false; assistive_technology_claim: false; pipeline_execution: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; findings: number; tasks: number; color_pairs: number; assertions: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { accessibility_remediation_kit: "1.0.0"; accessibility_preflight: "utilito.a11y-preflight.v1"; contrast: "srgb-relative-luminance-v1"; safe_report: "escaped-inert-v1"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "accessibility-remediation-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; findings: number; tasks: number; color_pairs: number; assertions: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { accessibility_remediation_kit: "1.0.0"; accessibility_preflight: "utilito.a11y-preflight.v1"; contrast: "srgb-relative-luminance-v1"; safe_report: "escaped-inert-v1"; }; }; error: { code: "INVALID_INPUT" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_REVIEW" | "INVALID_FINDING" | "INVALID_HTML" | "INVALID_COLOR_PAIR" | "INVALID_COMPONENT" | "INVALID_POLICY" | "DUPLICATE_REFERENCE" | "UNRESOLVED_REFERENCE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type age_calculatorInput = { birthDate?: string; asOfDate?: string; [key: string]: unknown; }; export type age_calculatorOutput = { [key: string]: unknown; }; export type agent_capability_policy_auditorInput = { capabilities: Array<{ id: string; effect_labels: Array; }>; roles: Array<{ id: string; required_capability_ids: Array; }>; assignments: Array<{ principal_id: string; role_id: string; }>; rules: Array<{ role_id: string; capability_id: string; decision: "allow" | "deny" | "review"; }>; policy: { max_capabilities: number; max_roles: number; max_assignments: number; max_rules: number; max_matrix_entries: number; }; }; export type agent_capability_policy_auditorOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type agent_capability_policy_auditorOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: agent_capability_policy_auditorOutput_nx25_json_0; }; export type agent_capability_policy_auditorOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: agent_capability_policy_auditorOutput_nx25_json_1; }; export type agent_capability_policy_auditorOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: agent_capability_policy_auditorOutput_nx25_json_2; }; export type agent_capability_policy_auditorOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: agent_capability_policy_auditorOutput_nx25_json_3; }; export type agent_capability_policy_auditorOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: agent_capability_policy_auditorOutput_nx25_json_4; }; export type agent_capability_policy_auditorOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: agent_capability_policy_auditorOutput_nx25_json_5; }; export type agent_capability_policy_auditorOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type agent_capability_policy_auditorOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: agent_capability_policy_auditorOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: agent_capability_policy_auditorOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type agent_capability_policy_auditorOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: agent_capability_policy_auditorOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: agent_capability_policy_auditorOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type agent_capability_policy_auditorOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: agent_capability_policy_auditorOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: agent_capability_policy_auditorOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type agent_capability_policy_auditorOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: agent_capability_policy_auditorOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: agent_capability_policy_auditorOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type agent_capability_policy_auditorOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: agent_capability_policy_auditorOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: agent_capability_policy_auditorOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type agent_capability_policy_auditorOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: agent_capability_policy_auditorOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: agent_capability_policy_auditorOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type agent_capability_policy_auditorOutput = ({ ok: boolean; schema_version: "utilito.agent-capability-policy-auditor.v1"; version: "1.0.0"; result: null | { allowed: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; denied: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; review: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; unknown: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; unreachable_requirements: Array<{ role_id: string; capability_id: string; reason: "denied" | "not_allowed" | "unknown"; }>; conflicts: []; role_matrix: Array<{ role_id: string; capability_id: string; decision: "allow" | "deny" | "review" | "unknown"; }>; proposed_manifest: { inert: true; assignments: Array<{ principal_id: string; role_id: string; }>; decisions: Array<{ role_id: string; capability_id: string; decision: "allow" | "deny" | "review" | "unknown"; }>; }; manual_checklist: { inert: true; items: Array; }; capabilities_executed: false; }; receipt: { input_bytes: number; output_bytes: number; capabilities: number; roles: number; assignments: number; rules: number; matrix_entries: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CAPABILITY_MANIFEST" | "UNKNOWN_CAPABILITY_REFERENCE" | "CONFLICTING_CAPABILITY_RULES" | "CAPABILITY_POLICY_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.agent-capability-policy-auditor.v1"; version: "1.0.0"; result: { allowed: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; denied: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; review: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; unknown: Array<{ principal_id: string; role_id: string; capability_id: string; effect_labels: Array; decision: "allow" | "deny" | "review" | "unknown"; }>; unreachable_requirements: Array<{ role_id: string; capability_id: string; reason: "denied" | "not_allowed" | "unknown"; }>; conflicts: []; role_matrix: Array<{ role_id: string; capability_id: string; decision: "allow" | "deny" | "review" | "unknown"; }>; proposed_manifest: { inert: true; assignments: Array<{ principal_id: string; role_id: string; }>; decisions: Array<{ role_id: string; capability_id: string; decision: "allow" | "deny" | "review" | "unknown"; }>; }; manual_checklist: { inert: true; items: Array; }; capabilities_executed: false; }; receipt: { input_bytes: number; output_bytes: number; capabilities: number; roles: number; assignments: number; rules: number; matrix_entries: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.agent-capability-policy-auditor.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CAPABILITY_MANIFEST" | "UNKNOWN_CAPABILITY_REFERENCE" | "CONFLICTING_CAPABILITY_RULES" | "CAPABILITY_POLICY_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type agent_connection_diagnostic_kitInput = { client_profile: string; transport: "stdio" | "http"; sanitized_configuration: { server_name: string; endpoint_path: null | "/mcp" | "/mcp/"; command: null | string; args: Array; environment_keys: Array; header_names: Array; declared_capabilities: Array; protocol_version: null | string; }; transcript: string; expected_protocol_version: string; diagnostic_policy: { credential_material: "reject"; unknown_client: "review"; transcript_evidence: "safe_exact"; placeholders: "clearly_labeled"; }; }; export type agent_connection_diagnostic_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-connection-diagnostic-kit"; version: "1.0.0"; }; result: null | { status: "ready" | "review_required"; client_support: "known" | "unknown_review_required"; normalized_config: { client_profile: string; transport: "stdio" | "http"; credential_free: true; placeholder_notice: string; format: "shell" | "json" | "endpoint" | "unknown"; config: null | { mcpServers: { [key: string]: { type: "http"; url: ""; } | { url: ""; } | { command: string; args: Array; }; }; } | { servers: { [key: string]: { type: "http"; url: ""; } | { url: ""; } | { command: string; args: Array; }; }; }; endpoint: null | ""; }; compatibility_matrix: Array<{ check: "client_profile" | "transport" | "protocol_version" | "tools_capability" | "submitted_errors"; status: "compatible" | "mismatch" | "review"; path: string; evidence_line: null | number; detail: string; }>; evidence_findings: Array<{ id: string; code: "SUBMITTED_PROTOCOL_VERSION" | "SUBMITTED_TOOL_CAPABILITY" | "SUBMITTED_ERROR" | "SUBMITTED_CAPABILITY"; line: number; path: string; quote: string; caller_submitted_unverified: true; }>; evidence_claim: "All findings are exact safe caller-submitted transcript lines and remain unverified."; fix_checklist: Array<{ code: "REVIEW_CLIENT_PROFILE" | "REVIEW_CLIENT_TRANSPORT" | "ALIGN_PROTOCOL_VERSION" | "REVIEW_TOOLS_CAPABILITY" | "REVIEW_SUBMITTED_ERROR" | "RUN_INERT_VERIFICATION_MANUALLY"; priority: "high" | "medium" | "low"; path: string; message: string; automatic: false; }>; verification: Array<{ id: string; kind: "json_rpc_initialize" | "json_rpc_request"; label: string; text: string; inert: true; execute: false; }>; safety: { connection_attempted: false; socket_opened: false; subprocess_started: false; dns_lookup: false; network_used: false; storage_used: false; commands_executed: false; transcript_verified: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; findings: number; connections_attempted: 0; commands_executed: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_connection_diagnostic_kit: "1.0.0"; agent_connection_doctor: "1.0.0"; mcp_config: "1.0.0"; developer_protocol: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "INVALID_POLICY" | "INVALID_TRANSCRIPT" | "INVALID_PROTOCOL_VERSION" | "UNSUPPORTED_TRANSPORT" | "CREDENTIAL_MATERIAL_REJECTED" | "UNSAFE_SUBMITTED_VALUE" | "REQUEST_TOO_LARGE" | "RESPONSE_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-connection-diagnostic-kit"; version: "1.0.0"; }; result: { status: "ready" | "review_required"; client_support: "known" | "unknown_review_required"; normalized_config: { client_profile: string; transport: "stdio" | "http"; credential_free: true; placeholder_notice: string; format: "shell" | "json" | "endpoint" | "unknown"; config: null | { mcpServers: { [key: string]: { type: "http"; url: ""; } | { url: ""; } | { command: string; args: Array; }; }; } | { servers: { [key: string]: { type: "http"; url: ""; } | { url: ""; } | { command: string; args: Array; }; }; }; endpoint: null | ""; }; compatibility_matrix: Array<{ check: "client_profile" | "transport" | "protocol_version" | "tools_capability" | "submitted_errors"; status: "compatible" | "mismatch" | "review"; path: string; evidence_line: null | number; detail: string; }>; evidence_findings: Array<{ id: string; code: "SUBMITTED_PROTOCOL_VERSION" | "SUBMITTED_TOOL_CAPABILITY" | "SUBMITTED_ERROR" | "SUBMITTED_CAPABILITY"; line: number; path: string; quote: string; caller_submitted_unverified: true; }>; evidence_claim: "All findings are exact safe caller-submitted transcript lines and remain unverified."; fix_checklist: Array<{ code: "REVIEW_CLIENT_PROFILE" | "REVIEW_CLIENT_TRANSPORT" | "ALIGN_PROTOCOL_VERSION" | "REVIEW_TOOLS_CAPABILITY" | "REVIEW_SUBMITTED_ERROR" | "RUN_INERT_VERIFICATION_MANUALLY"; priority: "high" | "medium" | "low"; path: string; message: string; automatic: false; }>; verification: Array<{ id: string; kind: "json_rpc_initialize" | "json_rpc_request"; label: string; text: string; inert: true; execute: false; }>; safety: { connection_attempted: false; socket_opened: false; subprocess_started: false; dns_lookup: false; network_used: false; storage_used: false; commands_executed: false; transcript_verified: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; findings: number; connections_attempted: 0; commands_executed: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_connection_diagnostic_kit: "1.0.0"; agent_connection_doctor: "1.0.0"; mcp_config: "1.0.0"; developer_protocol: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-connection-diagnostic-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; findings: number; connections_attempted: 0; commands_executed: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_connection_diagnostic_kit: "1.0.0"; agent_connection_doctor: "1.0.0"; mcp_config: "1.0.0"; developer_protocol: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "INVALID_POLICY" | "INVALID_TRANSCRIPT" | "INVALID_PROTOCOL_VERSION" | "UNSUPPORTED_TRANSPORT" | "CREDENTIAL_MATERIAL_REJECTED" | "UNSAFE_SUBMITTED_VALUE" | "REQUEST_TOO_LARGE" | "RESPONSE_TOO_LARGE"; message: string; hint: string; }; }); export type agent_context_handoffInput = { handoff: { schema_version: "utilito.agent-handoff.v1"; handoff_id: string; goal: string; status: "in_progress" | "blocked" | "ready_for_review" | "complete"; decisions?: Array<{ id: string; summary: string; rationale?: string; evidence_ids?: Array; }>; completed?: Array<{ id: string; summary: string; artifact_ids?: Array; }>; blockers?: Array<{ id: string; summary: string; next_step?: string; }>; next_actions?: Array<{ id: string; summary: string; priority: "high" | "medium" | "low"; depends_on: Array; }>; artifacts?: Array<{ id: string; kind: string; ref: string; description?: string; integrity_ref?: { algorithm: "sha256"; digest: string; } | { algorithm: "sha384"; digest: string; } | { algorithm: "sha512"; digest: string; }; }>; evidence?: Array<{ id: string; source_id: string; quote: string; integrity_ref?: { algorithm: "sha256"; digest: string; } | { algorithm: "sha384"; digest: string; } | { algorithm: "sha512"; digest: string; }; }>; unknowns?: Array<{ id: string; summary: string; evidence_ids?: Array; }>; constraints?: Array<{ id: string; summary: string; }>; notes?: Array; }; max_bytes: number; }; export type agent_context_handoffOutput = ({ ok: boolean; schema_version: "utilito.agent-context-handoff.v1"; version: "1.0.0"; result: null | { context_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-handoff-pack"; version: "1.0.0"; }; format: "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; integrity_ref?: { algorithm: "sha256"; digest: string; } | { algorithm: "sha384"; digest: string; } | { algorithm: "sha512"; digest: string; }; }>; receipt: { [key: string]: unknown; }; provenance: { [key: string]: unknown; }; error: null; }; report: { ok: true; schema_version: "utilito.evidence-report.v1"; preset: { id: "agent-handoff-report"; version: "1.0.0"; }; export_format: "markdown"; mime_type: "text/markdown"; content: string; receipt: { [key: string]: unknown; }; provenance: { [key: string]: unknown; }; error: null; }; integrity_manifest: { schema_version: "utilito.agent-handoff-integrity.v1"; source: { handoff_id: string; canonical_sha256: string; bytes: number; }; submitted_references: Array<{ subject_kind: "evidence" | "artifact"; subject_id: string; source_id: null | string; verification: "caller_submitted_unverified"; algorithm: "sha256"; digest: string; } | { subject_kind: "evidence" | "artifact"; subject_id: string; source_id: null | string; verification: "caller_submitted_unverified"; algorithm: "sha384"; digest: string; } | { subject_kind: "evidence" | "artifact"; subject_id: string; source_id: null | string; verification: "caller_submitted_unverified"; algorithm: "sha512"; digest: string; }>; derived_artifacts: Array<{ artifact_id: "context-pack" | "evidence-report" | "next-agent-prompt"; media_type: "application/json" | "text/markdown" | "text/plain"; bytes: number; sha256: string; }>; scope: "submitted evidence only; no source files were read and submitted digests were not recomputed"; }; next_agent_prompt: string; safety: { session_access: false; repository_reads: false; filesystem_reads: false; storage_used: false; storage_writes: false; network_calls: false; provider_calls: false; model_calls: false; tools_executed: false; credentials_accepted: false; arbitrary_urls_accepted: false; artifact_references_read: false; }; }; receipt: { input_bytes: number; output_bytes: number; max_context_pack_bytes: number; context_pack_payload_bytes: number; remaining_context_pack_bytes: number; records_submitted: number; records_included: number; records_omitted: number; included_by_section: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; included_ids_by_section: { decisions: Array; completed: Array; blockers: Array; next_actions: Array; artifacts: Array; evidence: Array; unknowns: Array; constraints: Array; notes: Array; }; omitted_ids_by_section: { decisions: Array; completed: Array; blockers: Array; next_actions: Array; artifacts: Array; evidence: Array; unknowns: Array; constraints: Array; notes: Array; }; references_submitted: number; references_retained: number; unresolved_references: 0; submitted_integrity_references: number; submitted_integrity_references_verified: 0; derived_hashes_computed: number; context_pack_bytes: number; report_bytes: number; integrity_manifest_bytes: number; next_agent_prompt_bytes: number; whole_item_policy: true; partial_items: 0; invented_summaries: 0; model_calls: 0; network_calls: 0; filesystem_reads: 0; repository_reads: 0; storage_writes: 0; warnings: Array<"submitted_integrity_references_not_verified">; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_HANDOFF_SCHEMA" | "UNRESOLVED_HANDOFF_REFERENCE" | "HANDOFF_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.agent-context-handoff.v1"; version: "1.0.0"; result: { context_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-handoff-pack"; version: "1.0.0"; }; format: "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; integrity_ref?: { algorithm: "sha256"; digest: string; } | { algorithm: "sha384"; digest: string; } | { algorithm: "sha512"; digest: string; }; }>; receipt: { [key: string]: unknown; }; provenance: { [key: string]: unknown; }; error: null; }; report: { ok: true; schema_version: "utilito.evidence-report.v1"; preset: { id: "agent-handoff-report"; version: "1.0.0"; }; export_format: "markdown"; mime_type: "text/markdown"; content: string; receipt: { [key: string]: unknown; }; provenance: { [key: string]: unknown; }; error: null; }; integrity_manifest: { schema_version: "utilito.agent-handoff-integrity.v1"; source: { handoff_id: string; canonical_sha256: string; bytes: number; }; submitted_references: Array<{ subject_kind: "evidence" | "artifact"; subject_id: string; source_id: null | string; verification: "caller_submitted_unverified"; algorithm: "sha256"; digest: string; } | { subject_kind: "evidence" | "artifact"; subject_id: string; source_id: null | string; verification: "caller_submitted_unverified"; algorithm: "sha384"; digest: string; } | { subject_kind: "evidence" | "artifact"; subject_id: string; source_id: null | string; verification: "caller_submitted_unverified"; algorithm: "sha512"; digest: string; }>; derived_artifacts: Array<{ artifact_id: "context-pack" | "evidence-report" | "next-agent-prompt"; media_type: "application/json" | "text/markdown" | "text/plain"; bytes: number; sha256: string; }>; scope: "submitted evidence only; no source files were read and submitted digests were not recomputed"; }; next_agent_prompt: string; safety: { session_access: false; repository_reads: false; filesystem_reads: false; storage_used: false; storage_writes: false; network_calls: false; provider_calls: false; model_calls: false; tools_executed: false; credentials_accepted: false; arbitrary_urls_accepted: false; artifact_references_read: false; }; }; receipt: { input_bytes: number; output_bytes: number; max_context_pack_bytes: number; context_pack_payload_bytes: number; remaining_context_pack_bytes: number; records_submitted: number; records_included: number; records_omitted: number; included_by_section: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; included_ids_by_section: { decisions: Array; completed: Array; blockers: Array; next_actions: Array; artifacts: Array; evidence: Array; unknowns: Array; constraints: Array; notes: Array; }; omitted_ids_by_section: { decisions: Array; completed: Array; blockers: Array; next_actions: Array; artifacts: Array; evidence: Array; unknowns: Array; constraints: Array; notes: Array; }; references_submitted: number; references_retained: number; unresolved_references: 0; submitted_integrity_references: number; submitted_integrity_references_verified: 0; derived_hashes_computed: number; context_pack_bytes: number; report_bytes: number; integrity_manifest_bytes: number; next_agent_prompt_bytes: number; whole_item_policy: true; partial_items: 0; invented_summaries: 0; model_calls: 0; network_calls: 0; filesystem_reads: 0; repository_reads: 0; storage_writes: 0; warnings: Array<"submitted_integrity_references_not_verified">; }; error: null; } | { ok: false; schema_version: "utilito.agent-context-handoff.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; max_context_pack_bytes: number; context_pack_payload_bytes: number; remaining_context_pack_bytes: number; records_submitted: number; records_included: number; records_omitted: number; included_by_section: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; included_ids_by_section: { decisions: Array; completed: Array; blockers: Array; next_actions: Array; artifacts: Array; evidence: Array; unknowns: Array; constraints: Array; notes: Array; }; omitted_ids_by_section: { decisions: Array; completed: Array; blockers: Array; next_actions: Array; artifacts: Array; evidence: Array; unknowns: Array; constraints: Array; notes: Array; }; references_submitted: number; references_retained: number; unresolved_references: 0; submitted_integrity_references: number; submitted_integrity_references_verified: 0; derived_hashes_computed: number; context_pack_bytes: number; report_bytes: number; integrity_manifest_bytes: number; next_agent_prompt_bytes: number; whole_item_policy: true; partial_items: 0; invented_summaries: 0; model_calls: 0; network_calls: 0; filesystem_reads: 0; repository_reads: 0; storage_writes: 0; warnings: Array<"submitted_integrity_references_not_verified">; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_HANDOFF_SCHEMA" | "UNRESOLVED_HANDOFF_REFERENCE" | "HANDOFF_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type agent_contract_checkInput = { fixture_id?: string; saved_schema?: { [key: string]: unknown; }; current_schema?: { [key: string]: unknown; }; arguments?: { [key: string]: unknown; }; failure?: { [key: string]: unknown; }; [key: string]: unknown; }; export type agent_contract_checkOutput = { ok?: boolean; fixture_id?: string; arguments?: { [key: string]: unknown; }; drift?: { [key: string]: unknown; }; diagnostics?: Array<{ [key: string]: unknown; }>; retry?: { [key: string]: unknown; }; telemetry?: { [key: string]: unknown; }; error?: { [key: string]: unknown; } | null; [key: string]: unknown; }; export type agent_plan_parallelism_auditorInput = { tasks: Array<{ id: string; dependencies: Array; read_resources: Array; write_resources: Array; approval_required: boolean; duration_weight: number; deliverable_ids: Array; }>; policy: { max_parallelism: number; serialize_approvals: boolean; conflict_handling: "review" | "block"; }; }; export type agent_plan_parallelism_auditorOutput = ({ ok: boolean; schema_version: "utilito.agent-plan-parallelism-auditor.v1"; version: "1.0.0"; result: null | { topological_order: Array; parallel_waves: Array<{ wave: number; task_ids: Array; }>; critical_path: { task_ids: Array; declared_duration_weight: number; }; declared_resource_conflicts: Array<{ task_ids: Array; kind: "read_write" | "write_write"; resource_labels: Array; }>; blocked_tasks: Array; safe_concurrent_pairs: Array>; serialization_reasons: Array<{ task_ids: Array; reason: "declared_resource_conflict" | "approval_serialization"; }>; tasks: Array<{ id: string; dependencies: Array; read_resources: Array; write_resources: Array; approval_required: boolean; duration_weight: number; deliverable_ids: Array; }>; verdict: "pass" | "review" | "block"; }; receipt: { input_bytes: number; output_bytes: number; submitted_tasks: number; dependency_edges: number; waves: number; resource_conflicts: number; safe_concurrent_pairs: number; blocked_tasks: number; deliverables: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_PLAN_GRAPH" | "DUPLICATE_TASK_ID" | "UNKNOWN_TASK_REFERENCE" | "DEPENDENCY_CYCLE" | "PARALLELISM_LIMIT_EXCEEDED" | "PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.agent-plan-parallelism-auditor.v1"; version: "1.0.0"; result: { topological_order: Array; parallel_waves: Array<{ wave: number; task_ids: Array; }>; critical_path: { task_ids: Array; declared_duration_weight: number; }; declared_resource_conflicts: Array<{ task_ids: Array; kind: "read_write" | "write_write"; resource_labels: Array; }>; blocked_tasks: Array; safe_concurrent_pairs: Array>; serialization_reasons: Array<{ task_ids: Array; reason: "declared_resource_conflict" | "approval_serialization"; }>; tasks: Array<{ id: string; dependencies: Array; read_resources: Array; write_resources: Array; approval_required: boolean; duration_weight: number; deliverable_ids: Array; }>; verdict: "pass" | "review" | "block"; }; receipt: { input_bytes: number; output_bytes: number; submitted_tasks: number; dependency_edges: number; waves: number; resource_conflicts: number; safe_concurrent_pairs: number; blocked_tasks: number; deliverables: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.agent-plan-parallelism-auditor.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_PLAN_GRAPH" | "DUPLICATE_TASK_ID" | "UNKNOWN_TASK_REFERENCE" | "DEPENDENCY_CYCLE" | "PARALLELISM_LIMIT_EXCEEDED" | "PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type agent_run_forensics_handoff_kitInput = { run_id: string; goal: string; run_status: "failed" | "paused"; events: Array<{ id: string; sequence: number; event_kind: "run" | "tool" | "decision" | "artifact" | "checkpoint"; tool_name?: string; argument_keys: Array; side_effect_state: "none" | "possible" | "confirmed" | "unknown"; depends_on: Array; artifact_ids: Array; summary: string; status: "failed"; error: { code: string; message: string; hint?: string; }; } | { id: string; sequence: number; event_kind: "run" | "tool" | "decision" | "artifact" | "checkpoint"; tool_name?: string; argument_keys: Array; side_effect_state: "none" | "possible" | "confirmed" | "unknown"; depends_on: Array; artifact_ids: Array; summary: string; status: "started" | "complete" | "blocked" | "skipped"; }>; decisions: Array<{ id: string; summary: string; rationale?: string; evidence_ids: Array; }>; blockers: Array<{ id: string; summary: string; next_step?: string; }>; next_actions: Array<{ id: string; summary: string; priority: "high" | "medium" | "low"; depends_on: Array; }>; artifacts: Array<{ id: string; kind: string; ref: string; description?: string; }>; evidence: Array<{ id: string; source_id: string; quote: string; }>; options: { max_pack_bytes: number; report_format: "markdown" | "html"; report_mode: "metadata" | "details"; }; }; export type agent_run_forensics_handoff_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-run-forensics-handoff-kit"; version: "1.0.0"; }; result: null | { status: "handoff_ready" | "review_required"; root_cause: null; timeline: Array<{ id: string; ordinal: number; sequence: number; event_kind: "run" | "tool" | "decision" | "artifact" | "checkpoint"; status: "started" | "complete" | "failed" | "blocked" | "skipped"; tool_name: null | string; argument_keys: Array; error: null | { code: string; message: string; hint?: string; }; side_effect_state: "none" | "possible" | "confirmed" | "unknown"; depends_on: Array; artifact_ids: Array; summary: string; submitted_unverified: true; root_cause: null; }>; timeline_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-run-timeline-pack" | "agent-run-failure-pack" | "agent-handoff-pack"; version: "1.0.0"; }; format: "review" | "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes?: number; max_input_records?: number; input_records: number; output_records: number; omitted_records: number; evidence_input_records?: number; evidence_output_records?: number; evidence_omitted_records?: number; omitted_fields: number; deduplicated: number; truncated: boolean; review_schema_version?: string; output_schema_version?: string; handoff_schema_version?: string; selected_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; omitted_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; selected_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; reference_count?: number; unresolved_references?: number; content_hash?: string; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-context-pack"; core_version: "1.0.0"; }; error: null; }; failure_pack: null | { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-run-timeline-pack" | "agent-run-failure-pack" | "agent-handoff-pack"; version: "1.0.0"; }; format: "review" | "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes?: number; max_input_records?: number; input_records: number; output_records: number; omitted_records: number; evidence_input_records?: number; evidence_output_records?: number; evidence_omitted_records?: number; omitted_fields: number; deduplicated: number; truncated: boolean; review_schema_version?: string; output_schema_version?: string; handoff_schema_version?: string; selected_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; omitted_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; selected_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; reference_count?: number; unresolved_references?: number; content_hash?: string; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-context-pack"; core_version: "1.0.0"; }; error: null; }; failure_pack_reason: null | { code: "NO_FAILED_EVENT"; message: string; }; redacted_handoff_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-run-timeline-pack" | "agent-run-failure-pack" | "agent-handoff-pack"; version: "1.0.0"; }; format: "review" | "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes?: number; max_input_records?: number; input_records: number; output_records: number; omitted_records: number; evidence_input_records?: number; evidence_output_records?: number; evidence_omitted_records?: number; omitted_fields: number; deduplicated: number; truncated: boolean; review_schema_version?: string; output_schema_version?: string; handoff_schema_version?: string; selected_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; omitted_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; selected_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; reference_count?: number; unresolved_references?: number; content_hash?: string; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-context-pack"; core_version: "1.0.0"; }; error: null; }; retry_safety: { classification: "safe" | "unsafe" | "unknown"; basis: "caller_submitted_side_effect_state_unverified"; event_ids: Array; automatic_retry: false; }; reports: { handoff: { ok: true; schema_version: "utilito.evidence-report.v1"; preset: { id: "evidence-report" | "agent-handoff-report" | "agent-run-failure-report"; version: "1.0.0"; }; export_format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; receipt: { input_bytes: number; output_bytes: number; sections: number; evidence_items: number; truncated: boolean; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.context-pack.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; failure: null | { ok: true; schema_version: "utilito.evidence-report.v1"; preset: { id: "evidence-report" | "agent-handoff-report" | "agent-run-failure-report"; version: "1.0.0"; }; export_format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; receipt: { input_bytes: number; output_bytes: number; sections: number; evidence_items: number; truncated: boolean; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.context-pack.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; }; redaction_receipt: { fields: number; replacements: number; marker: "[REDACTED]"; }; safety: { tools_replayed: false; tools_executed: false; automatic_retry: false; root_cause_inferred: false; input_stored: false; network_used: false; }; safe_actions: Array<{ code: "REVIEW_TIMELINE" | "INSPECT_SIDE_EFFECTS" | "HAND_OFF_MANUALLY"; message: string; automatic: false; }>; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; events: number; redacted_fields: number; redaction_replacements: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_run_forensics_kit: "1.0.0"; context_pack: "1.0.0"; deterministic_review_pack: "1.0.0"; product_review_pack: "1.0.0"; evidence_report: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "INVALID_EVENTS" | "INVALID_DECISIONS" | "INVALID_BLOCKERS" | "INVALID_NEXT_ACTIONS" | "INVALID_ARTIFACTS" | "INVALID_EVIDENCE" | "INVALID_OPTIONS" | "DUPLICATE_ID" | "DUPLICATE_SEQUENCE" | "UNRESOLVED_REFERENCE" | "CYCLIC_DEPENDENCY" | "FORWARD_DEPENDENCY" | "RUN_STATUS_MISMATCH" | "PACK_BUILD_FAILED" | "REPORT_BUILD_FAILED" | "UNSAFE_VALUE_REMAINS"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-run-forensics-handoff-kit"; version: "1.0.0"; }; result: { status: "handoff_ready" | "review_required"; root_cause: null; timeline: Array<{ id: string; ordinal: number; sequence: number; event_kind: "run" | "tool" | "decision" | "artifact" | "checkpoint"; status: "started" | "complete" | "failed" | "blocked" | "skipped"; tool_name: null | string; argument_keys: Array; error: null | { code: string; message: string; hint?: string; }; side_effect_state: "none" | "possible" | "confirmed" | "unknown"; depends_on: Array; artifact_ids: Array; summary: string; submitted_unverified: true; root_cause: null; }>; timeline_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-run-timeline-pack" | "agent-run-failure-pack" | "agent-handoff-pack"; version: "1.0.0"; }; format: "review" | "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes?: number; max_input_records?: number; input_records: number; output_records: number; omitted_records: number; evidence_input_records?: number; evidence_output_records?: number; evidence_omitted_records?: number; omitted_fields: number; deduplicated: number; truncated: boolean; review_schema_version?: string; output_schema_version?: string; handoff_schema_version?: string; selected_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; omitted_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; selected_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; reference_count?: number; unresolved_references?: number; content_hash?: string; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-context-pack"; core_version: "1.0.0"; }; error: null; }; failure_pack: null | { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-run-timeline-pack" | "agent-run-failure-pack" | "agent-handoff-pack"; version: "1.0.0"; }; format: "review" | "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes?: number; max_input_records?: number; input_records: number; output_records: number; omitted_records: number; evidence_input_records?: number; evidence_output_records?: number; evidence_omitted_records?: number; omitted_fields: number; deduplicated: number; truncated: boolean; review_schema_version?: string; output_schema_version?: string; handoff_schema_version?: string; selected_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; omitted_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; selected_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; reference_count?: number; unresolved_references?: number; content_hash?: string; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-context-pack"; core_version: "1.0.0"; }; error: null; }; failure_pack_reason: null | { code: "NO_FAILED_EVENT"; message: string; }; redacted_handoff_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "agent-run-timeline-pack" | "agent-run-failure-pack" | "agent-handoff-pack"; version: "1.0.0"; }; format: "review" | "handoff"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes?: number; max_input_records?: number; input_records: number; output_records: number; omitted_records: number; evidence_input_records?: number; evidence_output_records?: number; evidence_omitted_records?: number; omitted_fields: number; deduplicated: number; truncated: boolean; review_schema_version?: string; output_schema_version?: string; handoff_schema_version?: string; selected_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; omitted_by_status?: { event?: number; failed?: number; blocked?: number; skipped?: number; complete?: number; }; selected_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; omitted_by_section?: { decisions: number; completed: number; blockers: number; next_actions: number; artifacts: number; evidence: number; unknowns: number; constraints: number; notes: number; }; reference_count?: number; unresolved_references?: number; content_hash?: string; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-context-pack"; core_version: "1.0.0"; }; error: null; }; retry_safety: { classification: "safe" | "unsafe" | "unknown"; basis: "caller_submitted_side_effect_state_unverified"; event_ids: Array; automatic_retry: false; }; reports: { handoff: { ok: true; schema_version: "utilito.evidence-report.v1"; preset: { id: "evidence-report" | "agent-handoff-report" | "agent-run-failure-report"; version: "1.0.0"; }; export_format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; receipt: { input_bytes: number; output_bytes: number; sections: number; evidence_items: number; truncated: boolean; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.context-pack.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; failure: null | { ok: true; schema_version: "utilito.evidence-report.v1"; preset: { id: "evidence-report" | "agent-handoff-report" | "agent-run-failure-report"; version: "1.0.0"; }; export_format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; receipt: { input_bytes: number; output_bytes: number; sections: number; evidence_items: number; truncated: boolean; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.context-pack.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; }; redaction_receipt: { fields: number; replacements: number; marker: "[REDACTED]"; }; safety: { tools_replayed: false; tools_executed: false; automatic_retry: false; root_cause_inferred: false; input_stored: false; network_used: false; }; safe_actions: Array<{ code: "REVIEW_TIMELINE" | "INSPECT_SIDE_EFFECTS" | "HAND_OFF_MANUALLY"; message: string; automatic: false; }>; }; receipt: { input_bytes: number; output_bytes: number; operations: 4; omitted_items: 0; warnings: []; events: number; redacted_fields: number; redaction_replacements: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_run_forensics_kit: "1.0.0"; context_pack: "1.0.0"; deterministic_review_pack: "1.0.0"; product_review_pack: "1.0.0"; evidence_report: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-run-forensics-handoff-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: 0; operations: 0; omitted_items: 0; warnings: []; events: 0; redacted_fields: number; redaction_replacements: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_run_forensics_kit: "1.0.0"; context_pack: "1.0.0"; deterministic_review_pack: "1.0.0"; product_review_pack: "1.0.0"; evidence_report: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "INVALID_EVENTS" | "INVALID_DECISIONS" | "INVALID_BLOCKERS" | "INVALID_NEXT_ACTIONS" | "INVALID_ARTIFACTS" | "INVALID_EVIDENCE" | "INVALID_OPTIONS" | "DUPLICATE_ID" | "DUPLICATE_SEQUENCE" | "UNRESOLVED_REFERENCE" | "CYCLIC_DEPENDENCY" | "FORWARD_DEPENDENCY" | "RUN_STATUS_MISMATCH" | "PACK_BUILD_FAILED" | "REPORT_BUILD_FAILED" | "UNSAFE_VALUE_REMAINS"; message: string; hint: string; }; }); export type agent_run_state_validatorInput = { events: Array<{ id: string; sequence: number; state: "started" | "completed" | "failed" | "cancelled"; depends_on: Array; artifact_ids: Array; side_effect_state: "none" | "present" | "unknown"; }>; checkpoints: Array<{ id: string; event_id: string; artifact_ids: Array; }>; policy: { require_completed_checkpoint: boolean; require_no_side_effects: boolean; }; }; export type agent_run_state_validatorOutput = ({ ok: boolean; schema_version: "utilito.agent-run-state-validation.v1"; version: "1.0.0"; result: null | { transition_matrix: Array<{ from_event_id: string; to_event_id: string; from_state: "started" | "completed" | "failed" | "cancelled"; to_state: "started" | "completed" | "failed" | "cancelled"; valid: boolean; }>; findings: Array<{ id: string; reasons: Array; } | { id: string; reason: string; }>; resumable_checkpoints: Array<{ id: string; event_id: string; artifact_ids: Array; structural_only: true; }>; unsafe_checkpoints: Array<{ id: string; reasons: Array; }>; unknown_checkpoints: Array<{ id: string; reason: string; }>; resume_decision: "safe" | "unsafe" | "unknown"; resume_pack: { schema_version: "utilito.agent-resume-pack.v1"; checkpoint_ids: Array; structural_validation_only: true; }; replay_executed: false; idempotence_inferred: false; side_effect_safety_inferred: false; }; receipt: { input_bytes: number; output_bytes: number; events: number; checkpoints: number; transitions: number; resumable: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_RUN_TRANSITION" | "CHECKPOINT_REFERENCE_MISSING" | "AMBIGUOUS_RESUME_STATE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.agent-run-state-validation.v1"; version: "1.0.0"; result: { transition_matrix: Array<{ from_event_id: string; to_event_id: string; from_state: "started" | "completed" | "failed" | "cancelled"; to_state: "started" | "completed" | "failed" | "cancelled"; valid: boolean; }>; findings: Array<{ id: string; reasons: Array; } | { id: string; reason: string; }>; resumable_checkpoints: Array<{ id: string; event_id: string; artifact_ids: Array; structural_only: true; }>; unsafe_checkpoints: Array<{ id: string; reasons: Array; }>; unknown_checkpoints: Array<{ id: string; reason: string; }>; resume_decision: "safe" | "unsafe" | "unknown"; resume_pack: { schema_version: "utilito.agent-resume-pack.v1"; checkpoint_ids: Array; structural_validation_only: true; }; replay_executed: false; idempotence_inferred: false; side_effect_safety_inferred: false; }; receipt: { input_bytes: number; output_bytes: number; events: number; checkpoints: number; transitions: number; resumable: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.agent-run-state-validation.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_RUN_TRANSITION" | "CHECKPOINT_REFERENCE_MISSING" | "AMBIGUOUS_RESUME_STATE"; message: string; hint: string; }; }); export type agent_tool_call_replay_kitInput_safe_string = string; export type agent_tool_call_replay_kitInput_safe_json_property_name = string; export type agent_tool_call_replay_kitInput_review_semantic_name = string; export type agent_tool_call_replay_kitInput_safe_property_name = string; export type agent_tool_call_replay_kitInput_safe_schema_keyword = string; export type agent_tool_call_replay_kitInput_safe_json_0 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_1; }; export type agent_tool_call_replay_kitInput_review_semantic_0 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_1; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_0 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_1; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_1; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_1 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_2; }; export type agent_tool_call_replay_kitInput_review_semantic_1 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_2; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_1 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_2; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_2; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_2 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_3; }; export type agent_tool_call_replay_kitInput_review_semantic_2 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_3; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_2 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_3; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_3; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_3 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_4; }; export type agent_tool_call_replay_kitInput_review_semantic_3 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_4; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_3 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_4; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_4; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_4 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_5; }; export type agent_tool_call_replay_kitInput_review_semantic_4 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_5; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_4 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_5; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_5; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_5 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_6; }; export type agent_tool_call_replay_kitInput_review_semantic_5 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_6; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_5 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_6; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_6; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_6 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_7; }; export type agent_tool_call_replay_kitInput_review_semantic_6 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_7; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_6 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_7; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_7; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_7 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_8; }; export type agent_tool_call_replay_kitInput_review_semantic_7 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_8; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_7 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_8; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_8; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_8 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_9; }; export type agent_tool_call_replay_kitInput_review_semantic_8 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_9; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_8 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_9; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_9; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_9 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_10; }; export type agent_tool_call_replay_kitInput_review_semantic_9 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_10; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_9 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_10; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_10; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_10 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_11; }; export type agent_tool_call_replay_kitInput_review_semantic_10 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_11; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_10 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_11; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_11; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_11 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_12; }; export type agent_tool_call_replay_kitInput_review_semantic_11 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_12; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_11 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_12; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_12; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_12 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_13; }; export type agent_tool_call_replay_kitInput_review_semantic_12 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_13; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_12 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_13; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_13; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_13 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_14; }; export type agent_tool_call_replay_kitInput_review_semantic_13 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_14; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_13 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_14; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_14; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_14 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_15; }; export type agent_tool_call_replay_kitInput_review_semantic_14 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_15; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_14 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_15; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_15; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_15 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_16; }; export type agent_tool_call_replay_kitInput_review_semantic_15 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_16; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_15 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_16; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_16; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_16 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_17; }; export type agent_tool_call_replay_kitInput_review_semantic_16 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_17; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_16 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_17; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_17; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_17 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_18; }; export type agent_tool_call_replay_kitInput_review_semantic_17 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_18; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_17 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_18; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_18; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_18 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_19; }; export type agent_tool_call_replay_kitInput_review_semantic_18 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_19; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_18 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_19; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_19; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_19 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_safe_json_20; }; export type agent_tool_call_replay_kitInput_review_semantic_19 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | Array | { [key: string]: agent_tool_call_replay_kitInput_review_semantic_20; }; export type agent_tool_call_replay_kitInput_submitted_schema_node_19 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_20; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_20; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput_safe_json_20 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | [] | { }; export type agent_tool_call_replay_kitInput_review_semantic_20 = null | boolean | number | agent_tool_call_replay_kitInput_safe_string | [] | { }; export type agent_tool_call_replay_kitInput_submitted_schema_node_20 = { type?: "null" | "boolean" | "number" | "integer" | "string" | "object" | "array"; properties?: { }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; }; export type agent_tool_call_replay_kitInput_safeJson = agent_tool_call_replay_kitInput_safe_json_0; export type agent_tool_call_replay_kitInput_safeJsonObject = { [key: string]: agent_tool_call_replay_kitInput_safe_json_1; }; export type agent_tool_call_replay_kitInput_reviewSemanticValue = agent_tool_call_replay_kitInput_review_semantic_0; export type agent_tool_call_replay_kitInput_submitted_schema_node = agent_tool_call_replay_kitInput_submitted_schema_node_0; export type agent_tool_call_replay_kitInput_input_object_schema = { type: "object"; properties?: { [key: string]: agent_tool_call_replay_kitInput_submitted_schema_node_1; }; required?: Array; additionalProperties?: boolean; enum?: Array; const?: agent_tool_call_replay_kitInput_safe_json_0; items?: agent_tool_call_replay_kitInput_submitted_schema_node_1; [key: string]: unknown; }; export type agent_tool_call_replay_kitInput = { tool_definitions: Array<{ name: string; description: string; input_schema: agent_tool_call_replay_kitInput_input_object_schema; result_schema: agent_tool_call_replay_kitInput_submitted_schema_node; }>; transcript: Array<{ sequence: number; kind: "call"; call_id: string; tool_name: string; arguments: agent_tool_call_replay_kitInput_safeJsonObject; } | { sequence: number; kind: "result"; call_id: string; outcome: "success"; result: agent_tool_call_replay_kitInput_safeJson; } | { sequence: number; kind: "result"; call_id: string; outcome: "error"; error: { code: string; message: string; }; }>; expectations: { call_order: Array; outcomes: Array<{ call_id: string; outcome: "success"; } | { call_id: string; outcome: "error"; error_code: string; }>; }; id_link_policy: { result_to_call: "required_exact"; result_cardinality: "exactly_one"; unique_call_ids: true; }; options: { report_format: "markdown" | "html"; report_mode: "metadata" | "details"; }; }; export type agent_tool_call_replay_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-tool-call-replay-kit"; version: "1.0.0"; }; result: null | { status: "matched" | "mismatched" | "review_required"; normalized_timeline: Array<{ submitted_index: number; ordinal: number; arguments: { [key: string]: unknown; }; call_id: string; kind: "call"; sequence: number; tool_name: string; } | { submitted_index: number; ordinal: number; call_id: string; kind: "result"; outcome: "success"; result: unknown; sequence: number; } | { submitted_index: number; ordinal: number; call_id: string; error: { code: string; message: string; }; kind: "result"; outcome: "error"; sequence: number; }>; linkage: { policy: { result_cardinality: "exactly_one"; result_to_call: "required_exact"; unique_call_ids: true; }; calls: Array<{ call_id: string; tool_name: string; submitted_index: number; sequence: number; definition_status: "defined" | "missing"; }>; results: Array<{ call_id: string; submitted_index: number; sequence: number; outcome: "success" | "error"; link_status: "linked_prior_call" | "orphan" | "before_call" | "duplicate"; call_submitted_index: null | number; }>; orphan_results: Array; missing_results: Array; duplicate_results: Array; }; diagnostics: Array<{ code: string; status: "matched" | "mismatched" | "review_required"; path: string; message: string; submitted_index: null | number; }>; fixture: { [key: string]: unknown; }; assertions: { inert: true; language: "javascript"; runtime: "node"; node_source: string; bytes: number; executes_tools: false; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; mode: "metadata" | "details"; content: string; }; mismatch_report: { count: number; items: Array<{ code: string; status: "matched" | "mismatched" | "review_required"; path: string; message: string; submitted_index: null | number; }>; review_count: number; checklist: Array<{ code: string; path: string; automatic: false; }>; }; safety: { tools_executed: false; tools_replayed: false; values_invented: false; values_repaired: false; results_verified: false; submitted_outcomes_verified: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: Array; definitions: number; events: number; mismatches: number; review_items: number; tools_executed: 0; fixture_bytes?: number; assertion_bytes?: number; report_bytes?: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_tool_call_replay_kit: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "INVALID_DEFINITION" | "INVALID_SCHEMA" | "INVALID_TRANSCRIPT" | "INVALID_EXPECTATIONS" | "INVALID_POLICY" | "INVALID_OPTIONS" | "CREDENTIAL_MATERIAL_REJECTED" | "UNSAFE_SUBMITTED_VALUE" | "REQUEST_TOO_LARGE" | "FIXTURE_TOO_LARGE" | "ASSERTIONS_TOO_LARGE" | "REPORT_TOO_LARGE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-tool-call-replay-kit"; version: "1.0.0"; }; result: { status: "matched" | "mismatched" | "review_required"; normalized_timeline: Array<{ submitted_index: number; ordinal: number; arguments: { [key: string]: unknown; }; call_id: string; kind: "call"; sequence: number; tool_name: string; } | { submitted_index: number; ordinal: number; call_id: string; kind: "result"; outcome: "success"; result: unknown; sequence: number; } | { submitted_index: number; ordinal: number; call_id: string; error: { code: string; message: string; }; kind: "result"; outcome: "error"; sequence: number; }>; linkage: { policy: { result_cardinality: "exactly_one"; result_to_call: "required_exact"; unique_call_ids: true; }; calls: Array<{ call_id: string; tool_name: string; submitted_index: number; sequence: number; definition_status: "defined" | "missing"; }>; results: Array<{ call_id: string; submitted_index: number; sequence: number; outcome: "success" | "error"; link_status: "linked_prior_call" | "orphan" | "before_call" | "duplicate"; call_submitted_index: null | number; }>; orphan_results: Array; missing_results: Array; duplicate_results: Array; }; diagnostics: Array<{ code: string; status: "matched" | "mismatched" | "review_required"; path: string; message: string; submitted_index: null | number; }>; fixture: { [key: string]: unknown; }; assertions: { inert: true; language: "javascript"; runtime: "node"; node_source: string; bytes: number; executes_tools: false; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; mode: "metadata" | "details"; content: string; }; mismatch_report: { count: number; items: Array<{ code: string; status: "matched" | "mismatched" | "review_required"; path: string; message: string; submitted_index: null | number; }>; review_count: number; checklist: Array<{ code: string; path: string; automatic: false; }>; }; safety: { tools_executed: false; tools_replayed: false; values_invented: false; values_repaired: false; results_verified: false; submitted_outcomes_verified: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: Array; definitions: number; events: number; mismatches: number; review_items: number; tools_executed: 0; fixture_bytes?: number; assertion_bytes?: number; report_bytes?: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_tool_call_replay_kit: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "agent-tool-call-replay-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: Array; definitions: number; events: number; mismatches: number; review_items: number; tools_executed: 0; fixture_bytes?: number; assertion_bytes?: number; report_bytes?: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { agent_tool_call_replay_kit: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "INVALID_DEFINITION" | "INVALID_SCHEMA" | "INVALID_TRANSCRIPT" | "INVALID_EXPECTATIONS" | "INVALID_POLICY" | "INVALID_OPTIONS" | "CREDENTIAL_MATERIAL_REJECTED" | "UNSAFE_SUBMITTED_VALUE" | "REQUEST_TOO_LARGE" | "FIXTURE_TOO_LARGE" | "ASSERTIONS_TOO_LARGE" | "REPORT_TOO_LARGE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type api_failure_diagnosticInput = { intended_operation: { surface: "api"; operation: "run_tool"; tool_id: string; response_mode: "full" | "compact" | "output"; } | { surface: "api"; operation: "run_batch"; tool_id: null; response_mode: null; } | { surface: "api"; operation: "run_pipeline"; tool_id: null; response_mode: null; } | { surface: "mcp"; operation: "search_tools"; tool_id: null; response_mode: null; } | { surface: "mcp"; operation: "get_tool_schema"; tool_id: string; response_mode: null; } | { surface: "mcp"; operation: "run_tool"; tool_id: string; response_mode: "full" | "compact" | "output"; } | { surface: "mcp"; operation: "run_batch"; tool_id: null; response_mode: null; } | { surface: "mcp"; operation: "run_pipeline"; tool_id: null; response_mode: null; }; http?: { status: number; content_type: null | "application/json" | "text/plain"; body_state: "missing" | "valid_json" | "malformed_json" | "non_json"; headers: Array<{ name: string; value: string; }>; envelope: null | { kind: "api_error" | "api_tool_envelope" | "jsonrpc_error" | "mcp_tool_result" | "unknown"; success: null | boolean; ok: null | boolean; error_code: null | string; jsonrpc_code: null | number; is_error: null | boolean; response_id_matches: null | boolean; message_present: boolean; }; }; mcp?: { protocol_version: null | "2025-06-18"; jsonrpc: null | "2.0"; router_tool: null | "search_tools" | "get_tool_schema" | "run_tool" | "run_batch" | "run_pipeline"; response_id_matches: null | boolean; tool_result_is_error: null | boolean; }; submitted_context: { observed_stage: "request_build" | "request_send" | "response_headers" | "response_parse" | "envelope_validation" | "tool_execution"; client_event: "none" | "network_error" | "aborted" | "timeout"; }; }; export type api_failure_diagnosticOutput = ({ ok: boolean; schema_version: "utilito.api-failure-diagnostic.v1"; version: "1.0.0"; result: null | { classification: { category: "transport" | "authentication" | "admission" | "timeout" | "schema" | "tool" | "malformed_envelope" | "unsupported_mode"; code: string; confidence: "typed" | "structural" | "status_only"; evidence: Array<{ source: "http.body_state" | "mcp.response_id_matches" | "mcp.protocol_version" | "submitted_context.client_event" | "http.envelope.error_code" | "http.envelope.jsonrpc_code" | "http.envelope.kind" | "http.status"; fact: string; }>; }; retry_safety: { disposition: "do_not_retry" | "correct_then_retry" | "retry_after_delay" | "retry_once" | "manual_review"; automatic_retry: boolean; retry_after_seconds: null | number; basis: "typed_error" | "safe_retry_after" | "structural_failure" | "status_only"; }; corrected_request: { kind: "api_run_tool"; method: "POST"; path: "/api/run"; content_type: "application/json"; body: { tool_id: ""; input: ""; response_mode: "full" | "compact" | "output"; }; } | { kind: "api_batch"; method: "POST"; path: "/api/batch"; content_type: "application/json"; body: { requests: ""; }; } | { kind: "api_pipeline"; method: "POST"; path: "/api/pipeline"; content_type: "application/json"; body: { input: ""; steps: ""; }; } | { kind: "mcp_search_tools"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "search_tools"; arguments: { query: ""; }; }; }; } | { kind: "mcp_get_tool_schema"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "get_tool_schema"; arguments: { tool_id: ""; }; }; }; } | { kind: "mcp_run_tool"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "run_tool"; arguments: { tool_id: ""; input: ""; response_mode: "full" | "compact" | "output"; }; }; }; } | { kind: "mcp_run_batch"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "run_batch"; arguments: { requests: ""; }; }; }; } | { kind: "mcp_run_pipeline"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "run_pipeline"; arguments: { input: ""; steps: ""; }; }; }; }; redactions: Array<{ source: "http.envelope.message"; action: "omitted"; reason: "free_text_not_required" | "credential_header_rejected" | "arbitrary_header_rejected" | "payload_not_published"; }>; safety: { network_used: false; storage_used: false; repository_reads: false; writeback: false; credentials_accepted: false; request_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; inspected_headers: number; inspected_envelopes: number; classification_operations: number; redactions: number; omitted_values: number; traversed_nodes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INSUFFICIENT_FAILURE_EVIDENCE" | "UNSAFE_HEADER" | "CONTRADICTORY_TRANSPORT_EVIDENCE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.api-failure-diagnostic.v1"; version: "1.0.0"; result: { classification: { category: "transport" | "authentication" | "admission" | "timeout" | "schema" | "tool" | "malformed_envelope" | "unsupported_mode"; code: string; confidence: "typed" | "structural" | "status_only"; evidence: Array<{ source: "http.body_state" | "mcp.response_id_matches" | "mcp.protocol_version" | "submitted_context.client_event" | "http.envelope.error_code" | "http.envelope.jsonrpc_code" | "http.envelope.kind" | "http.status"; fact: string; }>; }; retry_safety: { disposition: "do_not_retry" | "correct_then_retry" | "retry_after_delay" | "retry_once" | "manual_review"; automatic_retry: boolean; retry_after_seconds: null | number; basis: "typed_error" | "safe_retry_after" | "structural_failure" | "status_only"; }; corrected_request: { kind: "api_run_tool"; method: "POST"; path: "/api/run"; content_type: "application/json"; body: { tool_id: ""; input: ""; response_mode: "full" | "compact" | "output"; }; } | { kind: "api_batch"; method: "POST"; path: "/api/batch"; content_type: "application/json"; body: { requests: ""; }; } | { kind: "api_pipeline"; method: "POST"; path: "/api/pipeline"; content_type: "application/json"; body: { input: ""; steps: ""; }; } | { kind: "mcp_search_tools"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "search_tools"; arguments: { query: ""; }; }; }; } | { kind: "mcp_get_tool_schema"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "get_tool_schema"; arguments: { tool_id: ""; }; }; }; } | { kind: "mcp_run_tool"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "run_tool"; arguments: { tool_id: ""; input: ""; response_mode: "full" | "compact" | "output"; }; }; }; } | { kind: "mcp_run_batch"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "run_batch"; arguments: { requests: ""; }; }; }; } | { kind: "mcp_run_pipeline"; method: "POST"; path: "/mcp"; content_type: "application/json"; jsonrpc: "2.0"; id: 1; body: { method: "tools/call"; params: { name: "run_pipeline"; arguments: { input: ""; steps: ""; }; }; }; }; redactions: Array<{ source: "http.envelope.message"; action: "omitted"; reason: "free_text_not_required" | "credential_header_rejected" | "arbitrary_header_rejected" | "payload_not_published"; }>; safety: { network_used: false; storage_used: false; repository_reads: false; writeback: false; credentials_accepted: false; request_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; inspected_headers: number; inspected_envelopes: number; classification_operations: number; redactions: number; omitted_values: number; traversed_nodes: number; }; error: null; } | { ok: false; schema_version: "utilito.api-failure-diagnostic.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; inspected_headers: number; inspected_envelopes: number; classification_operations: number; redactions: number; omitted_values: number; traversed_nodes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INSUFFICIENT_FAILURE_EVIDENCE" | "UNSAFE_HEADER" | "CONTRADICTORY_TRANSPORT_EVIDENCE"; message: string; hint: string; }; }); export type api_fixture_matrixInput_nx_json_0 = null | boolean | number | string | [] | { }; export type api_fixture_matrixInput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_0; }; export type api_fixture_matrixInput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_1; }; export type api_fixture_matrixInput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_2; }; export type api_fixture_matrixInput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_3; }; export type api_fixture_matrixInput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_4; }; export type api_fixture_matrixInput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_5; }; export type api_fixture_matrixInput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_6; }; export type api_fixture_matrixInput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_7; }; export type api_fixture_matrixInput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_8; }; export type api_fixture_matrixInput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_9; }; export type api_fixture_matrixInput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_10; }; export type api_fixture_matrixInput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_json_11; }; export type api_fixture_matrixInput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type api_fixture_matrixInput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_0; }; export type api_fixture_matrixInput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_1; }; export type api_fixture_matrixInput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_2; }; export type api_fixture_matrixInput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_3; }; export type api_fixture_matrixInput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_4; }; export type api_fixture_matrixInput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_5; }; export type api_fixture_matrixInput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_6; }; export type api_fixture_matrixInput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_7; }; export type api_fixture_matrixInput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_8; }; export type api_fixture_matrixInput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_9; }; export type api_fixture_matrixInput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_10; }; export type api_fixture_matrixInput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixInput_nx_safe_json_11; }; export type api_fixture_matrixInput_fixture_schema_node = { type: "object" | "string" | "integer" | "number" | "boolean" | "array"; additionalProperties?: boolean; properties?: { [key: string]: api_fixture_matrixInput_fixture_schema_node; }; required?: Array; minLength?: number; maxLength?: number; minimum?: number; maximum?: number; enum?: Array; items?: api_fixture_matrixInput_fixture_schema_node; minItems?: number; maxItems?: number; oneOf?: Array; }; export type api_fixture_matrixInput = { schema_id: string; schema: { type: "object"; additionalProperties: false; properties: { [key: string]: api_fixture_matrixInput_fixture_schema_node; }; required?: Array; minLength?: number; maxLength?: number; minimum?: number; maximum?: number; enum?: Array; items?: api_fixture_matrixInput_fixture_schema_node; minItems?: number; maxItems?: number; oneOf?: Array; }; seed_fixtures: Array<{ id: string; value: api_fixture_matrixInput_nx_safe_json_12; }>; policy: { mutations: Array<"required" | "type" | "additionalProperties" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems">; max_fixtures: number; }; }; export type api_fixture_matrixOutput_nx_json_0 = null | boolean | number | string | [] | { }; export type api_fixture_matrixOutput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_0; }; export type api_fixture_matrixOutput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_1; }; export type api_fixture_matrixOutput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_2; }; export type api_fixture_matrixOutput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_3; }; export type api_fixture_matrixOutput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_4; }; export type api_fixture_matrixOutput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_5; }; export type api_fixture_matrixOutput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_6; }; export type api_fixture_matrixOutput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_7; }; export type api_fixture_matrixOutput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_8; }; export type api_fixture_matrixOutput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_9; }; export type api_fixture_matrixOutput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_10; }; export type api_fixture_matrixOutput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_json_11; }; export type api_fixture_matrixOutput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type api_fixture_matrixOutput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_0; }; export type api_fixture_matrixOutput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_1; }; export type api_fixture_matrixOutput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_2; }; export type api_fixture_matrixOutput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_3; }; export type api_fixture_matrixOutput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_4; }; export type api_fixture_matrixOutput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_5; }; export type api_fixture_matrixOutput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_6; }; export type api_fixture_matrixOutput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_7; }; export type api_fixture_matrixOutput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_8; }; export type api_fixture_matrixOutput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_9; }; export type api_fixture_matrixOutput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_10; }; export type api_fixture_matrixOutput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: api_fixture_matrixOutput_nx_safe_json_11; }; export type api_fixture_matrixOutput = ({ ok: boolean; schema_version: "utilito.api-fixture-matrix.v1"; version: "1.0.0"; result: null | { valid_fixtures: Array<{ id: string; value: api_fixture_matrixOutput_nx_safe_json_12; }>; invalid_fixtures: Array<{ id: string; value: api_fixture_matrixOutput_nx_safe_json_12; expected: { path: string; keyword: "required" | "type" | "additionalProperties" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems"; }; fault_count: 1; seed_id: string; }>; assertions: { runtime: "node"; source: string; }; manifest: { schema_id: string; valid_fixture_ids: Array; invalid_fixture_ids: Array; mutation_allowlist: Array<"required" | "type" | "additionalProperties" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems">; }; fixtures_executed: false; values_inferred: false; random_generation_used: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; valid_fixtures: number; invalid_fixtures: number; mutations: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_SEED_FIXTURE" | "MUTATION_NOT_APPLICABLE" | "FIXTURE_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.api-fixture-matrix.v1"; version: "1.0.0"; result: { valid_fixtures: Array<{ id: string; value: api_fixture_matrixOutput_nx_safe_json_12; }>; invalid_fixtures: Array<{ id: string; value: api_fixture_matrixOutput_nx_safe_json_12; expected: { path: string; keyword: "required" | "type" | "additionalProperties" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems"; }; fault_count: 1; seed_id: string; }>; assertions: { runtime: "node"; source: string; }; manifest: { schema_id: string; valid_fixture_ids: Array; invalid_fixture_ids: Array; mutation_allowlist: Array<"required" | "type" | "additionalProperties" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems">; }; fixtures_executed: false; values_inferred: false; random_generation_used: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; valid_fixtures: number; invalid_fixtures: number; mutations: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.api-fixture-matrix.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_SEED_FIXTURE" | "MUTATION_NOT_APPLICABLE" | "FIXTURE_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type api_migration_kitInput_schema_node = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; properties?: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties?: boolean; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; export type api_migration_kitInput = { contract_kind?: unknown; previous_contract?: unknown; current_contract?: unknown; comparison_target?: unknown; field_mapping?: unknown; fixtures?: unknown; target_language?: unknown; policy?: unknown; options?: unknown; selector?: unknown; } & ({ contract_kind: "json_schema"; previous_contract: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; current_contract: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; comparison_target: "request" | "response" | "both"; field_mapping: Array<{ target: "request" | "response"; from: string; to: string; }>; fixtures: unknown; target_language: "javascript" | "typescript" | "python" | "curl"; policy: { breaking_changes: "block" | "review"; unknown_changes: "block" | "review"; fixture_mismatches: "block" | "review"; unmapped_removed_fields: "block" | "review"; new_required_fields: "block" | "review"; }; options: { report_format: "markdown"; report_mode: "metadata" | "details"; }; } | { contract_kind: "openapi_operation"; previous_contract: { openapi: string; info: { title: string; version: string; }; paths: { [key: string]: { get?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; put?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; post?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; delete?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; patch?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; head?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; options?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; trace?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; }; }; }; current_contract: { openapi: string; info: { title: string; version: string; }; paths: { [key: string]: { get?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; put?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; post?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; delete?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; patch?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; head?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; options?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; trace?: { requestBody: { content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; responses: { [key: string]: { description: string; content: { [key: string]: { schema: { type: "object"; properties: { [key: string]: api_migration_kitInput_schema_node; }; required?: Array; additionalProperties: false; items?: api_migration_kitInput_schema_node; enum?: unknown; const?: unknown; title?: string; description?: string; default?: unknown; minimum?: number; }; }; }; }; }; }; }; }; }; comparison_target: "request" | "response" | "both"; field_mapping: Array<{ target: "request" | "response"; from: string; to: string; }>; fixtures: unknown; target_language: "javascript" | "typescript" | "python" | "curl"; policy: { breaking_changes: "block" | "review"; unknown_changes: "block" | "review"; fixture_mismatches: "block" | "review"; unmapped_removed_fields: "block" | "review"; new_required_fields: "block" | "review"; }; options: { report_format: "markdown"; report_mode: "metadata" | "details"; }; selector: { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; }); export type api_migration_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "api-migration-kit"; version: "1.0.0"; }; result: null | { decision: "pass" | "review" | "block"; status: "ready" | "review_required" | "blocked"; compatibility_matrix: { direction: "request" | "response" | "both"; operation_selector: null | { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; supported_subset: string; rows: Array<{ path: string; change: string; classification: "breaking" | "non_breaking" | "unknown" | "review"; from?: string; to?: string; }>; counts: { breaking: number; non_breaking: number; unknown: number; review: number; total: number; }; }; migrated_payload_examples: Array<{ id: string; target: "request" | "response"; source_value: unknown; migrated_value: unknown; }>; generated_client_diff: { language: "javascript" | "typescript" | "python" | "curl"; credential_free: true; before: string; after: string; }; required_caller_changes: Array<{ code: "RENAME_FIELD_EXPLICITLY" | "ADD_NEW_REQUIRED_FIELD" | "REVIEW_TYPE_CHANGE" | "REMOVE_UNMAPPED_FIELD"; field: string; from: null | string; to: null | string; automatic: false; }>; fixture_assertions: { validator: "utilito-contract-matrix-bounded-validator-v1"; remote_calls: 0; results: Array<{ id: string; target: "request" | "response"; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; } | { outcome: "validation_unknown"; code: "UNSUPPORTED_SCHEMA_FEATURE"; }; actual: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; } | { outcome: "validation_unknown"; code: "UNSUPPORTED_SCHEMA_FEATURE"; }; passed: boolean; }>; summary: { passed: number; failed: number; total: number; }; }; migration_report: { format: "markdown"; content: string; }; artifact_manifest: Array<{ name: "compatibility_matrix" | "migrated_payload_examples" | "generated_client_diff" | "required_caller_changes" | "fixture_assertions" | "migration_report"; media_type: "application/json" | "text/markdown"; bytes: number; }>; safety: { remote_api_called: false; credentials_accepted: false; arbitrary_endpoint_accepted: false; arbitrary_headers_accepted: false; auth_injected: false; model_used: false; provider_called: false; network_used: false; storage_used: false; telemetry_used: false; write_back_performed: false; deployment_performed: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; fixtures: number; mappings: number; artifacts: number; matrix_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { api_migration_kit: "1.0.0"; contract_matrix: "1.0.0"; fixture_validator: "1.0.0"; client_snippet: "credential-free-v1"; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_CONTRACT" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_SELECTOR" | "OPERATION_NOT_FOUND" | "EMPTY_FIXTURES" | "TOO_MANY_FIXTURES" | "INVALID_FIXTURE" | "INVALID_FIELD_MAPPING" | "MAPPING_COLLISION" | "INVALID_POLICY" | "UNSUPPORTED_LANGUAGE" | "CREDENTIAL_LIKE_INPUT" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "api-migration-kit"; version: "1.0.0"; }; result: { decision: "pass" | "review" | "block"; status: "ready" | "review_required" | "blocked"; compatibility_matrix: { direction: "request" | "response" | "both"; operation_selector: null | { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; supported_subset: string; rows: Array<{ path: string; change: string; classification: "breaking" | "non_breaking" | "unknown" | "review"; from?: string; to?: string; }>; counts: { breaking: number; non_breaking: number; unknown: number; review: number; total: number; }; }; migrated_payload_examples: Array<{ id: string; target: "request" | "response"; source_value: unknown; migrated_value: unknown; }>; generated_client_diff: { language: "javascript" | "typescript" | "python" | "curl"; credential_free: true; before: string; after: string; }; required_caller_changes: Array<{ code: "RENAME_FIELD_EXPLICITLY" | "ADD_NEW_REQUIRED_FIELD" | "REVIEW_TYPE_CHANGE" | "REMOVE_UNMAPPED_FIELD"; field: string; from: null | string; to: null | string; automatic: false; }>; fixture_assertions: { validator: "utilito-contract-matrix-bounded-validator-v1"; remote_calls: 0; results: Array<{ id: string; target: "request" | "response"; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; } | { outcome: "validation_unknown"; code: "UNSUPPORTED_SCHEMA_FEATURE"; }; actual: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; } | { outcome: "validation_unknown"; code: "UNSUPPORTED_SCHEMA_FEATURE"; }; passed: boolean; }>; summary: { passed: number; failed: number; total: number; }; }; migration_report: { format: "markdown"; content: string; }; artifact_manifest: Array<{ name: "compatibility_matrix" | "migrated_payload_examples" | "generated_client_diff" | "required_caller_changes" | "fixture_assertions" | "migration_report"; media_type: "application/json" | "text/markdown"; bytes: number; }>; safety: { remote_api_called: false; credentials_accepted: false; arbitrary_endpoint_accepted: false; arbitrary_headers_accepted: false; auth_injected: false; model_used: false; provider_called: false; network_used: false; storage_used: false; telemetry_used: false; write_back_performed: false; deployment_performed: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; fixtures: number; mappings: number; artifacts: number; matrix_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { api_migration_kit: "1.0.0"; contract_matrix: "1.0.0"; fixture_validator: "1.0.0"; client_snippet: "credential-free-v1"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "api-migration-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; fixtures: number; mappings: number; artifacts: number; matrix_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { api_migration_kit: "1.0.0"; contract_matrix: "1.0.0"; fixture_validator: "1.0.0"; client_snippet: "credential-free-v1"; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_CONTRACT" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_SELECTOR" | "OPERATION_NOT_FOUND" | "EMPTY_FIXTURES" | "TOO_MANY_FIXTURES" | "INVALID_FIXTURE" | "INVALID_FIELD_MAPPING" | "MAPPING_COLLISION" | "INVALID_POLICY" | "UNSUPPORTED_LANGUAGE" | "CREDENTIAL_LIKE_INPUT" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type api_pagination_contract_plannerInput = ({ mode: "page" | "offset" | "cursor" | "link_token" | "keyset"; endpoint: "" | ""; request: { page_size_path: string; page_size: number; page_path?: string; first_page?: number; offset_path?: string; initial_offset?: number; cursor_path?: string; token_path?: string; }; response: { items_path: string; total_pages_path?: string; next_cursor_path?: string; next_token_path?: string; }; termination: { type: "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token"; alternate?: "short_page"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; }) & ({ mode: "page"; endpoint: "" | ""; request: { page_size_path: string; page_size: number; page_path: string; first_page: number; }; response: { items_path: string; total_pages_path: string; }; termination: { type: "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token"; alternate?: "short_page"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "offset"; endpoint: "" | ""; request: { page_size_path: string; page_size: number; offset_path: string; initial_offset: number; }; response: { items_path: string; }; termination: { type: "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token"; alternate?: "short_page"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "cursor" | "keyset"; endpoint: "" | ""; request: { page_size_path: string; page_size: number; cursor_path: string; }; response: { items_path: string; next_cursor_path?: string; }; termination: { type: "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token"; alternate?: "short_page"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "link_token"; endpoint: "" | ""; request: { page_size_path: string; page_size: number; token_path: string; }; response: { items_path: string; next_token_path?: string; }; termination: { type: "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token"; alternate?: "short_page"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; }); export type api_pagination_contract_plannerOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type api_pagination_contract_plannerOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: api_pagination_contract_plannerOutput_nx25_json_0; }; export type api_pagination_contract_plannerOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: api_pagination_contract_plannerOutput_nx25_json_1; }; export type api_pagination_contract_plannerOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: api_pagination_contract_plannerOutput_nx25_json_2; }; export type api_pagination_contract_plannerOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: api_pagination_contract_plannerOutput_nx25_json_3; }; export type api_pagination_contract_plannerOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: api_pagination_contract_plannerOutput_nx25_json_4; }; export type api_pagination_contract_plannerOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: api_pagination_contract_plannerOutput_nx25_json_5; }; export type api_pagination_contract_plannerOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type api_pagination_contract_plannerOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: api_pagination_contract_plannerOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: api_pagination_contract_plannerOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type api_pagination_contract_plannerOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: api_pagination_contract_plannerOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: api_pagination_contract_plannerOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type api_pagination_contract_plannerOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: api_pagination_contract_plannerOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: api_pagination_contract_plannerOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type api_pagination_contract_plannerOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: api_pagination_contract_plannerOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: api_pagination_contract_plannerOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type api_pagination_contract_plannerOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: api_pagination_contract_plannerOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: api_pagination_contract_plannerOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type api_pagination_contract_plannerOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: api_pagination_contract_plannerOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: api_pagination_contract_plannerOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type api_pagination_contract_plannerOutput = ({ ok: boolean; schema_version: "utilito.api-pagination-contract-planner.v1"; version: "1.0.0"; result: null | { canonical_contract: { mode: "page"; endpoint: ""; request: { page_size_path: string; page_size: number; page_path: string; first_page: number; }; response: { items_path: string; total_pages_path: string; }; termination: { type: "page_reaches_total"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "offset"; endpoint: ""; request: { page_size_path: string; page_size: number; offset_path: string; initial_offset: number; }; response: { items_path: string; }; termination: { type: "short_page"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "cursor"; endpoint: ""; request: { page_size_path: string; page_size: number; cursor_path: string; }; response: { items_path: string; next_cursor_path: string; }; termination: { type: "missing_next_cursor"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "link_token"; endpoint: ""; request: { page_size_path: string; page_size: number; token_path: string; }; response: { items_path: string; next_token_path: string; }; termination: { type: "missing_next_token"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; }; state_machine: { mode: "page" | "offset" | "cursor" | "link_token"; states: Array<"initial" | "request_ready" | "response_received" | "complete" | "blocked_loop" | "blocked_budget">; transitions: Array<{ from: "initial" | "request_ready" | "response_received" | "complete" | "blocked_loop" | "blocked_budget"; to: "initial" | "request_ready" | "response_received" | "complete" | "blocked_loop" | "blocked_budget"; when: "explicit_start" | "consumer_supplies_response" | "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token" | "bounded_progress" | "progress_repeats" | "limit_reached"; }>; }; first_request: api_pagination_contract_plannerOutput_nx25_json_5; next_request: api_pagination_contract_plannerOutput_nx25_json_5; termination_assertions: { exactly_one_rule: true; rule: "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token"; max_pages: number; max_items: number; }; loop_assertions: { prior_token_set_required: boolean; token_progress_required: boolean; decode_tokens: false; }; accounting: { max_pages: number; max_items: number; duplicate_policy: "keep_all" | "keep_first" | "error"; }; typescript_pseudoclient: string; python_pseudoclient: string; clients_inert: true; fixture_matrix: Array<{ id: "first_page" | "termination" | "page_budget" | "repeated_token"; expected: "request_ready" | "complete" | "blocked_budget" | "blocked_loop"; }>; requests_sent: 0; links_followed: 0; cursors_decoded: 0; }; receipt: { input_bytes: number; output_bytes: number; mode: "page" | "offset" | "cursor" | "link_token"; fixtures: number; max_pages: number; max_items: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_PAGINATION_CONTRACT" | "UNSUPPORTED_PAGINATION_MODE" | "AMBIGUOUS_TERMINATION_RULE" | "PAGINATION_LOOP_RISK" | "PAGINATION_PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.api-pagination-contract-planner.v1"; version: "1.0.0"; result: { canonical_contract: { mode: "page"; endpoint: ""; request: { page_size_path: string; page_size: number; page_path: string; first_page: number; }; response: { items_path: string; total_pages_path: string; }; termination: { type: "page_reaches_total"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "offset"; endpoint: ""; request: { page_size_path: string; page_size: number; offset_path: string; initial_offset: number; }; response: { items_path: string; }; termination: { type: "short_page"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "cursor"; endpoint: ""; request: { page_size_path: string; page_size: number; cursor_path: string; }; response: { items_path: string; next_cursor_path: string; }; termination: { type: "missing_next_cursor"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; } | { mode: "link_token"; endpoint: ""; request: { page_size_path: string; page_size: number; token_path: string; }; response: { items_path: string; next_token_path: string; }; termination: { type: "missing_next_token"; }; duplicate_policy: "keep_all" | "keep_first" | "error"; limits: { max_pages: number; max_items: number; }; }; state_machine: { mode: "page" | "offset" | "cursor" | "link_token"; states: Array<"initial" | "request_ready" | "response_received" | "complete" | "blocked_loop" | "blocked_budget">; transitions: Array<{ from: "initial" | "request_ready" | "response_received" | "complete" | "blocked_loop" | "blocked_budget"; to: "initial" | "request_ready" | "response_received" | "complete" | "blocked_loop" | "blocked_budget"; when: "explicit_start" | "consumer_supplies_response" | "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token" | "bounded_progress" | "progress_repeats" | "limit_reached"; }>; }; first_request: api_pagination_contract_plannerOutput_nx25_json_5; next_request: api_pagination_contract_plannerOutput_nx25_json_5; termination_assertions: { exactly_one_rule: true; rule: "page_reaches_total" | "short_page" | "missing_next_cursor" | "missing_next_token"; max_pages: number; max_items: number; }; loop_assertions: { prior_token_set_required: boolean; token_progress_required: boolean; decode_tokens: false; }; accounting: { max_pages: number; max_items: number; duplicate_policy: "keep_all" | "keep_first" | "error"; }; typescript_pseudoclient: string; python_pseudoclient: string; clients_inert: true; fixture_matrix: Array<{ id: "first_page" | "termination" | "page_budget" | "repeated_token"; expected: "request_ready" | "complete" | "blocked_budget" | "blocked_loop"; }>; requests_sent: 0; links_followed: 0; cursors_decoded: 0; }; receipt: { input_bytes: number; output_bytes: number; mode: "page" | "offset" | "cursor" | "link_token"; fixtures: number; max_pages: number; max_items: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.api-pagination-contract-planner.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_PAGINATION_CONTRACT" | "UNSUPPORTED_PAGINATION_MODE" | "AMBIGUOUS_TERMINATION_RULE" | "PAGINATION_LOOP_RISK" | "PAGINATION_PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type artifact_delivery_manifestInput = { bundle_id: string; artifacts: Array<{ name: string; kind: "inline_text"; media_type: string; text: string; } | { name: string; kind: "binary_claim"; media_type: string; bytes: number; digest: { algorithm: "sha256"; value: string; }; } | { name: string; kind: "binary"; media_type: string; base64: string; }>; verification_shell: "posix" | "powershell"; }; export type artifact_delivery_manifestOutput = ({ ok: boolean; schema_version: "utilito.artifact-delivery-manifest.v1"; version: "1.0.0"; result: null | { bundle_id: string; submitted_manifest: Array<{ name: string; kind: "inline_text" | "binary_claim"; media_type: string; bytes: number; sha256: string; verification: "computed_from_inline_text" | "caller_submitted_unverified"; }>; unverified_claims: Array<{ name: string; kind: "inline_text" | "binary_claim"; media_type: string; bytes: number; sha256: string; verification: "computed_from_inline_text" | "caller_submitted_unverified"; }>; verification_commands: Array; conformance_fixtures: Array<{ name: string; expected_bytes: number; expected_sha256: string; source: "inline_text" | "caller_claim_unverified"; }>; files_uploaded: false; hosted_binary_bytes_verified: 0; active_content_executed: false; }; receipt: { input_bytes: number; output_bytes: number; artifacts: number; inline_text_artifacts: number; binary_claims: number; computed_digests: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "BINARY_INPUT_UNSUPPORTED" | "ARTIFACT_CLAIM_MISMATCH" | "INLINE_TEXT_LIMIT_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.artifact-delivery-manifest.v1"; version: "1.0.0"; result: { bundle_id: string; submitted_manifest: Array<{ name: string; kind: "inline_text" | "binary_claim"; media_type: string; bytes: number; sha256: string; verification: "computed_from_inline_text" | "caller_submitted_unverified"; }>; unverified_claims: Array<{ name: string; kind: "inline_text" | "binary_claim"; media_type: string; bytes: number; sha256: string; verification: "computed_from_inline_text" | "caller_submitted_unverified"; }>; verification_commands: Array; conformance_fixtures: Array<{ name: string; expected_bytes: number; expected_sha256: string; source: "inline_text" | "caller_claim_unverified"; }>; files_uploaded: false; hosted_binary_bytes_verified: 0; active_content_executed: false; }; receipt: { input_bytes: number; output_bytes: number; artifacts: number; inline_text_artifacts: number; binary_claims: number; computed_digests: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.artifact-delivery-manifest.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "BINARY_INPUT_UNSUPPORTED" | "ARTIFACT_CLAIM_MISMATCH" | "INLINE_TEXT_LIMIT_EXCEEDED"; message: string; hint: string; }; }); export type artifact_lineage_integrity_auditorInput = { artifacts: Array<{ id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; } | { id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; inline_text: string; }>; expected_root_ids: Array; expected_leaf_ids: Array; }; export type artifact_lineage_integrity_auditorOutput = ({ ok: boolean; result: null | { topological_order: Array; roots: Array; leaves: Array; transformation_coverage: Array<{ transformation: string; artifact_ids: Array; count: number; }>; graph_digest: string; artifacts: Array<{ id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; computed_sha256: string; digest_status: "computed_match"; inline_text_submitted: true; inline_utf8_bytes: number; }>; root_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; }; leaf_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; }; connected_components: Array>; disconnected_artifacts: []; verdict: "pass"; } | { topological_order: Array; roots: Array; leaves: Array; transformation_coverage: Array<{ transformation: string; artifact_ids: Array; count: number; }>; graph_digest: string; artifacts: Array<{ id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; computed_sha256: string; digest_status: "computed_match"; inline_text_submitted: true; inline_utf8_bytes: number; } | { id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; computed_sha256: null; digest_status: "submitted_claim_only"; inline_text_submitted: false; inline_utf8_bytes: 0; }>; root_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; } | { expected_ids: Array; actual_ids: Array; missing_ids: Array; unexpected_ids: Array; matches: false; } & ({ missing_ids: Array; [key: string]: unknown; } | { unexpected_ids: Array; [key: string]: unknown; }); leaf_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; } | { expected_ids: Array; actual_ids: Array; missing_ids: Array; unexpected_ids: Array; matches: false; } & ({ missing_ids: Array; [key: string]: unknown; } | { unexpected_ids: Array; [key: string]: unknown; }); connected_components: Array>; disconnected_artifacts: Array; verdict: "review"; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_LINEAGE" | "UNKNOWN_ARTIFACT_REFERENCE" | "DUPLICATE_ARTIFACT_ID" | "LINEAGE_CYCLE" | "DIGEST_MISMATCH" | "LINEAGE_BUDGET_EXCEEDED"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; artifacts: number; parent_edges: number; inline_artifacts: number; inline_utf8_bytes: number; computed_digests: number; claim_only_digests: number; roots: number; leaves: number; connected_components: number; disconnected_artifacts: number; transformations: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }) & ({ ok: true; result: { topological_order: Array; roots: Array; leaves: Array; transformation_coverage: Array<{ transformation: string; artifact_ids: Array; count: number; }>; graph_digest: string; artifacts: Array<{ id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; computed_sha256: string; digest_status: "computed_match"; inline_text_submitted: true; inline_utf8_bytes: number; }>; root_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; }; leaf_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; }; connected_components: Array>; disconnected_artifacts: []; verdict: "pass"; }; error: null; receipt: { input_bytes: number; output_bytes: number; artifacts: number; parent_edges: number; inline_artifacts: number; inline_utf8_bytes: number; computed_digests: number; claim_only_digests: number; roots: number; leaves: number; connected_components: number; disconnected_artifacts: number; transformations: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; } | ({ ok: true; result: { topological_order: Array; roots: Array; leaves: Array; transformation_coverage: Array<{ transformation: string; artifact_ids: Array; count: number; }>; graph_digest: string; artifacts: Array<{ id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; computed_sha256: string; digest_status: "computed_match"; inline_text_submitted: true; inline_utf8_bytes: number; } | { id: string; producer: string; transformation: string; version: string; parent_ids: Array; claimed_sha256: string; computed_sha256: null; digest_status: "submitted_claim_only"; inline_text_submitted: false; inline_utf8_bytes: 0; }>; root_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; } | { expected_ids: Array; actual_ids: Array; missing_ids: Array; unexpected_ids: Array; matches: false; } & ({ missing_ids: Array; [key: string]: unknown; } | { unexpected_ids: Array; [key: string]: unknown; }); leaf_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: []; unexpected_ids: []; matches: true; } | { expected_ids: Array; actual_ids: Array; missing_ids: Array; unexpected_ids: Array; matches: false; } & ({ missing_ids: Array; [key: string]: unknown; } | { unexpected_ids: Array; [key: string]: unknown; }); connected_components: Array>; disconnected_artifacts: Array; verdict: "review"; }; error: null; receipt: { input_bytes: number; output_bytes: number; artifacts: number; parent_edges: number; inline_artifacts: number; inline_utf8_bytes: number; computed_digests: number; claim_only_digests: number; roots: number; leaves: number; connected_components: number; disconnected_artifacts: number; transformations: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }) & ({ result: { artifacts: unknown; [key: string]: unknown; }; [key: string]: unknown; } | { result: { connected_components: unknown; [key: string]: unknown; }; [key: string]: unknown; } | { result: { root_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: Array; unexpected_ids: Array; matches: false; } & ({ missing_ids: Array; [key: string]: unknown; } | { unexpected_ids: Array; [key: string]: unknown; }); [key: string]: unknown; }; [key: string]: unknown; } | { result: { leaf_verdict: { expected_ids: Array; actual_ids: Array; missing_ids: Array; unexpected_ids: Array; matches: false; } & ({ missing_ids: Array; [key: string]: unknown; } | { unexpected_ids: Array; [key: string]: unknown; }); [key: string]: unknown; }; [key: string]: unknown; }) | { ok: false; result: null; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_LINEAGE" | "UNKNOWN_ARTIFACT_REFERENCE" | "DUPLICATE_ARTIFACT_ID" | "LINEAGE_CYCLE" | "DIGEST_MISMATCH" | "LINEAGE_BUDGET_EXCEEDED"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; artifacts: number; parent_edges: number; inline_artifacts: number; inline_utf8_bytes: number; computed_digests: number; claim_only_digests: number; roots: number; leaves: number; connected_components: number; disconnected_artifacts: number; transformations: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }); export type aspect_ratio_calculatorInput = { width?: number; height?: number; targetWidth?: number; targetHeight?: number; [key: string]: unknown; }; export type aspect_ratio_calculatorOutput = { [key: string]: unknown; }; export type bandwidth_calculatorInput = { size?: number; sizeUnit?: string; time?: number; timeUnit?: string; [key: string]: unknown; }; export type bandwidth_calculatorOutput = { [key: string]: unknown; }; export type base64Input = { input?: string; action?: string; urlSafe?: boolean; [key: string]: unknown; }; export type base64Output = { [key: string]: unknown; }; export type batch_retry_safety_plannerInput = { operations: Array<{ id: string; method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; path: string; status: "failed" | "succeeded" | "pending" | "unknown"; side_effects: "none" | "possible" | "confirmed" | "unknown"; idempotency_key: null | string; depends_on: Array; }>; policy: { retry_unknown: boolean; require_idempotency_for: Array<"GET" | "POST" | "PUT" | "PATCH" | "DELETE">; }; }; export type batch_retry_safety_plannerOutput_nx_json_0 = null | boolean | number | string | [] | { }; export type batch_retry_safety_plannerOutput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_0; }; export type batch_retry_safety_plannerOutput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_1; }; export type batch_retry_safety_plannerOutput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_2; }; export type batch_retry_safety_plannerOutput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_3; }; export type batch_retry_safety_plannerOutput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_4; }; export type batch_retry_safety_plannerOutput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_5; }; export type batch_retry_safety_plannerOutput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_6; }; export type batch_retry_safety_plannerOutput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_7; }; export type batch_retry_safety_plannerOutput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_8; }; export type batch_retry_safety_plannerOutput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_9; }; export type batch_retry_safety_plannerOutput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_10; }; export type batch_retry_safety_plannerOutput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_json_11; }; export type batch_retry_safety_plannerOutput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type batch_retry_safety_plannerOutput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_0; }; export type batch_retry_safety_plannerOutput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_1; }; export type batch_retry_safety_plannerOutput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_2; }; export type batch_retry_safety_plannerOutput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_3; }; export type batch_retry_safety_plannerOutput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_4; }; export type batch_retry_safety_plannerOutput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_5; }; export type batch_retry_safety_plannerOutput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_6; }; export type batch_retry_safety_plannerOutput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_7; }; export type batch_retry_safety_plannerOutput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_8; }; export type batch_retry_safety_plannerOutput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_9; }; export type batch_retry_safety_plannerOutput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_10; }; export type batch_retry_safety_plannerOutput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: batch_retry_safety_plannerOutput_nx_safe_json_11; }; export type batch_retry_safety_plannerOutput = ({ ok: boolean; schema_version: "utilito.batch-retry-safety-plan.v1"; version: "1.0.0"; result: null | { retryable_operation_ids: Array; manual_review_operation_ids: Array; not_retryable_operation_ids: Array; retry_waves: Array>; dependency_blocks: Array<{ operation_id: string; reason: "manual evidence required"; }>; duplicate_risk_findings: Array<{ operation_id: string; risk: "unknown"; }>; manual_requests: Array<{ operation_id: string; request: "Confirm idempotency and side-effect facts before retry."; }>; requests_executed: false; idempotence_inferred: false; side_effect_safety_inferred: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; operations: number; retryable: number; manual_review: number; retry_waves: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_BATCH_GRAPH" | "UNKNOWN_OPERATION_REFERENCE" | "CONTRADICTORY_RETRY_FACTS" | "RETRY_PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.batch-retry-safety-plan.v1"; version: "1.0.0"; result: { retryable_operation_ids: Array; manual_review_operation_ids: Array; not_retryable_operation_ids: Array; retry_waves: Array>; dependency_blocks: Array<{ operation_id: string; reason: "manual evidence required"; }>; duplicate_risk_findings: Array<{ operation_id: string; risk: "unknown"; }>; manual_requests: Array<{ operation_id: string; request: "Confirm idempotency and side-effect facts before retry."; }>; requests_executed: false; idempotence_inferred: false; side_effect_safety_inferred: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; operations: number; retryable: number; manual_review: number; retry_waves: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.batch-retry-safety-plan.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_BATCH_GRAPH" | "UNKNOWN_OPERATION_REFERENCE" | "CONTRADICTORY_RETRY_FACTS" | "RETRY_PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type bmi_calculatorInput = { weight?: number; height?: number; units?: string; [key: string]: unknown; }; export type bmi_calculatorOutput = { [key: string]: unknown; }; export type business_days_calculatorInput = { startDate?: string; endDate?: string; includeEnd?: boolean; [key: string]: unknown; }; export type business_days_calculatorOutput = { [key: string]: unknown; }; export type calorie_macro_calculatorInput = { weight?: number; height?: number; age?: number; sex?: string; activity?: string; [key: string]: unknown; }; export type calorie_macro_calculatorOutput = { [key: string]: unknown; }; export type case_converterInput = { text?: string; mode?: string; [key: string]: unknown; }; export type case_converterOutput = { [key: string]: unknown; }; export type change_impact_test_selection_plannerInput = { units: Array<{ id: string; dependencies: Array; risk_labels: Array; }>; tests: Array<{ id: string; covers: Array; risk_labels: Array; declared_cost: number; }>; changed_unit_ids: Array; mandatory_test_ids: Array; policy: { max_traversal_depth: number; incomplete_coverage_verdict: "review" | "blocked"; cycle_policy: "reject"; greedy_tie_policy: "maximum_uncovered_coverage_then_risk_match_then_lower_cost_then_test_id"; }; }; export type change_impact_test_selection_plannerOutput = ({ ok: boolean; schema_version: "utilito.change-impact-test-selection-planner.v1"; version: "1.0.0"; result: null | { impact_closure: Array<{ unit_id: string; reason_path: Array; }>; selected_test_ids: Array; uncovered_impacted_units: Array; mandatory_additions: Array; risk_additions: Array; excluded_tests: Array<{ test_id: string; reason: "redundant_after_deterministic_greedy_selection" | "no_impacted_unit_coverage"; }>; greedy_ledger: Array<{ iteration: number; selected_test_id: string; newly_covered_units: Array; newly_covered_count: number; matched_risk_labels: Array; declared_cost: number; tie_break: Array; }>; estimated_declared_cost: number; selection_policy: { edge_direction: string; reason_path_tie_break: string; greedy_tie_break: string; optimality_claimed: false; submitted_mapping_only: true; }; verdict: "sufficient" | "review" | "blocked"; }; receipt: { input_bytes: number; output_bytes: number; submitted_units: number; dependency_edges: number; submitted_tests: number; coverage_edges: number; changed_units: number; impacted_units: number; selected_tests: number; covered_impacted_units: number; uncovered_impacted_units: number; mandatory_test_refs: number; risk_additions: number; greedy_comparisons: number; omitted_items: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_IMPACT_MODEL" | "UNKNOWN_UNIT_REFERENCE" | "UNKNOWN_TEST_REFERENCE" | "DEPENDENCY_CYCLE_UNSUPPORTED" | "IMPACT_CLOSURE_LIMIT_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.change-impact-test-selection-planner.v1"; version: "1.0.0"; result: { impact_closure: Array<{ unit_id: string; reason_path: Array; }>; selected_test_ids: Array; uncovered_impacted_units: Array; mandatory_additions: Array; risk_additions: Array; excluded_tests: Array<{ test_id: string; reason: "redundant_after_deterministic_greedy_selection" | "no_impacted_unit_coverage"; }>; greedy_ledger: Array<{ iteration: number; selected_test_id: string; newly_covered_units: Array; newly_covered_count: number; matched_risk_labels: Array; declared_cost: number; tie_break: Array; }>; estimated_declared_cost: number; selection_policy: { edge_direction: string; reason_path_tie_break: string; greedy_tie_break: string; optimality_claimed: false; submitted_mapping_only: true; }; verdict: "sufficient" | "review" | "blocked"; }; receipt: { input_bytes: number; output_bytes: number; submitted_units: number; dependency_edges: number; submitted_tests: number; coverage_edges: number; changed_units: number; impacted_units: number; selected_tests: number; covered_impacted_units: number; uncovered_impacted_units: number; mandatory_test_refs: number; risk_additions: number; greedy_comparisons: number; omitted_items: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.change-impact-test-selection-planner.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_IMPACT_MODEL" | "UNKNOWN_UNIT_REFERENCE" | "UNKNOWN_TEST_REFERENCE" | "DEPENDENCY_CYCLE_UNSUPPORTED" | "IMPACT_CLOSURE_LIMIT_EXCEEDED"; message: string; hint: string; }; }); export type ci_failure_review_kitInput = { log_text: string; run_metadata: { provider: string; run_id: string; job: string; conclusion: "failure" | "cancelled" | "timed_out" | "action_required"; test_command?: string; }; patch_verification?: { status: "not_submitted" | "passed" | "failed" | "conflict"; verifier?: string; checks?: Array<{ name: string; status: "passed" | "failed" | "skipped"; }>; counts?: { passed: number; failed: number; skipped: number; }; }; options: { context_lines: number; context_budget_bytes: number; collapse_duplicates: boolean; ansi_mode: "strip" | "escape"; report_format: "markdown" | "html"; report_mode: "metadata" | "excerpt"; }; }; export type ci_failure_review_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "ci-failure-review-kit"; version: "1.0.0"; }; result: null | { status: "review_required"; run_metadata: { provider: string; run_id: string; job: string; conclusion: "failure" | "cancelled" | "timed_out" | "action_required"; test_command?: string; }; submitted_patch_verification: { status: "not_submitted" | "passed" | "failed" | "conflict"; verifier?: string; checks?: Array<{ name: string; status: "passed" | "failed" | "skipped"; }>; counts?: { passed: number; failed: number; skipped: number; }; submitted_by_caller: true; independently_verified: false; }; root_cause: null; patch_applied: false; failure_evidence: Array<{ id: string; line_start: number; line_end: number; lines: Array<{ line: number; text: string; failure: boolean; }>; quote: string; }>; duplicate_collapse: { duplicate_occurrences: number; collapsed_occurrences: number; retained_duplicates: number; }; context_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "ci-failure-pack"; version: "1.0.0"; }; format: "log"; output: string; evidence: Array<{ id: string; line_start: number; line_end: number; quote: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes: number; input_records: number; output_records: number; omitted_records: number; omitted_fields: number; deduplicated: number; truncated: boolean; error_neighborhood: number; detected_failures: number; retained_failures: number; duplicate_occurrences: number; collapsed_occurrences: number; retained_duplicates: number; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: string; core_version: string; }; error: null; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; contains_raw_excerpts: boolean; warning: string; content: string; }; safe_actions: Array<{ code: "REVIEW_FAILURE_EVIDENCE" | "INCREASE_CONTEXT_BUDGET" | "REVIEW_SUBMITTED_PATCH_FAILURE" | "REVIEW_SUBMITTED_PATCH_CONFLICT" | "REDACT_BEFORE_SHARING" | "KEEP_ORIGINAL_LOG"; message: string; automatic: false; }>; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array; detected_failures: number; failure_ranges: number; duplicate_occurrences: number; collapsed_occurrences: number; retained_duplicates: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { ci_failure_review_kit: "1.0.0"; ci_log_lines: "1.0.0"; context_pack: "1.0.0"; evidence_report: "1.0.0"; }; }; error: null | { code: string; message: string; hint: string; }; }; export type ci_regression_diffInput = { baseline: { schema_version: string; failures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; }; candidate: { schema_version: string; failures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; }; verification_facts?: { submitted_by_caller: true; patch_status: "unknown" | "effective" | "ineffective"; }; }; export type ci_regression_diffOutput = ({ ok: boolean; schema_version: "utilito.ci-regression-diff.v1"; version: "1.0.0"; result: null | { new_signatures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; resolved_signatures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; unchanged_signatures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; comparison_receipt: { baseline_failures: number; candidate_failures: number; new: number; resolved: number; unchanged: number; }; handoff_pack: { schema_version: "utilito.ci-regression-handoff.v1"; new_signature_ids: Array; verification_facts: { submitted_by_caller: true; patch_status: "unknown" | "effective" | "ineffective"; }; }; root_cause_inferred: false; patch_effectiveness: "unknown" | "effective" | "ineffective"; }; receipt: { input_bytes: number; output_bytes: number; baseline_failures: number; candidate_failures: number; signature_comparisons: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CI_PACK" | "INCOMPARABLE_CI_PACKS" | "SOURCE_RANGE_INVALID"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.ci-regression-diff.v1"; version: "1.0.0"; result: { new_signatures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; resolved_signatures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; unchanged_signatures: Array<{ id: string; job: string; command: string; error_code: string; error_class: string; line_start: number; line_end: number; }>; comparison_receipt: { baseline_failures: number; candidate_failures: number; new: number; resolved: number; unchanged: number; }; handoff_pack: { schema_version: "utilito.ci-regression-handoff.v1"; new_signature_ids: Array; verification_facts: { submitted_by_caller: true; patch_status: "unknown" | "effective" | "ineffective"; }; }; root_cause_inferred: false; patch_effectiveness: "unknown" | "effective" | "ineffective"; }; receipt: { input_bytes: number; output_bytes: number; baseline_failures: number; candidate_failures: number; signature_comparisons: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.ci-regression-diff.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CI_PACK" | "INCOMPARABLE_CI_PACKS" | "SOURCE_RANGE_INVALID"; message: string; hint: string; }; }); export type citation_quote_integrityInput = { sources: Array<{ id: string; text: string; }>; claims: Array<{ id: string; text: string; citations: Array<{ source_id: string; quote: string; range?: { start: number; end: number; }; }>; }>; policy: { normalization: "exact"; max_sources: number; max_claims: number; max_citations: number; max_source_code_points: number; }; }; export type citation_quote_integrityOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type citation_quote_integrityOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: citation_quote_integrityOutput_nx25_json_0; }; export type citation_quote_integrityOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: citation_quote_integrityOutput_nx25_json_1; }; export type citation_quote_integrityOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: citation_quote_integrityOutput_nx25_json_2; }; export type citation_quote_integrityOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: citation_quote_integrityOutput_nx25_json_3; }; export type citation_quote_integrityOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: citation_quote_integrityOutput_nx25_json_4; }; export type citation_quote_integrityOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: citation_quote_integrityOutput_nx25_json_5; }; export type citation_quote_integrityOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type citation_quote_integrityOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: citation_quote_integrityOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: citation_quote_integrityOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type citation_quote_integrityOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: citation_quote_integrityOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: citation_quote_integrityOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type citation_quote_integrityOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: citation_quote_integrityOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: citation_quote_integrityOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type citation_quote_integrityOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: citation_quote_integrityOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: citation_quote_integrityOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type citation_quote_integrityOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: citation_quote_integrityOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: citation_quote_integrityOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type citation_quote_integrityOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: citation_quote_integrityOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: citation_quote_integrityOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type citation_quote_integrityOutput = ({ ok: boolean; schema_version: "utilito.citation-quote-integrity.v1"; version: "1.0.0"; result: null | { valid: Array<{ claim_id: string; citation_index: number; source_id: string; quote: string; range: { start: number; end: number; }; status: "valid"; }>; missing: Array<{ claim_id: string; citation_index: null | number; source_id: null | string; quote: null | string; status: "missing"; }>; orphan: Array; ambiguous: []; quote_range_findings: Array<{ claim_id: string; citation_index: number; source_id: string; quote: string; range: { start: number; end: number; }; status: "valid"; } | { claim_id: string; citation_index: null | number; source_id: null | string; quote: null | string; status: "missing"; }>; duplicates: Array<{ claim_id: string; citation_index: number; duplicate_of: number; }>; coverage: { claims_total: number; claims_with_valid_citation: number; numerator: number; denominator: number; ratio: number; }; corrected_map: { inert: true; citations: Array<{ claim_id: string; source_id: string; quote: string; range: { start: number; end: number; }; }>; }; report: { inert: true; normalization: "exact"; manual_review_required: boolean; }; sources_fetched: false; }; receipt: { input_bytes: number; output_bytes: number; sources: number; claims: number; citations: number; valid: number; missing: number; ambiguous: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_SOURCE_RECORD" | "UNKNOWN_CITATION_REFERENCE" | "QUOTE_RANGE_MISMATCH" | "AMBIGUOUS_QUOTE_MATCH" | "CITATION_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.citation-quote-integrity.v1"; version: "1.0.0"; result: { valid: Array<{ claim_id: string; citation_index: number; source_id: string; quote: string; range: { start: number; end: number; }; status: "valid"; }>; missing: Array<{ claim_id: string; citation_index: null | number; source_id: null | string; quote: null | string; status: "missing"; }>; orphan: Array; ambiguous: []; quote_range_findings: Array<{ claim_id: string; citation_index: number; source_id: string; quote: string; range: { start: number; end: number; }; status: "valid"; } | { claim_id: string; citation_index: null | number; source_id: null | string; quote: null | string; status: "missing"; }>; duplicates: Array<{ claim_id: string; citation_index: number; duplicate_of: number; }>; coverage: { claims_total: number; claims_with_valid_citation: number; numerator: number; denominator: number; ratio: number; }; corrected_map: { inert: true; citations: Array<{ claim_id: string; source_id: string; quote: string; range: { start: number; end: number; }; }>; }; report: { inert: true; normalization: "exact"; manual_review_required: boolean; }; sources_fetched: false; }; receipt: { input_bytes: number; output_bytes: number; sources: number; claims: number; citations: number; valid: number; missing: number; ambiguous: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.citation-quote-integrity.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_SOURCE_RECORD" | "UNKNOWN_CITATION_REFERENCE" | "QUOTE_RANGE_MISMATCH" | "AMBIGUOUS_QUOTE_MATCH" | "CITATION_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type claim_evidence_coverageInput = { claims: Array<{ id: string; text: string; }>; evidence: Array<{ id: string; source_id: string; quote: string; }>; mappings: Array<{ claim_id: string; evidence_id: string; relation: "support" | "contradict"; }>; max_bytes: number; }; export type claim_evidence_coverageOutput = ({ ok: boolean; schema_version: "utilito.claim-evidence-coverage.v1"; version: "1.0.0"; result: null | { support_graph: Array<{ claim_id: string; evidence_id: string; relation: "support" | "contradict"; }>; supported_claim_ids: Array; unsupported_claim_ids: Array; contradicted_claim_ids: Array; orphan_evidence_ids: Array; unresolved_references: Array<{ kind: string; id: string; }>; context_pack: { schema_version: "utilito.context-pack.v1"; claims: Array<{ id: string; text: string; }>; evidence: Array<{ id: string; source_id: string; quote: string; }>; mappings: Array<{ claim_id: string; evidence_id: string; relation: "support" | "contradict"; }>; }; report: { format: "markdown"; content: string; }; semantic_inference: false; }; receipt: { input_bytes: number; output_bytes: number; claims: number; evidence: number; mappings: number; output_budget_bytes: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNKNOWN_CLAIM_REFERENCE" | "UNKNOWN_EVIDENCE_REFERENCE" | "CONTRADICTORY_MAPPING" | "COVERAGE_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.claim-evidence-coverage.v1"; version: "1.0.0"; result: { support_graph: Array<{ claim_id: string; evidence_id: string; relation: "support" | "contradict"; }>; supported_claim_ids: Array; unsupported_claim_ids: Array; contradicted_claim_ids: Array; orphan_evidence_ids: Array; unresolved_references: Array<{ kind: string; id: string; }>; context_pack: { schema_version: "utilito.context-pack.v1"; claims: Array<{ id: string; text: string; }>; evidence: Array<{ id: string; source_id: string; quote: string; }>; mappings: Array<{ claim_id: string; evidence_id: string; relation: "support" | "contradict"; }>; }; report: { format: "markdown"; content: string; }; semantic_inference: false; }; receipt: { input_bytes: number; output_bytes: number; claims: number; evidence: number; mappings: number; output_budget_bytes: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.claim-evidence-coverage.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNKNOWN_CLAIM_REFERENCE" | "UNKNOWN_EVIDENCE_REFERENCE" | "CONTRADICTORY_MAPPING" | "COVERAGE_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type compound_interest_calculatorInput = { principal?: number; annualRate?: number; years?: number; compoundsPerYear?: number; [key: string]: unknown; }; export type compound_interest_calculatorOutput = { [key: string]: unknown; }; export type config_format_converterInput = { input?: string; mode?: string; [key: string]: unknown; }; export type config_format_converterOutput = { [key: string]: unknown; }; export type configuration_drift_reconciliationInput_nx_json_0 = null | boolean | number | string | [] | { }; export type configuration_drift_reconciliationInput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_0; }; export type configuration_drift_reconciliationInput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_1; }; export type configuration_drift_reconciliationInput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_2; }; export type configuration_drift_reconciliationInput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_3; }; export type configuration_drift_reconciliationInput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_4; }; export type configuration_drift_reconciliationInput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_5; }; export type configuration_drift_reconciliationInput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_6; }; export type configuration_drift_reconciliationInput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_7; }; export type configuration_drift_reconciliationInput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_8; }; export type configuration_drift_reconciliationInput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_9; }; export type configuration_drift_reconciliationInput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_10; }; export type configuration_drift_reconciliationInput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_json_11; }; export type configuration_drift_reconciliationInput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type configuration_drift_reconciliationInput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_0; }; export type configuration_drift_reconciliationInput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_1; }; export type configuration_drift_reconciliationInput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_2; }; export type configuration_drift_reconciliationInput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_3; }; export type configuration_drift_reconciliationInput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_4; }; export type configuration_drift_reconciliationInput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_5; }; export type configuration_drift_reconciliationInput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_6; }; export type configuration_drift_reconciliationInput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_7; }; export type configuration_drift_reconciliationInput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_8; }; export type configuration_drift_reconciliationInput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_9; }; export type configuration_drift_reconciliationInput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_10; }; export type configuration_drift_reconciliationInput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_safe_json_11; }; export type configuration_drift_reconciliationInput_nx_reject_json_0 = null | boolean | number | string | [] | { }; export type configuration_drift_reconciliationInput_nx_reject_json_1 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_0; }; export type configuration_drift_reconciliationInput_nx_reject_json_2 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_1; }; export type configuration_drift_reconciliationInput_nx_reject_json_3 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_2; }; export type configuration_drift_reconciliationInput_nx_reject_json_4 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_3; }; export type configuration_drift_reconciliationInput_nx_reject_json_5 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_4; }; export type configuration_drift_reconciliationInput_nx_reject_json_6 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_5; }; export type configuration_drift_reconciliationInput_nx_reject_json_7 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_6; }; export type configuration_drift_reconciliationInput_nx_reject_json_8 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_7; }; export type configuration_drift_reconciliationInput_nx_reject_json_9 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_8; }; export type configuration_drift_reconciliationInput_nx_reject_json_10 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_9; }; export type configuration_drift_reconciliationInput_nx_reject_json_11 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_10; }; export type configuration_drift_reconciliationInput_nx_reject_json_12 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_11; }; export type configuration_drift_reconciliationInput_nx_redactable_json_0 = null | boolean | number | string | [] | { }; export type configuration_drift_reconciliationInput_nx_redactable_json_1 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_0; }; export type configuration_drift_reconciliationInput_nx_redactable_json_2 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_1; }; export type configuration_drift_reconciliationInput_nx_redactable_json_3 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_2; }; export type configuration_drift_reconciliationInput_nx_redactable_json_4 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_3; }; export type configuration_drift_reconciliationInput_nx_redactable_json_5 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_4; }; export type configuration_drift_reconciliationInput_nx_redactable_json_6 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_5; }; export type configuration_drift_reconciliationInput_nx_redactable_json_7 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_6; }; export type configuration_drift_reconciliationInput_nx_redactable_json_8 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_7; }; export type configuration_drift_reconciliationInput_nx_redactable_json_9 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_8; }; export type configuration_drift_reconciliationInput_nx_redactable_json_10 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_9; }; export type configuration_drift_reconciliationInput_nx_redactable_json_11 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_10; }; export type configuration_drift_reconciliationInput_nx_redactable_json_12 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_11; }; export type configuration_drift_reconciliationInput_config_reject_value_0 = null | boolean | number | string; export type configuration_drift_reconciliationInput_config_reject_value_1 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_0; }; export type configuration_drift_reconciliationInput_config_reject_value_2 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_1; }; export type configuration_drift_reconciliationInput_config_reject_value_3 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_2; }; export type configuration_drift_reconciliationInput_config_reject_value_4 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_3; }; export type configuration_drift_reconciliationInput_config_reject_value_5 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_4; }; export type configuration_drift_reconciliationInput_config_reject_value_6 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_5; }; export type configuration_drift_reconciliationInput_config_reject_value_7 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_6; }; export type configuration_drift_reconciliationInput_config_reject_value_8 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_7; }; export type configuration_drift_reconciliationInput_config_reject_value_9 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_8; }; export type configuration_drift_reconciliationInput_config_reject_value_10 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_9; }; export type configuration_drift_reconciliationInput_config_reject_value_11 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_10; }; export type configuration_drift_reconciliationInput_config_reject_value_12 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_11; }; export type configuration_drift_reconciliationInput_config_redact_value_0 = null | boolean | number | string; export type configuration_drift_reconciliationInput_config_redact_value_1 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_0; }; export type configuration_drift_reconciliationInput_config_redact_value_2 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_1; }; export type configuration_drift_reconciliationInput_config_redact_value_3 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_2; }; export type configuration_drift_reconciliationInput_config_redact_value_4 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_3; }; export type configuration_drift_reconciliationInput_config_redact_value_5 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_4; }; export type configuration_drift_reconciliationInput_config_redact_value_6 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_5; }; export type configuration_drift_reconciliationInput_config_redact_value_7 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_6; }; export type configuration_drift_reconciliationInput_config_redact_value_8 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_7; }; export type configuration_drift_reconciliationInput_config_redact_value_9 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_8; }; export type configuration_drift_reconciliationInput_config_redact_value_10 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_9; }; export type configuration_drift_reconciliationInput_config_redact_value_11 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_10; }; export type configuration_drift_reconciliationInput_config_redact_value_12 = null | boolean | number | string | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_11; }; export type configuration_drift_reconciliationInput = { baseline: unknown; candidate: unknown; policy: unknown; } & ({ baseline: { schema_version: string; entries: Array<{ path: string; value: ""; value_type: "string"; sensitive: true; } | { path: string; value: null; value_type: "null"; sensitive: false; } | { path: string; value: boolean; value_type: "boolean"; sensitive: false; } | { path: string; value: number; value_type: "integer"; sensitive: false; } | { path: string; value: number; value_type: "number"; sensitive: false; } | { path: string; value: string; value_type: "string"; sensitive: false; } | { path: string; value: Array; value_type: "array"; sensitive: false; } | { path: string; value: { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_11; }; value_type: "object"; sensitive: false; }>; }; candidate: { schema_version: string; entries: Array<{ path: string; value: ""; value_type: "string"; sensitive: true; } | { path: string; value: null; value_type: "null"; sensitive: false; } | { path: string; value: boolean; value_type: "boolean"; sensitive: false; } | { path: string; value: number; value_type: "integer"; sensitive: false; } | { path: string; value: number; value_type: "number"; sensitive: false; } | { path: string; value: string; value_type: "string"; sensitive: false; } | { path: string; value: Array; value_type: "array"; sensitive: false; } | { path: string; value: { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_11; }; value_type: "object"; sensitive: false; }>; }; policy: { secret_handling: "require_redacted"; missing_entries: "report"; }; } | { baseline: { schema_version: string; entries: Array<{ path: string; value: null; value_type: "null"; sensitive: false; } | { path: string; value: boolean; value_type: "boolean"; sensitive: false; } | { path: string; value: number; value_type: "integer"; sensitive: false; } | { path: string; value: number; value_type: "number"; sensitive: false; } | { path: string; value: string; value_type: "string"; sensitive: false; } | { path: string; value: Array; value_type: "array"; sensitive: false; } | { path: string; value: { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_11; }; value_type: "object"; sensitive: false; }>; } | { source_format: "json" | "yaml" | "toml" | "env"; source_text: string; } | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_12; }; candidate: { schema_version: string; entries: Array<{ path: string; value: null; value_type: "null"; sensitive: false; } | { path: string; value: boolean; value_type: "boolean"; sensitive: false; } | { path: string; value: number; value_type: "integer"; sensitive: false; } | { path: string; value: number; value_type: "number"; sensitive: false; } | { path: string; value: string; value_type: "string"; sensitive: false; } | { path: string; value: Array; value_type: "array"; sensitive: false; } | { path: string; value: { [key: string]: configuration_drift_reconciliationInput_nx_reject_json_11; }; value_type: "object"; sensitive: false; }>; } | { source_format: "json" | "yaml" | "toml" | "env"; source_text: string; } | { [key: string]: configuration_drift_reconciliationInput_config_reject_value_12; }; policy: { allowed_paths: Array; secret_handling: "reject"; comparison: "strict_scalar"; missing_entries: "report"; }; } | { baseline: { schema_version: string; entries: Array<{ path: string; value: null; value_type: "null"; sensitive: boolean; } | { path: string; value: boolean; value_type: "boolean"; sensitive: boolean; } | { path: string; value: number; value_type: "integer"; sensitive: boolean; } | { path: string; value: number; value_type: "number"; sensitive: boolean; } | { path: string; value: string; value_type: "string"; sensitive: boolean; } | { path: string; value: Array; value_type: "array"; sensitive: boolean; } | { path: string; value: { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_11; }; value_type: "object"; sensitive: boolean; }>; } | { source_format: "json" | "yaml" | "toml" | "env"; source_text: string; } | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_12; }; candidate: { schema_version: string; entries: Array<{ path: string; value: null; value_type: "null"; sensitive: boolean; } | { path: string; value: boolean; value_type: "boolean"; sensitive: boolean; } | { path: string; value: number; value_type: "integer"; sensitive: boolean; } | { path: string; value: number; value_type: "number"; sensitive: boolean; } | { path: string; value: string; value_type: "string"; sensitive: boolean; } | { path: string; value: Array; value_type: "array"; sensitive: boolean; } | { path: string; value: { [key: string]: configuration_drift_reconciliationInput_nx_redactable_json_11; }; value_type: "object"; sensitive: boolean; }>; } | { source_format: "json" | "yaml" | "toml" | "env"; source_text: string; } | { [key: string]: configuration_drift_reconciliationInput_config_redact_value_12; }; policy: { allowed_paths: Array; secret_handling: "redact"; comparison: "strict_scalar"; missing_entries: "report"; }; }); export type configuration_drift_reconciliationOutput_nx_json_0 = null | boolean | number | string | [] | { }; export type configuration_drift_reconciliationOutput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_0; }; export type configuration_drift_reconciliationOutput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_1; }; export type configuration_drift_reconciliationOutput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_2; }; export type configuration_drift_reconciliationOutput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_3; }; export type configuration_drift_reconciliationOutput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_4; }; export type configuration_drift_reconciliationOutput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_5; }; export type configuration_drift_reconciliationOutput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_6; }; export type configuration_drift_reconciliationOutput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_7; }; export type configuration_drift_reconciliationOutput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_8; }; export type configuration_drift_reconciliationOutput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_9; }; export type configuration_drift_reconciliationOutput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_10; }; export type configuration_drift_reconciliationOutput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_json_11; }; export type configuration_drift_reconciliationOutput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type configuration_drift_reconciliationOutput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_0; }; export type configuration_drift_reconciliationOutput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_1; }; export type configuration_drift_reconciliationOutput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_2; }; export type configuration_drift_reconciliationOutput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_3; }; export type configuration_drift_reconciliationOutput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_4; }; export type configuration_drift_reconciliationOutput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_5; }; export type configuration_drift_reconciliationOutput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_6; }; export type configuration_drift_reconciliationOutput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_7; }; export type configuration_drift_reconciliationOutput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_8; }; export type configuration_drift_reconciliationOutput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_9; }; export type configuration_drift_reconciliationOutput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_10; }; export type configuration_drift_reconciliationOutput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: configuration_drift_reconciliationOutput_nx_safe_json_11; }; export type configuration_drift_reconciliationOutput = ({ ok: boolean; schema_version: "utilito.configuration-drift-reconciliation.v1"; version: "1.0.0"; result: null | { added_paths: Array; removed_paths: Array; changed_paths: Array; type_changed_paths: Array; redacted_paths: Array; unchanged_count: number; patch_plan: { inert: true; operations: Array<{ operation: "add"; path: string; } | { operation: "remove"; path: string; } | { operation: "review_change"; path: string; } | { operation: "review_type_change"; path: string; }>; }; report: { format: "markdown"; content: string; }; values_inferred: false; changes_applied: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; baseline_entries: number; candidate_entries: number; drift_paths: number; redacted_paths: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CONFIGURATION" | "INCOMPARABLE_CONFIGURATION" | "SECRET_VALUE_REJECTED" | "DRIFT_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.configuration-drift-reconciliation.v1"; version: "1.0.0"; result: { added_paths: Array; removed_paths: Array; changed_paths: Array; type_changed_paths: Array; redacted_paths: Array; unchanged_count: number; patch_plan: { inert: true; operations: Array<{ operation: "add"; path: string; } | { operation: "remove"; path: string; } | { operation: "review_change"; path: string; } | { operation: "review_type_change"; path: string; }>; }; report: { format: "markdown"; content: string; }; values_inferred: false; changes_applied: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; baseline_entries: number; candidate_entries: number; drift_paths: number; redacted_paths: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.configuration-drift-reconciliation.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CONFIGURATION" | "INCOMPARABLE_CONFIGURATION" | "SECRET_VALUE_REJECTED" | "DRIFT_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type configuration_migration_kitInput = { source_text: string; source_format: "json" | "yaml" | "toml" | "env"; target_format: "json" | "yaml" | "toml" | "env"; key_allowlist?: Array; rename_map?: { [key: string]: string; }; secret_handling_mode: "browser_local" | "reject" | "redact"; }; export type configuration_migration_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "configuration-migration-kit"; version: "1.0.0"; }; result: null | { converted_config: string; type_loss_diagnostics: Array<{ code: "SECRET_REDACTED" | "NULL_OMITTED" | "STRUCTURE_STRINGIFIED" | "TYPE_STRINGIFIED"; path: string; severity: "warning"; source_type: "string" | "number" | "boolean" | "null" | "array" | "object"; target_type: "string" | "unsupported"; }>; omitted_key_receipt: Array<{ path: string; reason: "NOT_ALLOWLISTED" | "TARGET_UNSUPPORTED_NULL"; }>; sorted_key_manifest: Array<{ target_path: string; type: "string" | "number" | "boolean" | "null" | "array" | "object"; }>; migration_report: { format: "markdown"; contains_secret_values: false; content: string; }; artifact_manifest: Array<{ name: "converted_config" | "migration_report" | "omitted_key_receipt" | "sorted_key_manifest" | "type_loss_diagnostics"; media_type: "application/json" | "application/yaml" | "application/toml" | "text/plain" | "text/markdown"; bytes: number; }>; safety: { browser_preview_download_only: true; filesystem_used: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; }; }; receipt: { input_bytes: number; source_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"SECRET_REDACTED" | "NULL_OMITTED" | "STRUCTURE_STRINGIFIED" | "TYPE_STRINGIFIED">; source_format: null | "json" | "yaml" | "toml" | "env"; target_format: null | "json" | "yaml" | "toml" | "env"; keys_discovered: number; keys_emitted: number; secrets_redacted: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { configuration_migration_kit: "1.0.0"; config_format: "config-format-core"; file_integrity_manifest: "file-integrity-manifest-core"; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_FORMAT" | "PARSE_FAILED" | "DUPLICATE_KEY" | "UNSUPPORTED_STRUCTURE" | "DANGEROUS_KEY" | "INVALID_SOURCE_KEY" | "SECRET_DETECTED" | "SECRET_BROWSER_LOCAL_ONLY" | "INVALID_SELECTION" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "configuration-migration-kit"; version: "1.0.0"; }; result: { converted_config: string; type_loss_diagnostics: Array<{ code: "SECRET_REDACTED" | "NULL_OMITTED" | "STRUCTURE_STRINGIFIED" | "TYPE_STRINGIFIED"; path: string; severity: "warning"; source_type: "string" | "number" | "boolean" | "null" | "array" | "object"; target_type: "string" | "unsupported"; }>; omitted_key_receipt: Array<{ path: string; reason: "NOT_ALLOWLISTED" | "TARGET_UNSUPPORTED_NULL"; }>; sorted_key_manifest: Array<{ target_path: string; type: "string" | "number" | "boolean" | "null" | "array" | "object"; }>; migration_report: { format: "markdown"; contains_secret_values: false; content: string; }; artifact_manifest: Array<{ name: "converted_config" | "migration_report" | "omitted_key_receipt" | "sorted_key_manifest" | "type_loss_diagnostics"; media_type: "application/json" | "application/yaml" | "application/toml" | "text/plain" | "text/markdown"; bytes: number; }>; safety: { browser_preview_download_only: true; filesystem_used: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; }; }; receipt: { input_bytes: number; source_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"SECRET_REDACTED" | "NULL_OMITTED" | "STRUCTURE_STRINGIFIED" | "TYPE_STRINGIFIED">; source_format: null | "json" | "yaml" | "toml" | "env"; target_format: null | "json" | "yaml" | "toml" | "env"; keys_discovered: number; keys_emitted: number; secrets_redacted: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { configuration_migration_kit: "1.0.0"; config_format: "config-format-core"; file_integrity_manifest: "file-integrity-manifest-core"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "configuration-migration-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; source_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"SECRET_REDACTED" | "NULL_OMITTED" | "STRUCTURE_STRINGIFIED" | "TYPE_STRINGIFIED">; source_format: null | "json" | "yaml" | "toml" | "env"; target_format: null | "json" | "yaml" | "toml" | "env"; keys_discovered: number; keys_emitted: number; secrets_redacted: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { configuration_migration_kit: "1.0.0"; config_format: "config-format-core"; file_integrity_manifest: "file-integrity-manifest-core"; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_FORMAT" | "PARSE_FAILED" | "DUPLICATE_KEY" | "UNSUPPORTED_STRUCTURE" | "DANGEROUS_KEY" | "INVALID_SOURCE_KEY" | "SECRET_DETECTED" | "SECRET_BROWSER_LOCAL_ONLY" | "INVALID_SELECTION" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type context_budget_planning_kitInput = { records: Array<{ id: string; order: number; priority: number; content: string; }>; budgets: { context_window_tokens: number; reserved_output_tokens: number; reserved_system_tokens: number; reserved_other_tokens: number; }; assumptions: { chars_per_token: number; input_price_per_million_usd: number; output_price_per_million_usd: number; requests: number; }; }; export type context_budget_planning_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "context-budget-planning-kit"; version: "1.0.0"; }; result: null | { policy: { id: "submitted_priority_desc_then_order_whole_record_greedy"; ranking: "priority_desc_then_order_asc_then_input_index_asc"; allocation: "whole_record_greedy_continue_after_omission"; token_estimate: "ceil(Unicode_code_points / submitted_chars_per_token)"; content_handling: "opaque_metadata_only_no_truncation_no_summarization_no_dedupe"; }; records: Array<{ input_index: number; id: string; order: number; priority: number; exact_utf8_bytes: number; estimated_tokens: number; decision: "kept" | "omitted"; allocation_ordinal: null | number; omission_reason: null | "context_budget"; }>; totals: { exact_submitted_utf8_bytes: number; exact_kept_utf8_bytes: number; exact_omitted_utf8_bytes: number; estimated_submitted_tokens: number; estimated_kept_tokens: number; estimated_omitted_tokens: number; context_window_tokens: number; reserved_output_tokens: number; reserved_system_tokens: number; reserved_other_tokens: number; reserved_total_tokens: number; available_record_tokens: number; estimated_remaining_record_tokens: number; estimated_record_overflow_tokens: number; full_submission_fits: boolean; allocated_submission_fits: boolean; }; context_fit: { full_submission: { label: "estimate"; estimated_record_tokens: number; reserved_tokens: number; estimated_total_tokens: number; estimated_remaining_tokens: number; estimated_overflow_tokens: number; fits_context: boolean; }; allocated_submission: { label: "estimate"; estimated_record_tokens: number; reserved_tokens: number; estimated_total_tokens: number; estimated_remaining_tokens: number; estimated_overflow_tokens: number; fits_context: boolean; }; }; cost_scenarios: { full_submission: { label: "estimate"; currency: "USD"; formula: "((estimated_record_tokens + reserved_system_tokens + reserved_other_tokens) / 1000000 * input_price_per_million_usd) + (reserved_output_tokens / 1000000 * output_price_per_million_usd)"; estimated_record_tokens: number; reserved_system_tokens: number; reserved_other_tokens: number; estimated_input_tokens: number; reserved_output_tokens: number; input_price_per_million_usd: number; output_price_per_million_usd: number; estimated_per_request_usd: number; requests: number; estimated_requests_total_usd: number; }; allocated_submission: { label: "estimate"; currency: "USD"; formula: "((estimated_record_tokens + reserved_system_tokens + reserved_other_tokens) / 1000000 * input_price_per_million_usd) + (reserved_output_tokens / 1000000 * output_price_per_million_usd)"; estimated_record_tokens: number; reserved_system_tokens: number; reserved_other_tokens: number; estimated_input_tokens: number; reserved_output_tokens: number; input_price_per_million_usd: number; output_price_per_million_usd: number; estimated_per_request_usd: number; requests: number; estimated_requests_total_usd: number; }; }; omission_receipt: { reason: "context_budget"; records: Array<{ id: string; order: number; input_index: number; estimated_tokens: number; exact_utf8_bytes: number; }>; }; assembly_plan: { policy: "submitted_priority_desc_then_order_whole_record_greedy"; records: Array<{ id: string; order: number; allocation_ordinal: number; }>; }; safety: { semantic_ranking: false; model_used: false; provider_called: false; network_used: false; storage_used: false; content_reflected: false; content_executed: false; truncation_used: false; summarization_used: false; dedupe_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: []; records_submitted: number; records_kept: number; records_omitted: number; content_reflected: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { context_budget_planning_kit: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "INVALID_RECORDS" | "DUPLICATE_ID" | "DUPLICATE_ORDER" | "INVALID_BUDGET" | "INVALID_ASSUMPTION" | "REQUEST_TOO_LARGE" | "ARITHMETIC_OVERFLOW" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "context-budget-planning-kit"; version: "1.0.0"; }; result: { policy: { id: "submitted_priority_desc_then_order_whole_record_greedy"; ranking: "priority_desc_then_order_asc_then_input_index_asc"; allocation: "whole_record_greedy_continue_after_omission"; token_estimate: "ceil(Unicode_code_points / submitted_chars_per_token)"; content_handling: "opaque_metadata_only_no_truncation_no_summarization_no_dedupe"; }; records: Array<{ input_index: number; id: string; order: number; priority: number; exact_utf8_bytes: number; estimated_tokens: number; decision: "kept" | "omitted"; allocation_ordinal: null | number; omission_reason: null | "context_budget"; }>; totals: { exact_submitted_utf8_bytes: number; exact_kept_utf8_bytes: number; exact_omitted_utf8_bytes: number; estimated_submitted_tokens: number; estimated_kept_tokens: number; estimated_omitted_tokens: number; context_window_tokens: number; reserved_output_tokens: number; reserved_system_tokens: number; reserved_other_tokens: number; reserved_total_tokens: number; available_record_tokens: number; estimated_remaining_record_tokens: number; estimated_record_overflow_tokens: number; full_submission_fits: boolean; allocated_submission_fits: boolean; }; context_fit: { full_submission: { label: "estimate"; estimated_record_tokens: number; reserved_tokens: number; estimated_total_tokens: number; estimated_remaining_tokens: number; estimated_overflow_tokens: number; fits_context: boolean; }; allocated_submission: { label: "estimate"; estimated_record_tokens: number; reserved_tokens: number; estimated_total_tokens: number; estimated_remaining_tokens: number; estimated_overflow_tokens: number; fits_context: boolean; }; }; cost_scenarios: { full_submission: { label: "estimate"; currency: "USD"; formula: "((estimated_record_tokens + reserved_system_tokens + reserved_other_tokens) / 1000000 * input_price_per_million_usd) + (reserved_output_tokens / 1000000 * output_price_per_million_usd)"; estimated_record_tokens: number; reserved_system_tokens: number; reserved_other_tokens: number; estimated_input_tokens: number; reserved_output_tokens: number; input_price_per_million_usd: number; output_price_per_million_usd: number; estimated_per_request_usd: number; requests: number; estimated_requests_total_usd: number; }; allocated_submission: { label: "estimate"; currency: "USD"; formula: "((estimated_record_tokens + reserved_system_tokens + reserved_other_tokens) / 1000000 * input_price_per_million_usd) + (reserved_output_tokens / 1000000 * output_price_per_million_usd)"; estimated_record_tokens: number; reserved_system_tokens: number; reserved_other_tokens: number; estimated_input_tokens: number; reserved_output_tokens: number; input_price_per_million_usd: number; output_price_per_million_usd: number; estimated_per_request_usd: number; requests: number; estimated_requests_total_usd: number; }; }; omission_receipt: { reason: "context_budget"; records: Array<{ id: string; order: number; input_index: number; estimated_tokens: number; exact_utf8_bytes: number; }>; }; assembly_plan: { policy: "submitted_priority_desc_then_order_whole_record_greedy"; records: Array<{ id: string; order: number; allocation_ordinal: number; }>; }; safety: { semantic_ranking: false; model_used: false; provider_called: false; network_used: false; storage_used: false; content_reflected: false; content_executed: false; truncation_used: false; summarization_used: false; dedupe_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: []; records_submitted: number; records_kept: number; records_omitted: number; content_reflected: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { context_budget_planning_kit: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "context-budget-planning-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: []; records_submitted: number; records_kept: number; records_omitted: number; content_reflected: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { context_budget_planning_kit: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "INVALID_RECORDS" | "DUPLICATE_ID" | "DUPLICATE_ORDER" | "INVALID_BUDGET" | "INVALID_ASSUMPTION" | "REQUEST_TOO_LARGE" | "ARITHMETIC_OVERFLOW" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type context_distillInput = { input?: string; format?: string; max_bytes?: number; fields?: Array; sort_by?: string; dedupe?: boolean; error_neighborhood?: number; [key: string]: unknown; }; export type context_distillOutput = { [key: string]: unknown; }; export type context_pack_builderInput = { recipe: "api-response-pack" | "ci-failure-pack" | "rag-evidence-pack" | "agent-handoff-pack" | "contract-review-pack" | "evaluation-fixture-pack" | "agent-run-failure-pack" | "accessibility-review-pack" | "patch-verification-pack" | "log-triage-pack" | "structured-data-quality-pack" | "http-security-review-pack" | "file-integrity-change-pack"; input: unknown; fields?: Array; sort_by?: string; dedupe?: boolean; error_neighborhood?: number; field_mapping?: { [key: string]: string; }; max_bytes?: number; [key: string]: unknown; }; export type context_pack_builderOutput = { ok?: boolean; schema_version?: "utilito.context-pack.v1"; recipe?: { [key: string]: unknown; }; format?: "json" | "log" | "evidence" | "handoff" | "contract-review" | "review"; output?: string; evidence?: Array<{ [key: string]: unknown; }>; receipt?: { [key: string]: unknown; }; provenance?: { [key: string]: unknown; }; error?: { [key: string]: unknown; } | null; [key: string]: unknown; }; export type context_window_calculatorInput = { preset?: string; windowSize?: number; systemTokens?: number; userPromptTokens?: number; memoryTokens?: number; retrievedContextTokens?: number; toolOutputTokens?: number; responseTokens?: number; safetyMarginPercent?: number; [key: string]: unknown; }; export type context_window_calculatorOutput = { [key: string]: unknown; }; export type contract_conformance_repairInput_nx36_json_0 = null | boolean | number | string | [] | { }; export type contract_conformance_repairInput_nx36_json_1 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_0; }; export type contract_conformance_repairInput_nx36_json_2 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_1; }; export type contract_conformance_repairInput_nx36_json_3 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_2; }; export type contract_conformance_repairInput_nx36_json_4 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_3; }; export type contract_conformance_repairInput_nx36_json_5 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_4; }; export type contract_conformance_repairInput_nx36_json_6 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_5; }; export type contract_conformance_repairInput_nx36_json_7 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_6; }; export type contract_conformance_repairInput_nx36_json_8 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_7; }; export type contract_conformance_repairInput_nx36_json_9 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_8; }; export type contract_conformance_repairInput_nx36_json_10 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_9; }; export type contract_conformance_repairInput_nx36_json_11 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_10; }; export type contract_conformance_repairInput_nx36_json_12 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairInput_nx36_json_11; }; export type contract_conformance_repairInput = { candidate: contract_conformance_repairInput_nx36_json_12; target_schema: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { [key: string]: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { [key: string]: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "array"; items: { type: "object"; properties: { }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; minItems?: number; maxItems?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "string"; minLength?: number; maxLength?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "integer"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "number"; minimum?: number; maximum?: number; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "boolean"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; } | { type: "null"; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; }; required: Array; additionalProperties: false; enum?: Array; const?: contract_conformance_repairInput_nx36_json_12; unsupported_features?: Array<"$ref" | "allOf" | "anyOf" | "oneOf" | "not" | "if" | "then" | "else" | "pattern" | "format" | "patternProperties" | "additionalItems" | "prefixItems" | "contains" | "dependentSchemas" | "unevaluatedProperties">; }; mappings: Array<{ from: string; to: string; }>; defaults: Array<{ path: string; value: contract_conformance_repairInput_nx36_json_12; }>; coercions: Array<{ path: string; from_type: "string" | "integer" | "number" | "boolean" | "null"; to_type: "string" | "integer" | "number" | "boolean" | "null"; }>; policy: { max_operations: number; require_conformant_result: true; }; }; export type contract_conformance_repairOutput_nx36_json_0 = null | boolean | number | string | [] | { }; export type contract_conformance_repairOutput_nx36_json_1 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_0; }; export type contract_conformance_repairOutput_nx36_json_2 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_1; }; export type contract_conformance_repairOutput_nx36_json_3 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_2; }; export type contract_conformance_repairOutput_nx36_json_4 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_3; }; export type contract_conformance_repairOutput_nx36_json_5 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_4; }; export type contract_conformance_repairOutput_nx36_json_6 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_5; }; export type contract_conformance_repairOutput_nx36_json_7 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_6; }; export type contract_conformance_repairOutput_nx36_json_8 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_7; }; export type contract_conformance_repairOutput_nx36_json_9 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_8; }; export type contract_conformance_repairOutput_nx36_json_10 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_9; }; export type contract_conformance_repairOutput_nx36_json_11 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_10; }; export type contract_conformance_repairOutput_nx36_json_12 = null | boolean | number | string | Array | { [key: string]: contract_conformance_repairOutput_nx36_json_11; }; export type contract_conformance_repairOutput = ({ ok: boolean; schema_version: "utilito.contract-conformance-repair.v1"; version: "1.0.0"; result: null | { verdict: "already_conformant" | "repaired"; repaired_candidate: contract_conformance_repairOutput_nx36_json_12; validation_before: { valid: boolean; findings: Array<{ pointer: string; keyword: "type" | "enum" | "const" | "additionalProperties" | "required" | "minItems" | "maxItems" | "minLength" | "maxLength" | "minimum" | "maximum"; code: "TYPE_MISMATCH" | "ENUM_MISMATCH" | "CONST_MISMATCH" | "ADDITIONAL_PROPERTY" | "REQUIRED_PROPERTY_MISSING" | "MIN_ITEMS" | "MAX_ITEMS" | "MIN_LENGTH" | "MAX_LENGTH" | "MINIMUM" | "MAXIMUM"; }>; }; validation_after: { valid: boolean; findings: Array<{ pointer: string; keyword: "type" | "enum" | "const" | "additionalProperties" | "required" | "minItems" | "maxItems" | "minLength" | "maxLength" | "minimum" | "maximum"; code: "TYPE_MISMATCH" | "ENUM_MISMATCH" | "CONST_MISMATCH" | "ADDITIONAL_PROPERTY" | "REQUIRED_PROPERTY_MISSING" | "MIN_ITEMS" | "MAX_ITEMS" | "MIN_LENGTH" | "MAX_LENGTH" | "MINIMUM" | "MAXIMUM"; }>; }; operations: Array<{ stage: "mapping"; operation: "move"; from: string; path: string; status: "applied"; } | { stage: "default"; operation: "add"; path: string; status: "applied" | "not_needed"; } | { stage: "coercion"; operation: "replace"; path: string; from_type: "string" | "integer" | "number" | "boolean" | "null"; to_type: "string" | "integer" | "number" | "boolean" | "null"; status: "applied"; }>; rollback_packet: { inert: true; atomic: true; operations: Array<{ op: "remove"; path: string; } | { op: "add" | "replace"; path: string; value: contract_conformance_repairOutput_nx36_json_12; }>; }; retry_packet: { inert: true; attempt_limit: 1; candidate: contract_conformance_repairOutput_nx36_json_12; validation: "conformant"; automatic_retry_authorized: false; idempotency_inferred: false; side_effect_safety_inferred: false; }; values_inferred: false; schema_defaults_used: false; operations_executed_externally: false; }; receipt: { input_bytes: number; output_bytes: number; schema_nodes: number; findings_before: number; mappings_applied: number; defaults_applied: number; defaults_not_needed: number; coercions_applied: number; rollback_operations: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CONTRACT_SCHEMA" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_REPAIR_PLAN" | "INVALID_JSON_POINTER" | "POINTER_NOT_FOUND" | "POINTER_COLLISION" | "COERCION_FAILED" | "CONFORMANCE_NOT_REACHED" | "REPAIR_PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.contract-conformance-repair.v1"; version: "1.0.0"; result: { verdict: "already_conformant" | "repaired"; repaired_candidate: contract_conformance_repairOutput_nx36_json_12; validation_before: { valid: boolean; findings: Array<{ pointer: string; keyword: "type" | "enum" | "const" | "additionalProperties" | "required" | "minItems" | "maxItems" | "minLength" | "maxLength" | "minimum" | "maximum"; code: "TYPE_MISMATCH" | "ENUM_MISMATCH" | "CONST_MISMATCH" | "ADDITIONAL_PROPERTY" | "REQUIRED_PROPERTY_MISSING" | "MIN_ITEMS" | "MAX_ITEMS" | "MIN_LENGTH" | "MAX_LENGTH" | "MINIMUM" | "MAXIMUM"; }>; }; validation_after: { valid: boolean; findings: Array<{ pointer: string; keyword: "type" | "enum" | "const" | "additionalProperties" | "required" | "minItems" | "maxItems" | "minLength" | "maxLength" | "minimum" | "maximum"; code: "TYPE_MISMATCH" | "ENUM_MISMATCH" | "CONST_MISMATCH" | "ADDITIONAL_PROPERTY" | "REQUIRED_PROPERTY_MISSING" | "MIN_ITEMS" | "MAX_ITEMS" | "MIN_LENGTH" | "MAX_LENGTH" | "MINIMUM" | "MAXIMUM"; }>; }; operations: Array<{ stage: "mapping"; operation: "move"; from: string; path: string; status: "applied"; } | { stage: "default"; operation: "add"; path: string; status: "applied" | "not_needed"; } | { stage: "coercion"; operation: "replace"; path: string; from_type: "string" | "integer" | "number" | "boolean" | "null"; to_type: "string" | "integer" | "number" | "boolean" | "null"; status: "applied"; }>; rollback_packet: { inert: true; atomic: true; operations: Array<{ op: "remove"; path: string; } | { op: "add" | "replace"; path: string; value: contract_conformance_repairOutput_nx36_json_12; }>; }; retry_packet: { inert: true; attempt_limit: 1; candidate: contract_conformance_repairOutput_nx36_json_12; validation: "conformant"; automatic_retry_authorized: false; idempotency_inferred: false; side_effect_safety_inferred: false; }; values_inferred: false; schema_defaults_used: false; operations_executed_externally: false; }; receipt: { input_bytes: number; output_bytes: number; schema_nodes: number; findings_before: number; mappings_applied: number; defaults_applied: number; defaults_not_needed: number; coercions_applied: number; rollback_operations: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.contract-conformance-repair.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_CONTRACT_SCHEMA" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_REPAIR_PLAN" | "INVALID_JSON_POINTER" | "POINTER_NOT_FOUND" | "POINTER_COLLISION" | "COERCION_FAILED" | "CONFORMANCE_NOT_REACHED" | "REPAIR_PLAN_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type contract_release_gate_kitInput = { contract_kind: "json_schema"; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; fixtures: Array<{ id: string; target: "input" | "output"; value: unknown; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; }>; compatibility_policy: { unknown_changes: "block" | "review"; fixture_failures: "block" | "review"; target: "input" | "output"; }; options: { report_format: "markdown" | "html"; report_mode: "metadata" | "details"; }; } | { contract_kind: "tool_contract"; previous_contract: { name: string; input_schema: { [key: string]: unknown; }; output_schema?: { [key: string]: unknown; }; }; current_contract: { name: string; input_schema: { [key: string]: unknown; }; output_schema?: { [key: string]: unknown; }; }; fixtures: Array<{ id: string; target: "input" | "output"; value: unknown; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; }>; compatibility_policy: { unknown_changes: "block" | "review"; fixture_failures: "block" | "review"; target: "input" | "output" | "both"; }; options: { report_format: "markdown" | "html"; report_mode: "metadata" | "details"; }; } | { contract_kind: "openapi_operation"; previous_contract: { openapi: string; paths: { [key: string]: unknown; }; [key: string]: unknown; }; current_contract: { openapi: string; paths: { [key: string]: unknown; }; [key: string]: unknown; }; selector: { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; fixtures: Array<{ id: string; target: "input" | "output"; value: unknown; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; }>; compatibility_policy: { unknown_changes: "block" | "review"; fixture_failures: "block" | "review"; target: "input" | "output" | "both"; }; options: { report_format: "markdown" | "html"; report_mode: "metadata" | "details"; }; }; export type contract_release_gate_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "contract-release-gate-kit"; version: "1.0.0"; }; result: null | { decision: "pass" | "block" | "review"; status: "passed" | "blocked" | "review_required"; compatibility: { taxonomy: Array<"breaking" | "non_breaking" | "unknown">; supported_subset: string; rows: Array<{ path: string; change: string; classification: "breaking" | "non_breaking" | "unknown"; }>; counts: { breaking: number; non_breaking: number; unknown: number; total: number; }; }; fixture_results: Array<{ id: string; target: "input" | "output"; actual: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; } | { outcome: "validation_unknown"; code: "UNSUPPORTED_SCHEMA_FEATURE"; }; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; passed: boolean; }>; fixture_summary: { passed: number; failed: number; total: number; }; assertions: { kind: "artifact_snapshot_assertions"; specs: Array<{ id: string; invariant: string; }>; node_source: string; }; retry_risk_notes: Array<{ code: string; message: string; automatic_retry: false; }>; safe_actions: Array<{ code: string; message: string; automatic: false; }>; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; mode: "metadata" | "details"; contains_raw_values: false; content: string; }; tool_execution: false; outbound_replay: false; github_writeback: false; scheduled: false; monitoring: false; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; contracts: number; fixtures: number; matrix_rows: number; assertion_specs: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { contract_release_gate_kit: "1.0.0"; contract_matrix: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "EMPTY_FIXTURES" | "PAYLOAD_TOO_LARGE" | "INVALID_CONTRACT" | "UNSUPPORTED_CONTRACT_KIND" | "INVALID_SELECTOR" | "OPERATION_NOT_FOUND" | "MISSING_OUTPUT_TARGET" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_COMPATIBILITY_POLICY" | "INVALID_FIXTURE" | "TOO_MANY_FIXTURES" | "ASSERTION_OUTPUT_TOO_LARGE" | "REPORT_OUTPUT_TOO_LARGE"; message: string; hint: string; }; }; export type contract_reliability_workbenchInput = ({ contracts: Array<{ id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "json_schema"; } | { id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "tool_contract"; } | { id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "openapi_operation"; selector: { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; }>; fixtures: Array<{ id: string; contract_ids: Array; target: "input" | "output"; value: unknown; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; }>; direction: "input" | "output" | "both"; policy: { unknowns: "block" | "review"; fixture_failures: "block" | "review"; cross_contract_findings: "block" | "review"; }; }) & ({ direction?: "input"; contracts?: Array<{ id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "json_schema"; } | { id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "tool_contract"; } | { id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "openapi_operation"; selector: { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; }>; fixtures?: Array<{ id: string; contract_ids: Array; target: "input"; value: unknown; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; }>; [key: string]: unknown; } | { direction?: "output"; contracts?: Array<{ id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "json_schema"; } | { id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "tool_contract"; } | { id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "openapi_operation"; selector: { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; }>; fixtures?: Array<{ id: string; contract_ids: Array; target: "output"; value: unknown; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; }>; [key: string]: unknown; } | { direction?: "both"; contracts?: Array<{ id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "tool_contract"; } | { id: string; version: string; previous_contract: { [key: string]: unknown; }; current_contract: { [key: string]: unknown; }; references: Array<{ contract_id: string; expected_version: string; expected_direction: "input" | "output" | "both"; }>; kind: "openapi_operation"; selector: { path: string; method: "get" | "put" | "post" | "delete" | "patch" | "head" | "options" | "trace"; request_content_type: string; response_status: string; response_content_type: string; }; }>; [key: string]: unknown; }); export type contract_reliability_workbenchOutput = ({ ok: boolean; schema_version: "utilito.contract-reliability-workbench.v1"; version: "1.0.0"; result: null | { decision: "pass" | "review" | "block"; status: "passed" | "review_required" | "blocked"; matrices: Array<{ contract_id: string; direction: "input" | "output"; rows: Array<{ path: string; change: string; classification: "breaking" | "non_breaking" | "unknown"; }>; counts: { breaking: number; non_breaking: number; unknown: number; total: number; }; supported_subset: string; }>; cross_contract_findings: Array<{ source_id: string; target_id: string; code: "VERSION_CONFLICT" | "DIRECTION_CONFLICT"; expected: string; actual: string; }>; fixture_results: Array<{ fixture_id: string; contract_id: string; target: "input" | "output"; actual: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; } | { outcome: "validation_unknown"; code: "UNSUPPORTED_SCHEMA_FEATURE"; }; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; passed: boolean; }>; unknowns: Array<{ contract_id: string; target: "input" | "output"; code: "UNSUPPORTED_KEYWORD_CHANGE" | "FIXTURE_VALIDATION_UNKNOWN" | "MISSING_FIXTURE_COVERAGE" | "UNSUPPORTED_SCHEMA_SEMANTICS"; path: string; }>; assertions: { kind: "portfolio_snapshot_assertions"; specs: Array<{ id: "matrix-count-consistency" | "fixture-count-consistency" | "unknown-count-consistency" | "cross-contract-count-consistency" | "decision-policy-consistency" | "canonical-order-consistency"; invariant: string; }>; node_source: string; }; safety: { tools_executed: false; provider_calls: false; outbound_replay: false; network_resolution: false; repository_reads: false; writeback: false; storage_used: false; monitoring: false; scheduled: false; }; }; receipt: { input_bytes: number; output_bytes: number; contracts: number; references: number; fixtures: number; fixture_evaluations: number; matrix_rows: number; cross_contract_findings: number; unknowns: number; assertion_specs: number; operations: number; omitted_items: 0; warnings: []; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_CONTRACT_KIND" | "CONTRACT_REFERENCE_MISSING" | "FIXTURE_INVALID" | "CROSS_CONTRACT_CONFLICT"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.contract-reliability-workbench.v1"; version: "1.0.0"; result: { decision: "pass" | "review" | "block"; status: "passed" | "review_required" | "blocked"; matrices: Array<{ contract_id: string; direction: "input" | "output"; rows: Array<{ path: string; change: string; classification: "breaking" | "non_breaking" | "unknown"; }>; counts: { breaking: number; non_breaking: number; unknown: number; total: number; }; supported_subset: string; }>; cross_contract_findings: Array<{ source_id: string; target_id: string; code: "VERSION_CONFLICT" | "DIRECTION_CONFLICT"; expected: string; actual: string; }>; fixture_results: Array<{ fixture_id: string; contract_id: string; target: "input" | "output"; actual: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; } | { outcome: "validation_unknown"; code: "UNSUPPORTED_SCHEMA_FEATURE"; }; expected: { outcome: "accepted"; } | { outcome: "typed_error"; code: "SCHEMA_VALIDATION_FAILED"; }; passed: boolean; }>; unknowns: Array<{ contract_id: string; target: "input" | "output"; code: "UNSUPPORTED_KEYWORD_CHANGE" | "FIXTURE_VALIDATION_UNKNOWN" | "MISSING_FIXTURE_COVERAGE" | "UNSUPPORTED_SCHEMA_SEMANTICS"; path: string; }>; assertions: { kind: "portfolio_snapshot_assertions"; specs: Array<{ id: "matrix-count-consistency" | "fixture-count-consistency" | "unknown-count-consistency" | "cross-contract-count-consistency" | "decision-policy-consistency" | "canonical-order-consistency"; invariant: string; }>; node_source: string; }; safety: { tools_executed: false; provider_calls: false; outbound_replay: false; network_resolution: false; repository_reads: false; writeback: false; storage_used: false; monitoring: false; scheduled: false; }; }; receipt: { input_bytes: number; output_bytes: number; contracts: number; references: number; fixtures: number; fixture_evaluations: number; matrix_rows: number; cross_contract_findings: number; unknowns: number; assertion_specs: number; operations: number; omitted_items: 0; warnings: []; }; error: null; } | { ok: false; schema_version: "utilito.contract-reliability-workbench.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; contracts: number; references: number; fixtures: number; fixture_evaluations: number; matrix_rows: number; cross_contract_findings: number; unknowns: number; assertion_specs: number; operations: number; omitted_items: 0; warnings: []; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_CONTRACT_KIND" | "CONTRACT_REFERENCE_MISSING" | "FIXTURE_INVALID" | "CROSS_CONTRACT_CONFLICT"; message: string; hint: string; }; }); export type cron_expression_explainerInput = { expression?: string; count?: number; from?: string; [key: string]: unknown; }; export type cron_expression_explainerOutput = { [key: string]: unknown; }; export type cron_parserInput = { expression?: string; count?: number; [key: string]: unknown; }; export type cron_parserOutput = { [key: string]: unknown; }; export type csv_jsonl_converterInput = { input?: string; direction?: string; delimiter?: string; headerMode?: string; customHeaders?: string; strict?: boolean; [key: string]: unknown; }; export type csv_jsonl_converterOutput = { [key: string]: unknown; }; export type csv_to_jsonInput = { input?: string; delimiter?: string; headers?: boolean; [key: string]: unknown; }; export type csv_to_jsonOutput = { [key: string]: unknown; }; export type curl_converterInput = { input?: string; command?: string; [key: string]: unknown; }; export type curl_converterOutput = { [key: string]: unknown; }; export type currency_converterInput = { amount?: number; from?: string; to?: string; [key: string]: unknown; }; export type currency_converterOutput = { [key: string]: unknown; }; export type data_migration_prep_kitInput = { source_text: string; source_format: "csv" | "tsv" | "json" | "jsonl"; has_header: boolean; field_mapping: Array<{ source: string; target: string; transform: "identity" | "string" | "number" | "integer" | "boolean" | "empty_to_null"; }>; target_schema: { fields: Array<{ name: string; type: "string" | "number" | "integer" | "boolean" | "null"; required: boolean; nullable: boolean; }>; }; options: { target_format: "csv" | "tsv" | "json" | "jsonl"; include_header: boolean; pretty_json: boolean; report_format: "markdown" | "html"; report_mode: "metadata" | "details"; }; }; export type data_migration_prep_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "data-migration-prep-kit"; version: "1.0.0"; }; result: null | { status: "ready" | "review_required"; preview: Array<{ [key: string]: unknown; }>; profile: { format: "csv" | "tsv" | "json" | "jsonl"; rows: number; fields: Array<{ name: string; present: number; nulls: number; types: { string: number; number: number; boolean: number; object: number; array: number; }; unique: number; unique_truncated: boolean; }>; }; converted_file: { name: string; mime_type: string; bytes: number; rows: number; formula_cells_protected: number; content: string; }; rejected_file: { name: "migration-rejected.jsonl"; mime_type: "application/x-ndjson"; bytes: number; rows: number; content: string; }; diagnostics: { input_rows: number; accepted_rows: number; rejected_rows: number; items: Array<{ row_number: number; code: "SOURCE_FIELD_MISSING" | "TRANSFORM_FAILED" | "TARGET_TYPE_MISMATCH" | "NULL_NOT_ALLOWED"; source_field: string; target_field: string; }>; }; integrity_manifest: { manifest: { version: "utilito.file-integrity.v1"; algorithm: "sha256"; files: Array<{ path: string; size: number; digest: string; }>; }; text: string; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; mode: "metadata" | "details"; contains_raw_values: false; content: string; }; safety: { input_overwritten: false; import_executed: false; database_connected: false; uploaded: false; formula_protection: true; }; safe_actions: Array<{ code: "REVIEW_PREVIEW" | "REVIEW_REJECTED_ROWS" | "VERIFY_INTEGRITY" | "IMPORT_MANUALLY"; message: string; automatic: false; }>; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; input_rows: number; accepted_rows: number; rejected_rows: number; formula_cells_protected: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { data_migration_prep_kit: "1.0.0"; structured_data_inspection: "1.0.0"; csv_json_converter: "1.0.0"; file_integrity_manifest: "utilito.file-integrity.v1"; }; }; error: null | { code: "INVALID_INPUT" | "EMPTY_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_FIELD_MAPPING" | "INVALID_TARGET_SCHEMA" | "MALFORMED_DELIMITED" | "INCONSISTENT_ROW_WIDTH" | "EMPTY_HEADER" | "DUPLICATE_HEADER" | "MALFORMED_JSON" | "DUPLICATE_JSON_MEMBER" | "UNSUPPORTED_SOURCE_SHAPE" | "TOO_MANY_ROWS" | "TOO_MANY_FIELDS" | "OUTPUT_TOO_LARGE" | "PROFILE_FAILED" | "INTEGRITY_FAILED"; message: string; hint: string; line?: number; path?: string; }; }; export type data_transfer_time_calculatorInput = { size?: number; sizeUnit?: string; bandwidth?: number; bandwidthUnit?: string; [key: string]: unknown; }; export type data_transfer_time_calculatorOutput = { [key: string]: unknown; }; export type date_difference_calculatorInput = { startDate?: string; endDate?: string; [key: string]: unknown; }; export type date_difference_calculatorOutput = { [key: string]: unknown; }; export type dependency_manifest_reconciliationInput = ({ ecosystem: "npm" | "python"; baseline: { [key: string]: unknown; }; candidate: { [key: string]: unknown; }; policy: { max_declarations: number; max_changes: number; }; }) & ({ ecosystem: "npm"; baseline: { format: "normalized_records"; records: Array<{ name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; } | { format: "package_json"; manifest: { dependencies?: { [key: string]: string; }; devDependencies?: { [key: string]: string; }; peerDependencies?: { [key: string]: string; }; optionalDependencies?: { [key: string]: string; }; }; }; candidate: { format: "normalized_records"; records: Array<{ name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; } | { format: "package_json"; manifest: { dependencies?: { [key: string]: string; }; devDependencies?: { [key: string]: string; }; peerDependencies?: { [key: string]: string; }; optionalDependencies?: { [key: string]: string; }; }; }; policy: { max_declarations: number; max_changes: number; }; } | { ecosystem: "python"; baseline: { format: "normalized_records"; records: Array<{ name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; } | { format: "requirements_txt"; text: string; } | { format: "pyproject_toml"; project: { dependencies: Array; }; }; candidate: { format: "normalized_records"; records: Array<{ name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; } | { format: "requirements_txt"; text: string; } | { format: "pyproject_toml"; project: { dependencies: Array; }; }; policy: { max_declarations: number; max_changes: number; }; }); export type dependency_manifest_reconciliationOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type dependency_manifest_reconciliationOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: dependency_manifest_reconciliationOutput_nx25_json_0; }; export type dependency_manifest_reconciliationOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: dependency_manifest_reconciliationOutput_nx25_json_1; }; export type dependency_manifest_reconciliationOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: dependency_manifest_reconciliationOutput_nx25_json_2; }; export type dependency_manifest_reconciliationOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: dependency_manifest_reconciliationOutput_nx25_json_3; }; export type dependency_manifest_reconciliationOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: dependency_manifest_reconciliationOutput_nx25_json_4; }; export type dependency_manifest_reconciliationOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: dependency_manifest_reconciliationOutput_nx25_json_5; }; export type dependency_manifest_reconciliationOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type dependency_manifest_reconciliationOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: dependency_manifest_reconciliationOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: dependency_manifest_reconciliationOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type dependency_manifest_reconciliationOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: dependency_manifest_reconciliationOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: dependency_manifest_reconciliationOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type dependency_manifest_reconciliationOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: dependency_manifest_reconciliationOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: dependency_manifest_reconciliationOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type dependency_manifest_reconciliationOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: dependency_manifest_reconciliationOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: dependency_manifest_reconciliationOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type dependency_manifest_reconciliationOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: dependency_manifest_reconciliationOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: dependency_manifest_reconciliationOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type dependency_manifest_reconciliationOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: dependency_manifest_reconciliationOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: dependency_manifest_reconciliationOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type dependency_manifest_reconciliationOutput = ({ ok: boolean; schema_version: "utilito.dependency-manifest-reconciliation.v1"; version: "1.0.0"; result: null | { added: Array<{ ecosystem: "npm" | "python"; name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; removed: Array<{ ecosystem: "npm" | "python"; name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; spec_changed: Array<{ ecosystem: "npm" | "python"; name: string; baseline_specifier: string; candidate_specifier: string; comparison: "exact_changed"; }>; scope_changed: Array<{ ecosystem: "npm" | "python"; name: string; specifier: string; baseline_scope: "runtime" | "development" | "peer" | "optional"; candidate_scope: "runtime" | "development" | "peer" | "optional"; }>; diagnostics: Array<{ ecosystem: "npm" | "python"; name: string; baseline_kind: "exact" | "range"; candidate_kind: "exact" | "range"; comparison: "text_equal" | "exact_changed" | "unknown_range_relation"; }>; duplicates: []; conflicting_declarations: []; unknown: Array<{ ecosystem: "npm" | "python"; name: string; baseline_specifier: string; candidate_specifier: string; reason: "range_relation_not_resolved"; }>; checklist: { inert: true; items: Array; }; receipt_manifest: { inert: true; ecosystem: "npm" | "python"; baseline_format: "normalized_records" | "package_json" | "requirements_txt" | "pyproject_toml"; candidate_format: "normalized_records" | "package_json" | "requirements_txt" | "pyproject_toml"; }; registry_queried: false; packages_installed: false; vulnerabilities_checked: false; licenses_checked: false; freshness_checked: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_declarations: number; candidate_declarations: number; changes: number; unknown: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_DEPENDENCY_MANIFEST" | "UNSUPPORTED_MANIFEST_FEATURE" | "DUPLICATE_DEPENDENCY_DECLARATION" | "INCOMPARABLE_VERSION_SPECIFIER" | "DEPENDENCY_DIFF_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.dependency-manifest-reconciliation.v1"; version: "1.0.0"; result: { added: Array<{ ecosystem: "npm" | "python"; name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; removed: Array<{ ecosystem: "npm" | "python"; name: string; specifier: string; scope: "runtime" | "development" | "peer" | "optional"; }>; spec_changed: Array<{ ecosystem: "npm" | "python"; name: string; baseline_specifier: string; candidate_specifier: string; comparison: "exact_changed"; }>; scope_changed: Array<{ ecosystem: "npm" | "python"; name: string; specifier: string; baseline_scope: "runtime" | "development" | "peer" | "optional"; candidate_scope: "runtime" | "development" | "peer" | "optional"; }>; diagnostics: Array<{ ecosystem: "npm" | "python"; name: string; baseline_kind: "exact" | "range"; candidate_kind: "exact" | "range"; comparison: "text_equal" | "exact_changed" | "unknown_range_relation"; }>; duplicates: []; conflicting_declarations: []; unknown: Array<{ ecosystem: "npm" | "python"; name: string; baseline_specifier: string; candidate_specifier: string; reason: "range_relation_not_resolved"; }>; checklist: { inert: true; items: Array; }; receipt_manifest: { inert: true; ecosystem: "npm" | "python"; baseline_format: "normalized_records" | "package_json" | "requirements_txt" | "pyproject_toml"; candidate_format: "normalized_records" | "package_json" | "requirements_txt" | "pyproject_toml"; }; registry_queried: false; packages_installed: false; vulnerabilities_checked: false; licenses_checked: false; freshness_checked: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_declarations: number; candidate_declarations: number; changes: number; unknown: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.dependency-manifest-reconciliation.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_DEPENDENCY_MANIFEST" | "UNSUPPORTED_MANIFEST_FEATURE" | "DUPLICATE_DEPENDENCY_DECLARATION" | "INCOMPARABLE_VERSION_SPECIFIER" | "DEPENDENCY_DIFF_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type discount_calculatorInput = { price?: number; discountPercent?: number; taxRate?: number; [key: string]: unknown; }; export type discount_calculatorOutput = { [key: string]: unknown; }; export type dpi_ppi_calculatorInput = { widthPixels?: number; heightPixels?: number; diagonalInches?: number; [key: string]: unknown; }; export type dpi_ppi_calculatorOutput = { [key: string]: unknown; }; export type duplicate_line_removerInput = { text?: string; caseSensitive?: boolean; [key: string]: unknown; }; export type duplicate_line_removerOutput = { [key: string]: unknown; }; export type environment_contract_compilerInput = { declarations: Array<{ name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "string"; constraints: { min_length: number; max_length: number; enum: Array; pattern?: string; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "integer"; constraints: { minimum: number; maximum: number; enum: Array; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "number"; constraints: { minimum: number; maximum: number; enum: Array; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "boolean"; constraints: { enum: Array; }; }>; policy: { max_declarations: number; max_schema_bytes: number; }; }; export type environment_contract_compilerOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type environment_contract_compilerOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: environment_contract_compilerOutput_nx25_json_0; }; export type environment_contract_compilerOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: environment_contract_compilerOutput_nx25_json_1; }; export type environment_contract_compilerOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: environment_contract_compilerOutput_nx25_json_2; }; export type environment_contract_compilerOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: environment_contract_compilerOutput_nx25_json_3; }; export type environment_contract_compilerOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: environment_contract_compilerOutput_nx25_json_4; }; export type environment_contract_compilerOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: environment_contract_compilerOutput_nx25_json_5; }; export type environment_contract_compilerOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type environment_contract_compilerOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: environment_contract_compilerOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: environment_contract_compilerOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type environment_contract_compilerOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: environment_contract_compilerOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: environment_contract_compilerOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type environment_contract_compilerOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: environment_contract_compilerOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: environment_contract_compilerOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type environment_contract_compilerOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: environment_contract_compilerOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: environment_contract_compilerOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type environment_contract_compilerOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: environment_contract_compilerOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: environment_contract_compilerOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type environment_contract_compilerOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: environment_contract_compilerOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: environment_contract_compilerOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type environment_contract_compilerOutput = ({ ok: boolean; schema_version: "utilito.environment-contract-compiler.v1"; version: "1.0.0"; result: null | { canonical_contract: { schema_version: "utilito.environment-contract.v1"; declarations: Array<{ name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "string"; constraints: { min_length: number; max_length: number; enum: Array; pattern?: string; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "integer"; constraints: { minimum: number; maximum: number; enum: Array; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "number"; constraints: { minimum: number; maximum: number; enum: Array; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "boolean"; constraints: { enum: Array; }; }>; }; env_example: string; json_schema: { $schema: "https://json-schema.org/draft/2020-12/schema"; type: "object"; additionalProperties: false; properties: { [key: string]: { type: "string"; minLength: number; maxLength: number; enum?: Array; } | { type: "integer"; minimum: number; maximum: number; enum?: Array; } | { type: "number"; minimum: number; maximum: number; enum?: Array; } | { type: "boolean"; enum?: Array; }; }; required: Array; }; node_validation_fixture: string; node_validation_fixture_inert: true; findings: []; checklist: { inert: true; items: Array; }; environment_read: false; values_accepted: false; }; receipt: { input_bytes: number; output_bytes: number; declarations: number; required: number; optional: number; schema_bytes: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_ENVIRONMENT_DECLARATION" | "CREDENTIAL_VALUE_REJECTED" | "CONTRADICTORY_ENVIRONMENT_RULE" | "UNSUPPORTED_ENVIRONMENT_CONSTRAINT" | "ENVIRONMENT_CONTRACT_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.environment-contract-compiler.v1"; version: "1.0.0"; result: { canonical_contract: { schema_version: "utilito.environment-contract.v1"; declarations: Array<{ name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "string"; constraints: { min_length: number; max_length: number; enum: Array; pattern?: string; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "integer"; constraints: { minimum: number; maximum: number; enum: Array; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "number"; constraints: { minimum: number; maximum: number; enum: Array; }; } | { name: string; presence: "required" | "optional"; sensitivity: "public" | "sensitive" | "secret"; environments: Array<"development" | "test" | "staging" | "production">; placeholder_policy: "secret" | "example" | "empty"; type: "boolean"; constraints: { enum: Array; }; }>; }; env_example: string; json_schema: { $schema: "https://json-schema.org/draft/2020-12/schema"; type: "object"; additionalProperties: false; properties: { [key: string]: { type: "string"; minLength: number; maxLength: number; enum?: Array; } | { type: "integer"; minimum: number; maximum: number; enum?: Array; } | { type: "number"; minimum: number; maximum: number; enum?: Array; } | { type: "boolean"; enum?: Array; }; }; required: Array; }; node_validation_fixture: string; node_validation_fixture_inert: true; findings: []; checklist: { inert: true; items: Array; }; environment_read: false; values_accepted: false; }; receipt: { input_bytes: number; output_bytes: number; declarations: number; required: number; optional: number; schema_bytes: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.environment-contract-compiler.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_ENVIRONMENT_DECLARATION" | "CREDENTIAL_VALUE_REJECTED" | "CONTRADICTORY_ENVIRONMENT_RULE" | "UNSUPPORTED_ENVIRONMENT_CONSTRAINT" | "ENVIRONMENT_CONTRACT_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type eval_dataset_jsonl_formatterInput = { text: string; mode?: "pipe-to-jsonl" | "validate-jsonl"; includeMetadata?: boolean; }; export type eval_dataset_jsonl_formatterOutput = { ok: boolean; toolId: string; output?: string; errors?: unknown; warnings?: unknown; report?: string; summaryJson?: { [key: string]: unknown; }; error?: { [key: string]: unknown; }; mode?: { [key: string]: unknown; }; valid?: boolean; examplesCount?: number; issues?: unknown; }; export type evaluation_dataset_qa_kitInput = { dataset_text: string; dataset_format: "json" | "jsonl"; field_mapping: { id: string; input: string; expected: string; }; expectations: { id_type: "string"; input_type: "json"; expected_type: "json"; possible_pii_email: boolean; }; rubric: ({ mode: "exact_match" | "exact_match_with_scalar_checks"; score_min?: number; score_max?: number; pass_min?: number; }) & ({ mode?: "exact_match"; [key: string]: unknown; } | { mode?: "exact_match_with_scalar_checks"; score_min: unknown; score_max: unknown; pass_min: unknown; [key: string]: unknown; }); candidate_outputs?: string; baseline_outputs?: string; submitted_format: "auto" | "json" | "jsonl"; options: { blank_lines: "allow" | "error"; dedupe_policy: "keep" | "remove" | "error"; report_format: "markdown" | "html"; report_mode: "metadata" | "excerpt"; context_budget_bytes: number; }; }; export type evaluation_dataset_qa_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "evaluation-dataset-qa-kit"; version: "1.0.0"; }; result: null | { status: "review_required"; normalized_jsonl: string; records: Array<{ id: string; input: unknown; expected: unknown; source: { index: number; line: number; }; }>; schema_diagnostics: []; duplicate_diagnostics: { policy: "keep" | "remove" | "error"; duplicate_occurrences: number; removed: number; retained: number; groups: Array<{ hash: string; first: { index: number; line: number; }; occurrences: Array<{ index: number; line: number; }>; }>; }; leakage_diagnostics: Array<{ code: "POSSIBLE_PII" | "POSSIBLE_SECRET"; pattern: "email" | "openai_api_key" | "aws_access_key" | "bearer_token"; line: number; path: string; heuristic: true; value_exposed: false; }>; comparison: { candidate: null | { summary: { exact_matches: number; mismatches: number; missing: number; extras: number; denominator: number; }; items: Array<{ id: string; status: "missing" | "exact_match" | "mismatch"; exact_match: boolean; scalar_check?: { submitted_score: number; caller_submitted: true; independently_verified: false; within_submitted_range: true; meets_submitted_threshold: boolean; }; }>; extras: Array; scalar_checks?: { submitted: number; within_range: number; passing: number; missing: number; }; }; baseline: null | { summary: { exact_matches: number; mismatches: number; missing: number; extras: number; denominator: number; }; items: Array<{ id: string; status: "missing" | "exact_match" | "mismatch"; exact_match: boolean; scalar_check?: { submitted_score: number; caller_submitted: true; independently_verified: false; within_submitted_range: true; meets_submitted_threshold: boolean; }; }>; extras: Array; scalar_checks?: { submitted: number; within_range: number; passing: number; missing: number; }; }; delta: null | { numerator: number; denominator: number; candidate: { numerator: number; denominator: number; }; baseline: { numerator: number; denominator: number; }; }; method: "canonical_exact_expected_match"; denominator: "normalized_record_occurrences_after_dedupe_policy"; exact_duplicate_id_policy: "retained_and_explicitly_reported" | "removed_or_rejected"; submitted_scalar_scores: "caller_submitted_unverified_threshold_arithmetic_only"; semantic_inference: false; }; rubric: { mode: "exact_match"; submitted_by_caller: true; scalar_scores_independently_verified: false; semantic_grading: false; } | { mode: "exact_match_with_scalar_checks"; score_min: number; score_max: number; pass_min: number; submitted_by_caller: true; scalar_scores_independently_verified: false; semantic_grading: false; }; context_pack: { ok: true; schema_version: string; recipe: { [key: string]: unknown; }; format: string; output: string; evidence: unknown; receipt: { [key: string]: unknown; }; provenance: { [key: string]: unknown; }; error: null; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; contains_raw_dataset: boolean; warning: string; content: string; }; safe_actions: Array<{ code: string; message: string; automatic: false; }>; semantic_quality_inferred: false; model_run: false; submitted_content_executed: false; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array; dataset_records: number; normalized_records: number; duplicate_occurrences: number; duplicates_removed?: number; duplicates_retained?: number; leakage_matches: number; candidate_denominator: number; baseline_denominator: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { evaluation_dataset_qa_kit: "1.0.0"; eval_dataset_jsonl: "1.0.0"; context_pack: string; evidence_report: string; }; }; error: null | { code: "INVALID_INPUT" | "EMPTY_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_DATASET" | "UNSUPPORTED_DATASET_SHAPE" | "INVALID_FIELD_MAPPING" | "DANGEROUS_KEY" | "TOO_MANY_RECORDS" | "DUPLICATE_ID" | "DUPLICATE_RECORD" | "INVALID_SUBMITTED_OUTPUTS" | "INVALID_RUBRIC" | "BUDGET_TOO_SMALL" | "INVALID_CONTEXT_PACK" | "REPORT_INPUT_TOO_LARGE" | "REPORT_OUTPUT_TOO_LARGE"; message: string; hint: string; line?: number; path?: string; }; }; export type evaluation_run_deltaInput = { pack: { id: string; version: string; metric_definitions: Array<{ id: string; direction: "higher_is_better" | "lower_is_better" | "neutral"; aggregation: "mean"; minimum: number; maximum: number; tolerance: number; }>; }; baseline: { pack_id: string; pack_version: string; cases: Array<{ id: string; status: "passed" | "failed" | "skipped" | "error"; scalars: Array<{ metric_id: string; value: number; }>; }>; }; candidate: { pack_id: string; pack_version: string; cases: Array<{ id: string; status: "passed" | "failed" | "skipped" | "error"; scalars: Array<{ metric_id: string; value: number; }>; }>; }; policy: { case_set: "exact" | "allow_changes"; status_mismatch: "review"; regressions: "block" | "review"; max_cases: number; max_metrics: number; max_comparisons: number; }; }; export type evaluation_run_deltaOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type evaluation_run_deltaOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: evaluation_run_deltaOutput_nx25_json_0; }; export type evaluation_run_deltaOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: evaluation_run_deltaOutput_nx25_json_1; }; export type evaluation_run_deltaOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: evaluation_run_deltaOutput_nx25_json_2; }; export type evaluation_run_deltaOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: evaluation_run_deltaOutput_nx25_json_3; }; export type evaluation_run_deltaOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: evaluation_run_deltaOutput_nx25_json_4; }; export type evaluation_run_deltaOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: evaluation_run_deltaOutput_nx25_json_5; }; export type evaluation_run_deltaOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type evaluation_run_deltaOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: evaluation_run_deltaOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: evaluation_run_deltaOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type evaluation_run_deltaOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: evaluation_run_deltaOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: evaluation_run_deltaOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type evaluation_run_deltaOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: evaluation_run_deltaOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: evaluation_run_deltaOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type evaluation_run_deltaOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: evaluation_run_deltaOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: evaluation_run_deltaOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type evaluation_run_deltaOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: evaluation_run_deltaOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: evaluation_run_deltaOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type evaluation_run_deltaOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: evaluation_run_deltaOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: evaluation_run_deltaOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type evaluation_run_deltaOutput = ({ ok: boolean; schema_version: "utilito.evaluation-run-delta.v1"; version: "1.0.0"; result: null | { added: Array; removed: Array; improved: Array; regressed: Array; unchanged: Array; unknown: Array; scalar_deltas: Array<{ case_id: string; metric_id: string; baseline: number; candidate: number; delta: number; classification: "improved" | "regressed" | "unchanged" | "unknown"; }>; metric_facts: Array<{ metric_id: string; baseline_numerator: number; candidate_numerator: number; count: number; baseline_mean: number; candidate_mean: number; mean_delta: number; }>; promotion_verdict: "promote" | "review" | "block"; review_packet: { inert: true; case_ids: Array; policy: "block" | "review"; }; evaluations_executed: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_cases: number; candidate_cases: number; metrics: number; comparisons: number; added: number; removed: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "DUPLICATE_CASE_ID" | "INCOMPARABLE_EVALUATION_RUNS" | "INVALID_EVALUATION_PACK" | "INVALID_METRIC_DEFINITION" | "EVALUATION_DELTA_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.evaluation-run-delta.v1"; version: "1.0.0"; result: { added: Array; removed: Array; improved: Array; regressed: Array; unchanged: Array; unknown: Array; scalar_deltas: Array<{ case_id: string; metric_id: string; baseline: number; candidate: number; delta: number; classification: "improved" | "regressed" | "unchanged" | "unknown"; }>; metric_facts: Array<{ metric_id: string; baseline_numerator: number; candidate_numerator: number; count: number; baseline_mean: number; candidate_mean: number; mean_delta: number; }>; promotion_verdict: "promote" | "review" | "block"; review_packet: { inert: true; case_ids: Array; policy: "block" | "review"; }; evaluations_executed: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_cases: number; candidate_cases: number; metrics: number; comparisons: number; added: number; removed: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.evaluation-run-delta.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "DUPLICATE_CASE_ID" | "INCOMPARABLE_EVALUATION_RUNS" | "INVALID_EVALUATION_PACK" | "INVALID_METRIC_DEFINITION" | "EVALUATION_DELTA_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type evidence_report_builderInput = { context_pack: { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "api-response-pack" | "ci-failure-pack" | "rag-evidence-pack" | "agent-handoff-pack" | "contract-review-pack" | "evaluation-fixture-pack" | "agent-run-failure-pack" | "accessibility-review-pack" | "patch-verification-pack" | "log-triage-pack" | "structured-data-quality-pack" | "http-security-review-pack" | "file-integrity-change-pack"; version: "1.0.0"; }; format: "json" | "log" | "evidence" | "handoff" | "contract-review" | "review"; output: string; evidence: Array<{ [key: string]: unknown; }>; receipt: { [key: string]: unknown; }; provenance: { [key: string]: unknown; }; error: null; }; preset?: "evidence-report" | "ci-incident-report" | "agent-handoff-report" | "contract-review-report" | "evaluation-fixture-report" | "agent-run-failure-report" | "accessibility-review-report" | "patch-verification-report" | "log-triage-report" | "structured-data-quality-report" | "http-security-review-report" | "file-integrity-change-report"; export_format?: "markdown" | "html"; title?: string; }; export type evidence_report_builderOutput = { ok?: boolean; schema_version?: "utilito.evidence-report.v1"; preset?: { [key: string]: unknown; }; export_format?: "markdown" | "html"; mime_type?: "text/markdown" | "text/html"; content?: string; receipt?: { [key: string]: unknown; }; provenance?: { [key: string]: unknown; }; error?: { [key: string]: unknown; } | null; [key: string]: unknown; }; export type file_hash_checksum_verifierInput = { text?: string; bytesBase64?: string; algorithms?: Array; expected?: string; expectedAlgo?: string; [key: string]: unknown; }; export type file_hash_checksum_verifierOutput = { [key: string]: unknown; }; export type file_size_converterInput = { value?: number; fromUnit?: string; toUnit?: string; [key: string]: unknown; }; export type file_size_converterOutput = { [key: string]: unknown; }; export type file_verification_handoff_kitInput = { manifest_id: string; expected: Array<{ name: string; bytes: number; algorithm: "SHA-256"; digest: string; } | { name: string; bytes: number; algorithm: "SHA-384"; digest: string; } | { name: string; bytes: number; algorithm: "SHA-512"; digest: string; }>; submitted_digests: Array<{ name: string; bytes: number; algorithm: "SHA-256"; digest: string; } | { name: string; bytes: number; algorithm: "SHA-384"; digest: string; } | { name: string; bytes: number; algorithm: "SHA-512"; digest: string; }>; policy: { missing: "fail" | "report"; extra: "fail" | "report"; collision: "fail"; }; report_format: "markdown" | "json"; }; export type file_verification_handoff_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "file-verification-handoff-kit"; version: "1.0.0"; }; result: null | { status: "submitted_metadata_comparison_plan"; manifest_id: string; file_bytes_received: false; digests_recomputed: false; submitted_digests_verified: false; submitted_claim_policy_outcome: "claimed_pass_unverified" | "claimed_fail_unverified"; policy: { missing: "fail" | "report"; extra: "fail" | "report"; collision: "fail"; }; report_format: "markdown" | "json"; rows: Array<{ name: string; expected_bytes: null | number; algorithm: "SHA-256" | "SHA-384" | "SHA-512"; submitted_by_caller: boolean; computed_locally: false; verified: false; status: "claimed_match_unverified" | "claimed_mismatch_unverified" | "claimed_extra_unverified" | "missing_submitted_digest"; }>; limitations: Array; }; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; expected_rows: number; submitted_digest_rows: number; declared_bytes: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; file_bytes_received: false; digests_recomputed: false; core_versions: { file_verification_handoff_kit: "1.0.0"; file_hash_checksum_verifier: string; file_integrity_manifest: string; evidence_report: string; }; }; error: null | { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "INVALID_MANIFEST_ID" | "INVALID_FILENAME" | "DUPLICATE_NAME" | "UNSUPPORTED_ALGORITHM" | "INVALID_DIGEST" | "FILE_COUNT_EXCEEDED" | "FILE_TOO_LARGE" | "AGGREGATE_BYTES_EXCEEDED" | "DIGEST_ROW_LIMIT_EXCEEDED" | "ENVELOPE_TOO_LARGE" | "INVALID_FILE_DESCRIPTOR" | "READ_FAILED" | "READ_SIZE_MISMATCH" | "CRYPTO_FAILED" | "DEADLINE_EXCEEDED" | "STALE_GENERATION" | "PUBLICATION_FAILED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "file-verification-handoff-kit"; version: "1.0.0"; }; result: { status: "submitted_metadata_comparison_plan"; manifest_id: string; file_bytes_received: false; digests_recomputed: false; submitted_digests_verified: false; submitted_claim_policy_outcome: "claimed_pass_unverified" | "claimed_fail_unverified"; policy: { missing: "fail" | "report"; extra: "fail" | "report"; collision: "fail"; }; report_format: "markdown" | "json"; rows: Array<{ name: string; expected_bytes: null | number; algorithm: "SHA-256" | "SHA-384" | "SHA-512"; submitted_by_caller: boolean; computed_locally: false; verified: false; status: "claimed_match_unverified" | "claimed_mismatch_unverified" | "claimed_extra_unverified" | "missing_submitted_digest"; }>; limitations: Array; }; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; expected_rows: number; submitted_digest_rows: number; declared_bytes: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; file_bytes_received: false; digests_recomputed: false; core_versions: { file_verification_handoff_kit: "1.0.0"; file_hash_checksum_verifier: string; file_integrity_manifest: string; evidence_report: string; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "file-verification-handoff-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; expected_rows: number; submitted_digest_rows: number; declared_bytes: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; file_bytes_received: false; digests_recomputed: false; core_versions: { file_verification_handoff_kit: "1.0.0"; file_hash_checksum_verifier: string; file_integrity_manifest: string; evidence_report: string; }; }; error: { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "INVALID_MANIFEST_ID" | "INVALID_FILENAME" | "DUPLICATE_NAME" | "UNSUPPORTED_ALGORITHM" | "INVALID_DIGEST" | "FILE_COUNT_EXCEEDED" | "FILE_TOO_LARGE" | "AGGREGATE_BYTES_EXCEEDED" | "DIGEST_ROW_LIMIT_EXCEEDED" | "ENVELOPE_TOO_LARGE" | "INVALID_FILE_DESCRIPTOR" | "READ_FAILED" | "READ_SIZE_MISMATCH" | "CRYPTO_FAILED" | "DEADLINE_EXCEEDED" | "STALE_GENERATION" | "PUBLICATION_FAILED"; message: string; hint: string; }; }); export type finance_scenario_memo_kitInput = ({ family: "roi" | "margin" | "loan" | "mortgage" | "compound_growth"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; scenarios: Array<{ id: string; inputs: { investment: number; proceeds: number; costs: 0; } | { investment: 0; proceeds: number; costs: number; } | { investment: number; proceeds: number; costs: number; }; } | { id: string; inputs: { cost: number; price: number; }; } | { id: string; inputs: { principal: number; apr: number; years: number; }; } | { id: string; inputs: { loanAmount: number; downPayment: number; annualRate: number; termMonths: number; annualPropertyTax: number; annualInsurance: number; monthlyPmi: number; monthlyHoa: number; monthlyExtraPayment: number; }; } | { id: string; inputs: { principal: number; monthlyContribution: 0; annualRate: number; frequency: 1 | 4 | 12; } | { principal: 0; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; } | { principal: number; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; }; }>; report_format: "markdown" | "html"; }) & ({ family: "roi"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; scenarios: Array<{ id: string; inputs: { investment: number; proceeds: number; costs: 0; } | { investment: 0; proceeds: number; costs: number; } | { investment: number; proceeds: number; costs: number; }; }>; report_format: "markdown" | "html"; } | { family: "margin"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; scenarios: Array<{ id: string; inputs: { cost: number; price: number; }; }>; report_format: "markdown" | "html"; } | { family: "loan"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; scenarios: Array<{ id: string; inputs: { principal: number; apr: number; years: number; }; }>; report_format: "markdown" | "html"; } | { family: "mortgage"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; scenarios: Array<{ id: string; inputs: { loanAmount: number; downPayment: number; annualRate: number; termMonths: number; annualPropertyTax: number; annualInsurance: number; monthlyPmi: number; monthlyHoa: number; monthlyExtraPayment: number; }; }>; report_format: "markdown" | "html"; } | { family: "compound_growth"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; scenarios: Array<{ id: string; inputs: { principal: number; monthlyContribution: 0; annualRate: number; frequency: 1 | 4 | 12; } | { principal: 0; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; } | { principal: number; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; }; }>; report_format: "markdown" | "html"; }); export type finance_scenario_memo_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "finance-scenario-memo-kit"; version: "1.0.0"; }; result: null | { family: "roi"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { investment: number; proceeds: number; costs: 0; } | { investment: 0; proceeds: number; costs: number; } | { investment: number; proceeds: number; costs: number; }; metrics: { cost_basis: number; profit: number; roi_percent: number; break_even_proceeds: number; }; deltas: { cost_basis: number; profit: number; roi_percent: number; break_even_proceeds: number; }; details: []; }>; } | { family: "margin"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { cost: number; price: number; }; metrics: { gross_profit: number; margin_percent: number; markup_percent: number; break_even_price: number; }; deltas: { gross_profit: number; margin_percent: number; markup_percent: number; break_even_price: number; }; details: []; }>; } | { family: "loan"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { principal: number; apr: number; years: number; }; metrics: { monthly_payment: number; total_interest: number; total_repayment: number; payment_count: number; }; deltas: { monthly_payment: number; total_interest: number; total_repayment: number; payment_count: number; }; details: Array<{ month: number; ending_balance: number; cumulative_principal: number; }>; }>; } | { family: "mortgage"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { loanAmount: number; downPayment: number; annualRate: number; termMonths: number; annualPropertyTax: number; annualInsurance: number; monthlyPmi: number; monthlyHoa: number; monthlyExtraPayment: number; }; metrics: { loan_amount: number; principal_interest: number; monthly_total: number; total_interest: number; payoff_months: number; interest_saved: number; }; deltas: { loan_amount: number; principal_interest: number; monthly_total: number; total_interest: number; payoff_months: number; interest_saved: number; }; details: Array<{ month: number; ending_balance: number; cumulative_principal: number; }>; }>; } | { family: "compound_growth"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { principal: number; monthlyContribution: 0; annualRate: number; frequency: 1 | 4 | 12; } | { principal: 0; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; } | { principal: number; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; }; metrics: { future_value: number; total_contributed: number; growth_amount: number; growth_multiple: number; }; deltas: { future_value: number; total_contributed: number; growth_amount: number; growth_multiple: number; }; details: Array<{ month: number; future_value: number; total_contributed: number; }>; }>; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; scenarios: number; detail_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { finance_scenario_memo_kit: "1.0.0"; finance_scenarios: "utilito.finance-scenarios.v1"; finance_calculator: "formula-core"; mortgage_tax: "formula-core"; growth_tax: "formula-core"; evidence_report: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "SCENARIO_COUNT" | "INVALID_HORIZON" | "INVALID_ASSUMPTIONS" | "INVALID_SCENARIO_ID" | "DUPLICATE_SCENARIO_ID" | "BASELINE_NOT_FOUND" | "UNSAFE_IDENTIFIER" | "INVALID_SCENARIO" | "CORE_FAILURE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; scenario_id?: string; path?: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "finance-scenario-memo-kit"; version: "1.0.0"; }; result: { family: "roi"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { investment: number; proceeds: number; costs: 0; } | { investment: 0; proceeds: number; costs: number; } | { investment: number; proceeds: number; costs: number; }; metrics: { cost_basis: number; profit: number; roi_percent: number; break_even_proceeds: number; }; deltas: { cost_basis: number; profit: number; roi_percent: number; break_even_proceeds: number; }; details: []; }>; } | { family: "margin"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { cost: number; price: number; }; metrics: { gross_profit: number; margin_percent: number; markup_percent: number; break_even_price: number; }; deltas: { gross_profit: number; margin_percent: number; markup_percent: number; break_even_price: number; }; details: []; }>; } | { family: "loan"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { principal: number; apr: number; years: number; }; metrics: { monthly_payment: number; total_interest: number; total_repayment: number; payment_count: number; }; deltas: { monthly_payment: number; total_interest: number; total_repayment: number; payment_count: number; }; details: Array<{ month: number; ending_balance: number; cumulative_principal: number; }>; }>; } | { family: "mortgage"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { loanAmount: number; downPayment: number; annualRate: number; termMonths: number; annualPropertyTax: number; annualInsurance: number; monthlyPmi: number; monthlyHoa: number; monthlyExtraPayment: number; }; metrics: { loan_amount: number; principal_interest: number; monthly_total: number; total_interest: number; payoff_months: number; interest_saved: number; }; deltas: { loan_amount: number; principal_interest: number; monthly_total: number; total_interest: number; payoff_months: number; interest_saved: number; }; details: Array<{ month: number; ending_balance: number; cumulative_principal: number; }>; }>; } | { family: "compound_growth"; baseline_id: string; comparison_horizon_months: number; assumptions: { currency: "USD"; rounding: "nearest_cent"; rate_convention: "annual_percent_not_decimal"; fees: "excluded" | "included_in_scenario_inputs"; taxes: "excluded" | "included_in_scenario_inputs"; inflation: "nominal" | "real_inputs"; }; metrics: Array<{ id: string; label: string; unit: "USD" | "percent" | "count" | "months" | "ratio"; digits: number; }>; rounding_notice: string; limitations: Array; report: { ok: true; format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; contains_raw_free_text: false; not_financial_advice: true; not_prediction: true; receipt: { output_bytes: number; sanitized_html_fields: number; }; provenance: { source_schema_version: "utilito.finance-scenario-memo.v1"; deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-evidence-report"; core_version: "1.0.0"; }; error: null; }; safety: { market_data_used: false; scenario_ranked: false; winner_selected: false; advice_provided: false; prediction_provided: false; telemetry_used: false; }; applicability: Array; formula_provenance: Array; scenarios: Array<{ id: string; inputs: { principal: number; monthlyContribution: 0; annualRate: number; frequency: 1 | 4 | 12; } | { principal: 0; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; } | { principal: number; monthlyContribution: number; annualRate: number; frequency: 1 | 4 | 12; }; metrics: { future_value: number; total_contributed: number; growth_amount: number; growth_multiple: number; }; deltas: { future_value: number; total_contributed: number; growth_amount: number; growth_multiple: number; }; details: Array<{ month: number; future_value: number; total_contributed: number; }>; }>; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; scenarios: number; detail_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { finance_scenario_memo_kit: "1.0.0"; finance_scenarios: "utilito.finance-scenarios.v1"; finance_calculator: "formula-core"; mortgage_tax: "formula-core"; growth_tax: "formula-core"; evidence_report: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "finance-scenario-memo-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; scenarios: number; detail_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { finance_scenario_memo_kit: "1.0.0"; finance_scenarios: "utilito.finance-scenarios.v1"; finance_calculator: "formula-core"; mortgage_tax: "formula-core"; growth_tax: "formula-core"; evidence_report: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "SCENARIO_COUNT" | "INVALID_HORIZON" | "INVALID_ASSUMPTIONS" | "INVALID_SCENARIO_ID" | "DUPLICATE_SCENARIO_ID" | "BASELINE_NOT_FOUND" | "UNSAFE_IDENTIFIER" | "INVALID_SCENARIO" | "CORE_FAILURE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; scenario_id?: string; path?: string; }; }); export type gpa_calculatorInput = { courses?: unknown; [key: string]: unknown; }; export type gpa_calculatorOutput = { [key: string]: unknown; }; export type hash_generatorInput = { text?: string; [key: string]: unknown; }; export type hash_generatorOutput = { [key: string]: unknown; }; export type html_to_agent_markdownInput = { html: string; }; export type html_to_agent_markdownOutput = ({ ok: boolean; schema_version: "utilito.html-to-agent-markdown.v1"; version: "1.0.0"; result: null | { markdown: string; warnings: Array<{ code: "UNSUPPORTED_ELEMENT" | "OMITTED_ACTIVE_CONTENT" | "UNSAFE_LINK_DROPPED" | "IMAGE_WITHOUT_ALT_OMITTED" | "UNKNOWN_ENTITY_PRESERVED" | "DUPLICATE_ATTRIBUTE_IGNORED" | "TABLE_FLATTENED"; count: number; }>; claims: { html_rendered: false; scripts_executed: false; links_fetched: false; urls_resolved: false; network_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; html_bytes: number; markdown_bytes: number; tokens: number; nodes: number; elements: number; text_nodes: number; links_preserved: number; unsafe_links_dropped: number; images_described: number; unsupported_elements: number; omitted_subtrees: number; decoded_entities: number; unknown_entities: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "EMPTY_HTML" | "MALFORMED_HTML" | "UNSUPPORTED_HTML_SYNTAX"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.html-to-agent-markdown.v1"; version: "1.0.0"; result: { markdown: string; warnings: Array<{ code: "UNSUPPORTED_ELEMENT" | "OMITTED_ACTIVE_CONTENT" | "UNSAFE_LINK_DROPPED" | "IMAGE_WITHOUT_ALT_OMITTED" | "UNKNOWN_ENTITY_PRESERVED" | "DUPLICATE_ATTRIBUTE_IGNORED" | "TABLE_FLATTENED"; count: number; }>; claims: { html_rendered: false; scripts_executed: false; links_fetched: false; urls_resolved: false; network_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; html_bytes: number; markdown_bytes: number; tokens: number; nodes: number; elements: number; text_nodes: number; links_preserved: number; unsafe_links_dropped: number; images_described: number; unsupported_elements: number; omitted_subtrees: number; decoded_entities: number; unknown_entities: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.html-to-agent-markdown.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "EMPTY_HTML" | "MALFORMED_HTML" | "UNSUPPORTED_HTML_SYNTAX"; message: string; hint: string; }; }); export type http_security_remediation_kitInput = { request_headers: string; response_headers: string; html_metadata: { html: string; }; deployment_profile: "static_site" | "application" | "api"; expected_behavior: { cookie: "require_secure_httponly_samesite" | "no_cookies"; cors: "same_origin" | "public_no_credentials" | "restricted_credentials"; csp: "restrictive_web" | "not_applicable"; cache: "private_no_store" | "public_static"; hsts: "required" | "unsupported"; framing: "deny" | "sameorigin" | "csp_ancestors"; referrer: "strict_origin_when_cross_origin" | "no_referrer"; permissions: "deny_sensitive" | "reviewed_custom"; content_type: "html_utf8" | "json"; }; policy: { cookie: "required" | "informational"; cors: "required" | "informational"; csp: "required" | "informational"; cache: "required" | "informational"; hsts: "required" | "informational"; framing: "required" | "informational"; referrer: "required" | "informational"; permissions: "required" | "informational"; content_type: "required" | "informational"; }; report_format: "markdown" | "html"; }; export type http_security_remediation_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "http-security-remediation-kit"; version: "1.0.0"; }; result: null | { status: "ready" | "review_required" | "blocked"; deployment_profile: "static_site" | "application" | "api"; findings: Array<{ code: string; severity: "high" | "medium" | "low"; scope: "cookie" | "cors" | "csp" | "cache" | "hsts" | "framing" | "referrer" | "permissions" | "content_type" | "general" | "html_metadata"; evidence: Array<{ header_name?: string; ordinal: number; line_ordinal: number; source: "request" | "response" | "html_metadata"; path?: string; }>; }>; matrix: { cookie: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; cors: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; csp: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; cache: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; hsts: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; framing: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; referrer: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; permissions: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; content_type: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; }; corrected_header_candidate: { lines: Array; manual_review_required: true; deployed: false; compliance_guaranteed: false; scope: "illustrative_manual_review_example"; }; assertions: { language: "javascript"; node_source: string; manifest: { expected_behavior: { cookie: "require_secure_httponly_samesite" | "no_cookies"; cors: "same_origin" | "public_no_credentials" | "restricted_credentials"; csp: "restrictive_web" | "not_applicable"; cache: "private_no_store" | "public_static"; hsts: "required" | "unsupported"; framing: "deny" | "sameorigin" | "csp_ancestors"; referrer: "strict_origin_when_cross_origin" | "no_referrer"; permissions: "deny_sensitive" | "reviewed_custom"; content_type: "html_utf8" | "json"; }; domains: { cookie: { mode: "require_secure_httponly_samesite" | "no_cookies"; prohibits_set_cookie: boolean; requires_secure_attributes: boolean; }; cors: { mode: "same_origin" | "public_no_credentials" | "restricted_credentials"; requires_origin_match: boolean; requires_preflight_allowlists: boolean; prohibits_credentials: boolean; prohibits_cors_headers: boolean; }; csp: { mode: "restrictive_web" | "not_applicable"; required: boolean; prohibits_unsafe_and_wildcard_sources: boolean; }; cache: { mode: "private_no_store" | "public_static"; requires_public_bounded_max_age: boolean; prohibits_set_cookie: boolean; }; hsts: { mode: "required" | "unsupported"; required: boolean; }; framing: { mode: "deny" | "sameorigin" | "csp_ancestors"; }; referrer: { mode: "strict_origin_when_cross_origin" | "no_referrer"; }; permissions: { mode: "deny_sensitive" | "reviewed_custom"; requires_sensitive_denials: boolean; }; content_type: { mode: "html_utf8" | "json"; requires_nosniff: boolean; }; }; }; escaped: true; syntax_verification: "build_time_fixture"; executes_submitted_content: false; }; html_metadata_summary: { submitted: boolean; deterministic_finding_count: number; raw_html_reflected: false; }; limitations: Array; exact_receipt: { request_header_lines: number; response_header_lines: number; accepted_request_cap_bytes: 65536; receipt_counter_maximum_bytes: 9007199254740991; }; provenance: { target_contacted: false; fetch_used: false; dns_used: false; tls_used: false; crawl_used: false; endpoint_scan_used: false; pentest_performed: false; submitted_content_executed: false; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; contains_sensitive_values: false; content: string; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: []; request_header_lines: number; response_header_lines: number; findings: number; html_metadata_inspected: boolean; sensitive_values_reflected: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { http_security_remediation_kit: "1.0.0"; http_security_diagnostics: "1.0.0"; web_page_qa: "utilito.web-page-qa.v1"; deterministic_review_pack: "1.0.0"; deterministic_review_report: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "INVALID_HEADERS" | "SENSITIVE_INPUT" | "INVALID_EXPECTATIONS" | "INVALID_POLICY" | "REQUEST_TOO_LARGE" | "ASSERTION_GENERATION_FAILED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "http-security-remediation-kit"; version: "1.0.0"; }; result: { status: "ready" | "review_required" | "blocked"; deployment_profile: "static_site" | "application" | "api"; findings: Array<{ code: string; severity: "high" | "medium" | "low"; scope: "cookie" | "cors" | "csp" | "cache" | "hsts" | "framing" | "referrer" | "permissions" | "content_type" | "general" | "html_metadata"; evidence: Array<{ header_name?: string; ordinal: number; line_ordinal: number; source: "request" | "response" | "html_metadata"; path?: string; }>; }>; matrix: { cookie: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; cors: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; csp: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; cache: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; hsts: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; framing: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; referrer: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; permissions: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; content_type: { status: "pass" | "review" | "block" | "unknown"; policy: "required" | "informational"; finding_codes: Array; }; }; corrected_header_candidate: { lines: Array; manual_review_required: true; deployed: false; compliance_guaranteed: false; scope: "illustrative_manual_review_example"; }; assertions: { language: "javascript"; node_source: string; manifest: { expected_behavior: { cookie: "require_secure_httponly_samesite" | "no_cookies"; cors: "same_origin" | "public_no_credentials" | "restricted_credentials"; csp: "restrictive_web" | "not_applicable"; cache: "private_no_store" | "public_static"; hsts: "required" | "unsupported"; framing: "deny" | "sameorigin" | "csp_ancestors"; referrer: "strict_origin_when_cross_origin" | "no_referrer"; permissions: "deny_sensitive" | "reviewed_custom"; content_type: "html_utf8" | "json"; }; domains: { cookie: { mode: "require_secure_httponly_samesite" | "no_cookies"; prohibits_set_cookie: boolean; requires_secure_attributes: boolean; }; cors: { mode: "same_origin" | "public_no_credentials" | "restricted_credentials"; requires_origin_match: boolean; requires_preflight_allowlists: boolean; prohibits_credentials: boolean; prohibits_cors_headers: boolean; }; csp: { mode: "restrictive_web" | "not_applicable"; required: boolean; prohibits_unsafe_and_wildcard_sources: boolean; }; cache: { mode: "private_no_store" | "public_static"; requires_public_bounded_max_age: boolean; prohibits_set_cookie: boolean; }; hsts: { mode: "required" | "unsupported"; required: boolean; }; framing: { mode: "deny" | "sameorigin" | "csp_ancestors"; }; referrer: { mode: "strict_origin_when_cross_origin" | "no_referrer"; }; permissions: { mode: "deny_sensitive" | "reviewed_custom"; requires_sensitive_denials: boolean; }; content_type: { mode: "html_utf8" | "json"; requires_nosniff: boolean; }; }; }; escaped: true; syntax_verification: "build_time_fixture"; executes_submitted_content: false; }; html_metadata_summary: { submitted: boolean; deterministic_finding_count: number; raw_html_reflected: false; }; limitations: Array; exact_receipt: { request_header_lines: number; response_header_lines: number; accepted_request_cap_bytes: 65536; receipt_counter_maximum_bytes: 9007199254740991; }; provenance: { target_contacted: false; fetch_used: false; dns_used: false; tls_used: false; crawl_used: false; endpoint_scan_used: false; pentest_performed: false; submitted_content_executed: false; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; contains_sensitive_values: false; content: string; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: []; request_header_lines: number; response_header_lines: number; findings: number; html_metadata_inspected: boolean; sensitive_values_reflected: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { http_security_remediation_kit: "1.0.0"; http_security_diagnostics: "1.0.0"; web_page_qa: "utilito.web-page-qa.v1"; deterministic_review_pack: "1.0.0"; deterministic_review_report: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "http-security-remediation-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: []; request_header_lines: number; response_header_lines: number; findings: number; html_metadata_inspected: boolean; sensitive_values_reflected: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { http_security_remediation_kit: "1.0.0"; http_security_diagnostics: "1.0.0"; web_page_qa: "utilito.web-page-qa.v1"; deterministic_review_pack: "1.0.0"; deterministic_review_report: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "INVALID_HEADERS" | "SENSITIVE_INPUT" | "INVALID_EXPECTATIONS" | "INVALID_POLICY" | "REQUEST_TOO_LARGE" | "ASSERTION_GENERATION_FAILED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type image_delivery_audit_kitInput = { delivery: ({ src: string; srcset: Array<{ src: string; width: number; bytes: number; }>; sizes: string; width: null | number; height: null | number; loading: "lazy" | "eager" | "auto"; decoding: "async" | "sync" | "auto"; }) & ({ width?: null; height?: null; [key: string]: unknown; } | { width?: number; height?: number; [key: string]: unknown; }); declared: { format: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif"; alpha: "yes" | "no" | "unknown"; animation: "yes" | "no" | "unknown"; }; viewports: Array<{ width: number; dpr: number; }>; assumptions: { requests: number; cache_hit_ratio: number; effective_bandwidth_bps: number; render_count: number; }; limits: { max_file_bytes: number; max_dimension: number; max_pixels: number; max_decoded_memory_bytes: number; deadline_ms: number; }; }; export type image_delivery_audit_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "image-delivery-audit-kit"; version: "2.0.0"; }; result: null | { status: "metadata_only_audit_plan"; actual_file_facts_available: false; file_bytes_received: false; signature: null; actual_mime: null; decoded_dimensions: null; decode_succeeded: null; submitted_delivery: { src: string; srcset: Array<{ src: string; width: number; bytes: number; }>; sizes: string; width: null | number; height: null | number; loading: "lazy" | "eager" | "auto"; decoding: "async" | "sync" | "auto"; submitted_by_caller: true; independently_verified: false; }; declared_facts: { format: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif"; alpha: "yes" | "no" | "unknown"; animation: "yes" | "no" | "unknown"; submitted_by_caller: true; independently_verified: false; }; assumptions: { requests: number; cache_hit_ratio: number; effective_bandwidth_bps: number; render_count: number; submitted_by_caller: true; independently_verified: false; }; responsive_coverage: Array<{ viewport_width: number; dpr: number; slot_width: number; required_width: number; selected_width: number; selected_bytes: number; upscaling: boolean; submitted_metadata: true; }>; intrinsic_aspect: { submitted_width: null | number; submitted_height: null | number; actual_width: null; actual_height: null; }; estimates: { decoded_memory: { bytes: number; formula: string; assumptions: Array; }; bandwidth: { bytes: number; formula: string; assumptions: Array; }; render_demand: { byte_instances: number; formula: string; assumptions: Array; }; }; findings: Array<{ code: string; severity: "warning" | "review"; message: string; automatic: false; }>; fix_checklist: Array; claims: { lighthouse_score: false; core_web_vitals_measurement: false; browser_benchmark: false; performance_guarantee: false; }; limitations: Array; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; file_bytes_received: false; core_versions: { image_delivery_audit_kit: "2.0.0"; image_delivery_audit: string; size_bandwidth: string; rendering_limits: string; rendering_cache: string; }; }; error: null | { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "FILE_TOO_LARGE" | "INVALID_FILE_DESCRIPTOR" | "UNSUPPORTED_SIGNATURE" | "SIGNATURE_MIME_MISMATCH" | "READ_FAILED" | "READ_SIZE_MISMATCH" | "DECODE_FAILED" | "SIGNATURE_DECODE_MISMATCH" | "DIMENSION_LIMIT_EXCEEDED" | "PIXEL_LIMIT_EXCEEDED" | "DECODED_MEMORY_LIMIT_EXCEEDED" | "DEADLINE_EXCEEDED" | "STALE_AUDIT" | "PUBLICATION_FAILED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "image-delivery-audit-kit"; version: "2.0.0"; }; result: { status: "metadata_only_audit_plan"; actual_file_facts_available: false; file_bytes_received: false; signature: null; actual_mime: null; decoded_dimensions: null; decode_succeeded: null; submitted_delivery: { src: string; srcset: Array<{ src: string; width: number; bytes: number; }>; sizes: string; width: null | number; height: null | number; loading: "lazy" | "eager" | "auto"; decoding: "async" | "sync" | "auto"; submitted_by_caller: true; independently_verified: false; }; declared_facts: { format: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif"; alpha: "yes" | "no" | "unknown"; animation: "yes" | "no" | "unknown"; submitted_by_caller: true; independently_verified: false; }; assumptions: { requests: number; cache_hit_ratio: number; effective_bandwidth_bps: number; render_count: number; submitted_by_caller: true; independently_verified: false; }; responsive_coverage: Array<{ viewport_width: number; dpr: number; slot_width: number; required_width: number; selected_width: number; selected_bytes: number; upscaling: boolean; submitted_metadata: true; }>; intrinsic_aspect: { submitted_width: null | number; submitted_height: null | number; actual_width: null; actual_height: null; }; estimates: { decoded_memory: { bytes: number; formula: string; assumptions: Array; }; bandwidth: { bytes: number; formula: string; assumptions: Array; }; render_demand: { byte_instances: number; formula: string; assumptions: Array; }; }; findings: Array<{ code: string; severity: "warning" | "review"; message: string; automatic: false; }>; fix_checklist: Array; claims: { lighthouse_score: false; core_web_vitals_measurement: false; browser_benchmark: false; performance_guarantee: false; }; limitations: Array; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; file_bytes_received: false; core_versions: { image_delivery_audit_kit: "2.0.0"; image_delivery_audit: string; size_bandwidth: string; rendering_limits: string; rendering_cache: string; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "image-delivery-audit-kit"; version: "2.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; file_bytes_received: false; core_versions: { image_delivery_audit_kit: "2.0.0"; image_delivery_audit: string; size_bandwidth: string; rendering_limits: string; rendering_cache: string; }; }; error: { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "FILE_TOO_LARGE" | "INVALID_FILE_DESCRIPTOR" | "UNSUPPORTED_SIGNATURE" | "SIGNATURE_MIME_MISMATCH" | "READ_FAILED" | "READ_SIZE_MISMATCH" | "DECODE_FAILED" | "SIGNATURE_DECODE_MISMATCH" | "DIMENSION_LIMIT_EXCEEDED" | "PIXEL_LIMIT_EXCEEDED" | "DECODED_MEMORY_LIMIT_EXCEEDED" | "DEADLINE_EXCEEDED" | "STALE_AUDIT" | "PUBLICATION_FAILED"; message: string; hint: string; }; }); export type image_delivery_production_kitInput = { source: { id: string; name: string; mime: "image/png" | "image/jpeg" | "image/webp" | "image/gif"; width: number; height: number; bytes: number; has_alpha: boolean; animation_known: true; animated: boolean; } | { id: string; name: string; mime: "image/png" | "image/jpeg" | "image/webp" | "image/gif"; width: number; height: number; bytes: number; has_alpha: boolean; animation_known: false; animated: null; }; formats: Array<"image/webp" | "image/jpeg" | "image/png">; widths: Array; quality: { jpeg: number; webp: number; }; alpha_policy: { jpeg: "reject" | "flatten"; background: string; }; animation_policy: "reject" | "flatten_first_frame"; sizes: string; fallback_format: "image/webp" | "image/jpeg" | "image/png"; limits: { max_source_bytes: number; max_dimension: number; max_pixels: number; max_output_bytes: number; max_total_output_bytes: number; max_working_set_bytes: number; }; }; export type image_delivery_production_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "image-delivery-production-kit"; version: "1.0.0"; }; result: null | { status: "metadata_plan_only"; generated: false; source: { id: string; name: string; mime: "image/png" | "image/jpeg" | "image/webp" | "image/gif"; width: number; height: number; bytes: number; has_alpha: boolean; animation_known: true; animated: boolean; } | { id: string; name: string; mime: "image/png" | "image/jpeg" | "image/webp" | "image/gif"; width: number; height: number; bytes: number; has_alpha: boolean; animation_known: false; animated: null; }; formats: Array<"image/webp" | "image/jpeg" | "image/png">; widths: Array; quality: { jpeg: number; webp: number; }; alpha_policy: { jpeg: "reject" | "flatten"; background: string; }; animation_policy: "reject" | "flatten_first_frame"; sizes: string; fallback_format: "image/webp" | "image/jpeg" | "image/png"; limits: { max_source_bytes: number; max_dimension: number; max_pixels: number; max_output_bytes: number; max_total_output_bytes: number; max_working_set_bytes: number; }; variants: Array<{ filename: string; mime: "image/webp" | "image/jpeg" | "image/png"; width: number; height: number; descriptor: string; pixels: number; decoded_rgba_bytes: number; quality: null | number; quality_effective: boolean; alpha_behavior: string; animation_preserved: false; first_frame_only: boolean; generated: false; encoded_bytes: null; sha256: null; actual_digest: false; recomputed: false; provenance: "planned_metadata_only"; }>; srcsets: { "image/webp"?: string; "image/jpeg"?: string; "image/png"?: string; }; picture_snippet: string; memory_table: Array<{ filename: string; width: number; height: number; pixels: number; decoded_rgba_bytes: number; }>; working_set: { source_decoded_rgba_bytes: number; projected_variant_decoded_rgba_bytes: number; projected_total_decoded_working_set_bytes: number; limit_bytes: number; method: "source_rgba_plus_all_planned_variant_rgba_conservative"; }; disclosures: Array<{ code: string; message: string; }>; integrity_manifest: null; delivery_manifest: null; delivery_report: null; claims: { browser_local_pixels_required: true; generated_bytes: false; digests_computed: false; provenance_verified: false; hosted: false; retained: false; pipeline_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; planned_variants: number; realized_variants: 0; total_pixels: number; total_decoded_rgba_bytes: number; total_encoded_bytes: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { image_delivery_production_kit: "1.0.0"; image_delivery_audit: "utilito.image-delivery.v1"; browser_canvas_generation: "browser-local-v1"; integrity_manifest: "utilito.file-integrity.v1"; }; }; error: null | { code: "INVALID_INPUT" | "RAW_IMAGE_INPUT_FORBIDDEN" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_SOURCE" | "INVALID_FORMATS" | "INVALID_WIDTHS" | "INVALID_QUALITY" | "INVALID_ALPHA_POLICY" | "ALPHA_FLATTEN_REQUIRED" | "INVALID_ANIMATION_POLICY" | "ANIMATION_REJECTED" | "INVALID_SIZES" | "INVALID_LIMITS" | "WORKING_SET_EXCEEDED" | "INVALID_BROWSER_RECEIPT" | "OUTPUT_BYTES_EXCEEDED" | "TOTAL_OUTPUT_BYTES_EXCEEDED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "image-delivery-production-kit"; version: "1.0.0"; }; result: { status: "metadata_plan_only"; generated: false; source: { id: string; name: string; mime: "image/png" | "image/jpeg" | "image/webp" | "image/gif"; width: number; height: number; bytes: number; has_alpha: boolean; animation_known: true; animated: boolean; } | { id: string; name: string; mime: "image/png" | "image/jpeg" | "image/webp" | "image/gif"; width: number; height: number; bytes: number; has_alpha: boolean; animation_known: false; animated: null; }; formats: Array<"image/webp" | "image/jpeg" | "image/png">; widths: Array; quality: { jpeg: number; webp: number; }; alpha_policy: { jpeg: "reject" | "flatten"; background: string; }; animation_policy: "reject" | "flatten_first_frame"; sizes: string; fallback_format: "image/webp" | "image/jpeg" | "image/png"; limits: { max_source_bytes: number; max_dimension: number; max_pixels: number; max_output_bytes: number; max_total_output_bytes: number; max_working_set_bytes: number; }; variants: Array<{ filename: string; mime: "image/webp" | "image/jpeg" | "image/png"; width: number; height: number; descriptor: string; pixels: number; decoded_rgba_bytes: number; quality: null | number; quality_effective: boolean; alpha_behavior: string; animation_preserved: false; first_frame_only: boolean; generated: false; encoded_bytes: null; sha256: null; actual_digest: false; recomputed: false; provenance: "planned_metadata_only"; }>; srcsets: { "image/webp"?: string; "image/jpeg"?: string; "image/png"?: string; }; picture_snippet: string; memory_table: Array<{ filename: string; width: number; height: number; pixels: number; decoded_rgba_bytes: number; }>; working_set: { source_decoded_rgba_bytes: number; projected_variant_decoded_rgba_bytes: number; projected_total_decoded_working_set_bytes: number; limit_bytes: number; method: "source_rgba_plus_all_planned_variant_rgba_conservative"; }; disclosures: Array<{ code: string; message: string; }>; integrity_manifest: null; delivery_manifest: null; delivery_report: null; claims: { browser_local_pixels_required: true; generated_bytes: false; digests_computed: false; provenance_verified: false; hosted: false; retained: false; pipeline_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; planned_variants: number; realized_variants: 0; total_pixels: number; total_decoded_rgba_bytes: number; total_encoded_bytes: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { image_delivery_production_kit: "1.0.0"; image_delivery_audit: "utilito.image-delivery.v1"; browser_canvas_generation: "browser-local-v1"; integrity_manifest: "utilito.file-integrity.v1"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "image-delivery-production-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; planned_variants: number; realized_variants: 0; total_pixels: number; total_decoded_rgba_bytes: number; total_encoded_bytes: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { image_delivery_production_kit: "1.0.0"; image_delivery_audit: "utilito.image-delivery.v1"; browser_canvas_generation: "browser-local-v1"; integrity_manifest: "utilito.file-integrity.v1"; }; }; error: { code: "INVALID_INPUT" | "RAW_IMAGE_INPUT_FORBIDDEN" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_SOURCE" | "INVALID_FORMATS" | "INVALID_WIDTHS" | "INVALID_QUALITY" | "INVALID_ALPHA_POLICY" | "ALPHA_FLATTEN_REQUIRED" | "INVALID_ANIMATION_POLICY" | "ANIMATION_REJECTED" | "INVALID_SIZES" | "INVALID_LIMITS" | "WORKING_SET_EXCEEDED" | "INVALID_BROWSER_RECEIPT" | "OUTPUT_BYTES_EXCEEDED" | "TOTAL_OUTPUT_BYTES_EXCEEDED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type integration_launch_kitInput = { client_profile: "claude-code" | "claude-desktop" | "cursor" | "vscode" | "generic-http"; tool_id: "json-repair" | "json-formatter" | "base64" | "url-encoder"; language: "javascript" | "typescript" | "python" | "curl"; example_input?: { [key: string]: unknown; }; }; export type integration_launch_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "integration-launch-kit"; version: "1.0.0"; }; result: null | { client_profile: { id: string; name: string; transport: string; format: string; config_path: unknown; verify_steps: Array; failure_hint: string; }; client_config: { install_text: string; config: unknown; config_json: unknown; official_docs_url: string; }; selected_tool: { id: string; name: string; description: string; version: string; deterministic_class: "pure-function"; privacy_mode: string; api_available: true; mcp_available: true; }; discovery_sequence: Array<{ method: "search_tools" | "get_tool_schema" | "run_tool"; arguments: { [key: string]: unknown; }; }>; client_snippet: string; expected_failures: Array; verified_call: { success: boolean; tool_id: string; result: { [key: string]: unknown; }; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { integration_launch_kit: string; selected_tool: unknown; }; }; error: null | { code: string; message: string; hint: string; }; }; export type invoice_generatorInput = { items?: unknown; taxRate?: number; discount?: number; [key: string]: unknown; }; export type invoice_generatorOutput = { [key: string]: unknown; }; export type json_formatterInput = { input?: string; action?: string; [key: string]: unknown; }; export type json_formatterOutput = { [key: string]: unknown; }; export type json_path_testerInput = { json?: string; path?: string; [key: string]: unknown; }; export type json_path_testerOutput = { [key: string]: unknown; }; export type json_queryInput = { input?: string; query?: string; max_output_bytes?: number; [key: string]: unknown; }; export type json_queryOutput = { [key: string]: unknown; }; export type json_repairInput = { input?: string; strip_fences?: boolean; strip_prose?: boolean; close_truncated?: boolean; [key: string]: unknown; }; export type json_repairOutput = { [key: string]: unknown; }; export type json_schema_compatibility_diffInput_nx25_json_0 = null | boolean | number | string | [] | { }; export type json_schema_compatibility_diffInput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffInput_nx25_json_0; }; export type json_schema_compatibility_diffInput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffInput_nx25_json_1; }; export type json_schema_compatibility_diffInput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffInput_nx25_json_2; }; export type json_schema_compatibility_diffInput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffInput_nx25_json_3; }; export type json_schema_compatibility_diffInput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffInput_nx25_json_4; }; export type json_schema_compatibility_diffInput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffInput_nx25_json_5; }; export type json_schema_compatibility_diffInput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffInput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffInput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffInput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffInput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffInput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffInput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffInput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffInput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffInput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffInput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffInput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffInput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffInput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffInput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffInput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffInput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffInput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffInput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffInput = { baseline_schema: json_schema_compatibility_diffInput_nx25_schema_6; candidate_schema: json_schema_compatibility_diffInput_nx25_schema_6; direction: "request_consumer" | "response_producer" | "bidirectional"; root_pointer: ""; max_changes: number; }; export type json_schema_compatibility_diffOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type json_schema_compatibility_diffOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffOutput_nx25_json_0; }; export type json_schema_compatibility_diffOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffOutput_nx25_json_1; }; export type json_schema_compatibility_diffOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffOutput_nx25_json_2; }; export type json_schema_compatibility_diffOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffOutput_nx25_json_3; }; export type json_schema_compatibility_diffOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffOutput_nx25_json_4; }; export type json_schema_compatibility_diffOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: json_schema_compatibility_diffOutput_nx25_json_5; }; export type json_schema_compatibility_diffOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: json_schema_compatibility_diffOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: json_schema_compatibility_diffOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type json_schema_compatibility_diffOutput = ({ ok: boolean; schema_version: "utilito.json-schema-compatibility-diff.v1"; version: "1.0.0"; result: null | { direction: "request_consumer" | "response_producer" | "bidirectional"; changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; breaking_changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; non_breaking_changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; unknown_changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; verdict: "breaking" | "compatible" | "unknown"; checklist: { inert: true; items: Array; }; compatibility_inferred: false; }; receipt: { input_bytes: number; output_bytes: number; schema_nodes: number; changes: number; breaking: number; non_breaking: number; unknown: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_SCHEMA" | "UNSUPPORTED_SCHEMA_FEATURE" | "INCOMPARABLE_SCHEMAS" | "SCHEMA_DIFF_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.json-schema-compatibility-diff.v1"; version: "1.0.0"; result: { direction: "request_consumer" | "response_producer" | "bidirectional"; changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; breaking_changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; non_breaking_changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; unknown_changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: json_schema_compatibility_diffOutput_nx25_json_5; after: json_schema_compatibility_diffOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; verdict: "breaking" | "compatible" | "unknown"; checklist: { inert: true; items: Array; }; compatibility_inferred: false; }; receipt: { input_bytes: number; output_bytes: number; schema_nodes: number; changes: number; breaking: number; non_breaking: number; unknown: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.json-schema-compatibility-diff.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_SCHEMA" | "UNSUPPORTED_SCHEMA_FEATURE" | "INCOMPARABLE_SCHEMAS" | "SCHEMA_DIFF_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type json_schema_to_tool_definitionInput = { name: string; description?: string; schemaText: string; format?: "openai" | "anthropic" | "mcp"; }; export type json_schema_to_tool_definitionOutput = { ok: boolean; toolId: string; output?: string; errors?: unknown; warnings?: unknown; report?: string; summaryJson?: { [key: string]: unknown; }; error?: { [key: string]: unknown; }; format?: { [key: string]: unknown; }; payload?: unknown; schema?: { [key: string]: unknown; }; }; export type json_schema_validatorInput = { schema?: string; data?: string; [key: string]: unknown; }; export type json_schema_validatorOutput = { [key: string]: unknown; }; export type json_shrinkInput = { input?: string; max_array_items?: number; max_string_length?: number; max_depth?: number; drop_nulls?: boolean; drop_empty?: boolean; [key: string]: unknown; }; export type json_shrinkOutput = { [key: string]: unknown; }; export type json_to_csvInput = { input?: string; delimiter?: string; [key: string]: unknown; }; export type json_to_csvOutput = { [key: string]: unknown; }; export type jwt_debuggerInput = { token?: string; input?: string; [key: string]: unknown; }; export type jwt_debuggerOutput = { [key: string]: unknown; }; export type jwt_decoderInput = { token?: string; [key: string]: unknown; }; export type jwt_decoderOutput = { [key: string]: unknown; }; export type large_payload_reduction_kitInput = ({ format: "json" | "jsonl" | "text" | "log"; payload: string; selection: { kind: "json_paths"; paths: Array<{ id: string; segments: Array; }>; } | { kind: "jsonl_ranges"; ranges: Array<{ id: string; start_record: number; end_record: number; }>; paths: Array<{ id: string; segments: Array; }>; } | { kind: "line_ranges"; ranges: Array<{ id: string; start_line: number; end_line: number; }>; }; dedupe: { mode: "none" | "exact"; }; error_neighborhood: { mode: "none"; } | { mode: "literal"; markers: Array; before_lines: number; after_lines: number; }; truncation: { mode: "whole_unit_fail" | "whole_unit_omit"; }; output: { max_artifact_bytes: number; chars_per_token: number; }; }) & ({ format: "json"; selection: { kind: "json_paths"; paths: Array<{ id: string; segments: Array; }>; }; error_neighborhood: { mode: "none"; }; [key: string]: unknown; } | { format: "jsonl"; selection: { kind: "jsonl_ranges"; ranges: Array<{ id: string; start_record: number; end_record: number; }>; paths: Array<{ id: string; segments: Array; }>; }; error_neighborhood: { mode: "none"; }; [key: string]: unknown; } | { format: "text"; selection: { kind: "line_ranges"; ranges: Array<{ id: string; start_line: number; end_line: number; }>; }; error_neighborhood: { mode: "none"; } | { mode: "literal"; markers: Array; before_lines: number; after_lines: number; }; [key: string]: unknown; } | { format: "log"; selection: { kind: "line_ranges"; ranges: Array<{ id: string; start_line: number; end_line: number; }>; }; error_neighborhood: { mode: "none"; } | { mode: "literal"; markers: Array; before_lines: number; after_lines: number; }; [key: string]: unknown; }); export type large_payload_reduction_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "large-payload-reduction-kit"; version: "1.0.0"; }; result: null | { artifact: { format: "json" | "jsonl" | "text" | "log"; mime_type: "application/json" | "application/x-ndjson" | "text/plain"; text: string; }; retained: { selection_ids: Array; unit_ordinals: Array; context_anchors: Array<{ marker_ordinal: number; line_ordinal: number; }>; }; omissions: { by_reason: { unselected_line: number; unselected_record: number; unselected_node: number; unselected_field: number; exact_duplicate: number; artifact_budget: number; anchor_evidence_cap: number; }; totals: { source_primary_units: number; retained_primary_units: number; omitted_primary_units: number; unselected_nodes: number; unselected_fields: number; duplicate_units: number; artifact_budget_units: number; anchor_evidence_items: number; }; unselected_ranges: Array<{ start: number; end: number; }>; duplicate_ordinals: Array; truncated_ordinals: Array; missing_ids: Array; }; diagnostics: { duplicate_json_keys: number; duplicate_json_key_locations: Array<{ object_ordinal: number; key_ordinal: number; } | { record_ordinal: number; object_ordinal: number; key_ordinal: number; }>; secret_heuristics: Array<{ code: "POSSIBLE_CREDENTIAL"; unit_ordinal: number; } | { code: "POSSIBLE_CREDENTIAL"; unit_ordinal: number; selector_id: string; }>; context_anchor_omission: { reason: "anchor_evidence_cap"; count: number; }; }; estimates: { method: "ceil_unicode_code_points_divided_by_chars_per_token"; chars_per_token: number; input_code_points: number; artifact_code_points: number; input_tokens: number; artifact_tokens: number; }; context_pack: { schema_version: "utilito.large-payload-context-pack.v1"; artifact_format: "json" | "jsonl" | "text" | "log"; retained_units: number; omitted_units: number; raw_content_outside_artifact: false; }; report: { format: "json"; contains_raw_content: false; status: "review_required"; summary_codes: Array<"EXPLICIT_SELECTION" | "WHOLE_UNIT_OUTPUT" | "REVIEW_BEFORE_SHARING">; }; safety: { model_used: false; semantic_summary: false; semantic_ranking: false; inference_used: false; network_used: false; storage_used: false; submitted_content_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; artifact_bytes: number; operations: number; omitted_items: number; warnings: []; input_lines: number; retained_lines: number; input_records: number; retained_records: number; input_nodes: number; retained_nodes: number; omitted_nodes: number; omitted_fields: number; omitted_lines: number; omitted_records: number; omitted_evidence: number; duplicate_omissions: number; truncation_omissions: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { large_payload_reduction_kit: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "INVALID_JSON" | "INVALID_JSONL" | "INVALID_SELECTION" | "MISSING_SELECTION" | "INPUT_TOO_COMPLEX" | "INVALID_PAYLOAD" | "BUDGET_TOO_SMALL" | "OUTPUT_TOO_LARGE"; message: string; hint: string; record?: number; missing_ids?: Array; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "large-payload-reduction-kit"; version: "1.0.0"; }; result: { artifact: { format: "json" | "jsonl" | "text" | "log"; mime_type: "application/json" | "application/x-ndjson" | "text/plain"; text: string; }; retained: { selection_ids: Array; unit_ordinals: Array; context_anchors: Array<{ marker_ordinal: number; line_ordinal: number; }>; }; omissions: { by_reason: { unselected_line: number; unselected_record: number; unselected_node: number; unselected_field: number; exact_duplicate: number; artifact_budget: number; anchor_evidence_cap: number; }; totals: { source_primary_units: number; retained_primary_units: number; omitted_primary_units: number; unselected_nodes: number; unselected_fields: number; duplicate_units: number; artifact_budget_units: number; anchor_evidence_items: number; }; unselected_ranges: Array<{ start: number; end: number; }>; duplicate_ordinals: Array; truncated_ordinals: Array; missing_ids: Array; }; diagnostics: { duplicate_json_keys: number; duplicate_json_key_locations: Array<{ object_ordinal: number; key_ordinal: number; } | { record_ordinal: number; object_ordinal: number; key_ordinal: number; }>; secret_heuristics: Array<{ code: "POSSIBLE_CREDENTIAL"; unit_ordinal: number; } | { code: "POSSIBLE_CREDENTIAL"; unit_ordinal: number; selector_id: string; }>; context_anchor_omission: { reason: "anchor_evidence_cap"; count: number; }; }; estimates: { method: "ceil_unicode_code_points_divided_by_chars_per_token"; chars_per_token: number; input_code_points: number; artifact_code_points: number; input_tokens: number; artifact_tokens: number; }; context_pack: { schema_version: "utilito.large-payload-context-pack.v1"; artifact_format: "json" | "jsonl" | "text" | "log"; retained_units: number; omitted_units: number; raw_content_outside_artifact: false; }; report: { format: "json"; contains_raw_content: false; status: "review_required"; summary_codes: Array<"EXPLICIT_SELECTION" | "WHOLE_UNIT_OUTPUT" | "REVIEW_BEFORE_SHARING">; }; safety: { model_used: false; semantic_summary: false; semantic_ranking: false; inference_used: false; network_used: false; storage_used: false; submitted_content_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; artifact_bytes: number; operations: number; omitted_items: number; warnings: []; input_lines: number; retained_lines: number; input_records: number; retained_records: number; input_nodes: number; retained_nodes: number; omitted_nodes: number; omitted_fields: number; omitted_lines: number; omitted_records: number; omitted_evidence: number; duplicate_omissions: number; truncation_omissions: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { large_payload_reduction_kit: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "large-payload-reduction-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; artifact_bytes: number; operations: number; omitted_items: number; warnings: []; input_lines: number; retained_lines: number; input_records: number; retained_records: number; input_nodes: number; retained_nodes: number; omitted_nodes: number; omitted_fields: number; omitted_lines: number; omitted_records: number; omitted_evidence: number; duplicate_omissions: number; truncation_omissions: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { large_payload_reduction_kit: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "INVALID_JSON" | "INVALID_JSONL" | "INVALID_SELECTION" | "MISSING_SELECTION" | "INPUT_TOO_COMPLEX" | "INVALID_PAYLOAD" | "BUDGET_TOO_SMALL" | "OUTPUT_TOO_LARGE"; message: string; hint: string; record?: number; missing_ids?: Array; }; }); export type loan_calculatorInput = { principal?: number; annualRate?: number; years?: number; [key: string]: unknown; }; export type loan_calculatorOutput = { [key: string]: unknown; }; export type log_context_trimmerInput = { input?: string; keepHead?: number; keepTail?: number; collapseRepeats?: boolean; stripVolatile?: boolean; [key: string]: unknown; }; export type log_context_trimmerOutput = { [key: string]: unknown; }; export type margin_markup_calculatorInput = { cost?: number; price?: number; [key: string]: unknown; }; export type margin_markup_calculatorOutput = { [key: string]: unknown; }; export type markdown_cleanerInput = { input?: string; stripLinks?: boolean; stripImages?: boolean; stripHtml?: boolean; preserveCodeBlocks?: boolean; [key: string]: unknown; }; export type markdown_cleanerOutput = { [key: string]: unknown; }; export type mcp_config_generatorInput = { client?: "claude-code" | "claude-desktop" | "cursor" | "vscode" | "generic-http"; serverName: string; transport: "stdio" | "http"; commandOrUrl: string; argsText?: string; envText?: string; }; export type mcp_config_generatorOutput = { ok: boolean; toolId: string; output?: string; errors?: unknown; warnings?: unknown; report?: string; summaryJson?: { [key: string]: unknown; }; error?: { [key: string]: unknown; }; client?: { [key: string]: unknown; }; transport?: { [key: string]: unknown; }; config?: { [key: string]: unknown; } | null; }; export type mermaid_diagram_delivery_kitInput = { source: string; diagram_type: "flowchart"; theme: "dark" | "light" | "neutral"; width: number; height: number; background: string; title: string; description: string; alt_text: string; outputs: { svg: true; png: boolean; }; }; export type mermaid_diagram_delivery_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "mermaid-diagram-delivery-kit"; version: "1.0.0"; }; result: null | { status: "validation_plan_only"; generated: false; browser_generation_required: true; source_echoed: false; validation: { validator: "utilito-mermaid-preflight-v1"; diagram_type: "flowchart"; source_bytes: number; lines: number; nodes: number; edges: number; }; requested: { theme: "dark" | "light" | "neutral"; width: number; height: number; background: string; title_present: true; description_present: true; alt_text_present: true; outputs: Array<"png" | "svg">; }; deliverables: Array<{ format: "png" | "svg"; mime_type: "image/png" | "image/svg+xml"; filename: "mermaid-diagram.png" | "mermaid-diagram.svg"; generated: false; bytes: null; width: null; height: null; sha256: null; reopen_verified: false; }>; limitations: Array; }; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; source_bytes: number; nodes: number; edges: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; browser_bytes_generated: false; core_versions: { mermaid_diagram_delivery_kit: "1.0.0"; mermaid_validation: "utilito-mermaid-preflight-v1"; }; }; error: null | { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "SOURCE_TOO_LARGE" | "UNSUPPORTED_DIAGRAM_TYPE" | "MERMAID_VALIDATION_FAILED" | "UNSAFE_MERMAID_SOURCE" | "UNSUPPORTED_MERMAID_SYNTAX" | "DIAGRAM_LIMIT_EXCEEDED" | "INVALID_DIMENSIONS" | "INVALID_OUTPUT_SELECTION" | "OUTPUT_TOO_LARGE" | "ENVELOPE_TOO_LARGE" | "BROWSER_RENDER_FAILED" | "RENDER_TIMEOUT" | "UNSAFE_SVG" | "SVG_REOPEN_FAILED" | "PNG_RENDER_FAILED" | "PNG_REOPEN_FAILED" | "STALE_GENERATION" | "PUBLICATION_FAILED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "mermaid-diagram-delivery-kit"; version: "1.0.0"; }; result: { status: "validation_plan_only"; generated: false; browser_generation_required: true; source_echoed: false; validation: { validator: "utilito-mermaid-preflight-v1"; diagram_type: "flowchart"; source_bytes: number; lines: number; nodes: number; edges: number; }; requested: { theme: "dark" | "light" | "neutral"; width: number; height: number; background: string; title_present: true; description_present: true; alt_text_present: true; outputs: Array<"png" | "svg">; }; deliverables: Array<{ format: "png" | "svg"; mime_type: "image/png" | "image/svg+xml"; filename: "mermaid-diagram.png" | "mermaid-diagram.svg"; generated: false; bytes: null; width: null; height: null; sha256: null; reopen_verified: false; }>; limitations: Array; }; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; source_bytes: number; nodes: number; edges: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; browser_bytes_generated: false; core_versions: { mermaid_diagram_delivery_kit: "1.0.0"; mermaid_validation: "utilito-mermaid-preflight-v1"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "mermaid-diagram-delivery-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; complete_bytes: number; source_bytes: number; nodes: number; edges: number; operations: number; omitted_items: 0; warnings: []; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; browser_bytes_generated: false; core_versions: { mermaid_diagram_delivery_kit: "1.0.0"; mermaid_validation: "utilito-mermaid-preflight-v1"; }; }; error: { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "SOURCE_TOO_LARGE" | "UNSUPPORTED_DIAGRAM_TYPE" | "MERMAID_VALIDATION_FAILED" | "UNSAFE_MERMAID_SOURCE" | "UNSUPPORTED_MERMAID_SYNTAX" | "DIAGRAM_LIMIT_EXCEEDED" | "INVALID_DIMENSIONS" | "INVALID_OUTPUT_SELECTION" | "OUTPUT_TOO_LARGE" | "ENVELOPE_TOO_LARGE" | "BROWSER_RENDER_FAILED" | "RENDER_TIMEOUT" | "UNSAFE_SVG" | "SVG_REOPEN_FAILED" | "PNG_RENDER_FAILED" | "PNG_REOPEN_FAILED" | "STALE_GENERATION" | "PUBLICATION_FAILED"; message: string; hint: string; }; }); export type mermaid_rendererInput = { source?: string; input?: string; recipe?: { schema_version?: "utilito.context-recipe.v1"; id: string; version: string; title?: string; description?: string; steps: Array<{ tool_id: "json-repair" | "json-query" | "json-shrink" | "structured-output-rescue" | "context-distill" | "agent-contract-check" | "json-formatter" | "csv-to-json" | "json-to-csv" | "csv-jsonl-converter" | "base64" | "url-encoder" | "markdown-cleaner" | "log-context-trimmer"; input?: { [key: string]: unknown; }; }>; fixtures?: Array<{ [key: string]: unknown; }>; execution?: false; }; format?: string; exportFormat?: string; [key: string]: unknown; }; export type mermaid_rendererOutput = { ok?: boolean; renderer?: "utilito-mermaid-renderer-v0-flowchart-svg" | "utilito-mermaid-renderer-v1-flowchart-png"; renderer_version?: "0.1.0" | "0.2.0"; diagram_type?: "flowchart"; export_format?: "svg" | "html" | "png"; cache_key?: string; cache?: { [key: string]: unknown; }; svg?: string; html?: string; png_base64?: string; mime_type?: "image/png"; encoding?: "base64"; retention?: { mode?: "response_only"; stored?: false; }; exports?: { [key: string]: unknown; }; stats?: { [key: string]: unknown; }; cost?: { [key: string]: unknown; }; warnings?: Array; recipe_diagram?: { [key: string]: unknown; }; error?: { [key: string]: unknown; } | null; [key: string]: unknown; }; export type mortgage_calculatorInput = { price?: number; downPayment?: number; annualRate?: number; years?: number; extraPayment?: number; [key: string]: unknown; }; export type mortgage_calculatorOutput = { [key: string]: unknown; }; export type nanoid_generatorInput = { length?: number; count?: number; alphabet?: string; [key: string]: unknown; }; export type nanoid_generatorOutput = { [key: string]: unknown; }; export type number_baseInput = { value?: string; fromBase?: number; toBase?: number; [key: string]: unknown; }; export type number_baseOutput = { [key: string]: unknown; }; export type offline_api_batch_production_kitInput = { calls: Array<({ id: string; tool_id: "json-repair" | "json-formatter" | "base64" | "url-encoder"; input: { [key: string]: unknown; }; }) & ({ id: string; tool_id: "json-repair"; input: { input: string; strip_fences: boolean; strip_prose: boolean; close_truncated: boolean; }; } | { id: string; tool_id: "json-formatter"; input: { input: string; action: "format" | "minify" | "validate"; indent: number; }; } | { id: string; tool_id: "base64"; input: { input: string; action: "encode" | "decode"; urlSafe: boolean; }; } | { id: string; tool_id: "url-encoder"; input: { input: string; action: "encode" | "decode"; mode: "component" | "full-url" | "query"; }; })>; artifact_languages: Array<"curl" | "javascript" | "python">; }; export type offline_api_batch_production_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "offline-api-batch-production-kit"; version: "1.0.0"; }; result: null | { canonical_batch_body: { requests: Array<{ id: string; tool_id: "json-repair" | "json-formatter" | "base64" | "url-encoder"; input: { input: string; strip_fences: boolean; strip_prose: boolean; close_truncated: boolean; } | { input: string; action: "format" | "minify" | "validate"; indent: number; } | { input: string; action: "encode" | "decode"; urlSafe: boolean; } | { input: string; action: "encode" | "decode"; mode: "component" | "full-url" | "query"; }; }>; }; canonical_batch_json: string; artifacts: { curl?: string; javascript?: string; python?: string; }; artifact_manifest: Array<{ language: "curl" | "javascript" | "python"; filename: "offline-api-batch.sh" | "offline-api-batch.mjs" | "offline_api_batch.py"; content_type: "text/plain"; utf8_bytes: number; }>; validation_receipt: { calls_validated: number; schemas_checked: number; tool_ids: Array<"json-repair" | "json-formatter" | "base64" | "url-encoder">; canonical_tool_ids: true; unique_call_ids: true; fixed_endpoint: true; }; safety: { calls_executed: false; network_used: false; credentials_accepted: false; arbitrary_origins_accepted: false; fixed_origin: "https://utilito.dev"; }; }; receipt: { input_bytes: number; output_bytes: number; operations: 0; omitted_items: 0; warnings: []; calls: number; artifacts: number; schemas_checked: number; calls_executed: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { offline_api_batch_production_kit: "1.0.0"; offline_api_batch_contract: "1.0.0"; offline_api_batch_tool_resolution: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "SENSITIVE_INPUT" | "INVALID_CALLS" | "INVALID_TOOL_INPUT" | "INVALID_ARTIFACT_LANGUAGES" | "REQUEST_TOO_LARGE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; path?: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "offline-api-batch-production-kit"; version: "1.0.0"; }; result: { canonical_batch_body: { requests: Array<{ id: string; tool_id: "json-repair" | "json-formatter" | "base64" | "url-encoder"; input: { input: string; strip_fences: boolean; strip_prose: boolean; close_truncated: boolean; } | { input: string; action: "format" | "minify" | "validate"; indent: number; } | { input: string; action: "encode" | "decode"; urlSafe: boolean; } | { input: string; action: "encode" | "decode"; mode: "component" | "full-url" | "query"; }; }>; }; canonical_batch_json: string; artifacts: { curl?: string; javascript?: string; python?: string; }; artifact_manifest: Array<{ language: "curl" | "javascript" | "python"; filename: "offline-api-batch.sh" | "offline-api-batch.mjs" | "offline_api_batch.py"; content_type: "text/plain"; utf8_bytes: number; }>; validation_receipt: { calls_validated: number; schemas_checked: number; tool_ids: Array<"json-repair" | "json-formatter" | "base64" | "url-encoder">; canonical_tool_ids: true; unique_call_ids: true; fixed_endpoint: true; }; safety: { calls_executed: false; network_used: false; credentials_accepted: false; arbitrary_origins_accepted: false; fixed_origin: "https://utilito.dev"; }; }; receipt: { input_bytes: number; output_bytes: number; operations: 0; omitted_items: 0; warnings: []; calls: number; artifacts: number; schemas_checked: number; calls_executed: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { offline_api_batch_production_kit: "1.0.0"; offline_api_batch_contract: "1.0.0"; offline_api_batch_tool_resolution: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "offline-api-batch-production-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: 0; omitted_items: 0; warnings: []; calls: number; artifacts: number; schemas_checked: number; calls_executed: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { offline_api_batch_production_kit: "1.0.0"; offline_api_batch_contract: "1.0.0"; offline_api_batch_tool_resolution: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "SENSITIVE_INPUT" | "INVALID_CALLS" | "INVALID_TOOL_INPUT" | "INVALID_ARTIFACT_LANGUAGES" | "REQUEST_TOO_LARGE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; path?: string; }; }); export type openapi_surface_deltaInput_nx25_json_0 = null | boolean | number | string | [] | { }; export type openapi_surface_deltaInput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaInput_nx25_json_0; }; export type openapi_surface_deltaInput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaInput_nx25_json_1; }; export type openapi_surface_deltaInput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaInput_nx25_json_2; }; export type openapi_surface_deltaInput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaInput_nx25_json_3; }; export type openapi_surface_deltaInput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaInput_nx25_json_4; }; export type openapi_surface_deltaInput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaInput_nx25_json_5; }; export type openapi_surface_deltaInput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaInput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaInput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaInput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaInput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaInput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaInput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaInput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaInput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaInput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaInput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaInput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaInput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaInput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaInput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaInput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaInput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaInput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaInput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaInput = { baseline: { openapi: "3.0.0" | "3.1.0"; paths: { [key: string]: { get?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; post?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; put?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; patch?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; delete?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; }; }; servers?: Array<{ url: string; }>; }; candidate: { openapi: "3.0.0" | "3.1.0"; paths: { [key: string]: { get?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; post?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; put?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; patch?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; delete?: { operationId: string; parameters: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaInput_nx25_schema_6; }>; requestBody?: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; responses: { [key: string]: { content: { [key: string]: { schema: openapi_surface_deltaInput_nx25_schema_6; }; }; }; }; security: Array<{ [key: string]: Array; }>; }; }; }; servers?: Array<{ url: string; }>; }; policy: { paths: Array; methods: Array<"GET" | "POST" | "PUT" | "PATCH" | "DELETE">; content_types: Array; max_changes: number; }; }; export type openapi_surface_deltaOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type openapi_surface_deltaOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaOutput_nx25_json_0; }; export type openapi_surface_deltaOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaOutput_nx25_json_1; }; export type openapi_surface_deltaOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaOutput_nx25_json_2; }; export type openapi_surface_deltaOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaOutput_nx25_json_3; }; export type openapi_surface_deltaOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaOutput_nx25_json_4; }; export type openapi_surface_deltaOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: openapi_surface_deltaOutput_nx25_json_5; }; export type openapi_surface_deltaOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: openapi_surface_deltaOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: openapi_surface_deltaOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type openapi_surface_deltaOutput = ({ ok: boolean; schema_version: "utilito.openapi-surface-delta.v1"; version: "1.0.0"; result: null | { added_operations: Array; removed_operations: Array; parameter_deltas: Array<{ operation: string; baseline: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaOutput_nx25_schema_6; }>; candidate: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaOutput_nx25_schema_6; }>; }>; request_body_deltas: Array<{ operation: string; baseline: null | { content: { [key: string]: { schema: openapi_surface_deltaOutput_nx25_schema_6; }; }; }; candidate: null | { content: { [key: string]: { schema: openapi_surface_deltaOutput_nx25_schema_6; }; }; }; }>; response_deltas: Array<{ operation: string; status: string; content_type: string; changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: openapi_surface_deltaOutput_nx25_json_5; after: openapi_surface_deltaOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; classification: "breaking" | "non_breaking"; }>; security_name_deltas: Array<{ operation: string; added: Array; removed: Array; }>; verdict: "breaking" | "compatible"; review_packet: { inert: true; operations: Array; }; server_used: false; network_used: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_operations: number; candidate_operations: number; deltas: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_OPENAPI_FRAGMENT" | "UNSUPPORTED_OPENAPI_FEATURE" | "OPERATION_ID_COLLISION" | "OPENAPI_DIFF_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.openapi-surface-delta.v1"; version: "1.0.0"; result: { added_operations: Array; removed_operations: Array; parameter_deltas: Array<{ operation: string; baseline: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaOutput_nx25_schema_6; }>; candidate: Array<{ name: string; in: "query" | "header" | "path"; required: boolean; schema: openapi_surface_deltaOutput_nx25_schema_6; }>; }>; request_body_deltas: Array<{ operation: string; baseline: null | { content: { [key: string]: { schema: openapi_surface_deltaOutput_nx25_schema_6; }; }; }; candidate: null | { content: { [key: string]: { schema: openapi_surface_deltaOutput_nx25_schema_6; }; }; }; }>; response_deltas: Array<{ operation: string; status: string; content_type: string; changes: Array<{ pointer: string; keyword: "property" | "type" | "enum" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "required"; before: openapi_surface_deltaOutput_nx25_json_5; after: openapi_surface_deltaOutput_nx25_json_5; classification: "breaking" | "non_breaking" | "unknown"; }>; classification: "breaking" | "non_breaking"; }>; security_name_deltas: Array<{ operation: string; added: Array; removed: Array; }>; verdict: "breaking" | "compatible"; review_packet: { inert: true; operations: Array; }; server_used: false; network_used: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_operations: number; candidate_operations: number; deltas: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.openapi-surface-delta.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_OPENAPI_FRAGMENT" | "UNSUPPORTED_OPENAPI_FEATURE" | "OPERATION_ID_COLLISION" | "OPENAPI_DIFF_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type password_strength_checkerInput = { password?: string; [key: string]: unknown; }; export type password_strength_checkerOutput = { [key: string]: unknown; }; export type pdf_deliverable_assembly_kitInput = ({ sources: Array<{ id: string; name: string; mime: "application/pdf"; bytes: number; page_count: number; }>; pages: Array<{ source_id: string; source_page: number; rotation: 0 | 90 | 180 | 270; label: null | string; }>; metadata_policy: "preserve" | "remove" | "replace"; metadata: null | { title: string; }; output_filename: string; limits: { max_source_files: number; max_source_bytes: number; max_total_source_bytes: number; max_source_pages: number; max_output_pages: number; max_output_bytes: number; }; }) & ({ metadata_policy?: "preserve"; metadata?: null; [key: string]: unknown; } | { metadata_policy?: "remove"; metadata?: null; [key: string]: unknown; } | { metadata_policy: "replace"; metadata: { title: string; }; [key: string]: unknown; }); export type pdf_deliverable_assembly_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "pdf-deliverable-assembly-kit"; version: "1.0.0"; }; result: null | { status: "metadata_plan_only"; generated: false; output_filename: string; collision_policy: "sanitized-output-name-with-distinct-metadata-artifact-suffixes"; sources: Array<{ id: string; name: string; mime: "application/pdf"; bytes: number; page_count: number; }>; pages: Array<{ source_id: string; source_page: number; rotation: 0 | 90 | 180 | 270; label: null | string; }>; limits: { max_source_files: number; max_source_bytes: number; max_total_source_bytes: number; max_source_pages: number; max_output_pages: number; max_output_bytes: number; }; page_source_map: Array<{ output_page: number; source_id: string; source_page: number; rotation: 0 | 90 | 180 | 270; label: null | string; }>; operation_receipt: { combined_sources: number; selected_pages: number; removed_source_pages: number; reordered: boolean; rotated_pages: number; labeled_pages: number; label_behavior: "embedded_as_unicode_pdf_page_label_prefix"; }; metadata_summary: { policy: "preserve" | "remove" | "replace"; title: null | string; title_behavior: string; author_behavior: string; subject_behavior: string; keywords_behavior: string; creator_behavior: string; producer_behavior: string; creation_date_behavior: string; modification_date_behavior: string; }; integrity_manifest: null; sha256: null; output_bytes: null; claims: { browser_local_files_required: true; pdf_generated: false; output_reopened: false; digest_computed: false; network_used: false; storage_used: false; pipeline_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; source_files: number; source_pages: number; output_pages: number; generated_bytes: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { pdf_deliverable_assembly_kit: "1.0.0"; pdf_lib_assembly: "browser-local-v1"; integrity_manifest: "utilito.file-integrity.v1"; }; }; error: null | { code: "INVALID_INPUT" | "RAW_PDF_INPUT_FORBIDDEN" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_LIMITS" | "INVALID_SOURCES" | "DUPLICATE_SOURCE_ID" | "INVALID_ASSEMBLY_PLAN" | "EMPTY_OUTPUT" | "INVALID_METADATA_POLICY" | "INVALID_OUTPUT_FILENAME" | "LOCAL_FILES_REQUIRED" | "UNSUPPORTED_PDF" | "PASSWORD_PROTECTED_PDF" | "MALFORMED_PDF" | "SOURCE_METADATA_MISMATCH" | "INVALID_BROWSER_RECEIPT" | "OUTPUT_BYTES_EXCEEDED" | "BROWSER_ASSEMBLY_FAILED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "pdf-deliverable-assembly-kit"; version: "1.0.0"; }; result: { status: "metadata_plan_only"; generated: false; output_filename: string; collision_policy: "sanitized-output-name-with-distinct-metadata-artifact-suffixes"; sources: Array<{ id: string; name: string; mime: "application/pdf"; bytes: number; page_count: number; }>; pages: Array<{ source_id: string; source_page: number; rotation: 0 | 90 | 180 | 270; label: null | string; }>; limits: { max_source_files: number; max_source_bytes: number; max_total_source_bytes: number; max_source_pages: number; max_output_pages: number; max_output_bytes: number; }; page_source_map: Array<{ output_page: number; source_id: string; source_page: number; rotation: 0 | 90 | 180 | 270; label: null | string; }>; operation_receipt: { combined_sources: number; selected_pages: number; removed_source_pages: number; reordered: boolean; rotated_pages: number; labeled_pages: number; label_behavior: "embedded_as_unicode_pdf_page_label_prefix"; }; metadata_summary: { policy: "preserve" | "remove" | "replace"; title: null | string; title_behavior: string; author_behavior: string; subject_behavior: string; keywords_behavior: string; creator_behavior: string; producer_behavior: string; creation_date_behavior: string; modification_date_behavior: string; }; integrity_manifest: null; sha256: null; output_bytes: null; claims: { browser_local_files_required: true; pdf_generated: false; output_reopened: false; digest_computed: false; network_used: false; storage_used: false; pipeline_executed: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; source_files: number; source_pages: number; output_pages: number; generated_bytes: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { pdf_deliverable_assembly_kit: "1.0.0"; pdf_lib_assembly: "browser-local-v1"; integrity_manifest: "utilito.file-integrity.v1"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "pdf-deliverable-assembly-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; source_files: number; source_pages: number; output_pages: number; generated_bytes: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { pdf_deliverable_assembly_kit: "1.0.0"; pdf_lib_assembly: "browser-local-v1"; integrity_manifest: "utilito.file-integrity.v1"; }; }; error: { code: "INVALID_INPUT" | "RAW_PDF_INPUT_FORBIDDEN" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_LIMITS" | "INVALID_SOURCES" | "DUPLICATE_SOURCE_ID" | "INVALID_ASSEMBLY_PLAN" | "EMPTY_OUTPUT" | "INVALID_METADATA_POLICY" | "INVALID_OUTPUT_FILENAME" | "LOCAL_FILES_REQUIRED" | "UNSUPPORTED_PDF" | "PASSWORD_PROTECTED_PDF" | "MALFORMED_PDF" | "SOURCE_METADATA_MISMATCH" | "INVALID_BROWSER_RECEIPT" | "OUTPUT_BYTES_EXCEEDED" | "BROWSER_ASSEMBLY_FAILED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type percentage_calculatorInput = { mode?: string; value?: number; percent?: number; total?: number; [key: string]: unknown; }; export type percentage_calculatorOutput = { [key: string]: unknown; }; export type policy_decision_tableInput = { dimensions: Array<{ name: string; type: "string" | "boolean" | "integer" | "number"; domain?: Array; }>; rules: Array<{ id: string; priority: number; conditions: Array<{ dimension: string; operator: "equals" | "not_equals" | "gt" | "gte" | "lt" | "lte" | "regex"; value: null | string | number | boolean; } | { dimension: string; operator: "in"; values: Array; }>; outcome: null | string | number | boolean; }>; tie_policy: "id_order"; default_outcome: null | string | number | boolean; test_cases: Array<{ id: string; input: { [key: string]: null | string | number | boolean; }; expected_outcome: null | string | number | boolean; }>; policy: { coverage: "require_determinate" | "allow_indeterminate"; max_rules: number; max_conditions: number; max_combinations: number; max_test_cases: number; }; }; export type policy_decision_tableOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type policy_decision_tableOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: policy_decision_tableOutput_nx25_json_0; }; export type policy_decision_tableOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: policy_decision_tableOutput_nx25_json_1; }; export type policy_decision_tableOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: policy_decision_tableOutput_nx25_json_2; }; export type policy_decision_tableOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: policy_decision_tableOutput_nx25_json_3; }; export type policy_decision_tableOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: policy_decision_tableOutput_nx25_json_4; }; export type policy_decision_tableOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: policy_decision_tableOutput_nx25_json_5; }; export type policy_decision_tableOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type policy_decision_tableOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: policy_decision_tableOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: policy_decision_tableOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type policy_decision_tableOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: policy_decision_tableOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: policy_decision_tableOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type policy_decision_tableOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: policy_decision_tableOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: policy_decision_tableOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type policy_decision_tableOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: policy_decision_tableOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: policy_decision_tableOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type policy_decision_tableOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: policy_decision_tableOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: policy_decision_tableOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type policy_decision_tableOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: policy_decision_tableOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: policy_decision_tableOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type policy_decision_tableOutput = ({ ok: boolean; schema_version: "utilito.policy-decision-table.v1"; version: "1.0.0"; result: null | { canonical_table: { dimensions: Array<{ name: string; type: "string" | "boolean" | "integer" | "number"; domain?: Array; }>; rules: Array<{ id: string; priority: number; conditions: Array<{ dimension: string; operator: "equals" | "not_equals" | "gt" | "gte" | "lt" | "lte" | "regex"; value: null | string | number | boolean; } | { dimension: string; operator: "in"; values: Array; }>; outcome: null | string | number | boolean; }>; tie_policy: "id_order"; default_outcome: null | string | number | boolean; }; overlaps: Array<{ input: { [key: string]: null | string | number | boolean; }; rule_ids: Array; }>; unreachable_rules: Array; conflicts: []; coverage: { status: "complete" | "indeterminate"; finite_combinations: number; covered_by_rules: number; covered_by_default: number; uncovered: Array<{ [key: string]: null | string | number | boolean; }>; }; assertions: { inert: true; cases: Array<{ id: string; expected_outcome: null | string | number | boolean; }>; }; evaluated_cases: Array<{ id: string; outcome: null | string | number | boolean; matched_rule_ids: Array; assertion_passed: boolean; }>; policy_authorized: false; expressions_executed: false; }; receipt: { input_bytes: number; output_bytes: number; dimensions: number; rules: number; conditions: number; finite_combinations: number; test_cases: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_POLICY_RULE" | "UNSUPPORTED_POLICY_OPERATOR" | "CONFLICTING_POLICY_OUTCOME" | "POLICY_COVERAGE_INDETERMINATE" | "POLICY_TABLE_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.policy-decision-table.v1"; version: "1.0.0"; result: { canonical_table: { dimensions: Array<{ name: string; type: "string" | "boolean" | "integer" | "number"; domain?: Array; }>; rules: Array<{ id: string; priority: number; conditions: Array<{ dimension: string; operator: "equals" | "not_equals" | "gt" | "gte" | "lt" | "lte" | "regex"; value: null | string | number | boolean; } | { dimension: string; operator: "in"; values: Array; }>; outcome: null | string | number | boolean; }>; tie_policy: "id_order"; default_outcome: null | string | number | boolean; }; overlaps: Array<{ input: { [key: string]: null | string | number | boolean; }; rule_ids: Array; }>; unreachable_rules: Array; conflicts: []; coverage: { status: "complete" | "indeterminate"; finite_combinations: number; covered_by_rules: number; covered_by_default: number; uncovered: Array<{ [key: string]: null | string | number | boolean; }>; }; assertions: { inert: true; cases: Array<{ id: string; expected_outcome: null | string | number | boolean; }>; }; evaluated_cases: Array<{ id: string; outcome: null | string | number | boolean; matched_rule_ids: Array; assertion_passed: boolean; }>; policy_authorized: false; expressions_executed: false; }; receipt: { input_bytes: number; output_bytes: number; dimensions: number; rules: number; conditions: number; finite_combinations: number; test_cases: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.policy-decision-table.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_POLICY_RULE" | "UNSUPPORTED_POLICY_OPERATOR" | "CONFLICTING_POLICY_OUTCOME" | "POLICY_COVERAGE_INDETERMINATE" | "POLICY_TABLE_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type product_contract_review_kitInput_pcr_json_0 = null | boolean | number | string | [] | { }; export type product_contract_review_kitInput_pcr_json_1 = null | boolean | number | string | Array | { [key: string]: product_contract_review_kitInput_pcr_json_0; }; export type product_contract_review_kitInput_pcr_json_2 = null | boolean | number | string | Array | { [key: string]: product_contract_review_kitInput_pcr_json_1; }; export type product_contract_review_kitInput_pcr_json_3 = null | boolean | number | string | Array | { [key: string]: product_contract_review_kitInput_pcr_json_2; }; export type product_contract_review_kitInput_pcr_json_4 = null | boolean | number | string | Array | { [key: string]: product_contract_review_kitInput_pcr_json_3; }; export type product_contract_review_kitInput_pcr_json_5 = null | boolean | number | string | Array | { [key: string]: product_contract_review_kitInput_pcr_json_4; }; export type product_contract_review_kitInput_pcr_schema_0 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { }; required: []; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_1 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_0; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_0; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_2 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_1; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_1; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_3 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_2; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_2; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_4 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_3; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_3; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_5 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_4; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_4; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_6 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_5; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_5; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_7 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_6; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_6; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput_pcr_schema_8 = { type: "string"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "number"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "integer"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "boolean"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "null"; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "object"; properties: { [key: string]: product_contract_review_kitInput_pcr_schema_7; }; required: Array; additionalProperties: false; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; } | { type: "array"; items: product_contract_review_kitInput_pcr_schema_7; enum?: Array; const?: product_contract_review_kitInput_pcr_json_5; title?: string; description?: string; default?: product_contract_review_kitInput_pcr_json_5; }; export type product_contract_review_kitInput = { product: { id: string; version: string; name: string; }; schemas: { input: product_contract_review_kitInput_pcr_schema_8; output: product_contract_review_kitInput_pcr_schema_8; }; samples: Array<{ id: string; class: "success"; input: product_contract_review_kitInput_pcr_json_5; output: product_contract_review_kitInput_pcr_json_5; } | { id: string; class: "failure"; input: product_contract_review_kitInput_pcr_json_5; failure: { code: string; boundary: "schema_validation"; }; }>; limits: { max_request_bytes: number; max_response_bytes: number; max_output_bytes: number; receipt_bytes: "utf8_json_exact"; }; typed_failures: Array; declarations: { deterministic: true; model_used: false; network_used: boolean; storage_used: boolean; telemetry_used: boolean; submitted_code_executed: false; pipeline_supported: false; retention: "response_only"; provenance: "caller_submitted_unverified"; certification: false; required_target_url?: boolean; persistence_declared?: boolean; }; api: { tool_id: string; version: string; input_schema: product_contract_review_kitInput_pcr_schema_8; output_schema: product_contract_review_kitInput_pcr_schema_8; typed_failures: Array; max_request_bytes: number; max_response_bytes: number; pipeline_supported: boolean; }; mcp: { tool_name: string; version: string; input_schema: product_contract_review_kitInput_pcr_schema_8; output_schema: product_contract_review_kitInput_pcr_schema_8; typed_failures: Array; max_request_bytes: number; max_response_bytes: number; pipeline_supported: boolean; }; policy: { schema_mismatch: "block"; sample_mismatch: "block"; metadata_mismatch: "block"; missing_evidence: "unknown"; }; }; export type product_contract_review_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "product-contract-review-kit"; version: "1.0.0"; }; result: null | { decision: "pass" | "block" | "unknown"; status: "review_complete" | "blocked" | "unknown"; certified: false; release_approved: false; schema_subset: "finite closed bounded Utilito contract subset v1"; samples: Array<{ id: string; class: "success" | "failure"; actual: "accepted" | "typed_error" | "schema_mismatch" | "undeclared_typed_error"; expected: "accepted" | "typed_error"; passed: boolean; }>; metadata: Array<{ surface: "api" | "mcp"; check: "IDENTITY" | "SCHEMA" | "TYPED_FAILURES" | "LIMIT" | "PIPELINE"; status: "pass" | "block"; }>; findings: Array<{ code: string; severity: "block"; domain: string; message: string; }>; missing_boundaries: Array<{ code: string; status: "unknown"; }>; machine_review_pack: { schema_version: "utilito.product-contract-review-pack.v1"; product: { id: string; version: string; }; decision: "pass" | "block" | "unknown"; findings: Array<{ code: string; severity: "block"; domain: string; message: string; }>; samples: Array<{ id: string; class: "success" | "failure"; actual: "accepted" | "typed_error" | "schema_mismatch" | "undeclared_typed_error"; expected: "accepted" | "typed_error"; passed: boolean; }>; metadata: Array<{ surface: "api" | "mcp"; check: "IDENTITY" | "SCHEMA" | "TYPED_FAILURES" | "LIMIT" | "PIPELINE"; status: "pass" | "block"; }>; missing_boundaries: Array<{ code: string; status: "unknown"; }>; provenance: { deterministic: true; network_used: false; storage_used: false; caller_evidence_verified: false; }; }; report: { format: "markdown"; mime_type: "text/markdown"; contains_sensitive_input: false; content: string; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; findings: number; unknowns: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; submitted_artifacts_only: true; submitted_code_executed: false; registered_tools_invoked: false; core_versions: { product_contract_review_kit: "1.0.0"; contract_matrix: "1.0.0"; product_review_pack: "reused-contract"; product_review_report: "reused-contract"; deterministic_review_pack: "reused-contract"; deterministic_review_report: "reused-contract"; developer_validator: "reused-schema-contract"; }; }; error: null | { code: "INVALID_INPUT" | "REQUEST_TOO_LARGE" | "SENSITIVE_INPUT" | "UNSUPPORTED_SCHEMA_FEATURE" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }; export type prompt_cost_calculatorInput = { inputTokens?: number; outputTokens?: number; requests?: number; inputPricePerMillion?: number; outputPricePerMillion?: number; scenario?: string; preset?: string; [key: string]: unknown; }; export type prompt_cost_calculatorOutput = { [key: string]: unknown; }; export type prompt_regression_kitInput = { previous_template: { kind: "text"; template: string; } | { kind: "messages"; messages: Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; }>; }; current_template: { kind: "text"; template: string; } | { kind: "messages"; messages: Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; }>; }; variable_schema: { variables: Array<{ name: string; required: boolean; }>; rename_map: { [key: string]: string; }; }; fixtures: Array<{ id: string; variables: { [key: string]: string; }; }>; assumptions: { chars_per_token: number; context_window_tokens: number; reserved_output_tokens: number; other_context_tokens: number; input_price_per_million_usd: number; output_price_per_million_usd: number; requests: number; }; comparison_policy: { text_changes: "review" | "block"; removed_variables: "review" | "block"; added_required_variables: "review" | "block"; missing_fixture_variables: "review" | "block"; context_overflow: "review" | "block"; }; }; export type prompt_regression_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "prompt-regression-kit"; version: "1.0.0"; }; result: null | { text_diff: { format: "line_diff"; semantic_analysis_performed: false; quality_graded: false; summary: { changedLines: number; addedLines: number; removedLines: number; originalChars: number; revisedChars: number; charDelta: number; originalWords: number; revisedWords: number; wordDelta: number; originalLines: number; revisedLines: number; lineDelta: number; }; operations: Array<{ type: "unchanged" | "added" | "removed" | "changed"; line?: string; before?: string; after?: string; leftLine?: number; rightLine?: number; }>; diff_text: string; }; variable_compatibility_matrix: Array<{ status: "unchanged" | "added" | "missing" | "renamed"; previous_name: null | string; current_name: null | string; explicit_mapping: boolean; required_current: null | boolean; }>; rendered_fixtures: Array<{ id: string; status: "rendered" | "blocked"; missing_variables: Array; unresolved_optional_variables: Array; previous_rendered_kind: "text" | "messages"; current_rendered_kind: "text" | "messages"; previous_rendered: null | string | Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; }>; current_rendered: null | string | Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; }>; }>; estimates: { label: "estimate"; method: "UTF-8 bytes are exact; tokens use submitted characters-per-token ratio; cost uses submitted prices."; chars_per_token: number; previous: { exact_utf8_bytes: number; estimated_tokens: number; }; current: { exact_utf8_bytes: number; estimated_tokens: number; }; }; context_fit: { label: "estimate"; context_window_tokens: number; previous_estimated_prompt_tokens: number; previous_estimated_total_tokens: number; previous_estimated_remaining_tokens: number; previous_fits_context: boolean; estimated_prompt_tokens: number; reserved_output_tokens: number; other_context_tokens: number; estimated_total_tokens: number; estimated_remaining_tokens: number; fits_context: boolean; fits_with_reserve: boolean; }; cost_estimate: { label: "estimate"; currency: "USD"; submitted_assumptions: true; previous_per_request_usd: number; current_per_request_usd: number; delta_per_request_usd: number; requests: number; previous_total_usd: number; current_total_usd: number; delta_total_usd: number; input_price_per_million_usd: number; output_price_per_million_usd: number; }; release_decision: { decision: "pass" | "review" | "block"; rule_ids: Array<"TEXT_CHANGED" | "REMOVED_VARIABLE" | "ADDED_REQUIRED_VARIABLE" | "FIXTURE_MISSING_REQUIRED_VARIABLE" | "CONTEXT_OVERFLOW_ESTIMATE">; semantic_judgment_used: false; }; regression_report: { format: "markdown"; content: string; }; artifact_manifest: Array<{ name: "text_diff" | "variable_matrix" | "rendered_fixtures" | "estimates" | "context_fit" | "regression_report"; media_type: "text/plain" | "application/json" | "text/markdown"; bytes: number; }>; safety: { literal_substitution_only: true; model_used: false; provider_called: false; network_used: false; storage_used: false; telemetry_used: false; semantic_equivalence_assessed: false; quality_graded: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"TEXT_CHANGED" | "REMOVED_VARIABLE" | "ADDED_REQUIRED_VARIABLE" | "FIXTURE_MISSING_REQUIRED_VARIABLE" | "CONTEXT_OVERFLOW_ESTIMATE">; templates: number; fixtures_submitted: number; fixtures_rendered: number; fixtures_blocked: number; variables_previous: number; variables_current: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { prompt_regression_kit: "1.0.0"; prompt_diff: "prompt-diff-core"; prompt_sizing: "explicit-ratio-adapter-v1"; context_fit: "explicit-assumptions-adapter-v1"; }; }; error: null | { code: "INVALID_INPUT" | "EMPTY_TEMPLATE" | "INVALID_VARIABLE_SCHEMA" | "MISSING_VARIABLE" | "UNEXPECTED_VARIABLE" | "INVALID_RENAME_MAP" | "FIXTURE_RENDER_FAILED" | "INVALID_ASSUMPTION" | "INPUT_LIMIT_EXCEEDED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "prompt-regression-kit"; version: "1.0.0"; }; result: { text_diff: { format: "line_diff"; semantic_analysis_performed: false; quality_graded: false; summary: { changedLines: number; addedLines: number; removedLines: number; originalChars: number; revisedChars: number; charDelta: number; originalWords: number; revisedWords: number; wordDelta: number; originalLines: number; revisedLines: number; lineDelta: number; }; operations: Array<{ type: "unchanged" | "added" | "removed" | "changed"; line?: string; before?: string; after?: string; leftLine?: number; rightLine?: number; }>; diff_text: string; }; variable_compatibility_matrix: Array<{ status: "unchanged" | "added" | "missing" | "renamed"; previous_name: null | string; current_name: null | string; explicit_mapping: boolean; required_current: null | boolean; }>; rendered_fixtures: Array<{ id: string; status: "rendered" | "blocked"; missing_variables: Array; unresolved_optional_variables: Array; previous_rendered_kind: "text" | "messages"; current_rendered_kind: "text" | "messages"; previous_rendered: null | string | Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; }>; current_rendered: null | string | Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; }>; }>; estimates: { label: "estimate"; method: "UTF-8 bytes are exact; tokens use submitted characters-per-token ratio; cost uses submitted prices."; chars_per_token: number; previous: { exact_utf8_bytes: number; estimated_tokens: number; }; current: { exact_utf8_bytes: number; estimated_tokens: number; }; }; context_fit: { label: "estimate"; context_window_tokens: number; previous_estimated_prompt_tokens: number; previous_estimated_total_tokens: number; previous_estimated_remaining_tokens: number; previous_fits_context: boolean; estimated_prompt_tokens: number; reserved_output_tokens: number; other_context_tokens: number; estimated_total_tokens: number; estimated_remaining_tokens: number; fits_context: boolean; fits_with_reserve: boolean; }; cost_estimate: { label: "estimate"; currency: "USD"; submitted_assumptions: true; previous_per_request_usd: number; current_per_request_usd: number; delta_per_request_usd: number; requests: number; previous_total_usd: number; current_total_usd: number; delta_total_usd: number; input_price_per_million_usd: number; output_price_per_million_usd: number; }; release_decision: { decision: "pass" | "review" | "block"; rule_ids: Array<"TEXT_CHANGED" | "REMOVED_VARIABLE" | "ADDED_REQUIRED_VARIABLE" | "FIXTURE_MISSING_REQUIRED_VARIABLE" | "CONTEXT_OVERFLOW_ESTIMATE">; semantic_judgment_used: false; }; regression_report: { format: "markdown"; content: string; }; artifact_manifest: Array<{ name: "text_diff" | "variable_matrix" | "rendered_fixtures" | "estimates" | "context_fit" | "regression_report"; media_type: "text/plain" | "application/json" | "text/markdown"; bytes: number; }>; safety: { literal_substitution_only: true; model_used: false; provider_called: false; network_used: false; storage_used: false; telemetry_used: false; semantic_equivalence_assessed: false; quality_graded: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"TEXT_CHANGED" | "REMOVED_VARIABLE" | "ADDED_REQUIRED_VARIABLE" | "FIXTURE_MISSING_REQUIRED_VARIABLE" | "CONTEXT_OVERFLOW_ESTIMATE">; templates: number; fixtures_submitted: number; fixtures_rendered: number; fixtures_blocked: number; variables_previous: number; variables_current: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { prompt_regression_kit: "1.0.0"; prompt_diff: "prompt-diff-core"; prompt_sizing: "explicit-ratio-adapter-v1"; context_fit: "explicit-assumptions-adapter-v1"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "prompt-regression-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"TEXT_CHANGED" | "REMOVED_VARIABLE" | "ADDED_REQUIRED_VARIABLE" | "FIXTURE_MISSING_REQUIRED_VARIABLE" | "CONTEXT_OVERFLOW_ESTIMATE">; templates: number; fixtures_submitted: number; fixtures_rendered: number; fixtures_blocked: number; variables_previous: number; variables_current: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { prompt_regression_kit: "1.0.0"; prompt_diff: "prompt-diff-core"; prompt_sizing: "explicit-ratio-adapter-v1"; context_fit: "explicit-assumptions-adapter-v1"; }; }; error: { code: "INVALID_INPUT" | "EMPTY_TEMPLATE" | "INVALID_VARIABLE_SCHEMA" | "MISSING_VARIABLE" | "UNEXPECTED_VARIABLE" | "INVALID_RENAME_MAP" | "FIXTURE_RENDER_FAILED" | "INVALID_ASSUMPTION" | "INPUT_LIMIT_EXCEEDED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type prompt_template_schema_builderInput = { task?: string; input?: string; schema?: string; examples?: string; rules?: string; [key: string]: unknown; }; export type prompt_template_schema_builderOutput = { [key: string]: unknown; }; export type provider_message_migration_kitInput = ({ source_provider: "openai" | "anthropic" | "gemini" | "utilito"; target_provider: "openai" | "anthropic" | "gemini" | "utilito"; messages: unknown; tools: unknown; unsupported_field_policy: "diagnose" | "reject"; }) & ({ source_provider: "openai"; target_provider: "openai" | "anthropic" | "gemini" | "utilito"; messages: Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; tool_calls?: Array<{ id: string; type: "function"; function: { name: string; arguments: string; }; }>; tool_call_id?: string; name?: string; }>; tools: Array<{ type: "function"; function: { name: string; description?: string; parameters: { [key: string]: unknown; }; }; }>; unsupported_field_policy: "diagnose" | "reject"; } | { source_provider: "anthropic"; target_provider: "openai" | "anthropic" | "gemini" | "utilito"; messages: Array<{ role: "system" | "user" | "assistant"; content: string | Array<{ type: "text"; text: string; } | { type: "tool_use"; id: string; name: string; input: { [key: string]: unknown; }; } | { type: "tool_result"; tool_use_id: string; content: string; }>; }>; tools: Array<{ name: string; description?: string; input_schema: { [key: string]: unknown; }; }>; unsupported_field_policy: "diagnose" | "reject"; } | { source_provider: "gemini"; target_provider: "openai" | "anthropic" | "gemini" | "utilito"; messages: Array<{ role: "user" | "model"; parts: Array<{ text: string; } | { functionCall: { name: string; args: { [key: string]: unknown; }; }; } | { functionResponse: { name: string; response: { [key: string]: unknown; }; }; }>; }>; tools: Array<{ functionDeclarations: Array<{ name: string; description?: string; parameters: { [key: string]: unknown; }; }>; }>; unsupported_field_policy: "diagnose" | "reject"; } | { source_provider: "utilito"; target_provider: "openai" | "anthropic" | "gemini" | "utilito"; messages: Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; tool_calls?: Array<{ id: string; name: string; arguments: string | { [key: string]: unknown; }; }>; tool_call_id?: string; }>; tools: Array<{ name: string; description?: string; parameters: { [key: string]: unknown; }; }>; unsupported_field_policy: "diagnose" | "reject"; }); export type provider_message_migration_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "provider-message-migration-kit"; version: "1.0.0"; }; result: null | { source_provider: "openai" | "anthropic" | "gemini" | "utilito"; target_provider: "openai" | "anthropic" | "gemini" | "utilito"; unsupported_field_policy: "diagnose" | "reject"; converted_payload: { [key: string]: unknown; }; unsupported_diagnostics: Array<{ code: string; path: string; message: string; disposition: "preserved" | "remapped" | "omitted"; source_id?: null | string; target_id?: null | string; }>; role_tool_call_mapping: Array<{ source_index: number; source_role: string; canonical_role: string; target_role: string; tool_calls: Array<{ source_id: null | string; target_id: null | string; status: "preserved" | "remapped"; }>; }>; canonical_intermediate: { schema_version: "utilito.provider-message.v1"; source_provider: "openai" | "anthropic" | "gemini" | "utilito"; messages: Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; tool_calls: Array<{ id: string; name: string; arguments: { [key: string]: unknown; }; arguments_json: string; source_call_index: number; source_id?: null | string; }>; tool_call_id?: string; tool_name?: string; }>; tools: Array<{ name: string; description?: string; parameters: { [key: string]: unknown; }; }>; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array; messages: number; tools: number; diagnostics: number; tool_call_ids_preserved: number; tool_call_ids_remapped: number; values_invented: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { provider_message_migration_kit: "1.0.0"; message_json: "message-json-core"; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "UNKNOWN_PROVIDER" | "CREDENTIAL_FIELD_REJECTED" | "MESSAGE_COUNT" | "TOOL_COUNT" | "INVALID_MESSAGE" | "INVALID_TOOL_DEFINITION" | "INVALID_TOOL_ARGUMENTS" | "UNRESOLVED_TOOL_CALL" | "DUPLICATE_TOOL_CALL_ID" | "UNSUPPORTED_FIELDS" | "OUTPUT_TOO_LARGE"; message: string; hint: string; path?: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "provider-message-migration-kit"; version: "1.0.0"; }; result: { source_provider: "openai" | "anthropic" | "gemini" | "utilito"; target_provider: "openai" | "anthropic" | "gemini" | "utilito"; unsupported_field_policy: "diagnose" | "reject"; converted_payload: { [key: string]: unknown; }; unsupported_diagnostics: Array<{ code: string; path: string; message: string; disposition: "preserved" | "remapped" | "omitted"; source_id?: null | string; target_id?: null | string; }>; role_tool_call_mapping: Array<{ source_index: number; source_role: string; canonical_role: string; target_role: string; tool_calls: Array<{ source_id: null | string; target_id: null | string; status: "preserved" | "remapped"; }>; }>; canonical_intermediate: { schema_version: "utilito.provider-message.v1"; source_provider: "openai" | "anthropic" | "gemini" | "utilito"; messages: Array<{ role: "system" | "developer" | "user" | "assistant" | "tool"; content: string; tool_calls: Array<{ id: string; name: string; arguments: { [key: string]: unknown; }; arguments_json: string; source_call_index: number; source_id?: null | string; }>; tool_call_id?: string; tool_name?: string; }>; tools: Array<{ name: string; description?: string; parameters: { [key: string]: unknown; }; }>; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array; messages: number; tools: number; diagnostics: number; tool_call_ids_preserved: number; tool_call_ids_remapped: number; values_invented: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { provider_message_migration_kit: "1.0.0"; message_json: "message-json-core"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "provider-message-migration-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array; messages: number; tools: number; diagnostics: number; tool_call_ids_preserved: number; tool_call_ids_remapped: number; values_invented: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { provider_message_migration_kit: "1.0.0"; message_json: "message-json-core"; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "UNKNOWN_PROVIDER" | "CREDENTIAL_FIELD_REJECTED" | "MESSAGE_COUNT" | "TOOL_COUNT" | "INVALID_MESSAGE" | "INVALID_TOOL_DEFINITION" | "INVALID_TOOL_ARGUMENTS" | "UNRESOLVED_TOOL_CALL" | "DUPLICATE_TOOL_CALL_ID" | "UNSUPPORTED_FIELDS" | "OUTPUT_TOO_LARGE"; message: string; hint: string; path?: string; }; }); export type provider_request_envelopeInput_nx_json_0 = null | boolean | number | string | [] | { }; export type provider_request_envelopeInput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_0; }; export type provider_request_envelopeInput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_1; }; export type provider_request_envelopeInput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_2; }; export type provider_request_envelopeInput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_3; }; export type provider_request_envelopeInput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_4; }; export type provider_request_envelopeInput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_5; }; export type provider_request_envelopeInput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_6; }; export type provider_request_envelopeInput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_7; }; export type provider_request_envelopeInput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_8; }; export type provider_request_envelopeInput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_9; }; export type provider_request_envelopeInput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_10; }; export type provider_request_envelopeInput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_json_11; }; export type provider_request_envelopeInput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type provider_request_envelopeInput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_0; }; export type provider_request_envelopeInput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_1; }; export type provider_request_envelopeInput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_2; }; export type provider_request_envelopeInput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_3; }; export type provider_request_envelopeInput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_4; }; export type provider_request_envelopeInput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_5; }; export type provider_request_envelopeInput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_6; }; export type provider_request_envelopeInput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_7; }; export type provider_request_envelopeInput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_8; }; export type provider_request_envelopeInput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_9; }; export type provider_request_envelopeInput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_10; }; export type provider_request_envelopeInput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeInput_nx_safe_json_11; }; export type provider_request_envelopeInput_provider_schema_node_4 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeInput_provider_schema_node_5; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_6; }; required: Array; }; export type provider_request_envelopeInput_provider_schema_node_5 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeInput_provider_schema_node_6; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_7; }; required: Array; }; export type provider_request_envelopeInput_provider_schema_node_6 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeInput_provider_schema_node_7; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_8; }; required: Array; }; export type provider_request_envelopeInput_provider_schema_node_7 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeInput_provider_schema_node_8; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_9; }; required: Array; }; export type provider_request_envelopeInput_provider_schema_node_8 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeInput_provider_schema_node_9; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_10; }; required: Array; }; export type provider_request_envelopeInput_provider_schema_node_9 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeInput_provider_schema_node_10; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_11; }; required: Array; }; export type provider_request_envelopeInput_provider_schema_node_10 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeInput_provider_schema_node_11; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_12; }; required: Array; }; export type provider_request_envelopeInput_provider_schema_node_11 = { type: "string"; } | { type: "number"; } | { type: "integer"; } | { type: "boolean"; } | { type: "null"; } | { type: "object"; additionalProperties: false; properties: { }; required: []; }; export type provider_request_envelopeInput = { target_provider: "openai" | "anthropic" | "gemini" | "cohere"; canonical_request: { messages: Array<{ role: "system" | "user" | "assistant"; content: string; }>; tools: Array<{ name: string; description: string; input_schema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_6; }; required: Array; }; }>; tool_choice: "auto" | "none" | "required"; output_schema?: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeInput_provider_schema_node_4; }; required: Array; }; }; request_policy: { model: ""; max_output_tokens: number; timeout_ms: number; retry_policy: { mode: "none"; max_attempts: 1; }; credential_mode: "placeholder"; max_request_bytes: number; }; }; export type provider_request_envelopeOutput_nx_json_0 = null | boolean | number | string | [] | { }; export type provider_request_envelopeOutput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_0; }; export type provider_request_envelopeOutput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_1; }; export type provider_request_envelopeOutput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_2; }; export type provider_request_envelopeOutput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_3; }; export type provider_request_envelopeOutput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_4; }; export type provider_request_envelopeOutput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_5; }; export type provider_request_envelopeOutput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_6; }; export type provider_request_envelopeOutput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_7; }; export type provider_request_envelopeOutput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_8; }; export type provider_request_envelopeOutput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_9; }; export type provider_request_envelopeOutput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_10; }; export type provider_request_envelopeOutput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_json_11; }; export type provider_request_envelopeOutput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type provider_request_envelopeOutput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_0; }; export type provider_request_envelopeOutput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_1; }; export type provider_request_envelopeOutput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_2; }; export type provider_request_envelopeOutput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_3; }; export type provider_request_envelopeOutput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_4; }; export type provider_request_envelopeOutput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_5; }; export type provider_request_envelopeOutput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_6; }; export type provider_request_envelopeOutput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_7; }; export type provider_request_envelopeOutput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_8; }; export type provider_request_envelopeOutput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_9; }; export type provider_request_envelopeOutput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_10; }; export type provider_request_envelopeOutput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: provider_request_envelopeOutput_nx_safe_json_11; }; export type provider_request_envelopeOutput_provider_schema_node_4 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeOutput_provider_schema_node_5; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_6; }; required: Array; }; export type provider_request_envelopeOutput_provider_schema_node_5 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeOutput_provider_schema_node_6; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_7; }; required: Array; }; export type provider_request_envelopeOutput_provider_schema_node_6 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeOutput_provider_schema_node_7; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_8; }; required: Array; }; export type provider_request_envelopeOutput_provider_schema_node_7 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeOutput_provider_schema_node_8; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_9; }; required: Array; }; export type provider_request_envelopeOutput_provider_schema_node_8 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeOutput_provider_schema_node_9; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_10; }; required: Array; }; export type provider_request_envelopeOutput_provider_schema_node_9 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeOutput_provider_schema_node_10; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_11; }; required: Array; }; export type provider_request_envelopeOutput_provider_schema_node_10 = { type: "string"; enum?: Array; } | { type: "number"; enum?: Array; } | { type: "integer"; enum?: Array; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; } | { type: "array"; items: provider_request_envelopeOutput_provider_schema_node_11; } | { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_12; }; required: Array; }; export type provider_request_envelopeOutput_provider_schema_node_11 = { type: "string"; } | { type: "number"; } | { type: "integer"; } | { type: "boolean"; } | { type: "null"; } | { type: "object"; additionalProperties: false; properties: { }; required: []; }; export type provider_request_envelopeOutput = ({ ok: boolean; schema_version: "utilito.provider-request-envelope.v1"; version: "1.0.0"; result: null | { target_provider: "openai" | "anthropic" | "gemini"; envelope: { model: ""; input: Array<{ role: "system" | "user" | "assistant"; content: string; }>; max_output_tokens: number; tools?: Array<{ type: "function"; name: string; description: string; parameters: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; strict: true; }>; tool_choice?: "auto" | "none" | "required"; text?: { format: { type: "json_schema"; name: "utilito_response"; schema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; strict: true; }; }; } | { model: ""; max_tokens: number; messages: Array<{ role: "system" | "user" | "assistant"; content: string; }>; system?: string; tools?: Array<{ name: string; description: string; input_schema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; strict: true; }>; tool_choice?: { type: "auto" | "none" | "any"; }; output_config?: { format: { type: "json_schema"; schema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; }; }; } | { contents: Array<{ role: "user" | "model"; parts: Array<{ text: string; }>; }>; systemInstruction?: { parts: Array<{ text: string; }>; }; generationConfig: { maxOutputTokens: number; responseMimeType?: "application/json"; responseJsonSchema?: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; }; tools?: Array<{ functionDeclarations: Array<{ name: string; description: string; parametersJsonSchema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; }>; }>; toolConfig?: { functionCallingConfig: { mode: "AUTO" | "NONE" | "ANY"; }; }; }; preserved_fields: Array<"messages" | "tools" | "tool_choice" | "output_schema" | "model" | "max_output_tokens" | "timeout_ms" | "retry_policy" | "credential_mode">; lost_fields: Array; request_bytes: number; token_estimate_upper_bound: number; tool_sequence_checks: { valid: true; executed: false; }; transport_facts: { model: ""; max_output_tokens: number; timeout_ms: number; retry_policy: { mode: "none"; max_attempts: 1; }; credential_mode: "placeholder"; }; request_template: { endpoint: "https://api.openai.com/v1/responses" | "https://api.anthropic.com/v1/messages" | "https://generativelanguage.googleapis.com/v1beta/models/:generateContent"; credential_placeholder: ""; curl: string; typescript: string; python: string; }; provider_called: false; network_used: false; credentials_accepted: false; automatic_retry: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; request_bytes: number; messages: number; tools: number; estimated_tokens: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_PROVIDER_FEATURE" | "INVALID_MESSAGE_SEQUENCE" | "CONTEXT_BUDGET_EXCEEDED" | "CREDENTIAL_VALUE_REJECTED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.provider-request-envelope.v1"; version: "1.0.0"; result: { target_provider: "openai" | "anthropic" | "gemini"; envelope: { model: ""; input: Array<{ role: "system" | "user" | "assistant"; content: string; }>; max_output_tokens: number; tools?: Array<{ type: "function"; name: string; description: string; parameters: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; strict: true; }>; tool_choice?: "auto" | "none" | "required"; text?: { format: { type: "json_schema"; name: "utilito_response"; schema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; strict: true; }; }; } | { model: ""; max_tokens: number; messages: Array<{ role: "system" | "user" | "assistant"; content: string; }>; system?: string; tools?: Array<{ name: string; description: string; input_schema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; strict: true; }>; tool_choice?: { type: "auto" | "none" | "any"; }; output_config?: { format: { type: "json_schema"; schema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; }; }; } | { contents: Array<{ role: "user" | "model"; parts: Array<{ text: string; }>; }>; systemInstruction?: { parts: Array<{ text: string; }>; }; generationConfig: { maxOutputTokens: number; responseMimeType?: "application/json"; responseJsonSchema?: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; }; tools?: Array<{ functionDeclarations: Array<{ name: string; description: string; parametersJsonSchema: { type: "object"; additionalProperties: false; properties: { [key: string]: provider_request_envelopeOutput_provider_schema_node_4; }; required: Array; }; }>; }>; toolConfig?: { functionCallingConfig: { mode: "AUTO" | "NONE" | "ANY"; }; }; }; preserved_fields: Array<"messages" | "tools" | "tool_choice" | "output_schema" | "model" | "max_output_tokens" | "timeout_ms" | "retry_policy" | "credential_mode">; lost_fields: Array; request_bytes: number; token_estimate_upper_bound: number; tool_sequence_checks: { valid: true; executed: false; }; transport_facts: { model: ""; max_output_tokens: number; timeout_ms: number; retry_policy: { mode: "none"; max_attempts: 1; }; credential_mode: "placeholder"; }; request_template: { endpoint: "https://api.openai.com/v1/responses" | "https://api.anthropic.com/v1/messages" | "https://generativelanguage.googleapis.com/v1beta/models/:generateContent"; credential_placeholder: ""; curl: string; typescript: string; python: string; }; provider_called: false; network_used: false; credentials_accepted: false; automatic_retry: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; request_bytes: number; messages: number; tools: number; estimated_tokens: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.provider-request-envelope.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_PROVIDER_FEATURE" | "INVALID_MESSAGE_SEQUENCE" | "CONTEXT_BUDGET_EXCEEDED" | "CREDENTIAL_VALUE_REJECTED"; message: string; hint: string; }; }); export type rag_evidence_preparation_kitInput = { records: Array<{ [key: string]: unknown; }>; field_mapping: { source_id: string; quote: string; score?: string; url?: string; title?: string; }; options: { ordering: "input" | "submitted_score_desc"; dedupe_policy: "keep" | "remove" | "error"; max_quote_bytes: number; context_budget_bytes: number; report_format: "markdown" | "html"; report_mode: "metadata" | "excerpt"; }; }; export type rag_evidence_preparation_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "rag-evidence-preparation-kit"; version: "1.0.0"; }; result: null | { status: "review_required"; evidence: Array<{ id: string; source_id: string; quote: string; submitted_score?: number; url?: string; title?: string; }>; ordering: { policy: "input" | "submitted_score_desc"; score_meaning: "caller_submitted_not_reranked_or_verified" | "not_used_input_order_preserved"; }; dedupe: { policy: "keep" | "remove" | "error"; identity: string; duplicate_occurrences: number; removed: number; retained: number; }; coverage: { input_evidence_count: number; valid_evidence_count: number; ordered_evidence_count: number; retained_evidence_count: number; omitted_evidence_count: number; duplicate_omitted_count: number; context_budget_omitted_count: number; input_quote_bytes: number; retained_quote_bytes: number; omitted_quote_bytes: number; quote_byte_coverage: { numerator: number; denominator: number; }; }; omissions: Array<{ input_index: number; evidence_id?: string; reason: "exact_duplicate" | "context_budget"; duplicate_of_input_index?: number; }>; context_pack: null | { ok: true; schema_version: "utilito.context-pack.v1"; recipe: { id: "rag-evidence-pack"; version: "1.0.0"; }; format: "evidence"; output: string; evidence: Array<{ id: string; source_id: string; quote: string; submitted_score?: number; url?: string; title?: string; }>; receipt: { input_bytes: number; output_bytes: number; evidence_bytes: number; bounded_payload_bytes: number; estimated_tokens_before: number; estimated_tokens_after: number; max_payload_bytes: number; max_output_bytes: number; max_quote_bytes: number; max_input_records: 10000; input_records: number; output_records: number; omitted_records: number; omitted_fields: 0; deduplicated: 0; truncated: boolean; quote_truncations: 0; field_mapping: { id: "id"; source_id: "source_id"; quote: "quote"; score?: "submitted_score"; url?: "url"; title?: "title"; }; warnings: Array; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core: "utilito-context-pack"; core_version: "1.0.0"; }; error: null; }; context_summary: null | { schema_version: "utilito.rag-evidence-context-summary.v1"; evidence_count: number; retained_evidence_count: number; context_budget_bytes: number; raw_evidence_included: false; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; contains_raw_evidence: boolean; warning: string; content: string; }; safe_actions: Array<{ code: "REVIEW_EVIDENCE_ORDER" | "REVIEW_OMISSIONS" | "REMOVE_OR_REVIEW_DUPLICATES" | "REDACT_BEFORE_SHARING" | "KEEP_RETRIEVAL_SOURCE" | "INCREASE_CONTEXT_BUDGET"; message: string; automatic: false; }>; semantic_relevance_inferred: false; reranked: false; summarized: false; fetched: false; embedded: false; submitted_content_executed: false; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array; input_records: number; retained_records: number; duplicate_occurrences: number; duplicates_removed?: number; duplicates_retained?: number; context_budget_omissions: number; input_quote_bytes?: number; retained_quote_bytes?: number; omitted_quote_bytes?: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { rag_evidence_preparation_kit: "1.0.0"; context_pack: "1.0.0"; evidence_report: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "EMPTY_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_RECORDS" | "UNSUPPORTED_RECORD_SHAPE" | "INVALID_FIELD_MAPPING" | "DANGEROUS_KEY" | "TOO_MANY_RECORDS" | "INVALID_SCORE" | "DUPLICATE_EVIDENCE" | "QUOTE_TOO_LARGE" | "BUDGET_TOO_SMALL" | "INVALID_CONTEXT_PACK" | "REPORT_INPUT_TOO_LARGE" | "REPORT_OUTPUT_TOO_LARGE"; message: string; hint: string; }; }; export type random_number_generatorInput = { min?: number; max?: number; count?: number; decimals?: number; [key: string]: unknown; }; export type random_number_generatorOutput = { [key: string]: unknown; }; export type reading_time_calculatorInput = { text?: string; readingWpm?: number; speakingWpm?: number; [key: string]: unknown; }; export type reading_time_calculatorOutput = { [key: string]: unknown; }; export type regex_testerInput = { pattern?: string; flags?: string; text?: string; [key: string]: unknown; }; export type regex_testerOutput = { [key: string]: unknown; }; export type release_evidence_deltaInput = { baseline: { schema_version: string; release_id: string; findings: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; }>; }; candidate: { schema_version: string; release_id: string; findings: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; }>; }; promotion_policy: { required_domains: Array; missing_evidence: "block" | "unknown"; regressions: "block" | "review"; }; }; export type release_evidence_deltaOutput = ({ ok: boolean; schema_version: "utilito.release-evidence-delta.v1"; version: "1.0.0"; result: null | { regressions: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; baseline_status: "pass" | "block" | "unknown" | "missing"; }>; improvements: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; baseline_status: "pass" | "block" | "unknown" | "missing"; }>; unchanged: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; baseline_status: "pass" | "block" | "unknown" | "missing"; }>; unknown_findings: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; }>; missing_evidence: Array<{ id: string; domain: string; status: "unknown"; reason: "candidate_evidence_missing"; }>; promotion_decision: "promote" | "review" | "block"; review_packet: { schema_version: "utilito.release-evidence-review.v1"; baseline_release_id: string; candidate_release_id: string; decision: "promote" | "review" | "block"; }; live_deployment_verified: false; compliance_certified: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_findings: number; candidate_findings: number; regressions: number; improvements: number; missing: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_RELEASE_EVIDENCE" | "INCOMPARABLE_RELEASE_PACKS" | "PROMOTION_EVIDENCE_MISSING"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.release-evidence-delta.v1"; version: "1.0.0"; result: { regressions: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; baseline_status: "pass" | "block" | "unknown" | "missing"; }>; improvements: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; baseline_status: "pass" | "block" | "unknown" | "missing"; }>; unchanged: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; baseline_status: "pass" | "block" | "unknown" | "missing"; }>; unknown_findings: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown"; }>; missing_evidence: Array<{ id: string; domain: string; status: "unknown"; reason: "candidate_evidence_missing"; }>; promotion_decision: "promote" | "review" | "block"; review_packet: { schema_version: "utilito.release-evidence-review.v1"; baseline_release_id: string; candidate_release_id: string; decision: "promote" | "review" | "block"; }; live_deployment_verified: false; compliance_certified: false; }; receipt: { input_bytes: number; output_bytes: number; baseline_findings: number; candidate_findings: number; regressions: number; improvements: number; missing: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.release-evidence-delta.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_RELEASE_EVIDENCE" | "INCOMPARABLE_RELEASE_PACKS" | "PROMOTION_EVIDENCE_MISSING"; message: string; hint: string; }; }); export type release_evidence_kitInput = { release: { id: string; version: string; channel: string; submitted_at?: string; }; checks: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown" | "unsupported"; severity: "required" | "informational"; summary: string; evidence_refs: Array; artifact_refs: Array; }>; artifact_manifests: Array<{ ref: string; path: string; bytes: number; algorithm: "sha256"; digest: string; } | { ref: string; path: string; bytes: number; algorithm: "sha384"; digest: string; } | { ref: string; path: string; bytes: number; algorithm: "sha512"; digest: string; }>; known_limitations: Array; rollback_notes: Array; evidence_references: Array<{ id: string; kind: string; ref: string; summary: string; }>; policy: { required_domains: Array; required_check_ids: Array; report_format: "markdown" | "html"; }; }; export type release_evidence_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "release-evidence-kit"; version: "1.0.0"; }; result: null | { decision: "pass" | "block" | "unknown"; status: "review_ready" | "blocked" | "unknown"; release_matrix: { schema_version: "utilito.release-matrix.v1"; decision: "pass" | "block" | "unknown"; rows: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown" | "unsupported"; severity: "required" | "informational"; summary: string; evidence_refs: Array; artifact_refs: Array; submitted_unverified: true; synthetic_missing?: boolean; }>; summary: { pass: number; block: number; unknown: number; required: number; }; submitted_statuses_unverified: true; }; integrity_table: { schema_version: "utilito.artifact-integrity.v1"; artifacts: Array<{ ref: string; path: string; bytes: number; algorithm: "sha256"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha384"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha512"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; }>; claims: { integrity_metadata_recorded: true; digests_recomputed: false; provenance: false; signature: false; reproducibility: false; deployment_match: false; }; }; machine_packet: { schema_version: "utilito.release-packet.v1"; release: { id: string; version: string; channel: string; submitted_at?: string; }; decision: "pass" | "block" | "unknown"; release_matrix: { schema_version: "utilito.release-matrix.v1"; decision: "pass" | "block" | "unknown"; rows: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown" | "unsupported"; severity: "required" | "informational"; summary: string; evidence_refs: Array; artifact_refs: Array; submitted_unverified: true; synthetic_missing?: boolean; }>; summary: { pass: number; block: number; unknown: number; required: number; }; submitted_statuses_unverified: true; }; integrity_table: { schema_version: "utilito.artifact-integrity.v1"; artifacts: Array<{ ref: string; path: string; bytes: number; algorithm: "sha256"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha384"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha512"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; }>; claims: { integrity_metadata_recorded: true; digests_recomputed: false; provenance: false; signature: false; reproducibility: false; deployment_match: false; }; }; evidence_references: Array<{ id: string; kind: string; ref: string; summary: string; }>; known_limitations: Array; rollback_notes: Array; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; write_back: false; release_execution: false; signing: false; deployment: false; certification: false; }; }; release_report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; }; handoff_record: { schema_version: "utilito.release-handoff.v1"; release: { id: string; version: string; channel: string; submitted_at?: string; }; decision: "pass" | "block" | "unknown"; blockers: Array; unknowns: Array; artifacts: Array; evidence: Array; rollback_notes: Array; next_actions: Array; submitted_statuses_unverified: true; release_executed: false; }; limitations_receipt: { schema_version: "utilito.release-limitations-receipt.v1"; known_limitations: Array; rollback_notes_present: boolean; integrity_evidence_scope: "caller_submitted_shape_validated_not_recomputed"; no_provenance_claim: true; no_certification_claim: true; }; artifact_manifest: Array<{ name: "release_matrix" | "integrity_table" | "machine_packet" | "release_report" | "handoff_record" | "limitations_receipt"; media_type: "application/json" | "text/markdown" | "text/html"; bytes: number; }>; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; write_back: false; release_execution: false; signing: false; deployment: false; certification: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; checks: number; artifacts: number; evidence: number; matrix_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { release_evidence_kit: "1.0.0"; file_integrity_manifest: "submitted-digest-shape-v1"; evidence_report: "safe-render-v1"; handoff_record: "release-handoff-v1"; }; }; error: null | { code: "INVALID_INPUT" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_RELEASE" | "INVALID_CHECK" | "DUPLICATE_REFERENCE" | "UNRESOLVED_REFERENCE" | "INVALID_ARTIFACT" | "INVALID_POLICY" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "release-evidence-kit"; version: "1.0.0"; }; result: { decision: "pass" | "block" | "unknown"; status: "review_ready" | "blocked" | "unknown"; release_matrix: { schema_version: "utilito.release-matrix.v1"; decision: "pass" | "block" | "unknown"; rows: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown" | "unsupported"; severity: "required" | "informational"; summary: string; evidence_refs: Array; artifact_refs: Array; submitted_unverified: true; synthetic_missing?: boolean; }>; summary: { pass: number; block: number; unknown: number; required: number; }; submitted_statuses_unverified: true; }; integrity_table: { schema_version: "utilito.artifact-integrity.v1"; artifacts: Array<{ ref: string; path: string; bytes: number; algorithm: "sha256"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha384"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha512"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; }>; claims: { integrity_metadata_recorded: true; digests_recomputed: false; provenance: false; signature: false; reproducibility: false; deployment_match: false; }; }; machine_packet: { schema_version: "utilito.release-packet.v1"; release: { id: string; version: string; channel: string; submitted_at?: string; }; decision: "pass" | "block" | "unknown"; release_matrix: { schema_version: "utilito.release-matrix.v1"; decision: "pass" | "block" | "unknown"; rows: Array<{ id: string; domain: string; status: "pass" | "block" | "unknown" | "unsupported"; severity: "required" | "informational"; summary: string; evidence_refs: Array; artifact_refs: Array; submitted_unverified: true; synthetic_missing?: boolean; }>; summary: { pass: number; block: number; unknown: number; required: number; }; submitted_statuses_unverified: true; }; integrity_table: { schema_version: "utilito.artifact-integrity.v1"; artifacts: Array<{ ref: string; path: string; bytes: number; algorithm: "sha256"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha384"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; } | { ref: string; path: string; bytes: number; algorithm: "sha512"; digest: string; caller_submitted: true; recomputed: false; provenance_proven: false; }>; claims: { integrity_metadata_recorded: true; digests_recomputed: false; provenance: false; signature: false; reproducibility: false; deployment_match: false; }; }; evidence_references: Array<{ id: string; kind: string; ref: string; summary: string; }>; known_limitations: Array; rollback_notes: Array; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; write_back: false; release_execution: false; signing: false; deployment: false; certification: false; }; }; release_report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; content: string; }; handoff_record: { schema_version: "utilito.release-handoff.v1"; release: { id: string; version: string; channel: string; submitted_at?: string; }; decision: "pass" | "block" | "unknown"; blockers: Array; unknowns: Array; artifacts: Array; evidence: Array; rollback_notes: Array; next_actions: Array; submitted_statuses_unverified: true; release_executed: false; }; limitations_receipt: { schema_version: "utilito.release-limitations-receipt.v1"; known_limitations: Array; rollback_notes_present: boolean; integrity_evidence_scope: "caller_submitted_shape_validated_not_recomputed"; no_provenance_claim: true; no_certification_claim: true; }; artifact_manifest: Array<{ name: "release_matrix" | "integrity_table" | "machine_packet" | "release_report" | "handoff_record" | "limitations_receipt"; media_type: "application/json" | "text/markdown" | "text/html"; bytes: number; }>; safety: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; write_back: false; release_execution: false; signing: false; deployment: false; certification: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; checks: number; artifacts: number; evidence: number; matrix_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { release_evidence_kit: "1.0.0"; file_integrity_manifest: "submitted-digest-shape-v1"; evidence_report: "safe-render-v1"; handoff_record: "release-handoff-v1"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "release-evidence-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; checks: number; artifacts: number; evidence: number; matrix_rows: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { release_evidence_kit: "1.0.0"; file_integrity_manifest: "submitted-digest-shape-v1"; evidence_report: "safe-render-v1"; handoff_record: "release-handoff-v1"; }; }; error: { code: "INVALID_INPUT" | "CREDENTIAL_LIKE_INPUT" | "PAYLOAD_TOO_LARGE" | "INVALID_RELEASE" | "INVALID_CHECK" | "DUPLICATE_REFERENCE" | "UNRESOLVED_REFERENCE" | "INVALID_ARTIFACT" | "INVALID_POLICY" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type retirement_calculatorInput = { currentAge?: number; retirementAge?: number; currentSavings?: number; monthlyContribution?: number; [key: string]: unknown; }; export type retirement_calculatorOutput = { [key: string]: unknown; }; export type roi_calculatorInput = { initialInvestment?: number; finalValue?: number; costs?: number; [key: string]: unknown; }; export type roi_calculatorOutput = { [key: string]: unknown; }; export type sales_tax_calculatorInput = { subtotal?: number; taxRate?: number; [key: string]: unknown; }; export type sales_tax_calculatorOutput = { [key: string]: unknown; }; export type sarif_findings_reconciliationInput = { baseline: { version: "2.1.0"; runs: Array<{ run_id: string; rules: Array<{ id: string; }>; results: Array<{ rule_id: string; fingerprints: { [key: string]: string; }; locations: Array<{ artifact: string; region?: { start_line: number; start_column: number; } | { start_line: number; start_column: number; end_line: number; end_column: number; }; }>; level: "none" | "note" | "warning" | "error"; suppression: "none" | "accepted" | "under_review" | "rejected"; message?: string; }>; }>; }; candidate: { version: "2.1.0"; runs: Array<{ run_id: string; rules: Array<{ id: string; }>; results: Array<{ rule_id: string; fingerprints: { [key: string]: string; }; locations: Array<{ artifact: string; region?: { start_line: number; start_column: number; } | { start_line: number; start_column: number; end_line: number; end_column: number; }; }>; level: "none" | "note" | "warning" | "error"; suppression: "none" | "accepted" | "under_review" | "rejected"; message?: string; }>; }>; }; identity_policy: "fingerprint_then_rule_location"; }; export type sarif_findings_reconciliationOutput = ({ ok: boolean; result: null | { new: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; resolved: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; unchanged: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; }>; moved: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; baseline_location: null | { artifact: string; start_line: null; start_column: null; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: number; end_column: number; }; candidate_location: null | { artifact: string; start_line: null; start_column: null; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: number; end_column: number; }; }>; level_changed: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; baseline_level: "none" | "note" | "warning" | "error"; candidate_level: "none" | "note" | "warning" | "error"; }>; suppression_changed: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; baseline_suppression: "none" | "accepted" | "under_review" | "rejected"; candidate_suppression: "none" | "accepted" | "under_review" | "rejected"; }>; ambiguous: Array<{ component_id: number; members: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; }>; unmatchable: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; collision: Array<{ component_id: number; members: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; }>; rule_summary: Array<{ rule_id: string; new: number; resolved: number; unchanged: number; moved: number; level_changed: number; suppression_changed: number; ambiguous: number; unmatchable: number; collision: number; }>; review_pack: Array<{ category: "new" | "unmatchable"; row_index: number; coordinates: Array<{ side: "baseline" | "candidate"; run_id: string; result_index: number; }>; } | { category: "moved" | "level_changed" | "suppression_changed"; row_index: number; coordinates: Array<{ side: "baseline" | "candidate"; run_id: string; result_index: number; }>; } | { category: "ambiguous" | "collision"; row_index: number; component_id: number; coordinates: Array<{ side: "baseline" | "candidate"; run_id: string; result_index: number; }>; }>; verdict: "pass" | "review"; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_SARIF" | "DUPLICATE_RESULT_IDENTITY" | "RULE_REFERENCE_MISSING" | "SARIF_LIMIT_EXCEEDED"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; baseline_runs: number; candidate_runs: number; baseline_results: number; candidate_results: number; fingerprint_values: number; locations: number; new: number; resolved: number; unchanged: number; moved: number; level_changed: number; suppression_changed: number; ambiguous: number; unmatchable: number; collision: number; review_items: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; baseline_runs: number; candidate_runs: number; baseline_results: number; candidate_results: number; fingerprint_values: number; locations: number; new: number; resolved: number; unchanged: number; moved: number; level_changed: number; suppression_changed: number; ambiguous: number; unmatchable: number; collision: number; review_items: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }) & ({ ok: true; result: { new: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; resolved: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; unchanged: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; }>; moved: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; baseline_location: null | { artifact: string; start_line: null; start_column: null; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: number; end_column: number; }; candidate_location: null | { artifact: string; start_line: null; start_column: null; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: null; end_column: null; } | { artifact: string; start_line: number; start_column: number; end_line: number; end_column: number; }; }>; level_changed: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; baseline_level: "none" | "note" | "warning" | "error"; candidate_level: "none" | "note" | "warning" | "error"; }>; suppression_changed: Array<{ baseline: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; candidate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; baseline_rule_id: string; candidate_rule_id: string; baseline_suppression: "none" | "accepted" | "under_review" | "rejected"; candidate_suppression: "none" | "accepted" | "under_review" | "rejected"; }>; ambiguous: Array<{ component_id: number; members: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; }>; unmatchable: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; collision: Array<{ component_id: number; members: Array<{ coordinate: { side: "baseline" | "candidate"; run_id: string; result_index: number; }; rule_id: string; }>; }>; rule_summary: Array<{ rule_id: string; new: number; resolved: number; unchanged: number; moved: number; level_changed: number; suppression_changed: number; ambiguous: number; unmatchable: number; collision: number; }>; review_pack: Array<{ category: "new" | "unmatchable"; row_index: number; coordinates: Array<{ side: "baseline" | "candidate"; run_id: string; result_index: number; }>; } | { category: "moved" | "level_changed" | "suppression_changed"; row_index: number; coordinates: Array<{ side: "baseline" | "candidate"; run_id: string; result_index: number; }>; } | { category: "ambiguous" | "collision"; row_index: number; component_id: number; coordinates: Array<{ side: "baseline" | "candidate"; run_id: string; result_index: number; }>; }>; verdict: "pass" | "review"; }; error: null; receipt: { input_bytes: number; output_bytes: number; baseline_runs: number; candidate_runs: number; baseline_results: number; candidate_results: number; fingerprint_values: number; locations: number; new: number; resolved: number; unchanged: number; moved: number; level_changed: number; suppression_changed: number; ambiguous: number; unmatchable: number; collision: number; review_items: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; } | { ok: false; result: null; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_SARIF" | "DUPLICATE_RESULT_IDENTITY" | "RULE_REFERENCE_MISSING" | "SARIF_LIMIT_EXCEEDED"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; baseline_runs: number; candidate_runs: number; baseline_results: number; candidate_results: number; fingerprint_values: number; locations: number; new: number; resolved: number; unchanged: number; moved: number; level_changed: number; suppression_changed: number; ambiguous: number; unmatchable: number; collision: number; review_items: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }); export type schema_converterInput = { input?: string; schema?: string; mode?: string; direction?: string; name?: string; [key: string]: unknown; }; export type schema_converterOutput = { [key: string]: unknown; }; export type scientific_calculatorInput = { expression?: string; angleMode?: string; [key: string]: unknown; }; export type scientific_calculatorOutput = { [key: string]: unknown; }; export type sensitive_log_redaction_evidenceInput = { profile: "credential-log-v1" | "credential-log-v0"; source: { utf8_bytes: number; line_count: number; }; redacted: { utf8_bytes: number; line_count: number; marker: "[REDACTED]"; remaining_matches: 0; }; summary: { matches: number; lines_with_matches: number; }; by_rule: { pem_private_key: number; authorization_scheme: number; credential_assignment: number; session_cookie: number; url_userinfo: number; jwt: number; aws_access_key: number; openai_key: number; anthropic_key: number; github_token: number; gitlab_token: number; huggingface_token: number; slack_token: number; sendgrid_key: number; google_api_key: number; npm_token: number; pypi_token: number; }; evidence: Array<{ ordinal: number; line: number; rule_id: "pem_private_key" | "authorization_scheme" | "credential_assignment" | "session_cookie" | "url_userinfo" | "jwt" | "aws_access_key" | "openai_key" | "anthropic_key" | "github_token" | "gitlab_token" | "huggingface_token" | "slack_token" | "sendgrid_key" | "google_api_key" | "npm_token" | "pypi_token"; source_span_utf8_bytes: number; replacement_utf8_bytes: 10; }>; generation: { surface: "browser_local"; complete: true; raw_log_uploaded: false; }; }; export type sensitive_log_redaction_evidenceOutput = ({ ok: boolean; schema_version: "utilito.sensitive-log-redaction-evidence.v1"; version: "1.0.0"; result: null | { decision: "evidence_consistent"; profile: "credential-log-v1"; counts: { source_utf8_bytes: number; redacted_utf8_bytes: number; lines: number; matches: number; lines_with_matches: number; rules_with_matches: number; }; claims: { generation_surface_submitted: "browser_local"; submitted_claims_verified: false; raw_log_received: false; redaction_executed: false; remaining_secret_absence_verified: false; raw_content_reflected: false; }; }; receipt: { input_bytes: number; output_bytes: number; source_utf8_bytes: number; redacted_utf8_bytes: number; lines: number; matches: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_REDACTION_EVIDENCE" | "UNSUPPORTED_REDACTION_PROFILE" | "REDACTION_EVIDENCE_INCOMPLETE" | "REDACTION_ACCOUNTING_MISMATCH" | "REDACTION_EVIDENCE_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.sensitive-log-redaction-evidence.v1"; version: "1.0.0"; result: { decision: "evidence_consistent"; profile: "credential-log-v1"; counts: { source_utf8_bytes: number; redacted_utf8_bytes: number; lines: number; matches: number; lines_with_matches: number; rules_with_matches: number; }; claims: { generation_surface_submitted: "browser_local"; submitted_claims_verified: false; raw_log_received: false; redaction_executed: false; remaining_secret_absence_verified: false; raw_content_reflected: false; }; }; receipt: { input_bytes: number; output_bytes: number; source_utf8_bytes: number; redacted_utf8_bytes: number; lines: number; matches: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.sensitive-log-redaction-evidence.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_REDACTION_EVIDENCE" | "UNSUPPORTED_REDACTION_PROFILE" | "REDACTION_EVIDENCE_INCOMPLETE" | "REDACTION_ACCOUNTING_MISMATCH" | "REDACTION_EVIDENCE_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type slug_generatorInput = { text?: string; maxLength?: number; [key: string]: unknown; }; export type slug_generatorOutput = { [key: string]: unknown; }; export type sort_linesInput = { text?: string; mode?: string; direction?: string; [key: string]: unknown; }; export type sort_linesOutput = { [key: string]: unknown; }; export type streaming_tool_call_assemblerInput = { format: "sse" | "jsonl"; profile: "utilito_stream_v1"; events: Array<{ sequence: number; id: string; type: "text_delta"; text_fragment: string; } | { sequence: number; id: string; type: "tool_call_start"; call_id: string; tool_name: string; } | { sequence: number; id: string; type: "tool_arguments_delta"; call_id: string; argument_fragment: string; } | { sequence: number; id: string; type: "tool_call_end"; call_id: string; } | { sequence: number; id: string; type: "finish"; finish_reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; } | { sequence: number; id: string; type: "finish"; finish_reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; terminal_marker: "DONE"; }>; } | { format: "sse" | "jsonl"; profile: "openai_responses_2026_01"; events: Array<{ sequence: number; id: string; type: "text_delta"; text_fragment: string; } | { sequence: number; id: string; type: "tool_call_start"; call_id: string; tool_name: string; } | { sequence: number; id: string; type: "tool_arguments_delta"; call_id: string; argument_fragment: string; } | { sequence: number; id: string; type: "tool_call_end"; call_id: string; } | { sequence: number; id: string; type: "finish"; finish_reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; }>; } | { format: "sse" | "jsonl"; profile: "anthropic_messages_2025_06"; events: Array<{ sequence: number; id: string; type: "text_delta"; text_fragment: string; } | { sequence: number; id: string; type: "tool_call_start"; call_id: string; tool_name: string; } | { sequence: number; id: string; type: "tool_arguments_delta"; call_id: string; argument_fragment: string; } | { sequence: number; id: string; type: "tool_call_end"; call_id: string; } | { sequence: number; id: string; type: "finish"; finish_reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; }>; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentPropertyName = string; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject12 = { }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray12 = []; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue12 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject12 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray12; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject11 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue12; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray11 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue11 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject11 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray11; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject10 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue11; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray10 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue10 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject10 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray10; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject9 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue10; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray9 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue9 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject9 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray9; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject8 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue9; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray8 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue8 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject8 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray8; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject7 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue8; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray7 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue7 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject7 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray7; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject6 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue7; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray6 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue6 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject6 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray6; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject5 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue6; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray5 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue5 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject5 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray5; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject4 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue5; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray4 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue4 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject4 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray4; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject3 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue4; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray3 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue3 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject3 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray3; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject2 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue3; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray2 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue2 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject2 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray2; export type streaming_tool_call_assemblerOutput_nx45_ArgumentObject1 = { [key: string]: streaming_tool_call_assemblerOutput_nx45_ArgumentValue2; }; export type streaming_tool_call_assemblerOutput_nx45_ArgumentArray1 = Array; export type streaming_tool_call_assemblerOutput_nx45_ArgumentValue1 = null | boolean | string | number | number | streaming_tool_call_assemblerOutput_nx45_ArgumentObject1 | streaming_tool_call_assemblerOutput_nx45_ArgumentArray1; export type streaming_tool_call_assemblerOutput = ({ ok: boolean; result: null | { assembled_text: string; tool_calls: Array<{ call_id: string; tool_name: string; argument_text: string; arguments: streaming_tool_call_assemblerOutput_nx45_ArgumentObject1; fragment_ledger: Array<{ event_id: string; sequence: number; code_points: number; utf8_bytes: number; }>; parse_status: "parsed"; }>; finish_state: { event_id: string; sequence: number; reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; terminal_marker_observed: boolean; }; neutral_events: Array<{ sequence: number; event_id: string; type: "text_delta"; fragment_code_points: number; fragment_utf8_bytes: number; } | { sequence: number; event_id: string; type: "tool_call_start"; call_id: string; tool_name: string; } | { sequence: number; event_id: string; type: "tool_arguments_delta"; call_id: string; fragment_code_points: number; fragment_utf8_bytes: number; } | { sequence: number; event_id: string; type: "tool_call_end"; call_id: string; } | { sequence: number; event_id: string; type: "finish"; reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; terminal_marker_observed: boolean; }>; handoff: { target: "tool-call-trace-conformance"; ready: true; }; verdict: "assembled" | "review"; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "SENSITIVE_INPUT" | "INVALID_STREAM" | "INVALID_EVENT_ORDER" | "DUPLICATE_EVENT_ID" | "UNKNOWN_CALL_REFERENCE" | "ARGUMENT_FRAGMENT_INVALID" | "INCOMPLETE_TOOL_CALL" | "EVENT_LIMIT_EXCEEDED" | "STREAM_OUTPUT_TOO_LARGE"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; submitted_events: number; text_fragments: number; argument_fragments: number; calls: number; assembled_text_code_points: number; assembled_text_bytes: number; assembled_argument_code_points: number; assembled_argument_bytes: number; neutral_events: number; review_items: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }) & ({ ok: true; result: { assembled_text: string; tool_calls: Array<{ call_id: string; tool_name: string; argument_text: string; arguments: streaming_tool_call_assemblerOutput_nx45_ArgumentObject1; fragment_ledger: Array<{ event_id: string; sequence: number; code_points: number; utf8_bytes: number; }>; parse_status: "parsed"; }>; finish_state: { event_id: string; sequence: number; reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; terminal_marker_observed: boolean; }; neutral_events: Array<{ sequence: number; event_id: string; type: "text_delta"; fragment_code_points: number; fragment_utf8_bytes: number; } | { sequence: number; event_id: string; type: "tool_call_start"; call_id: string; tool_name: string; } | { sequence: number; event_id: string; type: "tool_arguments_delta"; call_id: string; fragment_code_points: number; fragment_utf8_bytes: number; } | { sequence: number; event_id: string; type: "tool_call_end"; call_id: string; } | { sequence: number; event_id: string; type: "finish"; reason: "stop" | "length" | "tool_calls" | "cancelled" | "error"; terminal_marker_observed: boolean; }>; handoff: { target: "tool-call-trace-conformance"; ready: true; }; verdict: "assembled" | "review"; }; error: null; receipt: { input_bytes: number; output_bytes: number; submitted_events: number; text_fragments: number; argument_fragments: number; calls: number; assembled_text_code_points: number; assembled_text_bytes: number; assembled_argument_code_points: number; assembled_argument_bytes: number; neutral_events: number; review_items: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; } | { ok: false; result: null; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "SENSITIVE_INPUT" | "INVALID_STREAM" | "INVALID_EVENT_ORDER" | "DUPLICATE_EVENT_ID" | "UNKNOWN_CALL_REFERENCE" | "ARGUMENT_FRAGMENT_INVALID" | "INCOMPLETE_TOOL_CALL" | "EVENT_LIMIT_EXCEEDED" | "STREAM_OUTPUT_TOO_LARGE"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; submitted_events: number; text_fragments: number; argument_fragments: number; calls: number; assembled_text_code_points: number; assembled_text_bytes: number; assembled_argument_code_points: number; assembled_argument_bytes: number; neutral_events: number; review_items: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }); export type structured_data_reconciliationInput_nx_json_0 = null | boolean | number | string | [] | { }; export type structured_data_reconciliationInput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_0; }; export type structured_data_reconciliationInput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_1; }; export type structured_data_reconciliationInput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_2; }; export type structured_data_reconciliationInput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_3; }; export type structured_data_reconciliationInput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_4; }; export type structured_data_reconciliationInput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_5; }; export type structured_data_reconciliationInput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_6; }; export type structured_data_reconciliationInput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_7; }; export type structured_data_reconciliationInput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_8; }; export type structured_data_reconciliationInput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_9; }; export type structured_data_reconciliationInput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_10; }; export type structured_data_reconciliationInput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_json_11; }; export type structured_data_reconciliationInput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type structured_data_reconciliationInput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_0; }; export type structured_data_reconciliationInput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_1; }; export type structured_data_reconciliationInput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_2; }; export type structured_data_reconciliationInput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_3; }; export type structured_data_reconciliationInput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_4; }; export type structured_data_reconciliationInput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_5; }; export type structured_data_reconciliationInput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_6; }; export type structured_data_reconciliationInput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_7; }; export type structured_data_reconciliationInput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_8; }; export type structured_data_reconciliationInput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_9; }; export type structured_data_reconciliationInput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_10; }; export type structured_data_reconciliationInput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationInput_nx_safe_json_11; }; export type structured_data_reconciliationInput = { baseline_records: Array<{ [key: string]: structured_data_reconciliationInput_nx_safe_json_11; }> | { format: "json" | "jsonl"; content: string; }; candidate_records: Array<{ [key: string]: structured_data_reconciliationInput_nx_safe_json_11; }> | { format: "json" | "jsonl"; content: string; }; policy: { compare: "strict_json"; candidate_wins: boolean; key_fields: Array; comparison_fields: Array; duplicate_policy: "error" | "keep_first" | "keep_last"; }; }; export type structured_data_reconciliationOutput_nx_json_0 = null | boolean | number | string | [] | { }; export type structured_data_reconciliationOutput_nx_json_1 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_0; }; export type structured_data_reconciliationOutput_nx_json_2 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_1; }; export type structured_data_reconciliationOutput_nx_json_3 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_2; }; export type structured_data_reconciliationOutput_nx_json_4 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_3; }; export type structured_data_reconciliationOutput_nx_json_5 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_4; }; export type structured_data_reconciliationOutput_nx_json_6 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_5; }; export type structured_data_reconciliationOutput_nx_json_7 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_6; }; export type structured_data_reconciliationOutput_nx_json_8 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_7; }; export type structured_data_reconciliationOutput_nx_json_9 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_8; }; export type structured_data_reconciliationOutput_nx_json_10 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_9; }; export type structured_data_reconciliationOutput_nx_json_11 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_10; }; export type structured_data_reconciliationOutput_nx_json_12 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_json_11; }; export type structured_data_reconciliationOutput_nx_safe_json_0 = null | boolean | number | string | [] | { }; export type structured_data_reconciliationOutput_nx_safe_json_1 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_0; }; export type structured_data_reconciliationOutput_nx_safe_json_2 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_1; }; export type structured_data_reconciliationOutput_nx_safe_json_3 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_2; }; export type structured_data_reconciliationOutput_nx_safe_json_4 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_3; }; export type structured_data_reconciliationOutput_nx_safe_json_5 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_4; }; export type structured_data_reconciliationOutput_nx_safe_json_6 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_5; }; export type structured_data_reconciliationOutput_nx_safe_json_7 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_6; }; export type structured_data_reconciliationOutput_nx_safe_json_8 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_7; }; export type structured_data_reconciliationOutput_nx_safe_json_9 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_8; }; export type structured_data_reconciliationOutput_nx_safe_json_10 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_9; }; export type structured_data_reconciliationOutput_nx_safe_json_11 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_10; }; export type structured_data_reconciliationOutput_nx_safe_json_12 = null | boolean | number | string | Array | { [key: string]: structured_data_reconciliationOutput_nx_safe_json_11; }; export type structured_data_reconciliationOutput = ({ ok: boolean; schema_version: "utilito.structured-data-reconciliation.v1"; version: "1.0.0"; result: null | { matched_keys: Array; added_keys: Array; removed_keys: Array; changed_keys: Array; field_deltas: Array<{ key: string; baseline_fields: structured_data_reconciliationOutput_nx_safe_json_12; candidate_fields: structured_data_reconciliationOutput_nx_safe_json_12; }>; duplicate_diagnostics: Array<{ side: "baseline" | "candidate"; key: string; first_index: number; duplicate_index: number; kept_index: number; policy: "keep_first" | "keep_last"; }>; conflicts: Array<{ key: string; baseline: structured_data_reconciliationOutput_nx_safe_json_12; candidate: structured_data_reconciliationOutput_nx_safe_json_12; resolution: "manual"; }>; patch_manifest: { inert: true; operations: Array<{ operation: "add"; key: string; value: structured_data_reconciliationOutput_nx_safe_json_12; } | { operation: "remove"; key: string; } | { operation: "replace"; key: string; value: structured_data_reconciliationOutput_nx_safe_json_12; }>; }; report: { format: "json"; safe_formula_values: true; }; records_written: false; destination_connected: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; baseline_records: number; candidate_records: number; matched: number; changed: number; conflicts: number; duplicates: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_DATASET" | "DUPLICATE_KEY" | "INCOMPARABLE_RECORDS" | "RECONCILIATION_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.structured-data-reconciliation.v1"; version: "1.0.0"; result: { matched_keys: Array; added_keys: Array; removed_keys: Array; changed_keys: Array; field_deltas: Array<{ key: string; baseline_fields: structured_data_reconciliationOutput_nx_safe_json_12; candidate_fields: structured_data_reconciliationOutput_nx_safe_json_12; }>; duplicate_diagnostics: Array<{ side: "baseline" | "candidate"; key: string; first_index: number; duplicate_index: number; kept_index: number; policy: "keep_first" | "keep_last"; }>; conflicts: Array<{ key: string; baseline: structured_data_reconciliationOutput_nx_safe_json_12; candidate: structured_data_reconciliationOutput_nx_safe_json_12; resolution: "manual"; }>; patch_manifest: { inert: true; operations: Array<{ operation: "add"; key: string; value: structured_data_reconciliationOutput_nx_safe_json_12; } | { operation: "remove"; key: string; } | { operation: "replace"; key: string; value: structured_data_reconciliationOutput_nx_safe_json_12; }>; }; report: { format: "json"; safe_formula_values: true; }; records_written: false; destination_connected: false; }; receipt: { input_bytes: number; output_bytes: number; omitted_items: 0; baseline_records: number; candidate_records: number; matched: number; changed: number; conflicts: number; duplicates: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.structured-data-reconciliation.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_DATASET" | "DUPLICATE_KEY" | "INCOMPARABLE_RECORDS" | "RECONCILIATION_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type structured_output_recovery_kitInput = { text: string; recovery_policy: "conservative" | "infer_closures"; schema?: { [key: string]: unknown; } | string | null; tool_call?: null | { mode: "openai-tool" | "openai-call" | "anthropic-tool" | "anthropic-use" | "mcp-tool"; input: { [key: string]: unknown; } | string; }; }; export type structured_output_recovery_kitOutput = { ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "structured-output-recovery-kit"; version: "1.0.0"; }; result: { status: "ready" | "review_required" | "blocked"; confidence: "high" | "review_required"; output: string; value: unknown; repairs: Array<{ sequence: number; type: string; path: string; detail: string; }>; diagnostics: { syntax: { status: "valid" | "repaired" | "invalid" | "blocked" | "not_requested"; findings: Array<{ id: string; path: string; message: string; }>; }; schema: { status: "valid" | "repaired" | "invalid" | "blocked" | "not_requested"; findings: Array<{ id: string; path: string; message: string; }>; }; tool_call: { status: "valid" | "repaired" | "invalid" | "blocked" | "not_requested"; findings: Array<{ id: string; path: string; message: string; }>; }; }; validation: { target: "none" | "Utilito bounded JSON Schema subset v1"; valid: boolean; errors: Array<{ code: string; path: string; message: string; expected?: Array; actual?: string; field?: string; }>; }; tool_call_validation: null | { [key: string]: unknown; }; warnings: Array<{ code: string; message: string; }>; safe_next_action: { code: "COPY_CANONICAL_OUTPUT" | "REVIEW_INFERRED_CLOSURES" | "FIX_OUTPUT_TO_SCHEMA" | "FIX_SCHEMA" | "FIX_TOOL_CALL" | "REPAIR_SOURCE"; message: string; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: Array; parseable_before: boolean; parseable_after: boolean; canonicalized: boolean; repairs_applied: number; inferred_closures: number; repairs: Array<{ sequence: number; type: string; path: string; detail: string; }>; confidence: "high" | "review_required"; syntax_status: "valid" | "repaired" | "blocked"; schema_status: "valid" | "invalid" | "blocked" | "not_requested"; tool_call_status: "valid" | "invalid" | "not_requested"; limits: { source_utf8_bytes: 262144; graph_depth: number; graph_nodes: number; container_fanout: number; }; limitations: Array; safe_next_action: { code: "COPY_CANONICAL_OUTPUT" | "REVIEW_INFERRED_CLOSURES" | "FIX_OUTPUT_TO_SCHEMA" | "FIX_SCHEMA" | "FIX_TOOL_CALL" | "REPAIR_SOURCE"; message: string; }; values_invented: false; values_coerced: false; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { structured_output_recovery_kit: "1.0.0"; structured_output_rescue: "1.0.0"; json_repair: "1.0.0"; }; }; error: null | { code: string; path?: string; message: string; hint: string; }; }; export type structured_output_rescueInput = { input?: string; schema?: { [key: string]: unknown; }; tool_call?: { [key: string]: unknown; }; [key: string]: unknown; }; export type structured_output_rescueOutput = { [key: string]: unknown; }; export type subagent_delegation_contract_compilerInput = { tasks: Array<{ id: string; worker_id: string; depends_on: Array; required_capabilities: Array; acceptance_check_ids: Array; deliverable_ids: Array; stop_condition: "deliverables_complete" | "acceptance_complete" | "blocked" | "budget_exhausted"; escalation_targets: Array; budget: { max_work_units: number; max_output_bytes: number; max_elapsed_ms: number; }; }>; artifacts: Array; ownership: Array<{ artifact_id: string; task_id: string; responsibility: "produce" | "review" | "approve"; }>; policy: { ownership_mode: "unique" | "shared"; }; }; export type subagent_delegation_contract_compilerOutput = ({ ok: boolean; result: null | { worker_contracts: Array<{ task_id: string; worker_id: string; predecessor_task_ids: Array; required_capabilities: Array; deliverable_ids: Array; acceptance_check_ids: Array; stop_condition: "deliverables_complete" | "acceptance_complete" | "blocked" | "budget_exhausted"; budget: { max_work_units: number; max_output_bytes: number; max_elapsed_ms: number; }; escalation_targets: Array; }>; ownership_matrix: Array<{ artifact_id: string; task_id: string; responsibility: "produce" | "review" | "approve"; shared_production: boolean; }>; handoff_requirements: Array<{ producer_task_id: string; consumer_task_id: string; artifact_id: string; responsibility: "produce"; }>; review_gates: Array<{ kind: "acceptance"; task_id: string; acceptance_check_id: string; } | { kind: "approval"; task_id: string; artifact_id: string; }>; conflicts: Array<{ reason: "shared_ownership"; artifact_id: string; task_id: string; producer_task_ids: Array; }>; unassigned_requirements: Array<{ reason: "unassigned_artifact"; artifact_id: string; } | { reason: "unassigned_capability"; task_id: string; capability_id: string; } | { reason: "unassigned_acceptance"; task_id: string; }>; blocked_tasks: Array<{ task_id: string; reasons: Array<"unassigned_requirement" | "shared_ownership" | "blocked_dependency">; }>; escalation_map: Array<{ task_id: string; target_task_ids: Array; }>; verdict: "pass" | "review" | "block"; }; receipt: { input_bytes: number; output_bytes: number; tasks: number; workers: number; artifacts: number; dependency_edges: number; ownership_declarations: number; acceptance_checks: number; capability_labels: number; escalation_edges: number; worker_contracts: number; handoff_requirements: number; review_gates: number; conflicts: number; unassigned_requirements: number; blocked_tasks: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_DELEGATION" | "DUPLICATE_OWNERSHIP" | "UNKNOWN_ARTIFACT_REFERENCE" | "UNKNOWN_TASK_REFERENCE" | "DEPENDENCY_CYCLE" | "ESCALATION_TARGET_MISSING" | "DELEGATION_BUDGET_EXCEEDED"; message: string; hint: string; }; }) & ({ ok: true; result: { worker_contracts: Array<{ task_id: string; worker_id: string; predecessor_task_ids: Array; required_capabilities: Array; deliverable_ids: Array; acceptance_check_ids: Array; stop_condition: "deliverables_complete" | "acceptance_complete" | "blocked" | "budget_exhausted"; budget: { max_work_units: number; max_output_bytes: number; max_elapsed_ms: number; }; escalation_targets: Array; }>; ownership_matrix: Array<{ artifact_id: string; task_id: string; responsibility: "produce" | "review" | "approve"; shared_production: boolean; }>; handoff_requirements: Array<{ producer_task_id: string; consumer_task_id: string; artifact_id: string; responsibility: "produce"; }>; review_gates: Array<{ kind: "acceptance"; task_id: string; acceptance_check_id: string; } | { kind: "approval"; task_id: string; artifact_id: string; }>; conflicts: Array<{ reason: "shared_ownership"; artifact_id: string; task_id: string; producer_task_ids: Array; }>; unassigned_requirements: Array<{ reason: "unassigned_artifact"; artifact_id: string; } | { reason: "unassigned_capability"; task_id: string; capability_id: string; } | { reason: "unassigned_acceptance"; task_id: string; }>; blocked_tasks: Array<{ task_id: string; reasons: Array<"unassigned_requirement" | "shared_ownership" | "blocked_dependency">; }>; escalation_map: Array<{ task_id: string; target_task_ids: Array; }>; verdict: "pass" | "review" | "block"; }; receipt: { input_bytes: number; output_bytes: number; tasks: number; workers: number; artifacts: number; dependency_edges: number; ownership_declarations: number; acceptance_checks: number; capability_labels: number; escalation_edges: number; worker_contracts: number; handoff_requirements: number; review_gates: number; conflicts: number; unassigned_requirements: number; blocked_tasks: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; error: null; } | { ok: false; result: null; receipt: { input_bytes: number; output_bytes: number; tasks: number; workers: number; artifacts: number; dependency_edges: number; ownership_declarations: number; acceptance_checks: number; capability_labels: number; escalation_edges: number; worker_contracts: number; handoff_requirements: number; review_gates: number; conflicts: number; unassigned_requirements: number; blocked_tasks: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_DELEGATION" | "DUPLICATE_OWNERSHIP" | "UNKNOWN_ARTIFACT_REFERENCE" | "UNKNOWN_TASK_REFERENCE" | "DEPENDENCY_CYCLE" | "ESCALATION_TARGET_MISSING" | "DELEGATION_BUDGET_EXCEEDED"; message: string; hint: string; }; }); export type subnet_calculatorInput = { cidr?: string; [key: string]: unknown; }; export type subnet_calculatorOutput = { [key: string]: unknown; }; export type tax_estimatorInput = { income?: number; filingStatus?: string; stateRate?: number; [key: string]: unknown; }; export type tax_estimatorOutput = { [key: string]: unknown; }; export type test_run_stability_matrixInput = { runs: Array<{ id: string; observations: Array<{ case_id: string; status: "pass" | "fail" | "skip" | "error"; failure_signature?: string; duration_ms?: number; }>; }>; expected_case_ids: Array; baseline_run_ids: Array; candidate_run_ids: Array; policy: { minimum_evidence_count: number; }; }; export type test_run_stability_matrixOutput = ({ ok: boolean; schema_version: "utilito.test-run-stability-matrix.v1"; result: null | { run_order: Array; boundary: { baseline_run_ids: Array; candidate_run_ids: Array; baseline_count: number; candidate_count: number; }; cases: Array<{ case_id: string; status_vector: Array<"pass" | "fail" | "skip" | "error" | "missing">; baseline_evidence_count: number; candidate_evidence_count: number; total_evidence_count: number; primary_classification: "consistent_pass" | "consistent_fail" | "intermittent" | "insufficient_evidence" | "review"; groups: Array<"consistent_pass" | "consistent_fail" | "intermittent" | "new_failure" | "resolved_failure" | "missing" | "insufficient_evidence">; failure_signature_changed: boolean; status_transitions: { total: number; changed: number; unchanged: number; }; durations: { overall: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; baseline: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; candidate: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; }; }>; groups: { consistent_pass: Array; consistent_fail: Array; intermittent: Array; new_failure: Array; resolved_failure: Array; missing: Array; insufficient_evidence: Array; }; transition_counts: Array<{ from: "pass" | "fail" | "skip" | "error" | "missing"; to: "pass" | "fail" | "skip" | "error" | "missing"; count: number; }>; duration_summary: { overall: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; baseline: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; candidate: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; }; review_queue: Array<{ case_id: string; reason: "new_failure" | "intermittent" | "consistent_failure" | "failure_signature_changed" | "error_observed" | "resolved_failure" | "skip_observed" | "missing_observation" | "insufficient_evidence"; }>; verdict: "pass" | "review"; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_RUN_MATRIX" | "DUPLICATE_RUN_ID" | "DUPLICATE_CASE_RESULT" | "INCOMPARABLE_RUNS" | "INVALID_BASELINE_BOUNDARY" | "RUN_MATRIX_LIMIT_EXCEEDED"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; submitted_runs: number; expected_cases: number; submitted_observations: number; computed_missing_cells: number; matrix_cells: number; adjacent_transition_pairs: number; duration_values: number; signature_values: number; consistent_pass_cases: number; consistent_fail_cases: number; intermittent_cases: number; new_failure_cases: number; resolved_failure_cases: number; missing_cases: number; insufficient_evidence_cases: number; review_items: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }) & ({ ok: true; schema_version: "utilito.test-run-stability-matrix.v1"; result: { run_order: Array; boundary: { baseline_run_ids: Array; candidate_run_ids: Array; baseline_count: number; candidate_count: number; }; cases: Array<{ case_id: string; status_vector: Array<"pass" | "fail" | "skip" | "error" | "missing">; baseline_evidence_count: number; candidate_evidence_count: number; total_evidence_count: number; primary_classification: "consistent_pass" | "consistent_fail" | "intermittent" | "insufficient_evidence" | "review"; groups: Array<"consistent_pass" | "consistent_fail" | "intermittent" | "new_failure" | "resolved_failure" | "missing" | "insufficient_evidence">; failure_signature_changed: boolean; status_transitions: { total: number; changed: number; unchanged: number; }; durations: { overall: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; baseline: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; candidate: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; }; }>; groups: { consistent_pass: Array; consistent_fail: Array; intermittent: Array; new_failure: Array; resolved_failure: Array; missing: Array; insufficient_evidence: Array; }; transition_counts: Array<{ from: "pass" | "fail" | "skip" | "error" | "missing"; to: "pass" | "fail" | "skip" | "error" | "missing"; count: number; }>; duration_summary: { overall: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; baseline: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; candidate: { count: number; total_ms: number; minimum_ms: null | number; maximum_ms: null | number; mean: null | { numerator_ms: number; denominator: number; }; }; }; review_queue: Array<{ case_id: string; reason: "new_failure" | "intermittent" | "consistent_failure" | "failure_signature_changed" | "error_observed" | "resolved_failure" | "skip_observed" | "missing_observation" | "insufficient_evidence"; }>; verdict: "pass" | "review"; }; error: null; receipt: { input_bytes: number; output_bytes: number; submitted_runs: number; expected_cases: number; submitted_observations: number; computed_missing_cells: number; matrix_cells: number; adjacent_transition_pairs: number; duration_values: number; signature_values: number; consistent_pass_cases: number; consistent_fail_cases: number; intermittent_cases: number; new_failure_cases: number; resolved_failure_cases: number; missing_cases: number; insufficient_evidence_cases: number; review_items: number; omitted_items: 0; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; } | { ok: false; schema_version: "utilito.test-run-stability-matrix.v1"; result: null; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_RUN_MATRIX" | "DUPLICATE_RUN_ID" | "DUPLICATE_CASE_RESULT" | "INCOMPARABLE_RUNS" | "INVALID_BASELINE_BOUNDARY" | "RUN_MATRIX_LIMIT_EXCEEDED"; message: string; hint: string; }; receipt: { input_bytes: number; output_bytes: number; }; provenance: { external_reads: false; executions_performed: false; persistence_performed: false; }; }); export type three_way_structured_mergeInput_nx40_json_0 = null | boolean | number | string | [] | { }; export type three_way_structured_mergeInput_nx40_json_1 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_0; }; export type three_way_structured_mergeInput_nx40_json_2 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_1; }; export type three_way_structured_mergeInput_nx40_json_3 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_2; }; export type three_way_structured_mergeInput_nx40_json_4 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_3; }; export type three_way_structured_mergeInput_nx40_json_5 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_4; }; export type three_way_structured_mergeInput_nx40_json_6 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_5; }; export type three_way_structured_mergeInput_nx40_json_7 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_6; }; export type three_way_structured_mergeInput_nx40_json_8 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_7; }; export type three_way_structured_mergeInput_nx40_json_9 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_8; }; export type three_way_structured_mergeInput_nx40_json_10 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_9; }; export type three_way_structured_mergeInput_nx40_json_11 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_10; }; export type three_way_structured_mergeInput_nx40_json_12 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeInput_nx40_json_11; }; export type three_way_structured_mergeInput = { baseline: three_way_structured_mergeInput_nx40_json_12; ours: three_way_structured_mergeInput_nx40_json_12; theirs: three_way_structured_mergeInput_nx40_json_12; array_policy: { mode: "atomic"; } | { mode: "id_key"; id_key: string; }; resolutions: { [key: string]: { action: "ours" | "theirs" | "base" | "delete"; } | { action: "value"; value: three_way_structured_mergeInput_nx40_json_12; }; }; policy: { require_all_conflicts_resolved: boolean; }; }; export type three_way_structured_mergeOutput_nx40_json_0 = null | boolean | number | string | [] | { }; export type three_way_structured_mergeOutput_nx40_json_1 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_0; }; export type three_way_structured_mergeOutput_nx40_json_2 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_1; }; export type three_way_structured_mergeOutput_nx40_json_3 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_2; }; export type three_way_structured_mergeOutput_nx40_json_4 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_3; }; export type three_way_structured_mergeOutput_nx40_json_5 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_4; }; export type three_way_structured_mergeOutput_nx40_json_6 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_5; }; export type three_way_structured_mergeOutput_nx40_json_7 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_6; }; export type three_way_structured_mergeOutput_nx40_json_8 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_7; }; export type three_way_structured_mergeOutput_nx40_json_9 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_8; }; export type three_way_structured_mergeOutput_nx40_json_10 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_9; }; export type three_way_structured_mergeOutput_nx40_json_11 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_10; }; export type three_way_structured_mergeOutput_nx40_json_12 = null | boolean | number | string | Array | { [key: string]: three_way_structured_mergeOutput_nx40_json_11; }; export type three_way_structured_mergeOutput = ({ ok: boolean; schema_version: "utilito.three-way-structured-merge.v1"; version: "1.0.0"; result: null | { branch_changes: { ours: Array; theirs: Array; }; conflicts: Array<{ pointer: string; base?: three_way_structured_mergeOutput_nx40_json_12; ours?: three_way_structured_mergeOutput_nx40_json_12; theirs?: three_way_structured_mergeOutput_nx40_json_12; }>; applied_resolutions: Array<{ pointer: string; resolution: "ours" | "theirs" | "base" | "delete"; } | { pointer: string; resolution: "value"; value: three_way_structured_mergeOutput_nx40_json_12; }>; forward_patch: Array<{ op: "add" | "replace"; path: string; value: three_way_structured_mergeOutput_nx40_json_12; } | { op: "remove"; path: string; }>; inverse_patch: Array<{ op: "add" | "replace"; path: string; value: three_way_structured_mergeOutput_nx40_json_12; } | { op: "remove"; path: string; }>; unresolved_pointers: Array; verdict: "merged" | "review" | "unchanged"; merged_value?: three_way_structured_mergeOutput_nx40_json_12; }; receipt: { input_bytes: number; output_bytes: number; changed_pointers: number; ours_changes: number; theirs_changes: number; conflicts: number; resolutions_applied: number; patch_operations: number; omitted_items: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_MERGE_INPUT" | "DANGEROUS_PATH" | "DUPLICATE_ARRAY_ID" | "ARRAY_ID_MISSING" | "CONFLICT_RESOLUTION_UNKNOWN" | "UNRESOLVED_CONFLICT" | "MERGE_LIMIT_EXCEEDED" | "RESULT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.three-way-structured-merge.v1"; version: "1.0.0"; result: { branch_changes: { ours: Array; theirs: Array; }; conflicts: Array<{ pointer: string; base?: three_way_structured_mergeOutput_nx40_json_12; ours?: three_way_structured_mergeOutput_nx40_json_12; theirs?: three_way_structured_mergeOutput_nx40_json_12; }>; applied_resolutions: Array<{ pointer: string; resolution: "ours" | "theirs" | "base" | "delete"; } | { pointer: string; resolution: "value"; value: three_way_structured_mergeOutput_nx40_json_12; }>; forward_patch: Array<{ op: "add" | "replace"; path: string; value: three_way_structured_mergeOutput_nx40_json_12; } | { op: "remove"; path: string; }>; inverse_patch: Array<{ op: "add" | "replace"; path: string; value: three_way_structured_mergeOutput_nx40_json_12; } | { op: "remove"; path: string; }>; unresolved_pointers: Array; verdict: "merged" | "review" | "unchanged"; merged_value?: three_way_structured_mergeOutput_nx40_json_12; }; receipt: { input_bytes: number; output_bytes: number; changed_pointers: number; ours_changes: number; theirs_changes: number; conflicts: number; resolutions_applied: number; patch_operations: number; omitted_items: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.three-way-structured-merge.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "UNSAFE_VALUE" | "INVALID_MERGE_INPUT" | "DANGEROUS_PATH" | "DUPLICATE_ARRAY_ID" | "ARRAY_ID_MISSING" | "CONFLICT_RESOLUTION_UNKNOWN" | "UNRESOLVED_CONFLICT" | "MERGE_LIMIT_EXCEEDED" | "RESULT_TOO_LARGE"; message: string; hint: string; }; }); export type time_duration_calculatorInput = { start?: string; end?: string; [key: string]: unknown; }; export type time_duration_calculatorOutput = { [key: string]: unknown; }; export type time_zone_converterInput = { datetime?: string; fromZone?: string; toZone?: string; [key: string]: unknown; }; export type time_zone_converterOutput = { [key: string]: unknown; }; export type timestamp_converterInput = { timestamp?: string; unit?: string; [key: string]: unknown; }; export type timestamp_converterOutput = { [key: string]: unknown; }; export type tip_calculatorInput = { bill?: number; tipPercent?: number; people?: number; [key: string]: unknown; }; export type tip_calculatorOutput = { [key: string]: unknown; }; export type token_counterInput = { text?: string; model?: string; outputTokens?: number; requestsPerDay?: number; [key: string]: unknown; }; export type token_counterOutput = { [key: string]: unknown; }; export type toml_formatterInput = { input?: string; action?: string; [key: string]: unknown; }; export type toml_formatterOutput = { [key: string]: unknown; }; export type tool_call_interoperabilityInput_interop_json_0 = null | boolean | number | string | [] | { }; export type tool_call_interoperabilityInput_interop_json_1 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_0; }; export type tool_call_interoperabilityInput_interop_json_2 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_1; }; export type tool_call_interoperabilityInput_interop_json_3 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_2; }; export type tool_call_interoperabilityInput_interop_json_4 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_3; }; export type tool_call_interoperabilityInput_interop_json_5 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_4; }; export type tool_call_interoperabilityInput_interop_json_6 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_5; }; export type tool_call_interoperabilityInput_interop_json_7 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_6; }; export type tool_call_interoperabilityInput_interop_json_8 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_7; }; export type tool_call_interoperabilityInput_interop_json_9 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_8; }; export type tool_call_interoperabilityInput_interop_json_10 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_9; }; export type tool_call_interoperabilityInput_interop_json_11 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_10; }; export type tool_call_interoperabilityInput_interop_json_12 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_11; }; export type tool_call_interoperabilityInput_interop_json_13 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_12; }; export type tool_call_interoperabilityInput_interop_json_14 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_13; }; export type tool_call_interoperabilityInput_interop_json_15 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_14; }; export type tool_call_interoperabilityInput_interop_json_16 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_15; }; export type tool_call_interoperabilityInput_interop_json_17 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_16; }; export type tool_call_interoperabilityInput_interop_json_18 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_17; }; export type tool_call_interoperabilityInput_interop_json_19 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_18; }; export type tool_call_interoperabilityInput_interop_json_20 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityInput_interop_json_19; }; export type tool_call_interoperabilityInput_interop_schema_0 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; }; export type tool_call_interoperabilityInput_interop_schema_1 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_0; }; items?: tool_call_interoperabilityInput_interop_schema_0; }; export type tool_call_interoperabilityInput_interop_schema_2 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_1; }; items?: tool_call_interoperabilityInput_interop_schema_1; }; export type tool_call_interoperabilityInput_interop_schema_3 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_2; }; items?: tool_call_interoperabilityInput_interop_schema_2; }; export type tool_call_interoperabilityInput_interop_schema_4 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_3; }; items?: tool_call_interoperabilityInput_interop_schema_3; }; export type tool_call_interoperabilityInput_interop_schema_5 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_4; }; items?: tool_call_interoperabilityInput_interop_schema_4; }; export type tool_call_interoperabilityInput_interop_schema_6 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_5; }; items?: tool_call_interoperabilityInput_interop_schema_5; }; export type tool_call_interoperabilityInput_interop_schema_7 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_6; }; items?: tool_call_interoperabilityInput_interop_schema_6; }; export type tool_call_interoperabilityInput_interop_schema_8 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityInput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityInput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityInput_interop_schema_7; }; items?: tool_call_interoperabilityInput_interop_schema_7; }; export type tool_call_interoperabilityInput = ({ source_format: "openai" | "anthropic" | "mcp" | "utilito"; target_format: "openai" | "anthropic" | "mcp" | "utilito"; tool_definition: unknown; tool_call?: unknown; }) & ({ source_format: "openai"; target_format: "openai" | "anthropic" | "mcp" | "utilito"; tool_definition: { type: "function"; function: { name: string; description?: string; parameters: tool_call_interoperabilityInput_interop_schema_8; }; }; tool_call?: { id?: string; type: "function"; function: { name: string; arguments: string; }; }; } | { source_format: "anthropic"; target_format: "openai" | "anthropic" | "mcp" | "utilito"; tool_definition: { name: string; description?: string; input_schema: tool_call_interoperabilityInput_interop_schema_8; }; tool_call?: { type: "tool_use"; id?: string; name: string; input: { [key: string]: tool_call_interoperabilityInput_interop_json_20; }; }; } | { source_format: "mcp"; target_format: "openai" | "anthropic" | "mcp" | "utilito"; tool_definition: { name: string; description?: string; inputSchema: tool_call_interoperabilityInput_interop_schema_8; outputSchema?: tool_call_interoperabilityInput_interop_schema_8; }; tool_call?: { name: string; arguments: { [key: string]: tool_call_interoperabilityInput_interop_json_20; }; }; } | { source_format: "utilito"; target_format: "openai" | "anthropic" | "mcp" | "utilito"; tool_definition: { name: string; description?: string; input_schema: tool_call_interoperabilityInput_interop_schema_8; output_schema?: tool_call_interoperabilityInput_interop_schema_8; }; tool_call?: { id?: string; name: string; arguments: { [key: string]: tool_call_interoperabilityInput_interop_json_20; }; }; }); export type tool_call_interoperabilityOutput_interop_json_0 = null | boolean | number | string | [] | { }; export type tool_call_interoperabilityOutput_interop_json_1 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_0; }; export type tool_call_interoperabilityOutput_interop_json_2 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_1; }; export type tool_call_interoperabilityOutput_interop_json_3 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_2; }; export type tool_call_interoperabilityOutput_interop_json_4 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_3; }; export type tool_call_interoperabilityOutput_interop_json_5 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_4; }; export type tool_call_interoperabilityOutput_interop_json_6 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_5; }; export type tool_call_interoperabilityOutput_interop_json_7 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_6; }; export type tool_call_interoperabilityOutput_interop_json_8 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_7; }; export type tool_call_interoperabilityOutput_interop_json_9 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_8; }; export type tool_call_interoperabilityOutput_interop_json_10 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_9; }; export type tool_call_interoperabilityOutput_interop_json_11 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_10; }; export type tool_call_interoperabilityOutput_interop_json_12 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_11; }; export type tool_call_interoperabilityOutput_interop_json_13 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_12; }; export type tool_call_interoperabilityOutput_interop_json_14 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_13; }; export type tool_call_interoperabilityOutput_interop_json_15 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_14; }; export type tool_call_interoperabilityOutput_interop_json_16 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_15; }; export type tool_call_interoperabilityOutput_interop_json_17 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_16; }; export type tool_call_interoperabilityOutput_interop_json_18 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_17; }; export type tool_call_interoperabilityOutput_interop_json_19 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_18; }; export type tool_call_interoperabilityOutput_interop_json_20 = null | boolean | number | string | Array | { [key: string]: tool_call_interoperabilityOutput_interop_json_19; }; export type tool_call_interoperabilityOutput_interop_schema_0 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; }; export type tool_call_interoperabilityOutput_interop_schema_1 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_0; }; items?: tool_call_interoperabilityOutput_interop_schema_0; }; export type tool_call_interoperabilityOutput_interop_schema_2 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_1; }; items?: tool_call_interoperabilityOutput_interop_schema_1; }; export type tool_call_interoperabilityOutput_interop_schema_3 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_2; }; items?: tool_call_interoperabilityOutput_interop_schema_2; }; export type tool_call_interoperabilityOutput_interop_schema_4 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_3; }; items?: tool_call_interoperabilityOutput_interop_schema_3; }; export type tool_call_interoperabilityOutput_interop_schema_5 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_4; }; items?: tool_call_interoperabilityOutput_interop_schema_4; }; export type tool_call_interoperabilityOutput_interop_schema_6 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_5; }; items?: tool_call_interoperabilityOutput_interop_schema_5; }; export type tool_call_interoperabilityOutput_interop_schema_7 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_6; }; items?: tool_call_interoperabilityOutput_interop_schema_6; }; export type tool_call_interoperabilityOutput_interop_schema_8 = { type?: "object" | "array" | "string" | "number" | "integer" | "boolean" | "null"; required?: Array; additionalProperties?: boolean; enum?: Array; const?: tool_call_interoperabilityOutput_interop_json_20; title?: string; description?: string; default?: tool_call_interoperabilityOutput_interop_json_20; pattern?: string; format?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; multipleOf?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; properties?: { [key: string]: tool_call_interoperabilityOutput_interop_schema_7; }; items?: tool_call_interoperabilityOutput_interop_schema_7; }; export type tool_call_interoperabilityOutput = ({ ok: boolean; schema_version: "utilito.tool-call-interoperability.v1"; version: "1.0.0"; result: null | { valid: boolean; converted_definition: { type: "function"; function: { name: string; description?: string; parameters: tool_call_interoperabilityOutput_interop_schema_8; }; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; inputSchema: tool_call_interoperabilityOutput_interop_schema_8; outputSchema?: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; output_schema?: tool_call_interoperabilityOutput_interop_schema_8; }; converted_call: null | { id?: string; type: "function"; function: { name: string; arguments: string; }; } | { type: "tool_use"; id?: string; name: string; input: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { id?: string; name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; }; losses: Array<{ code: "CALL_ID_NOT_REPRESENTABLE"; path: "$.tool_call.id"; disposition: "omitted"; severity: "metadata"; }>; unknowns: Array<{ code: "SCHEMA_SEMANTICS_UNKNOWN"; path: string; keyword: "pattern" | "format" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "uniqueItems" | "multipleOf" | "exclusiveMinimum" | "exclusiveMaximum"; preserved: true; }>; diagnostics: Array<{ code: "ARGUMENT_SCHEMA_MATCH" | "ARGUMENT_SCHEMA_UNKNOWN" | "ARGUMENT_TYPE_MISMATCH" | "ARGUMENT_ENUM_MISMATCH" | "ARGUMENT_CONST_MISMATCH" | "ARGUMENT_REQUIRED_MISSING" | "ARGUMENT_ADDITIONAL_PROPERTY"; path: string; status: "matched" | "unknown" | "mismatch"; issue_count: number; }>; fixture: { schema_version: "utilito.tool-call-interop-fixture.v1"; inert: true; execute_tools: false; source_format: "openai" | "anthropic" | "mcp" | "utilito"; target_format: "openai" | "anthropic" | "mcp" | "utilito"; definition: { type: "function"; function: { name: string; description?: string; parameters: tool_call_interoperabilityOutput_interop_schema_8; }; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; inputSchema: tool_call_interoperabilityOutput_interop_schema_8; outputSchema?: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; output_schema?: tool_call_interoperabilityOutput_interop_schema_8; }; call: null | { id?: string; type: "function"; function: { name: string; arguments: string; }; } | { type: "tool_use"; id?: string; name: string; input: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { id?: string; name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; }; }; safety: { tools_executed: false; provider_calls: false; outbound_replay: false; values_invented: false; network_used: false; storage_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; definitions: number; calls: number; schema_nodes: number; argument_nodes: number; diagnostics: number; losses: number; unknowns: number; fixtures: number; values_invented: number; tools_executed: number; traversed_nodes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_SOURCE_FORMAT" | "UNSUPPORTED_TARGET_FORMAT" | "LOSSY_CONVERSION" | "INVALID_TOOL_CALL"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.tool-call-interoperability.v1"; version: "1.0.0"; result: { valid: boolean; converted_definition: { type: "function"; function: { name: string; description?: string; parameters: tool_call_interoperabilityOutput_interop_schema_8; }; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; inputSchema: tool_call_interoperabilityOutput_interop_schema_8; outputSchema?: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; output_schema?: tool_call_interoperabilityOutput_interop_schema_8; }; converted_call: null | { id?: string; type: "function"; function: { name: string; arguments: string; }; } | { type: "tool_use"; id?: string; name: string; input: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { id?: string; name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; }; losses: Array<{ code: "CALL_ID_NOT_REPRESENTABLE"; path: "$.tool_call.id"; disposition: "omitted"; severity: "metadata"; }>; unknowns: Array<{ code: "SCHEMA_SEMANTICS_UNKNOWN"; path: string; keyword: "pattern" | "format" | "minimum" | "maximum" | "minLength" | "maxLength" | "minItems" | "maxItems" | "uniqueItems" | "multipleOf" | "exclusiveMinimum" | "exclusiveMaximum"; preserved: true; }>; diagnostics: Array<{ code: "ARGUMENT_SCHEMA_MATCH" | "ARGUMENT_SCHEMA_UNKNOWN" | "ARGUMENT_TYPE_MISMATCH" | "ARGUMENT_ENUM_MISMATCH" | "ARGUMENT_CONST_MISMATCH" | "ARGUMENT_REQUIRED_MISSING" | "ARGUMENT_ADDITIONAL_PROPERTY"; path: string; status: "matched" | "unknown" | "mismatch"; issue_count: number; }>; fixture: { schema_version: "utilito.tool-call-interop-fixture.v1"; inert: true; execute_tools: false; source_format: "openai" | "anthropic" | "mcp" | "utilito"; target_format: "openai" | "anthropic" | "mcp" | "utilito"; definition: { type: "function"; function: { name: string; description?: string; parameters: tool_call_interoperabilityOutput_interop_schema_8; }; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; inputSchema: tool_call_interoperabilityOutput_interop_schema_8; outputSchema?: tool_call_interoperabilityOutput_interop_schema_8; } | { name: string; description?: string; input_schema: tool_call_interoperabilityOutput_interop_schema_8; output_schema?: tool_call_interoperabilityOutput_interop_schema_8; }; call: null | { id?: string; type: "function"; function: { name: string; arguments: string; }; } | { type: "tool_use"; id?: string; name: string; input: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; } | { id?: string; name: string; arguments: { [key: string]: tool_call_interoperabilityOutput_interop_json_20; }; }; }; safety: { tools_executed: false; provider_calls: false; outbound_replay: false; values_invented: false; network_used: false; storage_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; definitions: number; calls: number; schema_nodes: number; argument_nodes: number; diagnostics: number; losses: number; unknowns: number; fixtures: number; values_invented: number; tools_executed: number; traversed_nodes: number; }; error: null; } | { ok: false; schema_version: "utilito.tool-call-interoperability.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; definitions: number; calls: number; schema_nodes: number; argument_nodes: number; diagnostics: number; losses: number; unknowns: number; fixtures: number; values_invented: number; tools_executed: number; traversed_nodes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "UNSUPPORTED_SOURCE_FORMAT" | "UNSUPPORTED_TARGET_FORMAT" | "LOSSY_CONVERSION" | "INVALID_TOOL_CALL"; message: string; hint: string; }; }); export type tool_call_trace_conformanceInput_nx25_json_0 = null | boolean | number | string | [] | { }; export type tool_call_trace_conformanceInput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceInput_nx25_json_0; }; export type tool_call_trace_conformanceInput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceInput_nx25_json_1; }; export type tool_call_trace_conformanceInput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceInput_nx25_json_2; }; export type tool_call_trace_conformanceInput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceInput_nx25_json_3; }; export type tool_call_trace_conformanceInput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceInput_nx25_json_4; }; export type tool_call_trace_conformanceInput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceInput_nx25_json_5; }; export type tool_call_trace_conformanceInput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceInput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceInput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceInput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceInput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceInput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceInput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceInput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceInput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceInput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceInput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceInput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceInput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceInput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceInput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceInput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceInput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceInput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceInput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceInput = { definitions: Array<{ name: string; description: string; input_schema: tool_call_trace_conformanceInput_nx25_schema_6; }>; events: Array<{ type: "assistant_call"; call_id: string; tool_name: string; arguments: tool_call_trace_conformanceInput_nx25_json_5; } | { type: "tool_result"; call_id: string; result: tool_call_trace_conformanceInput_nx25_json_5; } | { type: "assistant_terminal"; state: "completed" | "failed" | "cancelled"; }>; policy: { allow_parallel: boolean; require_results: boolean; require_terminal: boolean; max_events: number; }; }; export type tool_call_trace_conformanceOutput_nx25_json_0 = null | boolean | number | string | [] | { }; export type tool_call_trace_conformanceOutput_nx25_json_1 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceOutput_nx25_json_0; }; export type tool_call_trace_conformanceOutput_nx25_json_2 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceOutput_nx25_json_1; }; export type tool_call_trace_conformanceOutput_nx25_json_3 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceOutput_nx25_json_2; }; export type tool_call_trace_conformanceOutput_nx25_json_4 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceOutput_nx25_json_3; }; export type tool_call_trace_conformanceOutput_nx25_json_5 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceOutput_nx25_json_4; }; export type tool_call_trace_conformanceOutput_nx25_json_6 = null | boolean | number | string | Array | { [key: string]: tool_call_trace_conformanceOutput_nx25_json_5; }; export type tool_call_trace_conformanceOutput_nx25_schema_0 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: { }; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceOutput_nx25_schema_1 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceOutput_nx25_schema_0; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceOutput_nx25_schema_0; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceOutput_nx25_schema_2 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceOutput_nx25_schema_1; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceOutput_nx25_schema_1; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceOutput_nx25_schema_3 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceOutput_nx25_schema_2; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceOutput_nx25_schema_2; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceOutput_nx25_schema_4 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceOutput_nx25_schema_3; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceOutput_nx25_schema_3; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceOutput_nx25_schema_5 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceOutput_nx25_schema_4; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceOutput_nx25_schema_4; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceOutput_nx25_schema_6 = { type: "object" | "array" | "string" | "integer" | "number" | "boolean" | "null"; additionalProperties?: boolean; properties?: { [key: string]: tool_call_trace_conformanceOutput_nx25_schema_5; }; required?: Array; enum?: Array; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; items?: tool_call_trace_conformanceOutput_nx25_schema_5; minItems?: number; maxItems?: number; $ref?: string; }; export type tool_call_trace_conformanceOutput = ({ ok: boolean; schema_version: "utilito.tool-call-trace-conformance.v1"; version: "1.0.0"; result: null | { links: Array<{ call_id: string; tool_name: string; call_event_index: number; result_event_index: number; }>; schema_findings: []; issues: { duplicate_call_ids: Array; orphan_result_ids: Array; missing_result_ids: Array; ordering: Array; }; verdict: "conformant" | "non_conformant"; corrected_skeleton: { inert: true; events: Array<{ type: "assistant_call"; call_id: string; tool_name: string; arguments: tool_call_trace_conformanceOutput_nx25_json_5; } | { type: "tool_result"; call_id: string; result: ""; } | { type: "assistant_terminal"; state: "completed" | "failed" | "cancelled"; }>; }; tools_executed: false; results_verified: false; }; receipt: { input_bytes: number; output_bytes: number; definitions: number; events: number; calls: number; results: number; issues: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_TOOL_DEFINITION" | "INVALID_TRACE_SEQUENCE" | "UNKNOWN_TOOL_REFERENCE" | "TOOL_CALL_ARGUMENT_INVALID" | "TRACE_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }) & ({ ok: true; schema_version: "utilito.tool-call-trace-conformance.v1"; version: "1.0.0"; result: { links: Array<{ call_id: string; tool_name: string; call_event_index: number; result_event_index: number; }>; schema_findings: []; issues: { duplicate_call_ids: Array; orphan_result_ids: Array; missing_result_ids: Array; ordering: Array; }; verdict: "conformant" | "non_conformant"; corrected_skeleton: { inert: true; events: Array<{ type: "assistant_call"; call_id: string; tool_name: string; arguments: tool_call_trace_conformanceOutput_nx25_json_5; } | { type: "tool_result"; call_id: string; result: ""; } | { type: "assistant_terminal"; state: "completed" | "failed" | "cancelled"; }>; }; tools_executed: false; results_verified: false; }; receipt: { input_bytes: number; output_bytes: number; definitions: number; events: number; calls: number; results: number; issues: number; omitted_items: 0; }; error: null; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; } | { ok: false; schema_version: "utilito.tool-call-trace-conformance.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "INVALID_TOOL_DEFINITION" | "INVALID_TRACE_SEQUENCE" | "UNKNOWN_TOOL_REFERENCE" | "TOOL_CALL_ARGUMENT_INVALID" | "TRACE_BUDGET_EXCEEDED"; message: string; hint: string; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; }); export type tool_calling_validatorInput = { input: string | { [key: string]: unknown; }; mode?: "openai-tool" | "openai-call" | "anthropic-tool" | "anthropic-use" | "mcp-tool"; }; export type tool_calling_validatorOutput = { ok: boolean; toolId: string; output?: string; errors?: unknown; warnings?: unknown; report?: string; summaryJson?: { [key: string]: unknown; }; error?: { [key: string]: unknown; }; mode?: { [key: string]: unknown; }; valid?: boolean; }; export type tool_catalog_context_budget_auditorInput = { tools: Array<{ id: string; name: string; description: string; parameters_schema: { title: string; type: "object"; additionalProperties: false; properties: { [key: string]: { type: "string"; description?: string; enum?: Array; minLength?: number; maxLength?: number; pattern?: string; } | { type: "integer"; description?: string; enum?: Array; minimum?: number; maximum?: number; } | { type: "number"; description?: string; enum?: Array; minimum?: number; maximum?: number; } | { type: "boolean"; description?: string; enum?: Array; }; }; required: Array; }; required_capabilities: Array; }>; required_capabilities: Array; token_estimate_method: "utf8_div_4_ceil"; policy: { max_catalog_bytes: number; max_selected_tools: number; schema_title_policy: "match_name" | "ignore"; }; }; export type tool_catalog_context_budget_auditorOutput = ({ ok: boolean; schema_version: "utilito.tool-catalog-context-budget.v1"; version: "1.0.0"; result: null | { catalog_audit: Array<{ tool_id: string; canonical_utf8_bytes: number; estimated_tokens: number; required_capabilities: Array; }>; catalog_utf8_bytes: number; token_estimate: { method: "utf8_div_4_ceil"; catalog_tokens: number; selected_tokens: number; tokenizer_exact: false; }; capability_matrix: Array<{ capability: string; declared_by_tool_ids: Array; selected_tool_ids: Array; covered: boolean; }>; selection: { strategy: "greedy_maximum_uncovered_gain_then_bytes_then_id"; selected_tool_ids: Array; selected_tools: Array<{ id: string; name: string; description: string; parameters_schema: { title: string; type: "object"; additionalProperties: false; properties: { [key: string]: { type: "string"; description?: string; enum?: Array; minLength?: number; maxLength?: number; pattern?: string; } | { type: "integer"; description?: string; enum?: Array; minimum?: number; maximum?: number; } | { type: "number"; description?: string; enum?: Array; minimum?: number; maximum?: number; } | { type: "boolean"; description?: string; enum?: Array; }; }; required: Array; }; required_capabilities: Array; }>; selected_utf8_bytes: number; covered_capabilities: Array; uncovered_capabilities: Array; }; omitted_tool_ids: Array; selection_ledger: Array<{ iteration: number; selected_tool_id: string; newly_covered_capabilities: Array; selected_catalog_utf8_bytes: number; }>; suggestions: Array<{ tool_id: string; selected: false; reason: "excluded_by_greedy_budget_or_coverage" | "no_required_capability"; }>; reduction_required: boolean; optimality_claimed: false; }; receipt: { input_bytes: number; output_bytes: number; submitted_tools: number; selected_tools: number; required_capabilities: number; covered_capabilities: number; omitted_items: number; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "DUPLICATE_TOOL_ID" | "DUPLICATE_TOOL_NAME" | "INVALID_TOOL_CATALOG"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.tool-catalog-context-budget.v1"; version: "1.0.0"; result: { catalog_audit: Array<{ tool_id: string; canonical_utf8_bytes: number; estimated_tokens: number; required_capabilities: Array; }>; catalog_utf8_bytes: number; token_estimate: { method: "utf8_div_4_ceil"; catalog_tokens: number; selected_tokens: number; tokenizer_exact: false; }; capability_matrix: Array<{ capability: string; declared_by_tool_ids: Array; selected_tool_ids: Array; covered: boolean; }>; selection: { strategy: "greedy_maximum_uncovered_gain_then_bytes_then_id"; selected_tool_ids: Array; selected_tools: Array<{ id: string; name: string; description: string; parameters_schema: { title: string; type: "object"; additionalProperties: false; properties: { [key: string]: { type: "string"; description?: string; enum?: Array; minLength?: number; maxLength?: number; pattern?: string; } | { type: "integer"; description?: string; enum?: Array; minimum?: number; maximum?: number; } | { type: "number"; description?: string; enum?: Array; minimum?: number; maximum?: number; } | { type: "boolean"; description?: string; enum?: Array; }; }; required: Array; }; required_capabilities: Array; }>; selected_utf8_bytes: number; covered_capabilities: Array; uncovered_capabilities: Array; }; omitted_tool_ids: Array; selection_ledger: Array<{ iteration: number; selected_tool_id: string; newly_covered_capabilities: Array; selected_catalog_utf8_bytes: number; }>; suggestions: Array<{ tool_id: string; selected: false; reason: "excluded_by_greedy_budget_or_coverage" | "no_required_capability"; }>; reduction_required: boolean; optimality_claimed: false; }; receipt: { input_bytes: number; output_bytes: number; submitted_tools: number; selected_tools: number; required_capabilities: number; covered_capabilities: number; omitted_items: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.tool-catalog-context-budget.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "DUPLICATE_TOOL_ID" | "DUPLICATE_TOOL_NAME" | "INVALID_TOOL_CATALOG"; message: string; hint: string; }; }); export type tool_schema_generatorInput = { name: string; description?: string; fieldsText: string; dialect?: "openai" | "anthropic" | "mcp" | "schema"; }; export type tool_schema_generatorOutput = { ok: boolean; toolId: string; output?: string; errors?: unknown; warnings?: unknown; report?: string; summaryJson?: { [key: string]: unknown; }; error?: { [key: string]: unknown; }; dialect?: { [key: string]: unknown; }; payload?: unknown; schema?: { [key: string]: unknown; }; fields?: unknown; }; export type tool_schema_publishing_kitInput = { name: string; description: string; input_schema: { [key: string]: unknown; }; output_schema?: { [key: string]: unknown; }; typed_failures: Array<{ code: string; description: string; retryable: boolean; }>; }; export type tool_schema_publishing_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "tool-schema-publishing-kit"; version: "1.0.0"; }; result: null | { canonical_json_schema: { [key: string]: unknown; }; openai_definition: { type: "function"; function: { name: string; description: string; parameters: { [key: string]: unknown; }; }; }; anthropic_definition: { name: string; description: string; input_schema: { [key: string]: unknown; }; }; mcp_schema: { name: string; description: string; inputSchema: { [key: string]: unknown; }; outputSchema?: { [key: string]: unknown; }; }; openapi_fragment: { openapi: "3.1.0"; "x-utilito-typed-failures": Array<{ code: string; description: string; retryable: boolean; }>; paths: { [key: string]: unknown; }; }; executable_fixture: { tool_name: string; input: { [key: string]: unknown; }; validation: { valid: true; validator: "utilito.schema-contract.v1"; }; }; generated_assertions: { runtime: "node"; node_source: string; }; markdown_docs: string; provider_support: Array<{ provider: "openai" | "anthropic" | "mcp" | "openapi"; input_schema: "represented"; output_schema: "represented" | "unsupported_explicit" | "not_supplied"; typed_failures: "documentation_only" | "documented_responses"; }>; typed_failures: Array<{ code: string; description: string; retryable: boolean; }>; artifact_manifest: Array<{ name: string; media_type: string; bytes: number; }>; safety: { tool_execution: false; publication: false; provider_calls: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; reflection: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: Array<"OPENAI_OUTPUT_SCHEMA_UNSUPPORTED" | "ANTHROPIC_OUTPUT_SCHEMA_UNSUPPORTED">; artifacts: number; schema_nodes: number; properties: number; typed_failures: number; fixture_valid: boolean; values_invented: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { tool_schema_publishing_kit: "1.0.0"; tool_schema_generator: "tool-schema-generator-core"; json_schema_to_tool_definition: "json-schema-to-tool-definition-core"; structured_schema: "utilito.schema-contract.v1"; tool_calling_validator: "tool-calling-validator-core"; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "CREDENTIAL_FIELD_REJECTED" | "DANGEROUS_NAME" | "INVALID_SCHEMA" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_FAILURE_REGISTRY" | "FIXTURE_VALIDATION_FAILED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; path?: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "tool-schema-publishing-kit"; version: "1.0.0"; }; result: { canonical_json_schema: { [key: string]: unknown; }; openai_definition: { type: "function"; function: { name: string; description: string; parameters: { [key: string]: unknown; }; }; }; anthropic_definition: { name: string; description: string; input_schema: { [key: string]: unknown; }; }; mcp_schema: { name: string; description: string; inputSchema: { [key: string]: unknown; }; outputSchema?: { [key: string]: unknown; }; }; openapi_fragment: { openapi: "3.1.0"; "x-utilito-typed-failures": Array<{ code: string; description: string; retryable: boolean; }>; paths: { [key: string]: unknown; }; }; executable_fixture: { tool_name: string; input: { [key: string]: unknown; }; validation: { valid: true; validator: "utilito.schema-contract.v1"; }; }; generated_assertions: { runtime: "node"; node_source: string; }; markdown_docs: string; provider_support: Array<{ provider: "openai" | "anthropic" | "mcp" | "openapi"; input_schema: "represented"; output_schema: "represented" | "unsupported_explicit" | "not_supplied"; typed_failures: "documentation_only" | "documented_responses"; }>; typed_failures: Array<{ code: string; description: string; retryable: boolean; }>; artifact_manifest: Array<{ name: string; media_type: string; bytes: number; }>; safety: { tool_execution: false; publication: false; provider_calls: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; reflection: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: Array<"OPENAI_OUTPUT_SCHEMA_UNSUPPORTED" | "ANTHROPIC_OUTPUT_SCHEMA_UNSUPPORTED">; artifacts: number; schema_nodes: number; properties: number; typed_failures: number; fixture_valid: boolean; values_invented: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { tool_schema_publishing_kit: "1.0.0"; tool_schema_generator: "tool-schema-generator-core"; json_schema_to_tool_definition: "json-schema-to-tool-definition-core"; structured_schema: "utilito.schema-contract.v1"; tool_calling_validator: "tool-calling-validator-core"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "tool-schema-publishing-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: Array<"OPENAI_OUTPUT_SCHEMA_UNSUPPORTED" | "ANTHROPIC_OUTPUT_SCHEMA_UNSUPPORTED">; artifacts: number; schema_nodes: number; properties: number; typed_failures: number; fixture_valid: boolean; values_invented: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { tool_schema_publishing_kit: "1.0.0"; tool_schema_generator: "tool-schema-generator-core"; json_schema_to_tool_definition: "json-schema-to-tool-definition-core"; structured_schema: "utilito.schema-contract.v1"; tool_calling_validator: "tool-calling-validator-core"; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "CREDENTIAL_FIELD_REJECTED" | "DANGEROUS_NAME" | "INVALID_SCHEMA" | "UNSUPPORTED_SCHEMA_FEATURE" | "INVALID_FAILURE_REGISTRY" | "FIXTURE_VALIDATION_FAILED" | "OUTPUT_TOO_LARGE"; message: string; hint: string; path?: string; }; }); export type typescript_to_json_schemaInput = { input?: string; source?: string; name?: string; [key: string]: unknown; }; export type typescript_to_json_schemaOutput = { [key: string]: unknown; }; export type ulid_generatorInput = { count?: number; [key: string]: unknown; }; export type ulid_generatorOutput = { [key: string]: unknown; }; export type unit_converterInput = { value?: number; fromUnit?: string; toUnit?: string; category?: string; [key: string]: unknown; }; export type unit_converterOutput = { [key: string]: unknown; }; export type untrusted_input_admissionInput = { serialized_json: string; admission_profile: "strict-json-v1"; }; export type untrusted_input_admissionOutput = ({ ok: boolean; schema_version: "utilito.untrusted-input-admission.v1"; version: "1.0.0"; result: null | { decision: "admitted"; root_kind: "object" | "array" | "string" | "number" | "boolean" | "null"; metrics: { source_utf8_bytes: number; canonical_utf8_bytes: number; nodes: number; max_depth: number; max_fanout: number; objects: number; arrays: number; properties: number; array_items: number; strings: number; numbers: number; booleans: number; nulls: number; }; guarantees: { serialized_boundary: true; proxies_possible: false; accessors_possible: false; duplicate_keys_present: false; dangerous_keys_present: false; credential_like_input_present: false; keys_reflected: false; values_reflected: false; canonical_value_returned: false; active_content_interpreted: false; }; }; receipt: { input_bytes: number; output_bytes: number; source_utf8_bytes: number; nodes: number; omitted_items: 0; } | { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null | { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "EMPTY_INPUT" | "SENSITIVE_INPUT" | "MALFORMED_JSON" | "DUPLICATE_KEY" | "DANGEROUS_KEY" | "STRING_LIMIT" | "DEPTH_LIMIT" | "NODE_LIMIT" | "FANOUT_LIMIT"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.untrusted-input-admission.v1"; version: "1.0.0"; result: { decision: "admitted"; root_kind: "object" | "array" | "string" | "number" | "boolean" | "null"; metrics: { source_utf8_bytes: number; canonical_utf8_bytes: number; nodes: number; max_depth: number; max_fanout: number; objects: number; arrays: number; properties: number; array_items: number; strings: number; numbers: number; booleans: number; nulls: number; }; guarantees: { serialized_boundary: true; proxies_possible: false; accessors_possible: false; duplicate_keys_present: false; dangerous_keys_present: false; credential_like_input_present: false; keys_reflected: false; values_reflected: false; canonical_value_returned: false; active_content_interpreted: false; }; }; receipt: { input_bytes: number; output_bytes: number; source_utf8_bytes: number; nodes: number; omitted_items: 0; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: null; } | { ok: false; schema_version: "utilito.untrusted-input-admission.v1"; version: "1.0.0"; result: null; receipt: { input_bytes: number; output_bytes: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; telemetry_used: false; repository_reads: false; filesystem_reads: false; credentials_accepted: false; submitted_inputs_only: true; }; error: { code: "INVALID_INPUT" | "INPUT_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "LIMIT_EXCEEDED" | "UNSAFE_VALUE" | "EMPTY_INPUT" | "SENSITIVE_INPUT" | "MALFORMED_JSON" | "DUPLICATE_KEY" | "DANGEROUS_KEY" | "STRING_LIMIT" | "DEPTH_LIMIT" | "NODE_LIMIT" | "FANOUT_LIMIT"; message: string; hint: string; }; }); export type url_encoderInput = { input?: string; action?: string; mode?: string; [key: string]: unknown; }; export type url_encoderOutput = { [key: string]: unknown; }; export type utility_cost_estimatorInput = { watts?: number; hoursPerDay?: number; rate?: number; [key: string]: unknown; }; export type utility_cost_estimatorOutput = { [key: string]: unknown; }; export type uuid_generatorInput = { count?: number; [key: string]: unknown; }; export type uuid_generatorOutput = { [key: string]: unknown; }; export type web_release_qa_kitInput = { release: { id: string; version: string; }; page_artifact?: { html_ref: string; html: string; headers_ref: string; headers: string; }; images: Array<{ id: string; ref: string; format: string; width: number; height: number; bytes: number; has_alpha: boolean; }>; text_artifacts: Array<{ ref: string; text: string; }>; regression_checks: Array<{ id: string; status: "pass" | "block" | "unknown"; severity: "critical" | "high" | "medium" | "low"; artifact_refs: Array; }>; policy: { domains: { accessibility: "required" | "informational" | "unsupported"; page_quality: "required" | "informational" | "unsupported"; security_headers: "required" | "informational" | "unsupported"; image_delivery: "required" | "informational" | "unsupported"; integrity: "required" | "informational" | "unsupported"; regression: "required" | "informational" | "unsupported"; }; required_regression_ids: Array; report_format: "markdown" | "html"; }; }; export type web_release_qa_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "web-release-qa-kit"; version: "1.0.0"; }; result: null | { overall: "pass" | "block" | "unknown"; matrix: Array<{ domain: "accessibility" | "page_quality" | "security_headers" | "image_delivery" | "integrity" | "regression"; policy_mode: "required" | "informational" | "unsupported"; status: "pass" | "block" | "unknown"; counts: { checks: number; findings: number; critical: number; high: number; medium: number; low: number; }; check_ids: Array; artifact_refs: Array; }>; findings: Array<{ domain: "accessibility" | "page_quality" | "security_headers" | "image_delivery" | "regression"; check_id: string; code: string; severity: "critical" | "high" | "medium" | "low"; priority: number; ordinal: number; artifact_refs: Array; message: string; remediation: string; }>; integrity: { scope: "submitted_text_artifacts_only_not_deployment_verification"; algorithm: "sha256"; references: Array<{ ref: string; bytes: number; sha256: string; }>; }; regression: { submitted_unverified: true; checks: Array<{ id: string; status: "pass" | "block" | "unknown"; severity: "critical" | "high" | "medium" | "low"; artifact_refs: Array; }>; required_ids: Array; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; contains_raw_input: false; content: string; }; safety: { no_fetch: true; no_crawl: true; no_pentest: true; no_certification: true; }; scope_notice: string; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; matrix_domains: number; findings: number; integrity_references: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { web_release_qa_kit: string; accessibility_preflight: string; web_page_qa: string; http_security_diagnostics: string; image_delivery_audit: string; file_integrity_manifest: string; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "INVALID_RELEASE" | "INVALID_PAGE_ARTIFACT" | "TOO_MANY_IMAGES" | "INVALID_IMAGES" | "TOO_MANY_TEXT_ARTIFACTS" | "INVALID_TEXT_ARTIFACTS" | "TOO_MANY_REGRESSION_CHECKS" | "INVALID_REGRESSION_CHECKS" | "INVALID_POLICY" | "DUPLICATE_ID" | "DUPLICATE_REF" | "UNRESOLVED_REFERENCE" | "UNSAFE_IDENTIFIER" | "CORE_FAILURE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "web-release-qa-kit"; version: "1.0.0"; }; result: { overall: "pass" | "block" | "unknown"; matrix: Array<{ domain: "accessibility" | "page_quality" | "security_headers" | "image_delivery" | "integrity" | "regression"; policy_mode: "required" | "informational" | "unsupported"; status: "pass" | "block" | "unknown"; counts: { checks: number; findings: number; critical: number; high: number; medium: number; low: number; }; check_ids: Array; artifact_refs: Array; }>; findings: Array<{ domain: "accessibility" | "page_quality" | "security_headers" | "image_delivery" | "regression"; check_id: string; code: string; severity: "critical" | "high" | "medium" | "low"; priority: number; ordinal: number; artifact_refs: Array; message: string; remediation: string; }>; integrity: { scope: "submitted_text_artifacts_only_not_deployment_verification"; algorithm: "sha256"; references: Array<{ ref: string; bytes: number; sha256: string; }>; }; regression: { submitted_unverified: true; checks: Array<{ id: string; status: "pass" | "block" | "unknown"; severity: "critical" | "high" | "medium" | "low"; artifact_refs: Array; }>; required_ids: Array; }; report: { format: "markdown" | "html"; mime_type: "text/markdown" | "text/html"; contains_raw_input: false; content: string; }; safety: { no_fetch: true; no_crawl: true; no_pentest: true; no_certification: true; }; scope_notice: string; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; matrix_domains: number; findings: number; integrity_references: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { web_release_qa_kit: string; accessibility_preflight: string; web_page_qa: string; http_security_diagnostics: string; image_delivery_audit: string; file_integrity_manifest: string; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "web-release-qa-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: 0; warnings: []; matrix_domains: number; findings: number; integrity_references: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { web_release_qa_kit: string; accessibility_preflight: string; web_page_qa: string; http_security_diagnostics: string; image_delivery_audit: string; file_integrity_manifest: string; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "OUTPUT_TOO_LARGE" | "INVALID_RELEASE" | "INVALID_PAGE_ARTIFACT" | "TOO_MANY_IMAGES" | "INVALID_IMAGES" | "TOO_MANY_TEXT_ARTIFACTS" | "INVALID_TEXT_ARTIFACTS" | "TOO_MANY_REGRESSION_CHECKS" | "INVALID_REGRESSION_CHECKS" | "INVALID_POLICY" | "DUPLICATE_ID" | "DUPLICATE_REF" | "UNRESOLVED_REFERENCE" | "UNSAFE_IDENTIFIER" | "CORE_FAILURE"; message: string; hint: string; }; }); export type webhook_normalization_kitInput_webhook_schema_node = { type: "object"; properties: { [key: string]: webhook_normalization_kitInput_webhook_schema_node; }; required: Array; additionalProperties: false; } | { type: "array"; items: webhook_normalization_kitInput_webhook_schema_node; } | { type: "string"; enum?: Array; minLength?: number; maxLength?: number; } | { type: "number"; enum?: Array; minimum?: number; maximum?: number; } | { type: "integer"; enum?: Array; minimum?: number; maximum?: number; } | { type: "boolean"; enum?: Array; } | { type: "null"; enum?: Array; }; export type webhook_normalization_kitInput_webhook_string_schema = { type: "string"; enum?: Array; minLength?: number; maxLength?: number; }; export type webhook_normalization_kitInput = { fixtures: Array<{ label: string; payload: { [key: string]: unknown; }; }>; field_mapping: { event_id: unknown; event_name: unknown; occurred_at: unknown; [key: string]: string; }; event_name_mapping: { [key: string]: string; }; canonical_event_schema: { type: "object"; properties: { event_id: webhook_normalization_kitInput_webhook_string_schema; event_name: webhook_normalization_kitInput_webhook_string_schema; occurred_at: webhook_normalization_kitInput_webhook_string_schema; [key: string]: unknown; }; required: Array; additionalProperties: false; }; signature_test_metadata?: { algorithm_label?: string; signature_header_name?: string; timestamp_header_name?: string; fixture_label?: string; }; }; export type webhook_normalization_kitOutput = ({ ok: boolean; schema_version: "utilito.product-kit.v1"; kit: { id: "webhook-normalization-kit"; version: "1.0.0"; }; result: null | { normalized_fixtures: Array<{ fixture_index: number; label: string; event: { [key: string]: unknown; }; diagnostics: Array<{ code: "UNMAPPED_EVENT_NAME" | "MAPPED_FIELD_MISSING" | "MAPPING_PATH_CONFLICT" | "SCHEMA_ENUM_MISMATCH" | "SCHEMA_TYPE_MISMATCH" | "SCHEMA_REQUIRED_MISSING" | "SCHEMA_UNKNOWN_FIELD" | "SCHEMA_LENGTH_MISMATCH" | "SCHEMA_RANGE_MISMATCH" | "DUPLICATE_EVENT_ID"; canonical_path?: string; caller_path?: string; path?: string; first_occurrence_unreported?: true; }>; }>; rejected_event_diagnostics: Array<{ fixture_index: number; label: string; diagnostics: Array<{ code: "UNMAPPED_EVENT_NAME" | "MAPPED_FIELD_MISSING" | "MAPPING_PATH_CONFLICT" | "SCHEMA_ENUM_MISMATCH" | "SCHEMA_TYPE_MISMATCH" | "SCHEMA_REQUIRED_MISSING" | "SCHEMA_UNKNOWN_FIELD" | "SCHEMA_LENGTH_MISMATCH" | "SCHEMA_RANGE_MISMATCH" | "DUPLICATE_EVENT_ID"; canonical_path?: string; caller_path?: string; path?: string; first_occurrence_unreported?: true; }>; review_fixture: { mapping_attempt: { [key: string]: unknown; }; payload_included: false; }; }>; mapping_table: Array<{ canonical_path: string; caller_path: string; explicit: true; transformation: "exact_copy" | "event_name_mapping"; }>; deterministic_handler_fixture: { runtime: "node"; node_source: string; executes_events: false; }; integration_report: { format: "markdown"; contains_raw_payloads: false; content: string; }; signature_test_metadata_receipt: { supplied: boolean; fields: Array<"algorithm_label" | "fixture_label" | "signature_header_name" | "timestamp_header_name">; values_retained: false; verified: false; }; artifact_manifest: Array<{ name: string; media_type: string; bytes: number; }>; trust: { timestamps: "caller_submitted_untrusted"; signatures: "caller_submitted_test_metadata_untrusted_not_verified" | "not_supplied"; }; safety: { provider_guessing: false; receiving_endpoint: false; outbound_delivery: false; signature_verified: false; secret_retention: false; events_executed: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"DUPLICATE_EVENT_IDS_REPORTED">; fixtures: number; normalized_fixtures: number; rejected_fixtures: number; duplicate_event_ids: number; mappings: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { webhook_normalization_kit: "1.0.0"; agent_payload_fixture: "agent-payload-fixture-core"; structured_schema: "utilito.schema-contract.v1"; json_repair: "1.0.0"; }; }; error: null | { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "CREDENTIAL_FIELD_REJECTED" | "DANGEROUS_KEY" | "INVALID_MAPPING" | "INVALID_CANONICAL_SCHEMA" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }) & ({ ok: true; schema_version: "utilito.product-kit.v1"; kit: { id: "webhook-normalization-kit"; version: "1.0.0"; }; result: { normalized_fixtures: Array<{ fixture_index: number; label: string; event: { [key: string]: unknown; }; diagnostics: Array<{ code: "UNMAPPED_EVENT_NAME" | "MAPPED_FIELD_MISSING" | "MAPPING_PATH_CONFLICT" | "SCHEMA_ENUM_MISMATCH" | "SCHEMA_TYPE_MISMATCH" | "SCHEMA_REQUIRED_MISSING" | "SCHEMA_UNKNOWN_FIELD" | "SCHEMA_LENGTH_MISMATCH" | "SCHEMA_RANGE_MISMATCH" | "DUPLICATE_EVENT_ID"; canonical_path?: string; caller_path?: string; path?: string; first_occurrence_unreported?: true; }>; }>; rejected_event_diagnostics: Array<{ fixture_index: number; label: string; diagnostics: Array<{ code: "UNMAPPED_EVENT_NAME" | "MAPPED_FIELD_MISSING" | "MAPPING_PATH_CONFLICT" | "SCHEMA_ENUM_MISMATCH" | "SCHEMA_TYPE_MISMATCH" | "SCHEMA_REQUIRED_MISSING" | "SCHEMA_UNKNOWN_FIELD" | "SCHEMA_LENGTH_MISMATCH" | "SCHEMA_RANGE_MISMATCH" | "DUPLICATE_EVENT_ID"; canonical_path?: string; caller_path?: string; path?: string; first_occurrence_unreported?: true; }>; review_fixture: { mapping_attempt: { [key: string]: unknown; }; payload_included: false; }; }>; mapping_table: Array<{ canonical_path: string; caller_path: string; explicit: true; transformation: "exact_copy" | "event_name_mapping"; }>; deterministic_handler_fixture: { runtime: "node"; node_source: string; executes_events: false; }; integration_report: { format: "markdown"; contains_raw_payloads: false; content: string; }; signature_test_metadata_receipt: { supplied: boolean; fields: Array<"algorithm_label" | "fixture_label" | "signature_header_name" | "timestamp_header_name">; values_retained: false; verified: false; }; artifact_manifest: Array<{ name: string; media_type: string; bytes: number; }>; trust: { timestamps: "caller_submitted_untrusted"; signatures: "caller_submitted_test_metadata_untrusted_not_verified" | "not_supplied"; }; safety: { provider_guessing: false; receiving_endpoint: false; outbound_delivery: false; signature_verified: false; secret_retention: false; events_executed: false; network_used: false; model_used: false; storage_used: false; telemetry_used: false; }; }; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"DUPLICATE_EVENT_IDS_REPORTED">; fixtures: number; normalized_fixtures: number; rejected_fixtures: number; duplicate_event_ids: number; mappings: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { webhook_normalization_kit: "1.0.0"; agent_payload_fixture: "agent-payload-fixture-core"; structured_schema: "utilito.schema-contract.v1"; json_repair: "1.0.0"; }; }; error: null; } | { ok: false; schema_version: "utilito.product-kit.v1"; kit: { id: "webhook-normalization-kit"; version: "1.0.0"; }; result: null; receipt: { input_bytes: number; output_bytes: number; operations: number; omitted_items: number; warnings: Array<"DUPLICATE_EVENT_IDS_REPORTED">; fixtures: number; normalized_fixtures: number; rejected_fixtures: number; duplicate_event_ids: number; mappings: number; artifacts: number; }; provenance: { deterministic: true; model_used: false; network_used: false; storage_used: false; core_versions: { webhook_normalization_kit: "1.0.0"; agent_payload_fixture: "agent-payload-fixture-core"; structured_schema: "utilito.schema-contract.v1"; json_repair: "1.0.0"; }; }; error: { code: "INVALID_INPUT" | "PAYLOAD_TOO_LARGE" | "CREDENTIAL_FIELD_REJECTED" | "DANGEROUS_KEY" | "INVALID_MAPPING" | "INVALID_CANONICAL_SCHEMA" | "OUTPUT_TOO_LARGE"; message: string; hint: string; }; }); export type whitespace_normalizerInput = { text?: string; mode?: string; [key: string]: unknown; }; export type whitespace_normalizerOutput = { [key: string]: unknown; }; export type xml_formatterInput = { input?: string; action?: string; [key: string]: unknown; }; export type xml_formatterOutput = { [key: string]: unknown; }; export type yaml_formatterInput = { input?: string; action?: string; [key: string]: unknown; }; export type yaml_formatterOutput = { [key: string]: unknown; }; export interface UtilitoInputByTool { "accessibility-remediation-kit": accessibility_remediation_kitInput; "age-calculator": age_calculatorInput; "agent-capability-policy-auditor": agent_capability_policy_auditorInput; "agent-connection-diagnostic-kit": agent_connection_diagnostic_kitInput; "agent-context-handoff": agent_context_handoffInput; "agent-contract-check": agent_contract_checkInput; "agent-plan-parallelism-auditor": agent_plan_parallelism_auditorInput; "agent-run-forensics-handoff-kit": agent_run_forensics_handoff_kitInput; "agent-run-state-validator": agent_run_state_validatorInput; "agent-tool-call-replay-kit": agent_tool_call_replay_kitInput; "api-failure-diagnostic": api_failure_diagnosticInput; "api-fixture-matrix": api_fixture_matrixInput; "api-migration-kit": api_migration_kitInput; "api-pagination-contract-planner": api_pagination_contract_plannerInput; "artifact-delivery-manifest": artifact_delivery_manifestInput; "artifact-lineage-integrity-auditor": artifact_lineage_integrity_auditorInput; "aspect-ratio-calculator": aspect_ratio_calculatorInput; "bandwidth-calculator": bandwidth_calculatorInput; "base64": base64Input; "batch-retry-safety-planner": batch_retry_safety_plannerInput; "bmi-calculator": bmi_calculatorInput; "business-days-calculator": business_days_calculatorInput; "calorie-macro-calculator": calorie_macro_calculatorInput; "case-converter": case_converterInput; "change-impact-test-selection-planner": change_impact_test_selection_plannerInput; "ci-failure-review-kit": ci_failure_review_kitInput; "ci-regression-diff": ci_regression_diffInput; "citation-quote-integrity": citation_quote_integrityInput; "claim-evidence-coverage": claim_evidence_coverageInput; "compound-interest-calculator": compound_interest_calculatorInput; "config-format-converter": config_format_converterInput; "configuration-drift-reconciliation": configuration_drift_reconciliationInput; "configuration-migration-kit": configuration_migration_kitInput; "context-budget-planning-kit": context_budget_planning_kitInput; "context-distill": context_distillInput; "context-pack-builder": context_pack_builderInput; "context-window-calculator": context_window_calculatorInput; "contract-conformance-repair": contract_conformance_repairInput; "contract-release-gate-kit": contract_release_gate_kitInput; "contract-reliability-workbench": contract_reliability_workbenchInput; "cron-expression-explainer": cron_expression_explainerInput; "cron-parser": cron_parserInput; "csv-jsonl-converter": csv_jsonl_converterInput; "csv-to-json": csv_to_jsonInput; "curl-converter": curl_converterInput; "currency-converter": currency_converterInput; "data-migration-prep-kit": data_migration_prep_kitInput; "data-transfer-time-calculator": data_transfer_time_calculatorInput; "date-difference-calculator": date_difference_calculatorInput; "dependency-manifest-reconciliation": dependency_manifest_reconciliationInput; "discount-calculator": discount_calculatorInput; "dpi-ppi-calculator": dpi_ppi_calculatorInput; "duplicate-line-remover": duplicate_line_removerInput; "environment-contract-compiler": environment_contract_compilerInput; "eval-dataset-jsonl-formatter": eval_dataset_jsonl_formatterInput; "evaluation-dataset-qa-kit": evaluation_dataset_qa_kitInput; "evaluation-run-delta": evaluation_run_deltaInput; "evidence-report-builder": evidence_report_builderInput; "file-hash-checksum-verifier": file_hash_checksum_verifierInput; "file-size-converter": file_size_converterInput; "file-verification-handoff-kit": file_verification_handoff_kitInput; "finance-scenario-memo-kit": finance_scenario_memo_kitInput; "gpa-calculator": gpa_calculatorInput; "hash-generator": hash_generatorInput; "html-to-agent-markdown": html_to_agent_markdownInput; "http-security-remediation-kit": http_security_remediation_kitInput; "image-delivery-audit-kit": image_delivery_audit_kitInput; "image-delivery-production-kit": image_delivery_production_kitInput; "integration-launch-kit": integration_launch_kitInput; "invoice-generator": invoice_generatorInput; "json-formatter": json_formatterInput; "json-path-tester": json_path_testerInput; "json-query": json_queryInput; "json-repair": json_repairInput; "json-schema-compatibility-diff": json_schema_compatibility_diffInput; "json-schema-to-tool-definition": json_schema_to_tool_definitionInput; "json-schema-validator": json_schema_validatorInput; "json-shrink": json_shrinkInput; "json-to-csv": json_to_csvInput; "jwt-debugger": jwt_debuggerInput; "jwt-decoder": jwt_decoderInput; "large-payload-reduction-kit": large_payload_reduction_kitInput; "loan-calculator": loan_calculatorInput; "log-context-trimmer": log_context_trimmerInput; "margin-markup-calculator": margin_markup_calculatorInput; "markdown-cleaner": markdown_cleanerInput; "mcp-config-generator": mcp_config_generatorInput; "mermaid-diagram-delivery-kit": mermaid_diagram_delivery_kitInput; "mermaid-renderer": mermaid_rendererInput; "mortgage-calculator": mortgage_calculatorInput; "nanoid-generator": nanoid_generatorInput; "number-base": number_baseInput; "offline-api-batch-production-kit": offline_api_batch_production_kitInput; "openapi-surface-delta": openapi_surface_deltaInput; "password-strength-checker": password_strength_checkerInput; "pdf-deliverable-assembly-kit": pdf_deliverable_assembly_kitInput; "percentage-calculator": percentage_calculatorInput; "policy-decision-table": policy_decision_tableInput; "product-contract-review-kit": product_contract_review_kitInput; "prompt-cost-calculator": prompt_cost_calculatorInput; "prompt-regression-kit": prompt_regression_kitInput; "prompt-template-schema-builder": prompt_template_schema_builderInput; "provider-message-migration-kit": provider_message_migration_kitInput; "provider-request-envelope": provider_request_envelopeInput; "rag-evidence-preparation-kit": rag_evidence_preparation_kitInput; "random-number-generator": random_number_generatorInput; "reading-time-calculator": reading_time_calculatorInput; "regex-tester": regex_testerInput; "release-evidence-delta": release_evidence_deltaInput; "release-evidence-kit": release_evidence_kitInput; "retirement-calculator": retirement_calculatorInput; "roi-calculator": roi_calculatorInput; "sales-tax-calculator": sales_tax_calculatorInput; "sarif-findings-reconciliation": sarif_findings_reconciliationInput; "schema-converter": schema_converterInput; "scientific-calculator": scientific_calculatorInput; "sensitive-log-redaction-evidence": sensitive_log_redaction_evidenceInput; "slug-generator": slug_generatorInput; "sort-lines": sort_linesInput; "streaming-tool-call-assembler": streaming_tool_call_assemblerInput; "structured-data-reconciliation": structured_data_reconciliationInput; "structured-output-recovery-kit": structured_output_recovery_kitInput; "structured-output-rescue": structured_output_rescueInput; "subagent-delegation-contract-compiler": subagent_delegation_contract_compilerInput; "subnet-calculator": subnet_calculatorInput; "tax-estimator": tax_estimatorInput; "test-run-stability-matrix": test_run_stability_matrixInput; "three-way-structured-merge": three_way_structured_mergeInput; "time-duration-calculator": time_duration_calculatorInput; "time-zone-converter": time_zone_converterInput; "timestamp-converter": timestamp_converterInput; "tip-calculator": tip_calculatorInput; "token-counter": token_counterInput; "toml-formatter": toml_formatterInput; "tool-call-interoperability": tool_call_interoperabilityInput; "tool-call-trace-conformance": tool_call_trace_conformanceInput; "tool-calling-validator": tool_calling_validatorInput; "tool-catalog-context-budget-auditor": tool_catalog_context_budget_auditorInput; "tool-schema-generator": tool_schema_generatorInput; "tool-schema-publishing-kit": tool_schema_publishing_kitInput; "typescript-to-json-schema": typescript_to_json_schemaInput; "ulid-generator": ulid_generatorInput; "unit-converter": unit_converterInput; "untrusted-input-admission": untrusted_input_admissionInput; "url-encoder": url_encoderInput; "utility-cost-estimator": utility_cost_estimatorInput; "uuid-generator": uuid_generatorInput; "web-release-qa-kit": web_release_qa_kitInput; "webhook-normalization-kit": webhook_normalization_kitInput; "whitespace-normalizer": whitespace_normalizerInput; "xml-formatter": xml_formatterInput; "yaml-formatter": yaml_formatterInput; } export interface UtilitoOutputByTool { "accessibility-remediation-kit": accessibility_remediation_kitOutput; "age-calculator": age_calculatorOutput; "agent-capability-policy-auditor": agent_capability_policy_auditorOutput; "agent-connection-diagnostic-kit": agent_connection_diagnostic_kitOutput; "agent-context-handoff": agent_context_handoffOutput; "agent-contract-check": agent_contract_checkOutput; "agent-plan-parallelism-auditor": agent_plan_parallelism_auditorOutput; "agent-run-forensics-handoff-kit": agent_run_forensics_handoff_kitOutput; "agent-run-state-validator": agent_run_state_validatorOutput; "agent-tool-call-replay-kit": agent_tool_call_replay_kitOutput; "api-failure-diagnostic": api_failure_diagnosticOutput; "api-fixture-matrix": api_fixture_matrixOutput; "api-migration-kit": api_migration_kitOutput; "api-pagination-contract-planner": api_pagination_contract_plannerOutput; "artifact-delivery-manifest": artifact_delivery_manifestOutput; "artifact-lineage-integrity-auditor": artifact_lineage_integrity_auditorOutput; "aspect-ratio-calculator": aspect_ratio_calculatorOutput; "bandwidth-calculator": bandwidth_calculatorOutput; "base64": base64Output; "batch-retry-safety-planner": batch_retry_safety_plannerOutput; "bmi-calculator": bmi_calculatorOutput; "business-days-calculator": business_days_calculatorOutput; "calorie-macro-calculator": calorie_macro_calculatorOutput; "case-converter": case_converterOutput; "change-impact-test-selection-planner": change_impact_test_selection_plannerOutput; "ci-failure-review-kit": ci_failure_review_kitOutput; "ci-regression-diff": ci_regression_diffOutput; "citation-quote-integrity": citation_quote_integrityOutput; "claim-evidence-coverage": claim_evidence_coverageOutput; "compound-interest-calculator": compound_interest_calculatorOutput; "config-format-converter": config_format_converterOutput; "configuration-drift-reconciliation": configuration_drift_reconciliationOutput; "configuration-migration-kit": configuration_migration_kitOutput; "context-budget-planning-kit": context_budget_planning_kitOutput; "context-distill": context_distillOutput; "context-pack-builder": context_pack_builderOutput; "context-window-calculator": context_window_calculatorOutput; "contract-conformance-repair": contract_conformance_repairOutput; "contract-release-gate-kit": contract_release_gate_kitOutput; "contract-reliability-workbench": contract_reliability_workbenchOutput; "cron-expression-explainer": cron_expression_explainerOutput; "cron-parser": cron_parserOutput; "csv-jsonl-converter": csv_jsonl_converterOutput; "csv-to-json": csv_to_jsonOutput; "curl-converter": curl_converterOutput; "currency-converter": currency_converterOutput; "data-migration-prep-kit": data_migration_prep_kitOutput; "data-transfer-time-calculator": data_transfer_time_calculatorOutput; "date-difference-calculator": date_difference_calculatorOutput; "dependency-manifest-reconciliation": dependency_manifest_reconciliationOutput; "discount-calculator": discount_calculatorOutput; "dpi-ppi-calculator": dpi_ppi_calculatorOutput; "duplicate-line-remover": duplicate_line_removerOutput; "environment-contract-compiler": environment_contract_compilerOutput; "eval-dataset-jsonl-formatter": eval_dataset_jsonl_formatterOutput; "evaluation-dataset-qa-kit": evaluation_dataset_qa_kitOutput; "evaluation-run-delta": evaluation_run_deltaOutput; "evidence-report-builder": evidence_report_builderOutput; "file-hash-checksum-verifier": file_hash_checksum_verifierOutput; "file-size-converter": file_size_converterOutput; "file-verification-handoff-kit": file_verification_handoff_kitOutput; "finance-scenario-memo-kit": finance_scenario_memo_kitOutput; "gpa-calculator": gpa_calculatorOutput; "hash-generator": hash_generatorOutput; "html-to-agent-markdown": html_to_agent_markdownOutput; "http-security-remediation-kit": http_security_remediation_kitOutput; "image-delivery-audit-kit": image_delivery_audit_kitOutput; "image-delivery-production-kit": image_delivery_production_kitOutput; "integration-launch-kit": integration_launch_kitOutput; "invoice-generator": invoice_generatorOutput; "json-formatter": json_formatterOutput; "json-path-tester": json_path_testerOutput; "json-query": json_queryOutput; "json-repair": json_repairOutput; "json-schema-compatibility-diff": json_schema_compatibility_diffOutput; "json-schema-to-tool-definition": json_schema_to_tool_definitionOutput; "json-schema-validator": json_schema_validatorOutput; "json-shrink": json_shrinkOutput; "json-to-csv": json_to_csvOutput; "jwt-debugger": jwt_debuggerOutput; "jwt-decoder": jwt_decoderOutput; "large-payload-reduction-kit": large_payload_reduction_kitOutput; "loan-calculator": loan_calculatorOutput; "log-context-trimmer": log_context_trimmerOutput; "margin-markup-calculator": margin_markup_calculatorOutput; "markdown-cleaner": markdown_cleanerOutput; "mcp-config-generator": mcp_config_generatorOutput; "mermaid-diagram-delivery-kit": mermaid_diagram_delivery_kitOutput; "mermaid-renderer": mermaid_rendererOutput; "mortgage-calculator": mortgage_calculatorOutput; "nanoid-generator": nanoid_generatorOutput; "number-base": number_baseOutput; "offline-api-batch-production-kit": offline_api_batch_production_kitOutput; "openapi-surface-delta": openapi_surface_deltaOutput; "password-strength-checker": password_strength_checkerOutput; "pdf-deliverable-assembly-kit": pdf_deliverable_assembly_kitOutput; "percentage-calculator": percentage_calculatorOutput; "policy-decision-table": policy_decision_tableOutput; "product-contract-review-kit": product_contract_review_kitOutput; "prompt-cost-calculator": prompt_cost_calculatorOutput; "prompt-regression-kit": prompt_regression_kitOutput; "prompt-template-schema-builder": prompt_template_schema_builderOutput; "provider-message-migration-kit": provider_message_migration_kitOutput; "provider-request-envelope": provider_request_envelopeOutput; "rag-evidence-preparation-kit": rag_evidence_preparation_kitOutput; "random-number-generator": random_number_generatorOutput; "reading-time-calculator": reading_time_calculatorOutput; "regex-tester": regex_testerOutput; "release-evidence-delta": release_evidence_deltaOutput; "release-evidence-kit": release_evidence_kitOutput; "retirement-calculator": retirement_calculatorOutput; "roi-calculator": roi_calculatorOutput; "sales-tax-calculator": sales_tax_calculatorOutput; "sarif-findings-reconciliation": sarif_findings_reconciliationOutput; "schema-converter": schema_converterOutput; "scientific-calculator": scientific_calculatorOutput; "sensitive-log-redaction-evidence": sensitive_log_redaction_evidenceOutput; "slug-generator": slug_generatorOutput; "sort-lines": sort_linesOutput; "streaming-tool-call-assembler": streaming_tool_call_assemblerOutput; "structured-data-reconciliation": structured_data_reconciliationOutput; "structured-output-recovery-kit": structured_output_recovery_kitOutput; "structured-output-rescue": structured_output_rescueOutput; "subagent-delegation-contract-compiler": subagent_delegation_contract_compilerOutput; "subnet-calculator": subnet_calculatorOutput; "tax-estimator": tax_estimatorOutput; "test-run-stability-matrix": test_run_stability_matrixOutput; "three-way-structured-merge": three_way_structured_mergeOutput; "time-duration-calculator": time_duration_calculatorOutput; "time-zone-converter": time_zone_converterOutput; "timestamp-converter": timestamp_converterOutput; "tip-calculator": tip_calculatorOutput; "token-counter": token_counterOutput; "toml-formatter": toml_formatterOutput; "tool-call-interoperability": tool_call_interoperabilityOutput; "tool-call-trace-conformance": tool_call_trace_conformanceOutput; "tool-calling-validator": tool_calling_validatorOutput; "tool-catalog-context-budget-auditor": tool_catalog_context_budget_auditorOutput; "tool-schema-generator": tool_schema_generatorOutput; "tool-schema-publishing-kit": tool_schema_publishing_kitOutput; "typescript-to-json-schema": typescript_to_json_schemaOutput; "ulid-generator": ulid_generatorOutput; "unit-converter": unit_converterOutput; "untrusted-input-admission": untrusted_input_admissionOutput; "url-encoder": url_encoderOutput; "utility-cost-estimator": utility_cost_estimatorOutput; "uuid-generator": uuid_generatorOutput; "web-release-qa-kit": web_release_qa_kitOutput; "webhook-normalization-kit": webhook_normalization_kitOutput; "whitespace-normalizer": whitespace_normalizerOutput; "xml-formatter": xml_formatterOutput; "yaml-formatter": yaml_formatterOutput; } export type UtilitoRunRequest = UtilitoResponseModeForTool> = T extends UtilitoToolId ? { tool_id: T; input?: UtilitoInputByTool[T]; options?: Record; response_mode?: M } : never; export type UtilitoBatchItemRequest = T extends UtilitoToolId ? { id: string; tool_id: T; input?: UtilitoInputByTool[T]; options?: Record; response_mode?: 'full' } : never; export type UtilitoBatchRequest = { requests: UtilitoBatchItemRequest[] }; export type UtilitoPipelineStep = T extends PipelineToolId ? { tool_id: T; input: Record } : never; export type UtilitoPipelineComposition = { input: PipelineJsonValue; steps: UtilitoPipelineStep[] }; export type UtilitoTypedError = { code: string; message: string; path?: string; hint?: string; [key: string]: unknown }; export type UtilitoFullResponse = { success: true; tool_id: T; result: UtilitoOutputByTool[T]; tokens_saved_estimate: number; processing_time_ms: number }; export type UtilitoCompactResponse = { ok: boolean; output: unknown; stats?: Record; warnings?: unknown[] }; export type UtilitoRawOutput = { kind: 'json'; value: unknown; bytes: Uint8Array; media_type: string; extension: 'json' } | { kind: 'text'; value: string; bytes: Uint8Array; media_type: string; extension: string } | { kind: 'binary'; bytes: Uint8Array; media_type: string; extension: string }; export type UtilitoClientSuccess = UtilitoResponseModeForTool> = M extends 'output' ? { ok: true; http_status: number; output: UtilitoRawOutput } : { ok: true; http_status: number; body: M extends 'compact' ? UtilitoCompactResponse : UtilitoFullResponse }; export type UtilitoClientFailure = { ok: false; http_status: number; retry_after?: string; admission?: string; rate_limit_remaining?: string; error: UtilitoTypedError }; export type UtilitoClientResult = UtilitoResponseModeForTool> = UtilitoClientSuccess | UtilitoClientFailure;