{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/logbrew/json-schema/logbrew-native-debug-artifact-upload-response-schema.json",
  "title": "NativeDebugArtifactUploadResponse",
  "description": "Response body after native debug artifact upload.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logbrew-debug-files-api-openapi.yml#/components/schemas/NativeDebugArtifactUploadResponse",
  "properties": {
    "artifact_count": {
      "description": "Number of artifacts accepted in this upload.",
      "format": "uint",
      "minimum": 0,
      "type": "integer"
    },
    "next": {
      "description": "Display-safe next step.",
      "type": "string"
    },
    "next_action": {
      "$ref": "#/$defs/NativeDebugArtifactNextActionResponse",
      "description": "Stable machine-readable next action."
    },
    "status": {
      "$ref": "#/$defs/NativeDebugArtifactUploadStatus",
      "description": "Upload status."
    },
    "upload_id": {
      "description": "Stable upload identifier.",
      "type": "string"
    }
  },
  "required": [
    "upload_id",
    "status",
    "artifact_count",
    "next",
    "next_action"
  ],
  "type": "object",
  "$defs": {
    "NativeDebugArtifactNextActionCode": {
      "description": "Stable next-action codes for native debug artifacts.",
      "oneOf": [
        {
          "const": "upload_native_debug_artifact_chunks",
          "description": "Upload only chunks that the session reports missing.",
          "type": "string"
        },
        {
          "const": "complete_native_debug_artifact_upload",
          "description": "Complete a session after every exact chunk is retained.",
          "type": "string"
        },
        {
          "const": "verify_native_debug_artifact_lookup",
          "description": "Verify exact metadata lookup after upload.",
          "type": "string"
        },
        {
          "const": "verify_native_issue_symbolication",
          "description": "Verify that issue detail can resolve a captured native frame.",
          "type": "string"
        },
        {
          "const": "upload_native_debug_artifact",
          "description": "Upload the missing exact native debug artifact.",
          "type": "string"
        }
      ]
    },
    "NativeDebugArtifactNextActionResponse": {
      "description": "Stable machine-readable native debug artifact next action.",
      "properties": {
        "code": {
          "$ref": "#/$defs/NativeDebugArtifactNextActionCode",
          "description": "Stable action code."
        },
        "target": {
          "$ref": "#/$defs/NativeDebugArtifactNextActionTarget",
          "description": "Client surface that handles the action."
        }
      },
      "required": [
        "code",
        "target"
      ],
      "type": "object"
    },
    "NativeDebugArtifactNextActionTarget": {
      "description": "Stable next-action targets for native debug artifacts.",
      "oneOf": [
        {
          "const": "native_debug_artifact_lookup",
          "description": "Native debug artifact lookup collection.",
          "type": "string"
        },
        {
          "const": "native_issue_symbolication",
          "description": "Native issue-detail symbolication surface.",
          "type": "string"
        },
        {
          "const": "native_debug_artifact_upload",
          "description": "Native debug artifact upload surface.",
          "type": "string"
        }
      ]
    },
    "NativeDebugArtifactUploadStatus": {
      "description": "Native debug artifact upload lifecycle status.",
      "oneOf": [
        {
          "const": "uploaded",
          "description": "Uploaded object identity and content passed validation.",
          "type": "string"
        }
      ]
    }
  }
}