common.proto 1.59 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
syntax = "proto3";

package gpnetd;

option go_package = "./gpnetdpb";
option java_outer_classname = "CommonProto";
option java_package = "com.gpnetd";

import "google/protobuf/timestamp.proto";

// Credentials used for authentication.
message Credentials {
  // account_id the account id.
  string account_id = 1;
  // application_id the application id.
  string application_id = 2;
} 

// SuccessResp used as a generic response for certain requests.
message SuccessResp {
  // success whther or not operation was successful.
  bool success = 1;
}

// HandleDetail describes a handle.
message HandleDetail {
  // handle_id the id of the handle.
  string handle_id = 1;
  // did the did.
  string did = 2;
  // provider_id id of the associated provider.
  string provider_id = 3;
  // account_id id of the associated account.
  string account_id = 4;
  // application_id id of the associated application.
  string application_id = 5;
  // inbound whether or not inbound capability exists.
  bool inbound = 6;
  // outbound whether or not outbound capability exists.
  bool outbound = 7;
  // active whether or not this did is active.
  bool active = 8;
}

// ApplicationDetail describes an application.
message ApplicationDetail {
  // application_id id of the application.
  string application_id = 1;
  // name name of the application.
  string name = 2;
  // create_dt creation timestamp for the application.
  google.protobuf.Timestamp create_dt = 3;
  // update_dt last updated timestamp for the application.
  google.protobuf.Timestamp update_dt = 4;
  // active whether or not the application is active.
  bool active = 5;
}