changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "actualWeightKg": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "assumptions": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "chargeableWeightKg": {
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "confidence": {
- "additionalProperties": false,
- "properties": {
- "level": {
- "enum": [
- "high",
- "medium",
- "low"
- ],
- "type": "string"
- },
- "reason": {
- "type": "string"
- }
- },
- "required": [
- "level",
- "reason"
- ],
- "type": "object"
- },
- "costBreakdown": {
- "additionalProperties": false,
- "properties": {
- "baseFreight": {
- "minimum": 0,
- "type": "number"
- },
- "estimatedOtherFees": {
- "minimum": 0,
- "type": "number"
- },
- "fuelSurcharge": {
- "minimum": 0,
- "type": "number"
- },
- "handling": {
- "minimum": 0,
- "type": "number"
- },
- "oversizeSurcharge": {
- "minimum": 0,
- "type": "number"
- },
- "remoteAreaSurcharge": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "baseFreight",
- "fuelSurcharge",
- "handling",
- "remoteAreaSurcharge",
- "oversizeSurcharge",
- "estimatedOtherFees"
- ],
- "type": "object"
- },
- "dutiesAndTaxes": {
- "additionalProperties": false,
- "properties": {
- "estimatedAmount": {
- "type": "null"
- },
- "included": {
- "const": false,
- "type": "boolean"
- },
- "note": {
- "type": "string"
- }
- },
- "required": [
- "included",
- "estimatedAmount",
- "note"
- ],
- "type": "object"
- },
- "estimatedCost": {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "type": "string"
- },
- "max": {
- "minimum": 0,
- "type": "number"
- },
- "min": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "min",
- "max",
- "currency"
- ],
- "type": "object"
- },
- "estimatedTransitDays": {
- "additionalProperties": false,
- "properties": {
- "max": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "min": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "min",
- "max"
- ],
- "type": "object"
- },
- "generatedAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- "options": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "estimatedCost": {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "type": "string"
- },
- "max": {
- "minimum": 0,
- "type": "number"
- },
- "min": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "min",
- "max",
- "currency"
- ],
- "type": "object"
- },
- "estimatedTransitDays": {
- "additionalProperties": false,
- "properties": {
- "max": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "min": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "min",
- "max"
- ],
- "type": "object"
- },
- "provider": {
- "type": [
- "string",
- "null"
- ]
- },
- "rateSource": {
- "enum": [
- "live_carrier",
- "internal_estimate",
- "heuristic_estimate"
- ],
- "type": "string"
- },
- "serviceLevel": {
- "enum": [
- "economy",
- "standard",
- "express"
- ],
- "type": "string"
- },
- "shippingMode": {
- "enum": [
- "courier",
- "air",
- "sea",
- "road",
- "postal"
- ],
- "type": "string"
- }
- },
- "required": [
- "shippingMode",
- "serviceLevel",
- "estimatedCost",
- "estimatedTransitDays",
- "rateSource",
- "provider"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "provider": {
- "type": [
- "string",
- "null"
- ]
- },
- "rateSource": {
- "enum": [
- "live_carrier",
- "internal_estimate",
- "heuristic_estimate"
- ],
- "type": "string"
- },
- "recommendedEstimate": {
- "minimum": 0,
- "type": "number"
- },
- "recommendedOptionReason": {
- "anyOf": [
- {
- "enum": [
- "lowest_estimated_cost",
- "shortest_transit",
- "balanced_cost_and_time"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "riskFlags": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "severity": {
- "enum": [
- "low",
- "medium",
- "high"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "severity",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "serviceLevel": {
- "enum": [
- "economy",
- "standard",
- "express"
- ],
- "type": "string"
- },
- "shippingMode": {
- "enum": [
- "courier",
- "air",
- "sea",
- "road",
- "postal"
- ],
- "type": "string"
- },
- "volumetricWeightKg": {
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "estimatedCost",
- "recommendedEstimate",
- "actualWeightKg",
- "volumetricWeightKg",
- "chargeableWeightKg",
- "shippingMode",
- "serviceLevel",
- "estimatedTransitDays",
- "costBreakdown",
- "rateSource",
- "provider",
- "dutiesAndTaxes",
- "confidence",
- "assumptions",
- "riskFlags",
- "options",
- "recommendedOptionReason",
- "generatedAt"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "nextAction": {
- "additionalProperties": false,
- "properties": {
- "instruction": {
- "type": "string"
- },
- "target": {
- "const": "x402_endpoint",
- "type": "string"
- },
- "type": {
- "const": "pay_and_retry",
- "type": "string"
- }
- },
- "required": [
- "type",
- "target",
- "instruction"
- ],
- "type": "object"
- },
- "payment": {
- "additionalProperties": false,
- "properties": {
- "endpoint": {
- "type": "string"
- },
- "method": {
- "const": "POST",
- "type": "string"
- },
- "retrySameBody": {
- "const": true,
- "type": "boolean"
- }
- },
- "required": [
- "endpoint",
- "method",
- "retrySameBody"
- ],
- "type": "object"
- },
- "preview": {
- "additionalProperties": false,
- "properties": {
- "fullResultAvailable": {
- "const": true,
- "type": "boolean"
- },
- "inputAccepted": {
- "const": true,
- "type": "boolean"
- },
- "summary": {
- "type": "string"
- },
- "useCases": {
- "items": {
- "type": "string"
- },
- "type": "array"
- }
- },
- "required": [
- "inputAccepted",
- "fullResultAvailable",
- "summary",
- "useCases"
- ],
- "type": "object"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "minimum": 0,
- "type": "number"
- },
- "currency": {
- "type": "string"
- },
- "protocol": {
- "const": "x402",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency",
- "protocol"
- ],
- "type": "object"
- },
- "requestId": {
- "type": "string"
- },
- "status": {
- "const": "payment_required",
- "type": "string"
- },
- "tool": {
- "type": "string"
- }
- },
- "required": [
- "status",
- "tool",
- "requestId",
- "price",
- "preview",
- "payment",
- "nextAction"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "actualWeightKg": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "assumptions": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "chargeableWeightKg": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "confidence": {
+ "additionalProperties": false,
+ "properties": {
+ "level": {
+ "enum": [
+ "high",
+ "medium",
+ "low"
+ ],
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "level",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "costBreakdown": {
+ "additionalProperties": false,
+ "properties": {
+ "baseFreight": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "estimatedOtherFees": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "fuelSurcharge": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "handling": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "oversizeSurcharge": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "remoteAreaSurcharge": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "baseFreight",
+ "fuelSurcharge",
+ "handling",
+ "remoteAreaSurcharge",
+ "oversizeSurcharge",
+ "estimatedOtherFees"
+ ],
+ "type": "object"
+ },
+ "dutiesAndTaxes": {
+ "additionalProperties": false,
+ "properties": {
+ "estimatedAmount": {
+ "type": "null"
+ },
+ "included": {
+ "const": false,
+ "type": "boolean"
+ },
+ "note": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "included",
+ "estimatedAmount",
+ "note"
+ ],
+ "type": "object"
+ },
+ "estimatedCost": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": "string"
+ },
+ "max": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "min": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "min",
+ "max",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "estimatedTransitDays": {
+ "additionalProperties": false,
+ "properties": {
+ "max": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ "generatedAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ "options": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "estimatedCost": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": "string"
+ },
+ "max": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "min": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "min",
+ "max",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "estimatedTransitDays": {
+ "additionalProperties": false,
+ "properties": {
+ "max": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ "provider": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "rateSource": {
+ "enum": [
+ "live_carrier",
+ "internal_estimate",
+ "heuristic_estimate"
+ ],
+ "type": "string"
+ },
+ "serviceLevel": {
+ "enum": [
+ "economy",
+ "standard",
+ "express"
+ ],
+ "type": "string"
+ },
+ "shippingMode": {
+ "enum": [
+ "courier",
+ "air",
+ "sea",
+ "road",
+ "postal"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "shippingMode",
+ "serviceLevel",
+ "estimatedCost",
+ "estimatedTransitDays",
+ "rateSource",
+ "provider"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "provider": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "rateSource": {
+ "enum": [
+ "live_carrier",
+ "internal_estimate",
+ "heuristic_estimate"
+ ],
+ "type": "string"
+ },
+ "recommendedEstimate": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "recommendedOptionReason": {
+ "anyOf": [
+ {
+ "enum": [
+ "lowest_estimated_cost",
+ "shortest_transit",
+ "balanced_cost_and_time"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "riskFlags": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "severity": {
+ "enum": [
+ "low",
+ "medium",
+ "high"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "severity",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "serviceLevel": {
+ "enum": [
+ "economy",
+ "standard",
+ "express"
+ ],
+ "type": "string"
+ },
+ "shippingMode": {
+ "enum": [
+ "courier",
+ "air",
+ "sea",
+ "road",
+ "postal"
+ ],
+ "type": "string"
+ },
+ "volumetricWeightKg": {
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "estimatedCost",
+ "recommendedEstimate",
+ "actualWeightKg",
+ "volumetricWeightKg",
+ "chargeableWeightKg",
+ "shippingMode",
+ "serviceLevel",
+ "estimatedTransitDays",
+ "costBreakdown",
+ "rateSource",
+ "provider",
+ "dutiesAndTaxes",
+ "confidence",
+ "assumptions",
+ "riskFlags",
+ "options",
+ "recommendedOptionReason",
+ "generatedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "nextAction": {
+ "additionalProperties": false,
+ "properties": {
+ "instruction": {
+ "type": "string"
+ },
+ "target": {
+ "enum": [
+ "x402_endpoint",
+ "mcp_credits_endpoint",
+ "payment_endpoint",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "pay_and_retry",
+ "authorize_and_use_mcp_credits",
+ "payment_unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "target",
+ "instruction"
+ ],
+ "type": "object"
+ },
+ "payment": {
+ "additionalProperties": false,
+ "properties": {
+ "endpoint": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "method": {
+ "const": "POST",
+ "type": "string"
+ },
+ "retrySameBody": {
+ "const": true,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "endpoint",
+ "method",
+ "retrySameBody"
+ ],
+ "type": "object"
+ },
+ "paymentGuidance": {},
+ "preview": {
+ "additionalProperties": false,
+ "properties": {
+ "fullResultAvailable": {
+ "const": true,
+ "type": "boolean"
+ },
+ "inputAccepted": {
+ "const": true,
+ "type": "boolean"
+ },
+ "summary": {
+ "type": "string"
+ },
+ "useCases": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "inputAccepted",
+ "fullResultAvailable",
+ "summary",
+ "useCases"
+ ],
+ "type": "object"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "currency": {
+ "type": "string"
+ },
+ "protocol": {
+ "enum": [
+ "x402",
+ "api_credits",
+ "subscription",
+ "l402",
+ "mpp",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency",
+ "protocol"
+ ],
+ "type": "object"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "status": {
+ "const": "payment_required",
+ "type": "string"
+ },
+ "tool": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "tool",
+ "requestId",
+ "price",
+ "preview",
+ "payment",
+ "nextAction"
+ ],
+ "type": "object"
+ }
+]