update cicd

This commit is contained in:
2026-04-02 11:01:30 +00:00
parent 863a0ea2f6
commit 5a7f29c116
54 changed files with 4298 additions and 473 deletions

View File

@@ -49,6 +49,10 @@ service Admin {
rpc CreateAdminJob(CreateAdminJobRequest) returns (CreateAdminJobResponse);
rpc CancelAdminJob(CancelAdminJobRequest) returns (CancelAdminJobResponse);
rpc RetryAdminJob(RetryAdminJobRequest) returns (RetryAdminJobResponse);
rpc ListAdminDlqJobs(ListAdminDlqJobsRequest) returns (ListAdminDlqJobsResponse);
rpc GetAdminDlqJob(GetAdminDlqJobRequest) returns (GetAdminDlqJobResponse);
rpc RetryAdminDlqJob(RetryAdminDlqJobRequest) returns (RetryAdminDlqJobResponse);
rpc RemoveAdminDlqJob(RemoveAdminDlqJobRequest) returns (RemoveAdminDlqJobResponse);
rpc ListAdminAgents(ListAdminAgentsRequest) returns (ListAdminAgentsResponse);
rpc RestartAdminAgent(RestartAdminAgentRequest) returns (AdminAgentCommandResponse);
rpc UpdateAdminAgent(UpdateAdminAgentRequest) returns (AdminAgentCommandResponse);
@@ -533,6 +537,43 @@ message RetryAdminJobResponse {
AdminJob job = 1;
}
message ListAdminDlqJobsRequest {
int32 offset = 1;
int32 limit = 2;
}
message ListAdminDlqJobsResponse {
repeated AdminDlqEntry items = 1;
int64 total = 2;
int32 offset = 3;
int32 limit = 4;
}
message GetAdminDlqJobRequest {
string id = 1;
}
message GetAdminDlqJobResponse {
AdminDlqEntry item = 1;
}
message RetryAdminDlqJobRequest {
string id = 1;
}
message RetryAdminDlqJobResponse {
AdminJob job = 1;
}
message RemoveAdminDlqJobRequest {
string id = 1;
}
message RemoveAdminDlqJobResponse {
string status = 1;
string job_id = 2;
}
message ListAdminAgentsRequest {}
message ListAdminAgentsResponse {

View File

@@ -392,3 +392,10 @@ message AdminAgent {
google.protobuf.Timestamp created_at = 11;
google.protobuf.Timestamp updated_at = 12;
}
message AdminDlqEntry {
AdminJob job = 1;
google.protobuf.Timestamp failure_time = 2;
string reason = 3;
int32 retry_count = 4;
}

View File

@@ -0,0 +1,23 @@
syntax = "proto3";
package stream.app.v1;
option go_package = "stream.api/internal/gen/proto/app/v1;appv1";
import "app/v1/common.proto";
service VideoMetadata {
rpc GetVideoMetadata(GetVideoMetadataRequest) returns (GetVideoMetadataResponse);
}
message GetVideoMetadataRequest {
string video_id = 1;
}
message GetVideoMetadataResponse {
Video video = 1;
PlayerConfig default_player_config = 2;
AdTemplate ad_template = 3;
PopupAd active_popup_ad = 4;
repeated Domain domains = 5;
}