{"partialResults":false,"resources":[{"accepts":[{"amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x8CDcbCAC0453b1e94aFf0DDB552d409fea6b7F9F","scheme":"exact"},{"amount":"5000","asset":"0xaf88d065e77c8cC2239327C5EDb3A432268e5831","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:42161","payTo":"0x8CDcbCAC0453b1e94aFf0DDB552d409fea6b7F9F","scheme":"exact"},{"amount":"5000","asset":"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:137","payTo":"0x8CDcbCAC0453b1e94aFf0DDB552d409fea6b7F9F","scheme":"exact"}],"description":"Validate 2 to 5 CSV files against one shared import schema, with optional header_aliases. Passing files return typed JSON. Failed files return row and column issue codes without cell values. Accepts 262,144 combined characters and 1,000 records per file. Deterministic; no model call. $0.005 USDC per batch.","extensions":{"bazaar":{"info":{"input":{"body":{"coerce_types":true,"columns":{"active":"boolean","quantity":"integer","sku":"string"},"items":["sku,quantity,active\nA1,3,true","sku,quantity,active\nA2,no,false"],"required":["sku","quantity","active"]},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"note":"Each CSV was cleaned, profiled, validated, and converted independently against the shared contract. Rejected files return issue metadata only; no source data is retained.","results":[{"coerced_types":["integer","boolean"],"columns":["sku","quantity","active"],"delimiter":"comma","index":1,"note":"CSV profile and caller-schema validation are complete; all records passed and were converted to JSON. Cell values are returned only for passing input, and no source data is retained.","ok":true,"profile":{"columns":[{"ambiguous":false,"distinct_values":1,"empty_values":0,"inferred_type":"string","name":"sku","non_empty_values":1,"unique_candidate":true},{"ambiguous":false,"distinct_values":1,"empty_values":0,"inferred_type":"integer","name":"quantity","non_empty_values":1,"unique_candidate":true},{"ambiguous":false,"distinct_values":1,"empty_values":0,"inferred_type":"boolean","name":"active","non_empty_values":1,"unique_candidate":true}],"issues":[],"note":"Types and required fields are inferred from the supplied sample only. Zero/one-only columns remain ambiguous, and malformed row widths suppress required-field inference. Review this draft schema and business meaning before using it as a production import contract. No cell values are returned.","suggested_json_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"active":{"type":"boolean"},"quantity":{"type":"integer"},"sku":{"type":"string"}},"required":["sku","quantity","active"],"title":"Draft schema inferred from a CSV sample","type":"object"},"summary":{"blank_records":0,"columns":3,"records":1,"width_mismatch_records":0}},"row_count":1,"rows":[{"active":true,"quantity":3,"sku":"A1"}],"skipped_blank_rows":0,"validation":{"issues":[],"ok":true,"summary":{"columns":3,"issue_count":0,"issue_counts":{},"issues_truncated":false,"records":1}},"value_types_coerced":true},{"delimiter":"comma","index":2,"note":"CSV profile and caller-schema validation are complete. No rows are returned because the input failed validation; review issue locations and codes, then correct and resubmit.","ok":false,"profile":{"columns":[{"ambiguous":false,"distinct_values":1,"empty_values":0,"inferred_type":"string","name":"sku","non_empty_values":1,"unique_candidate":true},{"ambiguous":false,"distinct_values":1,"empty_values":0,"inferred_type":"boolean","name":"quantity","non_empty_values":1,"unique_candidate":true},{"ambiguous":false,"distinct_values":1,"empty_values":0,"inferred_type":"boolean","name":"active","non_empty_values":1,"unique_candidate":true}],"issues":[],"note":"Types and required fields are inferred from the supplied sample only. Zero/one-only columns remain ambiguous, and malformed row widths suppress required-field inference. Review this draft schema and business meaning before using it as a production import contract. No cell values are returned.","suggested_json_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"active":{"type":"boolean"},"quantity":{"type":"boolean"},"sku":{"type":"string"}},"required":["sku","quantity","active"],"title":"Draft schema inferred from a CSV sample","type":"object"},"summary":{"blank_records":0,"columns":3,"records":1,"width_mismatch_records":0}},"rows":[],"validation":{"issues":[{"code":"invalid_value_type","column":"quantity","record":2}],"ok":false,"summary":{"columns":3,"issue_count":1,"issue_counts":{"invalid_value_type":1},"issues_truncated":false,"records":1}},"value_types_coerced":false}],"summary":{"failed":1,"files":2,"passed":1,"total_records":2}},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"coerce_types":{"description":"When true, convert declared integer, number, and boolean columns to native JSON numbers and booleans. Blank cells and string/date/email values remain strings.","type":"boolean"},"columns":{"additionalProperties":{"enum":["string","integer","number","boolean","date","email"],"type":"string"},"description":"Map expected CSV header names to types.","maxProperties":50,"minProperties":1,"type":"object"},"detect_duplicate_rows":{"description":"Optionally flag exact repeated full rows after trimming outer whitespace; reports row numbers only.","type":"boolean"},"flag_formula_cells":{"description":"Optionally flag cells beginning with spreadsheet formula markers; reports only row/column and does not return or change values.","type":"boolean"},"header_aliases":{"additionalProperties":{"maxLength":128,"minLength":1,"type":"string"},"description":"Map exact vendor CSV header names (after trim/BOM removal, case-sensitive) to declared schema column names before cleanup, profiling, validation, and conversion.","maxProperties":50,"type":"object"},"items":{"description":"Two to five CSV documents with a combined limit of 262,144 characters; each file is limited to 1,000 records.","items":{"minLength":1,"type":"string"},"maxItems":5,"minItems":2,"type":"array"},"required":{"description":"Columns that may not be empty; each name must also appear in columns.","items":{"type":"string"},"type":"array","uniqueItems":true},"rules":{"additionalProperties":{"additionalProperties":false,"properties":{"allowed":{"items":{"maxLength":256,"type":"string"},"maxItems":100,"type":"array"},"max":{"type":"number"},"min":{"type":"number"},"unique":{"type":"boolean"}},"type":"object"},"description":"Optional per-column rules, limited to 16,384 serialized characters.","maxProperties":50,"type":"object"},"transformations":{"additionalProperties":{"items":{"enum":["trim","collapse_whitespace","lowercase","uppercase","remove_control_characters"],"type":"string"},"maxItems":5,"minItems":1,"type":"array","uniqueItems":true},"description":"Optional ordered cleanup rules applied to selected data columns before validation and JSON conversion.","maxProperties":50,"minProperties":1,"type":"object"},"unique_by":{"description":"Optional composite keys. Each key lists 2 to 10 declared columns; duplicate complete tuples are reported without returning their values.","items":{"items":{"type":"string"},"maxItems":10,"minItems":2,"type":"array","uniqueItems":true},"maxItems":20,"type":"array"}},"required":["items","columns"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-12-02T09:53:03.136Z","quality":{"l30DaysTotalCalls":1,"l30DaysUniquePayers":1,"lastCalledAt":"2026-12-02T09:53:02.646Z"},"resource":"https://agent-evidence-extractor.defcronyke.workers.dev/v1/batch-csv-import-ready","tags":["validate-multiple-csv-files","multiple-csv-import","multi-file-csv-validation","batch-csv-validation","shared-schema"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"f55inm2z4ijx6aa"}}
