feat(openapi): complete upload preview and UI evidence

This commit is contained in:
bsodfather committed 2026-08-28 15:38:14 +03:00
1 parent d2849ea3fe
commit 2c94af6791
35 files changed
+3655 -537

No files matched your search

+12
View File
@@ -1,3 +1,4 @@
use crank_artifacts::ArtifactRef;
use crank_core::{
Agent, AgentId, AgentOperationBinding, AgentStatus, AgentVersion, ApprovalRequest,
ApprovalRequestId, ApprovalRequestStatus, AuthProfile, DescriptorId, ExecutionErrorCode,
@@ -584,6 +585,16 @@ pub enum ImportJobKind {
OpenApi,
}
/// The bounded, opaque authority retained with an OpenAPI import job.
/// It is persisted inside the existing JSONB payload, never exposed by the
/// admin response, and is rechecked against workspace-scoped metadata at
/// apply time.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ImportJobSourceEnvelope {
pub source_id: ArtifactSourceId,
pub digest: ArtifactRef,
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ImportJob {
pub id: ImportJobId,
@@ -611,6 +622,7 @@ pub struct CreateImportJobRequest<'a> {
pub source_format: &'a str,
pub source_version: Option<&'a str>,
pub status: ImportJobStatus,
pub source: &'a ImportJobSourceEnvelope,
pub preview_payload: &'a Value,
pub created_at: &'a OffsetDateTime,
pub expires_at: &'a OffsetDateTime,