Skip to content

Commit

Permalink
Update protos to version 10702
Browse files Browse the repository at this point in the history
  • Loading branch information
claabs committed Aug 22, 2022
1 parent 9be7b42 commit 38290a6
Show file tree
Hide file tree
Showing 12 changed files with 277 additions and 434 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ubisoft-demux",
"version": "1.10690.7",
"version": "1.10702.7",
"description": "A Node.js client to interact with Ubisoft Connect's protobuf demux API",
"main": "dist/src/index.js",
"scripts": {
Expand Down
8 changes: 6 additions & 2 deletions proto/proto_overlay/overlay.proto
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ message StreamingHostStartPush {
required bool mouse_keyboard_allowed = 6;
required bool gamepad_allowed = 7;
required string host_profile_id = 8;
required uint32 resolution = 9;
required uint32 fps = 10;
}

message StreamingHostStartResponse {
Expand Down Expand Up @@ -228,8 +230,10 @@ message StreamingHostKickPush {

message StreamingSettingsPush {
required uint32 bitrate = 1;
required bool mouse_keyboard_allowed = 2;
required bool gamepad_allowed = 3;
required uint32 resolution = 2;
required uint32 fps = 3;
required bool mouse_keyboard_allowed = 4;
required bool gamepad_allowed = 5;
}

message StreamingHostPermissionsPush {
Expand Down
100 changes: 4 additions & 96 deletions proto/proto_ownership/ownership.proto
Original file line number Diff line number Diff line change
Expand Up @@ -348,98 +348,6 @@ message DeprecatedGetLatestManifestsRsp {
}
}

message CloudsaveReq {
required uint32 uplay_id = 1;

optional PutItem put_item = 2;
message PutItem {
required uint32 item_id = 1;
required uint32 write_length = 2;
required string md5_base64 = 3;
}

optional GetItem get_item = 3;
message GetItem {
required uint32 item_id = 1;
}

optional DeleteItem delete_item = 4;
message DeleteItem {
required uint32 item_id = 1;
}

optional ListItems list_items = 5;
message ListItems {

}

optional string username = 6;
}

message CloudsaveRsp {
required Status status = 1;
enum Status {
Status_Ok = 1;
Status_InternalError = 2;
Status_Denied = 3;
}

required string method_string = 2;
required string path_string = 3;
required string host_string = 4;
required string header_string = 5;
}

message CloudsaveReqV2 {
required uint32 uplay_id = 1;

optional PutItems put_items = 2;
message PutItems {
repeated Item items = 1;
message Item {
required uint32 item_id = 1;
required uint32 write_length = 2;
required string md5_base64 = 3;
optional string item_name = 4;
}
}

optional GetItems get_items = 3;
message GetItems {
repeated Item items = 1;
message Item {
required uint32 item_id = 1;
optional string item_name = 2;
}
}

optional DeleteItems delete_items = 4;
message DeleteItems {
repeated Item items = 1;
message Item {
required uint32 item_id = 1;
optional string item_name = 2;
}
}
}

message CloudsaveRspV2 {
required Status status = 1;
enum Status {
Status_Ok = 1;
Status_InternalError = 2;
Status_Denied = 3;
}

repeated HttpReq http_reqs = 2;
message HttpReq {
required string method = 1;
required string path = 2;
required string host = 3;
required string header = 4;
}
}

message GetProductConfigReq {
required uint32 product_id = 1;
optional bool deprecated_test_config = 2;
Expand Down Expand Up @@ -650,9 +558,7 @@ message Req {
optional DeprecatedGetProductFromCdKeyReq deprecated_get_product_from_cd_key_req = 6;
optional GetProductConfigReq get_product_config_req = 9;
optional DeprecatedGetLatestManifestsReq deprecated_get_latest_manifests_req = 10;
optional CloudsaveReq cloudsave_req = 11 [deprecated = true];
optional GetBatchDownloadUrlsReq get_batch_download_urls_req = 12;
optional CloudsaveReqV2 cloudsave_req_v2 = 13 [deprecated = true];
optional GetUplayPCTicketReq get_uplay_pc_ticket_req = 14;
optional RetryUplayCoreInitializeReq retry_uplay_core_initialize_req = 15;
optional ConsumeOwnershipReq consume_ownership_req = 16;
Expand All @@ -669,6 +575,8 @@ message Req {
optional RegisterOwnershipFromWeGameReq register_ownership_from_wegame_req = 27;
optional OwnershipTokenReq ownership_token_req = 28;
optional RegisterTemporaryOwnershipReq register_temporary_ownership_req = 29;

reserved 11, 13;
}

message Rsp {
Expand All @@ -678,10 +586,8 @@ message Rsp {
optional DeprecatedGetProductFromCdKeyRsp deprecated_get_product_from_cd_key_rsp = 5;
optional GetProductConfigRsp get_product_config_rsp = 9;
optional DeprecatedGetLatestManifestsRsp deprecated_get_latest_manifests_rsp = 10;
optional CloudsaveRsp cloudsave_rsp = 11 [deprecated = true];
optional GetBatchDownloadUrlsRsp get_batch_download_urls_rsp = 12;
optional GetUplayPCTicketRsp get_uplay_pc_ticket_rsp = 13;
optional CloudsaveRspV2 cloudsave_rsp_v2 = 14 [deprecated = true];
optional ConsumeOwnershipRsp consume_ownership_rsp = 15;
optional SwitchProductBranchRsp switch_product_branch_rsp = 16;
optional UnlockProductBranchRsp unlock_product_branch_rsp = 17;
Expand All @@ -696,6 +602,8 @@ message Rsp {
optional RegisterOwnershipFromWeGameRsp register_ownership_from_wegame_rsp = 26;
optional OwnershipTokenRsp ownership_token_rsp = 27;
optional RegisterTemporaryOwnershipRsp register_temporary_ownership_rsp = 28;

reserved 11, 14;
}

message OwnedGamePush {
Expand Down
124 changes: 124 additions & 0 deletions proto/proto_settings/common_settings.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
syntax = "proto2";

package mg.protocol.settings;

import "google/protobuf/descriptor.proto";

message User {
optional bool syncsavegames = 1 [default = true];
optional bool offline = 2 [default = false];
optional CloseBehavior closebehavior = 3 [default = CloseBehavior_Undefined];
optional LandingPage landingpage = 4 [default = LandingPageNews];
optional bool start_on_windows_start = 5 [default = false];
optional bool non_friend_game_invite_enabled = 6 [default = true];
optional bool landingpage_set_by_user = 7 [default = false];
}

message Overlay {
optional bool enabled = 1 [default = true];
optional bool forceunhookgame = 2 [default = false];
optional bool fps_enabled = 3 [default = false];
optional bool warning_enabled = 4 [default = true];
}

message Language {
optional string code = 1 [default = "en-US"];
}

message Misc {
optional string installer_cache_path = 1;
optional string screenshot_root_path = 2;
optional bool enable_screenshots_on_achievements = 3 [default = false];
optional string game_installation_path = 4;
optional bool enable_auto_wall_posts = 5 [default = true];
optional bool save_screenshot_uncompressed_copy = 6 [default = false];
}

message Position {
optional uint32 left = 1 [default = 0];
optional uint32 top = 2 [default = 0];
optional uint32 width = 3 [default = 0];
optional uint32 height = 4 [default = 0];
optional bool maximized = 5 [default = false];
}

message ModelessPositions {
optional Position friends_window = 1;
optional Position conversations_window = 2;
}

message Masters {
optional string username = 1;
optional string password = 2;
}

message Hotkey {
optional uint32 keyCode = 1 [default = 0];
optional bool altState = 2 [default = false];
optional bool shiftState = 3 [default = false];
optional bool controlState = 4 [default = false];
}

message Downloads {
optional uint64 limit = 1 [default = 10000000];
optional bool limitEnabled = 2 [default = false];
optional bool pauseOnGameLaunch = 3 [default = true];
}

message Betas {
optional bool optIn = 1 [default = false];
}

message AutoPatching {
optional bool enabled = 1 [default = true];
}

message Spotlight {
optional bool enabled = 1 [default = true];
}

message Conversations {
optional bool taskbarTabsEnabled = 1 [default = false];
}

message Epic {
optional string exchangeCode = 1;
}

message BrandedInstaller {
optional string pending_protocol = 1;
}

message SharePlay {
optional uint32 bitrate = 1 [default = 20];
optional bool displayOnboarding = 2 [default = true];
optional bool mouseAndKeyboardAccessAllowed = 3 [default = true];
optional bool gamepadAccessAllowed = 4 [default = true];
optional bool displayWizardTour = 5 [default = true];
optional uint32 lastTimeFeedBackWindowDisplayed = 6 [default = 0];
optional uint32 nbBuyGameRefused = 7 [default = 0];
optional uint32 nbFeedbackUnfilled = 8 [default = 0];
optional uint32 resolution = 9 [default = 1080];
optional uint32 fps = 10 [default = 60];
}

enum CloseBehavior {
CloseBehavior_Undefined = 0;
CloseBehavior_Close = 1;
CloseBehavior_Minimize = 2;
}

enum LandingPage {
LandingPageNews = 0;
LandingPageGames = 1;
LandingPageLastPlayedGame = 2;
LandingPageUplayPlus = 3;
}

extend google.protobuf.FieldOptions {
optional bool disableStatsTracking = 50000;
}

extend google.protobuf.MessageOptions {
optional bool disableMessageStatsTracking = 50001;
}
Loading

0 comments on commit 38290a6

Please sign in to comment.