Browse Source

增加验证OwnershipChallenge

ChenHaolong 1 year ago
parent
commit
52c69bf8c3
1 changed files with 18 additions and 1 deletions
  1. 18 1
      logPush.proto

+ 18 - 1
logPush.proto

@@ -11,9 +11,10 @@ service LogPushCloudflare {
   rpc ListLogPushJobsByZoneId(ListLogPushJobRequestByZoneId) returns (ListLogPushJobReplay) {}
   rpc ListLogPushJobsByZoneId(ListLogPushJobRequestByZoneId) returns (ListLogPushJobReplay) {}
   rpc CreateLogPushJobByZoneId(CreateLogPushJobRequestByZoneId) returns (CreateLogPushJobReplay) {}
   rpc CreateLogPushJobByZoneId(CreateLogPushJobRequestByZoneId) returns (CreateLogPushJobReplay) {}
   rpc DeleteLogPushJobByZoneId(DeleteLogPushJobRequestByZoneId) returns (DeleteLogPushJobReplay) {}
   rpc DeleteLogPushJobByZoneId(DeleteLogPushJobRequestByZoneId) returns (DeleteLogPushJobReplay) {}
+  rpc GetOwnershipTokenByZoneId(GetOwnershipChallengeRequestByZoneId) returns (GetOwnershipChallengeReply) {}
 }
 }
 
 
-message LogPushJobEntity{
+message LogPushJobEntity {
   int64 id = 1;
   int64 id = 1;
   string dataSet = 2;
   string dataSet = 2;
   string destinationConf = 3;
   string destinationConf = 3;
@@ -22,6 +23,12 @@ message LogPushJobEntity{
   string name = 6;
   string name = 6;
 }
 }
 
 
+message OwnershipChallengeEntity {
+  string filename = 1;
+  bool valid = 2;
+  string message = 3;
+}
+
 message ListLogPushJobRequestByZoneId {
 message ListLogPushJobRequestByZoneId {
   string apiKey = 1;
   string apiKey = 1;
   string apiEmail = 2;
   string apiEmail = 2;
@@ -58,3 +65,13 @@ message DeleteLogPushJobReplay {
   string message = 2;
   string message = 2;
 }
 }
 
 
+message GetOwnershipChallengeRequestByZoneId {
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+  string destinationConf = 4;
+}
+
+message GetOwnershipChallengeReply {
+  OwnershipChallengeEntity result = 1;
+}