changedOutput schema / anyOf
Previous value: -[
- {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "output": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "assetId": {
- "$ref": "#/$defs/__schema0"
- },
- "contentType": {
- "enum": [
- "image/jpeg",
- "image/png",
- "image/webp"
- ],
- "type": "string"
- },
- "heightPx": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "sizeBytes": {
- "exclusiveMinimum": 0,
- "maximum": 20971520,
- "type": "integer"
- },
- "status": {
- "const": "ready",
- "type": "string"
- },
- "widthPx": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "assetId",
- "contentType",
- "heightPx",
- "sizeBytes",
- "status",
- "widthPx"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "assetId": {
- "$ref": "#/$defs/__schema7"
- },
- "contentType": {
- "$ref": "#/$defs/__schema1"
- },
- "expiresAt": {
- "$ref": "#/$defs/__schema2"
- },
- "name": {
- "$ref": "#/$defs/__schema3"
- },
- "partCount": {
- "$ref": "#/$defs/__schema4"
- },
- "partSizeBytes": {
- "$ref": "#/$defs/__schema5"
- },
- "reason": {
- "$ref": "#/$defs/__schema8"
- },
- "sizeBytes": {
- "$ref": "#/$defs/__schema6"
- },
- "status": {
- "$ref": "#/$defs/__schema9"
- },
- "uploadId": {
- "$ref": "#/$defs/__schema0"
- },
- "uploadedParts": {
- "$ref": "#/$defs/__schema10"
- }
- },
- "required": [
- "contentType",
- "expiresAt",
- "name",
- "partCount",
- "partSizeBytes",
- "sizeBytes",
- "uploadId",
- "status",
- "uploadedParts"
- ],
- "type": "object"
- }
- ]
- },
- "toolName": {
- "const": "mediaImport",
- "type": "string"
- }
- },
- "required": [
- "ok",
- "output",
- "toolName"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "AI_SCHEDULING_LIMIT_REACHED",
- "AI_SCHEDULING_UNAVAILABLE",
- "INVALID_INPUT",
- "FORBIDDEN",
- "NOT_FOUND",
- "CONFLICT",
- "FEATURE_DISABLED",
- "CONFIRMATION_REQUIRED",
- "CONFIRMATION_INVALID",
- "UPSTREAM_FAILED",
- "NEEDS_REVIEW",
- "INTERNAL"
- ],
- "type": "string"
- },
- "message": {
- "maxLength": 2048,
- "minLength": 1,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- },
- "ok": {
- "const": false,
- "type": "boolean"
- },
- "toolName": {
- "const": "mediaImport",
- "type": "string"
- }
- },
- "required": [
- "error",
- "ok",
- "toolName"
- ],
- "type": "object"
- }
- ]
- },
- {
- "additionalProperties": false,
- "properties": {
- "confirmationCapability": {
- "description": "Issued by Influence for this preparation. Return it unchanged as _confirmationCapability before expiresAt to confirm this prepared action; never invent or modify it.",
- "maxLength": 4096,
- "minLength": 32,
- "pattern": "^[A-Za-z0-9._~-]+$",
- "type": "string"
- },
- "expiresAt": {
- "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "inputDigest": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "status": {
- "const": "confirmation_required",
- "type": "string"
- },
- "summary": {
- "$ref": "#/$defs/__schema12"
- },
- "toolName": {
- "const": "mediaImport",
- "type": "string"
- }
- },
- "required": [
- "confirmationCapability",
- "expiresAt",
- "inputDigest",
- "status",
- "toolName"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "ok": {
+ "const": true,
+ "type": "boolean"
+ },
+ "output": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assetId": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "contentType": {
+ "enum": [
+ "image/jpeg",
+ "image/png",
+ "image/webp"
+ ],
+ "type": "string"
+ },
+ "heightPx": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "sizeBytes": {
+ "exclusiveMinimum": 0,
+ "maximum": 20971520,
+ "type": "integer"
+ },
+ "status": {
+ "const": "ready",
+ "type": "string"
+ },
+ "widthPx": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "assetId",
+ "contentType",
+ "heightPx",
+ "sizeBytes",
+ "status",
+ "widthPx"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "assetId": {
+ "$ref": "#/$defs/__schema7"
+ },
+ "contentType": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "expiresAt": {
+ "$ref": "#/$defs/__schema2"
+ },
+ "name": {
+ "$ref": "#/$defs/__schema3"
+ },
+ "partCount": {
+ "$ref": "#/$defs/__schema4"
+ },
+ "partSizeBytes": {
+ "$ref": "#/$defs/__schema5"
+ },
+ "reason": {
+ "$ref": "#/$defs/__schema8"
+ },
+ "sizeBytes": {
+ "$ref": "#/$defs/__schema6"
+ },
+ "status": {
+ "$ref": "#/$defs/__schema9"
+ },
+ "uploadId": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "uploadedParts": {
+ "$ref": "#/$defs/__schema10"
+ }
+ },
+ "required": [
+ "contentType",
+ "expiresAt",
+ "name",
+ "partCount",
+ "partSizeBytes",
+ "sizeBytes",
+ "uploadId",
+ "status",
+ "uploadedParts"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "toolName": {
+ "const": "mediaImport",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok",
+ "output",
+ "toolName"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "AI_SCHEDULING_LIMIT_REACHED",
+ "AI_SCHEDULING_UNAVAILABLE",
+ "INVALID_INPUT",
+ "FORBIDDEN",
+ "NOT_FOUND",
+ "CONFLICT",
+ "FEATURE_DISABLED",
+ "CONFIRMATION_REQUIRED",
+ "CONFIRMATION_INVALID",
+ "UPSTREAM_FAILED",
+ "NEEDS_REVIEW",
+ "INTERNAL"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 2048,
+ "minLength": 1,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "const": false,
+ "type": "boolean"
+ },
+ "toolName": {
+ "const": "mediaImport",
+ "type": "string"
+ }
+ },
+ "required": [
+ "error",
+ "ok",
+ "toolName"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "confirmationCapability": {
+ "description": "Opaque capability bound to the prepared toolName, inputDigest, connection, workspace and expiresAt. The publish_confirm_v1 prefix identifies the shared confirmation protocol.",
+ "maxLength": 4096,
+ "minLength": 32,
+ "pattern": "^[A-Za-z0-9._~-]+$",
+ "type": "string"
+ },
+ "expiresAt": {
+ "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "inputDigest": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "status": {
+ "const": "confirmation_required",
+ "type": "string"
+ },
+ "summary": {
+ "$ref": "#/$defs/__schema12"
+ },
+ "toolName": {
+ "const": "mediaImport",
+ "type": "string"
+ }
+ },
+ "required": [
+ "confirmationCapability",
+ "expiresAt",
+ "inputDigest",
+ "status",
+ "toolName"
+ ],
+ "type": "object"
+ }
+]