changedOutput schema / anyOf
Previous value: -[
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "order.tracking.update",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "buyer_notification": {
- "enum": [
- "not_started",
- "accepted",
- "unknown",
- "refused",
- "not_applicable"
- ],
- "type": "string"
- },
- "buyer_notification_reason": {
- "enum": [
- "approval_expired",
- "binding_refused",
- "provider_refused",
- "notification_disabled"
- ],
- "type": "string"
- },
- "delivery_confirmation": {
- "const": "not_verified",
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "applied"
- ],
- "type": "string"
- },
- "marketplace_sync": {
- "const": "not_applicable",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "carrier": {
- "type": "string"
- },
- "local_intent_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "order_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "order_version": {
- "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"
- },
- "previous_version": {
- "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"
- },
- "tracking_number": {
- "type": "string"
- }
- },
- "required": [
- "order_id",
- "previous_version",
- "order_version",
- "tracking_number",
- "carrier",
- "local_intent_id",
- "app_url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "webhook_delivery": {
- "const": "not_applicable",
- "type": "string"
- }
- },
- "required": [
- "receipt",
- "local_state",
- "buyer_notification",
- "marketplace_sync",
- "webhook_delivery",
- "delivery_confirmation"
- ],
- "type": "object"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "plan_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "buyer_notification": {
- "enum": [
- "not_started",
- "accepted",
- "unknown",
- "refused",
- "not_applicable"
- ],
- "type": "string"
- },
- "buyer_notification_reason": {
- "enum": [
- "approval_expired",
- "binding_refused",
- "provider_refused",
- "notification_disabled"
- ],
- "type": "string"
- },
- "delivery_confirmation": {
- "const": "not_verified",
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "applied"
- ],
- "type": "string"
- },
- "marketplace_sync": {
- "const": "not_applicable",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "carrier": {
- "type": "string"
- },
- "local_intent_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "order_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "order_version": {
- "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"
- },
- "previous_version": {
- "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"
- },
- "tracking_number": {
- "type": "string"
- }
- },
- "required": [
- "order_id",
- "previous_version",
- "order_version",
- "tracking_number",
- "carrier",
- "local_intent_id",
- "app_url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "webhook_delivery": {
- "const": "not_applicable",
- "type": "string"
- }
- },
- "required": [
- "receipt",
- "local_state",
- "buyer_notification",
- "marketplace_sync",
- "webhook_delivery",
- "delivery_confirmation"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "order",
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "result",
- "cancellation",
- "app_url",
- "plan_id"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "account.watchlist.change",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "affected_membership_ids": {
- "items": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 20,
- "type": "array"
- },
- "after_revision": {
- "pattern": "^(0|[1-9][0-9]{0,29})$",
- "type": "string"
- },
- "alerts_changed": {
- "const": false,
- "type": "boolean"
- },
- "before_revision": {
- "pattern": "^(0|[1-9][0-9]{0,29})$",
- "type": "string"
- },
- "cache_refresh": {
- "enum": [
- "pending",
- "completed",
- "unknown"
- ],
- "type": "string"
- },
- "changed": {
- "type": "boolean"
- },
- "desired_present": {
- "type": "boolean"
- },
- "listing_id": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "notifications_sent": {
- "const": false,
- "type": "boolean"
- },
- "watchlist_id": {
- "anyOf": [
- {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "desired_present",
- "changed",
- "before_revision",
- "after_revision",
- "affected_membership_ids",
- "watchlist_id",
- "alerts_changed",
- "notifications_sent",
- "cache_refresh"
- ],
- "type": "object"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "affected_membership_ids": {
- "items": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 20,
- "type": "array"
- },
- "after_revision": {
- "pattern": "^(0|[1-9][0-9]{0,29})$",
- "type": "string"
- },
- "alerts_changed": {
- "const": false,
- "type": "boolean"
- },
- "before_revision": {
- "pattern": "^(0|[1-9][0-9]{0,29})$",
- "type": "string"
- },
- "cache_refresh": {
- "enum": [
- "pending",
- "completed",
- "unknown"
- ],
- "type": "string"
- },
- "changed": {
- "type": "boolean"
- },
- "desired_present": {
- "type": "boolean"
- },
- "listing_id": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "notifications_sent": {
- "const": false,
- "type": "boolean"
- },
- "watchlist_id": {
- "anyOf": [
- {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "desired_present",
- "changed",
- "before_revision",
- "after_revision",
- "affected_membership_ids",
- "watchlist_id",
- "alerts_changed",
- "notifications_sent",
- "cache_refresh"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "const": "succeeded",
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "watchlist_listing",
- "type": "string"
- },
- "id": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id",
- "app_url"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "const": true,
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "result",
- "cancellation",
- "app_url"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "import.resume",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "import_completion": {
- "const": "not_verified",
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "queued",
- "refused",
- "unknown"
- ],
- "type": "string"
- },
- "provider_verification": {
- "const": "unknown",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "checkpoint_preserved": {
- "const": true,
- "type": "boolean"
- },
- "mode": {
- "const": "resume",
- "type": "string"
- },
- "review_state_preserved": {
- "const": true,
- "type": "boolean"
- },
- "source_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "source_version": {
- "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"
- },
- "successor_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "source_version",
- "successor_id",
- "mode",
- "checkpoint_preserved",
- "review_state_preserved",
- "app_url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "worker_dispatch": {
- "enum": [
- "not_started",
- "pending",
- "published",
- "cron_fallback",
- "unknown"
- ],
- "type": "string"
- }
- },
- "required": [
- "receipt",
- "local_state",
- "worker_dispatch",
- "import_completion",
- "provider_verification"
- ],
- "type": "object"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "plan_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "import_completion": {
- "const": "not_verified",
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "queued",
- "refused",
- "unknown"
- ],
- "type": "string"
- },
- "provider_verification": {
- "const": "unknown",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "checkpoint_preserved": {
- "const": true,
- "type": "boolean"
- },
- "mode": {
- "const": "resume",
- "type": "string"
- },
- "review_state_preserved": {
- "const": true,
- "type": "boolean"
- },
- "source_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "source_version": {
- "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"
- },
- "successor_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "source_version",
- "successor_id",
- "mode",
- "checkpoint_preserved",
- "review_state_preserved",
- "app_url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "worker_dispatch": {
- "enum": [
- "not_started",
- "pending",
- "published",
- "cron_fallback",
- "unknown"
- ],
- "type": "string"
- }
- },
- "required": [
- "receipt",
- "local_state",
- "worker_dispatch",
- "import_completion",
- "provider_verification"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "import_job",
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "result",
- "cancellation",
- "app_url",
- "plan_id"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "pricing.change",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "enum": [
- "unsupported",
- "available",
- "requested",
- "too_late"
- ],
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "after": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "applied_price": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "applied_version": {
- "type": [
- "string",
- "null"
- ]
- },
- "before": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "channel_observations_checked": {
- "type": "boolean"
- },
- "channel_outcomes": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "channel": {
- "type": "string"
- },
- "currency": {
- "anyOf": [
- {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "external_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "live_reconciliation": {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_basis": {
- "const": "current_channel_settings",
- "type": "string"
- },
- "expected_price_amount": {
- "type": [
- "string",
- "null"
- ]
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "observed_price_amount": {
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "enum": [
- "live_readback_not_supported",
- "local_receipt_or_individual_offer_required",
- "local_price_or_frozen_channel_link_changed",
- "active_individual_channel_policy_required",
- "target_or_channel_policy_changed_during_read",
- "provider_read_failed_no_price_was_submitted",
- "provider_offer_not_comparable",
- "provider_currency_does_not_match_local_usd",
- "channel_adjustment_rounding_not_established",
- "live_offer_matches_current_channel_adjustments",
- "live_offer_differs_from_current_channel_adjustments"
- ],
- "type": "string"
- },
- "source": {
- "anyOf": [
- {
- "const": "ebay_trading_get_item",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "state": {
- "enum": [
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "source",
- "state",
- "expected_price_amount",
- "observed_price_amount",
- "currency",
- "observed_at",
- "expected_basis",
- "reason"
- ],
- "type": "object"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "observed_price_amount": {
- "anyOf": [
- {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "provider_reference": {
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "type": "string"
- },
- "recorded_sync_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "recorded_sync_state": {
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "const": "marketplace_product_cache",
- "type": "string"
- },
- "state": {
- "enum": [
- "pending",
- "observed",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "recorded_sync_state",
- "recorded_sync_at",
- "provider_reference",
- "channel",
- "external_id",
- "source",
- "state",
- "observed_price_amount",
- "currency",
- "observed_at",
- "reason"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "channel_targets_captured": {
- "type": "boolean"
- },
- "follow_up": {
- "enum": [
- "not_started",
- "pending",
- "completed",
- "unknown"
- ],
- "type": "string"
- },
- "listing_id": {
- "type": "string"
- },
- "local_state": {
- "enum": [
- "queued",
- "succeeded",
- "failed"
- ],
- "type": "string"
- },
- "marketplace_verification": {
- "enum": [
- "unavailable",
- "verified",
- "mismatch"
- ],
- "type": "string"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "listing_id",
- "before",
- "after",
- "applied_price",
- "applied_version",
- "local_state",
- "follow_up",
- "channel_targets_captured",
- "channel_observations_checked",
- "channel_outcomes",
- "reason",
- "marketplace_verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "plan_id": {
- "type": "string"
- },
- "progress": {
- "additionalProperties": false,
- "properties": {
- "failed": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "queued": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "succeeded": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "total",
- "succeeded",
- "failed",
- "queued"
- ],
- "type": "object"
- },
- "result": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "after": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "applied_price": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "applied_version": {
- "type": [
- "string",
- "null"
- ]
- },
- "before": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "channel_observations_checked": {
- "type": "boolean"
- },
- "channel_outcomes": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "channel": {
- "type": "string"
- },
- "currency": {
- "anyOf": [
- {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "external_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "live_reconciliation": {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "type": [
- "string",
- "null"
- ]
- },
- "expected_basis": {
- "const": "current_channel_settings",
- "type": "string"
- },
- "expected_price_amount": {
- "type": [
- "string",
- "null"
- ]
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "observed_price_amount": {
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "enum": [
- "live_readback_not_supported",
- "local_receipt_or_individual_offer_required",
- "local_price_or_frozen_channel_link_changed",
- "active_individual_channel_policy_required",
- "target_or_channel_policy_changed_during_read",
- "provider_read_failed_no_price_was_submitted",
- "provider_offer_not_comparable",
- "provider_currency_does_not_match_local_usd",
- "channel_adjustment_rounding_not_established",
- "live_offer_matches_current_channel_adjustments",
- "live_offer_differs_from_current_channel_adjustments"
- ],
- "type": "string"
- },
- "source": {
- "anyOf": [
- {
- "const": "ebay_trading_get_item",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "state": {
- "enum": [
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "source",
- "state",
- "expected_price_amount",
- "observed_price_amount",
- "currency",
- "observed_at",
- "expected_basis",
- "reason"
- ],
- "type": "object"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "observed_price_amount": {
- "anyOf": [
- {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "provider_reference": {
- "type": [
- "string",
- "null"
- ]
- },
- "reason": {
- "type": "string"
- },
- "recorded_sync_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "recorded_sync_state": {
- "type": [
- "string",
- "null"
- ]
- },
- "source": {
- "const": "marketplace_product_cache",
- "type": "string"
- },
- "state": {
- "enum": [
- "pending",
- "observed",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "recorded_sync_state",
- "recorded_sync_at",
- "provider_reference",
- "channel",
- "external_id",
- "source",
- "state",
- "observed_price_amount",
- "currency",
- "observed_at",
- "reason"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "channel_targets_captured": {
- "type": "boolean"
- },
- "follow_up": {
- "enum": [
- "not_started",
- "pending",
- "completed",
- "unknown"
- ],
- "type": "string"
- },
- "listing_id": {
- "type": "string"
- },
- "local_state": {
- "enum": [
- "queued",
- "succeeded",
- "failed"
- ],
- "type": "string"
- },
- "marketplace_verification": {
- "enum": [
- "unavailable",
- "verified",
- "mismatch"
- ],
- "type": "string"
- },
- "reason": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "listing_id",
- "before",
- "after",
- "applied_price",
- "applied_version",
- "local_state",
- "follow_up",
- "channel_targets_captured",
- "channel_observations_checked",
- "channel_outcomes",
- "reason",
- "marketplace_verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "results_page": {
- "additionalProperties": false,
- "properties": {
- "consistency": {
- "enum": [
- "snapshot",
- "live"
- ],
- "type": "string"
- },
- "has_more": {
- "type": "boolean"
- },
- "next_cursor": {
- "type": [
- "string",
- "null"
- ]
- },
- "returned_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "snapshot_expires_at": {
- "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"
- },
- "snapshot_id": {
- "type": "string"
- },
- "total_count": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "returned_count",
- "total_count",
- "has_more",
- "next_cursor",
- "consistency"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "cancellation",
- "plan_id",
- "results_page",
- "progress"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "listing.draft.update",
- "type": "string"
- },
- "actor_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "catalog_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "catalog_type": {
- "enum": [
- "SPORTS_CARD",
- "TCG_CARD",
- "NONSPORTS_CARD"
- ],
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "enum": [
- "update_running",
- "updated",
- "outcome_unknown",
- "failed"
- ],
- "type": "string"
- },
- "environment": {
- "enum": [
- "production",
- "sandbox"
- ],
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "grant_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "plan_hash": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "plan_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "catalog_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "catalog_type": {
- "enum": [
- "SPORTS_CARD",
- "TCG_CARD",
- "NONSPORTS_CARD"
- ],
- "type": "string"
- },
- "images_reordered": {
- "type": "boolean"
- },
- "photo_rotated": {
- "additionalProperties": false,
- "properties": {
- "degrees": {
- "anyOf": [
- {
- "const": -90,
- "type": "number"
- },
- {
- "const": 90,
- "type": "number"
- },
- {
- "const": 180,
- "type": "number"
- }
- ],
- "description": "Explicit clockwise turn in degrees: -90 turns counterclockwise, 90 clockwise, and 180 a half turn. The turn composes with the saved edit state from its stable display base."
- },
- "image_index": {
- "description": "Exact zero-based saved photo position from the current owned draft; this does not add or replace a photo.",
- "maximum": 3,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "image_index",
- "degrees"
- ],
- "type": "object"
- },
- "seller_notes_updated": {
- "type": "boolean"
- },
- "source_draft_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "updated_version": {
- "description": "Current owned DRAFT version observed when its committed operation marker and exact fields were reconciled; later native edits may have advanced it.",
- "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"
- }
- },
- "required": [
- "source_draft_id",
- "updated_version",
- "catalog_id",
- "catalog_type",
- "seller_notes_updated"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "source_draft_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "state": {
- "enum": [
- "running",
- "succeeded",
- "failed",
- "reconciling"
- ],
- "type": "string"
- },
- "store_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing",
- "type": "string"
- },
- "id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing",
- "type": "string"
- },
- "id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 8,
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "cancellation",
- "store_id",
- "actor_id",
- "grant_id",
- "environment",
- "plan_id",
- "plan_hash",
- "source_draft_id",
- "catalog_id",
- "catalog_type"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "inventory.adjust",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "follow_up": {
- "enum": [
- "not_required",
- "not_started",
- "pending",
- "queued",
- "unknown"
- ],
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "committed",
- "refused",
- "unknown"
- ],
- "type": "string"
- },
- "progress": {
- "enum": [
- "not_required",
- "pending",
- "queued",
- "failed",
- "unknown"
- ],
- "type": "string"
- },
- "provider_verification": {
- "const": "unavailable",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "after_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "after_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "before_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "before_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "effective_available_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "history_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "holds_exceed_on_hand": {
- "type": "boolean"
- },
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "mode": {
- "enum": [
- "absolute_count",
- "delta"
- ],
- "type": "string"
- },
- "operation_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "reason": {
- "maxLength": 500,
- "minLength": 1,
- "type": "string"
- },
- "reserved_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "source": {
- "enum": [
- "native",
- "mcp"
- ],
- "type": "string"
- },
- "store_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "updated_at": {
- "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"
- },
- "warning": {
- "anyOf": [
- {
- "maxLength": 500,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "store_id",
- "mode",
- "before_quantity_available",
- "after_quantity_available",
- "before_quantity_owned",
- "after_quantity_owned",
- "reserved_quantity",
- "effective_available_quantity",
- "holds_exceed_on_hand",
- "warning",
- "updated_at",
- "history_id",
- "reason",
- "source"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "receipt",
- "local_state",
- "progress",
- "follow_up",
- "provider_verification"
- ],
- "type": "object"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "plan_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "follow_up": {
- "enum": [
- "not_required",
- "not_started",
- "pending",
- "queued",
- "unknown"
- ],
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "committed",
- "refused",
- "unknown"
- ],
- "type": "string"
- },
- "progress": {
- "enum": [
- "not_required",
- "pending",
- "queued",
- "failed",
- "unknown"
- ],
- "type": "string"
- },
- "provider_verification": {
- "const": "unavailable",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "after_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "after_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "before_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "before_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "effective_available_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "history_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "holds_exceed_on_hand": {
- "type": "boolean"
- },
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "mode": {
- "enum": [
- "absolute_count",
- "delta"
- ],
- "type": "string"
- },
- "operation_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "reason": {
- "maxLength": 500,
- "minLength": 1,
- "type": "string"
- },
- "reserved_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "source": {
- "enum": [
- "native",
- "mcp"
- ],
- "type": "string"
- },
- "store_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "updated_at": {
- "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"
- },
- "warning": {
- "anyOf": [
- {
- "maxLength": 500,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "store_id",
- "mode",
- "before_quantity_available",
- "after_quantity_available",
- "before_quantity_owned",
- "after_quantity_owned",
- "reserved_quantity",
- "effective_available_quantity",
- "holds_exceed_on_hand",
- "warning",
- "updated_at",
- "history_id",
- "reason",
- "source"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "receipt",
- "local_state",
- "progress",
- "follow_up",
- "provider_verification"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing",
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "cancellation",
- "plan_id"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "inventory.receive",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "follow_up": {
- "enum": [
- "not_required",
- "not_started",
- "pending",
- "queued",
- "unknown"
- ],
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "committed",
- "refused",
- "unknown"
- ],
- "type": "string"
- },
- "provider_verification": {
- "const": "unavailable",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "date_evidence": {
- "const": "seller_recorded_unverified",
- "type": "string"
- },
- "inventory": {
- "additionalProperties": false,
- "properties": {
- "after_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "after_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "before_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "before_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "effective_available_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "history_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "holds_exceed_on_hand": {
- "type": "boolean"
- },
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "mode": {
- "const": "delta",
- "type": "string"
- },
- "operation_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "reason": {
- "maxLength": 500,
- "minLength": 1,
- "type": "string"
- },
- "reserved_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "source": {
- "const": "mcp",
- "type": "string"
- },
- "store_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "updated_at": {
- "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"
- },
- "warning": {
- "anyOf": [
- {
- "maxLength": 500,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "store_id",
- "mode",
- "before_quantity_available",
- "after_quantity_available",
- "before_quantity_owned",
- "after_quantity_owned",
- "reserved_quantity",
- "effective_available_quantity",
- "holds_exceed_on_hand",
- "warning",
- "updated_at",
- "history_id",
- "reason",
- "source",
- "operation_id"
- ],
- "type": "object"
- },
- "movement_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "quantity": {
- "maximum": 10000,
- "minimum": 1,
- "type": "integer"
- },
- "received_date": {
- "format": "date",
- "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])))$",
- "type": "string"
- }
- },
- "required": [
- "movement_id",
- "received_date",
- "quantity",
- "date_evidence",
- "inventory"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "receipt",
- "local_state",
- "follow_up",
- "provider_verification"
- ],
- "type": "object"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "plan_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "follow_up": {
- "enum": [
- "not_required",
- "not_started",
- "pending",
- "queued",
- "unknown"
- ],
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "committed",
- "refused",
- "unknown"
- ],
- "type": "string"
- },
- "provider_verification": {
- "const": "unavailable",
- "type": "string"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "date_evidence": {
- "const": "seller_recorded_unverified",
- "type": "string"
- },
- "inventory": {
- "additionalProperties": false,
- "properties": {
- "after_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "after_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "before_quantity_available": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "before_quantity_owned": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "effective_available_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "history_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "holds_exceed_on_hand": {
- "type": "boolean"
- },
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "mode": {
- "const": "delta",
- "type": "string"
- },
- "operation_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "reason": {
- "maxLength": 500,
- "minLength": 1,
- "type": "string"
- },
- "reserved_quantity": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "source": {
- "const": "mcp",
- "type": "string"
- },
- "store_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "updated_at": {
- "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"
- },
- "warning": {
- "anyOf": [
- {
- "maxLength": 500,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "store_id",
- "mode",
- "before_quantity_available",
- "after_quantity_available",
- "before_quantity_owned",
- "after_quantity_owned",
- "reserved_quantity",
- "effective_available_quantity",
- "holds_exceed_on_hand",
- "warning",
- "updated_at",
- "history_id",
- "reason",
- "source",
- "operation_id"
- ],
- "type": "object"
- },
- "movement_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "quantity": {
- "maximum": 10000,
- "minimum": 1,
- "type": "integer"
- },
- "received_date": {
- "format": "date",
- "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])))$",
- "type": "string"
- }
- },
- "required": [
- "movement_id",
- "received_date",
- "quantity",
- "date_evidence",
- "inventory"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "receipt",
- "local_state",
- "follow_up",
- "provider_verification"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing",
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "cancellation",
- "plan_id"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "listing.draft.submit",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "enum": [
- "submitting_for_review",
- "submitted_for_review",
- "partially_submitted_for_review",
- "submission_failed"
- ],
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "result": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "destination": {
- "const": "supercatch_review_queue",
- "type": "string"
- },
- "expected_version": {
- "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"
- },
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "message": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "publication": {
- "const": "not_requested",
- "type": "string"
- },
- "reason": {
- "anyOf": [
- {
- "enum": [
- "not_found",
- "version_conflict",
- "not_ready",
- "readiness_unavailable",
- "permission_denied",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "state": {
- "enum": [
- "queued",
- "succeeded",
- "failed"
- ],
- "type": "string"
- },
- "submitted_state": {
- "anyOf": [
- {
- "const": "PENDING",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "submitted_version": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "expected_version",
- "state",
- "submitted_version",
- "submitted_state",
- "reason",
- "message",
- "checked_at",
- "destination",
- "publication"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "state": {
- "enum": [
- "queued",
- "succeeded",
- "failed"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing",
- "type": "string"
- },
- "id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing_submission_operation",
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "explanation": {
- "maxLength": 1000,
- "type": "string"
- },
- "state": {
- "enum": [
- "pending",
- "verified",
- "not_started",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs",
- "explanation"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "result",
- "verification"
- ],
- "type": "object"
- },
- "maxItems": 5,
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "plan_hash": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "plan_id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "progress": {
- "additionalProperties": false,
- "properties": {
- "failed": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "queued": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "succeeded": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "total": {
- "maximum": 100,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "total",
- "succeeded",
- "failed",
- "queued"
- ],
- "type": "object"
- },
- "result": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "destination": {
- "const": "supercatch_review_queue",
- "type": "string"
- },
- "expected_version": {
- "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"
- },
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "message": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "publication": {
- "const": "not_requested",
- "type": "string"
- },
- "reason": {
- "anyOf": [
- {
- "enum": [
- "not_found",
- "version_conflict",
- "not_ready",
- "readiness_unavailable",
- "permission_denied",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "state": {
- "enum": [
- "queued",
- "succeeded",
- "failed"
- ],
- "type": "string"
- },
- "submitted_state": {
- "anyOf": [
- {
- "const": "PENDING",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "submitted_version": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_id",
- "expected_version",
- "state",
- "submitted_version",
- "submitted_state",
- "reason",
- "message",
- "checked_at",
- "destination",
- "publication"
- ],
- "type": "object"
- },
- "maxItems": 5,
- "type": "array"
- },
- "results_page": {
- "additionalProperties": false,
- "properties": {
- "consistency": {
- "enum": [
- "snapshot",
- "live"
- ],
- "type": "string"
- },
- "has_more": {
- "type": "boolean"
- },
- "next_cursor": {
- "type": [
- "string",
- "null"
- ]
- },
- "returned_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "snapshot_expires_at": {
- "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"
- },
- "snapshot_id": {
- "type": "string"
- },
- "total_count": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "returned_count",
- "total_count",
- "has_more",
- "next_cursor",
- "consistency"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "enum": [
- "running",
- "succeeded",
- "partially_succeeded",
- "failed"
- ],
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing",
- "type": "string"
- },
- "id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 5,
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing_submission_operation",
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "explanation": {
- "maxLength": 1000,
- "type": "string"
- },
- "state": {
- "enum": [
- "pending",
- "verified",
- "not_started",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs",
- "explanation"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "domain_state",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "item_results",
- "cancellation",
- "app_url",
- "plan_id",
- "plan_hash",
- "results_page",
- "progress"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "account.saved_search.change",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "after_version": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "alerts_enabled_by_action": {
- "const": false,
- "type": "boolean"
- },
- "already_saved": {
- "type": "boolean"
- },
- "before_version": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "cache_refresh": {
- "enum": [
- "pending",
- "completed",
- "unknown"
- ],
- "type": "string"
- },
- "change": {
- "enum": [
- "create",
- "rename",
- "delete"
- ],
- "type": "string"
- },
- "changed": {
- "type": "boolean"
- },
- "current_name": {
- "anyOf": [
- {
- "maxLength": 80,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "existing_deliveries_recalled": {
- "const": false,
- "type": "boolean"
- },
- "previous_name": {
- "anyOf": [
- {
- "maxLength": 80,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "search_id": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "search_id",
- "change",
- "changed",
- "already_saved",
- "before_version",
- "after_version",
- "previous_name",
- "current_name",
- "alerts_enabled_by_action",
- "existing_deliveries_recalled",
- "cache_refresh"
- ],
- "type": "object"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "after_version": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "alerts_enabled_by_action": {
- "const": false,
- "type": "boolean"
- },
- "already_saved": {
- "type": "boolean"
- },
- "before_version": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "cache_refresh": {
- "enum": [
- "pending",
- "completed",
- "unknown"
- ],
- "type": "string"
- },
- "change": {
- "enum": [
- "create",
- "rename",
- "delete"
- ],
- "type": "string"
- },
- "changed": {
- "type": "boolean"
- },
- "current_name": {
- "anyOf": [
- {
- "maxLength": 80,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "existing_deliveries_recalled": {
- "const": false,
- "type": "boolean"
- },
- "previous_name": {
- "anyOf": [
- {
- "maxLength": 80,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "search_id": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "search_id",
- "change",
- "changed",
- "already_saved",
- "before_version",
- "after_version",
- "previous_name",
- "current_name",
- "alerts_enabled_by_action",
- "existing_deliveries_recalled",
- "cache_refresh"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "const": "succeeded",
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "saved_search",
- "type": "string"
- },
- "id": {
- "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id",
- "app_url"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "const": true,
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "result",
- "cancellation",
- "app_url"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- },
- {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "const": "listing.publish",
- "type": "string"
- },
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "cancellation": {
- "const": "unsupported",
- "type": "string"
- },
- "completion_criterion": {
- "type": "string"
- },
- "created_at": {
- "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"
- },
- "domain_state": {
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_results": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "item_id": {
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "approval": {
- "enum": [
- "not_ready",
- "required",
- "satisfied"
- ],
- "type": "string"
- },
- "attempt": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "destination": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "environment": {
- "enum": [
- "production",
- "sandbox"
- ],
- "type": "string"
- },
- "integration_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "marketplace": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "policies": {
- "additionalProperties": false,
- "properties": {
- "fulfillment_policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "payment_policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "return_policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "fulfillment_policy_id",
- "payment_policy_id",
- "return_policy_id"
- ],
- "type": "object"
- },
- "policy_terms": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "enum": [
- "fulfillment",
- "payment",
- "return"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "terms": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "label": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "maxLength": 4096,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "label",
- "value"
- ],
- "type": "object"
- },
- "maxItems": 64,
- "type": "array"
- }
- },
- "required": [
- "kind",
- "policy_id",
- "name",
- "terms"
- ],
- "type": "object"
- },
- "maxItems": 3,
- "minItems": 3,
- "type": "array"
- },
- "sku": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "integration_id",
- "marketplace",
- "account_ref",
- "environment",
- "sku",
- "policies",
- "policy_terms"
- ],
- "type": "object"
- },
- "failure": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "unknown"
- ],
- "type": "string"
- },
- "message": {
- "maxLength": 2000,
- "minLength": 1,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retryable"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "fee_quote": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "expires_at": {
- "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"
- },
- "lines": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "name": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "promotional_discount": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- }
- },
- "required": [
- "name",
- "amount"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "quoted_at": {
- "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"
- },
- "total": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- }
- },
- "required": [
- "lines",
- "total",
- "quoted_at",
- "expires_at"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "listing_label": {
- "maxLength": 1000,
- "minLength": 1,
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "committed",
- "conflict",
- "unknown"
- ],
- "type": "string"
- },
- "phase": {
- "enum": [
- "ready_to_stage",
- "inventory_dispatching",
- "inventory_staged",
- "offer_dispatching",
- "offer_staged",
- "fee_review",
- "ready_to_publish",
- "publish_dispatching",
- "published",
- "cancelled",
- "rejected",
- "unknown"
- ],
- "type": "string"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "provider_state": {
- "enum": [
- "not_requested",
- "staged",
- "submitted",
- "live",
- "removed",
- "rejected",
- "unknown"
- ],
- "type": "string"
- },
- "quantity": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "observed_at": {
- "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"
- },
- "offer_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "quantity": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "state": {
- "const": "live",
- "type": "string"
- }
- },
- "required": [
- "offer_id",
- "listing_id",
- "observed_at",
- "price",
- "quantity",
- "state"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_label",
- "price",
- "quantity",
- "phase",
- "provider_state",
- "local_state",
- "destination",
- "fee_quote",
- "receipt",
- "failure",
- "attempt",
- "approval"
- ],
- "type": "object"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "target": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "target",
- "state",
- "verification"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "item_results_cursor": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "plan_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "result": {
- "additionalProperties": false,
- "properties": {
- "approval": {
- "enum": [
- "not_ready",
- "required",
- "satisfied"
- ],
- "type": "string"
- },
- "attempt": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "destination": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "environment": {
- "enum": [
- "production",
- "sandbox"
- ],
- "type": "string"
- },
- "integration_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "marketplace": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "policies": {
- "additionalProperties": false,
- "properties": {
- "fulfillment_policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "payment_policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "return_policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "fulfillment_policy_id",
- "payment_policy_id",
- "return_policy_id"
- ],
- "type": "object"
- },
- "policy_terms": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "enum": [
- "fulfillment",
- "payment",
- "return"
- ],
- "type": "string"
- },
- "name": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "policy_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "terms": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "label": {
- "maxLength": 256,
- "minLength": 1,
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "maxLength": 4096,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "label",
- "value"
- ],
- "type": "object"
- },
- "maxItems": 64,
- "type": "array"
- }
- },
- "required": [
- "kind",
- "policy_id",
- "name",
- "terms"
- ],
- "type": "object"
- },
- "maxItems": 3,
- "minItems": 3,
- "type": "array"
- },
- "sku": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "integration_id",
- "marketplace",
- "account_ref",
- "environment",
- "sku",
- "policies",
- "policy_terms"
- ],
- "type": "object"
- },
- "failure": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "unknown"
- ],
- "type": "string"
- },
- "message": {
- "maxLength": 2000,
- "minLength": 1,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retryable"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "fee_quote": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "expires_at": {
- "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"
- },
- "lines": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "name": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "promotional_discount": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- }
- },
- "required": [
- "name",
- "amount"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "quoted_at": {
- "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"
- },
- "total": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- }
- },
- "required": [
- "lines",
- "total",
- "quoted_at",
- "expires_at"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "listing_label": {
- "maxLength": 1000,
- "minLength": 1,
- "type": "string"
- },
- "local_state": {
- "enum": [
- "pending",
- "committed",
- "conflict",
- "unknown"
- ],
- "type": "string"
- },
- "phase": {
- "enum": [
- "ready_to_stage",
- "inventory_dispatching",
- "inventory_staged",
- "offer_dispatching",
- "offer_staged",
- "fee_review",
- "ready_to_publish",
- "publish_dispatching",
- "published",
- "cancelled",
- "rejected",
- "unknown"
- ],
- "type": "string"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "provider_state": {
- "enum": [
- "not_requested",
- "staged",
- "submitted",
- "live",
- "removed",
- "rejected",
- "unknown"
- ],
- "type": "string"
- },
- "quantity": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "receipt": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "listing_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "observed_at": {
- "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"
- },
- "offer_id": {
- "maxLength": 128,
- "minLength": 1,
- "type": "string"
- },
- "price": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "quantity": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "state": {
- "const": "live",
- "type": "string"
- }
- },
- "required": [
- "offer_id",
- "listing_id",
- "observed_at",
- "price",
- "quantity",
- "state"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "listing_label",
- "price",
- "quantity",
- "phase",
- "provider_state",
- "local_state",
- "destination",
- "fee_quote",
- "receipt",
- "failure",
- "attempt",
- "approval"
- ],
- "type": "object"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "state": {
- "enum": [
- "queued",
- "running",
- "waiting_for_input",
- "waiting_for_approval",
- "reconciling",
- "succeeded",
- "partially_succeeded",
- "failed",
- "cancelled"
- ],
- "type": "string"
- },
- "targets": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "const": "listing",
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "maxItems": 1,
- "minItems": 1,
- "type": "array"
- },
- "terminal": {
- "type": "boolean"
- },
- "updated_at": {
- "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"
- },
- "verification": {
- "additionalProperties": false,
- "properties": {
- "checked_at": {
- "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"
- },
- "evidence_refs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "app_url": {
- "format": "uri",
- "type": "string"
- },
- "entity_type": {
- "minLength": 1,
- "type": "string"
- },
- "id": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "entity_type",
- "id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "explanation": {
- "type": "string"
- },
- "state": {
- "enum": [
- "not_started",
- "pending",
- "verified",
- "mismatch",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "state",
- "evidence_refs"
- ],
- "type": "object"
- }
- },
- "required": [
- "operation_id",
- "action",
- "state",
- "terminal",
- "created_at",
- "updated_at",
- "targets",
- "completion_criterion",
- "verification",
- "result",
- "cancellation",
- "plan_id"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "operation",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "context": {
- "additionalProperties": false,
- "properties": {
- "account_ref": {
- "type": "string"
- },
- "app_id": {
- "const": "supercatch",
- "type": "string"
- },
- "connection_ref": {
- "type": "string"
- },
- "environment": {
- "enum": [
- "public",
- "production",
- "staging",
- "paper",
- "sandbox"
- ],
- "type": "string"
- },
- "tenant_ref": {
- "type": [
- "string",
- "null"
- ]
- },
- "timezone": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "app_id",
- "tenant_ref",
- "environment",
- "timezone"
- ],
- "type": "object"
- },
- "data": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "unauthenticated",
- "permission_denied",
- "consent_required",
- "ambiguous_target",
- "not_found",
- "unsupported_capability",
- "configuration_required",
- "integration_expired",
- "stale_data",
- "version_conflict",
- "approval_required",
- "approval_expired",
- "idempotency_conflict",
- "rate_limited",
- "quota_exceeded",
- "provider_unavailable",
- "outcome_unknown",
- "reconciliation_required",
- "cursor_expired",
- "artifact_expired",
- "internal_error"
- ],
- "type": "string"
- },
- "domain_code": {
- "type": "string"
- },
- "effects": {
- "enum": [
- "none",
- "committed",
- "partial",
- "unknown"
- ],
- "type": "string"
- },
- "field_errors": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "field",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "message": {
- "type": "string"
- },
- "operation_id": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "retry_strategy": {
- "enum": [
- "never",
- "same_request",
- "after_delay",
- "after_correction",
- "reconcile_first"
- ],
- "type": "string"
- }
- },
- "required": [
- "code",
- "message",
- "effects",
- "retry_strategy"
- ],
- "type": "object"
- },
- "generated_at": {
- "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"
- },
- "kind": {
- "const": "error",
- "type": "string"
- },
- "next_actions": {
- "items": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "tool_name": {
- "minLength": 1,
- "type": "string"
- },
- "type": {
- "const": "call_tool",
- "type": "string"
- }
- },
- "required": [
- "type",
- "tool_name",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "open_url",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "fields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "reason": {
- "type": "string"
- },
- "type": {
- "const": "provide_input",
- "type": "string"
- }
- },
- "required": [
- "type",
- "fields",
- "reason"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "reason": {
- "type": "string"
- },
- "retry_after_ms": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "const": "wait",
- "type": "string"
- }
- },
- "required": [
- "type",
- "retry_after_ms",
- "reason"
- ],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- "provenance": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "freshness": {
- "enum": [
- "fresh",
- "stale",
- "unknown"
- ],
- "type": "string"
- },
- "observed_at": {
- "anyOf": [
- {
- "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"
- },
- {
- "type": "null"
- }
- ]
- },
- "retrieved_at": {
- "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"
- },
- "source_id": {
- "minLength": 1,
- "type": "string"
- },
- "source_url": {
- "format": "uri",
- "type": "string"
- },
- "source_version": {
- "type": "string"
- }
- },
- "required": [
- "source_id",
- "observed_at",
- "retrieved_at",
- "freshness"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "request_id": {
- "minLength": 1,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "field": {
- "type": "string"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "code",
- "message"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "kind",
- "request_id",
- "generated_at",
- "context",
- "data",
- "warnings",
- "next_actions"
- ],
- "type": "object"
- }
- ]
- }
-]New value: +[
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "order.tracking.update",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "buyer_notification": {
+ "enum": [
+ "not_started",
+ "accepted",
+ "unknown",
+ "refused",
+ "not_applicable"
+ ],
+ "type": "string"
+ },
+ "buyer_notification_reason": {
+ "enum": [
+ "approval_expired",
+ "binding_refused",
+ "provider_refused",
+ "notification_disabled"
+ ],
+ "type": "string"
+ },
+ "delivery_confirmation": {
+ "const": "not_verified",
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "applied"
+ ],
+ "type": "string"
+ },
+ "marketplace_sync": {
+ "const": "not_applicable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "carrier": {
+ "type": "string"
+ },
+ "local_intent_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "order_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "order_version": {
+ "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"
+ },
+ "previous_version": {
+ "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"
+ },
+ "tracking_number": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "order_id",
+ "previous_version",
+ "order_version",
+ "tracking_number",
+ "carrier",
+ "local_intent_id",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "webhook_delivery": {
+ "const": "not_applicable",
+ "type": "string"
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "buyer_notification",
+ "marketplace_sync",
+ "webhook_delivery",
+ "delivery_confirmation"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "buyer_notification": {
+ "enum": [
+ "not_started",
+ "accepted",
+ "unknown",
+ "refused",
+ "not_applicable"
+ ],
+ "type": "string"
+ },
+ "buyer_notification_reason": {
+ "enum": [
+ "approval_expired",
+ "binding_refused",
+ "provider_refused",
+ "notification_disabled"
+ ],
+ "type": "string"
+ },
+ "delivery_confirmation": {
+ "const": "not_verified",
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "applied"
+ ],
+ "type": "string"
+ },
+ "marketplace_sync": {
+ "const": "not_applicable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "carrier": {
+ "type": "string"
+ },
+ "local_intent_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "order_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "order_version": {
+ "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"
+ },
+ "previous_version": {
+ "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"
+ },
+ "tracking_number": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "order_id",
+ "previous_version",
+ "order_version",
+ "tracking_number",
+ "carrier",
+ "local_intent_id",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "webhook_delivery": {
+ "const": "not_applicable",
+ "type": "string"
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "buyer_notification",
+ "marketplace_sync",
+ "webhook_delivery",
+ "delivery_confirmation"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "order",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "result",
+ "cancellation",
+ "app_url",
+ "plan_id"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "order.shipment.create",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "buyer_email": {
+ "enum": [
+ "not_started",
+ "accepted",
+ "unknown",
+ "refused",
+ "not_applicable"
+ ],
+ "type": "string"
+ },
+ "buyer_email_reason": {
+ "enum": [
+ "approval_expired",
+ "binding_refused",
+ "provider_refused",
+ "notification_disabled"
+ ],
+ "type": "string"
+ },
+ "buyer_in_app": {
+ "enum": [
+ "not_started",
+ "recorded",
+ "failed",
+ "refused",
+ "not_applicable"
+ ],
+ "type": "string"
+ },
+ "buyer_in_app_reason": {
+ "enum": [
+ "approval_expired",
+ "binding_refused",
+ "record_failed"
+ ],
+ "type": "string"
+ },
+ "delivery_confirmation": {
+ "const": "not_verified",
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "applied"
+ ],
+ "type": "string"
+ },
+ "marketplace_sync": {
+ "const": "not_applicable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "carrier": {
+ "type": "string"
+ },
+ "local_intent_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "order_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "order_version": {
+ "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"
+ },
+ "previous_status": {
+ "enum": [
+ "PENDING",
+ "PAID",
+ "PROCESSING"
+ ],
+ "type": "string"
+ },
+ "previous_version": {
+ "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"
+ },
+ "status": {
+ "const": "SHIPPED",
+ "type": "string"
+ },
+ "tracking_number": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "order_id",
+ "previous_version",
+ "order_version",
+ "previous_status",
+ "status",
+ "tracking_number",
+ "carrier",
+ "local_intent_id",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "webhook_delivery": {
+ "const": "not_applicable",
+ "type": "string"
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "buyer_email",
+ "buyer_in_app",
+ "marketplace_sync",
+ "webhook_delivery",
+ "delivery_confirmation"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "buyer_email": {
+ "enum": [
+ "not_started",
+ "accepted",
+ "unknown",
+ "refused",
+ "not_applicable"
+ ],
+ "type": "string"
+ },
+ "buyer_email_reason": {
+ "enum": [
+ "approval_expired",
+ "binding_refused",
+ "provider_refused",
+ "notification_disabled"
+ ],
+ "type": "string"
+ },
+ "buyer_in_app": {
+ "enum": [
+ "not_started",
+ "recorded",
+ "failed",
+ "refused",
+ "not_applicable"
+ ],
+ "type": "string"
+ },
+ "buyer_in_app_reason": {
+ "enum": [
+ "approval_expired",
+ "binding_refused",
+ "record_failed"
+ ],
+ "type": "string"
+ },
+ "delivery_confirmation": {
+ "const": "not_verified",
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "applied"
+ ],
+ "type": "string"
+ },
+ "marketplace_sync": {
+ "const": "not_applicable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "carrier": {
+ "type": "string"
+ },
+ "local_intent_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "order_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "order_version": {
+ "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"
+ },
+ "previous_status": {
+ "enum": [
+ "PENDING",
+ "PAID",
+ "PROCESSING"
+ ],
+ "type": "string"
+ },
+ "previous_version": {
+ "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"
+ },
+ "status": {
+ "const": "SHIPPED",
+ "type": "string"
+ },
+ "tracking_number": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "order_id",
+ "previous_version",
+ "order_version",
+ "previous_status",
+ "status",
+ "tracking_number",
+ "carrier",
+ "local_intent_id",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "webhook_delivery": {
+ "const": "not_applicable",
+ "type": "string"
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "buyer_email",
+ "buyer_in_app",
+ "marketplace_sync",
+ "webhook_delivery",
+ "delivery_confirmation"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "order",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "result",
+ "cancellation",
+ "app_url",
+ "plan_id"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "account.watchlist.change",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "affected_membership_ids": {
+ "items": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "after_revision": {
+ "pattern": "^(0|[1-9][0-9]{0,29})$",
+ "type": "string"
+ },
+ "alerts_changed": {
+ "const": false,
+ "type": "boolean"
+ },
+ "before_revision": {
+ "pattern": "^(0|[1-9][0-9]{0,29})$",
+ "type": "string"
+ },
+ "cache_refresh": {
+ "enum": [
+ "pending",
+ "completed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "changed": {
+ "type": "boolean"
+ },
+ "desired_present": {
+ "type": "boolean"
+ },
+ "listing_id": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "notifications_sent": {
+ "const": false,
+ "type": "boolean"
+ },
+ "watchlist_id": {
+ "anyOf": [
+ {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "desired_present",
+ "changed",
+ "before_revision",
+ "after_revision",
+ "affected_membership_ids",
+ "watchlist_id",
+ "alerts_changed",
+ "notifications_sent",
+ "cache_refresh"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "affected_membership_ids": {
+ "items": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "after_revision": {
+ "pattern": "^(0|[1-9][0-9]{0,29})$",
+ "type": "string"
+ },
+ "alerts_changed": {
+ "const": false,
+ "type": "boolean"
+ },
+ "before_revision": {
+ "pattern": "^(0|[1-9][0-9]{0,29})$",
+ "type": "string"
+ },
+ "cache_refresh": {
+ "enum": [
+ "pending",
+ "completed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "changed": {
+ "type": "boolean"
+ },
+ "desired_present": {
+ "type": "boolean"
+ },
+ "listing_id": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "notifications_sent": {
+ "const": false,
+ "type": "boolean"
+ },
+ "watchlist_id": {
+ "anyOf": [
+ {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "desired_present",
+ "changed",
+ "before_revision",
+ "after_revision",
+ "affected_membership_ids",
+ "watchlist_id",
+ "alerts_changed",
+ "notifications_sent",
+ "cache_refresh"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "const": "succeeded",
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "watchlist_listing",
+ "type": "string"
+ },
+ "id": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "const": true,
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "result",
+ "cancellation",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "import.resume",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "import_completion": {
+ "const": "not_verified",
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "queued",
+ "refused",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "provider_verification": {
+ "const": "unknown",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "checkpoint_preserved": {
+ "const": true,
+ "type": "boolean"
+ },
+ "mode": {
+ "const": "resume",
+ "type": "string"
+ },
+ "review_state_preserved": {
+ "const": true,
+ "type": "boolean"
+ },
+ "source_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_version": {
+ "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"
+ },
+ "successor_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "source_version",
+ "successor_id",
+ "mode",
+ "checkpoint_preserved",
+ "review_state_preserved",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "worker_dispatch": {
+ "enum": [
+ "not_started",
+ "pending",
+ "published",
+ "cron_fallback",
+ "unknown"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "worker_dispatch",
+ "import_completion",
+ "provider_verification"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "import_completion": {
+ "const": "not_verified",
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "queued",
+ "refused",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "provider_verification": {
+ "const": "unknown",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "checkpoint_preserved": {
+ "const": true,
+ "type": "boolean"
+ },
+ "mode": {
+ "const": "resume",
+ "type": "string"
+ },
+ "review_state_preserved": {
+ "const": true,
+ "type": "boolean"
+ },
+ "source_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_version": {
+ "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"
+ },
+ "successor_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "source_version",
+ "successor_id",
+ "mode",
+ "checkpoint_preserved",
+ "review_state_preserved",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "worker_dispatch": {
+ "enum": [
+ "not_started",
+ "pending",
+ "published",
+ "cron_fallback",
+ "unknown"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "worker_dispatch",
+ "import_completion",
+ "provider_verification"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "import_job",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "result",
+ "cancellation",
+ "app_url",
+ "plan_id"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "pricing.change",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "enum": [
+ "unsupported",
+ "available",
+ "requested",
+ "too_late"
+ ],
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "after": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "const": "USD",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "applied_price": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "const": "USD",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "applied_version": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "before": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "const": "USD",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "channel_observations_checked": {
+ "type": "boolean"
+ },
+ "channel_outcomes": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "channel": {
+ "type": "string"
+ },
+ "currency": {
+ "anyOf": [
+ {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "external_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "live_reconciliation": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_basis": {
+ "const": "current_channel_settings",
+ "type": "string"
+ },
+ "expected_price_amount": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "observed_price_amount": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reason": {
+ "enum": [
+ "live_readback_not_supported",
+ "local_receipt_or_individual_offer_required",
+ "local_price_or_frozen_channel_link_changed",
+ "active_individual_channel_policy_required",
+ "target_or_channel_policy_changed_during_read",
+ "provider_read_failed_no_price_was_submitted",
+ "provider_offer_not_comparable",
+ "provider_currency_does_not_match_local_usd",
+ "channel_adjustment_rounding_not_established",
+ "live_offer_matches_current_channel_adjustments",
+ "live_offer_differs_from_current_channel_adjustments"
+ ],
+ "type": "string"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "const": "ebay_trading_get_item",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "state": {
+ "enum": [
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "state",
+ "expected_price_amount",
+ "observed_price_amount",
+ "currency",
+ "observed_at",
+ "expected_basis",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "observed_price_amount": {
+ "anyOf": [
+ {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provider_reference": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reason": {
+ "type": "string"
+ },
+ "recorded_sync_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recorded_sync_state": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "const": "marketplace_product_cache",
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "pending",
+ "observed",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "recorded_sync_state",
+ "recorded_sync_at",
+ "provider_reference",
+ "channel",
+ "external_id",
+ "source",
+ "state",
+ "observed_price_amount",
+ "currency",
+ "observed_at",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "channel_targets_captured": {
+ "type": "boolean"
+ },
+ "follow_up": {
+ "enum": [
+ "not_started",
+ "pending",
+ "completed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "listing_id": {
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "queued",
+ "succeeded",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "marketplace_verification": {
+ "enum": [
+ "unavailable",
+ "verified",
+ "mismatch"
+ ],
+ "type": "string"
+ },
+ "reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "before",
+ "after",
+ "applied_price",
+ "applied_version",
+ "local_state",
+ "follow_up",
+ "channel_targets_captured",
+ "channel_observations_checked",
+ "channel_outcomes",
+ "reason",
+ "marketplace_verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_id": {
+ "type": "string"
+ },
+ "progress": {
+ "additionalProperties": false,
+ "properties": {
+ "failed": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "queued": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "succeeded": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "succeeded",
+ "failed",
+ "queued"
+ ],
+ "type": "object"
+ },
+ "result": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "after": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "const": "USD",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "applied_price": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "const": "USD",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "applied_version": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "before": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "const": "USD",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "channel_observations_checked": {
+ "type": "boolean"
+ },
+ "channel_outcomes": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "channel": {
+ "type": "string"
+ },
+ "currency": {
+ "anyOf": [
+ {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "external_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "live_reconciliation": {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "expected_basis": {
+ "const": "current_channel_settings",
+ "type": "string"
+ },
+ "expected_price_amount": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "observed_price_amount": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reason": {
+ "enum": [
+ "live_readback_not_supported",
+ "local_receipt_or_individual_offer_required",
+ "local_price_or_frozen_channel_link_changed",
+ "active_individual_channel_policy_required",
+ "target_or_channel_policy_changed_during_read",
+ "provider_read_failed_no_price_was_submitted",
+ "provider_offer_not_comparable",
+ "provider_currency_does_not_match_local_usd",
+ "channel_adjustment_rounding_not_established",
+ "live_offer_matches_current_channel_adjustments",
+ "live_offer_differs_from_current_channel_adjustments"
+ ],
+ "type": "string"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "const": "ebay_trading_get_item",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "state": {
+ "enum": [
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "source",
+ "state",
+ "expected_price_amount",
+ "observed_price_amount",
+ "currency",
+ "observed_at",
+ "expected_basis",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "observed_price_amount": {
+ "anyOf": [
+ {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "provider_reference": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reason": {
+ "type": "string"
+ },
+ "recorded_sync_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recorded_sync_state": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source": {
+ "const": "marketplace_product_cache",
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "pending",
+ "observed",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "recorded_sync_state",
+ "recorded_sync_at",
+ "provider_reference",
+ "channel",
+ "external_id",
+ "source",
+ "state",
+ "observed_price_amount",
+ "currency",
+ "observed_at",
+ "reason"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "channel_targets_captured": {
+ "type": "boolean"
+ },
+ "follow_up": {
+ "enum": [
+ "not_started",
+ "pending",
+ "completed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "listing_id": {
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "queued",
+ "succeeded",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "marketplace_verification": {
+ "enum": [
+ "unavailable",
+ "verified",
+ "mismatch"
+ ],
+ "type": "string"
+ },
+ "reason": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "before",
+ "after",
+ "applied_price",
+ "applied_version",
+ "local_state",
+ "follow_up",
+ "channel_targets_captured",
+ "channel_observations_checked",
+ "channel_outcomes",
+ "reason",
+ "marketplace_verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "results_page": {
+ "additionalProperties": false,
+ "properties": {
+ "consistency": {
+ "enum": [
+ "snapshot",
+ "live"
+ ],
+ "type": "string"
+ },
+ "has_more": {
+ "type": "boolean"
+ },
+ "next_cursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "returned_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "snapshot_expires_at": {
+ "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"
+ },
+ "snapshot_id": {
+ "type": "string"
+ },
+ "total_count": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "returned_count",
+ "total_count",
+ "has_more",
+ "next_cursor",
+ "consistency"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "cancellation",
+ "plan_id",
+ "results_page",
+ "progress"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "listing.draft.update",
+ "type": "string"
+ },
+ "actor_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "catalog_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "catalog_type": {
+ "enum": [
+ "SPORTS_CARD",
+ "TCG_CARD",
+ "NONSPORTS_CARD"
+ ],
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "enum": [
+ "update_running",
+ "updated",
+ "outcome_unknown",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "production",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "grant_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_hash": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "plan_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "catalog_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "catalog_type": {
+ "enum": [
+ "SPORTS_CARD",
+ "TCG_CARD",
+ "NONSPORTS_CARD"
+ ],
+ "type": "string"
+ },
+ "images_reordered": {
+ "type": "boolean"
+ },
+ "photo_rotated": {
+ "additionalProperties": false,
+ "properties": {
+ "degrees": {
+ "anyOf": [
+ {
+ "const": -90,
+ "type": "number"
+ },
+ {
+ "const": 90,
+ "type": "number"
+ },
+ {
+ "const": 180,
+ "type": "number"
+ }
+ ],
+ "description": "Explicit clockwise turn in degrees: -90 turns counterclockwise, 90 clockwise, and 180 a half turn. The turn composes with the saved edit state from its stable display base."
+ },
+ "image_index": {
+ "description": "Exact zero-based saved photo position from the current owned draft; this does not add or replace a photo.",
+ "maximum": 3,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "image_index",
+ "degrees"
+ ],
+ "type": "object"
+ },
+ "seller_notes_updated": {
+ "type": "boolean"
+ },
+ "source_draft_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "updated_version": {
+ "description": "Current owned DRAFT version observed when its committed operation marker and exact fields were reconciled; later native edits may have advanced it.",
+ "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"
+ }
+ },
+ "required": [
+ "source_draft_id",
+ "updated_version",
+ "catalog_id",
+ "catalog_type",
+ "seller_notes_updated"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "source_draft_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "running",
+ "succeeded",
+ "failed",
+ "reconciling"
+ ],
+ "type": "string"
+ },
+ "store_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing",
+ "type": "string"
+ },
+ "id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing",
+ "type": "string"
+ },
+ "id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "cancellation",
+ "store_id",
+ "actor_id",
+ "grant_id",
+ "environment",
+ "plan_id",
+ "plan_hash",
+ "source_draft_id",
+ "catalog_id",
+ "catalog_type"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "inventory.adjust",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "follow_up": {
+ "enum": [
+ "not_required",
+ "not_started",
+ "pending",
+ "queued",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "committed",
+ "refused",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "progress": {
+ "enum": [
+ "not_required",
+ "pending",
+ "queued",
+ "failed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "provider_verification": {
+ "const": "unavailable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "after_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "after_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "before_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "before_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "effective_available_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "history_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "holds_exceed_on_hand": {
+ "type": "boolean"
+ },
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "mode": {
+ "enum": [
+ "absolute_count",
+ "delta"
+ ],
+ "type": "string"
+ },
+ "operation_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reason": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reserved_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "source": {
+ "enum": [
+ "native",
+ "mcp"
+ ],
+ "type": "string"
+ },
+ "store_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "updated_at": {
+ "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"
+ },
+ "warning": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "store_id",
+ "mode",
+ "before_quantity_available",
+ "after_quantity_available",
+ "before_quantity_owned",
+ "after_quantity_owned",
+ "reserved_quantity",
+ "effective_available_quantity",
+ "holds_exceed_on_hand",
+ "warning",
+ "updated_at",
+ "history_id",
+ "reason",
+ "source"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "progress",
+ "follow_up",
+ "provider_verification"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "follow_up": {
+ "enum": [
+ "not_required",
+ "not_started",
+ "pending",
+ "queued",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "committed",
+ "refused",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "progress": {
+ "enum": [
+ "not_required",
+ "pending",
+ "queued",
+ "failed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "provider_verification": {
+ "const": "unavailable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "after_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "after_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "before_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "before_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "effective_available_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "history_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "holds_exceed_on_hand": {
+ "type": "boolean"
+ },
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "mode": {
+ "enum": [
+ "absolute_count",
+ "delta"
+ ],
+ "type": "string"
+ },
+ "operation_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reason": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reserved_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "source": {
+ "enum": [
+ "native",
+ "mcp"
+ ],
+ "type": "string"
+ },
+ "store_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "updated_at": {
+ "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"
+ },
+ "warning": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "store_id",
+ "mode",
+ "before_quantity_available",
+ "after_quantity_available",
+ "before_quantity_owned",
+ "after_quantity_owned",
+ "reserved_quantity",
+ "effective_available_quantity",
+ "holds_exceed_on_hand",
+ "warning",
+ "updated_at",
+ "history_id",
+ "reason",
+ "source"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "progress",
+ "follow_up",
+ "provider_verification"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "cancellation",
+ "plan_id"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "inventory.receive",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "follow_up": {
+ "enum": [
+ "not_required",
+ "not_started",
+ "pending",
+ "queued",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "committed",
+ "refused",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "provider_verification": {
+ "const": "unavailable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "date_evidence": {
+ "const": "seller_recorded_unverified",
+ "type": "string"
+ },
+ "inventory": {
+ "additionalProperties": false,
+ "properties": {
+ "after_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "after_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "before_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "before_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "effective_available_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "history_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "holds_exceed_on_hand": {
+ "type": "boolean"
+ },
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "mode": {
+ "const": "delta",
+ "type": "string"
+ },
+ "operation_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reason": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reserved_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "source": {
+ "const": "mcp",
+ "type": "string"
+ },
+ "store_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "updated_at": {
+ "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"
+ },
+ "warning": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "store_id",
+ "mode",
+ "before_quantity_available",
+ "after_quantity_available",
+ "before_quantity_owned",
+ "after_quantity_owned",
+ "reserved_quantity",
+ "effective_available_quantity",
+ "holds_exceed_on_hand",
+ "warning",
+ "updated_at",
+ "history_id",
+ "reason",
+ "source",
+ "operation_id"
+ ],
+ "type": "object"
+ },
+ "movement_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "quantity": {
+ "maximum": 10000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "received_date": {
+ "format": "date",
+ "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])))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "movement_id",
+ "received_date",
+ "quantity",
+ "date_evidence",
+ "inventory"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "follow_up",
+ "provider_verification"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "follow_up": {
+ "enum": [
+ "not_required",
+ "not_started",
+ "pending",
+ "queued",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "committed",
+ "refused",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "provider_verification": {
+ "const": "unavailable",
+ "type": "string"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "date_evidence": {
+ "const": "seller_recorded_unverified",
+ "type": "string"
+ },
+ "inventory": {
+ "additionalProperties": false,
+ "properties": {
+ "after_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "after_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "before_quantity_available": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "before_quantity_owned": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "effective_available_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "history_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "holds_exceed_on_hand": {
+ "type": "boolean"
+ },
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "mode": {
+ "const": "delta",
+ "type": "string"
+ },
+ "operation_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reason": {
+ "maxLength": 500,
+ "minLength": 1,
+ "type": "string"
+ },
+ "reserved_quantity": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "source": {
+ "const": "mcp",
+ "type": "string"
+ },
+ "store_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "updated_at": {
+ "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"
+ },
+ "warning": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "store_id",
+ "mode",
+ "before_quantity_available",
+ "after_quantity_available",
+ "before_quantity_owned",
+ "after_quantity_owned",
+ "reserved_quantity",
+ "effective_available_quantity",
+ "holds_exceed_on_hand",
+ "warning",
+ "updated_at",
+ "history_id",
+ "reason",
+ "source",
+ "operation_id"
+ ],
+ "type": "object"
+ },
+ "movement_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "quantity": {
+ "maximum": 10000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "received_date": {
+ "format": "date",
+ "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])))$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "movement_id",
+ "received_date",
+ "quantity",
+ "date_evidence",
+ "inventory"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "receipt",
+ "local_state",
+ "follow_up",
+ "provider_verification"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "cancellation",
+ "plan_id"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "listing.draft.submit",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "enum": [
+ "submitting_for_review",
+ "submitted_for_review",
+ "partially_submitted_for_review",
+ "submission_failed"
+ ],
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "destination": {
+ "const": "supercatch_review_queue",
+ "type": "string"
+ },
+ "expected_version": {
+ "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"
+ },
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "message": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "publication": {
+ "const": "not_requested",
+ "type": "string"
+ },
+ "reason": {
+ "anyOf": [
+ {
+ "enum": [
+ "not_found",
+ "version_conflict",
+ "not_ready",
+ "readiness_unavailable",
+ "permission_denied",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "succeeded",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "submitted_state": {
+ "anyOf": [
+ {
+ "const": "PENDING",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "submitted_version": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "expected_version",
+ "state",
+ "submitted_version",
+ "submitted_state",
+ "reason",
+ "message",
+ "checked_at",
+ "destination",
+ "publication"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "succeeded",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing",
+ "type": "string"
+ },
+ "id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing_submission_operation",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "explanation": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "pending",
+ "verified",
+ "not_started",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs",
+ "explanation"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "result",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "plan_hash": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "plan_id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "progress": {
+ "additionalProperties": false,
+ "properties": {
+ "failed": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "queued": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "succeeded": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "total": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "succeeded",
+ "failed",
+ "queued"
+ ],
+ "type": "object"
+ },
+ "result": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "destination": {
+ "const": "supercatch_review_queue",
+ "type": "string"
+ },
+ "expected_version": {
+ "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"
+ },
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "message": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "publication": {
+ "const": "not_requested",
+ "type": "string"
+ },
+ "reason": {
+ "anyOf": [
+ {
+ "enum": [
+ "not_found",
+ "version_conflict",
+ "not_ready",
+ "readiness_unavailable",
+ "permission_denied",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "succeeded",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "submitted_state": {
+ "anyOf": [
+ {
+ "const": "PENDING",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "submitted_version": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_id",
+ "expected_version",
+ "state",
+ "submitted_version",
+ "submitted_state",
+ "reason",
+ "message",
+ "checked_at",
+ "destination",
+ "publication"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "results_page": {
+ "additionalProperties": false,
+ "properties": {
+ "consistency": {
+ "enum": [
+ "snapshot",
+ "live"
+ ],
+ "type": "string"
+ },
+ "has_more": {
+ "type": "boolean"
+ },
+ "next_cursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "returned_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "snapshot_expires_at": {
+ "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"
+ },
+ "snapshot_id": {
+ "type": "string"
+ },
+ "total_count": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "returned_count",
+ "total_count",
+ "has_more",
+ "next_cursor",
+ "consistency"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "running",
+ "succeeded",
+ "partially_succeeded",
+ "failed"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing",
+ "type": "string"
+ },
+ "id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 5,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing_submission_operation",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "explanation": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "pending",
+ "verified",
+ "not_started",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs",
+ "explanation"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "domain_state",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "item_results",
+ "cancellation",
+ "app_url",
+ "plan_id",
+ "plan_hash",
+ "results_page",
+ "progress"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "account.saved_search.change",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "after_version": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "alerts_enabled_by_action": {
+ "const": false,
+ "type": "boolean"
+ },
+ "already_saved": {
+ "type": "boolean"
+ },
+ "before_version": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cache_refresh": {
+ "enum": [
+ "pending",
+ "completed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "change": {
+ "enum": [
+ "create",
+ "rename",
+ "delete"
+ ],
+ "type": "string"
+ },
+ "changed": {
+ "type": "boolean"
+ },
+ "current_name": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "existing_deliveries_recalled": {
+ "const": false,
+ "type": "boolean"
+ },
+ "previous_name": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "search_id": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "search_id",
+ "change",
+ "changed",
+ "already_saved",
+ "before_version",
+ "after_version",
+ "previous_name",
+ "current_name",
+ "alerts_enabled_by_action",
+ "existing_deliveries_recalled",
+ "cache_refresh"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "after_version": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "alerts_enabled_by_action": {
+ "const": false,
+ "type": "boolean"
+ },
+ "already_saved": {
+ "type": "boolean"
+ },
+ "before_version": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "cache_refresh": {
+ "enum": [
+ "pending",
+ "completed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "change": {
+ "enum": [
+ "create",
+ "rename",
+ "delete"
+ ],
+ "type": "string"
+ },
+ "changed": {
+ "type": "boolean"
+ },
+ "current_name": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "existing_deliveries_recalled": {
+ "const": false,
+ "type": "boolean"
+ },
+ "previous_name": {
+ "anyOf": [
+ {
+ "maxLength": 80,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "search_id": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "search_id",
+ "change",
+ "changed",
+ "already_saved",
+ "before_version",
+ "after_version",
+ "previous_name",
+ "current_name",
+ "alerts_enabled_by_action",
+ "existing_deliveries_recalled",
+ "cache_refresh"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "const": "succeeded",
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "saved_search",
+ "type": "string"
+ },
+ "id": {
+ "description": "Opaque identifier returned by the authorized application; never substitute a display label or another entity's ID.",
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "const": true,
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "result",
+ "cancellation",
+ "app_url"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "const": "listing.publish",
+ "type": "string"
+ },
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "cancellation": {
+ "const": "unsupported",
+ "type": "string"
+ },
+ "completion_criterion": {
+ "type": "string"
+ },
+ "created_at": {
+ "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"
+ },
+ "domain_state": {
+ "type": "string"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_results": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "item_id": {
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "approval": {
+ "enum": [
+ "not_ready",
+ "required",
+ "satisfied"
+ ],
+ "type": "string"
+ },
+ "attempt": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "destination": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "production",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "integration_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "marketplace": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "policies": {
+ "additionalProperties": false,
+ "properties": {
+ "fulfillment_policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "payment_policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "return_policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "fulfillment_policy_id",
+ "payment_policy_id",
+ "return_policy_id"
+ ],
+ "type": "object"
+ },
+ "policy_terms": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "enum": [
+ "fulfillment",
+ "payment",
+ "return"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "terms": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "maxLength": 4096,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "value"
+ ],
+ "type": "object"
+ },
+ "maxItems": 64,
+ "type": "array"
+ }
+ },
+ "required": [
+ "kind",
+ "policy_id",
+ "name",
+ "terms"
+ ],
+ "type": "object"
+ },
+ "maxItems": 3,
+ "minItems": 3,
+ "type": "array"
+ },
+ "sku": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "integration_id",
+ "marketplace",
+ "account_ref",
+ "environment",
+ "sku",
+ "policies",
+ "policy_terms"
+ ],
+ "type": "object"
+ },
+ "failure": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fee_quote": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "expires_at": {
+ "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"
+ },
+ "lines": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "promotional_discount": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "name",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "quoted_at": {
+ "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"
+ },
+ "total": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "lines",
+ "total",
+ "quoted_at",
+ "expires_at"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "listing_label": {
+ "maxLength": 1000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "committed",
+ "conflict",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "phase": {
+ "enum": [
+ "ready_to_stage",
+ "inventory_dispatching",
+ "inventory_staged",
+ "offer_dispatching",
+ "offer_staged",
+ "fee_review",
+ "ready_to_publish",
+ "publish_dispatching",
+ "published",
+ "cancelled",
+ "rejected",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "provider_state": {
+ "enum": [
+ "not_requested",
+ "staged",
+ "submitted",
+ "live",
+ "removed",
+ "rejected",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "quantity": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "observed_at": {
+ "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"
+ },
+ "offer_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "quantity": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "state": {
+ "const": "live",
+ "type": "string"
+ }
+ },
+ "required": [
+ "offer_id",
+ "listing_id",
+ "observed_at",
+ "price",
+ "quantity",
+ "state"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_label",
+ "price",
+ "quantity",
+ "phase",
+ "provider_state",
+ "local_state",
+ "destination",
+ "fee_quote",
+ "receipt",
+ "failure",
+ "attempt",
+ "approval"
+ ],
+ "type": "object"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "target": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "item_id",
+ "target",
+ "state",
+ "verification"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "item_results_cursor": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "plan_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "result": {
+ "additionalProperties": false,
+ "properties": {
+ "approval": {
+ "enum": [
+ "not_ready",
+ "required",
+ "satisfied"
+ ],
+ "type": "string"
+ },
+ "attempt": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "destination": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "production",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "integration_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "marketplace": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "policies": {
+ "additionalProperties": false,
+ "properties": {
+ "fulfillment_policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "payment_policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "return_policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "fulfillment_policy_id",
+ "payment_policy_id",
+ "return_policy_id"
+ ],
+ "type": "object"
+ },
+ "policy_terms": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "enum": [
+ "fulfillment",
+ "payment",
+ "return"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "policy_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "terms": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "maxLength": 256,
+ "minLength": 1,
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "maxLength": 4096,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "value"
+ ],
+ "type": "object"
+ },
+ "maxItems": 64,
+ "type": "array"
+ }
+ },
+ "required": [
+ "kind",
+ "policy_id",
+ "name",
+ "terms"
+ ],
+ "type": "object"
+ },
+ "maxItems": 3,
+ "minItems": 3,
+ "type": "array"
+ },
+ "sku": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "integration_id",
+ "marketplace",
+ "account_ref",
+ "environment",
+ "sku",
+ "policies",
+ "policy_terms"
+ ],
+ "type": "object"
+ },
+ "failure": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 2000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "fee_quote": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "expires_at": {
+ "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"
+ },
+ "lines": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "promotional_discount": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "name",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "quoted_at": {
+ "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"
+ },
+ "total": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "lines",
+ "total",
+ "quoted_at",
+ "expires_at"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "listing_label": {
+ "maxLength": 1000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "local_state": {
+ "enum": [
+ "pending",
+ "committed",
+ "conflict",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "phase": {
+ "enum": [
+ "ready_to_stage",
+ "inventory_dispatching",
+ "inventory_staged",
+ "offer_dispatching",
+ "offer_staged",
+ "fee_review",
+ "ready_to_publish",
+ "publish_dispatching",
+ "published",
+ "cancelled",
+ "rejected",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "provider_state": {
+ "enum": [
+ "not_requested",
+ "staged",
+ "submitted",
+ "live",
+ "removed",
+ "rejected",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "quantity": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "receipt": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "listing_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "observed_at": {
+ "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"
+ },
+ "offer_id": {
+ "maxLength": 128,
+ "minLength": 1,
+ "type": "string"
+ },
+ "price": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$",
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "amount",
+ "currency"
+ ],
+ "type": "object"
+ },
+ "quantity": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "state": {
+ "const": "live",
+ "type": "string"
+ }
+ },
+ "required": [
+ "offer_id",
+ "listing_id",
+ "observed_at",
+ "price",
+ "quantity",
+ "state"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "listing_label",
+ "price",
+ "quantity",
+ "phase",
+ "provider_state",
+ "local_state",
+ "destination",
+ "fee_quote",
+ "receipt",
+ "failure",
+ "attempt",
+ "approval"
+ ],
+ "type": "object"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "queued",
+ "running",
+ "waiting_for_input",
+ "waiting_for_approval",
+ "reconciling",
+ "succeeded",
+ "partially_succeeded",
+ "failed",
+ "cancelled"
+ ],
+ "type": "string"
+ },
+ "targets": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "const": "listing",
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "maxItems": 1,
+ "minItems": 1,
+ "type": "array"
+ },
+ "terminal": {
+ "type": "boolean"
+ },
+ "updated_at": {
+ "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"
+ },
+ "verification": {
+ "additionalProperties": false,
+ "properties": {
+ "checked_at": {
+ "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"
+ },
+ "evidence_refs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "app_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "entity_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "id": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "entity_type",
+ "id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "explanation": {
+ "type": "string"
+ },
+ "state": {
+ "enum": [
+ "not_started",
+ "pending",
+ "verified",
+ "mismatch",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "state",
+ "evidence_refs"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "operation_id",
+ "action",
+ "state",
+ "terminal",
+ "created_at",
+ "updated_at",
+ "targets",
+ "completion_criterion",
+ "verification",
+ "result",
+ "cancellation",
+ "plan_id"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "operation",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "additionalProperties": false,
+ "properties": {
+ "account_ref": {
+ "type": "string"
+ },
+ "app_id": {
+ "const": "supercatch",
+ "type": "string"
+ },
+ "connection_ref": {
+ "type": "string"
+ },
+ "environment": {
+ "enum": [
+ "public",
+ "production",
+ "staging",
+ "paper",
+ "sandbox"
+ ],
+ "type": "string"
+ },
+ "tenant_ref": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "timezone": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "app_id",
+ "tenant_ref",
+ "environment",
+ "timezone"
+ ],
+ "type": "object"
+ },
+ "data": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "invalid_input",
+ "unauthenticated",
+ "permission_denied",
+ "consent_required",
+ "ambiguous_target",
+ "not_found",
+ "unsupported_capability",
+ "configuration_required",
+ "integration_expired",
+ "stale_data",
+ "version_conflict",
+ "approval_required",
+ "approval_expired",
+ "idempotency_conflict",
+ "rate_limited",
+ "quota_exceeded",
+ "provider_unavailable",
+ "outcome_unknown",
+ "reconciliation_required",
+ "cursor_expired",
+ "artifact_expired",
+ "internal_error"
+ ],
+ "type": "string"
+ },
+ "domain_code": {
+ "type": "string"
+ },
+ "effects": {
+ "enum": [
+ "none",
+ "committed",
+ "partial",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "field_errors": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "message": {
+ "type": "string"
+ },
+ "operation_id": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "retry_strategy": {
+ "enum": [
+ "never",
+ "same_request",
+ "after_delay",
+ "after_correction",
+ "reconcile_first"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "effects",
+ "retry_strategy"
+ ],
+ "type": "object"
+ },
+ "generated_at": {
+ "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"
+ },
+ "kind": {
+ "const": "error",
+ "type": "string"
+ },
+ "next_actions": {
+ "items": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "tool_name": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "call_tool",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "tool_name",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "open_url",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "fields": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "type": {
+ "const": "provide_input",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "fields",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "reason": {
+ "type": "string"
+ },
+ "retry_after_ms": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "type": {
+ "const": "wait",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "retry_after_ms",
+ "reason"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "provenance": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "freshness": {
+ "enum": [
+ "fresh",
+ "stale",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "observed_at": {
+ "anyOf": [
+ {
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "retrieved_at": {
+ "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"
+ },
+ "source_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "source_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "source_version": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "source_id",
+ "observed_at",
+ "retrieved_at",
+ "freshness"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "request_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0.0",
+ "type": "string"
+ },
+ "warnings": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "field": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "kind",
+ "request_id",
+ "generated_at",
+ "context",
+ "data",
+ "warnings",
+ "next_actions"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+]