Skip to content

Commit

Permalink
add an artifact ID to the artifact intent/upload requests (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowp authored Feb 20, 2025
1 parent 8f2288b commit 0edbdde
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/bitdrift_public/protobuf/client/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ message UploadArtifactIntentRequest {
// The metadata associated with the artifact. This is a binary blob that is interpreted by the server
// based on the type_id.
bytes metadata = 3;

// A client-generated ID that uniquely identifies the artifact. This is used to correlate the artifact
// with logs that reference it.
string artifact_id = 4 [(validate.rules).string = {min_len: 1}];
}

message UploadArtifactIntentResponse {
Expand Down Expand Up @@ -285,7 +289,11 @@ message UploadArtifactRequest {
string type_id = 2 [(validate.rules).string = {min_len: 1}];

// The artifact to upload. This is a binary blob that is interpreted by the server based on the type_id.
bytes contents = 3 [(validate.rules).bytes = {min_len: 1}];
bytes contents = 3;

// A client-generated ID that uniquely identifies the artifact being uploaded. This is used to correlate
// the artifact with logs that reference it.
string artifact_id = 4 [(validate.rules).string = {min_len: 1}];
}

message UploadArtifactResponse {
Expand Down

0 comments on commit 0edbdde

Please sign in to comment.