Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 151 additions & 53 deletions app/controlplane/api/controlplane/v1/workflow_contract.pb.go

Large diffs are not rendered by default.

22 changes: 21 additions & 1 deletion app/controlplane/api/controlplane/v1/workflow_contract.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2024-2025 The Chainloop Authors.
// Copyright 2024-2026 The Chainloop Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -119,6 +119,8 @@ message WorkflowContractServiceDeleteResponse {}
message WorkflowContractServiceApplyRequest {
// Raw representation of the contract in json, yaml or cue
bytes raw_schema = 1;
// When true, validate and compute the result without persisting any change
bool dry_run = 2;
}

message WorkflowContractServiceApplyResponse {
Expand All @@ -127,4 +129,22 @@ message WorkflowContractServiceApplyResponse {
bool unchanged = 2 [deprecated = true];
// Whether the resource was changed
bool changed = 3;
// Detailed outcome of the apply operation
ApplyStatus status = 4;
// Current revision of the contract after the apply.
// For a newly created contract this is the first revision; for an
// unchanged contract it stays at the existing revision; for dry runs it
// reflects the existing revision (0 when the contract does not exist yet).
int32 current_revision = 5;

// ApplyStatus describes how the applied resource changed
enum ApplyStatus {
APPLY_STATUS_UNSPECIFIED = 0;
// The resource did not exist and was created
APPLY_STATUS_CREATED = 1;
// The resource existed and its content changed
APPLY_STATUS_UPDATED = 2;
// The resource existed and its content was identical
APPLY_STATUS_UNCHANGED = 3;
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 109 additions & 3 deletions app/controlplane/api/gen/frontend/controlplane/v1/workflow_contract.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading