Skip to content

Commit

Permalink
Upgrade version 10931.
Browse files Browse the repository at this point in the history
All optional types updated due to ts-proto update
  • Loading branch information
claabs committed Sep 5, 2023
1 parent 52c38f7 commit 13e4f37
Show file tree
Hide file tree
Showing 41 changed files with 935 additions and 877 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ubisoft-demux",
"version": "1.10906.0",
"version": "1.10931.0",
"description": "A Node.js client to interact with Ubisoft Connect's protobuf demux API",
"main": "dist/src/index.js",
"scripts": {
Expand Down Expand Up @@ -67,7 +67,7 @@
"rimraf": "^3.0.2",
"ts-jest": "^29.0.2",
"ts-node": "^10.9.1",
"ts-proto": "^1.156.2",
"ts-proto": "^1.157.0",
"typed-emitter": "^2.1.0",
"typescript": "^4.8.3",
"yaml": "^2.3.1"
Expand Down
31 changes: 31 additions & 0 deletions proto/proto_connect_secure_storage/connect_secure_storage.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
syntax = "proto3";

package mg.protocol.connect_secure_storage;

message Entry {
bool isPrivate = 1;
uint64 expirationTime = 2;
bytes value = 3;
}

message SpaceIdBucket {
map<string, Entry> elements = 1;
}

message SecureStorage {
map<string, SpaceIdBucket> data = 1;
}

message Cache {
oneof _prod {
SecureStorage prod = 1;
}

oneof _uat {
SecureStorage uat = 2;
}

oneof _dev {
SecureStorage dev = 3;
}
}
18 changes: 16 additions & 2 deletions proto/proto_game_catalog_extension/game_catalog_extension.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ message LinkAccountRsp {
bool is_linked = 1;
}

message CheckUserReq {
AuthDetails auth_details = 1;
}

message CheckUserRsp {
bool is_loged_in = 1;
}

message LaunchGameReq {
uint32 product_id = 1;
uint32 executable_id = 2;
Expand Down Expand Up @@ -182,8 +190,11 @@ message ProductManagementRsp {
}

message ProductActionsUpdated {
uint32 product_id = 1;
repeated ProductAction actions = 2;
ProductActions actions = 1;
}

message LocalProductDetailsUpdated {
LocalProductDetails product_details = 1;
}

message ProductDownloadStarted {
Expand Down Expand Up @@ -241,6 +252,7 @@ message Req {
InitializeReq initialize = 2;
GameRuntimeReq game_run_time = 3;
ProductManagementReq product_management = 4;
CheckUserReq check_user = 536870909;
LinkAccountReq link_account = 536870910;
}
}
Expand All @@ -252,6 +264,7 @@ message Rsp {
InitializeRsp initialize = 2;
GameRuntimeRsp game_run_time = 3;
ProductManagementRsp product_management = 4;
CheckUserRsp check_user = 536870909;
LinkAccountRsp link_account = 536870910;
}
}
Expand All @@ -261,6 +274,7 @@ message Push {
GameLaunched game_launched = 102;
GameEnded game_ended = 103;
ProductActionsUpdated product_actions_updated = 201;
LocalProductDetailsUpdated local_product_details_updated = 202;
ProductDownloadStarted product_download_started = 211;
ProductDownloadUpdated product_download_updated = 212;
ProductDownloadCompleted product_download_completed = 213;
Expand Down
20 changes: 2 additions & 18 deletions proto/proto_statistics/Statistics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -619,21 +619,6 @@ message TrustedDeviceActionData {
optional bool defaultFriendlyName = 3;
}

message GameStarterStartRequestObjectData {
optional string steamId = 1;
optional string steamTicket = 2;
}

message MercuryCheckoutRequestObjectData {
optional string steamId = 1;
optional string partnerPlatformType = 2;
}

message MercuryWebshopGetObjectData {
optional string partnerPlatformType = 1;
optional string misconfiguredProductSteamIds = 2;
}

message SharePlayHostSessionStreamingStartData {
optional string hostPeerId = 1;
optional string side = 2;
Expand Down Expand Up @@ -864,9 +849,8 @@ message EventObjectData {
optional RemotePlayHostSessionStreamingStartData remotePlaySessionStart = 62;
optional RemotePlayHostSessionStreamingStopData remotePlaySessionStop = 63;
optional StreamingStatusData streamingStatus = 64;
optional GameStarterStartRequestObjectData gameStarterStartRequest = 65;
optional MercuryCheckoutRequestObjectData mercuryCheckoutRequest = 66;
optional MercuryWebshopGetObjectData mercuryWebshopGet = 67;

reserved 65, 66, 67;
}

message Event {
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* The launcher version sent to the demux API on startup. It can be found in the upc.exe file properties (e.g. File version: 132.2.0.10690)
*/
export const API_VERSION = 10906;
export const API_VERSION = 10931;
20 changes: 10 additions & 10 deletions src/generated/google/protobuf/descriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export interface FileDescriptorProto {
enumType: EnumDescriptorProto[];
service: ServiceDescriptorProto[];
extension: FieldDescriptorProto[];
options?: FileOptions;
sourceCodeInfo?: SourceCodeInfo;
options?: FileOptions | undefined;
sourceCodeInfo?: SourceCodeInfo | undefined;
syntax: string;
}

Expand All @@ -29,15 +29,15 @@ export interface DescriptorProto {
enumType: EnumDescriptorProto[];
extensionRange: DescriptorProto_ExtensionRange[];
oneofDecl: OneofDescriptorProto[];
options?: MessageOptions;
options?: MessageOptions | undefined;
reservedRange: DescriptorProto_ReservedRange[];
reservedName: string[];
}

export interface DescriptorProto_ExtensionRange {
start: number;
end: number;
options?: ExtensionRangeOptions;
options?: ExtensionRangeOptions | undefined;
}

export interface DescriptorProto_ReservedRange {
Expand All @@ -59,7 +59,7 @@ export interface FieldDescriptorProto {
defaultValue: string;
oneofIndex: number;
jsonName: string;
options?: FieldOptions;
options?: FieldOptions | undefined;
proto3Optional: boolean;
}

Expand Down Expand Up @@ -94,13 +94,13 @@ export enum FieldDescriptorProto_Type {

export interface OneofDescriptorProto {
name: string;
options?: OneofOptions;
options?: OneofOptions | undefined;
}

export interface EnumDescriptorProto {
name: string;
value: EnumValueDescriptorProto[];
options?: EnumOptions;
options?: EnumOptions | undefined;
reservedRange: EnumDescriptorProto_EnumReservedRange[];
reservedName: string[];
}
Expand All @@ -113,20 +113,20 @@ export interface EnumDescriptorProto_EnumReservedRange {
export interface EnumValueDescriptorProto {
name: string;
number: number;
options?: EnumValueOptions;
options?: EnumValueOptions | undefined;
}

export interface ServiceDescriptorProto {
name: string;
method: MethodDescriptorProto[];
options?: ServiceOptions;
options?: ServiceOptions | undefined;
}

export interface MethodDescriptorProto {
name: string;
inputType: string;
outputType: string;
options?: MethodOptions;
options?: MethodOptions | undefined;
clientStreaming: boolean;
serverStreaming: boolean;
}
Expand Down
Loading

0 comments on commit 13e4f37

Please sign in to comment.