steamutils 1.4.62 → 1.4.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/.idea/codeStyles/Project.xml +0 -1
  2. package/.idea/gbrowser_project.xml +11 -0
  3. package/.idea/git_toolbox_blame.xml +6 -0
  4. package/.idea/git_toolbox_prj.xml +15 -0
  5. package/.prettierrc.json +3 -3
  6. package/SteamClient.js +2764 -2757
  7. package/_steamproto.js +33 -33
  8. package/axios.js +84 -84
  9. package/bufferHelpers.js +115 -115
  10. package/cheerio.js +103 -103
  11. package/const.js +458 -458
  12. package/create_proto.js +96 -96
  13. package/create_remote_file.js +66 -66
  14. package/helpers/protos.js +48 -48
  15. package/index.js +7764 -7764
  16. package/package.json +1 -1
  17. package/protos/csgo/base_gcmessages.proto +553 -553
  18. package/protos/csgo/base_gcmessages_csgo.proto +547 -547
  19. package/protos/csgo/c_peer2peer_netmessages.proto +55 -55
  20. package/protos/csgo/clientmessages.proto +48 -48
  21. package/protos/csgo/connectionless_netmessages.proto +17 -17
  22. package/protos/csgo/cs_gameevents.proto +35 -35
  23. package/protos/csgo/cs_usercmd.proto +34 -34
  24. package/protos/csgo/cstrike15_gcmessages.proto +1431 -1431
  25. package/protos/csgo/cstrike15_usermessages.proto +592 -592
  26. package/protos/csgo/demo.proto +165 -165
  27. package/protos/csgo/econ_gcmessages.proto +219 -219
  28. package/protos/csgo/enums_clientserver.proto +1529 -1529
  29. package/protos/csgo/fatdemo.proto +125 -125
  30. package/protos/csgo/gameevents.proto +120 -120
  31. package/protos/csgo/gcsdk_gcmessages.proto +323 -323
  32. package/protos/csgo/gcsystemmsgs.proto +243 -243
  33. package/protos/csgo/netmessages.proto +618 -618
  34. package/protos/csgo/networkbasetypes.proto +246 -246
  35. package/protos/csgo/networksystem_protomessages.proto +17 -17
  36. package/protos/csgo/steamdatagram_messages_auth.proto +65 -65
  37. package/protos/csgo/steamdatagram_messages_sdr.proto +534 -534
  38. package/protos/csgo/steammessages_cloud.steamworkssdk.proto +68 -68
  39. package/protos/csgo/steammessages_gamenetworkingui.proto +61 -61
  40. package/protos/csgo/steammessages_helprequest.steamworkssdk.proto +22 -22
  41. package/protos/csgo/steammessages_oauth.steamworkssdk.proto +18 -18
  42. package/protos/csgo/steammessages_player.steamworkssdk.proto +254 -254
  43. package/protos/csgo/steammessages_publishedfile.steamworkssdk.proto +233 -233
  44. package/protos/csgo/steamnetworkingsockets_messages.proto +205 -205
  45. package/protos/csgo/steamnetworkingsockets_messages_certs.proto +39 -39
  46. package/protos/csgo/steamnetworkingsockets_messages_udp.proto +75 -75
  47. package/protos/csgo/te.proto +259 -259
  48. package/protos/csgo/uifontfile_format.proto +13 -13
  49. package/protos/csgo/usercmd.proto +39 -39
  50. package/protos/csgo/usermessages.proto +752 -752
  51. package/protos/google/protobuf/descriptor.proto +281 -281
  52. package/protos/steam/clientmetrics.proto +45 -45
  53. package/protos/steam/content_manifest.proto +62 -62
  54. package/protos/steam/contenthubs.proto +41 -41
  55. package/protos/steam/encrypted_app_ticket.proto +10 -10
  56. package/protos/steam/enums.proto +501 -501
  57. package/protos/steam/enums_clientserver.proto +1508 -1508
  58. package/protos/steam/enums_productinfo.proto +14 -14
  59. package/protos/steam/htmlmessages.proto +1039 -1039
  60. package/protos/steam/offline_ticket.proto +8 -8
  61. package/protos/steam/steamdatagram_messages_auth.proto +65 -65
  62. package/protos/steam/steamdatagram_messages_sdr.proto +533 -533
  63. package/protos/steam/steammessages_accounthardware.steamclient.proto +167 -167
  64. package/protos/steam/steammessages_appoverview.proto +204 -204
  65. package/protos/steam/steammessages_auth.steamclient.proto +375 -375
  66. package/protos/steam/steammessages_broadcast.steamclient.proto +618 -618
  67. package/protos/steam/steammessages_chat.steamclient.proto +1070 -1070
  68. package/protos/steam/steammessages_client_objects.proto +649 -649
  69. package/protos/steam/steammessages_clientlanp2p.proto +43 -43
  70. package/protos/steam/steammessages_clientmetrics.steamclient.proto +192 -192
  71. package/protos/steam/steammessages_clientnotificationtypes.proto +250 -250
  72. package/protos/steam/steammessages_clientserver.proto +392 -392
  73. package/protos/steam/steammessages_clientserver_2.proto +771 -771
  74. package/protos/steam/steammessages_clientserver_appinfo.proto +131 -131
  75. package/protos/steam/steammessages_clientserver_friends.proto +260 -260
  76. package/protos/steam/steammessages_clientserver_gameservers.proto +159 -159
  77. package/protos/steam/steammessages_clientserver_lbs.proto +70 -70
  78. package/protos/steam/steammessages_clientserver_login.proto +167 -167
  79. package/protos/steam/steammessages_clientserver_mms.proto +233 -233
  80. package/protos/steam/steammessages_clientserver_ucm.proto +207 -207
  81. package/protos/steam/steammessages_clientserver_uds.proto +125 -125
  82. package/protos/steam/steammessages_clientserver_ufs.proto +45 -45
  83. package/protos/steam/steammessages_clientserver_userstats.proto +80 -80
  84. package/protos/steam/steammessages_cloud.steamclient.proto +422 -422
  85. package/protos/steam/steammessages_contentsystem.steamclient.proto +123 -123
  86. package/protos/steam/steammessages_credentials.steamclient.proto +96 -96
  87. package/protos/steam/steammessages_datapublisher.steamclient.proto +102 -102
  88. package/protos/steam/steammessages_depotbuilder.steamclient.proto +99 -99
  89. package/protos/steam/steammessages_deviceauth.steamclient.proto +169 -169
  90. package/protos/steam/steammessages_econ.steamclient.proto +137 -137
  91. package/protos/steam/steammessages_familygroups.steamclient.proto +441 -441
  92. package/protos/steam/steammessages_friendmessages.steamclient.proto +141 -141
  93. package/protos/steam/steammessages_gamenetworking.steamclient.proto +25 -25
  94. package/protos/steam/steammessages_gamenetworkingui.proto +61 -61
  95. package/protos/steam/steammessages_gamenotifications.steamclient.proto +131 -131
  96. package/protos/steam/steammessages_gameservers.steamclient.proto +136 -136
  97. package/protos/steam/steammessages_hiddevices.proto +157 -157
  98. package/protos/steam/steammessages_inventory.steamclient.proto +172 -172
  99. package/protos/steam/steammessages_linkfilter.steamclient.proto +39 -39
  100. package/protos/steam/steammessages_lobbymatchmaking.steamclient.proto +29 -29
  101. package/protos/steam/steammessages_market.steamclient.proto +22 -22
  102. package/protos/steam/steammessages_marketingmessages.steamclient.proto +273 -273
  103. package/protos/steam/steammessages_offline.steamclient.proto +33 -33
  104. package/protos/steam/steammessages_parental.steamclient.proto +262 -262
  105. package/protos/steam/steammessages_parties.steamclient.proto +75 -75
  106. package/protos/steam/steammessages_partnerapps.steamclient.proto +106 -106
  107. package/protos/steam/steammessages_player.steamclient.proto +915 -915
  108. package/protos/steam/steammessages_publishedfile.steamclient.proto +737 -737
  109. package/protos/steam/steammessages_qms.steamclient.proto +111 -111
  110. package/protos/steam/steammessages_remoteclient.proto +100 -100
  111. package/protos/steam/steammessages_remoteclient_discovery.proto +244 -244
  112. package/protos/steam/steammessages_remoteclient_service.steamclient.proto +31 -31
  113. package/protos/steam/steammessages_remoteclient_service_messages.proto +217 -217
  114. package/protos/steam/steammessages_remoteplay.proto +975 -975
  115. package/protos/steam/steammessages_secrets.steamclient.proto +35 -35
  116. package/protos/steam/steammessages_shader.steamclient.proto +89 -89
  117. package/protos/steam/steammessages_site_license.steamclient.proto +103 -103
  118. package/protos/steam/steammessages_sitelicenseclient.proto +38 -38
  119. package/protos/steam/steammessages_siteserverui.proto +130 -130
  120. package/protos/steam/steammessages_steamtv.steamclient.proto +533 -533
  121. package/protos/steam/steammessages_store.steamclient.proto +404 -404
  122. package/protos/steam/steammessages_storebrowse.steamclient.proto +457 -457
  123. package/protos/steam/steammessages_timedtrial.steamclient.proto +40 -40
  124. package/protos/steam/steammessages_twofactor.steamclient.proto +157 -157
  125. package/protos/steam/steammessages_unified_test.steamclient.proto +51 -51
  126. package/protos/steam/steammessages_useraccount.steamclient.proto +211 -211
  127. package/protos/steam/steammessages_vac.steamclient.proto +37 -37
  128. package/protos/steam/steammessages_video.steamclient.proto +68 -68
  129. package/protos/steam/steammessages_virtualcontroller.proto +138 -138
  130. package/protos/steam/steammessages_workshop.steamclient.proto +19 -19
  131. package/protos/steam/steamnetworkingsockets_messages.proto +205 -205
  132. package/protos/steam/steamnetworkingsockets_messages_certs.proto +39 -39
  133. package/protos/steam/steamnetworkingsockets_messages_udp.proto +75 -75
  134. package/protos/steam/webuimessages_achievements.proto +29 -29
  135. package/protos/steam/webuimessages_gamenotes.proto +21 -21
  136. package/protos/steam/webuimessages_gamescope.proto +57 -57
  137. package/protos/steam/webuimessages_steamengine.proto +41 -41
  138. package/protos/steam/webuimessages_steamos.proto +114 -114
  139. package/protos/steam/webuimessages_storagedevicemanager.proto +110 -110
  140. package/protos/steam/webuimessages_systemmanager.proto +17 -17
  141. package/protos/steam/webuimessages_transport.proto +22 -22
  142. package/protos/steam/webuimessages_transportvalidation.proto +111 -111
  143. package/protos/webui/common.proto +4024 -4024
  144. package/protos/webui/service_accountcart.proto +153 -153
  145. package/protos/webui/service_accountlinking.proto +27 -27
  146. package/protos/webui/service_accountprivacy.proto +42 -42
  147. package/protos/webui/service_accountprivateapps.proto +34 -34
  148. package/protos/webui/service_auction.proto +97 -97
  149. package/protos/webui/service_authentication.proto +222 -222
  150. package/protos/webui/service_authenticationsupport.proto +74 -74
  151. package/protos/webui/service_broadcast.proto +562 -562
  152. package/protos/webui/service_chat.proto +11 -11
  153. package/protos/webui/service_chatroom.proto +810 -810
  154. package/protos/webui/service_chatusability.proto +107 -107
  155. package/protos/webui/service_checkout.proto +84 -84
  156. package/protos/webui/service_clan.proto +41 -41
  157. package/protos/webui/service_clanchatrooms.proto +25 -25
  158. package/protos/webui/service_clanfaqs.proto +202 -202
  159. package/protos/webui/service_clientcomm.proto +151 -151
  160. package/protos/webui/service_clientmetrics.proto +22 -22
  161. package/protos/webui/service_cloud.proto +222 -222
  162. package/protos/webui/service_cloudconfigstore.proto +51 -51
  163. package/protos/webui/service_cloudgaming.proto +30 -30
  164. package/protos/webui/service_community.proto +365 -365
  165. package/protos/webui/service_dailydeal.proto +89 -89
  166. package/protos/webui/service_econ.proto +134 -134
  167. package/protos/webui/service_embedded.proto +24 -24
  168. package/protos/webui/service_experimentservice.proto +6 -6
  169. package/protos/webui/service_familygroups.proto +355 -355
  170. package/protos/webui/service_fovasvideo.proto +15 -15
  171. package/protos/webui/service_friendmessages.proto +133 -133
  172. package/protos/webui/service_friendslist.proto +70 -70
  173. package/protos/webui/service_gamenotes.proto +15 -15
  174. package/protos/webui/service_gamerecording.proto +265 -265
  175. package/protos/webui/service_gamerecordingclip.proto +85 -85
  176. package/protos/webui/service_gamerecordingdebug.proto +52 -52
  177. package/protos/webui/service_helprequestlogs.proto +16 -16
  178. package/protos/webui/service_loyaltyrewards.proto +252 -252
  179. package/protos/webui/service_marketingmessages.proto +215 -215
  180. package/protos/webui/service_mobileapp.proto +18 -18
  181. package/protos/webui/service_mobileauth.proto +24 -24
  182. package/protos/webui/service_mobiledevice.proto +26 -26
  183. package/protos/webui/service_mobileperaccount.proto +31 -31
  184. package/protos/webui/service_news.proto +110 -110
  185. package/protos/webui/service_parental.proto +258 -258
  186. package/protos/webui/service_partnermembershipinvite.proto +34 -34
  187. package/protos/webui/service_partnerstorebrowse.proto +28 -28
  188. package/protos/webui/service_phone.proto +51 -51
  189. package/protos/webui/service_physicalgoods.proto +15 -15
  190. package/protos/webui/service_player.proto +918 -918
  191. package/protos/webui/service_promotioneventinvites.proto +109 -109
  192. package/protos/webui/service_promotionplanning.proto +186 -186
  193. package/protos/webui/service_promotionstats.proto +23 -23
  194. package/protos/webui/service_publishedfile.proto +714 -714
  195. package/protos/webui/service_publishing.proto +200 -200
  196. package/protos/webui/service_quest.proto +127 -127
  197. package/protos/webui/service_salefeature.proto +373 -373
  198. package/protos/webui/service_saleitemrewards.proto +54 -54
  199. package/protos/webui/service_shoppingcart.proto +152 -152
  200. package/protos/webui/service_steamawards.proto +76 -76
  201. package/protos/webui/service_steamcharts.proto +75 -75
  202. package/protos/webui/service_steamengine.proto +36 -36
  203. package/protos/webui/service_steamlearn.proto +876 -876
  204. package/protos/webui/service_steamnotification.proto +73 -73
  205. package/protos/webui/service_steamtv.proto +495 -495
  206. package/protos/webui/service_steamvrvoicechat.proto +67 -67
  207. package/protos/webui/service_steamvrwebrtc.proto +48 -48
  208. package/protos/webui/service_storagedevicemanager.proto +104 -104
  209. package/protos/webui/service_store.proto +359 -359
  210. package/protos/webui/service_storeappsimilarity.proto +76 -76
  211. package/protos/webui/service_storebrowse.proto +103 -103
  212. package/protos/webui/service_storemarketing.proto +44 -44
  213. package/protos/webui/service_storequery.proto +103 -103
  214. package/protos/webui/service_storesales.proto +87 -87
  215. package/protos/webui/service_storetopsellers.proto +44 -44
  216. package/protos/webui/service_systemmanager.proto +11 -11
  217. package/protos/webui/service_test_transporterror.proto +6 -6
  218. package/protos/webui/service_transportauth.proto +17 -17
  219. package/protos/webui/service_transportvalidation.proto +69 -69
  220. package/protos/webui/service_twofactor.proto +170 -170
  221. package/protos/webui/service_useraccount.proto +142 -142
  222. package/protos/webui/service_usergameactivity.proto +34 -34
  223. package/protos/webui/service_usergamenotes.proto +70 -70
  224. package/protos/webui/service_usernews.proto +68 -68
  225. package/protos/webui/service_userreviews.proto +97 -97
  226. package/protos/webui/service_video.proto +50 -50
  227. package/protos/webui/service_videoclip.proto +62 -62
  228. package/protos/webui/service_voicechat.proto +139 -139
  229. package/protos/webui/service_webrtc.proto +52 -52
  230. package/remote.js +6784 -6784
  231. package/steamproto.js +34 -34
  232. package/utils.js +986 -986
  233. package/.idea/deployment.xml +0 -14
  234. package/full_steamproto.js +0 -35
@@ -1,562 +1,562 @@
1
- import "common_base.proto";
2
-
3
- message CBroadcast_BeginBroadcastSession_Request {
4
- optional int32 permission = 1;
5
- optional uint64 gameid = 2;
6
- optional uint64 client_instance_id = 3;
7
- optional string title = 4;
8
- optional uint32 cellid = 5;
9
- optional uint64 rtmp_token = 6;
10
- optional bool thumbnail_upload = 7;
11
- optional string client_beta = 8;
12
- optional uint32 sysid = 9;
13
- optional bool allow_webrtc = 10;
14
- }
15
-
16
- message CBroadcast_BeginBroadcastSession_Response {
17
- optional fixed64 broadcast_id = 1;
18
- optional string thumbnail_upload_address = 2;
19
- optional string thumbnail_upload_token = 3;
20
- optional uint32 thumbnail_interval_seconds = 4;
21
- optional uint32 heartbeat_interval_seconds = 5;
22
- }
23
-
24
- message CBroadcast_BroadcastChannelLive_Notification {
25
- optional fixed64 broadcast_channel_id = 1;
26
- optional string broadcast_channel_name = 2;
27
- optional string broadcast_channel_avatar = 3;
28
- }
29
-
30
- message CBroadcast_BroadcastStatus_Notification {
31
- optional fixed64 broadcast_id = 1;
32
- optional int32 num_viewers = 2;
33
- }
34
-
35
- message CBroadcast_BroadcastUploadStarted_Notification {
36
- optional fixed64 broadcast_id = 1;
37
- optional string upload_token = 2;
38
- optional string upload_address = 3;
39
- optional string http_address = 4;
40
- optional fixed64 broadcast_upload_id = 5;
41
- optional uint32 heartbeat_interval_seconds = 6;
42
- optional bool is_rtmp = 7;
43
- }
44
-
45
- message CBroadcast_BroadcastViewerState_Notification {
46
- optional fixed64 steamid = 1;
47
- optional int32 state = 2 [(.description) = "enum"];
48
- }
49
-
50
- message CBroadcast_EndBroadcastSession_Request {
51
- optional fixed64 broadcast_id = 1;
52
- }
53
-
54
- message CBroadcast_EndBroadcastSession_Response {
55
- }
56
-
57
- message CBroadcast_GetBroadcastChatInfo_Request {
58
- optional fixed64 steamid = 1;
59
- optional fixed64 broadcast_id = 2;
60
- optional uint32 client_ip = 3;
61
- optional uint32 client_cell = 4;
62
- }
63
-
64
- message CBroadcast_GetBroadcastChatInfo_Response {
65
- optional fixed64 chat_id = 1;
66
- optional string view_url_template = 3;
67
- repeated uint32 flair_group_ids = 4;
68
- }
69
-
70
- message CBroadcast_GetBroadcastChatUserNames_Request {
71
- optional fixed64 chat_id = 1;
72
- repeated fixed64 user_steamid = 2;
73
- }
74
-
75
- message CBroadcast_GetBroadcastChatUserNames_Response {
76
- repeated .CBroadcast_GetBroadcastChatUserNames_Response_PersonaName persona_names = 1;
77
- }
78
-
79
- message CBroadcast_GetBroadcastChatUserNames_Response_PersonaName {
80
- optional fixed64 steam_id = 1;
81
- optional string persona = 2;
82
- }
83
-
84
- message CBroadcast_GetBroadcastStatus_Request {
85
- optional fixed64 steamid = 1;
86
- optional fixed64 broadcast_id = 2;
87
- }
88
-
89
- message CBroadcast_GetBroadcastStatus_Response {
90
- optional uint64 gameid = 1;
91
- optional string title = 2;
92
- optional uint32 num_viewers = 3;
93
- optional int32 permission = 4;
94
- optional bool is_rtmp = 5;
95
- optional int32 seconds_delay = 6;
96
- optional bool is_publisher = 7;
97
- optional string thumbnail_url = 8;
98
- optional int32 update_interval = 9;
99
- optional bool is_uploading = 10;
100
- optional uint32 duration = 11;
101
- optional bool is_replay = 12;
102
- optional bool is_capturing_vod = 13;
103
- optional bool is_store_whitelisted = 14;
104
- }
105
-
106
- message CBroadcast_GetBroadcastThumbnail_Request {
107
- optional fixed64 steamid = 1;
108
- optional fixed64 broadcast_id = 2;
109
- }
110
-
111
- message CBroadcast_GetBroadcastThumbnail_Response {
112
- optional string thumbnail_url = 1;
113
- optional int32 update_interval = 2;
114
- optional int32 num_viewers = 3;
115
- optional int32 duration = 4;
116
- }
117
-
118
- message CBroadcast_GetBroadcastUploadStats_Request {
119
- optional uint32 row_limit = 1 [default = 100];
120
- optional uint32 start_time = 2 [default = 0];
121
- optional uint64 upload_id = 3;
122
- optional fixed64 steamid = 4;
123
- optional uint64 session_id = 5;
124
- }
125
-
126
- message CBroadcast_GetBroadcastUploadStats_Response {
127
- repeated .CBroadcast_GetBroadcastUploadStats_Response_UploadStats upload_stats = 1;
128
- }
129
-
130
- message CBroadcast_GetBroadcastUploadStats_Response_UploadStats {
131
- optional uint32 upload_result = 1;
132
- optional uint32 time_stopped = 2;
133
- optional uint32 seconds_uploaded = 3;
134
- optional uint32 max_viewers = 4;
135
- optional uint32 resolution_x = 5;
136
- optional uint32 resolution_y = 6;
137
- optional uint32 avg_bandwidth = 7;
138
- optional uint64 total_bytes = 8;
139
- optional uint32 app_id = 9;
140
- optional uint32 total_unique_viewers = 10;
141
- optional uint64 total_seconds_watched = 11;
142
- optional uint32 time_started = 12;
143
- optional uint64 upload_id = 13;
144
- optional string local_address = 14;
145
- optional string remote_address = 15;
146
- optional uint32 frames_per_second = 16;
147
- optional uint32 num_representations = 17;
148
- optional string app_name = 18;
149
- optional bool is_replay = 19;
150
- optional uint64 session_id = 20;
151
- }
152
-
153
- message CBroadcast_GetBroadcastViewerStats_Request {
154
- optional uint64 upload_id = 1;
155
- optional fixed64 steamid = 2;
156
- }
157
-
158
- message CBroadcast_GetBroadcastViewerStats_Response {
159
- repeated .CBroadcast_GetBroadcastViewerStats_Response_ViewerStats viewer_stats = 1;
160
- repeated .CBroadcast_GetBroadcastViewerStats_Response_CountryStats country_stats = 2;
161
- }
162
-
163
- message CBroadcast_GetBroadcastViewerStats_Response_CountryStats {
164
- optional string country_code = 1;
165
- optional uint32 num_viewers = 2;
166
- }
167
-
168
- message CBroadcast_GetBroadcastViewerStats_Response_ViewerStats {
169
- optional uint32 time = 1;
170
- optional uint32 num_viewers = 2;
171
- }
172
-
173
- message CBroadcast_GetBuildClipStatus_Request {
174
- optional fixed64 broadcast_clip_id = 1;
175
- }
176
-
177
- message CBroadcast_GetBuildClipStatus_Response {
178
- }
179
-
180
- message CBroadcast_GetClipDetails_Request {
181
- optional uint64 broadcast_clip_id = 1;
182
- }
183
-
184
- message CBroadcast_GetClipDetails_Response {
185
- optional uint64 broadcast_clip_id = 1;
186
- optional uint64 video_id = 2;
187
- optional uint64 channel_id = 3;
188
- optional uint32 app_id = 4;
189
- optional uint32 accountid_broadcaster = 5;
190
- optional uint32 accountid_clipmaker = 6;
191
- optional string video_description = 7;
192
- optional uint32 start_time = 8;
193
- optional uint32 length_milliseconds = 9;
194
- optional string thumbnail_path = 10;
195
- }
196
-
197
- message CBroadcast_GetRTMPInfo_Request {
198
- optional uint32 ip = 1;
199
- optional fixed64 steamid = 2;
200
- }
201
-
202
- message CBroadcast_GetRTMPInfo_Response {
203
- optional int32 broadcast_permission = 1;
204
- optional string rtmp_host = 2;
205
- optional string rtmp_token = 3;
206
- optional int32 broadcast_delay = 4;
207
- optional uint32 app_id = 5;
208
- optional uint32 required_app_id = 6;
209
- optional int32 broadcast_chat_permission = 7 [(.description) = "enum"];
210
- optional int32 broadcast_buffer = 8;
211
- optional fixed64 steamid = 9;
212
- optional uint32 chat_rate_limit = 10;
213
- optional bool enable_replay = 11;
214
- optional bool is_partner_chat_only = 12;
215
- optional string wordban_list = 13;
216
- }
217
-
218
- message CBroadcast_HeartbeatBroadcast_Notification {
219
- optional fixed64 steamid = 1;
220
- optional fixed64 broadcast_id = 2;
221
- optional fixed64 viewer_token = 3;
222
- optional uint32 representation = 4;
223
- }
224
-
225
- message CBroadcast_InviteToBroadcast_Request {
226
- optional fixed64 steamid = 1;
227
- optional bool approval_response = 2;
228
- }
229
-
230
- message CBroadcast_InviteToBroadcast_Response {
231
- optional bool success = 1;
232
- }
233
-
234
- message CBroadcast_MuteBroadcastChatUser_Request {
235
- optional fixed64 chat_id = 1;
236
- optional fixed64 user_steamid = 2;
237
- optional bool muted = 3;
238
- }
239
-
240
- message CBroadcast_MuteBroadcastChatUser_Response {
241
- }
242
-
243
- message CBroadcast_PostChatMessage_Request {
244
- optional fixed64 chat_id = 1;
245
- optional string message = 2;
246
- optional uint32 instance_id = 3;
247
- optional uint32 language = 4 [default = 0];
248
- optional string country_code = 5;
249
- }
250
-
251
- message CBroadcast_PostChatMessage_Response {
252
- optional string persona_name = 1;
253
- optional bool in_game = 2;
254
- optional int32 result = 3;
255
- optional int32 cooldown_time_seconds = 4;
256
- }
257
-
258
- message CBroadcast_RemoveUserChatText_Request {
259
- optional fixed64 chat_id = 1;
260
- optional fixed64 user_steamid = 2;
261
- }
262
-
263
- message CBroadcast_RemoveUserChatText_Response {
264
- }
265
-
266
- message CBroadcast_SendBroadcastStateToServer_Request {
267
- optional int32 permission = 1;
268
- optional uint64 gameid = 2;
269
- optional string title = 3;
270
- optional string game_data_config = 4;
271
- }
272
-
273
- message CBroadcast_SendBroadcastStateToServer_Response {
274
- }
275
-
276
- message CBroadcast_SendThumbnailToRelay_Notification {
277
- optional string thumbnail_upload_token = 1;
278
- optional fixed64 thumbnail_broadcast_session_id = 2;
279
- optional bytes thumbnail_data = 3;
280
- optional uint32 thumbnail_width = 4;
281
- optional uint32 thumbnail_height = 5;
282
- }
283
-
284
- message CBroadcast_SessionClosed_Notification {
285
- optional fixed64 broadcast_id = 1;
286
- }
287
-
288
- message CBroadcast_SetClipDetails_Request {
289
- optional uint64 broadcast_clip_id = 1;
290
- optional uint32 start_time = 2;
291
- optional uint32 end_time = 3;
292
- optional string video_description = 4;
293
- }
294
-
295
- message CBroadcast_SetClipDetails_Response {
296
- }
297
-
298
- message CBroadcast_SetRTMPInfo_Request {
299
- optional int32 broadcast_permission = 1;
300
- optional bool update_token = 2;
301
- optional int32 broadcast_delay = 3;
302
- optional uint32 app_id = 4;
303
- optional uint32 required_app_id = 5;
304
- optional int32 broadcast_chat_permission = 6 [(.description) = "enum"];
305
- optional int32 broadcast_buffer = 7;
306
- optional fixed64 steamid = 8;
307
- optional uint32 chat_rate_limit = 9;
308
- optional bool enable_replay = 10;
309
- optional bool is_partner_chat_only = 11;
310
- optional string wordban_list = 12;
311
- }
312
-
313
- message CBroadcast_SetRTMPInfo_Response {
314
- }
315
-
316
- message CBroadcast_StartBroadcastUpload_Request {
317
- optional fixed64 broadcast_id = 1;
318
- optional uint32 cellid = 2;
319
- optional bool as_rtmp = 3;
320
- optional uint32 delay_seconds = 4;
321
- optional uint64 rtmp_token = 5 [default = 0];
322
- optional uint32 upload_ip_address = 6;
323
- optional bool is_replay = 7;
324
- optional uint32 sysid = 8;
325
- }
326
-
327
- message CBroadcast_StartBroadcastUpload_Response {
328
- optional string upload_token = 1;
329
- optional string upload_address = 2;
330
- optional fixed64 broadcast_upload_id = 3;
331
- optional bool enable_replay = 6;
332
- optional string http_address = 7;
333
- }
334
-
335
- message CBroadcast_StartBuildClip_Request {
336
- optional fixed64 steamid = 1;
337
- optional fixed64 broadcast_session_id = 2;
338
- optional int32 first_segment = 3;
339
- optional int32 num_segments = 4;
340
- optional string clip_description = 5;
341
- }
342
-
343
- message CBroadcast_StartBuildClip_Response {
344
- optional fixed64 broadcast_clip_id = 1;
345
- }
346
-
347
- message CBroadcast_StopBroadcastUpload_Notification {
348
- optional fixed64 broadcast_id = 1;
349
- optional fixed64 broadcast_relay_id = 2;
350
- optional uint32 upload_result = 3;
351
- optional bool too_many_poor_uploads = 4;
352
- }
353
-
354
- message CBroadcast_StopWatchingBroadcast_Notification {
355
- optional fixed64 steamid = 1;
356
- optional fixed64 broadcast_id = 2;
357
- optional fixed64 viewer_token = 3;
358
- }
359
-
360
- message CBroadcast_UpdateChatMessageFlair_Request {
361
- optional fixed64 chat_id = 1;
362
- optional string flair = 2;
363
- }
364
-
365
- message CBroadcast_UpdateChatMessageFlair_Response {
366
- optional int32 result = 1;
367
- optional fixed64 chat_id = 2;
368
- optional string flair = 3;
369
- }
370
-
371
- message CBroadcast_ViewerBroadcastInvite_Notification {
372
- optional fixed64 broadcaster_steamid = 1;
373
- }
374
-
375
- message CBroadcast_WaitingBroadcastViewer_Notification {
376
- optional fixed64 broadcast_id = 1;
377
- }
378
-
379
- message CBroadcast_WatchBroadcast_Request {
380
- optional fixed64 steamid = 1;
381
- optional fixed64 existing_broadcast_id = 2;
382
- optional fixed64 viewer_token = 3;
383
- optional uint32 client_ip = 4;
384
- optional uint32 client_cell = 5;
385
- optional int32 watch_location = 6 [(.description) = "enum"];
386
- optional bool is_webrtc = 7;
387
- }
388
-
389
- message CBroadcast_WatchBroadcast_Response {
390
- optional int32 response = 1 [(.description) = "enum"];
391
- optional string mpd_url = 2;
392
- optional fixed64 broadcast_id = 3;
393
- optional uint64 gameid = 4;
394
- optional string title = 5;
395
- optional uint32 num_viewers = 6;
396
- optional int32 permission = 7;
397
- optional bool is_rtmp = 8;
398
- optional int32 seconds_delay = 9;
399
- optional fixed64 viewer_token = 10;
400
- optional string hls_m3u8_master_url = 11;
401
- optional int32 heartbeat_interval = 12;
402
- optional string thumbnail_url = 13;
403
- optional bool is_webrtc = 14;
404
- optional fixed64 webrtc_session_id = 15;
405
- optional string webrtc_offer_sdp = 16;
406
- optional string webrtc_turn_server = 17;
407
- optional bool is_replay = 18;
408
- optional int32 duration = 19;
409
- optional string cdn_auth_url_parameters = 20;
410
- }
411
-
412
- message CBroadcast_WebRTC_Candidate {
413
- optional string sdp_mid = 1;
414
- optional int32 sdp_mline_index = 2;
415
- optional string candidate = 3;
416
- }
417
-
418
- message CBroadcast_WebRTCAddHostCandidate_Request {
419
- optional fixed64 webrtc_session_id = 1;
420
- optional .CBroadcast_WebRTC_Candidate candidate = 2;
421
- }
422
-
423
- message CBroadcast_WebRTCAddHostCandidate_Response {
424
- }
425
-
426
- message CBroadcast_WebRTCAddViewerCandidate_Notification {
427
- optional fixed64 broadcast_session_id = 1;
428
- optional fixed64 webrtc_session_id = 2;
429
- optional .CBroadcast_WebRTC_Candidate candidate = 3;
430
- }
431
-
432
- message CBroadcast_WebRTCAddViewerCandidate_Request {
433
- optional fixed64 broadcaster_steamid = 1;
434
- optional fixed64 webrtc_session_id = 2;
435
- optional .CBroadcast_WebRTC_Candidate candidate = 3;
436
- }
437
-
438
- message CBroadcast_WebRTCAddViewerCandidate_Response {
439
- }
440
-
441
- message CBroadcast_WebRTCGetHostCandidates_Request {
442
- optional fixed64 broadcaster_steamid = 1;
443
- optional fixed64 webrtc_session_id = 2;
444
- optional uint32 candidate_generation = 3;
445
- }
446
-
447
- message CBroadcast_WebRTCGetHostCandidates_Response {
448
- optional uint32 candidate_generation = 1;
449
- repeated .CBroadcast_WebRTC_Candidate candidates = 2;
450
- }
451
-
452
- message CBroadcast_WebRTCHaveTURNServer_Notification {
453
- optional fixed64 broadcast_session_id = 1;
454
- optional string turn_server = 2;
455
- }
456
-
457
- message CBroadcast_WebRTCLookupTURNServer_Request {
458
- optional uint32 cellid = 1;
459
- }
460
-
461
- message CBroadcast_WebRTCLookupTURNServer_Response {
462
- optional string turn_server = 1;
463
- }
464
-
465
- message CBroadcast_WebRTCNeedTURNServer_Notification {
466
- optional fixed64 broadcast_session_id = 1;
467
- }
468
-
469
- message CBroadcast_WebRTCSetAnswer_Notification {
470
- optional fixed64 broadcast_session_id = 1;
471
- optional fixed64 webrtc_session_id = 2;
472
- optional string answer = 3;
473
- }
474
-
475
- message CBroadcast_WebRTCSetAnswer_Request {
476
- optional fixed64 broadcaster_steamid = 1;
477
- optional fixed64 webrtc_session_id = 2;
478
- optional string answer = 3;
479
- }
480
-
481
- message CBroadcast_WebRTCSetAnswer_Response {
482
- }
483
-
484
- message CBroadcast_WebRTCStart_Notification {
485
- optional fixed64 broadcast_session_id = 1;
486
- optional fixed64 webrtc_session_id = 2;
487
- optional fixed64 viewer_steamid = 3;
488
- optional fixed64 viewer_token = 4;
489
- }
490
-
491
- message CBroadcast_WebRTCStartResult_Request {
492
- optional fixed64 webrtc_session_id = 1;
493
- optional bool started = 2;
494
- optional string offer = 3;
495
- optional uint32 resolution_x = 4;
496
- optional uint32 resolution_y = 5;
497
- optional uint32 fps = 6;
498
- }
499
-
500
- message CBroadcast_WebRTCStartResult_Response {
501
- }
502
-
503
- message CBroadcast_WebRTCStopped_Request {
504
- optional fixed64 webrtc_session_id = 1;
505
- }
506
-
507
- message CBroadcast_WebRTCStopped_Response {
508
- }
509
-
510
- service Broadcast {
511
- rpc BeginBroadcastSession (.CBroadcast_BeginBroadcastSession_Request) returns (.CBroadcast_BeginBroadcastSession_Response);
512
- rpc EndBroadcastSession (.CBroadcast_EndBroadcastSession_Request) returns (.CBroadcast_EndBroadcastSession_Response);
513
- rpc GetBroadcastChatInfo (.CBroadcast_GetBroadcastChatInfo_Request) returns (.CBroadcast_GetBroadcastChatInfo_Response);
514
- rpc GetBroadcastChatUserNames (.CBroadcast_GetBroadcastChatUserNames_Request) returns (.CBroadcast_GetBroadcastChatUserNames_Response);
515
- rpc GetBroadcastStatus (.CBroadcast_GetBroadcastStatus_Request) returns (.CBroadcast_GetBroadcastStatus_Response);
516
- rpc GetBroadcastThumbnail (.CBroadcast_GetBroadcastThumbnail_Request) returns (.CBroadcast_GetBroadcastThumbnail_Response);
517
- rpc GetBroadcastUploadStats (.CBroadcast_GetBroadcastUploadStats_Request) returns (.CBroadcast_GetBroadcastUploadStats_Response);
518
- rpc GetBroadcastViewerStats (.CBroadcast_GetBroadcastViewerStats_Request) returns (.CBroadcast_GetBroadcastViewerStats_Response);
519
- rpc GetBuildClipStatus (.CBroadcast_GetBuildClipStatus_Request) returns (.CBroadcast_GetBuildClipStatus_Response);
520
- rpc GetClipDetails (.CBroadcast_GetClipDetails_Request) returns (.CBroadcast_GetClipDetails_Response);
521
- rpc GetRTMPInfo (.CBroadcast_GetRTMPInfo_Request) returns (.CBroadcast_GetRTMPInfo_Response);
522
- rpc HeartbeatBroadcast (.CBroadcast_HeartbeatBroadcast_Notification) returns (.NoResponse);
523
- rpc InviteToBroadcast (.CBroadcast_InviteToBroadcast_Request) returns (.CBroadcast_InviteToBroadcast_Response);
524
- rpc MuteBroadcastChatUser (.CBroadcast_MuteBroadcastChatUser_Request) returns (.CBroadcast_MuteBroadcastChatUser_Response);
525
- rpc NotifyBroadcastSessionHeartbeat (.NotImplemented) returns (.NoResponse);
526
- rpc NotifyBroadcastUploadStop (.NotImplemented) returns (.NoResponse);
527
- rpc NotifyWebRTCHaveTURNServer (.CBroadcast_WebRTCHaveTURNServer_Notification) returns (.NoResponse);
528
- rpc PostChatMessage (.CBroadcast_PostChatMessage_Request) returns (.CBroadcast_PostChatMessage_Response);
529
- rpc RemoveUserChatText (.CBroadcast_RemoveUserChatText_Request) returns (.CBroadcast_RemoveUserChatText_Response);
530
- rpc SendBroadcastStateToServer (.CBroadcast_SendBroadcastStateToServer_Request) returns (.CBroadcast_SendBroadcastStateToServer_Response);
531
- rpc SetClipDetails (.CBroadcast_SetClipDetails_Request) returns (.CBroadcast_SetClipDetails_Response);
532
- rpc SetRTMPInfo (.CBroadcast_SetRTMPInfo_Request) returns (.CBroadcast_SetRTMPInfo_Response);
533
- rpc StartBroadcastUpload (.CBroadcast_StartBroadcastUpload_Request) returns (.CBroadcast_StartBroadcastUpload_Response);
534
- rpc StartBuildClip (.CBroadcast_StartBuildClip_Request) returns (.CBroadcast_StartBuildClip_Response);
535
- rpc StopWatchingBroadcast (.CBroadcast_StopWatchingBroadcast_Notification) returns (.NoResponse);
536
- rpc UpdateChatMessageFlair (.CBroadcast_UpdateChatMessageFlair_Request) returns (.CBroadcast_UpdateChatMessageFlair_Response);
537
- rpc WatchBroadcast (.CBroadcast_WatchBroadcast_Request) returns (.CBroadcast_WatchBroadcast_Response);
538
- rpc WebRTCAddHostCandidate (.CBroadcast_WebRTCAddHostCandidate_Request) returns (.CBroadcast_WebRTCAddHostCandidate_Response);
539
- rpc WebRTCAddViewerCandidate (.CBroadcast_WebRTCAddViewerCandidate_Request) returns (.CBroadcast_WebRTCAddViewerCandidate_Response);
540
- rpc WebRTCGetHostCandidates (.CBroadcast_WebRTCGetHostCandidates_Request) returns (.CBroadcast_WebRTCGetHostCandidates_Response);
541
- rpc WebRTCLookupTURNServer (.CBroadcast_WebRTCLookupTURNServer_Request) returns (.CBroadcast_WebRTCLookupTURNServer_Response);
542
- rpc WebRTCSetAnswer (.CBroadcast_WebRTCSetAnswer_Request) returns (.CBroadcast_WebRTCSetAnswer_Response);
543
- rpc WebRTCStartResult (.CBroadcast_WebRTCStartResult_Request) returns (.CBroadcast_WebRTCStartResult_Response);
544
- rpc WebRTCStopped (.CBroadcast_WebRTCStopped_Request) returns (.CBroadcast_WebRTCStopped_Response);
545
- }
546
-
547
- service BroadcastClient {
548
- rpc NotifyBroadcastChannelLive (.CBroadcast_BroadcastChannelLive_Notification) returns (.NoResponse);
549
- rpc NotifyBroadcastStatus (.CBroadcast_BroadcastStatus_Notification) returns (.NoResponse);
550
- rpc NotifyBroadcastUploadStarted (.CBroadcast_BroadcastUploadStarted_Notification) returns (.NoResponse);
551
- rpc NotifyBroadcastViewerState (.CBroadcast_BroadcastViewerState_Notification) returns (.NoResponse);
552
- rpc NotifySessionClosed (.CBroadcast_SessionClosed_Notification) returns (.NoResponse);
553
- rpc NotifyStopBroadcastUpload (.CBroadcast_StopBroadcastUpload_Notification) returns (.NoResponse);
554
- rpc NotifyViewerBroadcastInvite (.CBroadcast_ViewerBroadcastInvite_Notification) returns (.NoResponse);
555
- rpc NotifyWaitingBroadcastViewer (.CBroadcast_WaitingBroadcastViewer_Notification) returns (.NoResponse);
556
- rpc NotifyWebRTCAddViewerCandidate (.CBroadcast_WebRTCAddViewerCandidate_Notification) returns (.NoResponse);
557
- rpc NotifyWebRTCNeedTURNServer (.CBroadcast_WebRTCNeedTURNServer_Notification) returns (.NoResponse);
558
- rpc NotifyWebRTCSetAnswer (.CBroadcast_WebRTCSetAnswer_Notification) returns (.NoResponse);
559
- rpc NotifyWebRTCStart (.CBroadcast_WebRTCStart_Notification) returns (.NoResponse);
560
- rpc SendThumbnailToRelay (.CBroadcast_SendThumbnailToRelay_Notification) returns (.NoResponse);
561
- }
562
-
1
+ import "common_base.proto";
2
+
3
+ message CBroadcast_BeginBroadcastSession_Request {
4
+ optional int32 permission = 1;
5
+ optional uint64 gameid = 2;
6
+ optional uint64 client_instance_id = 3;
7
+ optional string title = 4;
8
+ optional uint32 cellid = 5;
9
+ optional uint64 rtmp_token = 6;
10
+ optional bool thumbnail_upload = 7;
11
+ optional string client_beta = 8;
12
+ optional uint32 sysid = 9;
13
+ optional bool allow_webrtc = 10;
14
+ }
15
+
16
+ message CBroadcast_BeginBroadcastSession_Response {
17
+ optional fixed64 broadcast_id = 1;
18
+ optional string thumbnail_upload_address = 2;
19
+ optional string thumbnail_upload_token = 3;
20
+ optional uint32 thumbnail_interval_seconds = 4;
21
+ optional uint32 heartbeat_interval_seconds = 5;
22
+ }
23
+
24
+ message CBroadcast_BroadcastChannelLive_Notification {
25
+ optional fixed64 broadcast_channel_id = 1;
26
+ optional string broadcast_channel_name = 2;
27
+ optional string broadcast_channel_avatar = 3;
28
+ }
29
+
30
+ message CBroadcast_BroadcastStatus_Notification {
31
+ optional fixed64 broadcast_id = 1;
32
+ optional int32 num_viewers = 2;
33
+ }
34
+
35
+ message CBroadcast_BroadcastUploadStarted_Notification {
36
+ optional fixed64 broadcast_id = 1;
37
+ optional string upload_token = 2;
38
+ optional string upload_address = 3;
39
+ optional string http_address = 4;
40
+ optional fixed64 broadcast_upload_id = 5;
41
+ optional uint32 heartbeat_interval_seconds = 6;
42
+ optional bool is_rtmp = 7;
43
+ }
44
+
45
+ message CBroadcast_BroadcastViewerState_Notification {
46
+ optional fixed64 steamid = 1;
47
+ optional int32 state = 2 [(.description) = "enum"];
48
+ }
49
+
50
+ message CBroadcast_EndBroadcastSession_Request {
51
+ optional fixed64 broadcast_id = 1;
52
+ }
53
+
54
+ message CBroadcast_EndBroadcastSession_Response {
55
+ }
56
+
57
+ message CBroadcast_GetBroadcastChatInfo_Request {
58
+ optional fixed64 steamid = 1;
59
+ optional fixed64 broadcast_id = 2;
60
+ optional uint32 client_ip = 3;
61
+ optional uint32 client_cell = 4;
62
+ }
63
+
64
+ message CBroadcast_GetBroadcastChatInfo_Response {
65
+ optional fixed64 chat_id = 1;
66
+ optional string view_url_template = 3;
67
+ repeated uint32 flair_group_ids = 4;
68
+ }
69
+
70
+ message CBroadcast_GetBroadcastChatUserNames_Request {
71
+ optional fixed64 chat_id = 1;
72
+ repeated fixed64 user_steamid = 2;
73
+ }
74
+
75
+ message CBroadcast_GetBroadcastChatUserNames_Response {
76
+ repeated .CBroadcast_GetBroadcastChatUserNames_Response_PersonaName persona_names = 1;
77
+ }
78
+
79
+ message CBroadcast_GetBroadcastChatUserNames_Response_PersonaName {
80
+ optional fixed64 steam_id = 1;
81
+ optional string persona = 2;
82
+ }
83
+
84
+ message CBroadcast_GetBroadcastStatus_Request {
85
+ optional fixed64 steamid = 1;
86
+ optional fixed64 broadcast_id = 2;
87
+ }
88
+
89
+ message CBroadcast_GetBroadcastStatus_Response {
90
+ optional uint64 gameid = 1;
91
+ optional string title = 2;
92
+ optional uint32 num_viewers = 3;
93
+ optional int32 permission = 4;
94
+ optional bool is_rtmp = 5;
95
+ optional int32 seconds_delay = 6;
96
+ optional bool is_publisher = 7;
97
+ optional string thumbnail_url = 8;
98
+ optional int32 update_interval = 9;
99
+ optional bool is_uploading = 10;
100
+ optional uint32 duration = 11;
101
+ optional bool is_replay = 12;
102
+ optional bool is_capturing_vod = 13;
103
+ optional bool is_store_whitelisted = 14;
104
+ }
105
+
106
+ message CBroadcast_GetBroadcastThumbnail_Request {
107
+ optional fixed64 steamid = 1;
108
+ optional fixed64 broadcast_id = 2;
109
+ }
110
+
111
+ message CBroadcast_GetBroadcastThumbnail_Response {
112
+ optional string thumbnail_url = 1;
113
+ optional int32 update_interval = 2;
114
+ optional int32 num_viewers = 3;
115
+ optional int32 duration = 4;
116
+ }
117
+
118
+ message CBroadcast_GetBroadcastUploadStats_Request {
119
+ optional uint32 row_limit = 1 [default = 100];
120
+ optional uint32 start_time = 2 [default = 0];
121
+ optional uint64 upload_id = 3;
122
+ optional fixed64 steamid = 4;
123
+ optional uint64 session_id = 5;
124
+ }
125
+
126
+ message CBroadcast_GetBroadcastUploadStats_Response {
127
+ repeated .CBroadcast_GetBroadcastUploadStats_Response_UploadStats upload_stats = 1;
128
+ }
129
+
130
+ message CBroadcast_GetBroadcastUploadStats_Response_UploadStats {
131
+ optional uint32 upload_result = 1;
132
+ optional uint32 time_stopped = 2;
133
+ optional uint32 seconds_uploaded = 3;
134
+ optional uint32 max_viewers = 4;
135
+ optional uint32 resolution_x = 5;
136
+ optional uint32 resolution_y = 6;
137
+ optional uint32 avg_bandwidth = 7;
138
+ optional uint64 total_bytes = 8;
139
+ optional uint32 app_id = 9;
140
+ optional uint32 total_unique_viewers = 10;
141
+ optional uint64 total_seconds_watched = 11;
142
+ optional uint32 time_started = 12;
143
+ optional uint64 upload_id = 13;
144
+ optional string local_address = 14;
145
+ optional string remote_address = 15;
146
+ optional uint32 frames_per_second = 16;
147
+ optional uint32 num_representations = 17;
148
+ optional string app_name = 18;
149
+ optional bool is_replay = 19;
150
+ optional uint64 session_id = 20;
151
+ }
152
+
153
+ message CBroadcast_GetBroadcastViewerStats_Request {
154
+ optional uint64 upload_id = 1;
155
+ optional fixed64 steamid = 2;
156
+ }
157
+
158
+ message CBroadcast_GetBroadcastViewerStats_Response {
159
+ repeated .CBroadcast_GetBroadcastViewerStats_Response_ViewerStats viewer_stats = 1;
160
+ repeated .CBroadcast_GetBroadcastViewerStats_Response_CountryStats country_stats = 2;
161
+ }
162
+
163
+ message CBroadcast_GetBroadcastViewerStats_Response_CountryStats {
164
+ optional string country_code = 1;
165
+ optional uint32 num_viewers = 2;
166
+ }
167
+
168
+ message CBroadcast_GetBroadcastViewerStats_Response_ViewerStats {
169
+ optional uint32 time = 1;
170
+ optional uint32 num_viewers = 2;
171
+ }
172
+
173
+ message CBroadcast_GetBuildClipStatus_Request {
174
+ optional fixed64 broadcast_clip_id = 1;
175
+ }
176
+
177
+ message CBroadcast_GetBuildClipStatus_Response {
178
+ }
179
+
180
+ message CBroadcast_GetClipDetails_Request {
181
+ optional uint64 broadcast_clip_id = 1;
182
+ }
183
+
184
+ message CBroadcast_GetClipDetails_Response {
185
+ optional uint64 broadcast_clip_id = 1;
186
+ optional uint64 video_id = 2;
187
+ optional uint64 channel_id = 3;
188
+ optional uint32 app_id = 4;
189
+ optional uint32 accountid_broadcaster = 5;
190
+ optional uint32 accountid_clipmaker = 6;
191
+ optional string video_description = 7;
192
+ optional uint32 start_time = 8;
193
+ optional uint32 length_milliseconds = 9;
194
+ optional string thumbnail_path = 10;
195
+ }
196
+
197
+ message CBroadcast_GetRTMPInfo_Request {
198
+ optional uint32 ip = 1;
199
+ optional fixed64 steamid = 2;
200
+ }
201
+
202
+ message CBroadcast_GetRTMPInfo_Response {
203
+ optional int32 broadcast_permission = 1;
204
+ optional string rtmp_host = 2;
205
+ optional string rtmp_token = 3;
206
+ optional int32 broadcast_delay = 4;
207
+ optional uint32 app_id = 5;
208
+ optional uint32 required_app_id = 6;
209
+ optional int32 broadcast_chat_permission = 7 [(.description) = "enum"];
210
+ optional int32 broadcast_buffer = 8;
211
+ optional fixed64 steamid = 9;
212
+ optional uint32 chat_rate_limit = 10;
213
+ optional bool enable_replay = 11;
214
+ optional bool is_partner_chat_only = 12;
215
+ optional string wordban_list = 13;
216
+ }
217
+
218
+ message CBroadcast_HeartbeatBroadcast_Notification {
219
+ optional fixed64 steamid = 1;
220
+ optional fixed64 broadcast_id = 2;
221
+ optional fixed64 viewer_token = 3;
222
+ optional uint32 representation = 4;
223
+ }
224
+
225
+ message CBroadcast_InviteToBroadcast_Request {
226
+ optional fixed64 steamid = 1;
227
+ optional bool approval_response = 2;
228
+ }
229
+
230
+ message CBroadcast_InviteToBroadcast_Response {
231
+ optional bool success = 1;
232
+ }
233
+
234
+ message CBroadcast_MuteBroadcastChatUser_Request {
235
+ optional fixed64 chat_id = 1;
236
+ optional fixed64 user_steamid = 2;
237
+ optional bool muted = 3;
238
+ }
239
+
240
+ message CBroadcast_MuteBroadcastChatUser_Response {
241
+ }
242
+
243
+ message CBroadcast_PostChatMessage_Request {
244
+ optional fixed64 chat_id = 1;
245
+ optional string message = 2;
246
+ optional uint32 instance_id = 3;
247
+ optional uint32 language = 4 [default = 0];
248
+ optional string country_code = 5;
249
+ }
250
+
251
+ message CBroadcast_PostChatMessage_Response {
252
+ optional string persona_name = 1;
253
+ optional bool in_game = 2;
254
+ optional int32 result = 3;
255
+ optional int32 cooldown_time_seconds = 4;
256
+ }
257
+
258
+ message CBroadcast_RemoveUserChatText_Request {
259
+ optional fixed64 chat_id = 1;
260
+ optional fixed64 user_steamid = 2;
261
+ }
262
+
263
+ message CBroadcast_RemoveUserChatText_Response {
264
+ }
265
+
266
+ message CBroadcast_SendBroadcastStateToServer_Request {
267
+ optional int32 permission = 1;
268
+ optional uint64 gameid = 2;
269
+ optional string title = 3;
270
+ optional string game_data_config = 4;
271
+ }
272
+
273
+ message CBroadcast_SendBroadcastStateToServer_Response {
274
+ }
275
+
276
+ message CBroadcast_SendThumbnailToRelay_Notification {
277
+ optional string thumbnail_upload_token = 1;
278
+ optional fixed64 thumbnail_broadcast_session_id = 2;
279
+ optional bytes thumbnail_data = 3;
280
+ optional uint32 thumbnail_width = 4;
281
+ optional uint32 thumbnail_height = 5;
282
+ }
283
+
284
+ message CBroadcast_SessionClosed_Notification {
285
+ optional fixed64 broadcast_id = 1;
286
+ }
287
+
288
+ message CBroadcast_SetClipDetails_Request {
289
+ optional uint64 broadcast_clip_id = 1;
290
+ optional uint32 start_time = 2;
291
+ optional uint32 end_time = 3;
292
+ optional string video_description = 4;
293
+ }
294
+
295
+ message CBroadcast_SetClipDetails_Response {
296
+ }
297
+
298
+ message CBroadcast_SetRTMPInfo_Request {
299
+ optional int32 broadcast_permission = 1;
300
+ optional bool update_token = 2;
301
+ optional int32 broadcast_delay = 3;
302
+ optional uint32 app_id = 4;
303
+ optional uint32 required_app_id = 5;
304
+ optional int32 broadcast_chat_permission = 6 [(.description) = "enum"];
305
+ optional int32 broadcast_buffer = 7;
306
+ optional fixed64 steamid = 8;
307
+ optional uint32 chat_rate_limit = 9;
308
+ optional bool enable_replay = 10;
309
+ optional bool is_partner_chat_only = 11;
310
+ optional string wordban_list = 12;
311
+ }
312
+
313
+ message CBroadcast_SetRTMPInfo_Response {
314
+ }
315
+
316
+ message CBroadcast_StartBroadcastUpload_Request {
317
+ optional fixed64 broadcast_id = 1;
318
+ optional uint32 cellid = 2;
319
+ optional bool as_rtmp = 3;
320
+ optional uint32 delay_seconds = 4;
321
+ optional uint64 rtmp_token = 5 [default = 0];
322
+ optional uint32 upload_ip_address = 6;
323
+ optional bool is_replay = 7;
324
+ optional uint32 sysid = 8;
325
+ }
326
+
327
+ message CBroadcast_StartBroadcastUpload_Response {
328
+ optional string upload_token = 1;
329
+ optional string upload_address = 2;
330
+ optional fixed64 broadcast_upload_id = 3;
331
+ optional bool enable_replay = 6;
332
+ optional string http_address = 7;
333
+ }
334
+
335
+ message CBroadcast_StartBuildClip_Request {
336
+ optional fixed64 steamid = 1;
337
+ optional fixed64 broadcast_session_id = 2;
338
+ optional int32 first_segment = 3;
339
+ optional int32 num_segments = 4;
340
+ optional string clip_description = 5;
341
+ }
342
+
343
+ message CBroadcast_StartBuildClip_Response {
344
+ optional fixed64 broadcast_clip_id = 1;
345
+ }
346
+
347
+ message CBroadcast_StopBroadcastUpload_Notification {
348
+ optional fixed64 broadcast_id = 1;
349
+ optional fixed64 broadcast_relay_id = 2;
350
+ optional uint32 upload_result = 3;
351
+ optional bool too_many_poor_uploads = 4;
352
+ }
353
+
354
+ message CBroadcast_StopWatchingBroadcast_Notification {
355
+ optional fixed64 steamid = 1;
356
+ optional fixed64 broadcast_id = 2;
357
+ optional fixed64 viewer_token = 3;
358
+ }
359
+
360
+ message CBroadcast_UpdateChatMessageFlair_Request {
361
+ optional fixed64 chat_id = 1;
362
+ optional string flair = 2;
363
+ }
364
+
365
+ message CBroadcast_UpdateChatMessageFlair_Response {
366
+ optional int32 result = 1;
367
+ optional fixed64 chat_id = 2;
368
+ optional string flair = 3;
369
+ }
370
+
371
+ message CBroadcast_ViewerBroadcastInvite_Notification {
372
+ optional fixed64 broadcaster_steamid = 1;
373
+ }
374
+
375
+ message CBroadcast_WaitingBroadcastViewer_Notification {
376
+ optional fixed64 broadcast_id = 1;
377
+ }
378
+
379
+ message CBroadcast_WatchBroadcast_Request {
380
+ optional fixed64 steamid = 1;
381
+ optional fixed64 existing_broadcast_id = 2;
382
+ optional fixed64 viewer_token = 3;
383
+ optional uint32 client_ip = 4;
384
+ optional uint32 client_cell = 5;
385
+ optional int32 watch_location = 6 [(.description) = "enum"];
386
+ optional bool is_webrtc = 7;
387
+ }
388
+
389
+ message CBroadcast_WatchBroadcast_Response {
390
+ optional int32 response = 1 [(.description) = "enum"];
391
+ optional string mpd_url = 2;
392
+ optional fixed64 broadcast_id = 3;
393
+ optional uint64 gameid = 4;
394
+ optional string title = 5;
395
+ optional uint32 num_viewers = 6;
396
+ optional int32 permission = 7;
397
+ optional bool is_rtmp = 8;
398
+ optional int32 seconds_delay = 9;
399
+ optional fixed64 viewer_token = 10;
400
+ optional string hls_m3u8_master_url = 11;
401
+ optional int32 heartbeat_interval = 12;
402
+ optional string thumbnail_url = 13;
403
+ optional bool is_webrtc = 14;
404
+ optional fixed64 webrtc_session_id = 15;
405
+ optional string webrtc_offer_sdp = 16;
406
+ optional string webrtc_turn_server = 17;
407
+ optional bool is_replay = 18;
408
+ optional int32 duration = 19;
409
+ optional string cdn_auth_url_parameters = 20;
410
+ }
411
+
412
+ message CBroadcast_WebRTC_Candidate {
413
+ optional string sdp_mid = 1;
414
+ optional int32 sdp_mline_index = 2;
415
+ optional string candidate = 3;
416
+ }
417
+
418
+ message CBroadcast_WebRTCAddHostCandidate_Request {
419
+ optional fixed64 webrtc_session_id = 1;
420
+ optional .CBroadcast_WebRTC_Candidate candidate = 2;
421
+ }
422
+
423
+ message CBroadcast_WebRTCAddHostCandidate_Response {
424
+ }
425
+
426
+ message CBroadcast_WebRTCAddViewerCandidate_Notification {
427
+ optional fixed64 broadcast_session_id = 1;
428
+ optional fixed64 webrtc_session_id = 2;
429
+ optional .CBroadcast_WebRTC_Candidate candidate = 3;
430
+ }
431
+
432
+ message CBroadcast_WebRTCAddViewerCandidate_Request {
433
+ optional fixed64 broadcaster_steamid = 1;
434
+ optional fixed64 webrtc_session_id = 2;
435
+ optional .CBroadcast_WebRTC_Candidate candidate = 3;
436
+ }
437
+
438
+ message CBroadcast_WebRTCAddViewerCandidate_Response {
439
+ }
440
+
441
+ message CBroadcast_WebRTCGetHostCandidates_Request {
442
+ optional fixed64 broadcaster_steamid = 1;
443
+ optional fixed64 webrtc_session_id = 2;
444
+ optional uint32 candidate_generation = 3;
445
+ }
446
+
447
+ message CBroadcast_WebRTCGetHostCandidates_Response {
448
+ optional uint32 candidate_generation = 1;
449
+ repeated .CBroadcast_WebRTC_Candidate candidates = 2;
450
+ }
451
+
452
+ message CBroadcast_WebRTCHaveTURNServer_Notification {
453
+ optional fixed64 broadcast_session_id = 1;
454
+ optional string turn_server = 2;
455
+ }
456
+
457
+ message CBroadcast_WebRTCLookupTURNServer_Request {
458
+ optional uint32 cellid = 1;
459
+ }
460
+
461
+ message CBroadcast_WebRTCLookupTURNServer_Response {
462
+ optional string turn_server = 1;
463
+ }
464
+
465
+ message CBroadcast_WebRTCNeedTURNServer_Notification {
466
+ optional fixed64 broadcast_session_id = 1;
467
+ }
468
+
469
+ message CBroadcast_WebRTCSetAnswer_Notification {
470
+ optional fixed64 broadcast_session_id = 1;
471
+ optional fixed64 webrtc_session_id = 2;
472
+ optional string answer = 3;
473
+ }
474
+
475
+ message CBroadcast_WebRTCSetAnswer_Request {
476
+ optional fixed64 broadcaster_steamid = 1;
477
+ optional fixed64 webrtc_session_id = 2;
478
+ optional string answer = 3;
479
+ }
480
+
481
+ message CBroadcast_WebRTCSetAnswer_Response {
482
+ }
483
+
484
+ message CBroadcast_WebRTCStart_Notification {
485
+ optional fixed64 broadcast_session_id = 1;
486
+ optional fixed64 webrtc_session_id = 2;
487
+ optional fixed64 viewer_steamid = 3;
488
+ optional fixed64 viewer_token = 4;
489
+ }
490
+
491
+ message CBroadcast_WebRTCStartResult_Request {
492
+ optional fixed64 webrtc_session_id = 1;
493
+ optional bool started = 2;
494
+ optional string offer = 3;
495
+ optional uint32 resolution_x = 4;
496
+ optional uint32 resolution_y = 5;
497
+ optional uint32 fps = 6;
498
+ }
499
+
500
+ message CBroadcast_WebRTCStartResult_Response {
501
+ }
502
+
503
+ message CBroadcast_WebRTCStopped_Request {
504
+ optional fixed64 webrtc_session_id = 1;
505
+ }
506
+
507
+ message CBroadcast_WebRTCStopped_Response {
508
+ }
509
+
510
+ service Broadcast {
511
+ rpc BeginBroadcastSession (.CBroadcast_BeginBroadcastSession_Request) returns (.CBroadcast_BeginBroadcastSession_Response);
512
+ rpc EndBroadcastSession (.CBroadcast_EndBroadcastSession_Request) returns (.CBroadcast_EndBroadcastSession_Response);
513
+ rpc GetBroadcastChatInfo (.CBroadcast_GetBroadcastChatInfo_Request) returns (.CBroadcast_GetBroadcastChatInfo_Response);
514
+ rpc GetBroadcastChatUserNames (.CBroadcast_GetBroadcastChatUserNames_Request) returns (.CBroadcast_GetBroadcastChatUserNames_Response);
515
+ rpc GetBroadcastStatus (.CBroadcast_GetBroadcastStatus_Request) returns (.CBroadcast_GetBroadcastStatus_Response);
516
+ rpc GetBroadcastThumbnail (.CBroadcast_GetBroadcastThumbnail_Request) returns (.CBroadcast_GetBroadcastThumbnail_Response);
517
+ rpc GetBroadcastUploadStats (.CBroadcast_GetBroadcastUploadStats_Request) returns (.CBroadcast_GetBroadcastUploadStats_Response);
518
+ rpc GetBroadcastViewerStats (.CBroadcast_GetBroadcastViewerStats_Request) returns (.CBroadcast_GetBroadcastViewerStats_Response);
519
+ rpc GetBuildClipStatus (.CBroadcast_GetBuildClipStatus_Request) returns (.CBroadcast_GetBuildClipStatus_Response);
520
+ rpc GetClipDetails (.CBroadcast_GetClipDetails_Request) returns (.CBroadcast_GetClipDetails_Response);
521
+ rpc GetRTMPInfo (.CBroadcast_GetRTMPInfo_Request) returns (.CBroadcast_GetRTMPInfo_Response);
522
+ rpc HeartbeatBroadcast (.CBroadcast_HeartbeatBroadcast_Notification) returns (.NoResponse);
523
+ rpc InviteToBroadcast (.CBroadcast_InviteToBroadcast_Request) returns (.CBroadcast_InviteToBroadcast_Response);
524
+ rpc MuteBroadcastChatUser (.CBroadcast_MuteBroadcastChatUser_Request) returns (.CBroadcast_MuteBroadcastChatUser_Response);
525
+ rpc NotifyBroadcastSessionHeartbeat (.NotImplemented) returns (.NoResponse);
526
+ rpc NotifyBroadcastUploadStop (.NotImplemented) returns (.NoResponse);
527
+ rpc NotifyWebRTCHaveTURNServer (.CBroadcast_WebRTCHaveTURNServer_Notification) returns (.NoResponse);
528
+ rpc PostChatMessage (.CBroadcast_PostChatMessage_Request) returns (.CBroadcast_PostChatMessage_Response);
529
+ rpc RemoveUserChatText (.CBroadcast_RemoveUserChatText_Request) returns (.CBroadcast_RemoveUserChatText_Response);
530
+ rpc SendBroadcastStateToServer (.CBroadcast_SendBroadcastStateToServer_Request) returns (.CBroadcast_SendBroadcastStateToServer_Response);
531
+ rpc SetClipDetails (.CBroadcast_SetClipDetails_Request) returns (.CBroadcast_SetClipDetails_Response);
532
+ rpc SetRTMPInfo (.CBroadcast_SetRTMPInfo_Request) returns (.CBroadcast_SetRTMPInfo_Response);
533
+ rpc StartBroadcastUpload (.CBroadcast_StartBroadcastUpload_Request) returns (.CBroadcast_StartBroadcastUpload_Response);
534
+ rpc StartBuildClip (.CBroadcast_StartBuildClip_Request) returns (.CBroadcast_StartBuildClip_Response);
535
+ rpc StopWatchingBroadcast (.CBroadcast_StopWatchingBroadcast_Notification) returns (.NoResponse);
536
+ rpc UpdateChatMessageFlair (.CBroadcast_UpdateChatMessageFlair_Request) returns (.CBroadcast_UpdateChatMessageFlair_Response);
537
+ rpc WatchBroadcast (.CBroadcast_WatchBroadcast_Request) returns (.CBroadcast_WatchBroadcast_Response);
538
+ rpc WebRTCAddHostCandidate (.CBroadcast_WebRTCAddHostCandidate_Request) returns (.CBroadcast_WebRTCAddHostCandidate_Response);
539
+ rpc WebRTCAddViewerCandidate (.CBroadcast_WebRTCAddViewerCandidate_Request) returns (.CBroadcast_WebRTCAddViewerCandidate_Response);
540
+ rpc WebRTCGetHostCandidates (.CBroadcast_WebRTCGetHostCandidates_Request) returns (.CBroadcast_WebRTCGetHostCandidates_Response);
541
+ rpc WebRTCLookupTURNServer (.CBroadcast_WebRTCLookupTURNServer_Request) returns (.CBroadcast_WebRTCLookupTURNServer_Response);
542
+ rpc WebRTCSetAnswer (.CBroadcast_WebRTCSetAnswer_Request) returns (.CBroadcast_WebRTCSetAnswer_Response);
543
+ rpc WebRTCStartResult (.CBroadcast_WebRTCStartResult_Request) returns (.CBroadcast_WebRTCStartResult_Response);
544
+ rpc WebRTCStopped (.CBroadcast_WebRTCStopped_Request) returns (.CBroadcast_WebRTCStopped_Response);
545
+ }
546
+
547
+ service BroadcastClient {
548
+ rpc NotifyBroadcastChannelLive (.CBroadcast_BroadcastChannelLive_Notification) returns (.NoResponse);
549
+ rpc NotifyBroadcastStatus (.CBroadcast_BroadcastStatus_Notification) returns (.NoResponse);
550
+ rpc NotifyBroadcastUploadStarted (.CBroadcast_BroadcastUploadStarted_Notification) returns (.NoResponse);
551
+ rpc NotifyBroadcastViewerState (.CBroadcast_BroadcastViewerState_Notification) returns (.NoResponse);
552
+ rpc NotifySessionClosed (.CBroadcast_SessionClosed_Notification) returns (.NoResponse);
553
+ rpc NotifyStopBroadcastUpload (.CBroadcast_StopBroadcastUpload_Notification) returns (.NoResponse);
554
+ rpc NotifyViewerBroadcastInvite (.CBroadcast_ViewerBroadcastInvite_Notification) returns (.NoResponse);
555
+ rpc NotifyWaitingBroadcastViewer (.CBroadcast_WaitingBroadcastViewer_Notification) returns (.NoResponse);
556
+ rpc NotifyWebRTCAddViewerCandidate (.CBroadcast_WebRTCAddViewerCandidate_Notification) returns (.NoResponse);
557
+ rpc NotifyWebRTCNeedTURNServer (.CBroadcast_WebRTCNeedTURNServer_Notification) returns (.NoResponse);
558
+ rpc NotifyWebRTCSetAnswer (.CBroadcast_WebRTCSetAnswer_Notification) returns (.NoResponse);
559
+ rpc NotifyWebRTCStart (.CBroadcast_WebRTCStart_Notification) returns (.NoResponse);
560
+ rpc SendThumbnailToRelay (.CBroadcast_SendThumbnailToRelay_Notification) returns (.NoResponse);
561
+ }
562
+