Skip to content

Commit

Permalink
chore: update rotom protos
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 committed Dec 3, 2024
1 parent 9ddcd5a commit ad14f3f
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 33 deletions.
15 changes: 8 additions & 7 deletions 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
Expand Up @@ -111,7 +111,7 @@
"miragejs": "^0.1.45",
"nx": "20.1.1",
"prettier": "^2.5.1",
"protobufjs-cli": "^1.0.1",
"protobufjs-cli": "^1.1.3",
"react-refresh": "^0.14.0",
"ts-jest": "29.1.1",
"ts-node": "9.1.1",
Expand Down
28 changes: 23 additions & 5 deletions packages/connections/src/lib/utils/mitmProto.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace RotomProtos. */
export namespace RotomProtos {

Expand Down Expand Up @@ -255,7 +256,11 @@ export namespace RotomProtos {
/** LoginSource enum. */
enum LoginSource {
UNSET = 0,
PTC = 1
PTC = 1,
PTC_OAUTH = 2,
FB = 3,
GOOGLE = 4,
N_KIDS = 5
}
}

Expand Down Expand Up @@ -495,6 +500,9 @@ export namespace RotomProtos {

/** MitmResponse rpcResponse */
rpcResponse?: (RotomProtos.MitmResponse.IRpcResponse|null);

/** MitmResponse mitmError */
mitmError?: (string|null);
}

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

/** MitmResponse mitmError. */
public mitmError: string;

/** MitmResponse payload. */
public payload?: ("loginResponse"|"rpcResponse");

Expand Down Expand Up @@ -606,10 +617,9 @@ export namespace RotomProtos {
UNSET = 0,
SUCCESS = 200,
ERROR_UNKNOWN = 500,
ERROR_GAME_NOT_READY = 501,
ERROR_LOGIN_IN_PROGRESS = 502,
ERROR_TOKEN_REJECTED = 503,
ERROR_NOT_LOGGED_IN = 504
ERROR_RETRY_LATER = 501,
ERROR_WORKER_STOPPED = 502,
ERROR_RECONNECT = 503
}

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

/** LoginResponse supportsCompression */
supportsCompression?: (boolean|null);

/** LoginResponse useragent */
useragent?: (string|null);
}

/** Represents a LoginResponse. */
Expand All @@ -643,6 +656,9 @@ export namespace RotomProtos {
/** LoginResponse supportsCompression. */
public supportsCompression: boolean;

/** LoginResponse useragent. */
public useragent: string;

/**
* Creates a new LoginResponse instance using the specified properties.
* @param [properties] Properties to set
Expand Down Expand Up @@ -1100,6 +1116,8 @@ export namespace RotomProtos {
RPC_STATUS_ACCESS_SUSPENDED = 16,
RPC_STATUS_DEVICE_INCOMPATIBLE = 17,
RPC_STATUS_ACCESS_RATE_LIMITED = 18,
RPC_STATUS_GOOGLE_PLAY_NOT_READY = 19,
RPC_STATUS_LOGIN_ERROR_BAIL = 20,
RPC_STATUS_MITM_DISALLOWED_REQUEST = 99
}
}
Loading

0 comments on commit ad14f3f

Please sign in to comment.