appstore.proto 2.2 KB

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