appstore.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. message AppInfo {
  2. optional string identifier = 0x1;
  3. optional int32 version_int = 0x2;
  4. }
  5. message AppInfoList {
  6. repeated AppInfo items = 0x1;
  7. }
  8. message SemanticVersion {
  9. optional int32 major = 0x1;
  10. optional int32 minor = 0x2;
  11. optional int32 patch = 0x3;
  12. }
  13. message RequestHeader {
  14. optional string market = 0x1;
  15. optional Platform platform = 0x2;
  16. enum Platform {
  17. WIN32_X86 = 0x0;
  18. OSX_X86 = 0x1;
  19. LINUX_X86 = 0x2;
  20. IPHONE_ARM = 0x3;
  21. SYMBIANS60_ARM = 0x4;
  22. OSX_POWERPC = 0x5;
  23. ANDROID_ARM = 0x6;
  24. WINCE_ARM = 0x7;
  25. LINUX_X86_64 = 0x8;
  26. OSX_X86_64 = 0x9;
  27. PALM_ARM = 0xa;
  28. LINUX_SH = 0xb;
  29. FREEBSD_X86 = 0xc;
  30. FREEBSD_X86_64 = 0xd;
  31. BLACKBERRY_ARM = 0xe;
  32. SONOS_UNKNOWN = 0xf;
  33. LINUX_MIPS = 0x10;
  34. LINUX_ARM = 0x11;
  35. LOGITECH_ARM = 0x12;
  36. LINUX_BLACKFIN = 0x13;
  37. ONKYO_ARM = 0x15;
  38. QNXNTO_ARM = 0x16;
  39. BADPLATFORM = 0xff;
  40. }
  41. optional AppInfoList app_infos = 0x6;
  42. optional string bridge_identifier = 0x7;
  43. optional SemanticVersion bridge_version = 0x8;
  44. optional DeviceClass device_class = 0x9;
  45. enum DeviceClass {
  46. DESKTOP = 0x1;
  47. TABLET = 0x2;
  48. MOBILE = 0x3;
  49. WEB = 0x4;
  50. TV = 0x5;
  51. }
  52. }
  53. message AppItem {
  54. optional string identifier = 0x1;
  55. optional Requirement requirement = 0x2;
  56. enum Requirement {
  57. REQUIRED_INSTALL = 0x1;
  58. LAZYLOAD = 0x2;
  59. OPTIONAL_INSTALL = 0x3;
  60. }
  61. optional string manifest = 0x4;
  62. optional string checksum = 0x5;
  63. optional string bundle_uri = 0x6;
  64. optional string small_icon_uri = 0x7;
  65. optional string large_icon_uri = 0x8;
  66. optional string medium_icon_uri = 0x9;
  67. optional Type bundle_type = 0xa;
  68. enum Type {
  69. APPLICATION = 0x0;
  70. FRAMEWORK = 0x1;
  71. BRIDGE = 0x2;
  72. }
  73. optional SemanticVersion version = 0xb;
  74. optional uint32 ttl_in_seconds = 0xc;
  75. optional IdentifierList categories = 0xd;
  76. }
  77. message AppList {
  78. repeated AppItem items = 0x1;
  79. }
  80. message IdentifierList {
  81. repeated string identifiers = 0x1;
  82. }
  83. message BannerConfig {
  84. optional string json = 0x1;
  85. }