code.gitea.io/gitea@v1.22.3/routers/api/actions/artifact.proto (about) 1 syntax = "proto3"; 2 3 import "google/protobuf/timestamp.proto"; 4 import "google/protobuf/wrappers.proto"; 5 6 package github.actions.results.api.v1; 7 8 message CreateArtifactRequest { 9 string workflow_run_backend_id = 1; 10 string workflow_job_run_backend_id = 2; 11 string name = 3; 12 google.protobuf.Timestamp expires_at = 4; 13 int32 version = 5; 14 } 15 16 message CreateArtifactResponse { 17 bool ok = 1; 18 string signed_upload_url = 2; 19 } 20 21 message FinalizeArtifactRequest { 22 string workflow_run_backend_id = 1; 23 string workflow_job_run_backend_id = 2; 24 string name = 3; 25 int64 size = 4; 26 google.protobuf.StringValue hash = 5; 27 } 28 29 message FinalizeArtifactResponse { 30 bool ok = 1; 31 int64 artifact_id = 2; 32 } 33 34 message ListArtifactsRequest { 35 string workflow_run_backend_id = 1; 36 string workflow_job_run_backend_id = 2; 37 google.protobuf.StringValue name_filter = 3; 38 google.protobuf.Int64Value id_filter = 4; 39 } 40 41 message ListArtifactsResponse { 42 repeated ListArtifactsResponse_MonolithArtifact artifacts = 1; 43 } 44 45 message ListArtifactsResponse_MonolithArtifact { 46 string workflow_run_backend_id = 1; 47 string workflow_job_run_backend_id = 2; 48 int64 database_id = 3; 49 string name = 4; 50 int64 size = 5; 51 google.protobuf.Timestamp created_at = 6; 52 } 53 54 message GetSignedArtifactURLRequest { 55 string workflow_run_backend_id = 1; 56 string workflow_job_run_backend_id = 2; 57 string name = 3; 58 } 59 60 message GetSignedArtifactURLResponse { 61 string signed_url = 1; 62 } 63 64 message DeleteArtifactRequest { 65 string workflow_run_backend_id = 1; 66 string workflow_job_run_backend_id = 2; 67 string name = 3; 68 } 69 70 message DeleteArtifactResponse { 71 bool ok = 1; 72 int64 artifact_id = 2; 73 }