nashpit 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nashpit/__init__.py +109 -0
- nashpit/_cli_shim.py +48 -0
- nashpit/_keys.py +87 -0
- nashpit/_proto/__init__.py +4 -0
- nashpit/_proto/v1/__init__.py +1 -0
- nashpit/_proto/v1/account_pb2.py +87 -0
- nashpit/_proto/v1/account_pb2.pyi +146 -0
- nashpit/_proto/v1/auth_pb2.py +108 -0
- nashpit/_proto/v1/auth_pb2.pyi +182 -0
- nashpit/_proto/v1/bot_pb2.py +77 -0
- nashpit/_proto/v1/bot_pb2.pyi +148 -0
- nashpit/_proto/v1/common_pb2.py +82 -0
- nashpit/_proto/v1/common_pb2.pyi +255 -0
- nashpit/_proto/v1/hand_pb2.py +96 -0
- nashpit/_proto/v1/hand_pb2.pyi +292 -0
- nashpit/_proto/v1/invite_pb2.py +79 -0
- nashpit/_proto/v1/invite_pb2.pyi +126 -0
- nashpit/_proto/v1/key_pb2.py +69 -0
- nashpit/_proto/v1/key_pb2.pyi +104 -0
- nashpit/_proto/v1/money_pb2.py +159 -0
- nashpit/_proto/v1/money_pb2.pyi +469 -0
- nashpit/_proto/v1/options_pb2.py +41 -0
- nashpit/_proto/v1/options_pb2.pyi +57 -0
- nashpit/_proto/v1/platform_pb2.py +62 -0
- nashpit/_proto/v1/platform_pb2.pyi +65 -0
- nashpit/_proto/v1/play_pb2.py +55 -0
- nashpit/_proto/v1/play_pb2.pyi +57 -0
- nashpit/_proto/v1/profile_pb2.py +80 -0
- nashpit/_proto/v1/profile_pb2.pyi +135 -0
- nashpit/_proto/v1/rating_pb2.py +59 -0
- nashpit/_proto/v1/rating_pb2.pyi +76 -0
- nashpit/_proto/v1/run_pb2.py +102 -0
- nashpit/_proto/v1/run_pb2.pyi +282 -0
- nashpit/_proto/v1/sync_pb2.py +79 -0
- nashpit/_proto/v1/sync_pb2.pyi +178 -0
- nashpit/_proto/v1/table_pb2.py +89 -0
- nashpit/_proto/v1/table_pb2.pyi +283 -0
- nashpit/_proto/v1/transfer_pb2.py +57 -0
- nashpit/_proto/v1/transfer_pb2.pyi +70 -0
- nashpit/_proto/v1/ws_pb2.py +219 -0
- nashpit/_proto/v1/ws_pb2.pyi +681 -0
- nashpit/_proto/wire.py +54 -0
- nashpit/_run.py +108 -0
- nashpit/_runtime.py +946 -0
- nashpit/_telemetry.py +548 -0
- nashpit/_usage.py +432 -0
- nashpit/_version.py +2 -0
- nashpit/_wire.py +350 -0
- nashpit/bot.py +89 -0
- nashpit/cards.py +167 -0
- nashpit/errors.py +129 -0
- nashpit/house/__init__.py +5 -0
- nashpit/house/fast.py +219 -0
- nashpit/models.py +624 -0
- nashpit/py.typed +0 -0
- nashpit/version_hash.py +156 -0
- nashpit-0.1.0.dist-info/METADATA +105 -0
- nashpit-0.1.0.dist-info/RECORD +60 -0
- nashpit-0.1.0.dist-info/WHEEL +4 -0
- nashpit-0.1.0.dist-info/entry_points.txt +3 -0
nashpit/__init__.py
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"""Nashpit Python SDK: write ``decide(state)``, call ``nashpit.run``.
|
|
2
|
+
|
|
3
|
+
```python
|
|
4
|
+
import nashpit
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Shark(nashpit.Bot):
|
|
8
|
+
def decide(self, s: nashpit.State) -> nashpit.Action:
|
|
9
|
+
return s.check() if s.legal.can_check else s.call()
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
if __name__ == "__main__": # needed for executor="process"
|
|
13
|
+
nashpit.run(Shark())
|
|
14
|
+
```
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from nashpit._run import run, serve
|
|
18
|
+
from nashpit._version import __version__
|
|
19
|
+
from nashpit.bot import Bot, DecideFn, MaybeAwaitable
|
|
20
|
+
from nashpit.cards import Card, HoleCards, Rank, Suit
|
|
21
|
+
from nashpit.errors import (
|
|
22
|
+
AuthenticationError,
|
|
23
|
+
ConfigurationError,
|
|
24
|
+
ConnectionLostError,
|
|
25
|
+
IllegalActionError,
|
|
26
|
+
IncompatibleProtocolError,
|
|
27
|
+
NashpitError,
|
|
28
|
+
ProtocolError,
|
|
29
|
+
RateLimitedError,
|
|
30
|
+
WrongKeyTypeError,
|
|
31
|
+
)
|
|
32
|
+
from nashpit.models import (
|
|
33
|
+
Action,
|
|
34
|
+
ActionKind,
|
|
35
|
+
ActionRecord,
|
|
36
|
+
BetweenHands,
|
|
37
|
+
BuyInContext,
|
|
38
|
+
Call,
|
|
39
|
+
Check,
|
|
40
|
+
Chips,
|
|
41
|
+
Clock,
|
|
42
|
+
Continue,
|
|
43
|
+
Fold,
|
|
44
|
+
HandRecord,
|
|
45
|
+
Leave,
|
|
46
|
+
Legal,
|
|
47
|
+
MatchSummary,
|
|
48
|
+
Opponent,
|
|
49
|
+
RaiseTo,
|
|
50
|
+
Rating,
|
|
51
|
+
Seat,
|
|
52
|
+
Stakes,
|
|
53
|
+
State,
|
|
54
|
+
Street,
|
|
55
|
+
TableEvent,
|
|
56
|
+
TableRules,
|
|
57
|
+
TableView,
|
|
58
|
+
TopUp,
|
|
59
|
+
)
|
|
60
|
+
from nashpit.version_hash import compute_version_hash
|
|
61
|
+
|
|
62
|
+
__all__ = [
|
|
63
|
+
"Action",
|
|
64
|
+
"ActionKind",
|
|
65
|
+
"ActionRecord",
|
|
66
|
+
"AuthenticationError",
|
|
67
|
+
"BetweenHands",
|
|
68
|
+
"Bot",
|
|
69
|
+
"BuyInContext",
|
|
70
|
+
"Call",
|
|
71
|
+
"Card",
|
|
72
|
+
"Check",
|
|
73
|
+
"Chips",
|
|
74
|
+
"Clock",
|
|
75
|
+
"ConfigurationError",
|
|
76
|
+
"ConnectionLostError",
|
|
77
|
+
"Continue",
|
|
78
|
+
"DecideFn",
|
|
79
|
+
"Fold",
|
|
80
|
+
"HandRecord",
|
|
81
|
+
"HoleCards",
|
|
82
|
+
"IllegalActionError",
|
|
83
|
+
"IncompatibleProtocolError",
|
|
84
|
+
"Leave",
|
|
85
|
+
"Legal",
|
|
86
|
+
"MatchSummary",
|
|
87
|
+
"MaybeAwaitable",
|
|
88
|
+
"NashpitError",
|
|
89
|
+
"Opponent",
|
|
90
|
+
"ProtocolError",
|
|
91
|
+
"RaiseTo",
|
|
92
|
+
"Rank",
|
|
93
|
+
"RateLimitedError",
|
|
94
|
+
"Rating",
|
|
95
|
+
"Seat",
|
|
96
|
+
"Stakes",
|
|
97
|
+
"State",
|
|
98
|
+
"Street",
|
|
99
|
+
"Suit",
|
|
100
|
+
"TableEvent",
|
|
101
|
+
"TableRules",
|
|
102
|
+
"TableView",
|
|
103
|
+
"TopUp",
|
|
104
|
+
"WrongKeyTypeError",
|
|
105
|
+
"__version__",
|
|
106
|
+
"compute_version_hash",
|
|
107
|
+
"run",
|
|
108
|
+
"serve",
|
|
109
|
+
]
|
nashpit/_cli_shim.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""The ``nashpit`` console script: execs the Rust CLI shipped in the ``nashpit-cli`` wheel."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import shutil
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
import sysconfig
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
BINARY = "nashpit-cli"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def find_cli() -> str | None:
|
|
16
|
+
override = os.environ.get("NASHPIT_CLI")
|
|
17
|
+
if override:
|
|
18
|
+
return override
|
|
19
|
+
exe = BINARY + (".exe" if sys.platform == "win32" else "")
|
|
20
|
+
candidates = [
|
|
21
|
+
Path(sysconfig.get_path("scripts")) / exe,
|
|
22
|
+
Path(sys.executable).parent / exe,
|
|
23
|
+
]
|
|
24
|
+
user_scheme = f"{os.name}_user"
|
|
25
|
+
if user_scheme in sysconfig.get_scheme_names():
|
|
26
|
+
candidates.append(Path(sysconfig.get_path("scripts", scheme=user_scheme)) / exe)
|
|
27
|
+
for c in candidates:
|
|
28
|
+
if c.is_file():
|
|
29
|
+
return str(c)
|
|
30
|
+
return shutil.which(BINARY)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def main() -> None:
|
|
34
|
+
cli = find_cli()
|
|
35
|
+
if cli is None:
|
|
36
|
+
sys.stderr.write(
|
|
37
|
+
"error: the Nashpit CLI binary (nashpit-cli) was not found.\n"
|
|
38
|
+
" Fix: uv tool install nashpit (or: uv add nashpit-cli)\n"
|
|
39
|
+
)
|
|
40
|
+
raise SystemExit(127)
|
|
41
|
+
args = [cli, *sys.argv[1:]]
|
|
42
|
+
if sys.platform == "win32":
|
|
43
|
+
raise SystemExit(subprocess.call(args)) # noqa: S603 - our own binary
|
|
44
|
+
os.execv(cli, args) # noqa: S606
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
if __name__ == "__main__":
|
|
48
|
+
main()
|
nashpit/_keys.py
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""Bot key loading. Keys are never logged and never put in URLs."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
from pydantic import SecretStr
|
|
9
|
+
|
|
10
|
+
from nashpit.errors import ConfigurationError, WrongKeyTypeError
|
|
11
|
+
|
|
12
|
+
BOT_KEY_PREFIX = "np_bot_"
|
|
13
|
+
ACCOUNT_KEY_PREFIX = "np_acct_"
|
|
14
|
+
ENV_KEY = "NASHPIT_BOT_KEY"
|
|
15
|
+
ENV_URL = "NASHPIT_URL"
|
|
16
|
+
DEFAULT_URL = "wss://api.nashpit.xyz/v1/ws"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def read_dotenv(path: Path) -> dict[str, str]:
|
|
20
|
+
"""Minimal ``.env`` parser: ``KEY=value`` lines, ``#`` comments, optional quotes."""
|
|
21
|
+
out: dict[str, str] = {}
|
|
22
|
+
try:
|
|
23
|
+
text = path.read_text(encoding="utf-8")
|
|
24
|
+
except FileNotFoundError:
|
|
25
|
+
return out
|
|
26
|
+
for raw in text.splitlines():
|
|
27
|
+
line = raw.strip()
|
|
28
|
+
if not line or line.startswith("#") or "=" not in line:
|
|
29
|
+
continue
|
|
30
|
+
line = line.removeprefix("export ").strip()
|
|
31
|
+
name, _, value = line.partition("=")
|
|
32
|
+
value = value.strip()
|
|
33
|
+
if len(value) >= 2 and value[0] == value[-1] and value[0] in "\"'":
|
|
34
|
+
value = value[1:-1]
|
|
35
|
+
out[name.strip()] = value
|
|
36
|
+
return out
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def find_dotenv(start: Path) -> Path | None:
|
|
40
|
+
for d in (start, *start.parents):
|
|
41
|
+
candidate = d / ".env"
|
|
42
|
+
if candidate.is_file():
|
|
43
|
+
return candidate
|
|
44
|
+
if (d / "nashpit.toml").is_file():
|
|
45
|
+
return None
|
|
46
|
+
return None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def check_bot_key(key: str) -> SecretStr:
|
|
50
|
+
key = key.strip()
|
|
51
|
+
if key.startswith(ACCOUNT_KEY_PREFIX):
|
|
52
|
+
raise WrongKeyTypeError(
|
|
53
|
+
"An account key was given where a bot key is required.",
|
|
54
|
+
hint="Account keys must not run bots. Run `nashpit up` (or `nashpit keys`) in the bot "
|
|
55
|
+
"folder to write this bot's key to .env as NASHPIT_BOT_KEY.",
|
|
56
|
+
)
|
|
57
|
+
if not key:
|
|
58
|
+
raise ConfigurationError(
|
|
59
|
+
"No bot key: NASHPIT_BOT_KEY is not set.",
|
|
60
|
+
hint="Run `nashpit up` in the bot folder (it writes .env), or export NASHPIT_BOT_KEY.",
|
|
61
|
+
)
|
|
62
|
+
return SecretStr(key)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def load_bot_key(explicit: str | None = None, cwd: Path | None = None) -> SecretStr:
|
|
66
|
+
if explicit is not None:
|
|
67
|
+
return check_bot_key(explicit)
|
|
68
|
+
env = os.environ.get(ENV_KEY)
|
|
69
|
+
if env is None:
|
|
70
|
+
dotenv = find_dotenv(cwd or Path.cwd())
|
|
71
|
+
if dotenv is not None:
|
|
72
|
+
env = read_dotenv(dotenv).get(ENV_KEY)
|
|
73
|
+
return check_bot_key(env or "")
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def load_url(explicit: str | None = None, cwd: Path | None = None) -> str:
|
|
77
|
+
if explicit:
|
|
78
|
+
return explicit
|
|
79
|
+
env = os.environ.get(ENV_URL)
|
|
80
|
+
if env:
|
|
81
|
+
return env
|
|
82
|
+
dotenv = find_dotenv(cwd or Path.cwd())
|
|
83
|
+
if dotenv is not None:
|
|
84
|
+
value = read_dotenv(dotenv).get(ENV_URL)
|
|
85
|
+
if value:
|
|
86
|
+
return value
|
|
87
|
+
return DEFAULT_URL
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Generated Nashpit v1 wire types (official protobuf runtime). Do not edit; run proto/gen.sh."""
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: nashpit/v1/account.proto
|
|
5
|
+
# Protobuf Python Version: 7.35.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
7,
|
|
15
|
+
35,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'nashpit/v1/account.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from nashpit._proto.v1 import common_pb2 as nashpit_dot_v1_dot_common__pb2
|
|
27
|
+
from nashpit._proto.v1 import options_pb2 as nashpit_dot_v1_dot_options__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18nashpit/v1/account.proto\x12\nnashpit.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17nashpit/v1/common.proto\x1a\x18nashpit/v1/options.proto\"\xf6\x01\n\x07\x41\x63\x63ount\x12\x12\n\naccount_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x04 \x01(\x08\x12.\n\rlogin_methods\x18\x05 \x03(\x0e\x32\x17.nashpit.v1.LoginMethod\x12.\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x18withdrawals_locked_until\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\x04\xe8\xf9\x18\x04\"K\n\tAutoTopUp\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x14\n\x0cthreshold_bb\x18\x02 \x01(\r\x12\x11\n\ttarget_bb\x18\x03 \x01(\r:\x04\xe8\xf9\x18\x04\"^\n\x0f\x41\x63\x63ountSettings\x12*\n\x0b\x61uto_top_up\x18\x01 \x01(\x0b\x32\x15.nashpit.v1.AutoTopUp\x12\x19\n\x11\x64\x65\x66\x61ult_buy_in_bb\x18\x02 \x01(\r:\x04\xe8\xf9\x18\x04\"\xd2\x01\n\x07\x42\x61lance\x12\x11\n\tavailable\x18\x01 \x01(\t\x12\x18\n\x10reserved_in_runs\x18\x02 \x01(\t\x12\x11\n\ton_tables\x18\x03 \x01(\t\x12\x12\n\nin_invites\x18\x04 \x01(\t\x12\x1f\n\x17withdrawals_in_progress\x18\x05 \x01(\t\x12\r\n\x05total\x18\x06 \x01(\t\x12\x0f\n\x07sync_id\x18\x07 \x01(\x04\x12,\n\x0b\x65nvironment\x18\x08 \x01(\x0e\x32\x17.nashpit.v1.Environment:\x04\xe8\xf9\x18\x04\"\x13\n\x11GetAccountRequest\"\xba\x01\n\x12GetAccountResponse\x12$\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x13.nashpit.v1.Account\x12-\n\x08settings\x18\x02 \x01(\x0b\x32\x1b.nashpit.v1.AccountSettings\x12$\n\x07\x62\x61lance\x18\x03 \x01(\x0b\x32\x13.nashpit.v1.Balance\x12)\n\x0ctest_balance\x18\x04 \x01(\x0b\x32\x13.nashpit.v1.Balance\"(\n\x18UpdateAccountNameRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"f\n\x19UpdateAccountNameResponse\x12$\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x13.nashpit.v1.Account\x12#\n\x03\x61\x63k\x18\x02 \x01(\x0b\x32\x16.nashpit.v1.CommandAck\"F\n\x15UpdateSettingsRequest\x12-\n\x08settings\x18\x01 \x01(\x0b\x32\x1b.nashpit.v1.AccountSettings\"l\n\x16UpdateSettingsResponse\x12-\n\x08settings\x18\x01 \x01(\x0b\x32\x1b.nashpit.v1.AccountSettings\x12#\n\x03\x61\x63k\x18\x02 \x01(\x0b\x32\x16.nashpit.v1.CommandAck\"A\n\x11GetBalanceRequest\x12,\n\x0b\x65nvironment\x18\x01 \x01(\x0e\x32\x17.nashpit.v1.Environment\":\n\x12GetBalanceResponse\x12$\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32\x13.nashpit.v1.Balance\"\x19\n\x17TopUpTestBalanceRequest\"e\n\x18TopUpTestBalanceResponse\x12$\n\x07\x62\x61lance\x18\x01 \x01(\x0b\x32\x13.nashpit.v1.Balance\x12#\n\x03\x61\x63k\x18\x02 \x01(\x0b\x32\x16.nashpit.v1.CommandAck*_\n\x0bLoginMethod\x12\x1c\n\x18LOGIN_METHOD_UNSPECIFIED\x10\x00\x12\x17\n\x13LOGIN_METHOD_GOOGLE\x10\x01\x12\x19\n\x15LOGIN_METHOD_PASSWORD\x10\x02\x32\xf6\x03\n\x0e\x41\x63\x63ountService\x12U\n\nGetAccount\x12\x1d.nashpit.v1.GetAccountRequest\x1a\x1e.nashpit.v1.GetAccountResponse\"\x08\xc8\xf3\x18\x01\xd0\xf3\x18\x03\x12j\n\x11UpdateAccountName\x12$.nashpit.v1.UpdateAccountNameRequest\x1a%.nashpit.v1.UpdateAccountNameResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x05\x12\x61\n\x0eUpdateSettings\x12!.nashpit.v1.UpdateSettingsRequest\x1a\".nashpit.v1.UpdateSettingsResponse\"\x08\xc8\xf3\x18\x02\xd0\xf3\x18\x04\x12U\n\nGetBalance\x12\x1d.nashpit.v1.GetBalanceRequest\x1a\x1e.nashpit.v1.GetBalanceResponse\"\x08\xc8\xf3\x18\x01\xd0\xf3\x18\x03\x12g\n\x10TopUpTestBalance\x12#.nashpit.v1.TopUpTestBalanceRequest\x1a$.nashpit.v1.TopUpTestBalanceResponse\"\x08\xc8\xf3\x18\x04\xd0\xf3\x18\x04\x62\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nashpit.v1.account_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
DESCRIPTOR._loaded_options = None
|
|
37
|
+
_globals['_ACCOUNT']._loaded_options = None
|
|
38
|
+
_globals['_ACCOUNT']._serialized_options = b'\350\371\030\004'
|
|
39
|
+
_globals['_AUTOTOPUP']._loaded_options = None
|
|
40
|
+
_globals['_AUTOTOPUP']._serialized_options = b'\350\371\030\004'
|
|
41
|
+
_globals['_ACCOUNTSETTINGS']._loaded_options = None
|
|
42
|
+
_globals['_ACCOUNTSETTINGS']._serialized_options = b'\350\371\030\004'
|
|
43
|
+
_globals['_BALANCE']._loaded_options = None
|
|
44
|
+
_globals['_BALANCE']._serialized_options = b'\350\371\030\004'
|
|
45
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._loaded_options = None
|
|
46
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetAccount']._serialized_options = b'\310\363\030\001\320\363\030\003'
|
|
47
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateAccountName']._loaded_options = None
|
|
48
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateAccountName']._serialized_options = b'\310\363\030\003\320\363\030\005'
|
|
49
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateSettings']._loaded_options = None
|
|
50
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['UpdateSettings']._serialized_options = b'\310\363\030\002\320\363\030\004'
|
|
51
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetBalance']._loaded_options = None
|
|
52
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['GetBalance']._serialized_options = b'\310\363\030\001\320\363\030\003'
|
|
53
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['TopUpTestBalance']._loaded_options = None
|
|
54
|
+
_globals['_ACCOUNTSERVICE'].methods_by_name['TopUpTestBalance']._serialized_options = b'\310\363\030\004\320\363\030\004'
|
|
55
|
+
_globals['_LOGINMETHOD']._serialized_start=1554
|
|
56
|
+
_globals['_LOGINMETHOD']._serialized_end=1649
|
|
57
|
+
_globals['_ACCOUNT']._serialized_start=125
|
|
58
|
+
_globals['_ACCOUNT']._serialized_end=371
|
|
59
|
+
_globals['_AUTOTOPUP']._serialized_start=373
|
|
60
|
+
_globals['_AUTOTOPUP']._serialized_end=448
|
|
61
|
+
_globals['_ACCOUNTSETTINGS']._serialized_start=450
|
|
62
|
+
_globals['_ACCOUNTSETTINGS']._serialized_end=544
|
|
63
|
+
_globals['_BALANCE']._serialized_start=547
|
|
64
|
+
_globals['_BALANCE']._serialized_end=757
|
|
65
|
+
_globals['_GETACCOUNTREQUEST']._serialized_start=759
|
|
66
|
+
_globals['_GETACCOUNTREQUEST']._serialized_end=778
|
|
67
|
+
_globals['_GETACCOUNTRESPONSE']._serialized_start=781
|
|
68
|
+
_globals['_GETACCOUNTRESPONSE']._serialized_end=967
|
|
69
|
+
_globals['_UPDATEACCOUNTNAMEREQUEST']._serialized_start=969
|
|
70
|
+
_globals['_UPDATEACCOUNTNAMEREQUEST']._serialized_end=1009
|
|
71
|
+
_globals['_UPDATEACCOUNTNAMERESPONSE']._serialized_start=1011
|
|
72
|
+
_globals['_UPDATEACCOUNTNAMERESPONSE']._serialized_end=1113
|
|
73
|
+
_globals['_UPDATESETTINGSREQUEST']._serialized_start=1115
|
|
74
|
+
_globals['_UPDATESETTINGSREQUEST']._serialized_end=1185
|
|
75
|
+
_globals['_UPDATESETTINGSRESPONSE']._serialized_start=1187
|
|
76
|
+
_globals['_UPDATESETTINGSRESPONSE']._serialized_end=1295
|
|
77
|
+
_globals['_GETBALANCEREQUEST']._serialized_start=1297
|
|
78
|
+
_globals['_GETBALANCEREQUEST']._serialized_end=1362
|
|
79
|
+
_globals['_GETBALANCERESPONSE']._serialized_start=1364
|
|
80
|
+
_globals['_GETBALANCERESPONSE']._serialized_end=1422
|
|
81
|
+
_globals['_TOPUPTESTBALANCEREQUEST']._serialized_start=1424
|
|
82
|
+
_globals['_TOPUPTESTBALANCEREQUEST']._serialized_end=1449
|
|
83
|
+
_globals['_TOPUPTESTBALANCERESPONSE']._serialized_start=1451
|
|
84
|
+
_globals['_TOPUPTESTBALANCERESPONSE']._serialized_end=1552
|
|
85
|
+
_globals['_ACCOUNTSERVICE']._serialized_start=1652
|
|
86
|
+
_globals['_ACCOUNTSERVICE']._serialized_end=2154
|
|
87
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
4
|
+
from nashpit._proto.v1 import common_pb2 as _common_pb2
|
|
5
|
+
from nashpit._proto.v1 import options_pb2 as _options_pb2
|
|
6
|
+
from google.protobuf.internal import containers as _containers
|
|
7
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import message as _message
|
|
10
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
11
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
class LoginMethod(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
16
|
+
__slots__ = ()
|
|
17
|
+
LOGIN_METHOD_UNSPECIFIED: _ClassVar[LoginMethod]
|
|
18
|
+
LOGIN_METHOD_GOOGLE: _ClassVar[LoginMethod]
|
|
19
|
+
LOGIN_METHOD_PASSWORD: _ClassVar[LoginMethod]
|
|
20
|
+
LOGIN_METHOD_UNSPECIFIED: LoginMethod
|
|
21
|
+
LOGIN_METHOD_GOOGLE: LoginMethod
|
|
22
|
+
LOGIN_METHOD_PASSWORD: LoginMethod
|
|
23
|
+
|
|
24
|
+
class Account(_message.Message):
|
|
25
|
+
__slots__ = ("account_id", "name", "email", "email_verified", "login_methods", "created_at", "withdrawals_locked_until")
|
|
26
|
+
ACCOUNT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
EMAIL_VERIFIED_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
LOGIN_METHODS_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
WITHDRAWALS_LOCKED_UNTIL_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
account_id: str
|
|
34
|
+
name: str
|
|
35
|
+
email: str
|
|
36
|
+
email_verified: bool
|
|
37
|
+
login_methods: _containers.RepeatedScalarFieldContainer[LoginMethod]
|
|
38
|
+
created_at: _timestamp_pb2.Timestamp
|
|
39
|
+
withdrawals_locked_until: _timestamp_pb2.Timestamp
|
|
40
|
+
def __init__(self, account_id: _Optional[str] = ..., name: _Optional[str] = ..., email: _Optional[str] = ..., email_verified: _Optional[bool] = ..., login_methods: _Optional[_Iterable[_Union[LoginMethod, str]]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., withdrawals_locked_until: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
class AutoTopUp(_message.Message):
|
|
43
|
+
__slots__ = ("enabled", "threshold_bb", "target_bb")
|
|
44
|
+
ENABLED_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
THRESHOLD_BB_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
TARGET_BB_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
enabled: bool
|
|
48
|
+
threshold_bb: int
|
|
49
|
+
target_bb: int
|
|
50
|
+
def __init__(self, enabled: _Optional[bool] = ..., threshold_bb: _Optional[int] = ..., target_bb: _Optional[int] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class AccountSettings(_message.Message):
|
|
53
|
+
__slots__ = ("auto_top_up", "default_buy_in_bb")
|
|
54
|
+
AUTO_TOP_UP_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
DEFAULT_BUY_IN_BB_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
auto_top_up: AutoTopUp
|
|
57
|
+
default_buy_in_bb: int
|
|
58
|
+
def __init__(self, auto_top_up: _Optional[_Union[AutoTopUp, _Mapping]] = ..., default_buy_in_bb: _Optional[int] = ...) -> None: ...
|
|
59
|
+
|
|
60
|
+
class Balance(_message.Message):
|
|
61
|
+
__slots__ = ("available", "reserved_in_runs", "on_tables", "in_invites", "withdrawals_in_progress", "total", "sync_id", "environment")
|
|
62
|
+
AVAILABLE_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
RESERVED_IN_RUNS_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
ON_TABLES_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
IN_INVITES_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
WITHDRAWALS_IN_PROGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
TOTAL_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
SYNC_ID_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
available: str
|
|
71
|
+
reserved_in_runs: str
|
|
72
|
+
on_tables: str
|
|
73
|
+
in_invites: str
|
|
74
|
+
withdrawals_in_progress: str
|
|
75
|
+
total: str
|
|
76
|
+
sync_id: int
|
|
77
|
+
environment: _common_pb2.Environment
|
|
78
|
+
def __init__(self, available: _Optional[str] = ..., reserved_in_runs: _Optional[str] = ..., on_tables: _Optional[str] = ..., in_invites: _Optional[str] = ..., withdrawals_in_progress: _Optional[str] = ..., total: _Optional[str] = ..., sync_id: _Optional[int] = ..., environment: _Optional[_Union[_common_pb2.Environment, str]] = ...) -> None: ...
|
|
79
|
+
|
|
80
|
+
class GetAccountRequest(_message.Message):
|
|
81
|
+
__slots__ = ()
|
|
82
|
+
def __init__(self) -> None: ...
|
|
83
|
+
|
|
84
|
+
class GetAccountResponse(_message.Message):
|
|
85
|
+
__slots__ = ("account", "settings", "balance", "test_balance")
|
|
86
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
BALANCE_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
TEST_BALANCE_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
account: Account
|
|
91
|
+
settings: AccountSettings
|
|
92
|
+
balance: Balance
|
|
93
|
+
test_balance: Balance
|
|
94
|
+
def __init__(self, account: _Optional[_Union[Account, _Mapping]] = ..., settings: _Optional[_Union[AccountSettings, _Mapping]] = ..., balance: _Optional[_Union[Balance, _Mapping]] = ..., test_balance: _Optional[_Union[Balance, _Mapping]] = ...) -> None: ...
|
|
95
|
+
|
|
96
|
+
class UpdateAccountNameRequest(_message.Message):
|
|
97
|
+
__slots__ = ("name",)
|
|
98
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
99
|
+
name: str
|
|
100
|
+
def __init__(self, name: _Optional[str] = ...) -> None: ...
|
|
101
|
+
|
|
102
|
+
class UpdateAccountNameResponse(_message.Message):
|
|
103
|
+
__slots__ = ("account", "ack")
|
|
104
|
+
ACCOUNT_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
ACK_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
account: Account
|
|
107
|
+
ack: _common_pb2.CommandAck
|
|
108
|
+
def __init__(self, account: _Optional[_Union[Account, _Mapping]] = ..., ack: _Optional[_Union[_common_pb2.CommandAck, _Mapping]] = ...) -> None: ...
|
|
109
|
+
|
|
110
|
+
class UpdateSettingsRequest(_message.Message):
|
|
111
|
+
__slots__ = ("settings",)
|
|
112
|
+
SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
settings: AccountSettings
|
|
114
|
+
def __init__(self, settings: _Optional[_Union[AccountSettings, _Mapping]] = ...) -> None: ...
|
|
115
|
+
|
|
116
|
+
class UpdateSettingsResponse(_message.Message):
|
|
117
|
+
__slots__ = ("settings", "ack")
|
|
118
|
+
SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
ACK_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
settings: AccountSettings
|
|
121
|
+
ack: _common_pb2.CommandAck
|
|
122
|
+
def __init__(self, settings: _Optional[_Union[AccountSettings, _Mapping]] = ..., ack: _Optional[_Union[_common_pb2.CommandAck, _Mapping]] = ...) -> None: ...
|
|
123
|
+
|
|
124
|
+
class GetBalanceRequest(_message.Message):
|
|
125
|
+
__slots__ = ("environment",)
|
|
126
|
+
ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
environment: _common_pb2.Environment
|
|
128
|
+
def __init__(self, environment: _Optional[_Union[_common_pb2.Environment, str]] = ...) -> None: ...
|
|
129
|
+
|
|
130
|
+
class GetBalanceResponse(_message.Message):
|
|
131
|
+
__slots__ = ("balance",)
|
|
132
|
+
BALANCE_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
+
balance: Balance
|
|
134
|
+
def __init__(self, balance: _Optional[_Union[Balance, _Mapping]] = ...) -> None: ...
|
|
135
|
+
|
|
136
|
+
class TopUpTestBalanceRequest(_message.Message):
|
|
137
|
+
__slots__ = ()
|
|
138
|
+
def __init__(self) -> None: ...
|
|
139
|
+
|
|
140
|
+
class TopUpTestBalanceResponse(_message.Message):
|
|
141
|
+
__slots__ = ("balance", "ack")
|
|
142
|
+
BALANCE_FIELD_NUMBER: _ClassVar[int]
|
|
143
|
+
ACK_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
balance: Balance
|
|
145
|
+
ack: _common_pb2.CommandAck
|
|
146
|
+
def __init__(self, balance: _Optional[_Union[Balance, _Mapping]] = ..., ack: _Optional[_Union[_common_pb2.CommandAck, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: nashpit/v1/auth.proto
|
|
5
|
+
# Protobuf Python Version: 7.35.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
7,
|
|
15
|
+
35,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'nashpit/v1/auth.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from nashpit._proto.v1 import account_pb2 as nashpit_dot_v1_dot_account__pb2
|
|
27
|
+
from nashpit._proto.v1 import common_pb2 as nashpit_dot_v1_dot_common__pb2
|
|
28
|
+
from nashpit._proto.v1 import options_pb2 as nashpit_dot_v1_dot_options__pb2
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15nashpit/v1/auth.proto\x12\nnashpit.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x18nashpit/v1/account.proto\x1a\x17nashpit/v1/common.proto\x1a\x18nashpit/v1/options.proto\"T\n\rSignUpRequest\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x14\n\x0cinvite_token\x18\x04 \x01(\t\"+\n\x0eSignUpResponse\x12\x19\n\x11verification_sent\x18\x01 \x01(\x08\"0\n\rSignInRequest\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\"6\n\x0eSignInResponse\x12$\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x13.nashpit.v1.Account\"\x10\n\x0eSignOutRequest\"\x11\n\x0fSignOutResponse\"#\n\x12VerifyEmailRequest\x12\r\n\x05token\x18\x01 \x01(\t\";\n\x13VerifyEmailResponse\x12$\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x13.nashpit.v1.Account\",\n\x1bRequestPasswordResetRequest\x12\r\n\x05\x65mail\x18\x01 \x01(\t\"\x1e\n\x1cRequestPasswordResetResponse\";\n\x14ResetPasswordRequest\x12\r\n\x05token\x18\x01 \x01(\t\x12\x14\n\x0cnew_password\x18\x02 \x01(\t\"\x17\n\x15ResetPasswordResponse\"\'\n\x12\x43hangeEmailRequest\x12\x11\n\tnew_email\x18\x01 \x01(\t\":\n\x13\x43hangeEmailResponse\x12#\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\x16.nashpit.v1.CommandAck\"6\n\x1fStartDeviceAuthorizationRequest\x12\x13\n\x0b\x63lient_name\x18\x01 \x01(\t\"\xcc\x01\n StartDeviceAuthorizationResponse\x12\x13\n\x0b\x64\x65vice_code\x18\x01 \x01(\t\x12\x11\n\tuser_code\x18\x02 \x01(\t\x12\x18\n\x10verification_url\x18\x03 \x01(\t\x12!\n\x19verification_url_complete\x18\x04 \x01(\t\x12\x13\n\x0binterval_ms\x18\x05 \x01(\r\x12.\n\nexpires_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Z\n!ApproveDeviceAuthorizationRequest\x12\x11\n\tuser_code\x18\x01 \x01(\t\x12\x0f\n\x07\x61pprove\x18\x02 \x01(\x08\x12\x11\n\tread_only\x18\x03 \x01(\x08\"[\n\"ApproveDeviceAuthorizationResponse\x12\x35\n\x06status\x18\x01 \x01(\x0e\x32%.nashpit.v1.DeviceAuthorizationStatus\"5\n\x1ePollDeviceAuthorizationRequest\x12\x13\n\x0b\x64\x65vice_code\x18\x01 \x01(\t\"\x93\x01\n\x1fPollDeviceAuthorizationResponse\x12\x35\n\x06status\x18\x01 \x01(\x0e\x32%.nashpit.v1.DeviceAuthorizationStatus\x12\x13\n\x0b\x61\x63\x63ount_key\x18\x02 \x01(\t\x12\x0e\n\x06key_id\x18\x03 \x01(\t\x12\x14\n\x0c\x61\x63\x63ount_name\x18\x04 \x01(\t\"\x17\n\x15\x43reateWsTicketRequest\"l\n\x16\x43reateWsTicketResponse\x12\x0e\n\x06ticket\x18\x01 \x01(\t\x12.\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\naccount_id\x18\x03 \x01(\t*\xec\x01\n\x19\x44\x65viceAuthorizationStatus\x12+\n\'DEVICE_AUTHORIZATION_STATUS_UNSPECIFIED\x10\x00\x12\'\n#DEVICE_AUTHORIZATION_STATUS_PENDING\x10\x01\x12(\n$DEVICE_AUTHORIZATION_STATUS_APPROVED\x10\x02\x12&\n\"DEVICE_AUTHORIZATION_STATUS_DENIED\x10\x03\x12\'\n#DEVICE_AUTHORIZATION_STATUS_EXPIRED\x10\x04\x32\xe4\x08\n\x0b\x41uthService\x12I\n\x06SignUp\x12\x19.nashpit.v1.SignUpRequest\x1a\x1a.nashpit.v1.SignUpResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x01\x12I\n\x06SignIn\x12\x19.nashpit.v1.SignInRequest\x1a\x1a.nashpit.v1.SignInResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x01\x12L\n\x07SignOut\x12\x1a.nashpit.v1.SignOutRequest\x1a\x1b.nashpit.v1.SignOutResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x05\x12X\n\x0bVerifyEmail\x12\x1e.nashpit.v1.VerifyEmailRequest\x1a\x1f.nashpit.v1.VerifyEmailResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x01\x12s\n\x14RequestPasswordReset\x12\'.nashpit.v1.RequestPasswordResetRequest\x1a(.nashpit.v1.RequestPasswordResetResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x01\x12^\n\rResetPassword\x12 .nashpit.v1.ResetPasswordRequest\x1a!.nashpit.v1.ResetPasswordResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x01\x12X\n\x0b\x43hangeEmail\x12\x1e.nashpit.v1.ChangeEmailRequest\x1a\x1f.nashpit.v1.ChangeEmailResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x05\x12\x7f\n\x18StartDeviceAuthorization\x12+.nashpit.v1.StartDeviceAuthorizationRequest\x1a,.nashpit.v1.StartDeviceAuthorizationResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x01\x12\x85\x01\n\x1a\x41pproveDeviceAuthorization\x12-.nashpit.v1.ApproveDeviceAuthorizationRequest\x1a..nashpit.v1.ApproveDeviceAuthorizationResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x05\x12|\n\x17PollDeviceAuthorization\x12*.nashpit.v1.PollDeviceAuthorizationRequest\x1a+.nashpit.v1.PollDeviceAuthorizationResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x01\x12\x61\n\x0e\x43reateWsTicket\x12!.nashpit.v1.CreateWsTicketRequest\x1a\".nashpit.v1.CreateWsTicketResponse\"\x08\xc8\xf3\x18\x03\xd0\xf3\x18\x05\x62\x06proto3')
|
|
32
|
+
|
|
33
|
+
_globals = globals()
|
|
34
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
35
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nashpit.v1.auth_pb2', _globals)
|
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
37
|
+
DESCRIPTOR._loaded_options = None
|
|
38
|
+
_globals['_AUTHSERVICE'].methods_by_name['SignUp']._loaded_options = None
|
|
39
|
+
_globals['_AUTHSERVICE'].methods_by_name['SignUp']._serialized_options = b'\310\363\030\003\320\363\030\001'
|
|
40
|
+
_globals['_AUTHSERVICE'].methods_by_name['SignIn']._loaded_options = None
|
|
41
|
+
_globals['_AUTHSERVICE'].methods_by_name['SignIn']._serialized_options = b'\310\363\030\003\320\363\030\001'
|
|
42
|
+
_globals['_AUTHSERVICE'].methods_by_name['SignOut']._loaded_options = None
|
|
43
|
+
_globals['_AUTHSERVICE'].methods_by_name['SignOut']._serialized_options = b'\310\363\030\003\320\363\030\005'
|
|
44
|
+
_globals['_AUTHSERVICE'].methods_by_name['VerifyEmail']._loaded_options = None
|
|
45
|
+
_globals['_AUTHSERVICE'].methods_by_name['VerifyEmail']._serialized_options = b'\310\363\030\003\320\363\030\001'
|
|
46
|
+
_globals['_AUTHSERVICE'].methods_by_name['RequestPasswordReset']._loaded_options = None
|
|
47
|
+
_globals['_AUTHSERVICE'].methods_by_name['RequestPasswordReset']._serialized_options = b'\310\363\030\003\320\363\030\001'
|
|
48
|
+
_globals['_AUTHSERVICE'].methods_by_name['ResetPassword']._loaded_options = None
|
|
49
|
+
_globals['_AUTHSERVICE'].methods_by_name['ResetPassword']._serialized_options = b'\310\363\030\003\320\363\030\001'
|
|
50
|
+
_globals['_AUTHSERVICE'].methods_by_name['ChangeEmail']._loaded_options = None
|
|
51
|
+
_globals['_AUTHSERVICE'].methods_by_name['ChangeEmail']._serialized_options = b'\310\363\030\003\320\363\030\005'
|
|
52
|
+
_globals['_AUTHSERVICE'].methods_by_name['StartDeviceAuthorization']._loaded_options = None
|
|
53
|
+
_globals['_AUTHSERVICE'].methods_by_name['StartDeviceAuthorization']._serialized_options = b'\310\363\030\003\320\363\030\001'
|
|
54
|
+
_globals['_AUTHSERVICE'].methods_by_name['ApproveDeviceAuthorization']._loaded_options = None
|
|
55
|
+
_globals['_AUTHSERVICE'].methods_by_name['ApproveDeviceAuthorization']._serialized_options = b'\310\363\030\003\320\363\030\005'
|
|
56
|
+
_globals['_AUTHSERVICE'].methods_by_name['PollDeviceAuthorization']._loaded_options = None
|
|
57
|
+
_globals['_AUTHSERVICE'].methods_by_name['PollDeviceAuthorization']._serialized_options = b'\310\363\030\003\320\363\030\001'
|
|
58
|
+
_globals['_AUTHSERVICE'].methods_by_name['CreateWsTicket']._loaded_options = None
|
|
59
|
+
_globals['_AUTHSERVICE'].methods_by_name['CreateWsTicket']._serialized_options = b'\310\363\030\003\320\363\030\005'
|
|
60
|
+
_globals['_DEVICEAUTHORIZATIONSTATUS']._serialized_start=1573
|
|
61
|
+
_globals['_DEVICEAUTHORIZATIONSTATUS']._serialized_end=1809
|
|
62
|
+
_globals['_SIGNUPREQUEST']._serialized_start=147
|
|
63
|
+
_globals['_SIGNUPREQUEST']._serialized_end=231
|
|
64
|
+
_globals['_SIGNUPRESPONSE']._serialized_start=233
|
|
65
|
+
_globals['_SIGNUPRESPONSE']._serialized_end=276
|
|
66
|
+
_globals['_SIGNINREQUEST']._serialized_start=278
|
|
67
|
+
_globals['_SIGNINREQUEST']._serialized_end=326
|
|
68
|
+
_globals['_SIGNINRESPONSE']._serialized_start=328
|
|
69
|
+
_globals['_SIGNINRESPONSE']._serialized_end=382
|
|
70
|
+
_globals['_SIGNOUTREQUEST']._serialized_start=384
|
|
71
|
+
_globals['_SIGNOUTREQUEST']._serialized_end=400
|
|
72
|
+
_globals['_SIGNOUTRESPONSE']._serialized_start=402
|
|
73
|
+
_globals['_SIGNOUTRESPONSE']._serialized_end=419
|
|
74
|
+
_globals['_VERIFYEMAILREQUEST']._serialized_start=421
|
|
75
|
+
_globals['_VERIFYEMAILREQUEST']._serialized_end=456
|
|
76
|
+
_globals['_VERIFYEMAILRESPONSE']._serialized_start=458
|
|
77
|
+
_globals['_VERIFYEMAILRESPONSE']._serialized_end=517
|
|
78
|
+
_globals['_REQUESTPASSWORDRESETREQUEST']._serialized_start=519
|
|
79
|
+
_globals['_REQUESTPASSWORDRESETREQUEST']._serialized_end=563
|
|
80
|
+
_globals['_REQUESTPASSWORDRESETRESPONSE']._serialized_start=565
|
|
81
|
+
_globals['_REQUESTPASSWORDRESETRESPONSE']._serialized_end=595
|
|
82
|
+
_globals['_RESETPASSWORDREQUEST']._serialized_start=597
|
|
83
|
+
_globals['_RESETPASSWORDREQUEST']._serialized_end=656
|
|
84
|
+
_globals['_RESETPASSWORDRESPONSE']._serialized_start=658
|
|
85
|
+
_globals['_RESETPASSWORDRESPONSE']._serialized_end=681
|
|
86
|
+
_globals['_CHANGEEMAILREQUEST']._serialized_start=683
|
|
87
|
+
_globals['_CHANGEEMAILREQUEST']._serialized_end=722
|
|
88
|
+
_globals['_CHANGEEMAILRESPONSE']._serialized_start=724
|
|
89
|
+
_globals['_CHANGEEMAILRESPONSE']._serialized_end=782
|
|
90
|
+
_globals['_STARTDEVICEAUTHORIZATIONREQUEST']._serialized_start=784
|
|
91
|
+
_globals['_STARTDEVICEAUTHORIZATIONREQUEST']._serialized_end=838
|
|
92
|
+
_globals['_STARTDEVICEAUTHORIZATIONRESPONSE']._serialized_start=841
|
|
93
|
+
_globals['_STARTDEVICEAUTHORIZATIONRESPONSE']._serialized_end=1045
|
|
94
|
+
_globals['_APPROVEDEVICEAUTHORIZATIONREQUEST']._serialized_start=1047
|
|
95
|
+
_globals['_APPROVEDEVICEAUTHORIZATIONREQUEST']._serialized_end=1137
|
|
96
|
+
_globals['_APPROVEDEVICEAUTHORIZATIONRESPONSE']._serialized_start=1139
|
|
97
|
+
_globals['_APPROVEDEVICEAUTHORIZATIONRESPONSE']._serialized_end=1230
|
|
98
|
+
_globals['_POLLDEVICEAUTHORIZATIONREQUEST']._serialized_start=1232
|
|
99
|
+
_globals['_POLLDEVICEAUTHORIZATIONREQUEST']._serialized_end=1285
|
|
100
|
+
_globals['_POLLDEVICEAUTHORIZATIONRESPONSE']._serialized_start=1288
|
|
101
|
+
_globals['_POLLDEVICEAUTHORIZATIONRESPONSE']._serialized_end=1435
|
|
102
|
+
_globals['_CREATEWSTICKETREQUEST']._serialized_start=1437
|
|
103
|
+
_globals['_CREATEWSTICKETREQUEST']._serialized_end=1460
|
|
104
|
+
_globals['_CREATEWSTICKETRESPONSE']._serialized_start=1462
|
|
105
|
+
_globals['_CREATEWSTICKETRESPONSE']._serialized_end=1570
|
|
106
|
+
_globals['_AUTHSERVICE']._serialized_start=1812
|
|
107
|
+
_globals['_AUTHSERVICE']._serialized_end=2936
|
|
108
|
+
# @@protoc_insertion_point(module_scope)
|