Skip to content

Commit ad14f3f

Browse files
committed
chore: update rotom protos
1 parent 9ddcd5a commit ad14f3f

File tree

5 files changed

+141
-33
lines changed

5 files changed

+141
-33
lines changed

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"miragejs": "^0.1.45",
112112
"nx": "20.1.1",
113113
"prettier": "^2.5.1",
114-
"protobufjs-cli": "^1.0.1",
114+
"protobufjs-cli": "^1.1.3",
115115
"react-refresh": "^0.14.0",
116116
"ts-jest": "29.1.1",
117117
"ts-node": "9.1.1",

packages/connections/src/lib/utils/mitmProto.d.ts

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as $protobuf from "protobufjs";
2+
import Long = require("long");
23
/** Namespace RotomProtos. */
34
export namespace RotomProtos {
45

@@ -255,7 +256,11 @@ export namespace RotomProtos {
255256
/** LoginSource enum. */
256257
enum LoginSource {
257258
UNSET = 0,
258-
PTC = 1
259+
PTC = 1,
260+
PTC_OAUTH = 2,
261+
FB = 3,
262+
GOOGLE = 4,
263+
N_KIDS = 5
259264
}
260265
}
261266

@@ -495,6 +500,9 @@ export namespace RotomProtos {
495500

496501
/** MitmResponse rpcResponse */
497502
rpcResponse?: (RotomProtos.MitmResponse.IRpcResponse|null);
503+
504+
/** MitmResponse mitmError */
505+
mitmError?: (string|null);
498506
}
499507

500508
/** Represents a MitmResponse. */
@@ -518,6 +526,9 @@ export namespace RotomProtos {
518526
/** MitmResponse rpcResponse. */
519527
public rpcResponse?: (RotomProtos.MitmResponse.IRpcResponse|null);
520528

529+
/** MitmResponse mitmError. */
530+
public mitmError: string;
531+
521532
/** MitmResponse payload. */
522533
public payload?: ("loginResponse"|"rpcResponse");
523534

@@ -606,10 +617,9 @@ export namespace RotomProtos {
606617
UNSET = 0,
607618
SUCCESS = 200,
608619
ERROR_UNKNOWN = 500,
609-
ERROR_GAME_NOT_READY = 501,
610-
ERROR_LOGIN_IN_PROGRESS = 502,
611-
ERROR_TOKEN_REJECTED = 503,
612-
ERROR_NOT_LOGGED_IN = 504
620+
ERROR_RETRY_LATER = 501,
621+
ERROR_WORKER_STOPPED = 502,
622+
ERROR_RECONNECT = 503
613623
}
614624

615625
/** Properties of a LoginResponse. */
@@ -623,6 +633,9 @@ export namespace RotomProtos {
623633

624634
/** LoginResponse supportsCompression */
625635
supportsCompression?: (boolean|null);
636+
637+
/** LoginResponse useragent */
638+
useragent?: (string|null);
626639
}
627640

628641
/** Represents a LoginResponse. */
@@ -643,6 +656,9 @@ export namespace RotomProtos {
643656
/** LoginResponse supportsCompression. */
644657
public supportsCompression: boolean;
645658

659+
/** LoginResponse useragent. */
660+
public useragent: string;
661+
646662
/**
647663
* Creates a new LoginResponse instance using the specified properties.
648664
* @param [properties] Properties to set
@@ -1100,6 +1116,8 @@ export namespace RotomProtos {
11001116
RPC_STATUS_ACCESS_SUSPENDED = 16,
11011117
RPC_STATUS_DEVICE_INCOMPATIBLE = 17,
11021118
RPC_STATUS_ACCESS_RATE_LIMITED = 18,
1119+
RPC_STATUS_GOOGLE_PLAY_NOT_READY = 19,
1120+
RPC_STATUS_LOGIN_ERROR_BAIL = 20,
11031121
RPC_STATUS_MITM_DISALLOWED_REQUEST = 99
11041122
}
11051123
}

0 commit comments

Comments
 (0)